* net/browse-url.el (browse-url-default-windows-browser): Use
[bpt/emacs.git] / src / ChangeLog
CommitLineData
dd5a6279
CY
12009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2
3 * s/cygwin.h: Remove unneeded linker flags.
4
4a8e097d
JD
52009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6
0d1d0d26
JD
7 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
8
9 * xsettings.h: Declare xsettings_get_system_font.
10
11 * xsettings.c (xsettings_get_system_font): New function.
12 (init_gconf): No use initiating gconf unless we have Xft also.
13 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
14 HAVE_GCONF.
15
4a8e097d
JD
16 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
17 add a blank entry so it doesn't collapse into nothing.
18
8ab1650e
SM
192009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20
21 * lread.c (Funintern): Comment out last change.
22
82c602f0
RS
232009-11-19 Richard Stallman <rms@gnu.org>
24
25 * lread.c (Funintern): Error if symbol is t or nil.
26
87e32266
SM
272009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
28
29 * insdel.c (make_gap_larger): Don't make as many assumptions about the
30 representation of Lisp integers.
31 Reported by MJ Chan <mjchan.inbox@gmail.com>.
32
1b9ac145
AS
332009-11-17 Andreas Schwab <schwab@linux-m68k.org>
34
35 * lisp.h: Remove declaration of Ffont_get_system_font.
36 * xfns.c: Move include of "xsettings.h".
37 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
38
dfb3c4c6
JD
392009-11-17 Jan Djärv <jan.h.d@swipnet.se>
40
87e32266
SM
41 * xsettings.c (something_changedCB, Ffont_get_system_font):
42 Check use_system_font.
dfb3c4c6
JD
43 (syms_of_xsettings): DEFVAR font-use-system-font.
44
9370c1d8
AS
452009-11-17 Andreas Schwab <schwab@linux-m68k.org>
46
25fe851a
AS
47 * xfns.c (x_default_font_parameter): Remove dead assignment.
48
9370c1d8
AS
49 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
50
637fa988
JD
512009-11-17 Jan Djärv <jan.h.d@swipnet.se>
52
87e32266 53 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 54 not have FC_LCD_*. #define them if not there.
a6eb20d8 55
87e32266 56 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 57
637fa988
JD
58 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
59
60 * xterm.c (handle_one_xevent): Call xft_settings_event for
61 ClientMessage, PropertyNotify and DestroyNotify.
62 (x_term_init): If we have XFT, get DPI from Xft.dpi.
63 Call xsettings_initialize.
64
65 * xftfont.c (xftfont_fix_match): New function.
66 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
67 Call xftfont_fix_match after XftFontMatch.
68
69 * xfont.c (xfont_driver): Initialize all members.
70
87e32266
SM
71 * xfns.c (x_default_font_parameter):
72 Try font from Ffont_get_system_font.
637fa988
JD
73 Do not get font from x_default_parameter if we got one from
74 Ffont_get_system_font.
87e32266 75 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
76
77 * w32font.c (w32font_driver): Initialize all members.
78
79 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
80
81 * lisp.h: Declare syms_of_xsettings.
82
87e32266
SM
83 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
84 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
85
86 * ftfont.c (ftfont_filter_properties): New function.
87
88 * frame.c (x_set_font): Remove unused variable lval.
89
87e32266 90 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
91
92 * font.c (font_put_extra): Don't return if val is nil, it means
93 boolean option is off.
94 (font_parse_fcname): Collect all extra properties in extra_props
95 and call filter_properties for all drivers with extra_props and
96 font as parameter.
87e32266
SM
97 (font_open_entity): Do not use cache, it does not pick up new
98 fontconfig settings like hinting.
637fa988
JD
99 (font_load_for_lface): If spec had a name in it, store it in entity.
100
101 * emacs.c (main): Call syms_of_xsettings
102
103 * config.in: HAVE_GCONF is new.
104
105 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
106 xsettings.o is new.
107
5a942932
KH
1082009-11-17 Kenichi Handa <handa@m17n.org>
109
110 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
111 back to the default font in case that no suitable font is found.
112
b7c7a4d1
SM
1132009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
114
115 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
116 Suggested by Chad Brown <yandros@mit.edu>.
117 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
118
072f1e39
JD
1192009-11-16 Jan Djärv <jan.h.d@swipnet.se>
120
121 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
122
5d1e70a2
AS
1232009-11-14 Andreas Schwab <schwab@linux-m68k.org>
124
87e32266 125 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 126
a53cfbe5
JD
1272009-11-14 Jan Djärv <jan.h.d@swipnet.se>
128
473a99b7
JD
129 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
130 has a parent.
131
a53cfbe5
JD
132 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
133 dependency files in deps/. Include those files into Makefile.
134
135 * config.in: Generated (AUTO_DEPEND).
136
f04bb9b2
MA
1372009-11-13 Michael Albinus <michael.albinus@gmx.de>
138
b7c7a4d1 139 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
140 Vdbus_registered_functions_table, because it contains also
141 properties. Fix docstring.
b7c7a4d1 142 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 143
8f11f7ec
SM
1442009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
145
146 * alloc.c (mark_object): Don't reprocess marked strings.
147 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
148 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
149
8a605fe8
KH
1502009-11-13 Kenichi Handa <handa@m17n.org>
151
8f11f7ec 152 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
153 semantics of Vword_combining_categories.
154 (Vword_combining_categories): Describe the slight change of the
155 semantics.
156
241c4680
EZ
1572009-11-13 Eli Zaretskii <eliz@gnu.org>
158
159 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
160
161 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
162
5d58e44c
SM
1632009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
164
165 * xdisp.c (syms_of_xdisp): Fix typo in last change.
166
5e13f9d3
JB
1672009-11-12 Juanma Barranquero <lekktu@gmail.com>
168
169 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
170
cf54c754
DR
1712009-11-11 David Reitter <david.reitter@gmail.com>
172
173 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
174 variables to fix 2009-11-09 change.
175
a4ada374
DN
1762009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
177
91433552
DN
178 * process.c (ifflag_def): Make flag_sym constant.
179 (Fnetwork_interface_info): Use a constant pointer.
180 (ifflag_table):
181 * xfns.c (cursor_bits):
182 * xdisp.c (power_letter):
183 * termcap.c (speeds, esctab):
184 * sysdep.c (baud_convert):
185 * keyboard.c (lispy_accent_codes, modifier_names):
186 * image.c (xbm_format, xpm_format, pbm_format, png_format)
187 (jpeg_format, tiff_format, gif_format, svg_format)
188 (interlace_start, interlace_increment, gs_format):
189 * gtkutil.c (separator_names):
190 * fringe.c (swap_nibble):
191 * fns.c (base64_value_to_char, base64_char_to_value):
192 * fileio.c (make_temp_name_tbl):
193 * coding.c (suffixes): Make constant.
194
f4265f6c
DN
195 * frame.c (make_initial_frame):
196 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
197 build_string.
198 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
199
04420943
DN
200 * s/freebsd.h:
201 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
202
0a5d24ae
DN
203 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
204 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
205
a4ada374
DN
206 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
207 * xterm.c (syms_of_xterm):
208 * xfaces.c (syms_of_xfaces):
209 * xdisp.c (syms_of_xdisp):
210 * lread.c (syms_of_lread):
211 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
212 build_string.
91433552 213
a4ada374
DN
214 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
215
af98fc7f
SM
2162009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
217
8ab1650e 218 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 219
e90292a9
JD
2202009-11-10 Jan Djärv <jan.h.d@swipnet.se>
221
222 * keyboard.h: Declare timer_check.
223
224 * keyboard.c (timer_check_2): New function that does what the old
225 timer_check did.
226 (timer_check): Call timer_check_2 until -1 or a non-zero time is
227 returned, i.e. don't return -1 with timers pending.
228
229 * process.c: Remove extern declaration of timer_check.
230
231 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
232 even if timer_check returned -1.
233
af98fc7f
SM
234 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
235 xg_dialog_data.
e90292a9
JD
236 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
237 the event loop.
238 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
239 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
240 Destroy the dialog after xg_dialog_run.
241
045b83c0
SM
2422009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
243
244 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
245
1fb99a3a
JD
2462009-11-10 Jan Djärv <jan.h.d@swipnet.se>
247
248 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
249
04e452cb
JB
2502009-11-09 Juanma Barranquero <lekktu@gmail.com>
251
252 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
253
ef7417fd
SM
2542009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
255
256 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
257 w32menu.c, and nsmenu.m.
258 Simplify the obsolete case where position is nil.
259 (cleanup_popup_menu): New function, moved from nsmenu.m.
260 (struct skp): Remove slot `notreal'.
261 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
262 adjust callers.
263 (single_menu_item): Adjust call to parse_menu_item.
264 (syms_of_menu): Defsubr x-popup-menu.
265 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
266 (keymap_panes): Don't export any more.
267 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
268 (xmenu_show): Declare.
269 * keyboard.c (parse_menu_item): Remove arg `notreal'.
270 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
271 * keyboard.h (parse_menu_item): Update declaration.
272 * xmenu.c (Fx_popup_menu): Remove.
273 (syms_of_xmenu): Don't defsubr x-popup-menu.
274 * w32menu.c (Fx_popup_menu): Remove.
275 (syms_of_w32menu): Don't defsubr x-popup-menu.
276 * nsmenu.m (cleanup_popup_menu): Remove.
277 (ns_menu_show): Rename from ns_popup_menu and remove all the code
278 moved to menu.c's Fx_popup_menu.
279 (Fx_popup_menu): Remove.
280 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
281 menu_items (it's done in menu.c already).
282
424d6179
SM
2832009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
284
285 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
286 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
287
c0df13a6 2882009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
289
290 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 291 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
292 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
293 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
294
2de9f71c
SM
2952009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
296
297 Let integers use up 2 tags to give them one extra bit and thus double
298 their range.
299 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
300 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
301 New macros.
302 (enum Lisp_Type): Use them. Give explicit values.
303 (Lisp_Type_Limit): Remove.
304 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
305 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
306 Pay attention to USE_2_TAGS_FOR_INTS.
307 (INTEGERP): Use LISP_INT_TAG_P.
308 * fns.c (internal_equal): Simplify the default case.
309 (sxhash): Use case_Lisp_Int.
310 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
311 any more.
312 (Ftype_of): Use case_Lisp_Int.
313 (store_symval_forwarding): Take into account the fact that Ints can
314 now have more than one tag.
315 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
316 buffer_slot_type_mismatch):
317 * xfaces.c (face_attr_equal_p):
318 * print.c (print_object):
319 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
320 Use case_Lisp_Int.
321
323637a2
EZ
3222009-11-06 Eli Zaretskii <eliz@gnu.org>
323
7ac65b38
EZ
324 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
325
323637a2
EZ
326 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
327 warning.
328
e511451f
JD
3292009-11-06 Jan Djärv <jan.h.d@swipnet.se>
330
331 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
332
333 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
334
335 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
336 ButtonPressRelease and MotionNotify (bug#4870).
337
5e2327cf
DN
3382009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
339
5adc433e
DN
340 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
341
d67b4f80
DN
342 * xterm.c (syms_of_xterm):
343 * xselect.c (syms_of_xselect):
344 * xmenu.c (syms_of_xmenu):
345 * xfns.c (syms_of_xfns):
346 * xfaces.c (syms_of_xfaces):
347 * xdisp.c (syms_of_xdisp):
348 * window.c (syms_of_window):
349 * w32fns.c (syms_of_w32fns):
350 * undo.c (syms_of_undo):
351 * textprop.c (syms_of_textprop):
352 * terminal.c (syms_of_terminal):
353 * syntax.c (syms_of_syntax):
354 * sound.c (syms_of_sound):
355 * search.c (syms_of_search):
356 * print.c (syms_of_print):
357 * minibuf.c (syms_of_minibuf):
358 * macros.c (syms_of_macros):
359 * keymap.c (syms_of_keymap, initial_define_key)
360 (initial_define_lispy_key):
361 * keyboard.c (syms_of_keyboard):
362 * insdel.c (syms_of_insdel):
363 * image.c (syms_of_image):
364 * fringe.c (syms_of_fringe):
365 * frame.c (syms_of_frame):
366 * fontset.c (syms_of_fontset):
367 * fns.c (syms_of_fns):
368 * fns.c (syms_of_fns):
369 * fileio.c (syms_of_fileio):
370 * fileio.c (syms_of_fileio):
371 * eval.c (syms_of_eval):
372 * doc.c (syms_of_doc):
373 * dispnew.c (syms_of_display):
374 * dired.c (syms_of_dired):
375 * dbusbind.c (syms_of_dbusbind):
376 * data.c (syms_of_data):
377 * composite.c (syms_of_composite):
378 * coding.c (syms_of_coding):
379 * cmds.c (syms_of_cmds):
380 * charset.c (define_charset_internal, syms_of_character):
381 * ccl.c (syms_of_ccl):
382 * category.c (syms_of_category, init_category_once):
383 * casetab.c (syms_of_casetab):
384 * casefiddle.c (syms_of_casefiddle):
385 * callint.c (syms_of_callint):
386 * bytecode.c (syms_of_bytecode):
387 * buffer.c (keys_of_buffer, syms_of_buffer):
388 * alloc.c (syms_of_alloc):
389 * process.c (syms_of_process, init_process):
390 * lread.c (syms_of_lread, init_obarray):
391 * font.c (build_style_table):
392 * emacs.c (syms_of_emacs, main): Replace calls to intern with
393 intern_c_string, calls to make_pure_string with
394 make_pure_c_string. Use pure_cons instead of Fcons.
395
5e2327cf
DN
396 * process.c (socket_options): Make it const.
397 (set_socket_option, init_process): Use a const pointer.
398
399 * lread.c (intern_c_string): New function.
400 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
401 (defvar_int): Uset it. Make the name const char*.
402
403 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
404 (defvar_int): Update prototypes.
405 (DEFUN, EXFUN): Support for prototypes is now required.
406 (intern_c_string): New prototype.
407 (struct Lisp_Subr): Make symbol_name constant.
408
409 * font.c (struct table_entry): Remove unused member. Make NAMES
410 constant.
411 (weight_table, slant_table, width_table): Make constant.
412
413 * emacs.c (struct standard_args): Make name and longname constant.
414
415 * character.h (DEFSYM): Use intern_c_string.
416
a56eaaef
DN
4172009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
418
419 * alloc.c (make_pure_c_string): New function.
420
421 * eval.c (Fautoload): Purecopy all arguments.
422
f6a07420
KH
4232009-11-05 Kenichi Handa <handa@m17n.org>
424
425 * fileio.c (Finsert_file_contents): Be sure set coding-system of
426 the buffer in case of replace.
427
5d28d4b1
DN
4282009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
429
430 * puresize.h (BASE_PURESIZE): Increase to 1620000.
431
b349d111
SM
4322009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
433
d528b1ce
SM
434 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
435 when applicable (bug#4851).
436
b349d111
SM
437 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
438 (P_): Support for prototypes is now required.
439
c38eb027
CY
4402009-10-31 Chong Yidong <cyd@stupidchicken.com>
441
442 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
443 (Bug#4827).
444
0405f8d9
EZ
4452009-10-30 Eli Zaretskii <eliz@gnu.org>
446
d528b1ce 447 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 448
ca0a881a
DN
4492009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
450
451 * puresize.h (BASE_PURESIZE): Increase to 1470000.
452
d528b1ce
SM
453 * lread.c (Fload): Purecopy the file name when building
454 Vpreloaded_file_list.
ca0a881a 455
47e0e0e4
JR
4562009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
457
458 * w32fns.c (syms_of_w32fns): Change default value of
459 w32-scroll-lock-modifier to nil. (Bug#2827)
460
057bce6f
JB
4612009-10-26 Juanma Barranquero <lekktu@gmail.com>
462
782a943e 463 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 464
242bc74c
AS
4652009-10-26 Andreas Schwab <schwab@redhat.com>
466
467 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
468
522d013a
JB
4692009-10-26 Juanma Barranquero <lekktu@gmail.com>
470
471 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
472 For delta < 0, skip check that only makes sense when the mini-window
473 is going to be enlarged. (Bug#4534)
474
18060980
CY
4752009-10-25 Chong Yidong <cyd@stupidchicken.com>
476
477 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
478 string in menu maps (Bug#4471).
479
fec8f0fe
CY
4802009-10-24 Chong Yidong <cyd@stupidchicken.com>
481
482 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
483 FRAME_NS_VIEW on terminal frames (Bug#4765).
484
10d66ec0
AS
4852009-10-24 Andreas Schwab <schwab@linux-m68k.org>
486
1cae01f7
AS
487 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
488 DBUS_TYPE_UINTnn separately to get proper sign extension.
489
58a12889
AS
490 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
491 can properly handle unsigned types.
d528b1ce 492 (make_uid, make_gid): Remove.
58a12889 493
987c9327
AS
494 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
495 types again.
496
522d013a 497 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
498 (system_process_attributes): Likewise.
499
905a9ed3
DN
5002009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
501
502 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
503
504 * eval.c (Fautoload): Purecopy the filename. Simplify.
505
506 * category.c (Fdefine_category): Purecopy docstring.
507
a599b3e8
AS
5082009-10-23 Andreas Schwab <schwab@linux-m68k.org>
509
7b792fc9
AS
510 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
511
a599b3e8
AS
512 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
513
b35ac83e
CY
5142009-10-23 Chong Yidong <cyd@stupidchicken.com>
515
516 * window.c (Fwindow_edges, Fwindow_pixel_edges)
517 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
518 (Bug#4775).
519
e8903e00
SM
5202009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
521
522 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
523 (init_fileio_once):
524 * lisp.h (init_fileio_once): Remove.
525 * emacs.c (main): Don't call init_fileio_once.
526
8f43cbf3
DN
5272009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
528
529 * puresize.h (BASE_PURESIZE): Increase to 1430000.
530
26898943
AS
5312009-10-21 Andreas Schwab <schwab@linux-m68k.org>
532
533 * doprnt.c (doprnt): Fix overflow check.
534
5c646d5a
JD
5352009-10-21 Jan Djärv <jan.h.d@swipnet.se>
536
3132a7ea
JD
537 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
538
5c646d5a
JD
539 * xterm.h (x_wait_for_event): Declare it.
540
541 * xterm.c (pending_event_wait): New variable.
542 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
543 see pending_event_wait.eventtype.
544 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
545 (x_new_font): Call change_frame_size with new rows/columns before we
546 try to resize the frame.
5c646d5a 547 (x_wait_for_event): New function.
d528b1ce
SM
548 (x_set_window_size_1): Don't change gravity unless change_gravity
549 is set.
5c646d5a
JD
550 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
551 don't change frame size, instead wait for the ConfigureNotify.
552 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
553 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
554 (x_initialize): Initialize pending_event_wait.
555
556 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
557 size.
558
559 * widget.c (EmacsFrameSetValues): Add comment.
560 (EmacsFrameSetCharSize): Just call x_set_window_size.
561
562 * gtkutil.c (xg_frame_set_char_size): Flush events and call
563 x_wait_for_event.
d528b1ce 564 (flush_and_sync): Remove again.
5c646d5a
JD
565 (xg_get_font_name): Suggest monospace if no previous font is known.
566
e9c1637d
SM
5672009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
568
569 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 570 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 571
5a72cccb
YM
5722009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
573
574 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
575 processing pending events when event is filtered for input method.
ab04798f 576 (Bug#3681)
5a72cccb 577
2629aa37
JB
5782009-10-20 Juanma Barranquero <lekktu@gmail.com>
579
580 * fns.c: Add #endif accidentally removed in previous change.
581
c3417a74
DN
5822009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
583
584 * fns.c: Remove code for unsupported system: MAC_OS.
585 * image.c: Likewise. Include setjmp.h.
586
9685cef2
JD
5872009-10-19 Jan Djärv <jan.h.d@swipnet.se>
588
589 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
590 pixel -1 (bug #4742).
591
d7306fe6
DN
5922009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
593
019d2c4c
DN
594 * process.c (create_pty): Remove conditionals for no longer
595 supported systems: UNIPLUS and RTU.
596
ee6bacd4
DN
597 * xterm.c:
598 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
599
d7306fe6
DN
600 * alloc.c: Do not define struct catchtag.
601 * eval.c: Move struct catchtag definition ...
602 * lisp.h: ... here.
603
604 * image.c: Move png.h #include earlier to avoid warnings.
605
606 * xterm.c:
607 * xsmfns.c:
608 * xselect.c:
609 * xrdb.c:
610 * xmenu.c:
611 * xftfont.c:
612 * xfont.c:
613 * xfns.c:
614 * xfaces.c:
615 * xdisp.c:
616 * window.c:
617 * widget.c:
618 * w32xfns.c:
619 * w32uniscribe.c:
620 * w32term.c:
621 * w32select.c:
622 * w32reg.c:
623 * w32proc.c:
624 * w32menu.c:
625 * w32inevt.c:
626 * w32heap.c:
627 * w32font.c:
628 * w32fns.c:
629 * w32console.c:
630 * w32.c:
631 * w16select.c:
632 * vm-limit.c:
633 * unexsol.c:
634 * unexec.c:
635 * unexcw.c:
636 * unexaix.c:
637 * undo.c:
638 * tparam.c:
639 * textprop.c:
640 * terminfo.c:
641 * terminal.c:
642 * termcap.c:
643 * term.c:
644 * syntax.c:
645 * sound.c:
646 * sheap.c:
647 * search.c:
648 * scroll.c:
649 * region-cache.c:
650 * regex.c:
651 * ralloc.c:
652 * process.c:
653 * print.c:
b024548b
DN
654 * nsterm.m:
655 * nsselect.m:
656 * nsmenu.m:
657 * nsimage.m:
658 * nsfont.m:
659 * nsfns.m:
d7306fe6
DN
660 * msdos.c:
661 * minibuf.c:
662 * menu.c:
663 * marker.c:
664 * macros.c:
665 * keymap.c:
666 * keyboard.c:
667 * intervals.c:
668 * insdel.c:
669 * indent.c:
670 * gtkutil.c:
671 * ftxfont.c:
672 * ftfont.c:
673 * fringe.c:
674 * frame.c:
675 * fontset.c:
676 * font.c:
677 * fns.c:
678 * floatfns.c:
679 * filelock.c:
680 * fileio.c:
681 * emacs.c:
682 * editfns.c:
683 * dosfns.c:
684 * doprnt.c:
685 * doc.c:
686 * dispnew.c:
687 * dired.c:
688 * dbusbind.c:
689 * data.c:
690 * composite.c:
691 * coding.c:
692 * cmds.c:
693 * cm.c:
694 * chartab.c:
695 * charset.c:
696 * character.c:
697 * ccl.c:
698 * category.c:
699 * casetab.c:
700 * casefiddle.c:
701 * callproc.c:
702 * callint.c:
703 * bytecode.c:
704 * buffer.c:
705 * atimer.c: Include setjmp.h. (Bug#4643)
706
fd5f21e6
SM
7072009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
708
4c0354d7
SM
709 Remove leftover table unibyte_to_multibyte_table.
710 * character.c (unibyte_to_multibyte_table): Remove.
711 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
712 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
713 * character.h (UNIBYTE_TO_CHAR): New macro.
714 (MAKE_CHAR_MULTIBYTE): Use it.
715 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
716 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
717 (message_dolog, set_message_1):
718 * search.c (Freplace_match):
719 * editfns.c (Fcompare_buffer_substrings):
720 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
721 (concat):
722 * insdel.c (copy_text, count_size_as_multibyte):
723 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
724 * term.c (produce_glyphs):
725 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
726 * regex.c (RE_CHAR_TO_MULTIBYTE):
727 * cmds.c (internal_self_insert):
728 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
729
fd5f21e6
SM
730 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
731
4418646e
DN
7322009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
733
734 * puresize.h (BASE_PURESIZE): Increase to 1310000.
735
35f5c1d2
JB
7362009-10-16 Juanma Barranquero <lekktu@gmail.com>
737
738 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
739
a0cd8f6b
AR
7402009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
741
742 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
743 still needed under Tiger.
744
745 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
746
747 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
748 __Apple__.
749
750 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
751
01a8d3fa
KH
7522009-10-15 Kenichi Handa <handa@m17n.org>
753
754 * print.c (print_object): Escape a symbol like "2E10" too.
755
bf6c75c9 7562009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
757
758 Cleanups and changes for 64-bit compile under Snow Leopard.
759 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
760
761 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
762
c5959062 763 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
764 (ns_findfonts, nsfont_list_family): Use long format in printf, and
765 cast argument.
766 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 767 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
768
769 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
770
771 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
772 where appropriate.
773
774 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
775 where appropriate.
6e4780c5
JB
776 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
777 Use stringWithUTF8String.
bf6c75c9
AR
778 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
779
6e4780c5
JB
780 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
781 Add formal protocol mention to inheritance.
bf6c75c9
AR
782 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
783
6e4780c5
JB
784 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
785 Fix printf format.
bf6c75c9
AR
786 (ns_query_color): Use CGFloat where appropriate.
787 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
788 (EmacsScroller-mouseDown:) Use long format in printf, and cast
789 argument.
790
3d87f118
AR
791 * config.in (NS_HAVE_NSINTEGER): Drop.
792
a95c8102
AR
793 * dbusbind.c (dbus-method-return-internal)
794 (dbus-method-error-internal): Use long format in printf, and cast
795 argument.
796
797 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
798 in printf, and cast argument.
799
6873acca 800 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
801 cast argument.
802
9ec6f100
GM
8032009-10-11 Glenn Morris <rgm@gnu.org>
804
805 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
806
5be883cd
JD
8072009-10-08 Jan Djärv <jan.h.d@swipnet.se>
808
809 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
810 menu bar with a small width so it doesn't enlarge the frame.
811
d7a39b51
JB
8122009-10-08 Juanma Barranquero <lekktu@gmail.com>
813
814 * fontset.c (Fset_fontset_font): Fix typos in error messages.
815
0c2b6f8e
GM
8162009-10-06 Glenn Morris <rgm@gnu.org>
817
818 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
819 SOME_MACHINE_LISP (this enters indirectly via DOC).
820
e02131a2
EZ
8212009-10-05 Eli Zaretskii <eliz@gnu.org>
822
823 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
824
b4744254
EZ
8252009-10-04 Eli Zaretskii <eliz@gnu.org>
826
827 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
828 Doc fix.
829
dbf64827
JB
8302009-10-03 Martin Rudalics <rudalics@gmx.at>
831
832 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
833
e9a0aef8
MA
8342009-10-02 Michael Albinus <michael.albinus@gmx.de>
835
d528b1ce 836 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
837 used anymore outside fileio.c.
838
839 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
840
64eb2b56
JB
8412009-10-01 Juanma Barranquero <lekktu@gmail.com>
842
843 * lisp.h (Qdelete_directory_internal):
844 Declare, instead of Qdelete_directory.
845
846 * w32fns.c (Fsystem_move_file_to_trash): Use it.
847
9d28c33e
SM
8482009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
849
850 * eval.c (Fcalled_interactively_p): Add `kind' argument.
851
9d8f3bd9
MA
8522009-10-01 Michael Albinus <michael.albinus@gmx.de>
853
9d28c33e 854 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
855 Fdelete_directory. It is not a command anymore. It has no file
856 name handler.
857
9694740b
SM
8582009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
859
860 * xdisp.c (get_next_display_element): Use an enum in last change.
861
748e162f
KH
8622009-09-28 Kenichi Handa <handa@m17n.org>
863
9694740b 864 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
865 unibyte_display_via_language_environment in handling
866 Vnobreak_char_display.
867
17efd58d
AR
8682009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
869
870 * nsterm.h (ns_app_name): New extern variable.
871
872 * nsterm.m (ns_app_name): New variable.
873 (ns_term_init): Set and use it.
874 (ns_term_shutdown): Use it.
875
876 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
877 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
878
879 * nsfns.m (ns_set_name_iconic, ns_set_name)
880 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
881 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
882
9694740b
SM
883 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
884 Remove double-casting in client_data comparison.
31c2d412 885
3208cb35
YM
8862009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
887
888 * keyboard.c (make_lispy_event): Remember last wheel direction.
889 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
890
b7d552d6
GM
8912009-09-26 Glenn Morris <rgm@gnu.org>
892
893 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
894 internal.elc. Add term/pc-win.elc.
895 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
896 term/x-win.elc.
897 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
898 term/w32-win.elc.
899 (NS_SUPPORT): New.
900 (lisp): Add NS_SUPPORT.
901 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
902
4ff670a8
DR
9032009-09-25 David Reitter <david.reitter@gmail.com>
904
905 * nsmenu.m (EmacsMenu-clear): Recognize application menu
906 on Mac OS X 10.6+ (bug#4513).
907
feabfb6c
JB
9082009-09-24 Juanma Barranquero <lekktu@gmail.com>
909
910 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
911 some parts of Emacs code (like font selection) don't grok them.
912 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 913
de59072a
AS
9142009-09-24 Andreas Schwab <schwab@redhat.com>
915
916 * coding.c (decode_coding_iso_2022): Fix operator precedence.
917
a489517b
JB
9182009-09-24 Juanma Barranquero <lekktu@gmail.com>
919
920 * dired.c (Fdirectory_files): Fix typo in docstring.
921
0592970c
AR
9222009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
923
924 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
925 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
926 (EmacsScroller-setPosition:portion:whole:): Remove -display call
927 under GNUstep.
928 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
929
930 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
931 glyph advancement.
932
48e8a88b
AR
9332009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
934
935 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 936 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
937
938 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
939 deleted (bug #4492).
940
e14f0a78
AR
941 * nsfont.m (Vns_reg_to_script): New lisp variable.
942 (syms_of_nsfont): Declare it.
943 (ns_registry_to_script): New function.
944 (ns_get_req_script): Call it.
945 (ns_findfonts): Don't give up on non-unicode registry.
946
947 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
948
5b650faa
SM
9492009-09-20 Tom Tromey <tromey@redhat.com>
950
951 * eval.c (find_handler_clause): Make stack-trace-on-error work in
952 batch mode (bug#4228).
953
a489517b 9542009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
955
956 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 957 carefully. (Bug #4339)
0bae4e09 958
fcfe06f3
CY
9592009-09-18 Chong Yidong <cyd@stupidchicken.com>
960
d798ba87 961 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 962
31642728
AR
9632009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
964
965 * emacs.c (inhibit_x_resources): Update doc string for NS.
966 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 967 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
968
969 * nsterm.h (ns_no_defaults): Remove.
970
971 * nsterm.m (ns_no_defaults): Remove.
972 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
973 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
974 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
975 don't update the NSWindow itself.
976 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 977 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
978
979 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
980 ns_use_qd_smoothing.
981
982 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
983 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 984 (x-close-connection): Drop PSFlush() under OS X.
a489517b 985 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 986
8686ac71
JB
9872009-09-17 Juanma Barranquero <lekktu@gmail.com>
988
989 * emacs.c (inhibit_x_resources): New variable.
990 (main) [HAVE_NS]: Don't process --quick command line option.
991 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
992
993 * lisp.h (inhibit_x_resources): Declare it extern.
994
995 * w32reg.c (x_get_string_resource):
996 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
997
e227ba05
EZ
9982009-09-17 Eli Zaretskii <eliz@gnu.org>
999
362654a6
JB
1000 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1001 Add lisp/term/internal.elc.
e227ba05 1002
742d40e8
SM
10032009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1004
1005 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1006 (bug#4461).
1007
005bd5a2
DN
10082009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1009
1010 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1011
1012 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1013 (OBJECTS_MACHINE): Remove, unused.
1014
f9af9719
SM
10152009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1016
1017 * frame.c (x_get_resource_string): Remove unused.
1018
0307c7d2
JD
10192009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1020
1021 * xterm.c (x_new_font): Call change_frame_size before calling
1022 x_set_window_size, in case frame size won't change.
1023
1024 * frame.c (x_set_font): Remove dead code.
1025
428b13d6
SM
10262009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1027
1028 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1029
5766c380
SM
10302009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1031
1032 * lread.c (Fload): Don't output a message after loading an obsolete
1033 package any more (done in Lisp now).
1034
2fd0161b
CY
10352009-09-12 Chong Yidong <cyd@stupidchicken.com>
1036
1037 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1038
bc5e75b6
SM
10392009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1040
1041 * keymap.c (Fwhere_is_internal): Use nconc2.
1042
c31c985e
AM
10432009-09-11 Alan Mackenzie <acm@muc.de>
1044
1045 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1046 batch mode.
1047
78012bd2
AS
10482009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1049
1050 * xdisp.c (display_mode_element): Detect cycles.
1051
9d889332
SM
10522009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1053
1054 * keymap.c (where_is_internal): Don't erroneously return nil right after
1055 filling the cache.
1056 (where_is_internal_1): Fix up typo.
1057
7ab5d780
GM
10582009-09-11 Glenn Morris <rgm@gnu.org>
1059
1060 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1061 share a common doc-string.
1062
5238a749
SM
10632009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1064
66d77eda
SM
1065 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1066 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1067
5238a749
SM
1068 * keymap.c (QCadvertised_binding): New constant.
1069 (syms_of_keymap): Initialize it.
1070 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1071 if applicable.
1072
19f48442
SM
10732009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1074
50d4ba39
SM
1075 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1076 (parse_menu_item): Streamline since bindings are recomputed all the
1077 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1078 more and don't support lmenu's menu-alias any more either.
1079
a88a5372
SM
1080 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1081 (where_is_internal): Strip it down to only traverse the keymaps.
1082 Move the cache handling from Fwhere_is_internal to here.
1083 (Fwhere_is_internal): Move the handling of remapping and the choice of
1084 the best binding from where_is_internal to here.
1085 Unify the cached/noncached paths, so remapping is also handled
1086 correctly when the cache is used, and so the cache can be used to
1087 speed up remap-handling when applicable.
1088 Give preference to non-remapped bindings.
1089 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1090 non-remapped bindings.
1091 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1092 command remapping.
1093
19f48442
SM
1094 * xdisp.c (display_mode_element): Move list length limit from 50 to
1095 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1096
599498c3 10972009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1098
1099 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1100
f9b7b5ac
SM
11012009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1102
a53af587
JB
1103 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1104 (Bug#4334)
1105
f9b7b5ac
SM
1106 * keymap.c (where_is_internal): Filter out shadowed remappings.
1107 Assume that where_is_internal returns unshadowed bindings to simplify
1108 the code and get rid of the gotos. Use ASIZE.
1109
04f4b72d
JD
11102009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1111
4da146f2
JD
1112 * xterm.c (x_focus_changed): If we get a focusout and pointer
1113 is invisible, make it visible.
1114
04f4b72d
JD
1115 * xterm.h: Remove condition for declaration of
1116 x_*_window_to_frame.
1117
7cef7ce3
SM
11182009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1119
1120 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1121 initial terminal as well.
1122
a54fa5b7
JD
11232009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1124
1125 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1126 x_menubar_window_to_frame.
a54fa5b7
JD
1127
1128 * xterm.c: Remove declarations also in xterm.h
1129 (XTmouse_position): Do not return valid positions
1130 for clicks in the menubar and the toolbar for Gtk+.
1131
1132 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1133 if the widget for the event has the same top level as a frame,
1134 return the frame.
1135 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1136 internal windows, bug #4122.
1137 (x_non_menubar_window_to_frame): Remove.
1138
5a021dd0
GM
11392009-09-02 Glenn Morris <rgm@gnu.org>
1140
1141 * buffer.c (default-major-mode): Move most of the doc from here...
1142 (major-mode): ... to here.
1143
548fe2f3
NR
11442009-08-30 Nick Roberts <nickrob@snap.net.nz>
1145
1146 * process.c (wait_reading_process_output): Keep the descriptor
1147 when pty is used by a non-child process, e.g., in I/O buffer of
1148 GDB this allows inferior to be restarted.
1149
e0840eef
EZ
11502009-08-29 Eli Zaretskii <eliz@gnu.org>
1151
1152 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1153 both branches into one.
1154
82e98df4
SM
11552009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1156
1157 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1158 (main): Use enable-multibyte-characters rather than
1159 default-enable-multibyte-characters. Output a warning message when
1160 running a unibyte session.
1161
890617cb
YM
11622009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1163
1164 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1165 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1166 (copy_data_segment): Also copy __program_vars section.
1167 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1168 (dump_it) [LC_DYLD_INFO]: Use it.
1169
1170 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1171
e7adeadc
EZ
11722009-08-28 Eli Zaretskii <eliz@gnu.org>
1173
1174 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1175 $(SRC)/buildobj.h.
1176 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1177 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1178 $(SRC)/buildobj.h.
1179 (clean): Add buildobj.h.
1180
3ed8bbdc
TZ
11812009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1182
1183 * print.c (print_object): Set escapeflag to 1 when printing
1184 hashtable keys and values.
1185
155a6764
SM
11862009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1187
1188 * lread.c (read_integer): Use doubles (and potentially return a float
1189 number) as we do in string-to-number.
1190 (read1): Use strtol to read integers, signal errors on strtol's
1191 overflow and use floats if strtol's output is too large for
1192 Elisp integers.
1193
877610de
EZ
11942009-08-27 Eli Zaretskii <eliz@gnu.org>
1195
1196 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1197 (make-buildobj-SH): Fix last change.
1198 (SRC): Move to before where it's first used.
1199
ef73e7be
KH
12002009-08-27 Kenichi Handa <handa@m17n.org>
1201
550c8289
KH
1202 * process.c (send_process): Use encode_coding_object instead of
1203 encode_coding_string to perform eol-conversion even if the string
1204 is unibyte.
1205
60afa08d
KH
1206 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1207 character.
1208
ef73e7be 1209 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1210 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1211
7b3a82d7
DN
12122009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1213
5654bf63
DN
1214 * callproc.c (Fcall_process): Remove always true #if.
1215
7b3a82d7
DN
1216 * lisp.h: Replace #if 0 code for checking with text pointing to
1217 the --enable-checking configure flag.
1218
1219 * emacs.c (main): Mention the --enable-profiling configure flag
1220 instead of using CFLAGS.
1221
878bde49
KR
12222009-08-26 Ken Raeburn <raeburn@raeburn.org>
1223
1224 * Makefile.in (buildobj.h): New target.
1225 (doc.o): Depend on it.
1226 (temacs${EXEEXT}): Don't generate buildobj.lst.
1227 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1228 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1229 ($(BLD)/doc.$(O)): Depend on it.
1230 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1231 provided by Eli Zaretskii.)
1232 ($(TEMACS)): Don't generate buildobj.lst.
1233 * doc.c: Include buildobj.h.
1234 (buildobj): New static variable.
1235 (Fsnarf_documentation): Use it, instead of opening and reading
1236 buildobj.lst.
1237
1574224c
MA
12382009-08-25 Michael Albinus <michael.albinus@gmx.de>
1239
1240 * dbusbind.c (Fdbus_call_method)
1241 (Fdbus_call_method_asynchronously): Use English numeric format for
1242 timeout values in doc string.
1243
d9da2f45
KH
12442009-08-25 Kenichi Handa <handa@m17n.org>
1245
ef73e7be
KH
1246 * alloc.c (mark_char_table): New function.
1247 (mark_object): Use mark_char_table for a char-table.
1248
d9da2f45
KH
1249 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1250 (CHAR_TABLE_REF): Use it.
1251
c8edcc01
KR
12522009-08-23 Ken Raeburn <raeburn@raeburn.org>
1253
1254 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1255 before invoking the newly build emacs to check for load-path
1256 shadowing.
1257
7763401b
GM
12582009-08-22 Glenn Morris <rgm@gnu.org>
1259
1260 * Makefile.in (bootstrap_exe): New variable.
1261 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1262 Use ${bootstrap_exe}.
1263
729eadda
EZ
12642009-08-22 Eli Zaretskii <eliz@gnu.org>
1265
1266 * coding.h (encode_coding_string): Don't encode unibyte strings.
1267 (Bug#4047)
1268
eb4c6ace
MA
12692009-08-22 Michael Albinus <michael.albinus@gmx.de>
1270
1271 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1272
1273 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1274 intended as hotfix only.
1275 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1276
36e34d1b
AR
12772009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1278
1279 * nsterm.m (ns_get_color): Update documentation properly for last
1280 change, and clean up loose ends in the code left by it. Fix
1281 longstanding bug with 16-bit hex parsing, and add support for
1282 yet another X11 format (rgb:r/g/b) for compatibility.
1283 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1284 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1285
f983eb8a
SM
12862009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1287
1288 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1289
3f56d3c6
MA
12902009-08-20 Michael Albinus <michael.albinus@gmx.de>
1291
1292 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1293 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1294 (xd_initialize, xd_pending_messages): Check, whether
1295 $DBUS_SESSION_BUS_ADDRESS is set.
1296
fb641d68
YM
12972009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1298
1299 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1300
1301 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1302
cf59a374
GM
13032009-08-20 Glenn Morris <rgm@gnu.org>
1304
1305 * emacs.c (system-type): Doc fix.
1306
1373f3be
SM
13072009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1308
1309 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1310 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1311
058ed861
MA
13122009-08-18 Michael Albinus <michael.albinus@gmx.de>
1313
1373f3be
SM
1314 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1315 New functions.
058ed861
MA
1316 (xd_initialize): Revert change from 2009-08-16.
1317
563a866e 13182009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1319
1320 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1321 font-group vector, return nil.
5fc05db0 1322
e42bdf01
CY
13232009-08-17 Chong Yidong <cyd@stupidchicken.com>
1324
1325 * process.c (status_notify): Don't perform redisplay.
1326 (Fdelete_process, list_processes_1, process_send_signal):
1327 Expliticly perform redisplay.
1328 (wait_reading_process_output): Always check process status, but
1329 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1330
4230ab74
KR
13312009-08-17 Ken Raeburn <raeburn@raeburn.org>
1332
1373f3be 1333 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1334 (XFLOAT_INIT): New macro for storing a float value.
1335 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1336 * fns.c (sxhash): Copy out the value of a float in order to
1337 examine its bytes.
1338 * dbusbind.c (xd_append_arg): Likewise.
1339
4230ab74
KR
1340 * emacs.c (main): Don't call syms_of_data twice.
1341
a0645cdd
MA
13422009-08-16 Michael Albinus <michael.albinus@gmx.de>
1343
1344 * dbusbind.c (xd_initialize): Add connection file descriptor to
1345 input_wait_mask, in order to let select() detect, whether a new
1346 message has been arrived.
ca4f31ea 1347 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1348
485db0ba
MA
13492009-08-15 Michael Albinus <michael.albinus@gmx.de>
1350
1373f3be
SM
1351 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1352 New functions.
485db0ba
MA
1353
1354 * lisp.h (xd_pending_messages): Declare.
1355
1356 * keyboard.c (readable_events): Call xd_pending_messages.
1357
b5b98ff4
CY
13582009-08-15 Chong Yidong <cyd@stupidchicken.com>
1359
1373f3be 1360 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1361
f8354c6e
CY
1362 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1363
b5b98ff4
CY
1364 * buffer.c (set_buffer_internal_1)
1365 (swap_out_buffer_local_variables): Check for unbound local
1366 variables (Bug#4138).
1367
8b9fc636
EZ
13682009-08-14 Eli Zaretskii <eliz@gnu.org>
1369
1370 * process.c (create_pty): Fix last change.
1371
ce959360
CY
13722009-08-13 Chong Yidong <cyd@stupidchicken.com>
1373
1374 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1375 (xbm_load_image): Caller changed.
64b807c9 1376 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1377
c7baf7e9
NR
13782009-08-13 Nick Roberts <nickrob@snap.net.nz>
1379
1380 * process.c (create_pty): New function.
1381 (Fstart_process): Use it to allow Emacs to just associate a pty
1382 with the buffer. See associated change in gdb-mi.el.
1383 (list_processes_1): Deal with no program name.
1384 (start_process_unwind): Use pid == -2 to mean no process.
1385
1ac9108a
SM
13862009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1387
1388 * cmds.c (nonundocount): New global variable.
1389 (keys_of_cmds): Initialize it.
1390 (Fself_insert_command): Use it to combine upto 20 sequential chars
1391 into a single undo entry, just like the Qself_insert_command code in
1392 keyboard.c does.
1393 Call frame_make_pointer_invisible, also like the Qself_insert_command
1394 code in keyboard.c does.
1395 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1396 than its own local replacement for it.
1397
e267324c
KR
13982009-08-10 Ken Raeburn <raeburn@raeburn.org>
1399
1ac9108a 1400 * fns.c (concat): Don't re-set string length to its current value.
77437343 1401
1ac9108a
SM
1402 * coding.h (decode_coding_string, encode_coding_string):
1403 Use SBYTES macro.
f0bed503 1404
1ac9108a 1405 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1406 (doprnt): Merge with doprnt1, discarding lispstrings code.
1407 * lisp.h (doprnt_lisp): Don't declare.
1408
416e006d
JL
14092009-08-07 Juri Linkov <juri@jurta.org>
1410
1411 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1412
6f7d5780
DN
14132009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1414
1415 * print.c (syms_of_print): Undo previous change.
1416
f19a0f5b
TZ
14172009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1418
1419 * lread.c (read1, syms_of_lread): Read hashtables back from the
1420 readable format.
1421
1422 * print.c (print_preprocess, print_object): Print hashtables fully
1423 and readably.
1424 (syms_of_print): Provide 'hashtable-print-readable.
1425
b9173dc2
AR
14262009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1427
1428 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1429 no family set.
1430 (nsfont_open): Handle case when entity has no family.
1431
1586503c
AR
14322009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1433
1434 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1435 element, not a list, for match case.
1436
087048cd
KH
14372009-07-28 Kenichi Handa <handa@m17n.org>
1438
1439 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1440 rigidly.
1441
1442 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1443 font_parse_xlfd. Check font properties more rigidly.
1444
780c2506
DN
14452009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1446
31fd7c5c
JB
1447 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1448 bsd-common.h.
780c2506 1449
a8c0cc18
KH
14502009-07-27 Kenichi Handa <handa@m17n.org>
1451
1452 * xfaces.c (face_with_height): Call font_clear_prop.
1453
4fbe2306
CY
14542009-07-26 Chong Yidong <cyd@stupidchicken.com>
1455
111d9af3
CY
1456 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1457
1458 * xterm.c (x_term_init): Use Qx.
1459
4fbe2306
CY
1460 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1461
1ac9108a 1462 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1463 (ns_get_color): Revert 2009-07-16 change.
1464
beb0b7f9
EZ
14652009-07-25 Eli Zaretskii <eliz@gnu.org>
1466
1467 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1468 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1469
2baf5e76
KR
14702009-07-25 Ken Raeburn <raeburn@raeburn.org>
1471
1ac9108a
SM
1472 * coding.h (decode_coding_string, encode_coding_string):
1473 Use SCHARS macro.
8890e5f5 1474
2baf5e76 1475 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1476 (load_depth): Delete.
2baf5e76
KR
1477 (Qload_in_progress): New variable.
1478 (load_unwind): Don't reference load_depth or load_in_progress.
1479 (Fload): Likewise; specbind Qload_in_progress instead.
1480 (init_lread): Don't initialize load_depth.
1481 (syms_of_lread): Initialize and protect Qload_in_progress.
1482
1395c6f5
AR
14832009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1484
1485 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1486
4e2f36cf
AR
14872009-07-23 Yavor Doganov <yavor@gnu.org>
1488
1489 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1490
5dd9a6f7
AR
14912009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1492
1493 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1494 Bugs 3792, 3720, 2402.
1495 (ns_lookup_indexed_color): Check for bad index.
1496 (ns_index_color): Init unused slot to 0.
1497 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1498 Bug 3714, possibly 3082.
5dd9a6f7 1499
c902b920
JR
15002009-07-22 Jason Rumney <jasonr@gnu.org>
1501
1ac9108a
SM
1502 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1503 Position IME window at cursor (Bug#2570).
c902b920
JR
1504 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1505 (globals_of_w32fns): Dynamically load functions required above.
1506
1507 * w32term.c (w32_draw_window_cursor): Send message to reposition
1508 any IME window.
1509
090101cf
CY
15102009-07-21 Chong Yidong <cyd@stupidchicken.com>
1511
1512 * fileio.c: Revert 2009-07-16 changes.
1513 (Vauto_save_include_big_deletions): New variable.
1514 (Fdo_auto_save): Disable auto-save only if
1515 auto-save-include-big-deletions is nil.
1516
e6583e3d
CY
15172009-07-21 Chong Yidong <cyd@stupidchicken.com>
1518
1519 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1520 the overflowed pixels into account (Bug#3879).
1521
ece435a5
KR
15222009-07-21 Ken Raeburn <raeburn@raeburn.org>
1523
1524 * lread.c (load_depth): New variable.
1525 (Fload, load_unwind, init_lread): Set it to the load recursion
1526 depth; set load_in_progress as a simple boolean based on the
1527 current load_depth. (Bug#3892)
1528
40b2d973
AR
15292009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1530
1531 * nsfont.m (ns_has_attribute): Remove.
1532 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1533
10be7e0d
JL
15342009-07-18 Juri Linkov <juri@jurta.org>
1535
1536 * process.c (Fset_process_query_on_exit_flag): Mention killing
1537 a buffer in docstring.
1538
fa055055
KH
15392009-07-17 Kenichi Handa <handa@m17n.org>
1540
1541 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1542
042f7b69
YM
15432009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1544
1545 * nsfns.m (Fns_set_alpha): Remove function.
1546 (syms_of_nsfns): Don't defsubr it.
1547
1548 * nsterm.m (ns_get_color): Remove incompatible color formats.
1549 (ns_color_to_lisp): Generate #rrggbb color format string.
1550
4be941e3
RS
15512009-07-16 Richard Stallman <rms@gnu.org>
1552
1553 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1554 (Fset_buffer_auto_saved): Handle save_length = -2.
1555
4e6b227d
CY
15562009-07-16 Chong Yidong <cyd@stupidchicken.com>
1557
1558 * xterm.c (Qx_gtk_map_stock): New var.
1559
1560 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1561 of calling intern each time.
1562
a1856973
YM
15632009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1564
1565 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1566 does tiling.
1567
1568 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1569
497e54d8
KH
15702009-07-14 Kenichi Handa <handa@m17n.org>
1571
72d36834
KH
1572 * font.c (font_vconcat_entity_vectors): New function.
1573 (struct font_sort_data): New member font_driver_preference.
1574 (font_compare): Check font_driver_preference.
1575 (font_sort_entities): The format of the first argument changed.
1576 (font_delete_unmatched): Likewise.
1577 (font_list_entities): The return type changed.
1578 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1579 (font_find_for_lface): Adjuste for the above changes.
1580 Don't suppress the checking of C even if the repertory supports it.
1581 (Flist_fonts): Adjust for the above changes.
72d36834 1582
1ac9108a
SM
1583 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1584 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1585 Reject a font who has adstyle property that is different from a
1586 langname derived from registry property.
1ac9108a 1587 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1588
b6046155
EZ
15892009-07-13 Eli Zaretskii <eliz@gnu.org>
1590
1591 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1592 local copy of dirfilename.
1593
fb6b6049
KH
15942009-07-13 Kenichi Handa <handa@m17n.org>
1595
e2402a5e
KH
1596 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1597 against max_char.
1598
fb6b6049
KH
1599 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1600 calling XSYMBOL (sym).
1601
65156807
EZ
16022009-07-11 Eli Zaretskii <eliz@gnu.org>
1603
1ac9108a
SM
1604 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1605 New function.
1606 (directory_files_internal) [WINDOWSNT]:
1607 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1608 the filesystem of the directory is fast or slow.
1609
1610 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1611 file name.
1612 (is_slow_fs): New function.
1613 (stat): Use it to determine whether to issue more system calls to
1614 get accurate file attributes, when w32-get-true-file-attributes is
1615 `local'.
1616
e0ab5fcf
JD
16172009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1618
1619 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1620 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1621 parameter font-parameter as default to the font dialog.
1622
784ceded
KH
16232009-07-10 Kenichi Handa <handa@m17n.org>
1624
1625 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1626
fb8edc0b
EZ
16272009-07-09 Eli Zaretskii <eliz@gnu.org>
1628
1ac9108a 1629 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1630
fb8edc0b
EZ
1631 * w32.c (stat): Treat UNC file names as residing on remote
1632 drives. (Bug#3542)
1633
635c75b1
KH
16342009-07-09 Kenichi Handa <handa@m17n.org>
1635
1636 * fontset.c (fontset_find_font): Fix previous change.
1637
c1d5ce94
MA
16382009-07-08 Michael Albinus <michael.albinus@gmx.de>
1639
1640 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1641 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1642 error flag.
1643
edb61b39
KH
16442009-07-08 Kenichi Handa <handa@m17n.org>
1645
374bf7e4
KH
1646 * fontset.c (fontset_find_font): Fix the logic of handling
1647 charset_matched.
1648 (font_for_char): Delete unused var.
1649 (generate_ascii_font_name): Delete it.
1650
edb61b39
KH
1651 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1652
1653 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1654 (encode_coding_sjis): Fix the code range check.
1655
0f3f018c
CY
16562009-07-07 Chong Yidong <cyd@stupidchicken.com>
1657
1658 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1659 (Fexpand_file_name): Copy string data properly (Bug#3772).
1660
fcaf6f3a
JD
16612009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1662
1663 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1664 first MapNotify.
1665
6809ca75
KH
16662009-07-07 Kenichi Handa <handa@m17n.org>
1667
1668 * character.h (unibyte_has_multibyte_table): Delete extern.
1669 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1670
1671 * charset.c (Fset_charset_priority): Update charset_unibyte.
1672 (syms_of_charset): Initialize charset_unibyte.
1673
1674 * character.c (unibyte_has_multibyte_table): Delete it.
1675 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1676 charset_unibyte.
1677 (multibyte_char_to_unibyte_safe): Likewise.
1678 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1679
1ac9108a 1680 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1681 (x_produce_glyphs): Likewise.
1682
1683 * .gdbinit (xcharset): Fix the treating $arg0.
1684
ad9e2d54
EZ
16852009-07-04 Eli Zaretskii <eliz@gnu.org>
1686
1687 Emulation of `getloadavg' on MS-Windows.
1688 * w32.c: Include float.h
1689 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1690 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1691 (get_native_system_info, get_system_times): New functions.
1692 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1693 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1694 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1695 g_b_init_get_system_times, and num_of_processors.
1696
0a3472c7
JR
16972009-07-03 Jason Rumney <jasonr@gnu.org>
1698
1699 * w32term.c (w32_initialize): Use standard types.
1700
80904120
EZ
17012009-07-03 Eli Zaretskii <eliz@gnu.org>
1702
1703 * dired.c (Ffile_attributes): Decode user and group names by the
1704 locale's encoding. (Bug#3443)
1705
6978862d
DN
17062009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1707
f8d23104
DN
1708 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1709 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1710
1711 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1712
1713 * term.c (init_tty): Remove spurious #ifdef.
1714
6978862d
DN
1715 * m/mips.h: Mention this file is also used for netbsd.
1716 * m/pmax.h: Remove file.
1717
e044e4fc
JD
17182009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1719
1720 * xterm.h (struct x_display_info): Add invisible_cursor.
1721 (struct x_output): Add current_cursor.
1722
1723 * xterm.c (XTtoggle_invisible_pointer): New function.
1724 (x_define_frame_cursor): Don't define cursor if invisible or the
1725 same as before. Set current_cursor.
1726 (x_create_terminal): Set toggle_invisible_pointer_hook.
1727
1728 * xfns.c (make_invisible_cursor): New function.
1729 (x_set_mouse_color): Call make_invisible_cursor.
1730 Set current_cursor.
1731 (x_window): Set current_cursor.
1732
1733 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1734
1735 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1736 inserting a character.
1737 (read_avail_input): Call frame_make_pointer_visible.
1738
1739 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1740 (frame_make_pointer_invisible, frame_make_pointer_visible):
1741 New functions.
e044e4fc
JD
1742 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1743
1744 * frame.h: Declare frame_make_pointer_invisible and
1745 frame_make_pointer_visible.
1746 (struct frame): Add pointer_invisible.
1747
574c8efa
JD
17482009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1749
7b507248
JD
1750 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1751 frame isn't visible.
1752 (xg_frame_resized): If width/height is -1, get size of window
1753 from X server.
1754
1755 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1756 for MapNotify.
1757
835bdaa7 1758 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1759 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1760 (flush_and_sync): Reintroduce.
574c8efa 1761
3f1c6666 17622009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1763
31fd7c5c 1764 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1765
1766 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1767 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1768
1769 * frame.h: Declare Qsticky.
1770
cad9ef74
JD
1771 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1772
1773 * nsfns.m (ns_frame_parm_handlers): Ditto.
1774
1775 * frame.c: Declare Qsticky.
1776 (frame_parms): Add sticky.
1777
1778 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1779
1780 * xterm.h: Declare x_set_sticky.
1781
1782 * xterm.c (x_set_sticky): New function.
1783
69b16610
JD
1784 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1785 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1786 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1787
1788 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1789
1790 * frame.c: Qmaximized is new.
1791 (x_set_frame_parameters): Do not handle fullscreen specially.
1792 Only set width and height if explicitly set.
1793 (x_set_fullscreen): Handle Qmaximized.
1794 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1795 (syms_of_frame): Initialize Qmaximized.
1796
1ac9108a
SM
1797 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1798 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1799
1800 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1801 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1802 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1803 set gravity to NorthWestGravity when USE_GTK.
1804 (set_wm_state): New function.
31fd7c5c 1805 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1806 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1807 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1808 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1809 to x_real_positions and x_fullscreen_adjust.
1810
1811 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1812 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1813 flush_and_sync.
1814 (xg_height_changed): New function.
1815 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1816 and gtk_window_set_policy. Set frame gravity after parsing the
1817 geometry string.
3f1c6666
JD
1818 (xg_update_frame_menubar, free_frame_menubar)
1819 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1820 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1821 Remove calls to xg_frame_set_char_size.
1822
fd503d99
KH
18232009-07-01 Kenichi Handa <handa@m17n.org>
1824
1825 * keyboard.c (decode_keyboard_code): New function.
1826 (tty_read_avail_input): Decode the input bytes if necessary.
1827
1ac9108a
SM
1828 * coding.c (setup_coding_system):
1829 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1830 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1831 use Qno_conversion.
1832
24ed93fb
YM
18332009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1834
1835 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1836
99061dfc
CY
18372009-06-30 Chong Yidong <cyd@stupidchicken.com>
1838
1ac9108a 1839 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1840
ff90fbde
JR
18412009-06-30 Jason Rumney <jasonr@gnu.org>
1842
1843 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1844 is already loaded.
1845 Set user model ID if supported (bug#1849).
1846
5f445726
JM
18472009-06-29 Jim Meyering <meyering@redhat.com>
1848
1849 Remove useless if-before-xfree test.
1850 * nsfont.m (nsfont_close): Remove useless test.
1851 * term.c (delete_tty): Likewise.
1852 * w32.c (system_process_attributes): Likewise.
1853 * w32font.c (w32font_close): Likewise.
1854 * xfaces.c (x_free_gc): Likewise.
1855 * xselect.c (buffer): Likewise.
1856
b9607587
AS
18572009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1858
1859 * process.c (send_process): Keep decoded string in a local
1860 variable and protect it from GC. (Bug#3521)
1861
89ba96f4
EZ
18622009-06-28 Eli Zaretskii <eliz@gnu.org>
1863
1864 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1865 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1866
098a1589
CY
18672009-06-28 Chong Yidong <cyd@stupidchicken.com>
1868
485422be
CY
1869 * xdisp.c (start_display, handle_face_prop)
1870 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1871 (redisplay_window, try_window_id, produce_image_glyph):
1872 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1873
098a1589
CY
1874 * xterm.c (x_update_window_begin, x_new_focus_frame)
1875 (x_scroll_bar_handle_click, handle_one_xevent)
1876 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1877 (x_make_frame_visible, x_make_frame_invisible)
1878 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1879 code chunks that are now obsolete.
1880
78c38319
MA
18812009-06-28 Michael Albinus <michael.albinus@gmx.de>
1882
1883 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1884 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1885 for hours, when optimzation is enabled.
1886 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1887 (xd_read_message): Make them static.
1888
4189ed40
CY
18892009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1890
1891 * term.c (turn_on_face): Allow simultaneously bold and dim
1892 terminal faces (Bug#3530).
1893
cd9b5e16
CY
18942009-06-27 Chong Yidong <cyd@stupidchicken.com>
1895
4e23bedb
CY
1896 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1897
cd9b5e16
CY
1898 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1899 truncation glyphs (Bug#3686).
1900
07cc3c35
GM
19012009-06-27 Glenn Morris <rgm@gnu.org>
1902
1903 * m/pmax.h: Restore file, with only netbsd portions.
1904
31fd7c5c 19052009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1906
cd9b5e16 1907 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1908
42d4a64f
KH
19092009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1910
1911 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1912 the arg FORCE_SYMBOL.
1913
930fe55b 19142009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1915
1916 * fontset.c (fontset_find_font): When a usable rfont_def is found
1917 in a fallback font-group, make it the first element of the group.
1918
57ebc3fd
CY
19192009-06-24 Chong Yidong <cyd@stupidchicken.com>
1920
1921 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1922
f084f942
KH
19232009-06-24 Kenichi Handa <handa@m17n.org>
1924
1925 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1926 set for C.
1927 (fontset_font): Record the availability of a font for C both in
1928 the realized fontsets of the current one and the default one.
1929
2f686c87
DN
19302009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1931
1932 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1933 conditional, it is always defined on AIX.
1934
666e158e
MB
19352009-06-23 Miles Bader <miles@gnu.org>
1936
1937 * window.c (Vrecenter_redisplay): New variable.
1938 (syms_of_window): Initialize it.
1939 (Qtty): New extern declaration.
1940 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1941
c6da7cd2
JM
19422009-06-23 Jim Meyering <meyering@redhat.com>
1943
1ac9108a
SM
1944 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1945 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 1946 pointer dereferences are guaranteed to be valid.
c6da7cd2 1947
678dca3d
KH
19482009-06-23 Kenichi Handa <handa@m17n.org>
1949
74d75424
KH
1950 * emacs.c (main): Call init_font ().
1951
1952 * font.h (Vfont_log): Extern it.
1953 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1954
1955 * font.c (font_sort_entities, font_list_entities)
1956 (font_matching_entity, font_open_entity)
1957 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1958 (Vfont_log): Delete static.
1959 (font_log_env_checked): Delete this variable.
1960 (font_add_log): Don't check font_log_env_checked.
1961 (font_deferred_log): Check Vfont_log.
1962 (init_font): New function.
1963
678dca3d
KH
1964 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1965
1966 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1967
1968 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1969
1970 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1971
1972 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1973 (face_for_char): Don't call font_deferred_log here.
1974 (font_for_char): Likewise.
1975
8a668709
CY
19762009-06-22 Chong Yidong <cyd@stupidchicken.com>
1977
9a01ee33
CY
1978 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1979 rather than its background_width for drawing the overline and
1980 underline (Bug#489).
1981
1982 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1983 rather than its background_width for drawing the overline and
1984 underline (Bug#489).
ec7c9926
CY
1985 (xg_default_icon_file): New variable.
1986 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1987 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1988
8a668709
CY
1989 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1990 (load_overlay_strings): Remove externs.
1991 (fast_find_position): Function deleted.
1992 (mouse_face_from_buffer_pos): New function, based on
1993 fast_find_position. Correctly handle before-strings,
1994 display-strings, and after-strings (Bug#1220).
1995 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1996
4d4c02d8
CY
19972009-06-21 Chong Yidong <cyd@stupidchicken.com>
1998
1ac9108a 1999 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2000 (move_it_in_display_line_to, move_it_in_display_line_to)
2001 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2002
70243478
CY
20032009-06-21 Chong Yidong <cyd@stupidchicken.com>
2004
2005 * Branch for 23.1.
2006
13087e59
JR
20072009-06-21 Jason Rumney <jasonr@gnu.org>
2008
2009 * w32term.c (keyboard_codepage): New static variable.
2010 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2011 (w32_read_socket) [WM_CHAR]: Use it to decode character
2012 input (bug#3237).
2013 (w32_initialize): Initialize it.
2014 (codepage_for_locale): New function.
2015
4735b74e
KR
20162009-06-20 Ken Raeburn <raeburn@raeburn.org>
2017
2018 * process.c (status_message): Pass Faset index argument as a lisp
2019 object, so as to work with USE_LISP_UNION_TYPE.
2020
0e727afa
YM
20212009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2022
2023 * coding.c (Ffind_coding_systems_region_internal):
2024 Cache checked characters.
2025
cf299835
KH
20262009-06-18 Kenichi Handa <handa@m17n.org>
2027
1ac9108a 2028 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2029
90f20d94
AS
20302009-06-18 Andreas Schwab <aschwab@redhat.com>
2031
2032 * xdisp.c (redisplay_internal): Check that the frame is still
2033 live after redisplay of its windows.
2034 (redisplay_windows): Check that the window is still live.
2035
7f1faf1c
KH
20362009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2037
2038 * coding.c (detect_coding_utf_16): Fix previous change.
2039
cc13543e
KH
20402009-06-16 Kenichi Handa <handa@m17n.org>
2041
2042 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2043 UTF-16 by checking the dispersion of Eth and Oth bytes.
2044
977b85f4
AS
20452009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2046
2047 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2048
66bd43d1
KH
20492009-06-15 Kenichi Handa <handa@m17n.org>
2050
2051 * process.c (status_message): Fix previous change. Be sure to
2052 decode a localized string.
2053
cb5ca9c5
YM
20542009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2055
2056 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2057 add comment explaining why.
2058
ec7709ba 20592009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2060
ec7709ba 2061 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2062
4b7f335c
AR
20632009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2064
2065 * nsfont.m (ns_attribute_value): Remove.
2066 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2067 (ns_has_attribute): Shrink the normal range.
2068 (ns_findfonts): Don't worry about requested spec in determining
2069 need for synthItal.
e41820ee 2070 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2071
73b26103
SZ
20722009-06-14 Seiji Zenitani <zenitani@mac.com>
2073
2074 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2075
5753e4da
KH
20762009-06-11 Kenichi Handa <handa@m17n.org>
2077
2078 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2079 overhang for the static composition case.
2080
3561b671
KH
20812009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2082
5753e4da
KH
2083 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2084 overhang for the automatic composition case.
2085
3561b671
KH
2086 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2087 composition case.
2088
852bbd41
CY
20892009-06-10 Chong Yidong <cyd@stupidchicken.com>
2090
2091 * xdisp.c (get_next_display_element): When handling wrap-prefix
2092 and line-prefix, treat \n as a control character (bug#3502).
2093
9903d1e6
KH
20942009-06-10 Kenichi Handa <handa@m17n.org>
2095
2096 * font.c (font_parse_family_registry): Fix for one-char foundry.
2097 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2098
0bcbaaaa
CY
20992009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2100
2101 * process.c (status_message): Fix handling of multibyte signal
2102 string (Bug#3499).
2103
40aa3f13
JM
21042009-06-09 Jim Meyering <meyering@redhat.com>
2105
1f80c7e2
CY
2106 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2107 color name is missing.
40aa3f13 2108
72d51285
KH
21092009-06-09 Kenichi Handa <handa@m17n.org>
2110
2111 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2112 FROM-CODE and TO-CODE are codepoints of CHARSET.
2113
c1d04d84
AR
21142009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2115
2116 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2117
21182009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2119
2120 Changes to support :script/:lang/:otf in NS font driver.
2121 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2122 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2123 indicate not part of font driver interface, and change callers.
2124 (ns_get_family): Remove pointless null check.
2125 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2126 ns_spec_to_descriptor, ns_descriptor_to_entity.
2127 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2128 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2129 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2130 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2131 (ns_get_req_script, ns_accumulate_script_ranges)
2132 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2133 New functions.
2134 (nsfont_list, nsfont_match): Use ns_findfonts.
2135 (nsfont_open): Use font descriptor instead of traits.
2136 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2137 (dump_glyphstring): Rename to ns_dump_glyphstring.
2138
c7eb9816
AR
2139 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2140
c1d04d84
AR
2141 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2142
2143 * fontset.c (fontset_from_font): Remove NS-specific code.
2144
ec7709ba 21452009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2146
2147 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2148 nonactive windows.
2149
31fd7c5c 21502009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2151
1ac9108a 2152 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2153
68852c13 21542009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2155
2156 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2157
6756cd1d
CY
21582009-06-07 Chong Yidong <cyd@stupidchicken.com>
2159
2160 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2161 account for the overflowing of newlines into the last glyph on the
2162 display line (Bug#3482).
2163
28bf482a
DR
21642009-06-05 David Reitter <david.reitter@gmail.com>
2165
ec7709ba
JB
2166 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2167 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2168 Fns_selection_exists_p, Fns_selection_owner_p.
2169
fdb55376
JR
21702009-06-03 Jason Rumney <jasonr@gnu.org>
2171
2172 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2173 available. (Bug#3379)
2174
05129fbe
KH
21752009-05-29 Kenichi Handa <handa@m17n.org>
2176
1ac9108a
SM
2177 * coding.c (get_translation_table):
2178 Check Venable_character_translation.
05129fbe 2179
ec7709ba 21802009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2181
ec7709ba
JB
2182 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2183 (x_make_frame_visible): Move frame to front rather than calling
15891144 2184 ns_raise_frame().
ec7709ba 2185 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2186 isn't key window.
ec7709ba 2187 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2188 drawRect may be called by NSView even if the frame is hidden.
2189
ec7709ba
JB
2190 * nsfns.m (Fx_create_frame): Follow other ports in
2191 determining visibility; default to t. Ensure async_visible is set.
15891144 2192
21f73755
EZ
21932009-05-23 Eli Zaretskii <eliz@gnu.org>
2194
2195 * dired.c (Ffile_attributes): Doc fix.
2196
34001e41
CY
21972009-05-22 Chong Yidong <cyd@stupidchicken.com>
2198
2199 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2200
46306a17
SM
22012009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2202
2203 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2204 and xfont_scratch_props.
2205 (syms_of_xfont): Do it here instead.
2206 (xfont_find_ccl_program): Delete, unused.
2207 (xfont_open): Delete unused var `i'.
2208
ef6e0694
KH
22092009-05-21 Kenichi Handa <handa@m17n.org>
2210
2211 * fontset.c (Qlatin): Don't make it static.
2212
46306a17
SM
2213 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2214 New functions.
ef6e0694
KH
2215 (xfont_scripts_cache, xfont_scratch_props): New variables.
2216 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2217 (xfont_list_pattern): Argument changed. Callers changed.
2218 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2219 (xfont_list): Don't reject a font spec with :script property.
2220 (xfont_has_char): Fix setting of encoding.
2221 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2222 xfont_scratch_props.
2223
22242009-05-19 Kenichi Handa <handa@m17n.org>
2225
46306a17 2226 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2227 Callers changed.
2228
22292009-05-18 Kenichi Handa <handa@m17n.org>
2230
2231 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2232
ac71ced7
SM
22332009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2234
2235 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2236 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2237
1c6d1051
YM
22382009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2239
2240 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2241 (x_delete_terminal): Dissociate resource database from display and
2242 then call XrmDestroyDatabase before closing display.
2243
9b9b779c
AR
22442009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2245
2246 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2247 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2248 whether selected frame is viable before raising it (based on patch
2249 by David Reitter), and improve commentary.
2250 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2251
cccd42d5
KH
22522009-05-15 Kenichi Handa <handa@m17n.org>
2253
2254 * font.c (Ffont_spec): Check arguments.
2255
337fbd17
CY
22562009-05-14 Chong Yidong <cyd@stupidchicken.com>
2257
2258 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2259 weight when testing attributes (Bug#3282).
2260
47a6002f
JD
22612009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2262
2263 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2264 what we expect to get in the next ConfigureNotify event.
2265
9cb363db
YM
2266 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2267 before Xft one (Bug#1696).
2268
b9126609
CY
22692009-05-07 David Reitter <david.reitter@gmail.com>
2270
2271 * nsfns.m (Fx_display_planes): Compute bitplanes using
2272 NSBitsPerPixelFromDepth (Bug#3207).
2273
27a69fd9
CY
22742009-05-10 Chong Yidong <cyd@stupidchicken.com>
2275
2276 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2277
00f37552
TTN
22782009-05-10 Ulrich Mueller <ulm@gentoo.org>
2279
2280 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2281
2d82a920
DR
22822009-05-07 David Reitter <david.reitter@gmail.com>
2283
ec7709ba
JB
2284 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2285 Respect mouse face background.
2d82a920 2286
46b0d52d
DR
22872009-05-07 David Reitter <david.reitter@gmail.com>
2288
ec7709ba
JB
2289 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2290 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2291 in ns_update_begin and ns_update_end.
2292
ce1b23bb
SM
22932009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2294
5996e1b7
SM
2295 * nsfns.m (ns_get_screen): Rewrite.
2296 Don't presume selected-frame is of type `ns'.
2297
ba98e3a0
SM
2298 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2299 all drivers.
2300
ce1b23bb
SM
2301 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2302
bcda200f
YM
23032009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2304
2305 * keyboard.h (add_user_signal): Fix typo in extern.
2306
2307 * lisp.h (add_user_signal): Remove extern.
2308
2309 * unexelf.c (unexec): Consider a section to precede the .bss section
2310 if its addresses overlap that of .bss.
2311 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2312 instead of dumping process.
2313
864660a2
SM
23142009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2315
2316 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2317
50da4e56
SM
23182009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2319
2320 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2321
51520a1a
DN
23222009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2323
2324 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2325 any statements.
2326
409ea3a1
AS
23272009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2328
59c4c60f
AS
2329 * process.c (read_process_output): Make sure the current buffer is
2330 always restored.
2331
409ea3a1
AS
2332 * coding.c (record_conversion_result): Don't modify
2333 Vlast_code_conversion_error for successful result.
2334 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2335
56f00ed2
KH
23362009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2337
2338 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2339 (load_charset_map): Remove unnecessary code.
56f00ed2 2340
4491c9d2
DR
23412009-04-30 David Reitter <david.reitter@gmail.com>
2342
35f5b128 2343 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2344 through f24.
2345
6970f632
CY
23462009-04-30 Chong Yidong <cyd@stupidchicken.com>
2347
2348 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2349
2350 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2351 face_at_buffer_position.
2352 (face_before_or_after_it_pos, get_next_display_element)
2353 (note_mouse_highlight): Update face_at_buffer_position call.
2354
2355 * term.c (term_mouse_highlight):
2356 * msdos.c (IT_note_mouse_highlight):
2357 * fontset.c (Finternal_char_font):
35f5b128 2358 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2359
2360 * dispextern.h (face_at_buffer_position): Update prototype.
2361
0c616f63
KH
23622009-04-30 Kenichi Handa <handa@m17n.org>
2363
35f5b128 2364 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2365
ad3aaf33
AS
23662009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2367
2368 * callproc.c (Fcall_process): Fix GC protection. Make sure
2369 current buffer is always restored.
2370
c3c963a0
YM
23712009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2372
2373 * atimer.c (init_atimer): Also clear stopped_atimers.
2374
2375 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2376
7e3386cb
YM
2377 * process.c (create_process): Clean up merger residues of
2378 2008-07-17 change.
2379
91f68422
CY
23802009-04-29 Ulrich Mueller <ulm@gentoo.org>
2381
2382 * lread.c (Vread_circle): New variable.
2383 (read1): Disable recursive read if Vread_circle is nil.
2384
24b34550
KH
23852009-04-29 Kenichi Handa <handa@m17n.org>
2386
2387 * fontset.h (set_default_ascii_font): Delete extern.
2388
2389 * fontset.c (set_default_ascii_font): Delete this unused function.
2390
2391 * frame.c (x_set_font): When ARG is a font-object, check if the
2392 font-object matches with the ASCII font-spec of the frame's
9c358bda 2393 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2394
77bf07e1
AS
23952009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2396
2397 * fns.c (Flocale_info): Protect vector from GC during decoding.
2398
2399 * process.c (Fstart_process): Protect argv strings from GC during
2400 encoding.
2401
2c55aacf
AS
24022009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2403
2404 * sysdep.c: Include <ctype.h>.
2405
b892d3c9
DR
24062009-04-27 David Reitter <david.reitter@gmail.com>
2407
35f5b128 2408 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2409 Remove commented-out code.
2410
9d0644c4
JB
24112009-04-26 Johan Bockgård <bojohan@gnu.org>
2412
2413 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2414
b7053016
JR
24152009-04-25 Jason Rumney <jasonr@gnu.org>
2416
2417 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2418
4e8231f3
YM
24192009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2420
2421 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2422 Swap bytes in short integer if fringe bitmap width > 8.
2423
493dcf2c
KH
24242009-04-23 Kenichi Handa <handa@m17n.org>
2425
2426 * xfaces.c (Fx_list_fonts): If a font size is specified in
2427 PATTERN, set it in returned scalable fonts.
2428
401e9e57
CY
24292009-04-22 Chong Yidong <cyd@stupidchicken.com>
2430
708e05dc
CY
2431 * keyboard.c (Fset_input_meta_mode): Doc fix.
2432
2433 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2434
1ac9108a 2435 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2436
2437 * coding.c (Fterminal_coding_system): Doc fix.
2438
2439 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2440 (Fx_display_pixel_height, Fx_display_planes)
2441 (Fx_display_color_cells, Fx_server_max_request_size)
2442 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2443 (Fx_display_mm_height, Fx_display_mm_width)
2444 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2445 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2446 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2447 (check_x_display_info): Handle terminal objects instead of
2448 terminal ids.
2449
401e9e57
CY
2450 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2451 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2452 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2453 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2454
df80c7f0
KH
24552009-04-21 Kenichi Handa <handa@m17n.org>
2456
5a8f12af 2457 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2458 (font_score): Check AVGWIDTH too.
908567ef 2459
df80c7f0
KH
2460 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2461 worst case.
1ac9108a
SM
2462 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2463 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2464
705af33f
JR
24652009-04-19 Jason Rumney <jasonr@gnu.org>
2466
2467 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2468 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2469
2470 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2471 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2472 get_phys_cursor_geometry.
2473
b71ac3dd 2474 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2475 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2476 using get_phys_cursor_geometry.
2477
2478 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2479 correctly calculated.
2480
dc2933eb
JD
24812009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2482
1ac9108a
SM
2483 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2484 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2485 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2486 is deprecated.
2487
973e7849
AS
24882009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2489
2490 * font.c (font_put_frame_data): Use xfree instead of free.
2491
314d66f4
JB
24922009-04-17 Juanma Barranquero <lekktu@gmail.com>
2493
2494 * w32font.c (Qja, Qko): Remove declarations.
2495 (syms_of_w32font): Don't DEFSYM them.
2496
cf702558
CY
24972009-04-17 Chong Yidong <cyd@stupidchicken.com>
2498
2499 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2500
2501 * font.h (Qja, Qko): Extern them.
2502
2503 * ftfont.c (Qja, Qko): Remove declarations.
2504
2505 * xfont.c (Qja, Qko): Remove declarations.
2506
b50504f5
KH
25072009-04-17 Kenichi Handa <handa@m17n.org>
2508
bde25748
KH
2509 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2510 string from a vector to handle Latin-1 characters correctly.
2511
b50504f5
KH
2512 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2513 entity even if the cache hits.
2514
f4646fff
AS
25152009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2516
2517 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2518 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2519
e7deaab0
AS
2520 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2521 * lisp.h: Adjust prototypes.
2522
0a0e7d49
CY
25232009-04-16 Chong Yidong <cyd@stupidchicken.com>
2524
2525 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2526 change (Bug#3003).
2527
3c908a57
KH
25282009-04-16 Kenichi Handa <handa@m17n.org>
2529
1ac9108a 2530 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2531
2532 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2533 adstyle.
2534
2535 * ftfont.c (Qja, Qko): Don't make them static.
2536 (enum ftfont_cache_for): New enum.
2537 (fc_charset_table): Undo the previous change.
2538 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2539 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2540 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2541 non-scarable font, try to get AVERAGE_WIDTH.
2542 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2543 Change ft_face_cache from a list of a hash-table. Don't check
2544 `ja' and `ko' adstyle here.
2545 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2546 FTFONT_CACHE_FOR_CHARET.
2547 (ftfont_get_charset): Undo the previous change.
1ac9108a 2548 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2549 (ftfont_close): Likewise.
2550 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2551
2552 * font.c (font_sort_entites): Change the meaning of the arg
2553 BEST-ONLY. Don't optimize for VEC of lenght 1.
2554 (font_select_entity): Just return the value of font_sort_entites.
2555
2556 * xfaces.c (merge_face_vectors): Reflect font properties in
2557 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2558 font_clear_prop if a face attribute doesn't change.
2559
3c908a57
KH
2560 * charset.h (charset_ksc5601): Extern it.
2561
2562 * charset.c (charset_ksc5601): New variable.
2563 (Fdefine_charset_internal): Set charset_ksc5601.
2564 (init_charset_once): Initialize charset_ksc5601 to -1.
2565
d65859c3
DN
25662009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2567
2568 * fileio.c (history_delete_duplicates): Remove unused declaration.
2569
2570 * callint.c (history_delete_duplicates): New declaration.
2571 (Fcall_interactively): Remove command history duplicates when
2572 history_delete_duplicates is true.
2573
3ba010e5
EZ
25742009-04-14 Eli Zaretskii <eliz@gnu.org>
2575
2576 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2577
06f19b91
KH
25782009-04-14 Kenichi Handa <handa@m17n.org>
2579
2580 * font.c (Ffont_info): Fix docstring. Fix the second element of
2581 the returned value (bug#2949).
2582
2cce8bfc
CY
25832009-04-14 Chong Yidong <cyd@stupidchicken.com>
2584
2585 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2586
d156542d
KH
25872009-04-14 Kenichi Handa <handa@m17n.org>
2588
2589 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2590 encoding charset is ascii_compatible.
2591
2592 * charset.c (Fdefine_charset_internal): Make charset
2593 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2594 code_offset is 0, and covers all ASCII characters.
2595
86fa089e
SM
25962009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2597
2598 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2599 (ns_string_to_pasteboard_internal):
2600 * nsmenu.m (process_dialog):
2601 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2602 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2603 * lisp.h (Fx_load_color_file): Declare.
2604
a8a3728b
KH
26052009-04-13 Kenichi Handa <handa@m17n.org>
2606
1ac9108a 2607 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2608 (font_select_entity): Suppress the code to optimize for the same
2609 kind of fonts.
2610 (font_load_for_lface): Get a font that supports at least ASCII
2611 characters.
2612
2613 * ftfont.c (Qja, Qko): New variables.
2614 (fc_charset_table): Delete uniquifier data for iso8859-1.
2615 (ftfont_get_latin1_charset): New function.
2616 (get_adstyle_property): New function.
2617 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2618 bitmap fonts.
2619 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2620 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2621 `ko' or `ja'.
2622 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2623 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2624 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2625 property.
2626 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2627 (syms_of_ftfont): DEFSYM Qja and Qko.
2628
483670b5
KH
26292009-04-09 Kenichi Handa <handa@m17n.org>
2630
12b55765
KH
2631 * charset.c (map_charset_chars): For a charset of `superset'
2632 method, fix calculation of code range.
2633
483670b5
KH
2634 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2635 from the list of extra properties.
2636 (font_clear_prop): Be sure to delete `:name' font property.
2637
57d3b93b
KH
26382009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2639
b4b2c2ca
YM
2640 * dispnew.c (redraw_overlapping_rows): Fix detection of
2641 overlapping for topmost and bottommost rows.
2642
1ac9108a 2643 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2644
472c3609
JR
26452009-04-06 Jason Rumney <jasonr@gnu.org>
2646
2647 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2648
ab193662
KH
26492009-04-06 Kenichi Handa <handa@m17n.org>
2650
2651 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2652
2653 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2654
0c26f026
KH
26552009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2656
2657 * ftfont.c (ftfont_open): Fix checking of the return value of
2658 FT_Load_Char. Fix setting font->underline_thickness.
2659
e173bbce
CY
26602009-04-04 Chong Yidong <cyd@stupidchicken.com>
2661
2662 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2663 (Fterminal_parameters, Fterminal_parameter)
2664 (Fset_terminal_parameter): In doc string, refer to terminal
2665 objects rather than terminal ids.
2666
693a2698
EZ
26672009-04-04 Eli Zaretskii <eliz@gnu.org>
2668
2669 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2670 ret_lim_data. (Bug#2867)
2671
d5221487
CY
26722009-04-03 Chong Yidong <cyd@stupidchicken.com>
2673
2674 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2675 so they don't get wider than the window, matching 2006-01-23
2676 change to the partner function in xdisp.c (Bug#2800).
2677
223509a3
KH
26782009-04-03 Kenichi Handa <handa@m17n.org>
2679
2680 * print.c (print_object): Make each lowest sub_char_table start a
2681 new line (Bug#2866).
2682
74fcd0b1
KH
26832009-04-02 Kenichi Handa <handa@m17n.org>
2684
2685 * fontset.c (fontset_font): Record no-font when a fontset
2686 explicitly tells not to try another font-specs.
2687
c542407d
SM
26882009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2689
2690 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2691
e3869731
KH
26922009-03-30 Kenichi Handa <handa@m17n.org>
2693
d8d2f142
KH
2694 * fontset.c (fontset_from_font): Specify only registry in a
2695 font-spec for all characters supported by that registry.
2696
e3869731
KH
2697 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2698 even if HAVE_M17N_FLT is not defined.
2699
5da5f805
CY
27002009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2701
2702 * ftfont.c: Conditionalize prototyping and use of
2703 ftfont_variation_glyphs.
2704
ab226c50
SM
27052009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2706
9628fed7
SM
2707 * frame.c (delete_frame): Work around compiler bug.
2708
2709 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2710 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2711 Some more EMACS_INT.
2712 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2713
2714 * xdisp.c (dump_glyph): Fix typo.
2715
ae19ba7c
SM
2716 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2717 (adjust_markers_gap_motion, adjust_markers_for_delete)
2718 (adjust_markers_for_insert, adjust_point)
2719 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2720 (make_gap, copy_text, count_size_as_multibyte, insert)
2721 (insert_and_inherit, insert_before_markers)
2722 (insert_before_markers_and_inherit, insert_1)
2723 (count_combining_before, count_combining_after, insert_1_both)
2724 (insert_from_string, insert_from_string_before_markers)
2725 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2726 (insert_from_buffer_1, adjust_after_replace)
2727 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2728 (replace_range_2, del_range, del_range_1, del_range_byte)
2729 (del_range_both, del_range_2, modify_region)
2730 (prepare_to_modify_buffer, signal_before_change)
2731 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2732 for buffer positions and sizes.
2733 * lisp.h: Adjust prototypes accordingly.
2734
2735 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2736 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2737 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2738
ab226c50
SM
2739 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2740
46dfb8fb
JD
27412009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2742
2743 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2744 lines and columns so we keep the same pixel height and width.
2745
2746 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2747 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2748 (x_handle_net_wm_state): New function to update frame parameter
2749 fullscreen.
2750 (x_term_init): Initialize atoms for _NET_WM_STATE.
2751
2752 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2753
d347e494
SM
27542009-03-27 Kevin Ryde <user42@zip.com.au>
2755
2756 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2757 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2758 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2759 (Fgpm_mouse_stop): Pass that new parameter.
2760 * termhooks.h (close_gpm): Adjust prototype.
2761
84db11d6
SM
27622009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2763
c95a5008
SM
2764 * lisp.h (Fx_focus_frame): Declare.
2765
84db11d6
SM
2766 * callint.c (Fcall_interactively): For '^' just delegate the work to
2767 handle-shift-selection.
2768 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2769
0a1958d6
CY
27702009-03-24 Chong Yidong <cyd@stupidchicken.com>
2771
0bfdff23
CY
2772 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2773
0a1958d6
CY
2774 * data.c (Qinteractive_form): New variable.
2775 (Finteractive_form): Use it.
2776
2777 * eval.c (Fcommandp): Use Qinteractive_form.
2778
58aec0d6
JR
27792009-03-24 Jason Rumney <jasonr@gnu.org>
2780
2781 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2782 Calculate total size precisely. Decode environment variables
2783 before substituting. (Bug#38)
2784
553dd618
KH
27852009-03-24 Kenichi Handa <handa@m17n.org>
2786
2787 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2788 encoding (Bug#2722).
553dd618 2789
c39ea606
JD
27902009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2791
2792 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2793 that gdpy is set.
2794
bc9b2b5e
AM
27952009-03-22 Alan Mackenzie <acm@muc.de>
2796
2797 * callint.c (Finteractive): Clarify the doc string - even
2798 promptless elements need \n separators.
2799
9f995a76
JR
28002009-03-22 Jason Rumney <jasonr@gnu.org>
2801
2802 * w32term.c (syms_of_w32term): Doc fix for
2803 x-use-underline-position-properties.
2804
22749e9a
EZ
28052009-03-21 Eli Zaretskii <eliz@gnu.org>
2806
2807 * w32.c (getpwuid): Change argument type to unsigned.
2808 (struct w32_id): Change type of `rid' member to unsigned.
2809 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2810 argument ID to unsigned. All callers changed.
2811 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2812
e00553bf
EZ
28132009-03-20 Eli Zaretskii <eliz@gnu.org>
2814
2815 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2816 negative, produce a float value.
2817
2818 * dired.c (make_uid, make_gid): New functions.
2819 (Ffile_attributes): Use them to avoid negative UID and GID.
2820
f761d6b6
JB
28212009-03-20 Juanma Barranquero <lekktu@gmail.com>
2822
2823 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2824 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2825 Fix typos in docstrings.
2826
d507f8d7
KH
28272009-03-19 Kenichi Handa <handa@m17n.org>
2828
2829 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2830 changed, use font_load_for_lface to get a new font object.
2831 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2832
2833 * frame.c (x_set_font): Handle the case that ARG is a cons.
2834
c68845e0
GM
28352009-03-19 Glenn Morris <rgm@gnu.org>
2836
2837 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2838
bfa49dd1
CY
28392009-03-19 Chong Yidong <cyd@stupidchicken.com>
2840
2841 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2842
8458d4c1
KH
28432009-03-19 Kenichi Handa <handa@m17n.org>
2844
2845 * charset.c (load_charset_map_from_file): When a mapfile can't be
2846 loaded, signal an error.
2847
78e7d1fe
EZ
28482009-03-18 Eli Zaretskii <eliz@gnu.org>
2849
2850 * dired.c (Ffile_attributes): Make sure UID and GID are always
2851 positive, even if the value is too large for a positive EMACS_INT.
2852 Doc fix.
2853
2854 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2855
5da9fdfa
YM
28562009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2857
2858 * xmenu.c (xdialog_show): Move Fredisplay call ...
2859 (Fx_popup_dialog): ... here.
2860
7519c40d
SM
28612009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2862
2863 * dired.c (file_name_completion): Disable the first optimization just
2864 installed, since it is not implemented correctly.
2865
2cd298e2
SM
28662009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2867
2868 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2869 only if the entry can affect bestmatch.
2cd298e2
SM
2870 Stop the search early, as Ftry_completion already does.
2871
48d37adf
CY
28722009-03-17 Chong Yidong <cyd@stupidchicken.com>
2873
e10c9c93 2874 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2875
9286b16a
CY
28762009-03-15 Chong Yidong <cyd@stupidchicken.com>
2877
2878 * keyboard.c (parse_menu_item): Don't display remappings as menu
2879 equivalent bindings (Bug#788).
2880
f7b146dc
JR
28812009-03-15 Jason Rumney <jasonr@gnu.org>
2882
2883 * w32term.h (WM_EMACS_PAINT): New message.
2884 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2885 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2886 before passing to lisp thread. (Bug#950)
2887
f761d6b6 28882009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2889
d93f9575
CY
2890 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2891 variable as it was never reset.
2892 (ns_term_init): Remove initialization of Lisp-settable defaults
2893 and ns_expand_space.
2894 (-setPanelFromDefaultValues): Remove ns_expand_space.
2895 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2896 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2897 i.e. no additional spacing, similar to Carbon port.
2898
d93f9575
CY
2899 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2900 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2901
305018ec
JD
29022009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2903
2904 * sound.c (alsa_configure): Remove call to deprecated
2905 snd_pcm_sw_params_set_xfer_align.
2906
f761d6b6 29072009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2908
2909 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2910 after clicking in a detached tool bar.
2911 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2912
46e722a9
SM
29132009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2914
348db3dd
SM
2915 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2916 int/Lisp_Object mixup).
46e722a9 2917
a3d16f39
KH
29182009-03-13 Kenichi Handa <handa@m17n.org>
2919
2920 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2921 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2922 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2923 (set_fontset_font): Change ARG to a vector. Handle range_list in
2924 ARG correctly.
2925 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2926 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2927 the above change.
2928 (fontset_from_font): Fix previous change.
fe24f56a 2929 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2930 entry. If FONTSET is the default fontset, don't set the extra
2931 slot of the returning char-table.
2932
b066e6b6
JB
29332009-03-12 Juanma Barranquero <lekktu@gmail.com>
2934
2935 * nsfns.m (Fx_close_connection): Doc fix.
2936 (Fns_do_applescript): Reflow docstring.
2937 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2938 (Fx_display_pixel_width, Fx_display_pixel_height)
2939 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2940 Fix typos in docstrings.
2941 (Fns_set_alpha): Fix typos in error messages.
2942
d472514e 29432009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 2944
d472514e 2945 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
2946 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2947 were used for such events.
2948
d472514e
JB
2949 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2950 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 2951
d472514e 2952 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
2953 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2954
fb930676
KH
29552009-03-11 Kenichi Handa <handa@m17n.org>
2956
ff85581a
KH
2957 * font.h (font_open_by_spec): Extern it.
2958
c50b7e98
KH
2959 * font.c (font_open_by_spec): New function.
2960 (font_open_by_name): Use font_open_by_spec.
2961
fb930676
KH
2962 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2963 fontset of the frame.
2964
2965 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2966 modify the default font of frames that use this fontset.
2967 (num_auto_fontsets): New variable.
2968 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2969 name. Be sure to set FONTSET_ASCII to the correct font name.
2970 (update_auto_fontset_alist): New function.
2971
df4e8455
JB
29722009-03-11 Juanma Barranquero <lekktu@gmail.com>
2973
2974 * makefile.w32-in: Update dependencies.
2975
0a375797
AR
29762009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2977
2978 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2979
61313fa3
SM
29802009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2981
2982 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2983
b55103fb
CY
29842009-03-10 Chong Yidong <cyd@stupidchicken.com>
2985
2986 * lread.c (Feval_buffer): Doc fix.
2987
dde2559c
KH
29882009-03-09 Kenichi Handa <handa@m17n.org>
2989
2990 * charset.c (Qfile_name_handler_alist): Extern it.
2991 (load_charset_map_from_file): Temporarily bind
2992 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2993
df4e8455 29942009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2995
47f588bb
GM
2996 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2997 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2998
4ddf94bd
AR
29992009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3000
4c9bdfc2
AR
3001 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3002 (x_set_window_size): Change back to calculated method of setting
3003 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3004 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3005 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3006
fe41ae9e
AR
3007 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3008
4c9bdfc2
AR
3009 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3010 accelerator in parens under GNUstep.
3011
825d0875
KH
30122009-03-06 Kenichi Handa <handa@m17n.org>
3013
3014 These changes are to detect incorrect composition sequence without
f3b3be74 3015 looking ahead the source. (Bug#2370)
825d0875
KH
3016
3017 * coding.h: Include "composite.h".
3018 (enum compisition_state): New enum.
3019 (struct compisition_status): New struct.
3020 (struct iso_2022_spec): New member cmp_status.
3021 (struct emacs_mule_spec): New struct.
3022 (struct coding_system): New members ctext_extended_segment_len and
3023 embedded_utf_8. Change the union member
3024 spec.emacs_mule_full_support to spec.emacs_mule.
3025
3026 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3027 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3028 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3029 (ADD_COMPOSITION_DATA): New arg nbytes.
3030 (emacs_mule_char): New arg cmp_status.
3031 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3032 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3033 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3034 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3035 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3036 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3037 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3038 (EMACS_MULE_COMPOSITION_END): New macro.
3039 (emacs_mule_finish_composition): New function.
3040 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3041 (decode_coding_emacs_mule): Avoid long looking ahead while
3042 handling composition.
3043 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3044 (ENCODE_COMPOSITION_RULE): New macro.
3045 (finish_composition): New function.
3046 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3047 (DECODE_COMPOSITION_START): New implementation.
3048 (DECODE_COMPOSITION_END): Likewise.
3049 (STORE_COMPOSITION_RULE): New macro.
3050 (decode_coding_iso_2022): Avoid long looking ahead while handling
3051 composition, CTEXT extended segment, and embedded UTF-8.
3052 (setup_coding_system): For a coding of type iso-2022, reset
3053 CODING_ISO_EXTSEGMENT_LEN (coding) and
3054 CODING_ISO_EMBEDDED_UTF_8 (coding).
3055 (get_translation): Delete arguments last_block, from_nchars,
3056 to_nchars. Callers changed.
3057 (produce_chars): Don't modify charbuf. Adjusted for the change of
3058 get_translation.
98a326f7 3059 (produce_composition): Adjust for the new annotation sequence.
825d0875 3060 (handle_composition_annotation): Likewise.
98a326f7 3061 (consume_chars): Adjust for the change of get_translation.
825d0875 3062
ccbc4452
AR
30632009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3064
4ddf94bd 3065 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3066
988a7ddb
KH
30672009-03-05 Kenichi Handa <handa@m17n.org>
3068
3069 * font.c (font_select_entity): New function.
3070 (font_find_for_lface): Use font_select_entity to select a font.
3071
3072 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3073 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3074 font with C restriction.
3075
98a326f7 30762009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3077
be1bce46 3078 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3079
10ea2b82
JR
30802009-03-04 Jason Rumney <jasonr@gnu.org>
3081
2c93b248 3082 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3083 characters that have already been read. (Bug#2569)
2c93b248 3084
10ea2b82
JR
3085 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3086 Log an error message if check_image_size failed.
3087 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3088 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3089
71a0c011
EZ
30902009-03-02 Eli Zaretskii <eliz@gnu.org>
3091
3092 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3093 when decoding process output.
3094
2f63bba8
RS
30952009-03-01 Richard M Stallman <rms@gnu.org>
3096
3097 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3098
3099 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3100
0a9564cb
EZ
31012009-02-28 Eli Zaretskii <eliz@gnu.org>
3102
3103 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3104 (decode_coding_emacs_mule, decode_coding_iso_2022)
3105 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3106 (decode_coding_raw_text, decode_coding_charset)
3107 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3108 Honor inhibit-eol-conversion. (Bug #2186)
3109
449148b3
JR
31102009-02-28 Jason Rumney <jasonr@gnu.org>
3111
3112 * coding.c (detect_coding_charset): If not checking latin extra,
3113 fail on characters between 0x80 and 0xA0. (Bug#2354)
3114
a4aee864
EZ
31152009-02-28 Eli Zaretskii <eliz@gnu.org>
3116
3117 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3118 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3119
d88bee5a
GM
31202009-02-27 Glenn Morris <rgm@gnu.org>
3121
3122 * callint.c (Finteractive): Doc fix.
3123
a808f22d
KH
31242009-02-27 Kenichi Handa <handa@m17n.org>
3125
3126 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3127
caf8d60c
CY
31282009-02-27 Chong Yidong <cyd@stupidchicken.com>
3129
3130 * font.c (font_style_to_value): Set value for unknown symbols to
3131 100 instead of 255.
b61137ea
CY
3132 (weight_table, slant_table, width_table): Treat "unspecified" as
3133 the default value.
caf8d60c 3134
1a0de25c
JB
31352009-02-26 Juanma Barranquero <lekktu@gmail.com>
3136
3137 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3138
8fc45744
JB
31392009-02-25 Juanma Barranquero <lekktu@gmail.com>
3140
107bd7d1
JB
3141 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3142 error as soon as a recursive load is detected.
8fc45744 3143
f097e223
AR
31442009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3145
3146 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3147 before caching.
3148
8810a12f
KH
31492009-02-24 Kenichi Handa <handa@m17n.org>
3150
3151 * fontset.c (fontset_find_font): Fix the condition for checking
3152 unavailable font.
3153
2c7d1565
GM
31542009-02-24 Glenn Morris <rgm@gnu.org>
3155
3156 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3157 whitespace that confuses documentation.
3158
a20878b6
MB
31592009-02-23 Miles Bader <miles@gnu.org>
3160
3161 * process.c (Flist_system_processes, Fprocess_attributes)
3162 (syms_of_process): Rename `system-process-attributes' to
3163 `process-attributes'.
3164
b3b58c01
AS
31652009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3166
1b3b981b
AS
3167 * coding.h (struct coding_system): Make safe_charsets a pointer to
3168 unsigned char.
3169 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3170 being 255.
3171 (SAFE_CHARSET_P): Likewise.
3172 (setup_iso_safe_charsets): Properly setup safe_charsets.
3173 (Fdefine_coding_system_internal): Likewise.
3174 (setup_coding_system): Likewise. Remove unneeded casts.
3175 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3176 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3177 unneeded casts.
3178
b3b58c01
AS
3179 * insdel.c (del_range_2): Don't modify gap contents when called
3180 from decode_coding_object. (Bug#1809)
3181
0b6f228c
CY
31822009-02-21 Chong Yidong <cyd@stupidchicken.com>
3183
3184 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3185 Qfont_object.
3186 (Ftype_of): Recognize font objects.
3187
3188 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3189
3190 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3191 moved to data.c.
3192
52f8870b
AR
31932009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3194
3195 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3196 async_iconified. Based on a patch by Christian Lynbech
3197 <christian.lynbech@tieto.com>.
3198 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3199
7087d5e9
GM
32002009-02-20 Glenn Morris <rgm@gnu.org>
3201
3202 * syntax.c (Fskip_chars_forward): Fix doc typo.
3203
41d2ceef
CY
32042009-02-20 Chong Yidong <cyd@stupidchicken.com>
3205
3206 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3207
1a3b7ca6
CY
32082009-02-19 Chong Yidong <cyd@stupidchicken.com>
3209
3210 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3211
73cce38d
KH
32122009-02-19 Kenichi Handa <handa@m17n.org>
3213
3214 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3215 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3216
a51092ee
DN
32172009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3218
3219 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3220
c423ecca
KH
32212009-02-18 Kenichi Handa <handa@m17n.org>
3222
3223 * font.c (font_check_otf_features): Fix handling of `nil' element.
3224 (Ffont_spec): Describe :lang and :otf in the docstring.
3225
4c1958f4
AS
32262009-02-16 Andreas Schwab <schwab@suse.de>
3227
3228 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3229 string.
3230
5704f39a
KH
32312009-02-16 Kenichi Handa <handa@m17n.org>
3232
3233 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3234 (Bug#1723)
5704f39a 3235
8f0085aa
CY
32362009-02-14 Chong Yidong <cyd@stupidchicken.com>
3237
a057d86a 3238 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3239
3240 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3241 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3242
aff01dd9
EZ
32432009-02-14 Eli Zaretskii <eliz@gnu.org>
3244
3245 * msdos.c (MAX_SCREEN_BUF): New macro.
3246 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3247 Encode the entire run of glyphs sharing the same face, instead of
3248 doing that one glyph at a time (fixes a bug with displaying
3249 double-size characters).
3250
ba301db3
AR
32512009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3252
3253 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3254
3255 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3256 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3257 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3258
3259 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3260 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3261
51d861de
SM
32622009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3263
3264 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3265 invisible areas.
3266
7fed8996
JR
32672009-02-12 Jason Rumney <jasonr@gnu.org>
3268
631ea4fb
JR
3269 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3270 (add_font_entity_to_list): Call check_face_name even when family
3271 is unspecified.
3272
cb4a3e42
JR
3273 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3274 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3275 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3276
7fed8996 3277 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3278 raster fonts. (Bug#2219)
7fed8996 3279
895416e3
KH
32802009-02-12 Kenichi Handa <handa@m17n.org>
3281
3282 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3283 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3284 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3285 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3286 (find_automatic_composition): While looking forward and backward,
3287 check static composition. Fix where to stop looking forward.
3288 (composition_adjust_point): Fix checking of static composition.
3289 (Fcomposition_get_gstring): Pay attention to
1dacf998 3290 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3291
3292 * lisp.h (fast_looking_at): Extern it.
3293
3294 * search.c (fast_looking_at): New function.
3295
51d861de 3296 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3297 <struct glyph>.u.cmp.to.
3298 (append_composite_glyph): Likewise.
3299
51d861de 3300 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3301 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3302 composition.
51d861de 3303 (append_composite_glyph): Adjust for the change of
895416e3
KH
3304 <strcut glyph>.u.cmp.to.
3305
8510724d
JB
33062009-02-11 Juanma Barranquero <lekktu@gmail.com>
3307
3308 * casetab.c (init_casetab_once):
3309 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3310 * font.c (font_update_lface):
3311 * fontset.c (Fnew_fontset):
3312 * ftfont.c (ftfont_drive_otf):
3313 * xfont.c (xfont_open):
3314 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3315
294fa707
SM
33162009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3317
3318 * fileio.c (Fwrite_region): !NILP -> CONSP.
3319
b5bfebec
AS
33202009-02-10 Andreas Schwab <schwab@suse.de>
3321
3322 * process.c (send_process): Properly relocate pointer into data
adab88bd 3323 when using encoded data. (Bug#2272)
b5bfebec 3324
cb84a2be
KH
33252009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3326
3327 * coding.c (detect_coding_charset): Fix previous change.
3328
89e09428
JR
33292009-02-08 Jason Rumney <jasonr@gnu.org>
3330
3331 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3332 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3333
4470a277
AS
33342009-02-07 Andreas Schwab <schwab@suse.de>
3335
3336 * unexelf.c (unexec): Fix error message.
3337
3175b12a
AR
33382009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3339
3340 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3341 when modal window is active. (Bug #2152)
3175b12a
AR
3342 (applicationShouldTerminate:): Remove now-unneeded while loop
3343 around NSRunAlertPanel.
3344
3345 * nsmenu.m (popupSession): New file-global variable.
3346 (pop_down_menu): End the popupSession before closing dialog.
3347 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3348 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3349 don't query NSApp for events (just sleep instead).
3350
8434d0b8
EZ
33512009-02-07 Eli Zaretskii <eliz@gnu.org>
3352
51d861de
SM
3353 * coding.c (syms_of_coding) <translation-table-for-input>:
3354 Modify doc string to discourage use for character code unification.
8434d0b8 3355
aa82edfd
CY
33562009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3357
3358 * atimer.c (run_timers): Update pending_atimers.
3359
2d283c7c
CY
33602009-02-06 Chong Yidong <cyd@stupidchicken.com>
3361
eb306cab
CY
3362 * image.c (svg_load_image): Fix last change.
3363
2d283c7c
CY
3364 * xfns.c (Fx_create_frame): Signal an error if no font is
3365 found (Bug#2147).
3366
4d8e170e
JB
33672009-02-05 Juanma Barranquero <lekktu@gmail.com>
3368
3369 * character.c (syms_of_character) <script-representative-chars>:
3370 Fix typo in docstring.
3371
c96169a0
AR
33722009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3373
3374 * nsmenu.m (pop_down_menu): New function.
3375 (ns_popup_dialog): Call it on unwind.
3376 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3377 call timer_check() (Bug#2154).
3378 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3379 handling_signal is set.
3380 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3381
31fd7c5c 3382 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3383
3384 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3385
3386 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3387
51d861de
SM
3388 * keyboard.c (poll_for_input_1, handle_async_input):
3389 Set handling_signal under HAVE_NS.
c96169a0 3390
aacd8ba1
GM
33912009-02-04 Glenn Morris <rgm@gnu.org>
3392
3393 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3394
4cb75c4b
KH
33952009-02-04 Kenichi Handa <handa@m17n.org>
3396
3397 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3398
3399 * charset.c (Fchar_charset): New optional arg restriction.
3400
3401 * coding.h (coding_system_charset_list): Extern it.
3402
3403 * coding.c (coding_system_charset_list): New function.
3404
3405 * composite.c: Include coding.h and termhooks.h.
3406 (composition_gstring_p): Fix for the terminal case.
3407 (composition_gstring_width): Likewise.
3408 (fill_gstring_body): Likewise.
3409 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3410 the frame.
3411 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3412 is within a composition.
867d4bb3 3413 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3414
3415 * term.c (encode_terminal_code): Fix handling of composition.
3416 (produce_composite_glyph): For static composition, get pixel_width
3417 from struct composition.
3418
826ba17e
AS
34192009-02-02 Andreas Schwab <schwab@suse.de>
3420
3421 * unexelf.c (unexec): Handle unaligned bss offset.
3422
8ad093db
AR
34232009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3424
3425 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3426 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3427
8ad093db
AR
3428 * keyboard.c (handle_interrupt): Don't call
3429 quit_throw_to_read_char() under NS.
d0a76a6e 3430
8ad093db
AR
3431 * blockinput.h: Remove NS-specific code.
3432
4d18a7a2
DN
34332009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3434
db878925
DN
3435 * dispnew.c (window_change_signal): Don't try to get the size of a
3436 suspended tty frame.
3437 * term.c (Fresume_tty): Resize if the size has changed while the
3438 tty was suspended.
3439
4d18a7a2
DN
3440 * alloc.c (mark_stack): Properly conditionalize previous change.
3441
8984df7c
JB
34422009-01-30 Juanma Barranquero <lekktu@gmail.com>
3443
3444 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3445 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3446 Remove; this code is not used on Windows.
3447
75f4f1ac
EZ
34482009-01-30 Eli Zaretskii <eliz@gnu.org>
3449
3450 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3451 EOLs that also has stray ^M characters.
3452
07a1e794
JB
34532009-01-30 Juanma Barranquero <lekktu@gmail.com>
3454
3455 * atimer.c (run_timers, alarm_signal_handler):
3456 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3457 * w32inevt.c (w32_console_read_socket):
3458 * w32term.c (w32_read_socket):
3459 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3460
a8b11cc9
CY
34612009-01-30 Chong Yidong <cyd@stupidchicken.com>
3462
3463 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3464 Initialize it as a relative filename pattern.
3465 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3466 (Fcall_process_region): Simplify temp file creation using
3467 temporary-file-directory.
3468
c279587b
EZ
34692009-01-29 Eli Zaretskii <eliz@gnu.org>
3470
3471 * msdos.c: Rename pending_signals to msdos_pending_signals.
3472 (sig_suspender, sigprocmask): Adjust.
3473
a8fe3242
CY
34742009-01-29 Chong Yidong <cyd@stupidchicken.com>
3475
3476 * keyboard.c (pending_signals): New var.
3477 (poll_for_input, input_available_signal, init_keyboard): Set it.
3478 (process_pending_signals): New function.
3479
3480 * lisp.h (QUIT): Check pending_signals instead of
3481 interrupt_input_pending. Use process_pending_signals.
3482
51d861de 3483 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3484
51d861de 3485 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3486
3487 * sysdep.c (emacs_write): Use process_pending_signals.
3488
3489 * xterm.c (XTread_socket): Update pending_signals.
3490
3491 * w32term.c (w32_read_socket): Update pending_signals.
3492
3493 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3494
6570a1c4
KH
34952009-01-29 Kenichi Handa <handa@m17n.org>
3496
3497 * xftfont.c (xftfont_has_char): New function.
3498 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3499
d72a4afa
AR
35002009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3501
3502 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3503 under GNUstep.
3504 (ns_query_color): New declaration.
3505
3506 * nsterm.m (ns_confirm_quit): New variable.
3507 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3508 (EmacsApp-applicationShouldTerminate:): Use it.
3509 (EmacsPrefsController): Let user set it.
3510 (ns_query_color): New function.
3511 (ns_defined_color): Use it.
3512 (ns_initialize): Drop.
3513 (ns_term_init): Add two lines from ns_initialize(), and set
3514 input_interrupt_mode to nil.
3515
3516 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3517 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3518
9fe78804
KH
35192009-01-28 Kenichi Handa <handa@m17n.org>
3520
3521 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3522 (fontset_get_font_group): Remember that no font-group is specified
3523 for C.
9fe78804 3524
fa57de36
CY
35252009-01-27 Chong Yidong <cyd@stupidchicken.com>
3526
930600e9
CY
3527 * fns.c (concat): Check for string overflow (bug#1787).
3528
fa57de36
CY
3529 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3530 Quadruple undo limits (bug#1501).
3531
7179ce7b
KH
35322009-01-27 Kenichi Handa <handa@m17n.org>
3533
3534 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3535 directly use GT_Get_Char_index.
3536
3537 * xftfont.c (struct xftfont_info): New member `index'.
3538
3539 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3540 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3541
5be8fcc0
CY
35422009-01-26 Kenichi Handa <handa@m17n.org>
3543
3544 * fontset.c (fontset_find_font): Fix handling of non-cons return
3545 value of fontset_get_font_group.
3546 (fontset_font): Revert last change.
3547
19ae3e61
JR
35482009-01-26 Jason Rumney <jasonr@gnu.org>
3549
3550 * w32font.c (w32font_list_internal): Return quickly if registry is
3551 unknown. Simplify final return.
3552 (add_font_entity_to_list): Break complex logic down into more
3553 manageable chunks. Move unknown registry check to
3554 w32font_list_internal.
3555
8612b71a
AR
35562009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3557
3558 Changes to remove Feval calls from GUI under NS.
3559
d8038940
JB
3560 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3561 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3562 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3563
3564 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3565 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3566 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3567 instead of NON_ASCII_KEYSTROKE_EVENT.
3568 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3569 (EmacsApp-applicationShouldTerminate:): Query user.
3570 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3571 instead of Feval.
3572
3573 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3574
3575 * keyboard.c (kbd_buffer_get_event): Check for it.
3576 (keys_of_keyboard): Define lispy keys for
3577 ns-put/unput-working-text.
3578
3579 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3580 versions.
3581 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3582
6288ae55
CY
35832009-01-25 Chong Yidong <cyd@stupidchicken.com>
3584
3585 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3586 setting current_buffer directly. (Bug#2044)
6288ae55 3587
289e7f8f
CY
35882009-01-24 Chong Yidong <cyd@stupidchicken.com>
3589
5ce87308 3590 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3591 any work. (Bug#1952, bug#1990).
5ce87308 3592
64cc3cf6 3593 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3594
b3243e6f
AR
35952009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3596
3597 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3598 (ns_no_defaults): New declaration.
3599 (main): Use it.
e0d2e69a 3600
d900b2af 3601 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3602
d900b2af 3603 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3604
d900b2af
AR
3605 * nsterm.m (ns_no_defaults): New variable.
3606 (ns_initialize): Don't read defaults when ns_no_defaults.
3607 (EmacsView-readSelectionFromPasteboard:)
3608 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3609 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3610 (ns_dumpglyphs_stretch): New function.
3611 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3612 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3613
e0d2e69a
AR
3614 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3615
3ac71f5d
CY
36162009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3617
3618 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3619 call for Sparc64.
3620
3fe53a83
AR
36212009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3622
3623 * nsfns.m:
3624 * nsgui.h:
3625 * nsmenu.m:
3626 * nsselect.m:
3627 * nsterm.h:
3628 * nsterm.m: Remove '23' comments that indicated code added during
3629 update from emacs-20 -> emacs-23.
3630
10f87c6f 36312009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3632
3633 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3634 ns_alternate_modifier. (Bug#1217)
a3b53a85 3635
c7cef62d
AR
3636 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3637 Display all shortcuts, including those w/o super modifier.
3638
575fb8bd
AR
3639 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3640
918b848b
CY
36412009-01-22 Chong Yidong <cyd@stupidchicken.com>
3642
3643 * fileio.c (Vwrite_region_post_annotation_function)
3644 (Vwrite_region_annotation_buffers): New vars.
3645 (build_annotations_unwind): Just reset
3646 Vwrite_region_annotation_buffers.
3647 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3648 Call write-region-post-annotation-function.
3649 (build_annotations): Add to Vwrite_region_annotation_buffers if
3650 buffer changes.
3651
a39e2539
AR
36522009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3653
3654 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3655 Tiger.
51d861de
SM
3656 * nsfns.m (ns_do_applescript):
3657 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3658
35ed44db
AR
36592009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3660
3661 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3662
cbe0b5bf
AR
36632009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3664
3665 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3666
6049d3a0
AR
3667 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3668
3669 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3670 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3671 handle Ctrl-tab. (Bug#1841)
3672 (ns_get_color): Use unsigned long long for scanned hex string value.
3673 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3674 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3675 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3676 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3677 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3678 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3679 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3680
d3810c21 3681 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3682 DPI. (Bug#1316)
d3810c21
AR
3683 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3684 values in onTiger section.
4c7077c3 3685
e301e634
CY
36862009-01-19 Chong Yidong <cyd@stupidchicken.com>
3687
7f82490b
CY
3688 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3689 Check return value of font_spec_from_name.
64cc3cf6 3690 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3691
3692 * font.c (font_spec_from_name): Return Qnil if font name could not
3693 be parsed.
3694 (font_parse_name): Treat a `?' character as part of an XLFD.
3695
e301e634
CY
3696 * fns.c (Fsubstring): Doc fix.
3697
1c0db158
KH
36982009-01-19 Kenichi Handa <handa@m17n.org>
3699
51d861de 3700 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3701 (ftfont_list): Likewise.
3702
acf20901
JB
37032009-01-18 Juanma Barranquero <lekktu@gmail.com>
3704
fff4e459
JB
3705 * dbusbind.c (Fdbus_register_signal):
3706 * process.c (conv_sockaddr_to_lisp):
3707 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3708
acf20901
JB
3709 * callproc.c (Fgetenv_internal): Doc fix.
3710
e7abcdfb
CY
37112009-01-16 Chong Yidong <cyd@stupidchicken.com>
3712
3713 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3714 it is not even used.
3715
b60861e6
GM
37162009-01-16 Glenn Morris <rgm@gnu.org>
3717
3718 * font.c (Ffont_variation_glyphs): Silence compiler.
3719
8db52afe
JB
37202009-01-15 Juanma Barranquero <lekktu@gmail.com>
3721
3722 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3723 Reported by David Robinow <drobinow@gmail.com>.
3724
4cddb209
KH
37252009-01-15 Kenichi Handa <handa@m17n.org>
3726
51d861de 3727 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3728
f247f67b
JR
37292009-01-14 Jason Rumney <jasonr@gnu.org>
3730
3731 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3732 never a fontset. (Bug#1562)
f247f67b 3733
f56a4450
KH
37342009-01-14 Kenichi Handa <handa@m17n.org>
3735
3736 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3737 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3738
4e99855e
CY
37392009-01-13 Chong Yidong <cyd@stupidchicken.com>
3740
3741 * font.c (font_clear_prop): If clearing the family, clear the font
3742 width index too.
3743
fff4e459 3744 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3745
24f01470
JB
37462009-01-12 Juanma Barranquero <lekktu@gmail.com>
3747
3748 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3749 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3750 functions, use sizeof.
3751
a41240a3
MR
37522009-01-12 Martin Rudalics <rudalics@gmx.at>
3753
3754 * keyboard.c (read_char): Fix case where last_nonmenu_event
3755 returned a bad value with submenus. (Bug#447)
3756
944636b8
CY
37572009-01-12 Chong Yidong <cyd@stupidchicken.com>
3758
3759 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3760 family, clear the font width index too.
3761
0dad7c6f
JR
37622009-01-11 Jason Rumney <jasonr@gnu.org>
3763
3764 * keyboard.c (cmd_error_internal): Exit when errors occur before
3765 frame creation and not in daemon mode. (Bug#1836)
3766
7c2363af
CY
37672009-01-10 Chong Yidong <cyd@stupidchicken.com>
3768
3769 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3770 of a display vector, backtrack.
3771 (try_window_reusing_current_matrix): Check glyph type before
3772 referencing charpos member.
3773
97b1b294
EZ
37742009-01-10 Eli Zaretskii <eliz@gnu.org>
3775
3776 Fix Bug #876:
3777
3778 * coding.c (inhibit_null_byte_detection): New variable.
3779 (detect_coding, detect_coding_system): Don't pay attention to null
3780 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3781 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3782 <inhibit-iso-escape-detection>: Doc fix.
3783
4624b6e3
JR
37842009-01-09 Jason Rumney <jasonr@gnu.org>
3785
3786 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3787 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3788 Only report Unicode Plane 2 fonts as unicode-sip.
3789
323b840c
CY
37902009-01-09 Chong Yidong <cyd@stupidchicken.com>
3791
51d861de
SM
3792 * xfaces.c (Fx_font_family_list): Delete function.
3793 Move compatibility version to faces.el.
323b840c 3794
51d861de 3795 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3796
eba7400d
MR
37972009-01-09 Martin Rudalics <rudalics@gmx.at>
3798
3799 * frame.c (x_set_frame_parameters): Remember requested value for
3800 fullscreen before it's reset by the parameter handler.
3801
4b09796d
GM
38022009-01-09 Glenn Morris <rgm@gnu.org>
3803
3804 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3805 (last_command_event): ... and update all users.
4b09796d
GM
3806 (last_input_char): For clarity, rename to...
3807 (last_input_event): ... and update all users.
3808 (last-command-char, last-input-char): Move to subr.el as aliases.
3809 * cmds.c, commands.h: Update for last_command_char rename.
3810
14ccea62
CY
38112009-01-08 Chong Yidong <cyd@stupidchicken.com>
3812
51d861de 3813 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3814
5f004711
JR
38152009-01-08 Jason Rumney <jasonr@gnu.org>
3816
3817 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3818 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3819 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3820 Don't declare.
fff4e459 3821 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3822 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3823
b71f6f73
KH
38242009-01-07 Kenichi Handa <handa@m17n.org>
3825
50b06221 3826 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3827 remember the coding system used for decoding in
50b06221
KH
3828 coding_system (Bug#1039).
3829
b71f6f73 3830 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3831 breaking the loop. (Bug#870)
b71f6f73
KH
3832 (decode_coding_utf_16, decode_coding_emacs_mule)
3833 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3834 (decode_coding_charset): Likewise.
3835
56f668f7
MR
38362009-01-05 Martin Rudalics <rudalics@gmx.at>
3837
3838 * frame.c (x_set_frame_parameters): Make sure height (width) get
3839 applied when fullwidth (fullheight) is set. (Bug#1522)
3840
5da9424d
JB
38412009-01-04 Juanma Barranquero <lekktu@gmail.com>
3842
3843 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3844 (utc_base): Declare as ULONGLONG, not long double.
3845 (convert_time_raw): Delete.
3846 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3847 (initialize_utc_base): New function.
3848 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3849 (convert_from_time_t): Use initialize_utc_base; compute result with
3850 64-bit arithmetic.
3851 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3852
c4605e09
EZ
38532009-01-03 Eli Zaretskii <eliz@gnu.org>
3854
9acef61c 3855 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3856 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3857 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3858 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3859 [!subprocesses]: Define.
3860 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3861 (Flist_system_processes, Fsystem_process_attributes)
3862 [!subprocesses]: Call list_system_processes and
3863 system_process_attributes instead of returning Qnil.
3864
9acef61c
JB
3865 * dosfns.c (system_process_attributes, list_system_processes):
3866 New functions.
c4605e09
EZ
3867
3868 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3869
3870 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3871 Don't use the default (no-op) implementation.
3872
8b7d0a16
JR
38732009-01-03 Jason Rumney <jasonr@gnu.org>
3874
a6d46bc1
JR
3875 * keyboard.c (parse_modifiers_uncached): Wheel events are
3876 clicks (bug#687).
3877
8b7d0a16
JR
3878 * w32term.c (x_query_colors, x_query_color): New functions.
3879
3880 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3881 (svg_load_image): Cast returned pointers from dynamically loaded
3882 functions. Eliminate W32 specific code.
3883
bfe11752
DN
38842009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3885
89e2438a
DN
3886 * nsfns.m (x_set_foreground_color, x_set_background_color)
3887 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3888 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3889 x_ prefix instead of ns_. Update references.
3890 (syms_of_nsfns): Add a FIXME comment.
3891
3892 * nsterm.m (x_set_cursor_type): New prototype.
3893 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3894
bfe11752
DN
3895 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3896 for Solaris instead of incorrectly providing Qutime and Qcutime.
3897
031da700
EZ
38982009-01-02 Eli Zaretskii <eliz@gnu.org>
3899
3900 * w32.c (process_times): Compute sum of utime and stime.
3901 (system_process_attributes): Add Qtime to the alist.
3902
3903 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3904 and add them to the alist.
3905
3906 * process.c (top level) <Qtime, Qctime>: New variables.
3907 (syms_of_process): staticpro them.
3908 (Fsystem_process_attributes): Add their documentation to the doc
3909 string.
3910
3911 * process.h: Declare Qtime and Qctime.
3912
df23bf08
JR
39132009-01-02 Jason Rumney <jasonr@gnu.org>
3914
9acef61c 3915 * image.c (Qgobject): New symbol.
df23bf08
JR
3916 (syms_of_image): Initialize it.
3917 (init_svg_functions): Load some functions from gobject library.
3918
5bbdf7aa
DN
39192009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3920
3921 * frame.c (make_terminal_frame): Remove redundant code and useless
3922 block.
3923
63136da6
AS
39242009-01-01 Andreas Schwab <schwab@suse.de>
3925
3926 * process.c (conv_sockaddr_to_lisp): Add workaround for
3927 getsockname bug on BSD.
3928
9ef69046
CY
39292009-01-01 Chong Yidong <cyd@stupidchicken.com>
3930
d6fafbe0
CY
3931 * xfns.c (x_create_tip_frame): Set border width of the X window.
3932
51d861de 3933 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3934
f9c34147
JR
39352009-01-01 Jason Rumney <jasonr@gnu.org>
3936
9acef61c 3937 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
3938 Don't block input, as per earlier xterm.c changes.
3939
f5497e45
AR
39402008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3941
3942 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3943 (ns_appkit_version_int): New function.
3944 (x-server-version): Use ns_appkit_version_int and follow 21+
3945 convention of returning 3 integers.
3946
c19cab20
KH
39472008-12-30 Kenichi Handa <handa@m17n.org>
3948
3949 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3950 (CHAR_SURROGATE_PAIR_P): New macro.
3951
3952 * font.h (struct font_driver): New member get_variation_glyphs.
3953
9acef61c 3954 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
3955 (Ffont_variation_glyphs): New function.
3956 (syms_of_font): Defsubr it.
3957
3958 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3959 ftfont_variation_glyphs.
3960 (setup_otf_gstring): New function.
3961 (ftfont_drive_otf): Use it.
3962 (ftfont_shape_by_flt): Handle variation selector.
3963 (ftfont_variation_glyphs): New function.
3964
28cd591f
MR
39652008-12-30 Martin Rudalics <rudalics@gmx.at>
3966
3967 * frame.c (Vemacs_iconified): Remove.
3968
7f714baf
JR
39692008-12-30 Jason Rumney <jasonr@gnu.org>
3970
3971 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3972 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3973
9d2d22ab
CY
39742008-12-30 Chong Yidong <cyd@stupidchicken.com>
3975
3976 * indent.c (Fvertical_motion): Don't advance iterator if we have
3977 reseated to the desired position.
3978
3979 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3980 checking for pos match.
3981
545312c2
KH
39822008-12-30 Kenichi Handa <handa@m17n.org>
3983
1ede3eb6
KH
3984 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3985 just get the low 8-bit of the code.
3986
545312c2
KH
3987 * font.c (font_intern_prop): Validate str as multibyte.
3988
bd7bbf29
DN
39892008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3990
31e0750e
DN
3991 * dispextern.h (struct face): Move lface and hash from the middle
3992 of bitfields.
3993
bd7bbf29
DN
3994 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3995
b5672e7c
DN
39962008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3997
3998 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3999 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4000 instead of intervals.h.
4001
d704470f
AS
40022008-12-26 Andreas Schwab <schwab@suse.de>
4003
4004 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4005 cons.
4006
54b33868
MR
40072008-12-26 Martin Rudalics <rudalics@gmx.at>
4008
4009 * textprop.c (Qminibuffer_prompt): New variable.
4010 (syms_of_textprop): Initialize it.
4011 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4012 in minibuffer-prompt face. (Bug#1662)
4013
40b615d6
JR
40142008-12-25 Jason Rumney <jasonr@gnu.org>
4015
4016 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4017
baae5c2d
JR
40182008-12-24 Jason Rumney <jasonr@gnu.org>
4019
4020 * ralloc.c (r_alloc_reset_variable): New function.
4021
4022 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4023 record of what points where. (Bug#716)
baae5c2d 4024
a9051c88
DN
40252008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4026
4027 * minibuf.c (read_minibuf): Follow the non-interactive case when
4028 running as a daemon, before detaching.
4029
8b146312
AS
40302008-12-22 Andreas Schwab <schwab@suse.de>
4031
4032 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4033 * gtkutil.c (free_widget_value): Use xfree instead of free.
4034
56f2de10
MR
40352008-12-22 Martin Rudalics <rudalics@gmx.at>
4036
4037 * frame.c (delete_frame): New function derived from
4038 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4039 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4040 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4041 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4042 * frame.h: Extern delete_frame.
4043 * window.c (window_loop):
4044 * terminal.c (delete_terminal):
4045 * xterm.c (x_connection_closed):
4046 * xfns.c (Fx_hide_tip):
9acef61c 4047 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4048
1fc200d6
JR
40492008-12-21 Jason Rumney <jasonr@gnu.org>
4050
4051 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4052 when character maps to .notdef character.
4053
5e252df2
SM
40542008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4055
4056 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4057
99b72cc4
JR
40582008-12-20 Jason Rumney <jasonr@gnu.org>
4059
4060 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4061 a graphical frame on Windows. (Bug#1325)
99b72cc4 4062
acc49a52
JD
40632008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4064
4065 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4066
6ea15123
CY
40672008-12-20 Chong Yidong <cyd@stupidchicken.com>
4068
4069 * minibuf.c (Fread_buffer): Doc fix.
4070
b2dab6c8
JR
40712008-12-20 Jason Rumney <jasonr@gnu.org>
4072
54ea0c87 4073 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4074 server name in UNC paths. (Bug#719)
54ea0c87 4075
b2dab6c8 4076 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4077 charbuf. (Bug#1035)
b2dab6c8 4078
6d1921be
DN
40792008-12-19 Daniel Engeler <engeler@gmail.com>
4080
4081 * sysdep.c (serial_configure): Fix typo.
4082
53934c98
DN
40832008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4084
4085 * sysdep.c: Include alloca.h.
f4f634e8
DN
4086 (system_process_attributes): Add implementation for Solaris.
4087
4088 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4089
06e111a6
DN
40902008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4091
4092 Reorganize implementation of Flist_system_processes and
4093 Fsystem_process_attributes. No functional changes.
4094 * process.c: Don't #include pwd.h, grp.h and limits.h.
4095 (Flist_system_processes): Just call list_system_processes.
4096 (Fsystem_process_attributes): Just call system_process_attributes.
4097 (procfs_list_system_processes, time_from_jiffies)
4098 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4099 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4100
4101 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4102 (list_system_processes): Rename from
4103 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4104 Provide a do nothing implementation.
4105 (system_process_attributes): Rename from
4106 procfs_list_system_processes.
4107 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4108 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4109
4110 * w32.c (list_system_processes): Rename from
4111 w32_list_system_processes.
4112 (system_process_attributes): Rename from
4113 w32_system_process_attributes.
4114
4115 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4116
4117 * process.h (w32_list_system_processes)
4118 (w32_system_process_attributes): Remove.
362654a6
JB
4119 (list_system_processes, system_process_attributes):
4120 New prototypes.
06e111a6 4121
6a705b23
KH
41222008-12-19 Kenichi Handa <handa@m17n.org>
4123
4124 * xfont.c (xfont_decode_coding_xlfd): New function.
4125 (xfont_encode_coding_xlfd): New function.
4126 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4127 (xfont_list): Decode and encode XLFD by iso-8859-1.
4128 (xfont_match): Likewise.
4129 (xfont_list_family): Likewise.
4130 (xfont_open): Likewise.
4131
d66c0241 4132 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4133 names are utf-8.
4134
d66c0241 4135 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4136 names are utf-8.
4137
5a130941
JD
41382008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4139
4140 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4141 changed.
bfd20325
JD
4142 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4143 clicked on a detached tool bar button.
5a130941 4144
fd95644b
DN
41452008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4146
4147 * emacs.c (main): Print and error and exit when no data is read
4148 from the pipe.
4149
e6eee6ae
JR
41502008-12-17 Jason Rumney <jasonr@gnu.org>
4151
4152 * w32font.c (w32font_has_char): Always return -1.
4153
a35dd56b
KH
41542008-12-16 Kenichi Handa <handa@m17n.org>
4155
4156 * font.c (font_open_entity): Fix previous change.
4157
0e3635c2
DN
41582008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4159
4160 * process.c: Include <limits.h>.
4161
d4835507 41622008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4163
4164 * font.c (font_update_drivers): Fix mistake in reconstructing the
4165 driver list.
4166
41672008-12-16 Chong Yidong <cyd@stupidchicken.com>
4168
4169 * font.c (font_clear_cache): Fix format of font cache data.
4170
e2cbc401
CY
41712008-12-15 Chong Yidong <cyd@stupidchicken.com>
4172
4173 * xftfont.c (xftfont_open): Free Xft font pattern if
4174 XftFontOpenPattern fails.
4175
4176 * xterm.c (x_free_frame_resources): Remove extraneous call to
4177 free_frame_faces.
4178
b131d535
CY
41792008-12-13 Chong Yidong <cyd@stupidchicken.com>
4180
4181 * xterm.c (x_delete_display): Move xim_close_dpy call to
4182 x_delete_terminal.
4183 (x_delete_terminal): Call xim_close_dpy.
4184
e6df5336
JR
41852008-12-13 Jason Rumney <jasonr@gnu.org>
4186
4187 * w32font.c (intern_font_name): New function.
4188 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4189 (w32font_open_internal, Fx_select_font): Decode font name.
4190 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4191
4192 * w32font.h (intern_font_name): Declare new function.
4193
4194 * w32uniscribe.c (add_opentype_font_name_to_list):
4195 Use intern_font_name.
4196
20d68145
CY
41972008-12-13 Chong Yidong <cyd@stupidchicken.com>
4198
9f2554de
CY
4199 * frame.c (Fdelete_frame): Call free_font_driver_list.
4200
3d9bec9a
CY
4201 * font.c (free_font_driver_list): Implement missing function.
4202
20d68145
CY
4203 * w32term.c (w32_term_init): Don't initialize the image cache
4204 here; it will be done in init_frame_faces.
4205
4206 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4207 (struct x_display_info): Remove unused member null_pixel. New
4208 member xim_callback_data.
4209
4210 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4211 (xim_initialize): Save pointer to callback function data.
4212 (xim_close_dpy): Free callback function data. Call XCloseIM,
4213 reverting 2008-11-04 change by David Smith.
4214 (x_term_init): Don't initialize the image cache here; it will be
4215 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4216 (x_delete_display): Free x_dnd_atoms member.
4217
96f9306b
KH
42182008-12-13 Kenichi Handa <handa@m17n.org>
4219
6dec9044
JB
4220 * font.c (font_rescale_ratio): Moved from xfaces.c.
4221 Argument type changed. Handle a font-spec too.
96f9306b 4222 (font_score): Check Vface_font_rescale_alist.
6dec9044 4223 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4224
4225 * xfaces.c (font_rescale_ratio): Moved to font.c.
4226
8d5b4964
CY
42272008-12-13 Chong Yidong <cyd@stupidchicken.com>
4228
4229 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4230
e6df5336
JR
42312008-12-12 Jason Rumney <jasonr@gnu.org>
4232
4233 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4234 Vwindow_system_version to the real w32 major version.
4235
97c6058a
DN
42362008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4237
4238 * term.c (init_tty): Move setting the terminal name before the
4239 potential user: maybe_fatal.
4240
ec4e88d7
CY
42412008-12-11 Chong Yidong <cyd@stupidchicken.com>
4242
d4835507
JB
4243 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4244 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4245
b4233ec9
JR
42462008-12-11 Jason Rumney <jasonr@gnu.org>
4247
8ec71e23 4248 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4249 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4250
b4233ec9 4251 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4252 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4253
011a0143
JB
42542008-12-11 Juanma Barranquero <lekktu@gmail.com>
4255
4256 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4257
3c309f34
JB
42582008-12-11 Juanma Barranquero <lekktu@gmail.com>
4259
4260 * process.c (Fsystem_process_attributes, syms_of_process):
4261 Fix typo in name of Ssystem_process_attributes.
4262 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4263
fedc6ab5
JB
42642008-12-11 Juanma Barranquero <lekktu@gmail.com>
4265
4266 * syntax.c (Fmodify_syntax_entry): Doc fix.
4267
ba3de0e8
JB
42682008-12-10 Juanma Barranquero <lekktu@gmail.com>
4269
4270 * font.c (Ffont_spec): Move usage to end of docstring.
4271
174f1c74
JR
42722008-12-10 Jason Rumney <jasonr@gnu.org>
4273
4274 * w32font.c (Qcham): New symbol.
4275 (font_supported_scripts): Add cham, and comments for other new
4276 scripts in bitfield from OpenType spec.
9d32f818
JR
4277 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4278 contain characters beyond the bmp.
174f1c74 4279
7b649478
KH
42802008-12-10 Kenichi Handa <handa@m17n.org>
4281
4282 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4283 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4284 Qunicode_sip.
4285
2133e2d1
JB
42862008-12-10 Juanma Barranquero <lekktu@gmail.com>
4287
4288 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4289 (Fcoding_system_put): Use QCdefault_char.
4290 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4291
9af886ee
CY
42922008-12-09 Chong Yidong <cyd@stupidchicken.com>
4293
74d819eb
CY
4294 * xftfont.c (syms_of_xftfont): Fix typo.
4295
4ccfa1c0 4296 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4297
7c19d3ae
DN
42982008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4299
4300 * emacs.c (main): Close daemon_pipe on exec.
4301
567826bb
CY
43022008-12-08 Chong Yidong <cyd@stupidchicken.com>
4303
4304 * termchar.h (struct tty): New members termcap_term_buffer and
4305 termcap_strings_buffer.
4306
4307 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4308 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4309 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4310 All callers changed.
4311 (init_tty): Store termcap data and string buffers in new struct
4312 tty members termcap_term_buffer and termcap_strings_buffer.
4313 (delete_tty): Free them.
4ccfa1c0 4314 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4315
aa96c42b
SZ
43162008-12-07 Seiji Zenitani <zenitani@mac.com>
4317
4318 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4319 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4320
b7e1d896
CY
43212008-12-06 Chong Yidong <cyd@stupidchicken.com>
4322
4323 * coding.c (make_conversion_work_buffer): Disable buffer
4324 modification hooks in the work buffer.
4325
b5ec91a5
EZ
43262008-12-05 Eli Zaretskii <eliz@gnu.org>
4327
4328 * process.c (procfs_system_process_attributes): If `nread' has a
4329 negative value, assign zero to it.
4330
a5d2a52b
CY
43312008-12-05 Chong Yidong <cyd@stupidchicken.com>
4332
68c5540b 4333 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4334
7bf1bb21
KH
43352008-12-05 Kenichi Handa <handa@m17n.org>
4336
4337 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4338 second character is a combining character.
4339
2fdc7d00
EZ
43402008-12-05 Eli Zaretskii <eliz@gnu.org>
4341
4342 * process.c (procfs_system_process_attributes): Don't use cmd,
4343 cmdsize, and q without initializing them first.
4344
bf6bfba8
JR
43452008-12-04 Jason Rumney <jasonr@gnu.org>
4346
4347 * w32font.c (w32font_draw): Initialize orig_clip before getting
4348 it, and delete it when finished.
4349
a3b1a468
DN
43502008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4351
4352 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4353 case when running as a daemon before detaching.
4354
8b8be8eb
JB
43552008-12-03 Juanma Barranquero <lekktu@gmail.com>
4356
805f2638 4357 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4358
b1bde622
KH
43592008-12-03 Kenichi Handa <handa@m17n.org>
4360
e500c47d
KH
4361 * font.c (font_at): Set `multibyte' at first.
4362
ca516334
KH
4363 * coding.c (decode_coding_charset): Check type of an element of
4364 vector VALIDS.
7bf1bb21 4365 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4366
4ccfa1c0 4367 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4368 (font_for_char): Likewise.
4369
1e5ecd37
CY
43702008-12-03 Chong Yidong <cyd@stupidchicken.com>
4371
d5b01609 4372 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4373 (font_update_lface): Handle fonts with corrupted size specs,
4374 i.e. non-int and non-float.
d5b01609 4375
11e3a6e4 4376 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4377 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4378 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4379
ab06788b
CY
4380 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4381
1e5ecd37 4382 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4383 underline_minimum_offset for underline position.
1e5ecd37 4384
63c125ab
DN
43852008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4386
4387 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4388
4389 * character.c (c_string_width): Specify the type for LEN.
4390
3a8406e1
KH
43912008-12-03 Kenichi Handa <handa@m17n.org>
4392
4ccfa1c0 4393 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4394 (decode_coding_utf_8): Likewise.
4ccfa1c0 4395 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4396 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4397
651df7d9
CY
43982008-12-02 Chong Yidong <cyd@stupidchicken.com>
4399
4400 * keyboard.c (make_lispy_position): Only use PT if the selected
4401 window is current.
4402
1f625c6c
AS
44032008-12-02 Andreas Schwab <schwab@suse.de>
4404
f7741ce9
AS
4405 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4406
1f625c6c
AS
4407 * doprnt.c (doprnt1): Fix size of charbuf.
4408
92bc2678
CY
44092008-12-02 Chong Yidong <cyd@stupidchicken.com>
4410
4411 * keyboard.c (timer_check): Revert last change.
4412
93b9e8cc
JB
44132008-12-02 Juanma Barranquero <lekktu@gmail.com>
4414
4415 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4416
fd7a37d5
JB
44172008-12-01 Juanma Barranquero <lekktu@gmail.com>
4418
4419 * makefile.w32-in: Update dependencies.
4420 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4421
c115043b
AS
44222008-12-01 Andreas Schwab <schwab@suse.de>
4423
4424 * font.c (register_font_driver): Use xmalloc.
4425 (font_put_frame_data): Likewise.
4426
f5668d2a
CY
44272008-12-01 Chong Yidong <cyd@stupidchicken.com>
4428
860d96be
CY
4429 * xfaces.c (realize_x_face): Make abort condition clearer.
4430
f5668d2a
CY
4431 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4432
379c17e7
CY
44332008-11-30 Chong Yidong <cyd@stupidchicken.com>
4434
4435 * keyboard.c (timer_check): After a timer runs, ensure that the
4436 selected window's buffer is current.
4437
35f36d65
JB
44382008-11-30 Juanma Barranquero <lekktu@gmail.com>
4439
f952c61c
JB
4440 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4441 It was accidentally restored by the Unicode merge.
4442
35f36d65
JB
4443 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4444
b23077df
JB
44452008-11-29 Juanma Barranquero <lekktu@gmail.com>
4446
4447 * w32proc.c: Include "coding.h".
4448 (Fw32_short_file_name): Encode filename passed to Windows API.
4449 (Fw32_long_file_name): Encode filename passed to Windows API and
4450 decode back the result. (Bug#1433)
4451
b8ebe9dd
KH
44522008-11-29 Kenichi Handa <handa@m17n.org>
4453
8cc53f96
KH
4454 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4455 not before accessing it.
4456
b8ebe9dd
KH
4457 * charset.c (Fdefine_charset_internal): After calculating
4458 min_char, max_char, and fastmap, copy the charset structure again.
4459 (encode_char): Fix the previous change.
4460
59bc82c0
SZ
44612008-11-28 Seiji Zenitani <zenitani@mac.com>
4462
4463 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4464
4465 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4466
4467 * nsterm.m (x_set_frame_alpha): New function.
4468
32247e3d
EZ
44692008-11-27 Eli Zaretskii <eliz@gnu.org>
4470
4471 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4472
b003e5ff
JB
44732008-11-27 Juanma Barranquero <lekktu@gmail.com>
4474
4475 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4476 pointer to check_face_name.
4477
708550f5
KH
44782008-11-27 Kenichi Handa <handa@m17n.org>
4479
4480 * category.h (SET_CATEGORY_SET): Call set_category_set.
4481 (set_category_set): Extern it.
4482
4483 * category.c (hash_get_category_set): New function.
4484 (Fmodify_category_entry): Adjusted for the change of
4485 char_table_ref_and_range. Call hash_get_category_set to get a
4486 category set to store in the table.
4487
4488 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4489 Funify_charset.
4490
2ae37cf0 4491 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4492 (DECODE_CHAR): Check if the decoder vector is ready.
4493 (ENCODE_CHAR): Check if the encoder char-table is ready.
4494 (maybe_unify_char): Extern it.
4495
4496 * charset.c (Vchar_unified_charset_table): Delete it.
4497 (inhibit_load_charset_map): New variable.
4498 (temp_charset_work): New variable.
4499 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4500 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4501 New macros.
4502 (load_charset_map): Meaning of control_flag changed. If
4503 inhibit_load_charset_map is nonzero, setup a table in
4504 temp_charset_work.
4505 (load_charset): New argument control_flag.
4506 (map_charset_for_dump): New function.
4507 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4508 map_charset_for_dump.
4509 (Fdefine_charset_internal): If the charset method is MAP, load
4510 mapping tables by calling load_charset.
4511 (Funify_charset): Don't load a mapping table but directly set
4512 Vchar_unify_table.
4513 (maybe_unify_char): New function.
4514 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4515 Handle the case of inhibit_load_charset_map being nonzero.
4516 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4517 Handle the case of inhibit_load_charset_map being nonzero.
4518 (Fclear_charset_maps): Just free temp_charset_work.
4519 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4520 variable.
4521
4522 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4523 change of char_table_ref_and_range.
4524 (char_table_ref_and_range): Change the meaning of argument FROM
4525 and TO. Now the caller must provide initial values for *FROM
4526 and *TO.
4527
4528 * fontset.c (fontset_add): Adjusted for the change of
4529 char_table_ref_and_range.
4530 (fontset_get_font_group): Likewise.
4531 (Ffontset_info): Likewise.
4532
4533 * keymap.c (describe_vector): Adjusted for the change of
4534 char_table_ref_and_range. For char-table, put boundary between
4535 non-ASCII and 8-bit characters.
4536
4537 * print.c (print_object): For bool-vector, delete unnecessary
4538 check of ASCII_BYTE_P.
4539
9196133b
JR
45402008-11-26 Jason Rumney <jasonr@gnu.org>
4541
4542 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4543 leading in font height. (Bug#879)
9196133b 4544
9f688acf
GM
45452008-11-26 Glenn Morris <rgm@gnu.org>
4546
4547 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4548 redefinition with ifdef. (Bug#1383)
4549
90d19aff
AR
45502008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4551
4552 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4553
4ccfa1c0 45542008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4555
4556 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4557 New EmacsView methods.
4558 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4559 Fixes bug #1048,1357,1414.
4560
45612008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4562
4563 Fix bug #1362.
4564 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4565 is not an indexed color.
4566 * nsterm.m (free_indexed_color): Add argument checking.
4567 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4568
e7d5ecb3
CY
45692008-11-24 Chong Yidong <cyd@stupidchicken.com>
4570
4571 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4572 Document confirm-after-completion value for
4573 minibuffer-completion-confirm.
4574
c285743c
JR
45752008-11-24 Jason Rumney <jasonr@gnu.org>
4576
4577 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4578 warning.
4579
b0857706
JR
45802008-11-23 Jason Rumney <jasonr@gnu.org>
4581
4582 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4583 restored before returning.
4584
4585 * w32font.c (check_face_name): New function.
4586 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4587 fonts. (Bug#642)
b0857706 4588
ee50ff07
MR
45892008-11-22 Martin Rudalics <rudalics@gmx.at>
4590
4591 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4592 confirm-nonexistent-file-or-buffer in doc-string.
4593
b8ff72fa
SM
45942008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4595
4596 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4597 Fix copy/paste typo. Add checks.
4598
cee53ed4
KH
45992008-11-21 Kenichi Handa <handa@m17n.org>
4600
4601 * coding.c (detect_coding_iso_2022): Reject invalid composition
4602 sequence.
4603 (DECODE_COMPOSITION_START): If the current source is the last
4604 block, and the current composition doesn't end, regard this
4605 sequence as invalid.
4606 (decode_coding_iso_2022): Handle invalid composition sequence.
4607
f6ef1e65
MR
46082008-11-20 Martin Rudalics <rudalics@gmx.at>
4609
4610 * window.c (coordinates_in_window): Don't return
4611 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4612 line when the window is not the rightmost one. (Bug#1372)
4613
e08b1705
MR
46142008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4615
4616 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4617
ad98e89f
EZ
46182008-11-15 Eli Zaretskii <eliz@gnu.org>
4619
4620 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4621 and bright_bg if noninteractive is non-zero.
4622
fb098a4b
CY
46232008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4624
4625 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4626 x_draw_glyph_string_background.
4627
4628 * w32term.c (x_draw_glyph_string): Likewise.
4629
ce952b6e
CY
46302008-11-15 Chong Yidong <cyd@stupidchicken.com>
4631
4632 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4633 the next glyph string once past the overhang width.
4634
4635 * nsterm.m (ns_draw_glyph_string): Likewise.
4636
4637 * w32term.c (x_draw_glyph_string): Likewise.
4638
26ea7079
CY
46392008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4640
4641 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4642 double file close.
4643
1c33c906
MR
46442008-11-14 Martin Rudalics <rudalics@gmx.at>
4645
4646 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4647 dedicated status of window before attempting to display another
4648 buffer in it.
4649
8fc29035
JB
46502008-11-14 Juanma Barranquero <lekktu@gmail.com>
4651
4652 * msdos.c (Fmsdos_long_file_names):
4653 (syms_of_msdos) <dos-unsupported-char-glyph>:
4654 * dosfns.c (Fint86): Fix typos in docstrings.
4655
55fb4286
EZ
46562008-11-14 Eli Zaretskii <eliz@gnu.org>
4657
4658 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4659
3fda0315
KY
46602008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4661
4662 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4663
7e849c17
CY
46642008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4665
4666 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4667
4668 * frame.h: Negative alpha means "don't touch".
4669
4670 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4671
4672 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4673
b9fd67bd
DN
46742008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4675
4676 * hftctl.c:
4677 * chpdef.h:
4678 * acldef.h: Remove files used only for systems no longer supported.
4679
4680 * Makefile.in: Fix .o alphabetical ordering.
4681 (hftctl.o): Remove dependency, file removed.
4682 (keymap.o, print.o): Depend on charset.h.
4683
d5998e03
KH
46842008-11-10 Kenichi Handa <handa@m17n.org>
4685
2ae37cf0 4686 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4687
be70e183
CY
46882008-11-08 Chong Yidong <cyd@stupidchicken.com>
4689
4690 * dired.c (file_name_completion): If completion_ignore_case is
4691 enabled, ignore case when checking completion-regexp-list.
4692
7cf94eac
EZ
46932008-11-08 Eli Zaretskii <eliz@gnu.org>
4694
4695 * vm-limit.c (get_lim_data): Fix last change.
4696
ee107a89
KH
46972008-11-08 Kenichi Handa <handa@m17n.org>
4698
4699 * character.c (Fget_byte): New function.
4700 (syms_of_character): Defsubr Fget_byte.
4701
5fd15622
CY
47022008-11-07 Chong Yidong <cyd@stupidchicken.com>
4703
4704 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4705 cursor position is valid after scrolling.
4706
13d62fad
JB
47072008-11-06 Juanma Barranquero <lekktu@gmail.com>
4708
4709 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4710
a1dd2936
GM
47112008-11-06 Glenn Morris <rgm@gnu.org>
4712
4713 * xterm.c (handle_one_xevent): Don't let popup menus cause
4714 mouse-autoselect-window related window switching. (Bug#1261)
4715
860cd236
CY
47162008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4717
4718 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4719
653a3150
AS
47202008-11-04 Andreas Schwab <schwab@suse.de>
4721
4722 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4723
870f5cac
CY
47242008-11-03 Chong Yidong <cyd@stupidchicken.com>
4725
4726 * xfns.c (Fx_wm_set_size_hint): New function.
4727
1e02f3cb
MR
47282008-11-03 Martin Rudalics <rudalics@gmx.at>
4729
4730 * textprop.c (Fprevious_single_char_property_change): Return 0
4731 when there's no change in a string. (Bug#1301)
4732
e630dfc6
MR
47332008-11-02 Martin Rudalics <rudalics@gmx.at>
4734
4735 * frame.c (do_switch_frame): New argument NORECORD passed to
4736 Fselect_window.
4737 (Fselect_frame): New argument NORECORD passed to
4738 do_switch_frame.
4739 (Fset_frame_selected_window): New argument NORECORD passed to
4740 Fselect_frame.
4741 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4742 in call of do_switch_frame.
4743 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4744 Handle NORECORD argument in call of Fselect_frame.
4745 * lisp.h (do_switch_frame, Fselect_frame)
4746 (Fset_frame_selected_window): Adjust declarations.
4747 * window.c (select_frame_norecord): New function.
4748 (run_window_configuration_change_hook): Use it and call
4749 Fselect_frame with NORECORD set.
4750 (Fselect_window): Pass NORECORD to Fselect_frame.
4751 (Fset_window_configuration): Handle NORECORD argument in call of
4752 do_switch_frame.
4753 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4754 Fset_frame_selected_window.
4755 * keyboard.c (command_loop_1): Handle NORECORD in call of
4756 Fselect_frame (currently ifdefd).
4757
9020b223
GM
47582008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4759
4760 * emacs.c (USAGE2): Untabify.
4761
793ffee8
SM
47622008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4763
4764 * composite.c (fill_gstring_header): Fix copy/paste typo.
4765
ab6d1131
MR
47662008-10-31 Martin Rudalics <rudalics@gmx.at>
4767
4768 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4769 (Fother_window): Rename argument and rewrite doc-string.
4770 (select_window_norecord): Fix return value. (Bug#1276)
4771
601a9cf1
JB
47722008-10-30 Juanma Barranquero <lekktu@gmail.com>
4773
4774 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4775 new frames overriding foreground for tooltips. Based on similar patch
4776 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4777
813b0652
CY
47782008-10-29 Chong Yidong <cyd@stupidchicken.com>
4779
4780 * emacs.c (Fdaemon_initialized): Initialize nfd.
4781
4414f58f
MR
47822008-10-29 Martin Rudalics <rudalics@gmx.at>
4783
4784 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4785 (Fwindow_text_height): Clarify doc-strings.
4786 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4787 doc-string of window-scroll-functions.
4788
ecdcaa09
RS
47892008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4790
4791 * category.c (syms_of_category): Fix typo in docstring.
4792
23fe745a
JB
47932008-10-28 Juanma Barranquero <lekktu@gmail.com>
4794
4795 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4796 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4797 Fix typos in docstrings.
4798
ff808935
DN
47992008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4800
4801 * emacs.c (daemon_pipe): Make non-static.
4802 (IS_DAEMON): Move definition ...
4803 * lisp.h (IS_DAEMON): ... here.
4804 (daemon_pipe): Declare.
4805 (is_daemon): Remove.
4806 * dispnew.c (init_display): Use IS_DAEMON.
4807
fc012771
SM
48082008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4809
4810 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4811 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4812
4813 * emacs.c (is_daemon): Remove.
4814 (main): Don't set is_daemon.
4815 (IS_DAEMON): New macro.
4816 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4817 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4818 parent exits.
4819 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4820
d8bdbe6f
CY
48212008-10-27 Chong Yidong <cyd@stupidchicken.com>
4822
d1a072bf
CY
4823 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4824 over-sized glyph, draw it with the default glyph width.
4825
e2e325aa
CY
4826 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4827 glyph, draw it with the default glyph width.
4828
4829 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4830 glyph, draw it with the default glyph width.
4831
d8bdbe6f
CY
4832 * xdisp.c (try_scrolling): When computing the distance from the
4833 scroll margin to PT, try moving some distance past the window
4834 bottom before giving up.
4835
7bfac547
MR
48362008-10-27 Martin Rudalics <rudalics@gmx.at>
4837
4838 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4839 (Fset_window_buffer): Explain in doc-string that a window can be
4840 "strongly" dedicated to its buffer.
4841
4ff029f6
DN
48422008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4843
4844 * emacs.c (daemon_name): New variable.
4845 (main): Deal with --daemon=SERVER_NAME.
4846 (Fdaemonp): Return a name if one was passed to --daemon.
4847
5790ef40
DN
48482008-10-26 Romain Francoise <romain@orebokech.com>
4849
f9bd0df9 4850 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4851 (main): Create a pipe before forking, make the parent exit only after
4852 the child has closed its end of the pipe. Move closing the
4853 descriptors ...
4854 (Fdaemon_initialized): ... here. New function.
4855
f5385255
SM
48562008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4857
4d632321
SM
4858 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4859 the previous unoptimized table.
4860
f5385255
SM
4861 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4862 the distinction between non-nil and non-t value of `dedicated'.
4863
6c56a0f3
CY
48642008-10-25 Chong Yidong <cyd@stupidchicken.com>
4865
4866 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4867 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4868
fec89261
MR
48692008-10-25 Martin Rudalics <rudalics@gmx.at>
4870
4871 * window.c (Fget_buffer_window, Fdelete_windows_on)
4872 (Freplace_buffer_in_windows): Make buffer argument optional and
4873 rename to buffer_or_name.
4874
34fcddd0
CY
48752008-10-24 Chong Yidong <cyd@stupidchicken.com>
4876
f5385255
SM
4877 * xdisp.c (handle_single_display_spec, handle_display_prop):
4878 Undo 2005-05-16 change.
34fcddd0
CY
4879 (handle_stop): Pop iterator if it's loaded with an empty string.
4880 (get_overlay_strings_1): Don't save iterator if it's loaded with
4881 an empty string (bug#1201).
4882
064766f2
KH
48832008-10-24 Kenichi Handa <handa@m17n.org>
4884
4885 * ftfont.c (ftfont_otf_features): Fix previous change.
4886 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4887 calling ftfont_otf_features.
4888
f9bd0df9 48892008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4890
4891 * font.c (font_match_p): Fix for the case that a vector of
4892 characters is in script-representative-chars.
4893
1dae9197
MA
48942008-10-24 Michael Albinus <michael.albinus@gmx.de>
4895
4896 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4897 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4898 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4899 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4900 macro. (Bug#1186).
4901
f9bd0df9 49022008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4903
4904 * s/sol2-10.h: New file.
4905
878a4584
JB
49062008-10-23 Juanma Barranquero <lekktu@gmail.com>
4907
4908 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4909 poor beast has survived 9+ years and the jump from xterm.c!).
4910
cd265ca6
MR
49112008-10-23 Martin Rudalics <rudalics@gmx.at>
4912
4913 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4914 Reword doc-string.
f5385255 4915 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4916
472a4dc9
JB
49172008-10-23 Juanma Barranquero <lekktu@gmail.com>
4918
4919 * character.c (syms_of_character) <script-representative-chars>:
4920 <unicode-category-table>: Doc fixes.
4921
159bd5a2
NF
49222008-10-23 Noah Friedman <friedman@splode.com>
4923
4924 * coding.c (make_conversion_work_buffer): Check that
4925 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4926 Fget_buffer_create.
4927
49f9c344
KH
49282008-10-23 Kenichi Handa <handa@m17n.org>
4929
4930 * font.c (font_add_log): Check the values of extra properties.
4931
12bb3111
MR
49322008-10-22 Martin Rudalics <rudalics@gmx.at>
4933
4934 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4935 Reword doc-string.
4936 (Fset_window_parameter): Use NILP.
4937 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 4938 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 4939
bbeb4e99
JB
49402008-10-22 Juanma Barranquero <lekktu@gmail.com>
4941
4942 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4943
49442008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
4945
4946 * nsfns.m (ns_appkit_version): New function.
4947 (x-server-version): Use it.
4948 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4949 (x-server-vendor): Don't check_ns().
4950
4951 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4952
a9b555d3
JB
49532008-10-22 Juanma Barranquero <lekktu@gmail.com>
4954
4955 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4956 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4957
4626499f
KH
49582008-10-22 Kenichi Handa <handa@m17n.org>
4959
e3681952
KH
4960 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4961 scripts.
4962
4626499f
KH
4963 * category.c (word_boundary_p): Check scripts instead of charset.
4964 Handle nil value in word-separating-categories and
4965 word-combining-categories.
4966 (syms_of_category): Fix docstrings of word-separating-categories
4967 and word-combining-categories.
4968
1560f91a
EZ
49692008-10-21 Eli Zaretskii <eliz@gnu.org>
4970
4971 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4972 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4973
f4668441
MR
49742008-10-21 Martin Rudalics <rudalics@gmx.at>
4975
4976 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4977 Rename arg "buffer" to "buffer_or_name".
4978 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4979 it optional.
4980 (no_switch_window): Remove since the return value is not used.
a9b555d3 4981 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4982 Consider window as dedicated when Fwindow_dedicated_p returns a
4983 non-nil value.
4984 * lisp.h: Remove prototype for no_switch_window.
4985
fd75ddb2
JD
49862008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4987
4988 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4989 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4990
07295713
KH
49912008-10-21 Kenichi Handa <handa@m17n.org>
4992
4993 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4994 check Vlatin_extra_code_table.
4995
712adc82
EZ
49962008-10-20 Eli Zaretskii <eliz@gnu.org>
4997
4998 * fileio.c (Fset_file_modes): Doc fix.
4999
f549eb0b
MA
50002008-10-19 Michael Albinus <michael.albinus@gmx.de>
5001
5002 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5003 in arrays.
5004
aac0c6e3
MR
50052008-10-19 Martin Rudalics <rudalics@gmx.at>
5006
5007 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5008 Mention kill-buffer in doc-string.
5009 (Fset_window_buffer): Reinsert tem check removed in last commit.
5010 (Fenlarge_window, Fshrink_window): Have argument names and
5011 doc-string follow Elisp manual more closely.
5012
50132008-10-18 Eli Zaretskii <eliz@gnu.org>
5014
5015 * fileio.c (Fset_file_modes): Doc fix.
5016
50172008-10-18 Martin Rudalics <rudalics@gmx.at>
5018
5019 * window.c (Fwindow_width, Fset_window_start)
5020 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5021 (Fdelete_windows_on, Freplace_buffer_in_windows):
5022 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5023 (Fwindow_dedicated_p): Make window argument optional.
5024 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5025 (Fset_window_buffer): Respect any non-nil dedicated value for
5026 window. Rename "buffer" argument to "buffer_or_name".
5027
50282008-10-18 Ulrich Mueller <ulm@gentoo.org>
5029
5030 * m/sh3.h: New file, machine description for SuperH.
5031
50322008-10-17 Martin Rudalics <rudalics@gmx.at>
5033
5034 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5035
50362008-10-17 Kenichi Handa <handa@m17n.org>
5037
5038 * ftfont.c (ftfont_otf_features): Fix indexing
5039 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5040
50412008-10-16 Magnus Henoch <mange@freemail.hu>
5042
5043 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5044 (Fdbus_call_method_asynchronously): Ditto.
5045 This change makes C-h f display the argument list.
5046
50472008-10-16 Chong Yidong <cyd@stupidchicken.com>
5048
5049 * fileio.c (Fexpand_file_name): Doc fix.
5050
5051 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5052 of :foreground and :background equivalent to unspecified (20.x
5053 compatibility).
5054
50552008-10-15 Eli Zaretskii <eliz@gnu.org>
5056
5057 * buffer.c (syms_of_buffer): Doc fix.
5058
50592008-10-14 Kenichi Handa <handa@m17n.org>
5060
5061 * font.c (font_clear_prop): When clearing font width, clear the
5062 average width field too.
5063
50642008-10-12 Andreas Schwab <schwab@suse.de>
5065
5066 * ftfont.c (ftfont_shape_by_flt): Make static.
5067 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5068
5069 * font.c: Don't include <m17n-flt.h>.
5070
50712008-10-10 Eli Zaretskii <eliz@gnu.org>
5072
5073 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5074
50752008-10-09 Eli Zaretskii <eliz@gnu.org>
5076
5077 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5078 away code.
5079
50802008-10-09 Chong Yidong <cyd@stupidchicken.com>
5081
5082 * dispnew.c (update_text_area): Avoid looping due to large glyph
5083 overhangs (bug#1070).
5084
50852008-10-09 Kenichi Handa <handa@m17n.org>
5086
5087 * fontset.c (face_for_char): If face->fontset is negative, just
5088 return ascii_face.
5089
f5385255
SM
5090 * font.c (font_delete_unmatched): Fix previous change.
5091 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5092
50932008-10-09 Martin Rudalics <rudalics@gmx.at>
5094
5095 * frame.c (Fraise_frame): On text-only terminals select frame in
5096 order to make it visible. (Bug#1061)
5097
50982008-10-08 Chong Yidong <cyd@stupidchicken.com>
5099
5100 * fontset.c (fontset_find_font): Check frame validity.
5101
51022008-10-07 Chong Yidong <cyd@stupidchicken.com>
5103
a9b555d3 5104 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5105 (xg_display_close): Allow Emacs to close all displays (bug#985).
5106
51072008-10-06 Andreas Schwab <schwab@suse.de>
5108
f5385255 5109 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5110
51112008-10-06 Chong Yidong <cyd@stupidchicken.com>
5112
f5385255 5113 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5114
a9b555d3 5115 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5116
5117 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5118 during initialization.
5119
51202008-10-04 Eli Zaretskii <eliz@gnu.org>
5121
5122 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5123 whole thing on MSDOS frames as well as on a TTY.
5124
5125 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5126 well as for TTY.
5127 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5128 well as on a TTY.
5129
5130 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5131 as well as for TTY.
5132
5133 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5134
5135 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5136 MSDOS frames as well.
5137
51382008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5139
5140 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5141 correct arguments.
b71ac3dd 5142 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5143
51442008-10-03 Glenn Morris <rgm@gnu.org>
5145
5146 * emacs.c (USAGE1): Add --daemon.
5147
51482008-10-02 Eli Zaretskii <eliz@gnu.org>
5149
5150 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5151 100, so it's in percents as advertised.
5152
51532008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5154
5155 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5156 (ns_output.current_cursor, ns_output.desired_cursor)
5157 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5158 (FRAME_NEW_CURSOR_COLOR): Remove.
5159
5160 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5161 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5162 enumeration (HOLLOW_BOX_CURSOR, etc.).
5163
5164 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5165 (draw_window_cursor): Simplify code.
f5385255
SM
5166 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5167 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5168 updates manually.
a9b555d3
JB
5169 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5170 Use core Emacs cursor types.
aac0c6e3 5171
b8ff72fa 5172 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5173
51742008-10-02 Martin Rudalics <rudalics@gmx.at>
5175
5176 * process.c (Faccept_process_output): Fix doc-string.
5177
51782008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5179
5180 * gmalloc.c (__sbrk): Also define for uClibc.
5181
5182 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5183 for uClibc.
5184
51852008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5186
5187 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5188 styles.
5189 (nsfont_open): Reenable the cache.
5190
51912008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5192
5193 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5194 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5195
51962008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5197
5198 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5199 a suspended terminal.
5200
52012008-09-30 Michael Albinus <michael.albinus@gmx.de>
5202
5203 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5204
52052008-09-30 Eli Zaretskii <eliz@gnu.org>
5206
5207 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5208
52092008-09-30 Chong Yidong <cyd@stupidchicken.com>
5210
5211 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5212 in a continued line coincides with a line beginning.
5213
52142008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5215
5216 * nsfont.m (nsfont_trait_distance): Fix bug.
5217 (nsfont_list): Return a list rather than a vector (syncs with Handa
5218 changes of 2008-05-14).
5219 (nsfont_open): Improve logging.
5220
52212008-09-29 Andreas Schwab <schwab@suse.de>
5222
5223 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5224
52252008-09-28 Martin Rudalics <rudalics@gmx.at>
5226
5227 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5228 name as char-resolve-modifiers.
5229 Reported by: Markus Triska <markus.triska@gmx.at>
5230
52312008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5232
5233 * dispnew.c (init_display): Return earlier when running as a daemon.
5234
52352008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5236
5237 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5238
52392008-09-27 Eli Zaretskii <eliz@gnu.org>
5240
5241 * composite.c (Fcomposition_get_gstring)
5242 (Fcompose_region_internal, Fcompose_string_internal)
5243 (Ffind_composition_internal): Doc fix.
5244 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5245 (syms_of_composite) <auto-composition-function>: Doc fix.
5246 (syms_of_composite) <composition-function-table>: Doc fix.
5247
52482008-09-25 Chong Yidong <cyd@stupidchicken.com>
5249
5250 * search.c (wordify): New argument for lax word-ends.
5251 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5252
52532008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5254
5255 * lisp.h (is_daemon): Declare.
5256 * dispnew.c (init_display): Do not try to initialize the terminal
5257 when running as a daemon.
5258
52592008-09-22 Chong Yidong <cyd@stupidchicken.com>
5260
5261 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5262 x_display_pixel_height.
5263
52642008-09-22 Martin Rudalics <rudalics@gmx.at>
5265
5266 * undo.c (record_point): Don't call Fundo_boundary for first
5267 change. (Bug#731)
5268
52692008-09-22 Juanma Barranquero <lekktu@gmail.com>
5270
5271 * emacs.c (Fdaemonp): Doc fix.
5272
52732008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5274
5275 * emacs.c (main): Place #ifdef in the proper place.
5276
52772008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5278
5279 * emacs.c (standard_args): Add --daemon.
5280 (main): Disconnect from the terminal when --daemon is passed.
5281 (is_daemon): New variable.
5282 (Fdaemonp): New function.
5283 (syms_of_emacs): Defsubr it.
5284
52852008-09-20 Chong Yidong <cyd@stupidchicken.com>
5286
5287 * xdisp.c (get_next_display_element): Handle string display
5288 correctly when checking for the end of a box run.
5289
52902008-09-20 Glenn Morris <rgm@gnu.org>
5291
5292 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5293 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5294 (Frename_file): Avoid copying to trash if a rename involves
5295 a delete. (Bug#964).
5296
52972008-09-20 Eli Zaretskii <eliz@gnu.org>
5298
5299 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5300 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5301 frames as well as termcap frames.
5302 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5303 get_named_tty.
5304
53052008-09-19 Eli Zaretskii <eliz@gnu.org>
5306
5307 * process.c (procfs_system_process_attributes): Fix cmdline in
5308 case /proc/PID/cmdline is empty.
5309
5310 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5311 x_display_pixel_height.
5312
53132008-09-19 Juanma Barranquero <lekktu@gmail.com>
5314
5315 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5316
5317 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5318 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5319
53202008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5321
5322 * dispextern.h (struct it): Move line_wrap away from the middle of
5323 bitfields. Move voffset in struct iterator_stack_entry after the
5324 bitfields. Move tab_width near after another short.
5325
53262008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5327
5328 * frame.h (struct frame): Move alpha from the middle of bitfields.
5329
5330 * window.h (struct window): Move frozen_window_start_p after the
5331 rest of the bitfields to reduce padding.
5332
53332008-09-18 Chong Yidong <cyd@stupidchicken.com>
5334
5335 * xterm.h (x_display_info): Remove `height' and `width' members.
5336
5337 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5338
5339 * w32term.h (w32_display_info): Remove `height', `width',
5340 `height_in', and `width_in' members.
5341
b8ff72fa
SM
5342 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5343 New functions.
aac0c6e3
MR
5344 (x_calc_absolute_position): Use them.
5345 (x_term_init): Omit removed `height' and `width' members.
5346
b8ff72fa
SM
5347 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5348 New functions.
aac0c6e3
MR
5349 (w32_read_socket, x_calc_absolute_position): Use them.
5350 (w32_initialize_display_info, w32_term_init): Omit removed members
5351 of w32_display_info.
5352
b8ff72fa
SM
5353 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5354 New functions.
5355 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5356
b8ff72fa
SM
5357 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5358 New functions.
aac0c6e3
MR
5359 (x_calc_absolute_position): Use them.
5360 (x_term_init): Omit removed `height' and `width' members.
5361
5362 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5363 (compute_tip_xy):
5364 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5365 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5366 x_display_pixel_width.
5367
53682008-09-18 Kenichi Handa <handa@m17n.org>
5369
5370 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5371 (composition_compute_stop_pos): Fix handling of static composition.
5372 (Fcomposition_get_gstring): Check FROM and TO at first.
5373
53742008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5375
46e722a9 5376 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5377 mixup (YAILOM).
5378
53792008-09-17 Chong Yidong <cyd@stupidchicken.com>
5380
5381 * indent.c (Fvertical_motion): Use position reported by iterator
5382 instead of PT for determining screen motion (bug#943).
5383
53842008-09-17 Romain Francoise <romain@orebokech.com>
5385
5386 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5387
53882008-09-17 Kenichi Handa <handa@m17n.org>
5389
5390 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5391
5392 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5393 if necessary.
5394
53952008-09-16 Kenichi Handa <handa@m17n.org>
5396
5397 * coding.c (make_conversion_work_buffer): Avoid calling
5398 Fget_buffer_create if it is not necessary.
5399
54002008-09-15 Martin Rudalics <rudalics@gmx.at>
5401
5402 * window.c (Fselect_window): Don't update window_select_count and
5403 use_time when norecord is not nil.
5404
54052008-09-14 Kenichi Handa <handa@m17n.org>
5406
5407 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5408 specpdl_ptr.
5409
54102008-09-12 Kenichi Handa <handa@m17n.org>
5411
5412 * indent.c (scan_for_column): Don't handle automatic composition
5413 if the current buffer is not associated with a window.
5414
5415 * composite.c (composition_reseat_it): If the current buffer is
5416 not associated with a window, ignore the automatic composition.
5417 (find_automatic_composition): Likewise.
5418
54192008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5420
5421 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5422 (Fgpm_mouse_stop): Use it.
5423 * termhooks.h (close_gpm): Declare.
5424 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5425 connection if Gpm_GetEvent fails.
5426
5427 * window.c (set_window_buffer): Always preserve current-buffer.
5428
54292008-09-12 Glenn Morris <rgm@gnu.org>
5430
5431 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5432
54332008-09-11 Glenn Morris <rgm@gnu.org>
5434
5435 * charset.c (charset-map-path): Doc fix.
5436
54372008-09-10 Kenichi Handa <handa@m17n.org>
5438
5439 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5440
5441 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5442 compose a grapheme cluster with the preceding base glyph.
5443
5444 * composite.c (composition_compute_stop_pos): Fix previous change.
5445 Reset cmp_it->id to -1 at first.
5446
54472008-09-10 Glenn Morris <rgm@gnu.org>
5448
5449 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5450
54512008-09-09 Chong Yidong <cyd@stupidchicken.com>
5452
5453 * keyboard.c (read_key_sequence): Reapply translation maps when
5454 switching keyboards.
5455
54562008-09-09 Kenichi Handa <handa@m17n.org>
5457
5458 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5459 characters.
5460
5461 * composite.c (FORWARD_CHAR): Fix calculation
5462 of (POSITION).pos_byte.
5463 (composition_compute_stop_pos): Limit the search of composition to
5464 at most 500 characters ahead. If we reach the limit or find a
5465 newline, set cmp_it->ch to -2 and return 0.
5466 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5467
54682008-09-08 Kenichi Handa <handa@m17n.org>
5469
5470 * indent.c (Fvertical_motion): Be sure to set
5471 it_overshoot_expected if it.cmp_it.id is non-negative.
5472
54732008-09-07 Andreas Schwab <schwab@suse.de>
5474
5475 * callproc.c (Fcall_process): Don't hold references to string data
5476 across garbage collection. Move initialisation of new_argv down
5477 to avoid compiler bug.
5478
54792008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5480
5481 * process.c (Fsystem_process_attributes): Doc fix.
5482
54832008-09-07 Chong Yidong <cyd@stupidchicken.com>
5484
5485 * callproc.c (Fcall_process): Canonicalize current directory name.
5486
5487 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5488 iterator advances to the next line if the current line ends in a
5489 continued tab.
5490
54912008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5492
5493 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5494 member to point to cmp_from.
5495
5496 * xdisp.c: Doc fix for references to gidx data member.
5497
54982008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5499
5500 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5501
55022008-09-07 Kenichi Handa <handa@m17n.org>
5503
5504 * composite.c (FORWARD_CHAR): Check STOP after
5505 incrementing (POSITION).pos.
5506
55072008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5508
5509 * process.c (Fsystem_process_attributes): Doc fix.
5510
55112008-09-06 Chong Yidong <cyd@stupidchicken.com>
5512
5513 * keyboard.c (Ftop_level): Doc fix.
5514
55152008-09-06 Eli Zaretskii <eliz@gnu.org>
5516
5517 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5518 minibuffer, don't let lower part of menu invade the echo area.
5519
5520 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5521 "char *q" to access menu text and advance through it. Revert the
5522 change that displayed ">" instead of ASCII character 0x10.
5523
55242008-09-05 Eli Zaretskii <eliz@gnu.org>
5525
5526 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5527 toggle boxes and radio buttons on MS-DOS as well.
5528
55292008-09-05 Kenichi Handa <handa@m17n.org>
5530
5531 * composite.c (autocmp_chars): Check lookback count.
5532 (composition_compute_stop_pos): Set cmp_it->lookback.
5533 (composition_reseat_it): Check lookback count.
5534 (struct position_record): New struct.
5535 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5536 (find_automatic_composition): New function.
5537 (composition_adjust_point): Use find_automatic_composition.
5538
5539 * dispextern.h (struct composition_it): New member lookback.
5540
55412008-09-02 Chong Yidong <cyd@stupidchicken.com>
5542
5543 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5544 if moving by a single line.
5545
55462008-09-02 Andreas Schwab <schwab@suse.de>
5547
5548 * xterm.c (x_delete_display): Fix merge error.
5549
5550 * fileio.c (Fexpand_file_name): Remove unused variables.
5551
55522008-09-02 Eli Zaretskii <eliz@gnu.org>
5553
5554 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5555 storage on all platforms, not just on DOS_NT.
5556
55572008-09-02 Jason Rumney <jasonr@gnu.org>
5558
b8ff72fa
SM
5559 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5560 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5561
55622008-09-01 Chong Yidong <cyd@stupidchicken.com>
5563
5564 * xfaces.c (Finternal_set_alternative_font_family_alist)
5565 (Finternal_set_alternative_font_registry_alist): Properly copy
5566 entire alist structure.
5567
55682008-09-01 Kenichi Handa <handa@m17n.org>
5569
d66c0241 5570 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5571 representative chars of the script is a vector.
d66c0241
JB
5572 (ftfont_list): Handle the case where the representative chars of
5573 the script is a vector.
aac0c6e3
MR
5574
5575 * character.c (syms_of_character): Docstring of
5576 script-representative-chars fixed.
5577
55782008-08-31 Eli Zaretskii <eliz@gnu.org>
5579
5580 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5581 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5582 the menu. Allocate larger buffer for `text', to account for
5583 possible ^C characters.
5584
55852008-08-31 Martin Rudalics <rudalics@gmx.at>
5586
5587 * xdisp.c (prepare_menu_bars): Don't call
5588 Vwindow_size_change_functions with arg Qt.
5589
55902008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5591
5592 * font.h (font_range):
5593 * fileio.c (report_file_error):
46e722a9
SM
5594 * composite.c (composition_update_it): Yet another int/Lisp_Object
5595 mixup (YAILOM).
aac0c6e3
MR
5596
55972008-08-30 Glenn Morris <rgm@gnu.org>
5598
5599 * data.c (Fmake_variable_frame_local): Doc fix.
5600
5601 * frame.c (Fmodify_frame_parameters): Doc fix.
5602
56032008-08-30 Eli Zaretskii <eliz@gnu.org>
5604
5605 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5606 needed by GetTokenInformation.
5607 (w32_system_process_attributes): Check return values of all system
5608 APIs.
5609
5610 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5611 only when the state changes.
5612 (IT_update_begin, IT_update_end): Add termscript trace.
5613
5614 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5615 clipboard is unavailable. Set dst to NULL if it doesn't point to
5616 malloc'ed data.
5617 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5618 passing random values to xfree.
5619
5620 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5621 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5622
56232008-08-29 Jason Rumney <jasonr@gnu.org>
5624
5625 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5626
56272008-08-29 Eli Zaretskii <eliz@gnu.org>
5628
5629 * composite.c (fill_gstring_body): Avoid compiler warnings.
5630
5631 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5632 LGLYPH_SET_CODE to avoid compiler warnings.
5633
2ae37cf0 5634 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5635
5636 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5637
5638 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5639 LGLYPH_SET_CODE.
5640
56412008-08-29 Kenichi Handa <handa@m17n.org>
5642
5643 * fileio.c (report_file_error): Don't downcase the first character
5644 of errstring if it is still unibyte.
5645
56462008-08-29 Kenichi Handa <handa@m17n.org>
5647
5648 These changes are to re-implement the automatic composition so
5649 that it doesn't use text properties.
5650
5651 * Makefile.in (ftfont.o): Depend on composite.h.
5652 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5653
5654 * character.h (Vunicode_category_table): Extern it.
5655
5656 * character.c (Vunicode_category_table): New variable.
5657 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5658
5659 * chartab.c (optimize_sub_char_table): Perform more greedy
5660 optimization.
5661
b8ff72fa
SM
5662 * composite.h (enum composition_method):
5663 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5664 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5665 (Vcomposition_function_table): Extern it.
5666 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5667 (composition_gstring_put_cache, composition_gstring_from_id)
5668 (composition_gstring_p, composition_gstring_width)
5669 (composition_compute_stop_pos, composition_reseat_it)
5670 (composition_update_it, composition_adjust_point): Extern them.
5671 (Fcomposition_get_gstring): EXFUN it.
5672
d66c0241 5673 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5674 (Vcomposition_function_table)
5675 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5676 (gstring_hash_table, gstring_work, gstring_work_headers):
5677 New variables.
aac0c6e3
MR
5678 (gstring_lookup_cache, composition_gstring_put_cache)
5679 (composition_gstring_from_id, composition_gstring_p)
5680 (composition_gstring_width, fill_gstring_header)
5681 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5682 (composition_reseat_it, composition_update_it)
b8ff72fa 5683 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5684 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5685 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5686 Defsubr compostion_get_gstring.
5687
5688 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5689 cmp_id.
5690 (struct glyph_string): Delete the member gidx. New members
5691 cmp_id, cmp_from, and cmp_to.
5692 (enum it_method): Delete GET_FROM_COMPOSITION.
5693 (struct composition_it): New struct.
5694 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5695 Delete c, len, cmp_id, cmp_len in u.comp.
5696
5697 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5698 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5699 (enum lglyph_indices): Likewise.
b8ff72fa 5700 (font_range): Adjust extern.
aac0c6e3
MR
5701 (font_fill_lglyph_metrics): Extern it.
5702
5703 * font.c (QCf): New variable.
5704 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5705 (font_prepare_composition): Delete this function.
5706 (font_range): Type and arguments changed.
5707 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5708 (font_fill_lglyph_metrics): New function.
b8ff72fa 5709 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5710 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5711 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5712 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5713
5714 * fontset.h (font_for_char): Extern it.
5715
5716 * fontset.c (font_for_char): New function.
5717
5718 * ftfont.c: Include composite.h.
5719 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5720 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5721
5722 * indent.c: Include composite.h and dispextern.h.
5723 (check_composition): Delete this function.
5724 (scan_for_column): Handle composition by
5725 composition_compute_stop_pos, composition_reseat_it, and
5726 composition_update_it.
5727 (compute_motion): Likewise.
5728 (Fvertical_motion): Fix checking of composition.
5729
5730 * keyboard.c (adjust_point_for_property): Check composition by
5731 composition_adjust_point.
5732
b8ff72fa 5733 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5734 struct glyph_string.
5735
b8ff72fa
SM
5736 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5737 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5738 struct glyph.
5739 (produce_composite_glyph): Likewise.
5740
b8ff72fa
SM
5741 * w32term.c (x_draw_composite_glyph_string_foreground):
5742 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5743 (x_draw_glyph_string): Likewise.
5744
5745 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5746 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5747
5748 * xdisp.c: Include font.h.
5749 (it_props): Delete the entry for Qauto_composed.
5750 (init_iterator): Initialize it->cmp_it.id to -1.
5751 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5752 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5753 (handle_auto_composed_prop): Delete it.
5754 (handle_composition_prop): Handle only static composition.
5755 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5756 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5757 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5758 (pop_it): Likewise.
5759 (get_next_element): Delete next_element_from_composition.
5760 (CHAR_COMPOSED_P): New macro.
5761 (get_next_display_element): For automatic composition, get a face
5762 from the font in the glyph-string.
5763 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5764 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5765 (next_element_from_string): Check if the character at the current
5766 position is composed by CHAR_COMPOSED_P.
5767 (next_element_from_buffer): Likewise.
d66c0241
JB
5768 (next_element_from_composition): Adjust for the change of struct it.
5769 Update it->cmp_it.
b8ff72fa
SM
5770 (dump_glyph): Adjust for the change of struct glyph.
5771 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5772 it and struct glyph. Don't handle automatic composition here.
5773 (fill_gstring_glyph_string): New function.
5774 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5775 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5776 (BUILD_GSTRING_GLYPH_STRING): New macro.
5777 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5778 automatic composition.
b8ff72fa 5779 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5780 struct glyph.
b8ff72fa 5781 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5782
b8ff72fa 5783 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5784 the change of struct glyph_string.
5785 (x_draw_glyph_string): Likewise.
5786
57872008-08-29 Glenn Morris <rgm@gnu.org>
5788
5789 * buffer.c (word-wrap): Doc fix.
5790 * xdisp.c (truncate-partial-width-windows): Doc fix.
5791 Increase default to 50.
5792
57932008-08-29 Chong Yidong <cyd@stupidchicken.com>
5794
5795 * xdisp.c (update_tool_bar_unwind): New function.
5796 (update_tool_bar): Temporarily set selected frame before building
5797 tool-bar items.
5798
57992008-08-28 Michael Albinus <michael.albinus@gmx.de>
5800
5801 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5802 snprintf, respectively.
5803 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5804
58052008-08-28 Chong Yidong <cyd@stupidchicken.com>
5806
5807 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5808 LDFLAGS to GNUstep CC invocation.
5809
58102008-08-27 Chong Yidong <cyd@stupidchicken.com>
5811
5812 * indent.c (Fvertical_motion): Revert last change. Handle the
5813 general case where we are moving forward, and PT spans multiple
5814 screen lines.
5815
5816 * eval.c (find_handler_clause): Temporarily increase
5817 max-lisp-eval-depth while printing the backtrace buffer, to
5818 guarantee that help-mode code can run.
5819
58202008-08-27 Eli Zaretskii <eliz@gnu.org>
5821
5822 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5823 colors under -rv.
5824 (IT_set_frame_parameters): Don't swap foreground and background
5825 colors if `(reverse . t)' is present in the frame properties.
5826 (internal_terminal_init): Call init_frame_faces only for the
5827 initial frame.
5828
58292008-08-27 Andreas Schwab <schwab@suse.de>
5830
5831 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5832
58332008-08-27 Andreas Schwab <schwab@suse.de>
5834
5835 * search.c (search_buffer): Set char_base to zero only at the end.
5836
58372008-08-27 Kenichi Handa <handa@m17n.org>
5838
b8ff72fa 5839 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5840
58412008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5842
5843 * xterm.c (x_term_init): Temporarily hide the partially
5844 initialized terminal while calling vendor-specific-keysyms.
5845
58462008-08-26 Eli Zaretskii <eliz@gnu.org>
5847
5848 * msdos.c (internal_terminal_init): Most initializations done only
5849 once, especially initial_screen_colors[] and termscript open.
5850
58512008-08-26 Chong Yidong <cyd@stupidchicken.com>
5852
5853 * eval.c (Fcondition_case): Doc fix.
5854
5855 * widgetprv.h (EmacsFramePart): Change font member to the new font
5856 struct.
5857
5858 * widget.c: Include character.h and font.h for XSETFONT.
5859 (setup_frame_gcs): Compute X font id from font struct, just once.
5860
58612008-08-26 Eli Zaretskii <eliz@gnu.org>
5862
5863 * term.c (get_named_tty): Fix last change.
5864
58652008-08-26 Chong Yidong <cyd@stupidchicken.com>
5866
5867 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5868 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5869
58702008-08-25 Eli Zaretskii <eliz@gnu.org>
5871
5872 * frame.c (do_switch_frame): Mark previously displayed frame as
5873 obscured for FRAME_MSDOS_P frames as well.
5874
58752008-08-24 Eli Zaretskii <eliz@gnu.org>
5876
5877 * frame.c (make_terminal_frame): Initialize f->terminal,
5878 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5879 Set the top frame to newly created frame.
5880 (Fmake_terminal_frame): Reuse the_only_display_info.
5881
5882 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5883 estimating available memory.
5884
b97439ce 58852008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5886
5887 * nsterm.m (ns_draw_window_cursor): Don't call
5888 NSDisableScreenUpdates and NSEnableScreenUpdates on
5889 non-NS_IMPL_COCOA systems.
5890
58912008-08-23 Andreas Schwab <schwab@suse.de>
5892
5893 * process.c (procfs_system_process_attributes): Fix use of
5894 uninitialized variables.
5895
58962008-08-23 Eli Zaretskii <eliz@gnu.org>
5897
5898 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5899
5900 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5901 calling tty-set-up-initial-frame-faces.
5902
b8ff72fa
SM
5903 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5904 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5905
5906 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5907 addition to output_termcap.
5908
5909 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5910
5911 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5912 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5913 highlight.
5914
5915 * process.c [!subprocesses]: Define QCname.
5916 (syms_of_process): Intern and staticpro it.
5917
5918 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5919 Adjust for changes in encoding/decoding routines.
5920 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5921 encode_coding and decode_coding.
5922
b8ff72fa 5923 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5924
5925 * dosfns.c: Include frame.h before termhooks.h.
5926 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5927 variable termscript.
5928
5929 * s/msdos.h (USER_FULL_NAME): Define.
5930 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5931
5932 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5933 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5934 pw->pw_gecos.
5935
5936 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5937 SELECTED_FRAME as additional (1st) argument.
5938 (tty_read_avail_input): Handle output_msdos_raw in
5939 addition to output_termcap.
5940
5941 * msdos.c: Include frame.h before termhooks.h.
5942 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5943 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5944 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5945 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5946 (IT_set_terminal_modes, IT_reset_terminal_modes)
5947 (IT_set_frame_parameters): Use tty->termscript instead of a global
5948 variable termscript.
5949 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5950 global variable terminal_coding. Don't refer to
5951 Vnonascii_translation_table.
5952 (internal_terminal_init): Set Vwindow_system in current_kboard.
5953 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5954 Announce date and time of session start, if termscript is open.
5955 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5956 term.c:init_tty). Open termscript only of not already open.
5957 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5958 here instead of dos_ttraw. Don't initialize display if this is an
5959 initial tty. Don't set FRAME_FONT.
5960 (Vwindow_system_version): Bump to 23.
5961 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5962 is available, set up mouse_position_hook.
5963 (dos_ttraw, IT_set_terminal_modes): If called with initial
5964 terminal, do nothing.
5965 (IT_set_frame_parameters): Handle the Qtty_type frame
5966 parameter by calling internal_terminal_init.
5967 (dos_set_window_size, show_mouse_face)
5968 (clear_mouse_face, IT_note_mode_line_highlight)
5969 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5970 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5971 (initialize_msdos_display): New function.
5972 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5973 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5974 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5975 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5976 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5977 (request_sigio, unrequest_sigio): Don't define, now defined on
5978 sysdep.c.
5979 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5980
5981 * term.c [MSDOS]: Include msdos.h.
5982 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5983 conditional to DOS_NT. Allow only one call to this function in a
5984 session. Don't allocate a new struct tty_display_info; instead,
5985 reuse the_only_display_info. Call get_tty_size to get screen
5986 dimensions. Call init_baud_rate to set bad_rate.
5987 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5988 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5989 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5990 (get_tty_terminal, get_named_tty, Ftty_type)
5991 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5992 output_termcap.
b8ff72fa
SM
5993 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5994 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5995 only when subprocesses are supported.
aac0c6e3
MR
5996
5997 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5998 f->output_data.x.
5999 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6000 terminal devices.
6001
5582fbc7 6002 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6003 x_output.
6004 (FRAME_FONT): Use output_data.tty.
6005 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6006 (struct x_display_info): Rename from display_info. Update all users in
6007 msdos.c.
aac0c6e3 6008 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6009 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6010 (dos_ttraw): Update prototype.
6011
6012 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6013 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6014
60152008-08-23 Jason Rumney <jasonr@gnu.org>
6016
6017 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6018 (fn_TIFFSetDirectory): New library function used.
6019 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6020 (tiff_load): Use :index to select among multiple images. Set count
6021 property when multiple images exist.
6022 (gif_format): Use :index, not :image.
6023
60242008-08-23 Chong Yidong <cyd@stupidchicken.com>
6025
6026 * xdisp.c (try_scrolling): Check INT_MAX instead of
6027 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6028 to obtain INT_MAX.
6029
60302008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6031
6032 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6033
60342008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6035
6036 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6037 GNUstep library location.
6038
60392008-08-21 Chong Yidong <cyd@stupidchicken.com>
6040
6041 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6042 before using it.
6043
6044 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6045
60462008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6047
6048 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6049 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6050 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6051 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6052 (EmacsApp-cursor_blink_handler): Remove declaration.
6053 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6054 match 01 Feb 2008 changes in xterm.c.
6055 (ns_read_socket): Add cast to avoid warning.
6056 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6057 GNUstep.
6058
60592008-08-20 Chong Yidong <cyd@stupidchicken.com>
6060
6061 * xselect.c (x_get_foreign_selection): Return nil if desired
6062 selection could not be obtained, instead of signalling an error.
6063
60642008-08-20 David Reitter <david.reitter@gmail.com>
6065
6066 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6067 * nsterm.m: Remove ns-specific code for cursor blinking.
6068 (ns_draw_window_cursor): Clear cursor properly rather than
6069 redrawing the area. Respect width of bar cursors.
6070 These changes enable the use of generic blink-cursor-mode and
6071 generic cursor types in NS and support smooth cursor movements (do
6072 not blink off after command).
6073 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6074 Nextstep, too.
6075
60762008-08-19 Kenichi Handa <handa@m17n.org>
6077
6078 * font.c (Vfont_log_deferred): New variable.
6079 (font_add_log): Check Vfont_log_deferred.
6080 (font_deferred_log): New function.
6081
6082 * font.h (font_deferred_log): Extern it.
6083
6084 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6085 for sorting.
6086 (face_for_char): Use deferred log.
6087
60882008-08-18 Kenichi Handa <handa@m17n.org>
6089
6090 * fontset.c (face_for_char): Add font log.
6091
6092 * font.c (font_add_log): Add the font properties :script, :lang,
6093 and :otf in the log.
6094
60952008-08-17 Chong Yidong <cyd@stupidchicken.com>
6096
6097 * xdisp.c: Remove dead code.
6098 (handle_invisible_prop, next_overlay_string): Defer call to
6099 setup_for_ellipsis.
6100 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6101
61022008-08-15 Chong Yidong <cyd@stupidchicken.com>
6103
6104 * xfaces.c (lookup_derived_face): Properly handle possible zero
6105 return value of get_lface_attributes.
6106 (merge_faces): Don't tell lookup_derived_face to signal an error
6107 if face is not found.
6108
6109 * dired.c (Fdirectory_files): Doc fix.
6110
6111 * process.c (make_process): Initialize kill_without_query struct
6112 member.
6113
61142008-08-15 Eli Zaretskii <eliz@gnu.org>
6115
6116 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6117 Alternative calculation of totphys for Visual Studio 6.
6118
6119 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6120
6121 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6122 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6123 All users changed.
6124 (stat): Only root directory passed to GetDriveType. Allow RAM
6125 disk as well as local fixed disk when w32-get-true-file-attributes
6126 is set to `local'.
6127 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6128 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6129 (w32_cached_id, w32_add_to_cache): New functions.
6130 (get_name_and_id): Look account names in the cache before calling
6131 lookup_account_sid.
6132 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6133 New initialization flags.
6134 (globals_of_w32): Initialize them to zero.
6135 (w32_system_process_attributes): Use w32_cached_id and
6136 w32_add_to_cache.
6137
61382008-08-14 Lawrence Mitchell <wence@gmx.li>
6139
6140 * lread.c (Fread_char, Fread_char_exclusive): If no character
6141 event is read before timeout is reached, return nil, rather than
6142 converting to a number.
6143
61442008-08-14 Chong Yidong <cyd@stupidchicken.com>
6145
6146 * fns.c (use_dialog_box): Doc fix.
6147
6148 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6149 on OS X.
6150
61512008-08-13 Chong Yidong <cyd@stupidchicken.com>
6152
6153 * frame.c (Qns_parse_geometry): New var.
6154 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6155
61562008-08-11 Chong Yidong <cyd@stupidchicken.com>
6157
6158 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6159 space character in calculating tabs.
6160
61612008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6162
6163 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6164
61652008-08-10 Glenn Morris <rgm@gnu.org>
6166
6167 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6168 silence gcc "limited range of data type" warnings in some
6169 make_fixnum_or_float calls.
6170
61712008-08-09 Eli Zaretskii <eliz@gnu.org>
6172
6173 * w32.c (w32_system_process_attributes): If the process does not
6174 exist, return nil.
6175
6176 * w32.c: Include thelp32.h, psapi.h and coding.h.
6177 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6178 declarations.
6179 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6180 (Process32Next_Proc): New typedefs.
6181 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6182 (g_b_init_process32_next, g_b_init_open_thread_token)
6183 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6184 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6185 (g_b_init_get_process_working_set_size)
6186 (g_b_init_global_memory_status_ex): New static variables.
6187 (globals_of_w32): Initialize them.
6188 (create_toolhelp32_snapshot, process32_first, process32_next)
6189 (open_thread_token, impersonate_self, revert_to_self)
6190 (get_process_memory_info, get_process_working_set_size)
6191 (global_memory_status, global_memory_status_ex): New wrapper
6192 functions.
6193 (w32_list_system_processes, w32_system_process_attributes)
6194 (enable_privilege, restore_privilege, ltime, process_times):
6195 New functions.
6196 (convert_time_raw): New function.
6197 (convert_time): Remove conversion of FILETIME into time in 100
6198 nsec units, call convert_time_raw instead.
6199
6200 * process.h (w32_list_system_processes, w32_system_process_attributes):
6201 Add prototypes.
6202 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6203 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6204 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6205 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6206
6207 * process.c (Fsystem_process_attributes): Doc fix.
6208
62092008-08-08 Chong Yidong <cyd@stupidchicken.com>
6210
6211 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6212 a continued multi-char glyph; if so, advance to the actual glyph.
6213
62142008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6215
6216 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6217
6218 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6219 (.m.o): Use it.
6220 * config.in: Regenerate.
6221
62222008-08-07 Chong Yidong <cyd@stupidchicken.com>
6223
6224 * xdisp.c (redisplay_window): Revert last change.
6225 (try_window): Check bottom scroll margin too.
6226
62272008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6228
6229 * config.in: Regenerate.
6230
6231 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6232 -list-load-path-shadows'.
6233 (nsgui.h): Reduce number of things depending on it.
6234
62352008-08-06 Chong Yidong <cyd@stupidchicken.com>
6236
6237 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6238 instead of window-end which does the wrong thing at eob.
6239 (try_cursor_movement): Minor optimization.
6240 (redisplay_window): If scroll margin is defined, don't assume
6241 window doesn't need scrolling.
6242
62432008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6244
6245 * config.in: Regenerate.
6246
6247 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6248 (mostlyclean): Don't delete *.d under NS.
6249
6250 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6251
62522008-08-06 Kenichi Handa <handa@m17n.org>
6253
6254 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6255
62562008-08-06 Andreas Schwab <schwab@suse.de>
6257
6258 * config.in: Regenerate.
6259
62602008-08-05 Chong Yidong <cyd@stupidchicken.com>
6261
6262 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6263 forcing a window start.
6264
6265 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6266 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6267
62682008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6269
6270 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6271 argument.
6272
62732008-08-05 Juanma Barranquero <lekktu@gmail.com>
6274
6275 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6276 <scroll-down-aggressively, before-change-functions>:
6277 <after-change-functions>: Reflow docstrings.
6278
62792008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6280 Ken Raeburn <raeburn@gnu.org>
6281
6282 Dock menu customization, based on a patch by Ken Raeburn, plus some
6283 other fixes.
6284 * nsmenu.m (dockMenu): New variable.
6285 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6286
6287 * nsterm.h (dockMenu): Declare.
6288
6289 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6290 (ns_term_init): Initialize dockMenu.
6291 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6292 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6293 left.
6294
6295 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6296
62972008-08-04 Chong Yidong <cyd@stupidchicken.com>
6298
6299 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6300
6301 * config.in: Regenerate.
6302
63032008-08-04 Seiji Zenitani <zenitani@mac.com>
6304
6305 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6306
63072008-08-04 Chong Yidong <cyd@stupidchicken.com>
6308
6309 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6310
63112008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6312
6313 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6314
6315 * keyboard.h: Comment an #endif.
6316
6317 * lisp.h (have_menus_p): Adjust comment.
6318
6319 * menu.c (find_and_return_menu_selection): Fix comparison with
6320 client_data.
6321
6322 * nsmenu.m (popup_activated_flag): New variable.
6323 (popup_activated): New function.
6324 (menu-or-popup-active-p): New exported lisp definition.
6325 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6326 when popup done.
6327 (ns_popup_dialog): Set popup_activated_flag.
6328
6329 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6330 version for GNUstep (handled by conditional typedef in nsterm.m).
6331 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6332 in rgb.txt).
6333
6334 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6335
6336 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6337
6338 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6339
6340 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6341 shortcircuit if popup_activated like GTK and X toolkit.
6342
6343 * m/inter386.h: Change DARWIN to DARWIN_OS.
6344
6345 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6346 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6347 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6348 comment on NO_SOCK_SIGIO.
6349
63502008-08-03 Chong Yidong <cyd@stupidchicken.com>
6351
6352 * nsterm.m (windowDidResize): Remove stopModal call.
6353
63542008-08-03 Andreas Schwab <schwab@suse.de>
6355
6356 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6357 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6358
63592008-08-02 Chong Yidong <cyd@stupidchicken.com>
6360
6361 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6362 Don't use uninitialized pointer variable when using getrlimit.
6363
63642008-08-02 Jason Rumney <jasonr@gnu.org>
6365
6366 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6367
63682008-08-02 Eli Zaretskii <eliz@gnu.org>
6369
6370 * alloc.c (NSTATICS): Bump to 0x640.
6371
6372 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6373
6374 * lisp.h: Add prototype for directory_files_internal.
6375
6376 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6377 New functions.
6378 (syms_of_process): Defsubr them. Add initializations for various
6379 Q* symbols used in procfs_system_process_attributes.
6380 (procfs_list_system_processes, procfs_system_process_attributes)
6381 [HAVE_PROCFS]: New functions.
6382 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6383 (procfs_get_total_memory): New functions.
6384
63852008-08-01 Juanma Barranquero <lekktu@gmail.com>
6386
6387 * xfaces.c (Fx_load_color_file): Fix previous change;
6388 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6389
63902008-08-01 Michael Albinus <michael.albinus@gmx.de>
6391
6392 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6393
63942008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6395
6396 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6397
63982008-08-01 Chong Yidong <cyd@stupidchicken.com>
6399
6400 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6401
6402 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6403 define NSApplicationDelegateReplySuccess.
6404 (EmacsView -converstationIdentifier): Use long instead of
6405 NSInteger for GNUstep, since it doesn't have NSInteger.
6406
6407 * xmenu.c: Revert last change.
6408
6409 * keyboard.h: Fix last change.
6410
64112008-08-01 Juanma Barranquero <lekktu@gmail.com>
6412
6413 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6414 on Windows.
6415
64162008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6417
6418 Warning clearing and clean-up in NS port.
6419 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6420 Add prototypes.
6421 * nsgui.h (FACE_DEFAULT): Remove, unused.
6422 (XGCValues): Change colors to unsigned long.
6423 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6424 nsterm.m.
6425 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6426 (ns_list_fonts): Remove, unused.
6427 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6428 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6429 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6430 (nsfont_draw): Compare face colors to 0, not nil.
6431 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6432 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6433 (-addSubmenuWithTitle:): Use NSMenuItem class.
6434 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6435 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6436 (ns_clip_to_row): Make gc arg a BOOL.
6437 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6438 ns_clip_to_row() call.
6439 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6440 used). Cast FRAME_FONT assignments.
6441 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6442 (ns_string_to_lispmod): Change arg to const char.
6443 (ns_term_init): Use NSMenuItem class.
6444 (EmacsApp -openFile:): Move to different section of file.
6445 (EmacsApp -application:openFiles:): Don't return a value, call
6446 -replyToOpenOrPrint:.
6447 (EmacsView -keyDown:): Fix up cast.
6448 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6449 (EmacsView -menuDown:): Cast tag in call to
6450 find_and_call_menu_selection().
6451 (ns_list_fonts): Remove, unused.
6452 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6453 (ns_fontname_to_xlfd): Make static.
6454 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6455 Remove prototypes (now in keyboard.h).
6456 (next_menubar_widget_id): Remove, unused.
6457 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6458 Remove prototypes (now in keyboard.h).
6459 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6460
64612008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6462
6463 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6464 (floatfns.o): Depend on syssignal.h.
6465 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6466
6467 * systty.h: Fix previous change that removed BSD_TERMIOS.
6468 Add comments to #ifdefs.
6469
64702008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6471
6472 * w32fns.c (w32-load-color-file): Remove.
6473 (x-open-connection): Use renamed Fx_load_color_file.
6474 * xfaces.c (x-load-color-file): Add.
6475 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6476 Emacs.clr.
6477 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6478
64792008-07-31 Michael Albinus <michael.albinus@gmx.de>
6480
6481 * dbusbind.c (Fdbus_call_method_asynchronously)
6482 (Fdbus_method_error_internal): New defuns.
6483 (xd_read_message): Handle also reply messages.
6484 (Vdbus_registered_functions_table): Extend docstring.
6485
64862008-07-31 Juanma Barranquero <lekktu@gmail.com>
6487
6488 * keyboard.c (gobble_input): Fix previous change.
6489
64902008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6491
6492 * bitmaps/README:
6493 * xfns.c:
6494 * termcap.c:
6495 * term.c:
6496 * syswait.h:
6497 * systty.h:
6498 * systime.h:
6499 * syssignal.h:
6500 * sysdep.c:
6501 * process.h:
6502 * process.c:
6503 * print.c:
6504 * ndir.h:
6505 * lread.c:
6506 * keyboard.c:
6507 * getpagesize.h:
6508 * floatfns.c:
6509 * fileio.c:
6510 * emacs.c:
6511 * doc.c:
6512 * dispnew.c:
6513 * dired.c:
6514 * data.c:
6515 * callproc.c:
6516 * buffer.c:
6517 * README:
6518 * Makefile.in:
6519 * s/template.h:
6520 * s/msdos.h:
6521 * m/vax.h: Remove VMS support.
6522 * s/vms.h:
6523 * vlimit.h:
6524 * uaf.h:
6525 * temacs.opt:
6526 * param.h:
6527 * ioctl.h: Remove file.
6528
65292008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6530
6531 * s/ms-w32.h (MULTI_KBOARD): Remove.
6532 * xterm.c:
6533 * xselect.c:
6534 * xfns.c:
6535 * window.c:
6536 * w32term.c:
6537 * w32fns.c:
6538 * terminal.c:
6539 * termhooks.h:
6540 * term.c:
6541 * sysdep.c:
6542 * keyboard.h:
6543 * keyboard.c:
6544 * frame.h:
6545 * frame.c:
6546 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6547 * config.in: Regenerate.
6548
65492008-07-30 Jason Rumney <jasonr@gnu.org>
6550
6551 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6552
6553 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6554 (w32font_open_internal): Get unicode version of textmetrics.
6555 Don't enable or disable glyph indices here.
6556 (w32font_open): Disable use of glyph indices.
6557
6558 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6559
65602008-07-30 Chong Yidong <cyd@stupidchicken.com>
6561
6562 * minibuf.c (Vread_buffer_function): Doc fix.
6563
65642008-07-30 John Paul Wallington <jpw@pobox.com>
6565
6566 * minibuf.c (read_buffer_completion_ignore_case): New var.
6567 (Fread_buffer): Use it.
6568
65692008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6570
6571 * systty.h (sensemode): Remove empty #if. Remove reference to
6572 BSD_TERMIOS, unused.
6573
6574 * sysdep.c: Remove reference to DGUX.
6575 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6576
6577 * config.in: Regenerate.
6578
65792008-07-30 Jason Rumney <jasonr@gnu.org>
6580
6581 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6582
65832008-07-29 Jason Rumney <jasonr@gnu.org>
6584
6585 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6586 is populated.
6587 (uniscribe_encode_char): Always use uniscribe.
6588 Avoid using context if cache is populated.
6589
65902008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6591
6592 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6593 open menu.
6594
6595 * gtkutil.c (menu_nav_ended): Remove.
6596 (create_menus): Remove signal connect for menu_nav_ended.
6597
65982008-07-28 Chong Yidong <cyd@stupidchicken.com>
6599
6600 * xdisp.c (redisplay_window): Check return value of
6601 compute_window_start_on_continuation_line before forcing a window
6602 start.
6603
66042008-07-28 Jason Rumney <jasonr@gnu.org>
6605
6606 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6607
6608 * w32term.c (w32_enable_unicode_output, cleartype_active):
6609 Remove obsolete display options.
6610 (x_draw_glyph_string_background): Don't use old cleartype_active
6611 workaround.
6612 (w32_initialize): Remove cleartype_active initialization.
6613 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6614
66152008-07-28 Andreas Schwab <schwab@suse.de>
6616
6617 * lisp.h (init_weak_hash_tables, syms_of_font)
6618 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6619 (remove_hash_entry): Don't declare.
6620 * eval.c (maybe_call_debugger): Make static and move before use.
6621 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6622 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6623 * xterm.h (x_set_frame_alpha): Declare.
6624
66252008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6626
6627 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6628 (create_menus): Connect selection-done to menu_nav_ended.
6629
66302008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6631
6632 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6633 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6634 parameter with read of 'alpha' one.
6635 (Qns_frame_parameter): Remove.
5582fbc7 6636 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6637 (next-selection-coding-system, Vselection_coding_system)
6638 (Vnext_selection_coding_system): Drop.
6639
66402008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6641
6642 * nsfns.m (do-applescript, do_applescript): Rename to
6643 ns-do-applescript, ns_do_applescript, and move within file.
6644
66452008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6646
6647 Remove support for Mac Carbon.
6648 * mactoolbox.c:
6649 * macterm.h:
6650 * macterm.c:
6651 * macselect.c:
6652 * macmenu.c:
6653 * macgui.h:
6654 * macfns.c:
6655 * mac.c: Remove file.
6656 * s/darwin.h:
6657 * m/intel386.h:
6658 * xfaces.c:
6659 * xdisp.c:
6660 * window.c:
6661 * tparam.c:
6662 * termhooks.h:
6663 * termcap.c:
6664 * term.c:
6665 * syssignal.h:
6666 * sysselect.h:
6667 * sysdep.c:
6668 * process.c:
6669 * lread.c:
6670 * lisp.h:
6671 * keyboard.c:
6672 * image.c:
6673 * fringe.c:
6674 * frame.h:
6675 * frame.c:
6676 * fontset.c:
6677 * font.h:
6678 * font.c:
6679 * fns.c:
6680 * fileio.c:
6681 * emacs.c:
6682 * dispnew.c:
6683 * dispextern.h:
6684 * config.in:
6685 * atimer.c:
2ae37cf0 6686 * Makefile.in: Remove code for Carbon.
aac0c6e3 6687
f0131492 66882008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6689
6690 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6691
66922008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6693
6694 * macterm.h (kCGBitmapByteOrder32Host): New define for
6695 non-universal SDKs.
6696
6697 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6698 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6699
6700 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6701 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6702
67032008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6704
6705 * w32inevt.c: Include dispextern.h.
6706
67072008-07-26 Andreas Schwab <schwab@suse.de>
6708
6709 * print.c (print_object): Fix off-by-one in last change.
6710
67112008-07-25 Juanma Barranquero <lekktu@gmail.com>
6712
6713 * term.c (syms_of_term): Don't initialize default_orig_pair,
6714 default_set_foreground and default_set_background on Windows.
6715
67162008-07-25 Jason Rumney <jasonr@gnu.org>
6717
6718 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6719 ScriptItemize. Clean up return value checking. Remove unused
6720 variables.
6721 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6722 shaping engine.
6723
6724 * w32font.c (w32font_has_char): Handle the case where we can't
6725 determine the script for a character.
6726
67272008-07-25 Chong Yidong <cyd@stupidchicken.com>
6728
6729 * term.c (syms_of_term): Initialize default_orig_pair,
6730 default_set_foreground, and default_set_background.
6731
6732 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6733 clash (bug#86).
6734 (getloadavg): Callers changed.
6735
6736 * image.c (svg_load_image): Fix last change.
6737 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6738 image size is valid. Use g_object_unref instead of deprecated
6739 rsvg_handle_free to free rsvg handle.
6740 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6741
67422008-07-25 Jason Rumney <jasonr@gnu.org>
6743
6744 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6745 surrogates before looking up glyph index.
6746 (w32font_text_extents): Encode as surrogates if falling back to
6747 functions that need UTF-16 wide chars.
6748
6749 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6750 BMP as surrogates before looking up glyph index.
6751
67522008-07-25 Chong Yidong <cyd@stupidchicken.com>
6753
6754 * image.c (svg_load_image): Check for failure in return value of
6755 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6756
67572008-07-25 Jason Rumney <jasonr@gnu.org>
6758
6759 * w32font.c (Fx_select_font): Reverse sense of second arg.
6760
67612008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6762
6763 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6764 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6765
6766 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6767 (PURESIZE): Use it.
6768
67692008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6770
6771 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6772 * m/alpha.h (TEXT_END):
6773 * m/ibmrs6000.h (TEXT_END):
6774 * m/macppc.h (TEXT_END):
6775 * s/darwin.h (TEXT_END):
6776 * s/msdos.h (TEXT_END): Remove, unused.
6777 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6778 * s/cygwin.h: Remove comment.
6779
6780 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6781 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6782 * m/intel386.h (DOT_GLOBAL_START):
6783 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6784 (USG): Remove, file not used on USG platforms.
6785
6786 * Makefile.in (HAVE_X11): Remove empty #else.
6787
67882008-07-24 Andreas Schwab <schwab@suse.de>
6789
6790 * fileio.c (Finsert_file_contents): Properly adjust undo list
6791 after format conversion.
6792
67932008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6794
6795 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6796 (menu_nav_ended): Remove.
6797 (create_menus): Remove signal connect for menu_nav_ended.
6798 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6799 create_menus.
6800 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6801
68022008-07-23 Jason Rumney <jasonr@gnu.org>
6803
6804 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6805 with opened font.
6806 (w32font_open): Set font type to gdi.
6807
6808 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6809
68102008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6811
6812 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6813 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6814 defines it.
6815 * unexec.c (ADDR_CORRECT): Define unconditionally.
6816
6817 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6818
6819 * unexec.c: Remove code depending on !COFF and USG, the file is
6820 not used for such systems.
6821
6822 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6823 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6824 (LD_SWITCH_SYSTEM_1): Remove, update users.
6825
6826 * s/darwin.h (DATA_END):
6827 * m/intel386.h (DATA_END):
6828 * m/ibmrs6000.h (DATA_END):
6829 * m/alpha.h (DATA_END): Remove, unused.
6830
6831 * config.in: Regenerate.
6832 * s/ms-w32.h (subprocesses): Define unconditionally.
6833 * s/template.h (subprocesses): Update comment.
6834 * s/vms.h (subprocesses):
6835 * s/usg5-4.h (subprocesses):
6836 * s/hpux10-20.h (subprocesses):
6837 * s/gnu-linux.h (subprocesses):
6838 * s/cygwin.h (subprocesses):
6839 * s/bsd-common.h (subprocesses):
6840 * s/aix4-2.h (subprocesses):
6841 * s/darwin.h (subprocesses): Do not define, defined by default now.
6842
6843 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6844 Remove all references.
6845 (temacs): Add GNUstep specific ld flags.
6846
6847 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6848 similarly to what X does.
6849
68502008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6851
6852 * nsfns.m (x-list-fonts): Remove.
6853 (syms_of_nsfns): Drop the x-list-fonts declaration.
6854 * nsterm.m: Get rid of remaining "//" comments.
6855
68562008-07-22 Chong Yidong <cyd@stupidchicken.com>
6857
6858 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6859
6860 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6861 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6862 (Fns_own_selection_internal, Fx_disown_selection_internal)
6863 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6864
6865 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6866 ... */' style of docstrings. Doc fixes.
6867
68682008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6869
6870 * terminfo.c (UP, BC, PC): Undo previous change.
6871
6872 * nsfns.m: Rename ns prefixed functions/variables to the
6873 corresponding x versions. Update references.
6874
68752008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6876
6877 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6878
68792008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6880
6881 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6882 Remove forwarding functions.
6883 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6884 non-static.
6885 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6886 non-static.
6887 (ns_frame_parm_handlers): Use the new names.
6888 (syms_of_nsfns): Move to the end of file.
6889
6890 * nsterm.m (syms_of_nsterm): Move to the end of file.
6891
6892 * dispnew.c (init_display): Remove code for X10.
6893
68942008-07-22 Jason Rumney <jasonr@gnu.org>
6895
6896 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6897 bare drive.
6898
68992008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6900
6901 * nsterm.m (syms_of_nsterm): Remove debugging println.
6902
69032008-07-22 David Reitter <david.reitter@gmail.com>
6904
6905 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6906 Carbon implementation of the same functionality: execute arbitrary
6907 AppleScript code.
6908
69092008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6910
6911 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6912 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6913 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6914 (Fx_display_mm_height, Fx_display_mm_width)
6915 (Fx_display_backing_store, Fx_display_visual_class)
6916 (Fx_display_save_under, Fx_open_connection)
6917 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6918 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6919 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6920 (Fx_display_pixel_width, Fx_display_pixel_height)
6921 (Fx_display_usable_bounds, Fx_display_planes)
6922 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6923 ... */' style of docstrings.
6924
69252008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6926
6927 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6928 on this platform.
6929 (mips):
6930 * m/iris4d.h (mips): Do not define.
6931 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6932
6933 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6934
6935 * image.c:
6936 * nsfns.m:
6937 * nsselect.m:
6938 * nsterm.h:
6939 * nsterm.m: Rename ns prefixed functions/variables to the
6940 corresponding x versions. Update references.
6941
6942 * m/ibms390x.h (NO_REMAP): Do not undefine.
6943
6944 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6945
69462008-07-21 Chong Yidong <cyd@stupidchicken.com>
6947
6948 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6949 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6950 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6951 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6952 (Fns_display_mm_height, Fns_display_mm_width)
6953 (Fns_display_backing_store, Fns_display_visual_class)
6954 (Fns_display_save_under, Fns_open_connection)
6955 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6956 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6957 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6958 (Fns_display_pixel_width, Fns_display_pixel_height)
6959 (Fns_display_usable_bounds, Fx_display_planes)
6960 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6961
69622008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6963
6964 * print.c (print_object): Check print_depth before searching for
6965 circularities.
6966
69672008-07-21 Michael Albinus <michael.albinus@gmx.de>
6968
6969 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6970 only sprintf.
6971
69722008-07-21 Kenichi Handa <handa@m17n.org>
6973
6974 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6975
69762008-07-20 Andreas Schwab <schwab@suse.de>
6977
6978 * syntax.c (find_start_pos, find_start_value)
6979 (find_start_value_byte, find_start_begv, find_defun_start)
6980 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6981
69822008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6983
6984 * s/sol2-3.h: Insert contents of s/sol2.h.
6985 (LD_SWITCH_SYSTEM): Remove redundant definition.
6986 * s/sol2.h: Remove, unused.
6987
69882008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6989
6990 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6991
69922008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6993
6994 * Makefile.in (ns_appdir): Fix typo in find command.
6995
69962008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6997
6998 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6999
7000 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7001 added not supported anymore.
7002
7003 * s/usg5-4-2.h (LIBS_SYSTEM):
7004 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7005
7006 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7007 * s/lynxos.h (GETPGRP_NO_ARG):
7008 * s/hpux10-20.h (NO_SIOCTL_H):
7009 * s/gnu.h (GETPGRP_NO_ARG):
7010 * s/gnu-linux.h (NO_SIOCTL_H):
7011 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7012 * s/cygwin.h (GETPGRP_NO_ARG):
7013 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7014 (C_DEBUG_SWITCH): Remove duplicate definition.
7015
7016 * m/ibms390.h: Remove boilerplate comments.
7017
7018 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7019
7020 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7021 (wait_reading_process_output): Remove code for SunOS, platform not
7022 supported anymore. Use SOLARIS2 instead of sun.
7023
70242008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7025
7026 * font.c (font_open_by_name): Under NS, default lface height to zero.
7027 (font_open_for_lface): Under NS, set size based on frame fontsize.
7028 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7029 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7030
70312008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7032
7033 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7034 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7035 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7036 YES/NO.
7037 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7038 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7039 * Makefile.in (clean): Clear out build destination dir.
7040
70412008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7042
7043 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7044 xterm, xselect.
7045 * lisp.h: Remove declaration of hash_remove.
7046 * nsgui.h: Remove redefinitions of hash_remove.
7047 * fns.c (hash_remove): Rename to hash_remove_from_table.
7048
70492008-07-19 Seiji Zenitani <zenitani@mac.com>
7050
7051 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7052 strdup() the family UTF8String before modifying it.
7053
70542008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7055
7056 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7057 NS_FACE_BACKGROUND with 0 instead of nil.
7058 * nsfont.m (nsfont_draw): Same.
7059
70602008-07-19 Chong Yidong <cyd@stupidchicken.com>
7061
7062 * nsfns.m (ns_set_background_color): Fix crash.
7063
70642008-07-18 Chong Yidong <cyd@stupidchicken.com>
7065
7066 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7067
70682008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7069
7070 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7071
70722008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7073
7074 * gtkutil.c: Include <config.h> instead of "config.h".
7075
7076 * lisp.h (Foverlay_buffer): Add EXFUN.
7077
7078 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7079 child process to complete child_setup. Undo 2005-09-21 change.
7080
7081 * s/darwin.h: Mention setsid after vfork.
7082
70832008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7084
7085 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7086 Depend on macgui.h.
7087
7088 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7089 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7090
7091 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7092 and f19.
7093 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7094
7095 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7096 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7097 Remove enumerators.
7098
7099 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7100 Check if FACE_FROM_ID returns NULL.
7101
71022008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7103
7104 * w32inevt.c (change_frame_size): Remove extern declaration.
7105 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7106 change_frame_size.
7107
71082008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7109
7110 * getloadavg.c: Revert last change (2008-07-15).
7111
71122008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7113
7114 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7115 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7116 from configure.
7117
71182008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7119
7120 * s/sol2.h:
7121 * s/sol2-4.h: Reorganize conditionals.
7122
7123 * ecrt0.c: Remove code depending on m68000, not used anymore.
7124
7125 * fns.c (hash_remove): Make static.
7126 * lisp.h (hash_remove): Don't prototype.
7127
7128 * m/ibmrs6000.h:
7129 * m/ibms390x.h:
7130 * m/macppc.h: Remove boilerplate comments.
7131
7132 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7133 Solaris, which does not need them.
7134
7135 * m/vax.h: Remove comments about unsupported systems.
7136
7137 * s/darwin.h: Reorganize ifdefs.
7138
71392008-07-17 Andreas Schwab <schwab@suse.de>
7140
7141 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7142
71432008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7144
7145 Use SDATA. Follow coding convention of placing operators at
7146 beginning of next line rather than end of previous line, and placing
7147 spaces around infix operators.
7148
7149 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7150 in case it was defined already.
7151 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7152 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7153 ns_default.
7154 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7155 Lisp_Objects.
7156 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7157 (ns_defined_color, ns_color_to_lisp): Declare.
7158 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7159 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7160 it's accepted even with USE_LISP_UNION_TYPE.
7161 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7162 (update_frame_tool_bar): Remove apparently obsolete tests for
7163 non-integerness of f->tool_bar_lines.
7164 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7165 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7166 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7167 (nsfont_open): Don't confuse NULL for Qnil.
7168 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7169 * menu.h (find_and_call_menu_selection):
7170 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7171 (find_and_return_menu_selection): Always return something.
7172 * frame.h: Include dispextern.h for Display_Info.
7173 (display_x_get_resource): Declare.
7174
71752008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7176
7177 * syntax.c: Remove stdio.h include accidentally introduced in
7178 Emacs.app commit.
7179 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7180 NS_IMPL_COCOA.
7181 * keyboard.c (handle_async_input, input_available_signal): Remove
7182 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7183
71842008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7185
7186 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7187 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7188 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7189 Use SDATA.
7190
7191 * keymap.c: Remove all NS-specific code.
7192 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7193 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7194 where_is_preferred_modifier, return a different value depending on how
7195 preferred is the binding.
7196 (where_is_internal): Adjust accordingly.
7197 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7198 Adjust to new preferred_sequence_p.
7199 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7200 * keyboard.c (parse_solitary_modifier): Not static any more.
7201 * keyboard.h (parse_solitary_modifier): Declare.
7202
72032008-07-16 Andreas Schwab <schwab@suse.de>
7204
7205 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7206 of easymenu.
7207
72082008-07-16 Chong Yidong <cyd@stupidchicken.com>
7209
7210 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7211 that we don't move off the line.
7212
72132008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7214
7215 * keyboard.c (Qsuper): Remove.
7216 (parse_menu_item): Don't call where_is_internal specially for NS.
7217
72182008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7219
7220 * s/gnu-linux.h: Remove boilerplate comments.
7221
7222 * m/alpha.h (__ELF__): Consolidate conditions.
7223
7224 * m/m68k.h (linux): Use GNU_LINUX instead.
7225 Remove boilerplate comments.
7226
7227 * m/intel386.h: Undo refactoring from previous change.
7228 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7229 too, remove dead code.
7230 (linux): Use GNU_LINUX instead.
7231
72322008-07-16 Jason Rumney <jasonr@gnu.org>
7233
7234 * w32gui.h: Repeat 26 June changes lost by last change.
7235
72362008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7237
7238 * systty.h: Remove code for Aix on 386, unsupported platform.
7239
7240 * s/ms-w32.h: Remove boilerplate comments.
7241 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7242
7243 * s/gnu-linux.h (TERM): Remove support.
7244 (HAVE_SYSVIPC): Remove, unused.
7245 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7246 for this system.
7247
7248 * process.c: Remove support for IRIS, unused.
7249 Remove support for TERM, not relevant anymore.
7250
7251 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7252 used with the definition.
7253
7254 * s/aix4-2.h (static): Do not undef.
7255
7256 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7257 only used on Aix.
7258 (HAVE_SYSVIPC): Remove, unused.
7259
7260 * m/hp800.h (CANNOT_DUMP): Do not undef.
7261
7262 * m/alpha.h: Fix comment.
7263
7264 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7265 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7266 used by this configuration.
7267 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7268 * unexec.c: Remove code depending on HPUX and
7269 USG_SHARED_LIBRARIES, not used with this file. Remove code
7270 depending on IRIS, unused. Remove if 0-ed code.
7271
7272 * s/template.h: Remove comments about static.
7273
7274 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7275 Remove if 0-ed code.
7276 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7277 were the same as the default.
7278 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7279 Remove boilerplate comments.
7280 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7281 (HAVE_SYSVIPC): Remove, unused.
7282 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7283
7284 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7285 Remove boilerplate comments.
7286 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7287 Remove boilerplate comments.
7288 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7289 Remove boilerplate comments.
7290 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7291
7292 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7293 USG systems which do not use DATA_SEG_BITS.
7294 Refactor code. Remove boilerplate comments.
7295
7296 * m/ibms390.h:
7297 * m/m68k.h:
7298 * s/bsd-common.h:
7299 * s/cygwin.h:
7300 * s/darwin.h:
7301 * s/freebsd.h:
7302 * s/gnu.h:
7303 * s/msdos.h: Remove boilerplate comments.
7304
7305 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7306 do not use this file.
aac0c6e3
MR
7307 (IRIS_4D): Remove, unused.
7308
7309 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7310 do not use this file.
aac0c6e3
MR
7311 (SIGN_EXTEND_CHAR):
7312 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7313 * unexmips.c: Remove file, unused.
7314
7315 * editfns.c (Fuser_full_name): Replace the only use of
7316 USER_FULL_NAME with its value.
7317 * config.in: Regenerate.
7318
73192008-07-16 David Reitter <david.reitter@gmail.com>
7320
7321 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7322 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7323
73242008-07-16 Glenn Morris <rgm@gnu.org>
7325
7326 * emacs.c (system-type): Doc fix.
7327
73282008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7329
7330 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7331 If the cache doesn't work, let's fix it, rather than work around it.
7332
73332008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7334
7335 * Makefile.in: Correct additions for nsfont.o in last commit.
7336 * nsfont.m: New file (forgot last commit).
7337
73382008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7339
7340 * callproc.c (set_initial_environment): Initialize
7341 Vprocess_environment under CANNOT_DUMP (fixes crash when
7342 batch-compiling for bootstrap).
7343
73442008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7345 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7346
7347 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7348 fix crash due to different init order.
7349
73502008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7351
7352 Changes and additions for NeXTstep windowing system (Cocoa and
7353 GNUstep) support.
7354
7355 * Makefile.in:
7356 * config.in: Support defines and build commands for NS port.
7357 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7358 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7359 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7360 windowing.
7361 (struct face): Add synth_ital field.
7362 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7363 (init_display): Initialize Vinitial_window_system to "ns" when so
7364 compiled.
7365 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7366 (display_arg): Use under NS.
7367 (main): Under NS, allocate autorelease pool and handle command line
7368 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7369 (standard_args): Add NS-specific args.
7370 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7371 * font.c (DEFAULT_ENCODING): New variable.
7372 (font_find_for_lface): Use it.
7373 (syms_of_font): Load syms_of_nsfont under NS.
7374 * font.h: Declare nsfont_driver when compiled under NS.
7375 * fontset.c: When compiling under NS, include nsterm.h.
7376 (fontset_from_font): Autoconstruct fontset under NS.
7377 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7378 symbol, document and use it.
7379 (do_switch_frame): When for_deletion under Cocoa, add
7380 Fraise_frame(Qnil).
7381 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7382 (x_get_arg): Allow "yes" and "no" as boolean values.
7383 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7384 Qright under Cocoa.
7385 (focus-follows-mouse): Default to 0 under NS.
7386 * frame.h (enum output_method): Add output_ns.
7387 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7388 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7389 (FRAME_WINDOW_P): NS-specific definition.
7390 * fringe.c (max_used_fringe_bitmap): Make public.
7391 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7392 (getloadavg): Use NeXT code under descendant OS's.
7393 * image.c (includes and header section, x_create_bitmap_from_data)
7394 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7395 (image_background_transparent, x_clear_image_1)
7396 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7397 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7398 (x_to_xcolors, x_from_xcolors, x_disable_image)
7399 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7400 other GUIs, including XPM support using code originally written for
7401 Carbon GUI.
7402 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7403 using NS API.
7404 (image_ascent): Use font metrics macros instead of direct struct field
7405 access.
7406 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7407 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7408 Also, handle NS as GTK for menu bar purposes.
7409 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7410 toolkit where they differ.
7411 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7412 use cachelist, still needed under NS.
7413 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7414 (struct widget_value): Define it here for menu.c.
7415 * keymap.c (includes): Include modifier internals.
7416 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7417 NS.
7418 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7419 support for preferring sequences using certain modifiers, specified by
7420 the FIRSTONLY argument.
7421 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7422 under NS GNUstep implementation.
7423 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7424 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7425 * menu.c: Include nsterm.h under NS.
7426 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7427 (free_menubar_widget_tree_value, update_submenu_strings)
7428 (find_and_call_menu_selection): Treat NS as X and NT.
7429 (find_and_return_menu_selection): New function, used for popup menus.
7430 * nsgui.h:
7431 * nsterm.h:
7432 * nsfns.m:
7433 * nsimage.m:
7434 * nsmenu.m:
7435 * nsselect.m:
7436 * nsterm.m: New files.
7437 * process.c (wait_reading_process_output): Under NS, call ns_select()
7438 instead of plain select().
7439 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7440 beginning of buffer.
7441 * sysselect.h (init_process): Rename when compiling under Cocoa to
7442 avoid name conflict.
7443 * termhooks.h (display_info): Add ns_display_info to union.
7444 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7445 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7446 COCOA environment.
7447 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7448 unexec() signature. (Note, this will dump, but the resulting file
7449 crashes; unexosx is used instead; keeping around for reference and
7450 possible aid in getting dump working under GNUstep.)
7451 * w32gui.h (button_type, widget_value): Remove definitions (now in
7452 keyboard.h).
7453 * window.c: Include nsterm.h when compiling under NS.
7454 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7455 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7456 other GUI windowing systems.
7457 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7458 GTK.
7459 (x_consider_frame_title): Under NS, set icon type and frame
7460 modified-state indicator; use ns_set_name_as_filename() when using
7461 formatted title.
7462 (update_window_cursor): Make public when compiling under NS.
7463 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7464 (hourglass_atimer, Vhourglass_delay
7465 * xfaces.c (header section, init_frame_faces, clear_font_table)
7466 (defined_color, unload_color, x_face_list_fonts)
7467 (prepare_face_for_display): Add NS support parallel to other GUIs.
7468 Emulate GCs like other non-X GUIs.
7469 (split_font_name): Don't lowercase font name under NS.
7470 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7471 under NS.
7472 * s/darwin.h: Add support for compilation under NS.
7473
74742008-07-15 Jason Rumney <jasonr@gnu.org>
7475
7476 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7477 (w32_show_hourglass): Rename from show_hourglass.
7478 (w32_hide_hourglass): Rename from hide_hourglass.
7479 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7480 (Vhourglass_delay): Declare extern.
7481 (hourglass_started): Remove.
7482
7483 * xdisp.c (Vhourglass_delay): Remove static.
7484 (hourglass_started, start_hourglass, cancel_hourglass):
7485 Don't include these versions on WINDOWSNT.
7486
74872008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7488
7489 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7490 variables (formerly in xfns.c).
7491 (show_hourglass, hide_hourglass): New prototypes (same).
7492 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7493 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7494 in xfns.c).
7495 (syms_of_xdisp): Declare/initialize display-hourglass,
7496 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7497 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7498 formerly in xfns.c.
7499 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7500 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7501 (start_hourglass, cancel_hourglass): Remove.
7502 (show_hourglass, hide_hourglass): Remove prototypes and static
7503 modifiers.
7504 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7505 hourglass_atimer, hourglass_shown_p declaration/initialization.
7506 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7507 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7508 (start_hourglass, cancel_hourglass): Remove.
7509 (show_hourglass, hide_hourglass): Remove prototypes and static
7510 modifiers.
7511 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7512 hourglass_atimer, hourglass_shown_p declaration/initialization.
7513 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7514 (DEFAULT_HOURGLASS_DELAY): Remove.
7515 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7516 hourglass_shown_p declaration/initialization.
7517
75182008-07-14 Jason Rumney <jasonr@gnu.org>
7519
7520 * w32fns.c (w32_get_arg): Remove wrapper function.
7521 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7522 directly.
7523 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7524
75252008-07-14 Kenichi Handa <handa@m17n.org>
7526
7527 * xfont.c (xfont_open): Add workaround for X's bug.
7528
75292008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7530
7531 * fontset.c: Include <stdio.h> unconditionally.
7532
75332008-07-13 Michael Albinus <michael.albinus@gmx.de>
7534
7535 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7536 for filtering.
7537
75382008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7539
7540 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7541
7542 * m/macppc.h:
7543 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7544
7545 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7546 (SPECIAL_EMACS_INT):
7547 * m/ia64.h (SPECIAL_EMACS_INT):
7548 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7549 * s/gnu.h (NLIST_STRUCT):
7550 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7551 * s/gnu-linux.h (LINUX):
7552 * s/msdos.h (HAVE_FACES):
7553 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7554
7555 * systty.h:
7556 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7557 anymore.
7558
75592008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7560
7561 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7562 always defined as int.
7563
7564 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7565 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7566 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7567 * s/freebsd.h (HAVE_WAIT_HEADER):
7568 * s/bsd-common.h (HAVE_UNION_WAIT):
7569 * s/aix4-2.h (HAVE_WAIT_HEADER):
7570 * m/mips.h (HAVE_UNION_WAIT):
7571 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7572 (COFF, static): Do not define, they are undefined later in the file.
7573
7574 * process.c (update_status): Don't use a union.
7575 (status_convert):
7576 (sigchld_handler): Use int instead of WAITTYPE.
7577
75782008-07-12 Chong Yidong <cyd@stupidchicken.com>
7579
7580 * indent.c (Fvertical_motion): Restore hscroll before moving to
7581 goal column.
7582
75832008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7584
7585 * lisp.h: Remove left over code.
7586
75872008-07-11 Andreas Schwab <schwab@suse.de>
7588
7589 * lisp.h: Fix logic in last change.
7590
7591 * menu.h: New file.
7592 * menu.c: Include it.
7593 * xmenu.c: Likewise.
7594 * Makefile.in: Update dependencies.
7595
75962008-07-11 Kenichi Handa <handa@m17n.org>
7597
7598 * fontset.c (fontset_from_font): Cancel the previous change.
7599
76002008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7601
7602 * lisp.h:
7603 * w32heap.c:
7604 * emacs.c:
7605 * alloc.c: Replace all references of NO_UNION_TYPE with
7606 USE_LISP_UNION_TYPE.
7607
7608 * m/xtensa.h (NO_UNION_TYPE):
7609 * m/vax.h (NO_UNION_TYPE):
7610 * m/template.h (NO_UNION_TYPE):
7611 * m/sparc.h (NO_UNION_TYPE):
7612 * m/mips.h (NO_UNION_TYPE):
7613 * m/macppc.h (NO_UNION_TYPE):
7614 * m/m68k.h (NO_UNION_TYPE):
7615 * m/iris4d.h (NO_UNION_TYPE):
7616 * m/intel386.h (NO_UNION_TYPE):
7617 * m/ibms390x.h (NO_UNION_TYPE):
7618 * m/ibms390.h (NO_UNION_TYPE):
7619 * m/ibmrs6000.h (NO_UNION_TYPE):
7620 * m/ia64.h (NO_UNION_TYPE):
7621 * m/hp800.h (NO_UNION_TYPE):
7622 * m/arm.h (NO_UNION_TYPE):
7623 * m/amdx86-64.h (NO_UNION_TYPE):
7624 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7625 defining it the same.
7626
76272008-07-10 Chong Yidong <cyd@stupidchicken.com>
7628
7629 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7630
76312008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7632
7633 * fileio.c:
7634 * sysdep.c
7635 * systty.h:
7636 * m/ibmrs6000.h:
7637 * m/iris4d.h:
7638 * s/aix4-2.h:
7639 * s/freebsd.h:
7640 * s/gnu-linux.h:
7641 * s/hpux10-20.h:
7642 * s/hpux11.h:
7643 * s/netbsd.h:
7644 * s/sol2-3.h:
7645 * s/sol2-4.h:
7646 * s/sol2.h:
7647 * s/usg5-4.h:
7648 * s/vms.h: Remove references to unused variables.
7649
76502008-07-10 Andreas Schwab <schwab@suse.de>
7651
7652 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7653 pattern before matching the generic family.
7654
76552008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7656
7657 * unexec.c:
7658 * s/vms.h:
7659 * s/usg5-4-2.h:
7660 * s/sol2-5.h:
7661 * s/freebsd.h:
7662 * s/darwin.h: Remove dead code.
7663
7664 * m/template.h:
7665 * m/sparc.h:
7666 * m/mips.h:
7667 * m/m68k.h:
7668 * m/iris4d.h:
7669 * m/intel386.h:
7670 * m/ibms390x.h:
7671 * m/ibms390.h:
7672 * m/ia64.h:
7673 * m/hp800.h:
7674 * m/arm.h:
7675 * m/amdx86-64.h: Remove dead code and references to unused
7676 and compiler defined symbols.
7677
7678 * unexmips.c:
7679 * unexelf.c: Remove references to desupported systems.
7680
7681 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7682
7683 * m/powermac.h: Remove boilerplate comments.
7684 (NO_REMAP): Remove unused definition.
7685
7686 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7687 define them.
7688
76892008-07-10 Kenichi Handa <handa@m17n.org>
7690
7691 * xfont.c (xfont_open): Log the reason of failure.
7692
76932008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7694
7695 * fontset.c (fontset_get_font_group):
7696 * font.c (font_check_otf): Specify argument types.
7697
76982008-07-09 Kenichi Handa <handa@m17n.org>
7699
7700 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7701 non-ASCII char is found.
7702
7703 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7704 (reorder_font_vector): Change the arg preferred_family to font.
7705 Prefer the spec matching with font.
7706 (fontset_get_font_group): New function.
7707 (fontset_find_font): Change the format of an element of a realized
7708 fontset. Use fontset_get_font_group.
7709 (fontset_font): Try the current fontset, the default fontset, the
7710 fallbacks of the current fontset, and the fallbacks of the default
7711 fontset in this order.
7712 (face_for_char): Delete the shortcut to use the current font.
7713 (fontset_from_font): Don't set fonts for Latin in the fontset.
7714
7715 * font.h (font_make_object, font_match_p): Adjust prototypes.
7716
7717 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7718
7719 * font.c (font_make_object): New arg entity and pixelsize.
7720 (font_check_otf_features, font_check_otf): New functions.
7721 (font_match_p): Check :lang, :script, and :otf properties.
7722
7723 * xfont.c (xfont_open): Adjust it for the change of
7724 font_make_object.
7725 (xfont_text_extents): Fix initial setting of metrics.
7726
7727 * ftfont.c (struct ftfont_info): New member index, delete member
7728 fc_charset_idx. Make the member order compatible with struct
7729 xftfont_info.
7730 (fc_charset_table): Change charset names to registry names.
7731 (ftfont_pattern_entity): Delete the args registry and
7732 fc_charset_idx. Change the value of :font-entity property
7733 to (FONTNAME . INDEX). Always set :registry property to
7734 `iso10646-1'.
7735 (struct ftfont_cache_data): New struct.
7736 (ftfont_lookup_cache): New arg for_face.
7737 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7738 (ftfont_driver): Set the member otf_capability.
7739 (ftfont_get_charset): Adjust it for the change of
7740 fc_charset_table.
7741 (OTF_TAG_SYM): New macro.
7742 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7743 for the change of fc_charset_table.
7744 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7745 ftfont_pattern_entity. Add FC_INDEX to objset.
7746 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7747 and ftfont_pattern_entity.
7748 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7749 font_make_object, struct ftfont_info.
7750 (ftfont_has_char): Use ftfont_get_fc_charset.
7751 (ftfont_otf_features, ftfont_otf_capability): New functions.
7752 (ftfont_shape): Use ftfont_get_otf.
7753 (ftfont_text_extents): Fix initial setting of metrics.
7754
7755 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7756 member order compatible with struct ftfont_info.
7757 (xftfont_open): Add FC_CHARSET to the pattern. Set
7758 xftfont_info->ft_size. Don't unlock the face. Check BDF
7759 properties if appropriate.
7760 (xftfont_close): Unlock the face.
7761 (xftfont_anchor_point, xftfont_shape): Deleted.
7762 (syms_of_xftfont): Don't set members anchor_point and shape of
7763 xftfont_driver.
7764
7765 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7766 font_make_object.
7767
7768 * w32font.c (w32font_open): Adjust it for the change of
7769 font_make_object.
7770 (w32font_open_internal): Don't set properties of font_object here.
7771
77722008-07-08 Chong Yidong <cyd@stupidchicken.com>
7773
7774 * macfns.c (x_create_tip_frame):
7775 * w32fns.c (x_create_tip_frame):
7776 * xfns.c (x_create_tip_frame): Pass parameter argument to
7777 face-set-after-frame-default.
7778
7779 * xfaces.c (Finternal_merge_in_global_face): Save merged
7780 attributes for the default face back into the face vector.
7781
77822008-07-08 Andreas Schwab <schwab@suse.de>
7783
7784 * fontset.h: Declare fontset_from_font. Don't declare
7785 new_fontset_from_font and fontset_from_font_name.
7786 * xterm.c: Include "fontset.h".
7787 * Makefile.in (xterm.o): Update dependencies.
7788
77892008-07-08 Glenn Morris <rgm@gnu.org>
7790
7791 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7792 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7793
77942008-07-07 Chong Yidong <cyd@stupidchicken.com>
7795
7796 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7797 (x_set_frame_parameters): Don't bind it.
7798
77992008-07-07 Juanma Barranquero <lekktu@gmail.com>
7800
7801 * w32fns.c (map_w32_filename): Declare extern.
7802
78032008-07-07 Jason Rumney <jasonr@gnu.org>
7804
7805 * w32term.c (WS_EX_LAYERED): Define if not already.
7806
78072008-07-06 Chong Yidong <cyd@stupidchicken.com>
7808
7809 * xfaces.c (set_font_frame_param): Don't try to set the font
7810 parameter if it is still unspecified in the lface.
7811
78122008-07-05 Chong Yidong <cyd@stupidchicken.com>
7813
7814 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7815 face if it didn't already exist.
7816
7817 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7818
78192008-07-05 Andreas Schwab <schwab@suse.de>
7820
7821 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7822
78232008-07-05 Chong Yidong <cyd@stupidchicken.com>
7824
7825 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7826 word-wrapping.
7827 (IT_DISPLAYING_WHITESPACE): New macro.
7828 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7829 when word-wrapping. Simplify word-wrapping logic. Use correct
7830 pixel positions when saving copies of the iterator.
7831 (display_line): Use proper wrap point if the last character on a
7832 line was preceded by whitespace.
7833
78342008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7835
7836 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7837
78382008-07-04 Kenichi Handa <handa@m17n.org>
7839
7840 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7841
7842 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7843
78442008-07-02 Jason Rumney <jasonr@gnu.org>
7845
7846 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7847 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7848
7849 * xdisp.c (next_element_from_display_vector): Move assignment out
7850 of if statement.
7851
78522008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7853
7854 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7855
7856 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7857 (syms_of_fileio): Initialize and export them.
7858 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7859
7860 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7861 (Fsystem_move_file_to_trash): New function.
7862 (syms_of_w32fns): Export it to lisp.
7863
78642008-07-01 Jason Rumney <jasonr@gnu.org>
7865
7866 * w32font.c (w32font_text_extents): Don't count overhang as part
7867 of width.
7868
78692008-06-30 Miles Bader <miles@gnu.org>
7870
7871 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7872 Add `avoid_cursor_p' field.
7873
7874 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7875 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7876 (append_glyph, append_composite_glyph, produce_image_glyph)
7877 (append_stretch_glyph): Initialize avoid_cursor_p.
7878 (get_it_property): Rename from `get_line_height_property'.
7879 (x_produce_glyphs): Use get_it_property.
7880 (handle_line_prefix, push_display_prop): New functions.
7881 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7882 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7883 New variables.
7884 (syms_of_xdisp): Initialize them.
7885
78862008-06-30 Kenichi Handa <handa@m17n.org>
7887
7888 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7889 XftDefaultSubstitute (they are called in XftFontMatch).
7890 (xftfont_open): Fix args to ftfont_font_format.
7891
7892 * ftfont.c (fc_charset_table): New member lang.
7893 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7894 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7895 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7896 (ftfont_open): Fix args to ftfont_font_format.
7897 (ftfont_font_format): New arg filename.
7898
78992008-06-30 Chong Yidong <cyd@stupidchicken.com>
7900
7901 * xfaces.c (Finternal_merge_in_global_face): If default face was
7902 modified, realize it again. Update the font face attribute.
7903
79042008-06-29 Jason Rumney <jasonr@gnu.org>
7905
7906 * w32term.c (x_set_frame_alpha): Fix logic.
7907
79082008-06-29 Kenichi Handa <handa@m17n.org>
7909
7910 * fontset.c (Finternal_char_font): Return font-object instead of
7911 font-name.
7912
7913 * composite.c (get_composition_id): Fix the width calculation for TAB.
7914
79152008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7916
7917 * indent.c (Fvertical_motion): Properly handle float column arg.
7918
79192008-06-28 Jason Rumney <jasonr@gnu.org>
7920
7921 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7922 (pfnSetLayeredWindowAttributes): New function pointer.
7923 (w32_initialize): Initialize it when supported.
7924 (x_set_frame_alpha): New function.
7925
7926 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7927 (w32_frame_parm_handlers): Set alpha handler.
7928
7929 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7930
79312008-06-27 Jason Rumney <jasonr@gnu.org>
7932
7933 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7934 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7935 (w32_to_x_charset, x_to_w32_charset)
7936 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7937 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7938 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7939 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7940 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7941 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7942 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7943 (Qw32_charset_unicode): Remove.
7944 (syms_of_w32fns): Update for above changes.
7945
7946 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7947 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7948 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7949 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7950 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7951 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7952 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7953 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7954 (syms_of_w32font): Update for above changes.
7955
79562008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7957
7958 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7959 removed #if.
7960 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7961
79622008-06-26 Juanma Barranquero <lekktu@gmail.com>
7963 Eli Zaretskii <eliz@gnu.org>
7964
7965 * makefile.w32-in (LOCAL_FLAGS):
7966 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7967
7968 * sysdep.c (_spawnlp, _getpid):
7969 Declare with explicit _cdecl instead of _CRTAPI1.
7970
7971 * editfns.c (Fget_internal_run_time):
7972 Check for WINDOWSNT with #ifdef, not #if.
7973
79742008-06-26 Jason Rumney <jasonr@gnu.org>
7975
7976 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7977
7978 * w32term.c (x_draw_glyph_string_foreground)
7979 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7980 Use FONT_HANDLE macro.
7981 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7982
7983 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7984 (uniscribe_encode_char): Use FONT_HANDLE macro.
7985
7986 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7987 (w32font_text_extents): Use precast w32_font.
7988 (w32font_close): Free cached metrics.
7989 (w32font_open_internal): Allocate space for name on stack.
7990
79912008-06-26 Chong Yidong <cyd@stupidchicken.com>
7992
7993 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7994
79952008-06-26 Jason Rumney <jasonr@gnu.org>
7996
7997 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7998 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7999
80002008-06-26 Juanma Barranquero <lekktu@gmail.com>
8001
8002 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8003
80042008-06-26 Jason Rumney <jasonr@gnu.org>
8005
8006 * w32bdf.c, w32bdf.h: Remove obsolete files.
8007
8008 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8009
8010 * w32gui.h: Don't include w32bdf.h.
8011 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8012 Remove obsolete font support.
8013
8014 * w32font.h (struct w32font_info): Remove compat_w32_font.
8015 Add hfont member.
8016 (FONT_COMPAT): Remove obsolete macro.
8017
8018 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8019 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8020 (w32font_open_internal): Remove compat code. Set new hfont member.
8021 (Fx_select_font): Use new hfont member.
8022
8023 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8024 (uniscribe_encode_char): Use new hfont member.
8025
8026 * w32term.c (x_draw_glyph_string_foreground)
8027 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8028 (x_draw_glyph_string): Use metrics in w32font_info.
8029
80302008-06-26 Kenichi Handa <handa@m17n.org>
8031
8032 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8033
80342008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8035
8036 * unexnext.c:
8037 * m/ews4800.h:
8038 * m/hp9000s300.h:
8039 * m/ibm370aix.h:
8040 * m/mips-siemens.h:
8041 * m/ncr386.h:
8042 * m/next.h:
8043 * m/pmax.h:
8044 * m/powerpcle.h:
8045 * m/tandem-s2.h:
8046 * s/386bsd.h:
8047 * s/bsd386.h:
8048 * s/bsd4-1.h:
8049 * s/bsd4-2.h:
8050 * s/bsdos2-1.h:
8051 * s/bsdos2.h:
8052 * s/bsdos3.h:
8053 * s/bsdos4.h:
8054 * s/nextstep.h:
8055 * s/ultrix4-3.h:
8056 * s/usg5-0.h:
8057 * s/usg5-2-2.h:
8058 * s/usg5-2.h:
8059 * s/usg5-4-3.h:
8060 * s/ux4800.h:
8061 * s/uxpds.h:
8062 * s/uxpv.h: Remove support for obsolete systems.
8063 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8064 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8065 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8066 Remove, insert contents in s/aix4-2.h.
8067 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8068 * s/bsd4-3.h: Rename to ...
8069 * s/bsd-common.h: ... this.
8070 * data.c:
8071 * doc.c:
8072 * ecrt0.c:
8073 * emacs.c:
8074 * fileio.c:
8075 * floatfns.c:
8076 * keyboard.c:
8077 * mem-limits.h:
8078 * print.c:
8079 * process.c:
8080 * sysdep.c:
8081 * syssignal.h:
8082 * systty.h:
8083 * syswait.h:
8084 * term.c:
8085 * unexec.c:
8086 * unexelf.c:
8087 * unexhp9k800.c:
8088 * m/hp800.h:
8089 * m/ibmrs6000.h:
8090 * m/mips.h:
8091 * m/vax.h:
8092 * s/darwin.h:
8093 * s/freebsd.h:
8094 * s/gnu.h:
8095 * s/ms-w32.h:
8096 * s/msdos.h:
8097 * s/netbsd.h:
8098 * s/template.h: Remove references to obsolete variables.
8099
8100 * Makefile.in: Add dependencies for all unexec files.
8101 (admindir): Remove unused variable.
8102 (UNEXEC_SRC): Remove references.
8103
81042008-06-25 Chong Yidong <cyd@stupidchicken.com>
8105
8106 * xfns.c (x_default_font_parameter): If Xft is available, first
8107 try Monospace-12 for the default font.
8108
81092008-06-25 Jason Rumney <jasonr@gnu.org>
8110
8111 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8112
81132008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8114
8115 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8116
8117 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8118
81192008-06-25 Juanma Barranquero <lekktu@gmail.com>
8120
8121 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8122 <scroll-conservatively>: Fix typo in docstring.
8123
8124 * xselect.c (Fx_send_client_event): Doc fix.
8125
81262008-06-25 Kenichi Handa <handa@m17n.org>
8127
8128 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8129
8130 * font.c (font_parse_fcname): Remove unused variables.
8131 (font_sort_entites): Delete the arg SPEC. Caller changed.
8132 Fix for the case of ! best_only.
8133 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8134
8135 * lisp.h (Fstring_to_unibyte): EXFUN it.
8136
8137 * character.h (str_to_unibyte): Extern it.
8138
8139 * character.c (str_to_unibyte): New function.
8140
8141 * fns.c (Fstring_to_unibyte): New function.
8142 (syms_of_fns): Defsubr it.
8143
81442008-06-24 Kenichi Handa <handa@m17n.org>
8145
8146 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8147 DPI too.
8148 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8149
81502008-06-24 Andreas Schwab <schwab@suse.de>
8151
8152 * Makefile.in (${lispsource}loaddefs.el): Rename from
8153 ../lisp/loaddefs.el.
8154 (bootstrap-clean): Do what distclean does but don't remove
8155 Makefile.
8156 (distclean): Depend on bootstrap-clean and remove Makefile.
8157
81582008-06-24 Chong Yidong <cyd@stupidchicken.com>
8159
8160 * buffer.h (struct buffer): New member word_wrap.
8161
8162 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8163 word-wrap.
8164 (init_buffer_once): Initialize them.
8165
8166 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8167 line_wrap enum possessing three possible values.
8168
8169 * termopts.h: Replace truncate_partial_width_windows with
8170 Vtruncate_partial_width_windows.
8171
8172 * dispnew.c (direct_output_for_insert): Avoid direct output when
8173 inserting a space with word wrap on.
8174
8175 * indent.c (compute_motion): Obey integer values of
8176 truncate-partial-width-windows.
8177
8178 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8179 replacing truncate_partial_width_windows.
8180 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8181 truncate only if the window width is below that integer.
8182 (start_display, resize_mini_window, produce_stretch_glyph)
8183 (display_string, move_it_in_display_line_to): Use line_wrap.
8184 (back_to_previous_visible_line_start, reseat_1): Reset
8185 string_from_display_prop_p.
8186 (display_line): Extend default face to end of line when wrapping.
8187
81882008-06-24 Kim F. Storm <storm@cua.dk>
8189
8190 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8191 to wrap continued lines at word boundaries.
8192
81932008-06-24 Jason Rumney <jasonr@gnu.org>
8194
8195 * font.c (Ffont_face_attributes): Multiply pixel size before point
8196 conversion to avoid multiplying rounding error.
8197
81982008-06-23 Jason Rumney <jasonr@gnu.org>
8199
8200 * w32term.c (x_draw_glyph_string_background)
8201 (x_draw_glyph_string): Remove old bdf font code.
8202
8203 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8204
82052008-06-22 Kenichi Handa <handa@m17n.org>
8206
8207 * font.c (font_find_for_lface): Try the adstyle specified in
8208 the property of LFACE_FONT of LFACE (if any).
8209
82102008-06-21 Seiji Zenitani <zenitani@mac.com>
8211 Ryo Yoshitake <ryo@shiftmode.net>
8212
8213 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8214
82152008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8216
8217 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8218 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8219 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8220 (witness-emacs): Remove.
8221 (lisp, shortlisp): Move loaddefs.el earlier.
8222 (mostlyclean): Forget about witness-emacs.
8223
82242008-06-22 Glenn Morris <rgm@gnu.org>
8225
8226 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8227 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8228
82292008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8230
8231 * Makefile.in (PRECOMP): Remove.
8232 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8233 (witness-emacs): Run `compile-first'.
8234 (.el.elc): Use the new compile-onefile target.
8235
82362008-06-21 Kenichi Handa <handa@m17n.org>
8237
8238 * xftfont.c (xftfont_open): Handle QCembolden only when
8239 FC_EMBOLDEN is defined.
8240
82412008-06-21 Andreas Schwab <schwab@suse.de>
8242
8243 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8244 (.el.elc): Likewise.
8245
82462008-06-21 Miles Bader <miles@gnu.org>
8247
8248 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8249 build dir, not the lisp source dir.
8250
82512008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8252
8253 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8254 (bootstrapclean): Remove.
8255 (.el.elc): New rule.
8256 (PRECOMP): New var.
8257 (../lisp/subdirs.el): Remove.
8258 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8259 (witness-emacs): New target.
8260 (mostlyclean): Remove witness-emacs as well.
8261 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8262 Add witness-emacs dependency.
8263
82642008-06-20 Chong Yidong <cyd@stupidchicken.com>
8265
8266 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8267 defined by the font.
8268
82692008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8270
8271 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8272 (bootstrap-clean): New target that keeps TAGS around.
8273 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8274 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8275
82762008-06-20 Jason Rumney <jasonr@gnu.org>
8277
8278 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8279 Remove obsolete font code.
8280
8281 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8282 to determine language support.
8283
82842008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8285
8286 * sysdep.c (cfsetspeed): New fun extracted from the code.
8287 (cfmakeraw): Move before first use.
8288
82892008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8290
8291 * sysdep.c (cfmakeraw): Provide fallback implementation.
8292 (serial_configure): Provide fallback implementation of cfsetspeed.
8293
82942008-06-20 Kenichi Handa <handa@m17n.org>
8295
8296 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8297 the pattern.
8298
8299 * fontset.c (fontset_from_font): Copy font_spec before changing
8300 the elements.
8301
8302 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8303
83042008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8305
8306 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8307 for explicit `font' parameters.
8308
8309 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8310
83112008-06-19 Kenichi Handa <handa@m17n.org>
8312
8313 * frame.c: Include <ctype.h>.
8314 (x_set_font_backend): Allow spacing characters in the X resource
8315 for FontBackend.
8316
83172008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8318
8319 * w32fns.c, xfns.c (Qfont_param): New var.
8320 (syms_of_w32fns): Initialize it.
8321 (x_default_font_parameter): Record explicit `font' into
8322 `font-parameter'.
8323
83242008-06-18 Kenichi Handa <handa@m17n.org>
8325
8326 * font.c (font_parse_xlfd): Fix previous change.
8327 (font_parse_fcname): Don't use :fc-unknown-spec.
8328 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8329 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8330 (font_add_log): Prepend the driver name to the resulting fonts.
8331
8332 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8333 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8334 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8335
8336 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8337 (QCembolden): New variables.
8338 (syms_of_xftfont): DEFSYM them.
8339 (xftfont_open): Call XftFontMatch. Don't trust the result of
8340 XftTextExtents8 if the pixel_size is less than 5.
8341
83422008-06-18 Andreas Schwab <schwab@suse.de>
8343
8344 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8345 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8346
83472008-06-18 Jason Rumney <jasonr@gnu.org>
8348
8349 * w32font.c (w32font_list, w32font_match): Add logging.
8350
8351 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8352
83532008-06-17 Chong Yidong <cyd@stupidchicken.com>
8354
8355 * font.c (font_parse_fcname): Store divider characters for
8356 unknown-spec list. For known key symbols, intern using correct
8357 symbol name.
8358
83592008-06-17 Kenichi Handa <handa@m17n.org>
8360
8361 * xfaces.c (realize_default_face): If the frame is not on window
8362 system, set the fontset of face to nil.
8363
83642008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8365
8366 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8367
83682008-06-16 Juanma Barranquero <lekktu@gmail.com>
8369
8370 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8371 (build_font_name_from_vector): Delete externs.
8372
8373 * xfaces.c (struct font_name): Don't declare.
8374
83752008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8376
8377 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8378
83792008-06-16 Chong Yidong <cyd@stupidchicken.com>
8380
8381 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8382
83832008-06-16 Juanma Barranquero <lekktu@gmail.com>
8384
8385 * font.c (Ffont_spec): Fix usage in docstring.
8386 (Ffont_face_attributes): Doc fix.
8387
83882008-06-16 Andreas Schwab <schwab@suse.de>
8389
8390 * font.c (Ffont_face_attributes): Fix definition.
8391
83922008-06-16 Jason Rumney <jasonr@gnu.org>
8393
8394 * font.h (font_style_symbolic_from_value): Remove.
8395
8396 * font.c (font_style_symbolic_from_value): Remove.
8397 (font_style_symbolic): Revert to pre 2008-06-13 version.
8398
8399 * w32font.c (w32_to_fc_weight): New function.
8400 (w32font_full_name, logfont_to_fcname): Use it.
8401
84022008-06-16 Kenichi Handa <handa@m17n.org>
8403
8404 * font.c (font_check_object): Delete it.
8405 (font_clear_cache): Check if a font-object is alive.
8406 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8407 font-object to nil.
8408 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8409 (font_at): Don't call font_check_object.
8410 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8411
84122008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8413
8414 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8415
84162008-06-16 Chong Yidong <cyd@stupidchicken.com>
8417
8418 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8419
84202008-06-15 Chong Yidong <cyd@stupidchicken.com>
8421
8422 * font.c (font_parse_fcname): Only one decimal point.
8423 (font_unparse_fcname): Handle data in family and foundry indices
8424 as symbols, not strings.
8425 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8426
8427 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8428
8429 * font.h (font_unparse_gtkname): Add prototype.
8430
84312008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8432
8433 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8434
84352008-06-15 Andreas Schwab <schwab@suse.de>
8436
8437 * font.c (font_update_drivers): Fix crash when no drivers match.
8438
84392008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8440
8441 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8442 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8443
84442008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8445
8446 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8447
84482008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8449
8450 * process.c (Fserial_process_configure, Fprocess_send_eof):
8451 Use EQ to compare Lisp_Objects.
8452
84532008-06-13 Jason Rumney <jasonr@gnu.org>
8454
8455 * w32fns.c (Fw32_select_font): Remove old font API function.
8456
8457 * w32font.c (logfont_to_fcname): New function.
8458 (Fx_select_font): New font dialog function compatible with
8459 GTK/fontconfig version.
8460
8461 * font.c (font_style_symbolic_from_value): New function.
8462 (font_style_symbolic): Use it.
8463
8464 * font.h (font_style_symbolic_from_value): Declare new function.
8465
84662008-06-13 Juanma Barranquero <lekktu@gmail.com>
8467
8468 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8469 <font-width-table>: Fix typos in docstrings.
8470
84712008-06-13 Daniel Engeler <engeler@gmail.com>
8472
8473 These changes add serial port access.
8474 * process.c: Add HAVE_SERIAL.
8475 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8476 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8477 (list_processes_1, select_wrapper, Fstop_process)
8478 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8479 (status_notify): Modify to handle serial processes.
8480 [HAVE_SERIAL] (Fserial_process_configure)
8481 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8482 New functions.
8483 * process.h (struct Lisp_Process): Add `type'.
8484 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8485 New functions.
8486 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8487 serial ports.
b71ac3dd 8488 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8489 * w32.h: Add FILE_SERIAL.
8490 (struct _child_process): Add ovl_read, ovl_write.
8491
84922008-06-13 Kenichi Handa <handa@m17n.org>
8493
8494 * dispextern.h (enum lface_attribute_index): New member
8495 LFACE_FOUNDRY_INDEX.
8496
8497 * font.c (font_score): Delete arg alternate_families. Check only
8498 weight, slant, width, and size. Ignore the difference of alias
8499 style symbols.
8500 (font_sort_entites): Adjust for the above change. Reflect the
8501 order of font-driver to scores.
8502 (font_list_entities): Don't check alternate_familes here.
8503 (font_clear_prop): Handle foundry.
8504 (font_update_lface): Don't parse "foundry-family" form here.
8505 Handle FONT_FOUNDRY_INDEX.
8506 (font_find_for_lface): Likewise. Handle alternate families here.
8507 If registry is nil, try iso8859-1 and ascii-0.
8508 (font_open_for_lface): Pay attention to size in ENTITY.
8509 (font_open_by_name): Simplify by calling font_load_for_lface.
8510 (free_font_driver_list): Delete it.
8511 (font_update_drivers): Preserve the order of backends.
8512 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8513 of font_score and font_sort_entites.
8514 (font_update_sort_order): Likewise.
8515
8516 * xfaces.c (LFACE_FOUNDRY): New macro.
8517 (check_lface_attrs): Check foundry.
8518 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8519 (merge_face_vectors): Check foundry.
8520 (merge_face_ref): Likewise.
8521 (Finternal_set_lisp_face_attribute): Likewise.
8522 (x_update_menu_appearance): Likewise.
8523 (Finternal_get_lisp_face_attribute): Likewise.
8524 (lface_hash): Likewise.
8525 (lface_same_font_attributes_p): Likewise.
8526 (x_supports_face_attributes_p): Likewise.
8527 (tty_supports_face_attributes_p): Likewise.
8528 (Finternal_set_alternative_font_family_alist): Intern strings.
8529 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8530 (realize_default_face): Set LFACE_FOUNDRY (lface).
8531
8532 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8533 font-driver at first.
8534
8535 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8536
85372008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8538
8539 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8540
85412008-06-12 Jim Meyering <meyering@redhat.com>
8542
8543 Make unexec_free handle NULL the same way free does.
8544 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8545
85462008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8547
8548 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8549 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8550 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8551 (WEAK_ALIAS): Simplify.
8552 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8553 when searching a unibyte buffer.
8554
85552008-06-12 Chong Yidong <cyd@stupidchicken.com>
8556
8557 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8558
85592008-06-12 Juanma Barranquero <lekktu@gmail.com>
8560
8561 * w32font.c: Include ctype.h.
8562
85632008-06-11 Jason Rumney <jasonr@gnu.org>
8564
8565 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8566 misreported as space.
8567 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8568 as aliases for registry iso10646-1.
8569
85702008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8571
8572 * buffer.c (clone_per_buffer_values): Skip `name'.
8573
85742008-06-11 Chong Yidong <cyd@stupidchicken.com>
8575
8576 * font.c (font_parse_fcname): Fix last change; accept decimal
8577 points in font size.
8578
85792008-06-10 Jason Rumney <jasonr@gnu.org>
8580
8581 * w32uniscribe.c (add_opentype_font_name_to_list):
8582 Skip non unicode fonts.
8583
85842008-06-10 Chong Yidong <cyd@stupidchicken.com>
8585
8586 * xfns.c (Fx_font_dialog): New function.
8587
8588 * gtkutil.c (xg_dialog_response_cb): Rename from
8589 xg_file_response_callback.
8590 (pop_down_dialog): Rename from pop_down_file_dialog.
8591 (xg_get_file_name): Callers changed.
8592 (xg_get_font_name): New function.
8593
8594 * gtkutil.h (xg_get_font_name): Insert prototype.
8595
85962008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8597
8598 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8599 x_underline_minimum_display_offset.
8600 (syms_of_xdisp): Declare it here rather than in xterm.c.
8601 * dispextern.h (underline_minimum_offset): Declare it.
8602 * w32term.c (x_draw_glyph_string): Use it.
8603 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8604 (syms_of_xterm): Don't declare it any more.
8605 (x_draw_glyph_string): Adjust to the new name.
8606
86072008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8608
8609 * xterm.c (x_underline_minimum_display_offset): New var.
8610 (x_draw_glyph_string): Use it.
8611 (syms_of_xterm): Declare it.
8612
86132008-06-10 Chong Yidong <cyd@stupidchicken.com>
8614
8615 * font.c (font_parse_fcname): Accept GTK-style font names too.
8616
86172008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8618
8619 * dired.c (file_name_completion): Don't return t if the match is exact
8620 but with different capitalization.
8621 * minibuf.c (Ftry_completion): Simplify.
8622
8623 * window.c (Vwindow_point_insertion_type): New var.
8624 (set_window_buffer): Use it.
8625 (syms_of_window): Init and export it to Lisp.
8626
86272008-06-10 Kenichi Handa <handa@m17n.org>
8628
8629 * font.h (font_intern_prop): Prototype adjusted.
8630
8631 * font.c (font_intern_prop): New arg force_symbol.
8632 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8633 Adjust for the change of font_intern_prop.
8634
8635 * ftfont.c (ftfont_pattern_entity):
8636 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8637 (w32_registry):
8638 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8639 the change of font_intern_prop.
8640
86412008-06-09 Juanma Barranquero <lekktu@gmail.com>
8642
8643 * w32menu.c (digest_single_submenu): Declare extern.
8644
86452008-06-09 Jason Rumney <jasonr@gnu.org>
8646
8647 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8648
8649 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8650 (parse_single_submenu): Remove.
8651 (digest_single_submenu): Remove.
8652 (syms_of_w32menu): Don't initialise variables that have moved
8653 to menu.c.
8654 (set_frame_menubar): Sync with version in xmenu.c.
8655 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8656
8657 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8658 Make static again.
8659
86602008-06-09 Jason Rumney <jasonr@gnu.org>
8661
8662 Changes to w32 files related to the move of common menu code
8663 to menu.c on 2008-06-08 by Chong Yidong.
8664
8665 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8666 defs to w32gui.h.
8667 (single_keymap_panes, push_menu_item, push_menu_pane):
8668 Make globally visible.
8669
8670 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8671 (local_free, malloc_widget_value, free_widget_value)
8672 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8673 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8674 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8675 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8676 (menu_items, menu_items_allocated, menu_items_used)
8677 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8678 (init_menu_items, finish_menu_items, discard_menu_items)
8679 (grow_menu_items, push_submenu_start, push_submenu_end)
8680 (push_left_right_boundary, push_menu_pane, push_menu_item)
8681 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8682 (free_menubar_widget_tree_value, parse_single_submenu)
8683 (update_submenu_strings): Remove functions.
8684 (xmalloc_widget_value): Remove and declare extern.
8685
8686 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8687 (OBJ1): Build it.
8688
8689 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8690 (local_heap, local_alloc, local_free, malloc_widget_value)
8691 (free_widget_value): Define here.
8692
86932008-06-09 Kenichi Handa <handa@m17n.org>
8694
8695 * font.h (Qascii_0): Extern it.
8696
8697 * font.c (Qascii_0): New variable.
8698 (syms_of_font): DEFSYM it.
8699 (font_open_by_name): If the registry "iso8859-1" fails, try also
8700 "ascii-0".
8701
8702 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8703
87042008-06-08 Kenichi Handa <handa@m17n.org>
8705
8706 * .gdbinit (xfont): New command.
8707
87082008-06-08 Andreas Schwab <schwab@suse.de>
8709
8710 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8711 * Makefile.in (menu.o): Update dependencies.
8712
8713 * Makefile.in (obj): Always add menu.o.
8714 * emacs.c (main): Always call syms_of_menu.
8715 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8716
87172008-06-08 Chong Yidong <cyd@stupidchicken.com>
8718
8719 * Makefile.in: Compile menu.c.
8720
8721 * lisp.h: Declare syms_of_menu.
8722
8723 * emacs.c (main): Call syms_of_menu.
8724
8725 * keyboard.h: Relocate platform-independent menu definitions from
8726 xmenu.c.
8727
8728 * menu.c: New file. Relocate platform-independent menu
8729 definitions from xmenu.c. Suggested by Adrian Robert.
8730
8731 * xmenu.c: Remove platform-independent menu definitions.
8732 (menu_items menu_items_inuse, menu_items_allocated)
8733 (menu_items_used, menu_items_n_panes)
8734 (menu_items_submenu_depth): Move to keyboard.h.
8735 (init_menu_items, finish_menu_items, unuse_menu_items)
8736 (discard_menu_items, restore_menu_items, save_menu_items)
8737 (grow_menu_items, push_submenu_start, push_submenu_end)
8738 (push_left_right_boundary, push_menu_pane, push_menu_item)
8739 (keymap_panes, single_keymap_panes, single_menu_item)
8740 (list_of_panes, list_of_items, find_and_call_menu_selection)
8741 (xmalloc_widget_value, free_menubar_widget_value_tree)
8742 (parse_single_submenu, digest_single_submenu)
8743 (update_submenu_strings): Move to menu.c.
8744
87452008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8746
8747 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8748
87492008-06-06 Miles Bader <miles@gnu.org>
8750
8751 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8752 face, not frame default.
8753
87542008-06-05 Martin Rudalics <rudalics@gmx.at>
8755
8756 * window.c (pop_up_windows, pop_up_frames)
8757 (display_buffer_reuse_frames, Vpop_up_frame_function)
8758 (Vdisplay_buffer_function, Veven_window_heights)
8759 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8760 (Vspecial_display_function, Vsame_window_buffer_names)
8761 (Vsame_window_regexps, split_height_threshold)
8762 (Vsplit_window_preferred_function): Move those vars to window.el.
8763 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8764 (Fdisplay_buffer): Move those functions to window.el.
8765 (syms_of_window): Remove corresponding declarations.
8766 (display_buffer): New function.
8767 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8768 * dispnew.c (Flast_nonminibuf_frame): New function.
8769 * buffer.c (Fpop_to_buffer): Move to window.el.
8770
87712008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8772
8773 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8774
87752008-06-05 Kenichi Handa <handa@m17n.org>
8776
8777 * coding.c (detect_coding): Fix previous change.
8778 (detect_coding_system): Likewise.
8779
87802008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8781
8782 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8783
8784 * keymap.c (Vminibuffer_local_filename_must_match_map):
8785 Rename from Vminibuffer_local_must_match_filename_map.
8786 (syms_of_keymap):
8787 * minibuf.c (Fcompleting_read): Adjust accordingly.
8788 * commands.h: Rename declaration as well.
8789
87902008-06-05 Kenichi Handa <handa@m17n.org>
8791
8792 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8793 family name.
8794 (Ffont_put): Likewise.
8795
8796 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8797 current font-spec.
8798
8799 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8800 is unspecified.
8801
8802 * xfaces.c (realize_x_face): If the font-related face attributes
8803 are the same as those of default face, realize a new fontset from
8804 default->fontset.
8805 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8806
88072008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8808
8809 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8810 (move_it_in_display_line): New wrapper.
8811
8812 * window.c (window_scroll_pixel_based_preserve_x)
8813 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8814 (window_scroll_pixel_based, window_scroll_line_based):
8815 Use them to preserve column positions.
8816 (syms_of_window): Initialize them.
8817
8818 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8819 (HPOS . VPOS) pair.
8820
8821 * dispextern.h (move_it_in_display_line): Declare.
8822
88232008-06-05 Juanma Barranquero <lekktu@gmail.com>
8824
8825 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8826 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8827 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8828
88292008-06-04 Juanma Barranquero <lekktu@gmail.com>
8830
8831 * window.c (Fset_window_parameter): Doc fix.
8832 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8833
88342008-06-04 Joakim Verona <joakim@verona.se>
8835
8836 * window.h (struct window): Add new member window_parameters.
8837
8838 * window.c (Fwindow_parameters, Fwindow_parameter)
8839 (Fset_window_parameter): New defuns.
8840 (syms_of_window): Defsubr the new defuns.
8841 (make_window): Initialize window_parameters to nil.
8842
88432008-06-04 John Paul Wallington <jpw@pobox.com>
8844
8845 * eval.c (Fdefmacro): Doc fix.
8846
88472008-06-04 Kenichi Handa <handa@m17n.org>
8848
8849 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8850 Be sure to call setup_coding_system when we find a proper coding system.
8851 (detect_coding_system): Fix handling of coding->head_ascii.
8852
88532008-06-03 Andreas Schwab <schwab@suse.de>
8854
8855 * font.c (font_prop_validate_spacing): Fix last change.
8856
88572008-06-03 Kenichi Handa <handa@m17n.org>
8858
8859 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8860 (font_parse_fcname): Fix handling of unknown key.
8861
8862 * xfont.c (xfont_list): Try an alias.
8863
8864 * charset.c (char_charset): Return NULL if the arg charset_list is
8865 specified and C doesn't belong to any of them.
8866
88672008-06-02 Chip Coldwell <coldwell@redhat.com>
8868
8869 * font.c (font_pixel_size): Don't take cdr of an integer.
8870
88712008-06-02 Jim Meyering <meyering@redhat.com>
8872
8873 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8874 * alloc.c (xfree): Return right away for a NULL arg.
8875 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8876 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8877 * mac.c (create_apple_event_from_event_ref): Likewise.
8878 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8879 Likewise.
8880 * doprnt.c (doprnt1): Likewise.
8881 * frame.c (frame): Likewise.
8882 * keyboard.c (wipe_kboard): Likewise.
8883 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8884 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8885 * term.c (tty_default_color_capabilities, maybe_fatal)
8886 (delete_tty): Likewise.
8887 * w16select.c (string): Likewise.
8888 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8889 * w32bdf.c (w32_free_bdf_font): Likewise.
8890 * w32fns.c (w32_unload_font): Likewise.
8891 * w32font.c (w32font_close): Likewise.
8892 * window.c (size_window): Likewise.
8893 * xselect.c (receive_incremental_selection): Likewise.
8894 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8895 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8896 * w32.c (stat): Likewise.
8897
8898 Remove useless if-before-free tests.
8899 * editfns.c (Fset_time_zone_rule): Likewise.
8900 * lread.c (nosuffix): Likewise.
8901 * ralloc.c (get_bloc): Likewise.
8902 * regex.c (reg_free): Likewise.
8903 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8904 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8905 * xsmfns.c (smc_save_yourself_CB): Likewise.
8906
89072008-06-02 Kenichi Handa <handa@m17n.org>
8908
8909 * font.c (font_find_for_lface): Handle float font size.
8910 (font_open_for_lface): Likewise.
8911
8912 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8913 comparing the properties.
8914
89152008-06-01 Jason Rumney <jasonr@gnu.org>
8916
8917 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8918 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8919 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8920 Don't add empty script list.
8921 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8922
89232008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8924
8925 * Makefile.in (dot, dotdot): Remove, update users.
8926 ".." has been used elsewhere in the file for a long time.
8927 (LIBXT_STATIC): Remove conditional based on unused variable.
8928
89292008-06-01 Miles Bader <miles@gnu.org>
8930
8931 * xfaces.c (Vface_remapping_alist): New variable.
8932 (syms_of_xfaces): Initialize it.
8933 (enum named_merge_point_kind): New type.
8934 (struct named_merge_point): Add `named_merge_point_kind' field.
8935 (push_named_merge_point): Make cycle detection respect different
8936 named-merge-point kinds.
8937 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8938 Remove face-name alias resolution.
8939 (lface_from_face_name): New definition using
8940 `lface_from_face_name_no_resolve'.
8941 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8942 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8943 (get_lface_attributes): New definition that layers face-remapping on
8944 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8945 (lookup_basic_face): New function.
8946 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8947 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8948 `get_lface_attributes'.
8949 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8950 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8951 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8952
8953 * xdisp.c (init_iterator): Pass base_face_id through
8954 `lookup_basic_face' when we actually use it as a face-id.
8955 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8956 DEFAULT_FACE_ID.
8957
8958 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8959 lookup the initial face-id.
8960
8961 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8962
89632008-06-01 Juanma Barranquero <lekktu@gmail.com>
8964
8965 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8966 (Fremove_text_properties): Fix typos in docstrings.
8967
89682008-05-31 Kenichi Handa <handa@m17n.org>
8969
8970 * font.c (font_list_entities): Fix the car part of data to be
8971 stored in the cache.
8972
8973 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8974
89752008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8976
8977 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8978 Add a `test' argument so another predicate than `equal' can be used.
8979 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8980 (map_char_table): Remove unused vars `c' and `i'.
8981 * lisp.h (Foptimize_char_table): Adjust declaration.
8982 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8983
89842008-05-30 Kenichi Handa <handa@m17n.org>
8985
8986 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8987 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8988 defined.
8989
89902008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8991
8992 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8993 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8994 frame-local settings for the same variable.
8995
89962008-05-30 Kenichi Handa <handa@m17n.org>
8997
8998 * fontset.c (Ffont_info): Move to font.c.
8999 (syms_of_fontset): Delete defsubr of Sfont_info.
9000
9001 * font.c (font_style_to_value, font_score): Delete casting of the
9002 args to xstcasecmp.
9003 (register_font_driver): Increment num_font_drivers only when
9004 registering the driver globally.
9005 (Ffont_info): Move from fontset.c. Handle a font object too.
9006 (syms_of_font): Defsubr Sfont_info.
9007
90082008-05-29 Kenichi Handa <handa@m17n.org>
9009
9010 * coding.h (enum define_coding_utf8_arg_index): New enum.
9011 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9012 coding_attr_utf_bom.
9013 (enum utf_bom_type): Rename from utf_16_bom_type.
9014 (struct utf_16_spec): Adjust for the above change.
9015 (struct coding_system): Add utf_8_bom in `spec' union.
9016
9017 * coding.c (CODING_UTF_8_BOM): New macro.
9018 (enum coding_category): Delete coding_category_utf_8, add
9019 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9020 coding_category_utf_8_sig.
9021 (CATEGORY_MASK_UTF_8): Delete it.
9022 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9023 (CATEGORY_MASK_UTF_8_SIG): New macros.
9024 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9025 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9026 CATEGORY_MASK_UTF_8_SIG.
9027 (CATEGORY_MASK_UTF_8): New macro.
9028 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9029 (detect_coding_utf_8): Check BOM.
9030 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9031 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9032 (encode_coding_utf_16): Likewise.
9033 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9034 (detect_coding, detect_coding_system): Handle utf-8-auto.
9035 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9036 (syms_of_coding): Fix setting up of Vcoding_category_table.
9037
90382008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9039
9040 * process.c (Faccept_process_output): If `millisec' is non-nil,
9041 `seconds' default to 0.
9042 (wait_reading_process_output): Also return non-nil if we read output
9043 from a non-running process.
9044
90452008-05-29 Jason Rumney <jasonr@gnu.org>
9046
9047 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9048 `raster' specified.
9049 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9050 in the uniscribe backend, but disallow any font that has no
9051 unicode subrange support.
9052
90532008-05-29 Juanma Barranquero <lekktu@gmail.com>
9054
9055 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9056 Fix typos in docstrings.
9057
90582008-05-29 Kenichi Handa <handa@m17n.org>
9059
9060 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9061 (Fx_family_fonts): Set frame correctly.
9062
90632008-05-28 Jason Rumney <jasonr@gnu.org>
9064
9065 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9066
90672008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9068
9069 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9070 calling build_annotations.
9071
90722008-05-28 Juanma Barranquero <lekktu@gmail.com>
9073
9074 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9075 (Fencode_coding_string):
9076 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9077 <latin-extra-code-table>: Fix typos in docstrings.
9078 (syms_of_coding) <coding-system-alist>: Doc fix.
9079 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9080
90812008-05-28 Kenichi Handa <handa@m17n.org>
9082
9083 * fontset.c (Ffont_info): Don't call font_close_object.
9084
9085 * font.c (font_parse_family_registry): Use Ffont_put to validate
9086 foundry and family.
9087 (font_delete_unmatched): Don't check spacing.
9088 (font_list_entities): Add spacing to the spec to list fonts.
9089
9090 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9091 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9092
9093 * coding.c (encode_coding_raw_text): Fix previous change.
9094 (encode_coding_object): When the dst_object is a buffer and is
9095 different from src_object, move gap to PT.
9096
90972008-05-27 Chong Yidong <cyd@stupidchicken.com>
9098
9099 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9100
91012008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9102
9103 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9104 all branches. Compute it differently.
9105
9106 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9107
91082008-05-27 Juanma Barranquero <lekktu@gmail.com>
9109
9110 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9111 into "else if () ... else ...".
9112
91132008-05-27 Jason Rumney <jasonr@gnu.org>
9114
9115 * w32font.c (w32font_open_internal): Determine if glyph indices
9116 are likely to work here.
9117
91182008-05-27 Chong Yidong <cyd@stupidchicken.com>
9119
9120 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9121 draw overlap glyphs with appropriate highlighting.
9122
91232008-05-27 Kenichi Handa <handa@m17n.org>
9124
9125 * xfont.c (xfont_open): Fix calculation of font->average_width.
9126
91272008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9128
9129 * casefiddle.c (casify_object): Try to guess better whether the
9130 argument is a byte or a char.
9131
91322008-05-26 Andreas Schwab <schwab@suse.de>
9133
9134 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9135 Always send multiples of format size.
9136
9137 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9138
91392008-05-26 Jason Rumney <jasonr@gnu.org>
9140
9141 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9142 (compute_metrics): Don't set failure if we just cleared the cache.
9143 (w32_weight_table): Remove unused variable.
9144 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9145 backwards compatibility.
9146
91472008-05-25 Kenichi Handa <handa@m17n.org>
9148
9149 * w32term.c (x_draw_glyph_string):
9150 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9151
9152 * xfaces.c: Delete unused function prototypes.
9153 (xstrlwr, font_frame): Delete them.
9154 (clear_face_cache): Delete unused variable.
9155
9156 * xftfont.c (xftfont_open): Delete unused variable.
9157 If underline_thickness is not 1, adjust underline_position.
9158
9159 * ftxfont.c (ftxfont_open): Delete unused variable.
9160
9161 * fontset.c (face_for_char): Optimize for the case of no charset
9162 property.
9163
9164 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9165 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9166 (otf_open, font_otf_capability, generate_otf_features)
9167 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9168 Comment out by surrounding "#if 0" and "#endif" for the moment.
9169 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9170 (syms_of_font): Codes for accessing above commented out.
9171
91722008-05-24 Eli Zaretskii <eliz@gnu.org>
9173
9174 * w32proc.c: Include dispextern.h.
9175
9176 * w32.c: Include dispextern.h.
9177
91782008-05-23 Juanma Barranquero <lekktu@gmail.com>
9179
9180 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9181 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9182 Fix typos in docstrings.
9183
91842008-05-23 Jason Rumney <jasonr@gnu.org>
9185
9186 * xsmfns.c: Remove includes that are already included by config.h.
9187
91882008-05-23 Kenichi Handa <handa@m17n.org>
9189
9190 * charset.c (Qemacs, charset_emacs): New variables.
9191 (char_charset): Fix for non-Unicode characters.
9192 (syms_of_charset): Define charset_emacs.
9193
9194 * w32term.c (x_draw_glyph_string): Be sure to update
9195 s->underline_thickness and s->underline_position. Be sure to draw
9196 underline within the current line area.
9197
9198 * xterm.c (x_draw_glyph_string): Be sure to update
9199 s->underline_thickness and s->underline_position. Be sure to draw
9200 underline within the current line area.
9201
9202 * fontset.c: Delete unused variables and add casting for char *
9203 throughout the file.
9204 (fontset_font): Try the fallback fonts of the current fontset
9205 before consulting the default fontset.
9206
9207 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9208
9209 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9210
92112008-05-22 Jason Rumney <jasonr@gnu.org>
9212
9213 * font.c: Don't include strings.h.
9214
9215 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9216
9217 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9218 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9219 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9220 to call xstrcasecmp.
9221
9222 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9223
9224 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9225
9226 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9227
9228 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9229
92302008-05-22 Kenichi Handa <handa@m17n.org>
9231
9232 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9233
9234 * font.c (font_prop_validate_style): Adjust for the format
9235 change of font_style_table.
9236
9237 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9238 two args.
9239
9240 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9241 two args.
9242
92432008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9244
9245 * minibuf.c (keys_of_minibuf): Delete.
9246 * lisp.h (keys_of_minibuf): Delete.
9247 * emacs.c (main): Don't call keys_of_minibuf.
9248
92492008-05-22 Kenichi Handa <handa@m17n.org>
9250
9251 * ftfont.c (ftfont_resolve_generic_family): Rename from
9252 ftfont_list_generic_family. Return a single family for each
9253 generic family.
9254 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9255 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9256 Call font_add_log.
9257 (ftfont_match): Call font_add_log.
9258
9259 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9260 (FONT_DEBUG): Define it.
9261 (font_add_log): Extern it.
9262 (font_assert): Rename from xassert.
9263
9264 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9265 (xfont_list_family): Call font_add_log.
9266 (xfont_match): Likewise.
9267 (memq_no_quit): Delete.
9268
9269 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9270 call of Ffont_xlfd_name.
9271
9272 * xfaces.c (struct table_entry, slant_table, weight_table)
9273 (swidth_table): Move to font.c.
9274
9275 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9276 xassert are changed to font_assert. Delete many unused variables.
9277 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9278 New variables.
9279 (struct table_entry): Move from xfaces.c and modified.
9280 (weight_table, slant_table, width_table): Move from xfaces.c and
9281 contents adjusted for the change of struct table_entry.
9282 (font_style_to_value, font_style_symbolic): Adjust for the
9283 format change of font_style_table.
9284 (font_parse_family_registry): Don't overwrite existing foundry and
9285 family of font_spec.
9286 (font_score): Fix calculation of diff for sizes.
9287 (font_sort_entites): Call font_add_log.
9288 (font_delete_unmatched): Return a newly created list.
9289 (font_list_entities): Fix previous change. Call font_add_log.
9290 (font_matching_entity, font_open_entity, font_close_entity):
9291 Call font_add_log.
9292 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9293 (Finternal_set_font_style_table): Delete.
9294 (BUILD_STYLE_TABLE): New macro.
9295 (build_style_table): New function.
9296 (Vfont_log, font_log_env_checked): New variables.
9297 (font_add_log): New function.
9298 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9299 Declare Lisp variables "font-weight-table", "font-slant-table",
9300 "font-width-table", and "font-log". Initialize font_style_table.
9301
93022008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9303
9304 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9305
93062008-05-21 Seiji Zenitani <zenitani@mac.com>
9307 Ryo Yoshitake <ryo@shiftmode.net>
9308
9309 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9310 (Vframe_alpha_lower_limit): New variable.
9311 (x_set_alpha): New function.
9312
9313 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9314
9315 * xfns.c (x-create-frame, Qalpha):
9316 Initialize the frame parameter `alpha'.
9317 * xterm.c (OPAQUE, OPACITY): New.
9318 (x_set_frame_alpha): New function.
9319 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9320
9321 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9322 * w32fns.c (w32_frame_parm_handlers): Likewise.
9323
93242008-05-20 Jason Rumney <jasonr@gnu.org>
9325
9326 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9327 truetype fonts to opentype list.
9328
93292008-05-20 Juanma Barranquero <lekktu@gmail.com>
9330
9331 * fontset.c (Ffontset_info): Doc fix.
9332 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9333 <ignore-relative-composition>: Fix typos in docstrings.
9334
9335 * font.c (syms-of-font) <font-encoding-alist>:
9336 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9337 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9338 (Ffont_otf_alternates): Doc fixes.
9339
93402008-05-20 Kenichi Handa <handa@m17n.org>
9341
9342 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9343 font.h through out the file.
9344 (FONT_DRIVERS): Rename from FONTOBJ.
9345 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9346 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9347
9348 * emacs.c (main): Call syms_of_font unconditionally.
9349
9350 * font.h (find_font_encoding): Extern it.
9351
9352 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9353 fontset.c.
9354 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9355 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9356 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9357 only when HAVE_WINDOW_SYSTEM is defined.
9358 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9359 when HAVE_WINDOW_SYSTEM is defined.
9360
9361 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9362 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9363
9364 * xfaces.c: Include font.h unconditionally.
9365 (merge_face_ref, merge_face_vectors)
9366 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9367
93682008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9369
9370 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9371 indirect_variable.
9372 * eval.c (lisp_indirect_variable): New fun.
9373 (Fuser_variable_p): Use it.
9374
93752008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9376
9377 * lisp.h (indirect_variable):
9378 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9379 Use Lisp_Symbol pointers rather than Lisp_Object.
9380 Adjust callers.
9381 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9382 To this end, change calling-convention.
9383
9384 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9385 if some non-hidden buffers are selected by string&pred.
9386
93872008-05-19 Chong Yidong <cyd@stupidchicken.com>
9388
9389 * process.c (wait_reading_process_output): Always check status
9390 when in batch mode.
9391
93922008-05-19 Kenichi Handa <handa@m17n.org>
9393
9394 * font.c (font_list_entities): Fix handling of cache.
9395 (font_matching_entity): Likewise.
9396
9397 * ftfont.c (cs_iso8859_1): Delete.
9398 (ft_face_cache): New variable.
9399 (struct ftfont_info): New member fc_charset_idx.
9400 (ftfont_build_basic_charsets): Delete.
9401 (fc_charset_table): New variable.
9402 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9403 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9404 Callers changed.
9405 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9406 (ftfont_spec_pattern): New argument fc_charset_idx.
9407 Check registry more rigidly. Change callers.
9408 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9409 change of :font-entity property of the font.
9410
9411 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9412 property of the font.
9413
94142008-05-18 Juanma Barranquero <lekktu@gmail.com>
9415
9416 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9417 (Funencodable_char_position, Fcheck_coding_systems_region)
9418 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9419 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9420 (Ffind_operation_coding_system, Fset_coding_system_priority)
9421 (Fcoding_system_eol_type): Doc fixes.
9422
94232008-05-17 Glenn Morris <rgm@gnu.org>
9424
9425 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9426
94272008-05-16 Eli Zaretskii <eliz@gnu.org>
9428
9429 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9430 and st_gid.
9431
9432 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9433 HAVE_WINDOW_SYSTEM is not defined.
9434
9435 * xfaces.c (merge_face_ref, merge_face_vectors)
9436 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9437 HAVE_WINDOW_SYSTEM is defined.
9438 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9439
94402008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9441
9442 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9443
94442008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9445
9446 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9447
94482008-05-15 Kenichi Handa <handa@m17n.org>
9449
9450 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9451 preference.
9452
94532008-05-15 Glenn Morris <rgm@gnu.org>
9454
9455 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9456
94572008-05-15 Chong Yidong <cyd@stupidchicken.com>
9458
9459 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9460 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9461
9462 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9463
94642008-05-15 Kenichi Handa <handa@m17n.org>
9465
9466 * ftfont.c (ftfont_list): Downcase family name to check generic
9467 families.
9468
9469 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9470 font-spec for QCfont value.
9471
9472 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9473 buffer. Check the return value of it.
9474
94752008-05-14 Jason Rumney <jasonr@gnu.org>
9476
9477 * w32term.c (w32_get_glyph_overhangs): Remove.
9478 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9479
94802008-05-14 Kenichi Handa <handa@m17n.org>
9481
9482 * font.c (font_prop_validate): Make nil a valid value.
9483 (font_clear_cache): Check if the cached vector of entities is nil
9484 or not.
9485
94862008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9487
9488 * emacs.c (main_thread): Conditionalize on
9489 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9490 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9491
9492 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9493 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9494 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9495
94962008-05-14 Kenichi Handa <handa@m17n.org>
9497
9498 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9499 has no corresponding coding system.
9500
95012008-05-14 Jason Rumney <jasonr@gnu.org>
9502
9503 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9504
9505 * w32font.h (w32font_open_internal): Update declaration.
9506
9507 * w32font.c (w32font_open_internal): Change last argument from
9508 w32font_info struct to font object. Fill in font object from
9509 font_entity. Get Outline metrics if possible. Use them to
9510 calculate underline position and thickness. Use xlfd name as name
9511 property. Don't set codepage.
9512 (w32font_open): Pass font_object to w32font_open_internal. Don't
9513 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9514 (w32font_draw): Use s->font.
9515 (clear_cached_metrics): Don't clear non-existent blocks.
9516
9517 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9518 font was not found.
9519 (x_draw_glyph_string): Use underline position and thickness from font.
9520
9521 * w32uniscribe.c (uniscribe_open): Pass font_object to
9522 w32font_open_internal.
9523
95242008-05-14 Kenichi Handa <handa@m17n.org>
9525
9526 These changes are to delete all legacy font-handling codes, and
9527 make Emacs use only font-backends.
9528
9529 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9530 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9531
9532 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9533
9534 * charset.h (Vcharset_non_preferred_head)
9535 (Vcurrent_iso639_language): Extern them.
9536
9537 * charset.c (Vcharset_non_preferred_head): New variable.
9538 (Vcurrent_iso639_language): New variable.
9539 (syms_of_charset): Declare it as a Lisp variable.
9540 (char_charset): Don't check non preferred charsets. As a last
9541 resort, return charset_unicode.
9542 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9543
9544 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9545 conditionals. Don't check enable_font_backend. Delete all codes
9546 used only when USE_FONT_BACKEND is not defined.
9547
9548 * dispextern.h (struct glyph_string): Change type of `font' to
9549 `struct font *'.
9550 (struct glyph_string): New member underline_position and
9551 underline_thickness.
9552 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9553 (struct face): Change type of `font' to `struct font *'. Remove
9554 members `font_name', `font_info_id'.
9555 (per_char_metric, encode_char): Delete externs.
9556 (calc_pixel_width_or_height): Adjust the prototype.
9557
9558 * emacs.c (enable_font_backend): Delete extern.
9559 (main): Don't set enable_font_backend. Don't check the command
9560 line argument "-disable-font-backend".
9561
9562 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9563 (enum font_property_index): New members FONT_DPI_INDEX,
9564 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9565 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9566 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9567 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9568 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9569 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9570 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9571 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9572 (struct font_spec, struct font_entity): New structs.
9573 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9574 (struct font): Many members from old "struct font_info" moved to
9575 here. Members font and entity deleted.
9576 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9577 the new font-related objects.
9578 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9579 (CHECK_FONT_GET_OBJECT): Likewise.
9580 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9581 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9582 (struct font_driver): New members case_sensitive anc check. Type
9583 of the member list and open changed.
9584 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9585 (font_symbolic_width, font_find_object, font_get_spec)
9586 (font_set_lface_from_name): Delete extern.
9587 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9588
9589 * font.c: Include <strings.h>.
9590 (enable_font_backend): Delete it.
9591 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9592 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9593 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9594 (null_string): Delete it.
9595 (null_vector): Make it static.
9596 (font_family_alist): Delete it.
9597 (Qnormal): Extern it.
9598 (QCextra, QClanguage): Delete it.
9599 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9600 (font_make_spec, font_make_entity, font_make_object)
9601 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9602 the string. Callers changed.
9603 (font_pixel_size): Adjusted for the format change of font-related
9604 objects.
9605 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9606 (font_style_to_value, font_style_symbolic): New function.
9607 (build_font_family_alist): Delete it.
9608 (font_registry_charsets): Use Fassoc_string instead of
9609 assq_no_quit.
9610 (font_prop_validate_symbol): Don't return null_string.
9611 (font_prop_validate_style): Adjusted for the change of
9612 style-related values in a font vector.
9613 (font_property_table): Delete entries for QClanguage and
9614 QCantialias, add entries for QCavgwidth.
9615 (get_font_prop_index): Delete the 2nd argument FROM.
9616 (font_prop_validate): Arguments changed.
9617 (font_put_extra): Adjusted for the change of font-related objects.
9618 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9619 (font_parse_fcname, font_unparse_fcname)
9620 (font_prepare_composition): Likewise.
9621 (font_parse_family_registry): Renamed from font_merge_old_spec.
9622 (otf_open): Delete the 1st arg entity.
9623 (font_otf_capability): Adjusted for the above change.
9624 (font_score): New arg alternate_families. Adjusted for the change
9625 of font-related objects.
9626 (font_sort_entites): New arg best_only.
9627 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9628 Delete them.
9629 (font_match_p): Check alternate families.
9630 (font_find_object): Delete it.
9631 (font_check_object): New function.
9632 (font_clear_cache): Adjusted for the change of font-related objects.
9633 (font_delete_unmatched): New arg.
9634 (font_list_entities): Call font_driver->list with a spec that
9635 doesn't specify style-related properties.
9636 (font_matching_entity): Arguments changed. Caller changed.
9637 (font_open_entity): Adjusted for the change of font-related objects.
9638 (font_close_object, font_has_char, font_encode_char)
9639 (font_get_name, font_get_spec): Likewise.
9640 (font_spec_from_name, font_clear_prop, font_update_lface):
9641 New functions.
9642 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9643 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9644 (font_at): Adjusted for the change of font-related objects.
9645 (font_range): New function.
9646 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9647 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9648 (Fcopy_font_spec, Fmerge_font_spec): New function.
9649 (Ffont_family_list): Renamed from list-families.
9650 (Finternal_set_font_style_table): Arguments changed.
9651 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9652 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9653 change of font-related objects.
9654 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9655
9656 * fontset.h (struct font_info): Delete it. Most members go to
9657 struct font.
9658 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9659 (enum FONT_SPEC_INDEX): Delete it.
9660 (font_info, list_fonts_func, load_font_func, query_font_func)
9661 (set_frame_fontset_func, find_ccl_program_func)
9662 (get_font_repertory_func, new_fontset_from_font_name): Delete
9663 externs.
9664 (fontset_from_font_name): Extern it.
9665 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9666 (FONT_INFO_FROM_FACE): Deleted.
9667 (face_for_font): Adjust prototype.
9668
9669 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9670 conditionals. Don't check enable_font_backend. Delete all codes
9671 used only when USE_FONT_BACKEND is not defined.
9672 (get_font_info_func, list_font_func, load_font_func)
9673 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9674 (get_font_repertory_func): Delete them.
9675 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9676 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9677 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9678 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9679 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9680 (fontset_compare_rfontdef): New function.
9681 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9682 rfont-defs by qsort. Adjusted for the change of font-group vector.
9683 (load_font_get_repertory): Deleted.
9684 (fontset_find_font): Use new macros to ref/set elements of
9685 font-def and rfont-def.
9686 (fontset_font): Fix the timing of remembering that no font for C.
9687 (free_face_fontset): Do nothing if the face has no fontset.
9688 (face_suitable_for_char_p): Use new macros to ref/set elements of
9689 rfont-def.
9690 (face_for_char): Likewise. Call face_for_char with font_object.
9691 (fs_load_font): Delete. Delete #pragma surrounding it.
9692 (fs_query_fontset): Use strcasecmp instead of strcmp.
9693 (generate_ascii_font_name): Adjusted for the format change of
9694 font-spec.
9695 (Fset_fontset_font): Likewise. Use new macros to set elements of
9696 font-def.
9697 (Fnew_fontset): Use font_unparse_xlfd to generate
9698 FONTSET_ASCII (fontset).
9699 (new_fontset_from_font_name): Deleted.
9700 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9701 a fontset is already created for the font. FIx updating of
9702 Vfontset_alias_alist.
9703 (fontset_ascii_font): Deleted.
9704 (Ffont_info): Adjusted for the format change of font-spec.
9705 (Finternal_char_font): Likewise.
9706 (Ffontset_info): Likewise.
9707 (syms_of_fontset): Don't check load_font_func.
9708
9709 * fns.c (internal_equal): Handle PREV_FONT.
9710
9711 * frame.h: Delete USE_FONT_BACKEND conditional.
9712
9713 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9714 conditionals. Don't check enable_font_backend. Delete all codes
9715 used only when USE_FONT_BACKEND is not defined.
9716 (x_set_font): Call x_new_font, not x_new_fontset2.
9717 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9718 already set for the frame.
9719
9720 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9721 a font-entity by font_make_entity. Use font_intern_prop instead
9722 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9723 font property. If a font is scalable, set avgwidth property to 0.
9724 Set font-entity property by font_put_extra.
9725 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9726 (ffont_driver): Adjusted for the change of struct font_driver.
9727 (ftfont_spec_pattern): New function.
9728 (ftfont_list): Return a list, not vector.
9729 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9730 (ftfont_list_family): Don't downcase names.
9731 (ftfont_free_entity): Deleted.
9732 (ftfont_open): Return a font-object. Adjusted for the change of
9733 struct font. Get underline_thickness and underline_position from
9734 font property. Don't update dpyinfo->smallest_font_height and
9735 dpyinfo->smallest_char_width.
9736 (ftfont_close): Don't free `struct font'.
9737 (ftfont_has_char): Adjusted for the format change of font-entity.
9738 (ftfont_encode_char, ftfont_text_extents): Likewise.
9739
9740 * ftxfont.c (ftxfont_list): Return a list, not vector.
9741 (ftxfont_open): Return a font-object. Adjusted for the change of
9742 struct font. Get underline_thickness and underline_position from
9743 font property. Don't update dpyinfo->smallest_font_height and
9744 dpyinfo->smallest_char_width.
9745 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9746 (ftxfont_draw): Adjusted for the change of struct font.
9747
9748 * image.c (image_ascent): Don't include "charset.h". Include
9749 "character.h" and "font.h".
9750
9751 * lisp.h (enum pvec_type): New member PREV_FONT.
9752 (Fassoc_string): EXFUN it.
9753
9754 * print.c: Include font.h.
9755 (print_object): Handle font-related objects.
9756
9757 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9758 conditionals. Don't check enable_font_backend. Delete all codes
9759 used only when USE_FONT_BACKEND is not defined.
9760 (handle_auto_composed_prop): Do nothing if it->f is not on a
9761 window system. Check how many following characters can be
9762 displayed by the same font.
9763 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9764 'struct font *'.
9765 (get_char_face_and_encoding): Assign the whole encoding task to
9766 the `encode-char' method of a font driver.
9767 (fill_composite_glyph_string): Adjusted for the change of `struct
9768 face' and `struct glyph_string'.
9769 (fill_glyph_string): Likewise.
9770 (get_per_char_metric): Arguments changed.
9771 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9772 and `struct glyph_string'.
9773 (produce_stretch_glyph, calc_line_height_property)
9774 (x_produce_glyphs): Likewise.
9775
9776 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9777 conditionals. Don't check enable_font_backend. Delete all codes
9778 used only when USE_FONT_BACKEND is not defined. Use
9779 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9780 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9781 (Qp): Extern them.
9782 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9783 Deleted.
9784 (struct font_name): Deleted.
9785 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9786 (compare_fonts_by_sort_order): New function.
9787 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9788 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9789 Deleted.
9790 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9791 compare_fonts_by_sort_order.
9792 (Fx_font_family_list): Call Ffont_family_list.
9793 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9794 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9795 (face_symbolic_slant, face_symbolic_swidth)
9796 (split_font_name_into_vector, build_font_name_from_vector)
9797 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9798 (font_rescale_ratio, split_font_name, build_font_name)
9799 (free_font_names, sort_fonts, x_face_list_fonts)
9800 (face_font_available_p, sorted_font_list, cmp_font_names)
9801 (font_list_1, concat_font_list, font_list, remove_duplicates):
9802 Deleted.
9803 (Fx_list_fonts): Use Ffont_list.
9804 (LFACE_AVGWIDTH): Deleted.
9805 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9806 by FONTP.
9807 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9808 (set_lface_from_font_name): Delete it.
9809 (set_lface_from_font): Renamed from
9810 set_lface_from_font_and_fontset. Caller changed. Don't set
9811 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9812 for face.
9813 (merge_face_vectors): Copy font-spec if necessary.
9814 Clear properties of the font-spec if necessary.
9815 (merge_face_ref): Clear properties of the font-spec if necessary.
9816 (Finternal_set_lisp_face_attribute): Likewise.
9817 (set_font_frame_param): Use font_load_for_lface to load a
9818 font-object, and call Fmodify_frame_parameters with it.
9819 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9820 font name by Ffont_xlfd_name.
9821 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9822 QCslant, and QCwidth.
9823 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9824 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9825 Compare fonts by EQ.
9826 (lookup_non_ascii_face): Deleted.
9827 (face_for_font): The 2nd argument changed.
9828 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9829 Check atomic font properties by case insensitive.
9830 (realize_non_ascii_face): Set face->overstrike correctly.
9831 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9832 (dump_realized_face): Get font name from
9833 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9834
9835 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9836 conditionals. Don't check enable_font_backend. Delete all codes
9837 used only when USE_FONT_BACKEND is not defined.
9838 (xic_create_xfontset): Original code deleted and renamed from
9839 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9840 (x_make_gc): Don't set GCFont in GCs.
9841 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9842 opened by "fixed".
9843 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9844 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9845 get_font_repertory_func.
9846
9847 * xfont.c: Include <stdlib.h> and "ccl.h".
9848 (struct xfont_info): New structure.
9849 (xfont_query_font): Deleted.
9850 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9851 moved from xterm.c.
9852 (xfont_driver): Adjusted for the change of struct font_driver.
9853 (compare_font_names): New function.
9854 (xfont_list_pattern): Sort font names case insensitively. Make
9855 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9856 (xfont_list): Return a list, not vector.
9857 (xfont_match): If the font doesn't have QCname property, generate
9858 a name from the other font properties.
9859 (xfont_open): Return a font-object. Adjusted for the change of
9860 struct font. Get underline_thickness and underline_position from
9861 font property. Don't update dpyinfo->smallest_font_height and
9862 dpyinfo->smallest_char_width.
9863 (xfont_close): Don't free struct font.
9864 (xfont_prepare_face): Adjusted for the change of struct font.
9865 (xfont_done_face): Deleted.
9866 (xfont_has_char): Adjusted for the change of struct font.
9867 (xfont_encode_char, xfont_draw): Likewise.
9868 (xfont_check): New function.
9869
9870 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9871 callback function.
9872 (xftfont_match): Adjusted for the format change of font-entity.
9873 (xftfont_open): Adjusted for the format change of font-entity and
9874 font-object. Adjusted for the change of struct font. Return a
9875 font-object. Don't update dpyinfo->smallest_font_height and
9876 dpyinfo->smallest_char_width.
9877 (xftfont_close): Block input while calling XftFontClose.
9878 (xftfont_prepare_face): Don't block input while calling
9879 xftfont_get_colors. Adjusted for the change of struct font.
9880 (xftfont_shape): Return value of error case fixed.
9881
9882 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9883
9884 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9885 conditionals.
9886 (FONT_WIDTH): Return (f)->max_width.
9887 (struct x_display_info): Delete member `font'.
9888 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9889 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9890 (struct x_output): Change type of `font' to `struct font *'.
9891
9892 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9893 conditionals. Don't check enable_font_backend. Delete all codes
9894 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9895 (x_per_char_metric, x_encode_char): Deleted.
9896 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9897 (x_compute_glyph_string_overhangs): Adjusted for the change of
9898 `struct face'.
9899 (x_draw_glyph_string_foreground)
9900 (x_draw_composite_glyph_string_foreground): Likewise.
9901 (x_draw_glyph_string): Likewise. Use font->underline_position and
9902 font->underline_thickness.
9903 (x_new_font): Renamed from x_new_fontset2.
9904 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9905 (x_check_font): Call `check' method of a font driver.
9906 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9907 (x_query_font, x_get_font_repertory): Deleted.
9908 (x_find_ccl_program): Renamed and moved to xfont.c.
9909 (x_redisplay_interface): Adjusted for the change of `struct
9910 redisplay_interface'.
9911
9912 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9913 conditionals. Don't check enable_font_backend. Delete all codes
9914 used only when USE_FONT_BACKEND is not defined. Surround non-used
9915 code by "#ifdef OLD_FONT" and "endif".
9916 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9917
9918 * w32font.h (struct w32font_info): New member.
9919 (FONT_COMPAT): New macro.
9920 (w32font_open_internal): Prototype adjusted.
9921
9922 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9923 OLD_FONT" and "endif".
9924
9925 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9926 conditionals. Don't check enable_font_backend. Delete all codes
9927 used only when USE_FONT_BACKEND is not defined.
9928 (w32font_open): Return a font-object. Make a font-object by
9929 font_make_object. Adjusted for the change of struct w32font_info.
9930 (w32font_close): Don't free struct font. Adjusted for the change
9931 of struct w32font_info.
9932 (w32font_encode_char, w32font_text_extents, w32font_draw):
9933 Adjusted for the change of struct w32font_info.
9934 (w32font_draw): Likewise.
9935 (w32font_list_internal): Return a list, not vector.
9936 (w32font_open_internal): Change the 4th arg to font-object.
9937 Adjusted for the change of struct w32font_info and font-object format.
9938 (add_font_name_to_list): Don't downcase names.
9939 (w32_enumfont_pattern_entity): Make a font-entity by
9940 font_make_entity. Adjusted for the format change of font-entity.
9941 Use FONT_SET_STYLE to set a style-related font property. If a
9942 font is scalable, set avgwidth property to 0. Set font-entity
9943 property by font_put_extra.
9944 (font_matches_spec): Adjusted for the format change of font-entity.
9945 (w32_weight_table, w32_decode_weight): New variables.
9946 (w32_encode_weight): New function.
9947 (fill_in_logfont): Adjusted for the format change of font-spec.
9948 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9949 weight value.
9950 (w32font_driver): Adjusted for the change of struct font_driver.
9951
9952 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9953 conditionals. Don't check enable_font_backend. Surround non-used
9954 code by "#ifdef OLD_FONT" and "endif".
9955 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9956 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9957
9958 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9959 conditionals. Don't check enable_font_backend. Delete all codes
9960 used only when USE_FONT_BACKEND is not defined. Surround non-used
9961 code by "#ifdef OLD_FONT" and "endif".
9962
9963 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9964 (uniscribe_open): Return value changed to font-object.
9965 Adjusted for the format change of font-object.
9966 (uniscribe_otf_capability): Adjusted for the change of struct font.
9967 (add_opentype_font_name_to_list): Don't downcase names.
9968 (uniscribe_font_driver): Adjusted for the change of struct
9969 font_driver.
9970
99712008-05-13 Chong Yidong <cyd@stupidchicken.com>
9972
9973 * dispnew.c (update_frame_1): Check if tty output is still valid
9974 before flushing it.
9975
99762008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9977
9978 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9979 to Gtk+ menus.
9980
99812008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9982
9983 * dired.c (file_name_completion): Tweak the code so as to always do it
9984 in a single pass. Tighten the scope of some variables.
9985
9986 * dired.c (Qdefault_directory): New var.
9987 (file_name_completion): Use it instead of Fexpand_file_name.
9988 (syms_of_dired): Initialize it.
9989
99902008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9991
9992 * fileio.c (double_dollars): Remove dead code.
9993
99942008-05-10 Eli Zaretskii <eliz@gnu.org>
9995
9996 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9997 Mention w32-get-true-file-attributes in doc string.
9998
9999 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10000
100012008-05-09 Glenn Morris <rgm@gnu.org>
10002
10003 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10004 2008-04-23.
10005
100062008-05-09 Eli Zaretskii <eliz@gnu.org>
10007
10008 Support for reporting owner and group of each file on MS-Windows:
10009 * dired.c (stat_uname, stat_gname): New functions, with special
10010 implementation for w32.
10011 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10012
10013 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10014 (dflt_group_name): New static variable.
10015 (dflt_group): Rename from the_group.
10016 (init_user_info): Init dflt_group fields. Get user's group name
10017 from LookupAccountSid.
10018 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10019 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10020 New initialization states.
10021 (globals_of_w32): Initialize them to zero. Initialize the default
10022 group name to "None".
10023 (GetFileSecurity_Name): New global var, the name of the function
10024 to call for GetFileSecurity.
10025 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10026 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10027 (get_file_security, get_security_descriptor_owner)
10028 (get_security_descriptor_group, is_valid_sid)
10029 (get_file_security_desc, get_rid, get_name_and_id)
10030 (get_file_owner_and_group): New functions.
10031 (stat): Use get_file_security_desc and get_file_owner_and_group to
10032 report the owner and primary group of each file. Don't ignore the
10033 high 32 bits of file's size, now that st_size is 64-bit wide.
10034 Fix test when to get true file attributes.
10035 (init_user_info): Use get_rid instead of equivalent inline code.
10036 (fstat): Don't ignore the high 32 bits of file's size.
10037
100382008-05-09 Chong Yidong <cyd@stupidchicken.com>
10039
10040 * image.c (png_load): Use correct bit-depth for setting background
10041 color.
10042
100432008-05-08 Eli Zaretskii <eliz@gnu.org>
10044
10045 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10046 epa-hook.elc.
10047
100482008-05-08 Juanma Barranquero <lekktu@gmail.com>
10049
10050 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10051
100522008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10053
10054 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10055 because the original parameters are in pure storage now.
10056 (mac_window): Remove unused params. Update callers.
10057
100582008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10059
10060 * lread.c (substitute_object_recurse): Use lower-level primitives.
10061 Don't signal errors when traversing sub-char-tables.
10062 Don't loop over all the possible characters when traversing char-tables.
10063
10064 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10065 just like we do in print.c.
10066
100672008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10068
10069 * minibuf.c (Ftry_completion): Remove code left over from when we used
10070 scmp instead of Fcompare_strings.
10071
100722008-05-04 Juanma Barranquero <lekktu@gmail.com>
10073
10074 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10075
100762008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10077
10078 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10079 Create bitmap context in native byte order.
10080
10081 * macterm.c (XDrawLine)
10082 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10083 context in native byte order.
10084
100852008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10086
10087 * config.in: Regenerate.
10088
10089 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10090 New definitions for Image I/O support.
10091 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10092 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10093 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10094 (mac_data_provider_release_data, image_load_image_io)
10095 [USE_MAC_IMAGE_IO]: New functions.
10096 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10097 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10098 (init_image_func_pointer) [MAC_OSX]: Remove function.
10099 (image_load_quartz2d) [MAC_OSX]: Check availability of
10100 CGImageCreateWithPNGDataProvider at compile time.
10101 Use lowercase `false' for boolean constant.
10102 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10103 Use image_load_image_io.
10104 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10105 Don't check MyCGImageCreateWithPNGDataProvider.
10106 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10107 Don't call init_image_func_pointer.
10108
10109 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10110
10111 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10112 Make variable non-static.
10113 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10114 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10115
10116 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10117 (RED_FROM_ULONG): Mask off higher bits.
10118 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10119
10120 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10121 Include AvailabilityMacros.h.
10122 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10123 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10124
101252008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10126
10127 * chartab.c (Fset_char_table_range): If range is t, really set all
10128 chars to that value.
10129
101302008-05-03 Eli Zaretskii <eliz@gnu.org>
10131
10132 * dired.c (Ffile_attributes): Don't allow the device number become
10133 negative.
10134
101352008-05-02 Daiki Ueno <ueno@unixuser.org>
10136
10137 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10138
101392008-05-02 Juri Linkov <juri@jurta.org>
10140
10141 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10142 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10143 DEFAULT argument as a list of default values in docstrings.
10144
101452008-05-01 Chong Yidong <cyd@stupidchicken.com>
10146
10147 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10148
101492008-05-01 Martin Rudalics <rudalics@gmx.at>
10150
10151 * dispnew.c (change_frame_size_1): Preserve small windows when
10152 shrinking frames by calling set_window_height|width with third
10153 arg 2.
10154
10155 * window.h (struct window): Replace field too_small_ok by field
10156 resize_proportionally.
10157
10158 * window.c (make_window): Initialize resize_proportionally.
10159 (enlarge_window): Temporarily set resize_proportionally to make
10160 sure that shrink_windows does scale the window proportionally.
10161 (shrink_windows): When window has resize_proportionally set try
10162 to shrink it proportionally by stealing from other windows.
10163 (struct saved_window, Fset_window_configuration)
10164 (compare_window_configurations): Handle resize_proportionally.
10165 (WINDOW_TOTAL_SIZE): New macro.
10166 (window_min_size, shrink_windows, size_window): Use it.
10167 (check_min_window_sizes): Remove. Invalid values of
10168 window-min-height|width are handled by window_min_size_2 now.
10169 (size_window, Fsplit_window, enlarge_window)
10170 (adjust_window_trailing_edge, grow_mini_window): Don't call
10171 check_min_window_sizes.
10172 (window_min_size_2, window_min_size_1, window_min_size):
10173 New argument safe_p for retrieving "safe" minimum sizes.
10174 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10175 (adjust_window_trailing_edge, grow_mini_window):
10176 Adjust arguments of window_min_size... functions.
10177 (shrink_windows): Argument min_size removed. New argument
10178 safe_p allows shrinking windows to their safe minimum sizes.
10179 Calculate minimum size and decide whether a window shall be
10180 deleted for each window individually.
10181 (size_window): When nodelete_p equals 2, tell shrink_windows to
10182 delete windows only if their new minimum size is no more safe.
10183 (shrink_window_lowest_first): Call window_min_size_1 to make
10184 sure to preserve modeline of bottom-most window when resizing
10185 the minibuffer.
10186 (Fset_window_configuration, Fcurrent_window_configuration)
10187 (compare_window_configurations): Do not handle
10188 window-min-height|width any more.
10189 (syms_of_window): Clarify window-min-height|width doc-strings.
10190
101912008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10192
10193 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10194 some more. Copy some of the code from Ftry_completions.
10195 Remove special case code that dates back to initial revision when the
10196 slash was only added when necessary and that can't trigger nowadays.
10197
101982008-04-27 Kenichi Handa <handa@m17n.org>
10199
10200 * font.c (font_prop_validate): Signal `error' instead of `font'.
10201
102022008-04-29 Jason Rumney <jasonr@gnu.org>
10203
10204 * w32fns.c (Fw32_battery_status): New defun.
10205 (syms_of_w32fns): Defsubr it.
10206
102072008-04-28 Andreas Schwab <schwab@suse.de>
10208
10209 * dired.c (file_name_completion): Fix another mixing of encoded
10210 and decoded names.
10211
102122008-04-28 Juanma Barranquero <lekktu@gmail.com>
10213
10214 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10215
102162008-04-27 Juanma Barranquero <lekktu@gmail.com>
10217
10218 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10219
102202008-04-27 Andreas Schwab <schwab@suse.de>
10221
10222 * dired.c (file_name_completion): Fix inappropriate mixing of
10223 encoded and decoded names.
10224
10225 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10226
10227 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10228
102292008-04-26 Eli Zaretskii <eliz@gnu.org>
10230
10231 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10232 2008-03-31, it's not needed anymore with `struct stat' definition
10233 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10234 for the same reasons.
10235
102362008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10237
10238 * m/sparc.h: Additional redefinitions for GNU/Linux.
10239
102402008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10241
10242 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10243 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10244 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10245 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10246 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10247 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10248 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10249 Likewise.
10250
10251 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10252 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10253 (mac_ax_number_of_characters): Add externs.
10254 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10255 [USE_MAC_TSM]: Likewise.
10256 (mac_handle_text_input_event) [MAC_OSX]:
10257 Handle kEventTextInputOffsetToPos for no active input area case.
10258 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10259 (mac_handle_document_access_event)
10260 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10261 (install_application_handler) [MAC_OSX]: Register handlers for
10262 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10263 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10264 Register mac_handle_document_access_event.
10265
10266 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10267 Make functions non-static.
10268
102692008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10270
10271 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10272 (read_file_name_completion_ignore_case, insert_default_directory)
10273 (Qdefault_directory): Move to minibuffer.el.
10274 (Fread_file_name): Call the new `read-file-name' instead.
10275
102762008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10277
10278 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10279 Make function non-static.
10280 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10281 Remove function.
10282 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10283 Move to mactoolbox.c.
10284 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10285
10286 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10287 (mac_rect_make): New macro.
10288
10289 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10290 instead of float.
10291 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10292 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10293 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10294 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10295 CGRectMake.
10296 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10297 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10298 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10299 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10300 instead of WindowRef in argument type.
10301 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10302 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10303 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10304 instead of DISPLAY. All uses changed.
10305 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10306 (x_calc_absolute_position): Simplify so as not to use
10307 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10308
10309 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10310 instead of WindowRef in argument type.
10311 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10312 [TARGET_API_MAC_CARBON]: Remove externs.
10313 (create_apple_event, mac_event_parameters_to_lisp)
10314 [TARGET_API_MAC_CARBON]: Add externs.
10315
10316 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10317 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10318 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10319 is clicked.
10320 (x_activate_menubar): Remove extern for saved_menu_event_location.
10321 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10322 Move from mac.c.
10323
103242008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10325
10326 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10327 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10328
103292008-04-23 Jason Rumney <jasonr@gnu.org>
10330
10331 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10332 attributes only for local files.
10333
10334 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10335 default to Qlocal.
10336
103372008-04-22 Juri Linkov <juri@jurta.org>
10338
10339 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10340 read-buffer-to-switch instead of using the letter "B".
10341
103422008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10343
10344 * fileio.c (Qdefault_directory): New variable.
10345 (Fread_file_name): Use it to pass `dir' to the completion functions.
10346
103472008-04-20 Chong Yidong <cyd@stupidchicken.com>
10348
10349 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10350
103512008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10352
10353 * keyboard.c (Vpre_help_message): Remove.
10354 (show_help_echo): Remove default C code.
10355
10356 * dired.c (directory_files_internal, file_name_completion):
10357 Only call ENCODE_FILE if the string is indeed decoded.
10358
103592008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10360
10361 * Makefile.in (TOOLKIT_DEFINES): Remove.
10362 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10363
103642008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10365
10366 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10367 (mactoolbox.o): New target.
10368
10369 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10370 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10371
10372 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10373 Use mac_set_frame_window_background instead of XSetWindowBackground.
10374 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10375 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10376 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10377 instead of SetWindowTitleWithCFString.
10378 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10379 Move function to mactoolbox.c.
10380 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10381 Use mac_set_window_modified instead of SetWindowModified.
10382 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10383 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10384 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10385 FrontNonFloatingWindow. Use mac_activate_window instead of
10386 ActivateWindow. Use mac_active_non_floating_window instead of
10387 ActiveNonFloatingWindow.
10388 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10389 Use mac_show_hourglass and mac_hide_hourglass.
10390 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10391 instead of GetGlobalMouse.
10392 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10393 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10394 Use mac_bring_window_to_front instead of BringToFront.
10395 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10396 mactoolbox.c.
10397 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10398 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10399 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10400 mactoolbox.c.
10401
10402 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10403 (XtPointer): Move typedef from macmenu.c.
10404 (enum button_type): Move enum from macmenu.c.
10405 (widget_value): Move typedef from macmenu.c.
10406 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10407 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10408 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10409 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10410 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10411 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10412 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10413 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10414 (Selection): Move typedef from macselect.c.
10415 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10416 macterm.c.
10417 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10418 (mac_is_window_collapsed, mac_bring_window_to_front)
10419 (mac_send_window_behind, mac_hide_window, mac_show_window)
10420 (mac_collapse_window, mac_front_non_floating_window)
10421 (mac_active_non_floating_window, mac_activate_window)
10422 (mac_move_window_structure, mac_move_window, mac_size_window)
10423 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10424
10425 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10426 (enum mac_menu_kind): Move enum to mactoolbox.c.
10427 (min_menu_id): Move variable to mactoolbox.c.
10428 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10429 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10430 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10431 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10432 [TARGET_API_MAC_CARBON]: Likewise.
10433 (XtPointer): Move typedef to macgui.h.
10434 (enum button_type): Move enum to macgui.h.
10435 (widget_value): Move typedef to macgui.h.
10436 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10437 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10438 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10439 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10440 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10441 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10442 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10443 (popup_activated_flag): Make variable non-static.
10444 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10445 (add_menu_item, fill_menu, dispose_menus):
10446 Move functions to mactoolbox.c.
10447 (restore_show_help_function, menu_target_item_handler)
10448 (install_menu_target_item_handler, mac_handle_dialog_event)
10449 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10450 [TARGET_API_MAC_CARBON]: Likewise.
10451 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10452 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10453 (find_and_call_menu_selection, name_is_separator): Make function
10454 non-static.
10455 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10456 to mactoolbox.c.
10457 (set_frame_menubar): Don't call install_menu_quit_handler.
10458 (menu_item_selection): New variable.
10459 (mac_menu_show): Use create_and_show_popup_menu.
10460 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10461 selection but set variable menu_item_selection. All uses changed.
10462 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10463 Call install_menu_quit_handler. Move to mactoolbox.c.
10464
10465 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10466 (Selection): Move typedef to macgui.h.
10467 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10468 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10469 Make variables non-static.
10470 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10471 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10472 Make functions non-static.
10473 (Vmac_service_selection) [MAC_OSX]: Likewise.
10474 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10475 (mac_valid_selection_target_p, mac_clear_selection)
10476 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10477 (mac_put_selection_value, mac_selection_has_target_p)
10478 (mac_get_selection_value, mac_get_selection_target_list)
10479 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10480 Move functions to mactoolbox.c.
10481 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10482 Likewise.
10483 (copy_scrap_flavor_data, mac_handle_service_event)
10484 (install_service_handler) [MAC_OSX]: Likewise.
10485 (syms_of_macselect) <Vmac_dnd_known_types>:
10486 Use mac_dnd_default_known_types.
10487
10488 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10489 Move to mactoolbox.c.
10490 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10491 (Fx_selection_owner_p): Add EXFUN.
10492 (install_window_handler, remove_window_handler, XSetWindowBackground):
10493 Remove externs.
10494 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10495 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10496 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10497 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10498 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10499 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10500 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10501 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10502 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10503 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10504 (mac_valid_selection_target_p, mac_clear_selection)
10505 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10506 (mac_put_selection_value, mac_selection_has_target_p)
10507 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10508 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10509 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10510 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10511 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10512 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10513 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10514 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10515 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10516
10517 * mactoolbox.c: New file.
10518
105192008-04-18 Jason Rumney <jasonr@gnu.org>
10520
10521 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10522
105232008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10524
10525 * character.c (Fmultibyte_char_to_unibyte):
10526 Return latin1 chars unchanged.
10527
10528 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10529 relocated if it points to `name'.
10530
105312008-04-17 Kenichi Handa <handa@m17n.org>
10532
10533 * data.c (Faset): Allow setting a multibyte character in an
10534 ASCII-only unibyte string.
10535
10536 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10537
105382008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10539
10540 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10541 done in config.h.
10542
105432008-04-16 Juanma Barranquero <lekktu@gmail.com>
10544
10545 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10546 (Fchar_direction): Add usage in the docstring.
10547
105482008-04-15 Chong Yidong <cyd@stupidchicken.com>
10549
10550 * keyboard.c (read_key_sequence): Remove always-true checks.
10551
105522008-04-14 Jason Rumney <jasonr@gnu.org>
10553
10554 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10555 compatibility struct, for better underline positioning.
10556
105572008-04-13 David Hansen <david.hansen@gmx.net>
10558
10559 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10560 string.
10561
105622008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10563
10564 * m/hp800.h (XUINT, XSET): Remove.
10565
105662008-04-12 Juanma Barranquero <lekktu@gmail.com>
10567
10568 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10569 previous change.
10570
105712008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10572
10573 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10574 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10575
105762008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10577
10578 * keymap.h (map_keymap_canonical): Declare.
10579 * xmenu.c (single_keymap_panes): Use it.
10580
105812008-04-11 Glenn Morris <rgm@gnu.org>
10582
10583 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10584 set the target's value to that of the alias.
10585
105862008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10587
10588 * term.c (set_tty_color_mode): Left over typo.
10589
105902008-04-10 Michael Albinus <michael.albinus@gmx.de>
10591
10592 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10593 only after check for file name handler functions. Signal, when
10594 native functionality is not supported.
10595 (syms_of_fileio): Declare it unconditionally.
10596
105972008-04-10 Jason Rumney <jasonr@gnu.org>
10598
10599 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10600 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10601
10602 * w32.c (logon_network_drive): Also logon to remote drives that
10603 are mapped to drive letters.
10604
106052008-04-10 Glenn Morris <rgm@gnu.org>
10606
10607 * xdisp.c (truncate-partial-width-windows): Doc fix.
10608
106092008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10610
10611 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10612 Move functions to minibuffer.el.
10613 (syms_of_fileio): Don't declare them.
10614
106152008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10616
10617 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10618 (syms_of_minibuf): Remove its initialization.
10619
10620 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10621
106222008-04-09 Juanma Barranquero <lekktu@gmail.com>
10623
10624 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10625
106262008-04-09 Jason Rumney <jasonr@gnu.org>
10627
10628 * makefile.w32-in (distclean): Delete makefile too.
10629 (maintainer-clean): New target.
10630
10631 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10632
10633 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10634 for new font backend and composite cases.
10635
106362008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10637
10638 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10639 Most of the code moved to run_timers.
10640 (do_pending_atimers): Call run_timers.
10641 (run_timers): New function.
10642
10643 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10644 run atimers.
10645
10646 * process.c (wait_reading_process_output): The same as above.
10647
106482008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10649
10650 * minibuf.c (last_exact_completion): Remove variable.
10651 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10652 (complete_and_exit_1, complete_and_exit_2)
10653 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10654 (Fdisplay_completion_list, display_completion_list_1)
10655 (Fminibuffer_completion_help, Fself_insert_and_exit)
10656 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10657 minibuffer.el.
10658 (syms_of_minibuf): Remove corresponding initializations.
10659
10660 * keyboard.c (Qdeactivate_mark): New var.
10661 (command_loop_1): Use it to call `deactivate-mark'.
10662 (syms_of_keyboard): Initialize it.
10663
10664 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10665 to another frame.
10666 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10667 Don't call set_tty_color_mode.
10668 (store_frame_param): Reset previous_frame rather than call
10669 set_tty_color_mode.
10670 * term.c (set_tty_color_mode): Rewrite.
10671 * dispextern.h (set_tty_color_mode): New type.
10672 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10673
106742008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10675
10676 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10677 for generic chars, which do not exist any more in emacs-unicode.
10678
106792008-04-08 Michael Albinus <michael.albinus@gmx.de>
10680
10681 * coding.c (detect_coding_emacs_mule)
10682 (Ffind_operation_coding_system): Fix typo.
10683
106842008-04-08 Jason Rumney <jasonr@gnu.org>
10685
10686 * w32uniscribe.c (SNAME): Extract only symbol name.
10687
10688 * w32font.h (struct w32_metric_cache): New struct.
10689 (w32font_info): Use it.
10690 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10691 (CACHE_BLOCKSIZE): New constants.
10692
10693 * w32font.c (Qja, Qko, Qzh): New symbols.
10694 (syms_of_w32font): Initialise them.
10695 (font_matches_spec): Use them to filter by language.
10696 (recompute_cached_metrics): Remove function.
10697 (compute_metrics, clear_cached_metrics): New functions.
10698 (w32font_encode_char): Use them to manage metric cache.
10699 (w32font_text_extents): Cache metrics for all glyphs on demand.
10700 Delay converting glyph indices to WORD until needed.
10701 (w32font_open_internal): Initialize metric cache to empty.
10702 (registry_to_w32_charset): Charset should always be a symbol.
10703 (fill_in_logfont, list_all_matching_fonts): Family should
10704 always be a symbol.
10705
107062008-04-06 Jason Rumney <jasonr@gnu.org>
10707
10708 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10709 Give up if glyph indices not supported. Use uniscribe obtained
10710 ABC widths for individual metrics. Map glyph clusters back to
10711 characters using fClusterStart flag. Return number of glyphs
10712 produced, not chars processed.
10713 (uniscribe_shape): Map char at FROM to current glyph.
10714
107152008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10716
10717 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10718 Use SetMenuItemHierarchicalMenu.
10719
107202008-04-05 Jason Rumney <jasonr@gnu.org>
10721
10722 * image.c (pbm_load): Allow color values up to 65535.
10723 Throw an error if max_color_idx is outside the supported range.
10724 Report an error when image size is invalid.
10725 Read two bytes at a time when raw images have max_color_idx above 255.
10726
107272008-04-05 Eli Zaretskii <eliz@gnu.org>
10728
10729 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10730 cFileName a file name that includes `?' characters, use the 8+3
10731 alias in cAlternateFileName instead.
10732
107332008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10734
10735 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10736 append "CCL: Quitted" when the CCL program is quitted.
10737 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10738
10739 * ccl.h (struct ccl_program): New member quit_silently.
10740
107412008-04-05 Chong Yidong <cyd@stupidchicken.com>
10742
10743 * search.c (compile_pattern_1): Treat non-nil and non-string of
10744 search-spaces-regexp as nil.
10745
10746 * minibuf.c (Fassoc_string): Tweak docstring.
10747
107482008-04-05 Eli Zaretskii <eliz@gnu.org>
10749
10750 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10751 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10752 2008-03-14 to force inode be positive.
10753
10754 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10755 _S_* ones, since we now use our own sys/stat.h.
10756 (stat, fstat): Don't mangle the inode number.
10757 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10758
107592008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10760
10761 * frame.h (struct frame): Give one more bit to `visible' since we use
10762 values larger than 1 to indicate obscured frames on ttys.
10763
10764 * keymap.c (Qkeymap_canonicalize): New var.
10765 (Fmap_keymap_internal): New fun.
10766 (describe_map): Use keymap-canonicalize.
10767
10768 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10769 (Fundo_boundary): Set them.
10770 (syms_of_undo): Initialize them.
10771 (record_point): Use them instead of last_point_position*.
10772 (last_undo_buffer): Change type.
10773
107742008-04-04 Jason Rumney <jasonr@gnu.org>
10775
10776 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10777 (recompute_cached_metrics): Don't set ascent and descent per char.
10778
10779 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10780 (uniscribe_check_otf): Add GC protection before consing.
10781 Rearrange loop for counting features.
10782
107832008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10784
10785 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10786 buffer with byte-size of source buffer.
10787
107882008-04-03 Chong Yidong <cyd@stupidchicken.com>
10789
10790 * callint.c (Fcall_interactively): Handle temporary region even
10791 when shift-select-mode is off.
10792
107932008-04-03 Jason Rumney <jasonr@gnu.org>
10794
10795 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10796
107972008-04-03 Kenichi Handa <handa@m17n.org>
10798
10799 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10800 (CATEGORY_MASK_UTF_16): Likewise.
10801 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10802 binary file.
10803 (detect_coding): Add null-byte detection for a binary file.
10804 (detect_coding_system): Likewise.
10805
108062008-04-03 Jason Rumney <jasonr@gnu.org>
10807
10808 * w32uniscribe.c: New file.
10809
10810 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10811
10812 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10813
10814 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10815 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10816 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10817 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10818 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10819 (Qphonetic): New symbols.
10820 (syms_of_w32font): Initialize them.
10821 (font_supported_scripts): Use them.
10822 (w32font_list_family): List all charsets.
10823 (w32font_text_extents, recompute_cached_metrics): Fix metric
10824 calculations.
10825 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10826 Give opentype fonts their own format.
10827 (font_matches_spec): New arguments backend and logfont.
10828 Handle :otf spec for uniscribe backend.
10829 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10830 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10831
10832 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10833 font backend.
10834 (globals_of_w32fns): Initialize uniscribe font backend.
10835
10836 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10837 dependencies.
10838 (w32uniscribe.$(O)): New file to build.
10839 (FONT_OBJ): Include w32uniscribe.$(O).
10840 (LIBS): Add uniscribe libraries.
10841
10842 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10843
108442008-04-02 Chong Yidong <cyd@stupidchicken.com>
10845
10846 * callint.c (Vshift_select_mode): New var.
10847 (Finteractive): Document new ^ spec.
10848 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10849 is present.
10850
10851 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10852 (command_loop_1): Avoid running the direct display versions of
10853 forward-char and backward-char if shift-selection may occur.
10854 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10855 shift-translation takes place.
10856
10857 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10858 avoid clobbering by define-minor-mode.
10859
10860 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10861 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10862
10863 * syntax.c (Fforward_word): Add ^ interactive spec.
10864
10865 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10866 (Fscroll_right): Add ^ interactive spec.
10867
108682008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10869
10870 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10871
10872 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10873
10874 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10875
108762008-03-31 Juri Linkov <juri@jurta.org>
10877
10878 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10879
108802008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10881
10882 * gtkutil.c (xg_set_geometry): Fix indentation.
10883 (xg_resize_outer_widget): Remove.
10884 (x_wm_size_hint_off): Fix indentation.
10885 (xg_frame_set_char_size): Call flush_and_sync after
10886 gtk_window_resize.
10887 (x_wm_set_size_hint): Pass NULL as geometry window to
10888 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10889 Add menu bar and tool bar height to base height.
10890 (xg_update_frame_menubar, free_frame_menubar)
10891 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10892 (update_frame_tool_bar, free_frame_tool_bar):
10893 Change xg_resize_outer_widget to xg_frame_set_char_size.
10894
108952008-03-30 Michael Albinus <michael.albinus@gmx.de>
10896
10897 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10898 (Fdbus_call_method): New parameter TIMEOUT.
10899 (dbus-send-signal): Optimize UNGCPRO call.
10900
109012008-03-29 Juri Linkov <juri@jurta.org>
10902
10903 * window.c (Fdisplay_buffer): Move call to
10904 Vsplit_window_preferred_function out of conditions that check
10905 if window is eligible for vertical splitting.
10906 When Vsplit_window_preferred_function is non-nil, call it and use
10907 its non-nil return value as window. Otherwise, continue doing
10908 vertical splitting using Fsplit_window with arg horflag=nil.
10909 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10910 default value from `split-window' to nil.
10911
109122008-03-29 Juri Linkov <juri@jurta.org>
10913
10914 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10915 for interactive code letters 'b' and 'B'.
10916
109172008-03-29 Eli Zaretskii <eliz@gnu.org>
10918
10919 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10920 multibyte string.
10921
109222008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10923
10924 * keyboard.c (pending_funcalls): New var.
10925 (timer_check): Run it.
10926 (syms_of_keyboard): Initialize it.
10927 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10928 (Vdelete_terminal_functions): New vars.
10929 (syms_of_terminal): Initialize them.
10930 (Fdelete_terminal): Run delete-terminal-functions.
10931 * xdisp.c (safe_eval): Rewrite.
10932 (safe_call2): New fun.
10933 * frame.c (Qdelete_frame_functions): New var.
10934 (syms_of_frame): Initialize it.
10935 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10936 * lisp.h (safe_call2, pending_funcalls): Declare.
10937
109382008-03-28 Andreas Schwab <schwab@suse.de>
10939
10940 * indent.c (Fmove_to_column): Move declaration before statements.
10941
109422008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10943
10944 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10945 (struct frame): Use bit fields for boolean vars.
10946
10947 * process.c (server_accept_connection): Simplify naming.
10948 (emacs_get_tty_pgrp): Use SDATA.
10949
10950 * coding.c (decode_coding_object): Fix last change.
10951
109522008-03-27 Jason Rumney <jasonr@gnu.org>
10953
10954 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10955
109562008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10957
10958 * charset.c (Fdefine_charset_internal): Change the way of
10959 registering charsets in Vcharset_order_list.
10960 (syms_of_charset): Make the charset `eight-bit' supplementary.
10961
109622008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10963
10964 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10965 operations, to avoid having the difference between pointers
10966 overflow.
10967
109682008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10969
10970 * indent.c (check_display_width): New fun.
10971 (scan_for_column): Use it.
10972
10973 * data.c (syms_of_data): Mark most-positive-fixnum and
10974 most-negative-fixnum as constants.
10975
10976 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10977
10978 * indent.c (scan_for_column): Extract from current_column_1.
10979 Merge with the same code from Fmove_to_column.
10980 (current_column_1, Fmove_to_column): Use it.
10981
109822008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10983
10984 * keymap.c (map_keymap_internal): New fun.
10985 (map_keymap): Use it.
10986 (Fmap_keymap_internal): New fun.
10987 (Fmap_keymap): Remove left-out test from before make_save_value.
10988
10989 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10990
10991 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10992 Use XCAR/XCDR.
10993
10994 * process.h (struct Lisp_Process): Remove filter_multibyte.
10995 * process.c (QCfilter_multibyte): Remove.
10996 (setup_process_coding_systems): Don't use filter_multibyte.
10997 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10998 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10999 (Fset_process_filter_multibyte): Change the coding-system to
11000 approximate the previous behavior.
11001 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11002 coding-system.
11003
11004 * coding.c (decode_coding_object): When not decoding into a buffer,
11005 obey the coding system's preference of (uni|multi)byte.
11006
110072008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11008
11009 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11010 every char is changed and has a different byte-length.
11011 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11012 Fix int -> EMACS_INT.
11013
110142008-03-23 David Hansen <david.hansen@gmx.net>
11015
11016 * dbusbind.c (xd_read_message): Remove extra copying of message
11017 strings. Check for NULL `interface' or `member'.
11018
110192008-03-22 Eli Zaretskii <eliz@gnu.org>
11020
11021 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11022 cFileName a file name that includes `?' characters, use the 8+3
11023 alias in cAlternateFileName instead.
11024
110252008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11026
11027 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11028
110292008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11030
11031 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11032 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11033 work on current_buffer only instead (that was already the case
11034 for some of the code anyway).
11035 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11036 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11037 (SET_PT, SET_PT_BOTH): Adjust.
11038 * intervals.h (set_point, temp_set_point, set_point_both)
11039 (temp_set_point_both): Remove redundant declarations.
11040
110412008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11042
11043 * fileio.c (Finsert_file_contents):
11044 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11045 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11046 when buffer != current_buffer anyway.
11047
110482008-03-20 Andreas Schwab <schwab@suse.de>
11049
11050 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11051 as default.
11052
110532008-03-19 Jason Rumney <jasonr@gnu.org>
11054
11055 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11056 (syms_of_w32fns): Initialize them.
11057 (HOURGLASS_ID): New constant.
11058 (x_window_to_frame): Don't check hourglass_window.
11059 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11060 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11061 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11062 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11063 Only change the cursor if hourglass is not active.
11064 (Fx_create_frame): Initialize frame's current_cursor.
11065 (hourglass_atimer): Remove.
11066 (hourglass_started): New function.
11067 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11068 (show_hourglass): Adapt to w32, changing argument to frame.
11069
11070 * w32term.h (struct w32_output): Remove hourglass_window.
11071 Add current_cursor.
11072
11073 * eval.c (call_debugger, Fsignal):
11074 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11075 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11076 (Fexecute_extended_command, cancel_hourglass_unwind):
11077 * minibuf.c (read_minibuf):
11078 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11079
110802008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11081
11082 * window.c (run_funs): New fun.
11083 (run_window_configuration_change_hook): Use it to run the buffer-local
11084 and the global part of the hook.
11085
11086 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11087 (unwind_format_mode_line): Restore selected window.
11088 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11089
110902008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11091
11092 * editfns.c (Fchar_equal): Check they are valid characters.
11093
11094 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11095
110962008-03-17 Andreas Schwab <schwab@suse.de>
11097
11098 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11099 against a charset.
11100
11101 * lisp.h (Fbuffer_list): Declare.
11102
111032008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11104
aac0c6e3
MR
11105 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11106 handlebox_widget is != 0.
11107
111082008-03-16 Juri Linkov <juri@jurta.org>
11109
11110 * callint.c (Fcall_interactively): For interactive code letters
11111 'b' and 'B' put the buffer list into the list of default "future"
11112 values of the minibuffer.
11113
111142008-03-16 Andreas Schwab <schwab@suse.de>
11115
11116 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11117 modifiers.
11118
11119 * regex.c (re_match_2_internal): Correct matching of a charset
11120 against latin-1 characters.
11121
111222008-03-16 Kenichi Handa <handa@m17n.org>
11123
11124 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11125 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11126 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11127 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11128 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11129 CHAR_STRING_ADVANCE.
11130 (produce_chars): Fix for the case that the source and the
11131 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11132 instead of CHAR_STRING_ADVANCE.
11133 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11134 STRING_CHAR_ADVANCE.
11135
111362008-03-15 Andreas Schwab <schwab@suse.de>
11137
11138 * regex.c (re_match_2_internal): Correct matching of eight bit
11139 characters in unibyte strings.
11140
111412008-03-15 Martin Rudalics <rudalics@gmx.at>
11142
11143 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11144 at end of range when it coincides with the end of the buffer.
11145
111462008-03-14 Eli Zaretskii <eliz@gnu.org>
11147
11148 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11149
11150 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11151
111522008-03-14 Jason Rumney <jasonr@gnu.org>
11153
11154 * editfns.c (initial_tz): New variable.
11155 (syms_of_editfns): Initialize it.
11156 (Fset_time_zone_rule): Set it when first called.
11157 Use it when TZSTRING is nil.
11158
11159 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11160 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11161 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11162 (globals_of_w32fns): Initialize them.
11163 (compute_tip_xy): Use them to position tooltips.
11164
111652008-03-14 Glenn Morris <rgm@gnu.org>
11166
11167 * emacs.c (main): Revert previous change.
11168 (standard_args): Revert -internal-script back to -scriptload,
11169 and remove the long-option form.
11170
111712008-03-13 Glenn Morris <rgm@gnu.org>
11172
11173 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11174 Remove option -enable-font-backend.
11175
111762008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11177
11178 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11179
111802008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11181
11182 * xterm.c (x_connection_closed): For GTK: If this is the last
11183 terminal just exit without closing the display.
11184
111852008-03-11 Jason Rumney <jasonr@gnu.org>
11186
11187 * w32font.c (w32font_full_name): Use floor to round.
11188
f0131492 111892008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11190
11191 * sound.c (alsa_configure): Declare vol at beginning of block.
11192
11193 * fontset.c (Ffontset_info): Remove extra semicolon.
11194
111952008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11196
11197 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11198 size of resulting string.
11199
112002008-03-10 Jason Rumney <jasonr@gnu.org>
11201
11202 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11203
112042008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11205
11206 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11207 Don't pretend as if characters with display property haven't been
11208 consumed for string-replacing-string case.
11209
112102008-03-08 Kim F. Storm <storm@cua.dk>
11211
11212 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11213 (get_next_display_element, next_element_from_string)
11214 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11215
112162008-03-08 Andreas Schwab <schwab@suse.de>
11217
11218 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11219
112202008-03-06 Jason Rumney <jasonr@gnu.org>
11221
11222 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11223 when charset not specified. Only translate ANSI to unicode when
11224 font_type is truetype.
11225 (w32font_coverage_ok): New function.
11226 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11227
112282008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11229
11230 * lread.c (Fread_char): Resolve modifiers.
11231 (Fread_char_exclusive): Likewise.
11232
11233 * character.c (char_resolve_modifier_mask): New function.
11234 (char_string): Use char_resolve_modifier_mask.
11235 (Fchar_resolve_modifiers): New function.
11236 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11237 function.
11238
112392008-03-04 Jason Rumney <jasonr@gnu.org>
11240
11241 * makefile.w32-in: Always include w32font.c in the build.
11242 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11243
112442008-03-04 Andreas Schwab <schwab@suse.de>
11245
11246 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11247 (versionclean): Likewise.
11248
112492008-03-04 Juanma Barranquero <lekktu@gmail.com>
11250
11251 * .cvsignore: Add oo.
11252
112532008-03-03 Andreas Schwab <schwab@suse.de>
11254
11255 * coding.c (decode_coding_object): Inhibit gap shrinking while
11256 decoding in place.
11257
112582008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11259
11260 * w32term.c: Remove unused include "gnu.h".
11261 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11262
11263 * gnu.h: Rename to ...
11264 * emacs-icon.h: ... this.
11265 * xterm.c: Use emacs-icon.h instead of gnu.h.
11266 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11267
112682008-03-03 Juanma Barranquero <lekktu@gmail.com>
11269
11270 * w32font.c: Include math.h.
11271
112722008-03-03 Jason Rumney <jasonr@gnu.org>
11273
11274 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11275 Compute options separately.
11276 (w32font_open_internal): Set glyph_idx before caching metrics.
11277
11278 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11279 Define if system headers don't.
11280 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11281 (w32font_encode_char): Don't declare here.
11282
11283 * w32font.c (Quniscribe, QCformat): New symbols.
11284 (syms_of_w32font): Define them.
11285 (w32font_has_char): Indicate uncertainty.
11286 (w32font_encode_char): Encode as glyph point. Make static.
11287 (recompute_cached_metrics): New function.
11288 (w32font_open_internal): Use it. Set font to use glyph points
11289 initially. Set format based on type of font.
11290 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11291 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11292 on it. Set format based on information available here.
11293 (add_font_entity_to_list): Identify backend based on opentype_only.
11294
112952008-03-02 Andreas Schwab <schwab@suse.de>
11296
11297 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11298
11299 * coding.c (decode_coding_big5, produce_chars):
11300 Fix typos in last change.
11301
113022008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11303
11304 * gnu.h: New icon.
11305
113062008-03-02 Kenichi Handa <handa@m17n.org>
11307
11308 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11309 `dos', don't decode '\r' if that is the last in the source.
11310 (decode_coding_utf_16, decode_coding_emacs_mule)
11311 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11312 (decode_coding_raw_text, decode_coding_charset): Likewise.
11313 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11314
113152008-03-01 Jason Rumney <jasonr@gnu.org>
11316
11317 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11318
113192008-03-01 Kim F. Storm <storm@cua.dk>
11320
11321 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11322
113232008-03-01 Jason Rumney <jasonr@gnu.org>
11324
11325 * w32font.c (w32font_full_name): New function.
11326 (w32font_open_internal): Use it.
11327
113282008-03-01 Kim F. Storm <storm@cua.dk>
11329
11330 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11331
113322008-03-01 Jason Rumney <jasonr@gnu.org>
11333
11334 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11335
113362008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11337
11338 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11339 xg_frame_resized when the event is for the edit widget.
11340
11341 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11342
11343 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11344 set_char_size.
11345 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11346 operations on widgets here. Just set frame size if needed.
11347 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11348 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11349 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11350 the whole frame.
11351 (xg_create_tool_bar): Move attachment of the tool bar to
11352 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11353 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11354
113552008-03-01 Jason Rumney <jasonr@gnu.org>
11356
11357 * w32fns.c (w32_msg_pump): Disable debug code.
11358
113592008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11360
11361 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11362
113632008-02-29 Chong Yidong <cyd@stupidchicken.com>
11364
11365 * xdisp.c (next_overlay_string): Don't set
11366 overlay_strings_at_end_processed_p if we're currently reading from
11367 a display string.
11368
113692008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11370
11371 * xdisp.c (get_overlay_strings_1): Fix typo.
11372
113732008-02-29 Chong Yidong <cyd@stupidchicken.com>
11374
11375 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11376
113772008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11378
11379 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11380
11381 * xdisp.c (display_mode_element): Cancel the previous change.
11382 (decode_mode_spec): Likewise.
11383 (handle_auto_composed_prop): Don't make composition if it->string
11384 is a string.
11385
113862008-02-27 Kim F. Storm <storm@cua.dk>
11387
11388 * lisp.h (GLYPH): Change type from int to struct with separate char
11389 and face_id members.
11390 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11391 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11392 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11393 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11394 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11395 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11396 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11397 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11398 handle new Lisp glyph code encoding, either an integer or a cons.
11399
11400 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11401 (GLYPH_ALIAS): Delete.
11402 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11403 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11404 (GLYPH_FROM_CHAR): Replace macro by ...
11405 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11406
11407 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11408 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11409 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11410 (GLYPH_INVALID_P): New macro.
11411 (spec_glyph_lookup_face): Update prototype.
11412
11413 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11414 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11415 new glyph code encoding.
11416 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11417 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11418
11419 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11420 Adapt to new glyph type and new glyph code encoding.
11421
11422 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11423
11424 * indent.c (current_column, current_column_1, Fmove_to_column)
11425 (compute_motion): Adapt to new glyph code encoding.
11426
11427 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11428
114292008-02-27 Chong Yidong <cyd@stupidchicken.com>
11430
11431 * process.c (wait_reading_process_output): Check for window
11432 changes caused by timers.
11433 Suggested by Johan Bockgård.
11434
114352008-02-27 Glenn Morris <rgm@gnu.org>
11436
11437 * emacs.c (USAGE1): Add `--disable-font-backend'.
11438
114392008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11440
11441 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11442 is made to the buffer.
11443
114442008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11445
11446 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11447 (face_at_string_position):
11448 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11449 (face_at_string_position):
11450 * xdisp.c (display_string, next_overlay_change):
11451 * buffer.h (overlays_at):
11452 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11453 Update callers.
11454
114552008-02-26 Chong Yidong <cyd@stupidchicken.com>
11456
11457 * editfns.c (Fformat): Doc fix.
11458
114592008-02-26 Juanma Barranquero <lekktu@gmail.com>
11460
11461 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11462 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11463 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11464
114652008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11466
11467 * buffer.c (Fbuffer_swap_text): New function.
11468 (syms_of_buffer): Defsubr it.
11469
114702008-02-25 Chong Yidong <cyd@stupidchicken.com>
11471
11472 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11473
114742008-02-25 Jason Rumney <jasonr@gnu.org>
11475
11476 * w32font.c (w32font_draw): Draw one character at a time when padding.
11477
114782008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11479
11480 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11481 Handle a nil arg. Use run_window_configuration_change_hook.
11482 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11483 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11484 Use run_window_configuration_change_hook.
11485
114862008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11487
11488 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11489 1-pixel width.
11490
114912008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11492
11493 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11494 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11495 if the glyph in the font is zero pixel with.
11496
11497 * dispextern.h (struct glyph_string): New member padding_p.
11498
11499 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11500
11501 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11502
11503 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11504
11505 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11506
11507 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11508
115092008-02-25 Jason Rumney <jasonr@gnu.org>
11510
11511 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11512
115132008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11514
11515 Allow fine-grained image-cache flushing.
11516 * dispextern.h (struct image): Add `dependencies' field.
11517 (clear_image_caches): Change arg to Lisp_Object.
11518 * image.c (make_image): Initialize `dependencies' field.
11519 (clear_image_cache): Change arg to allow fine-grained flushing.
11520 Perform the flush even if image-cache-eviction-delay is nil.
11521 (clear_image_caches): Change arg to Lisp_Object.
11522 (Fclear_image_cache): Expand meaning of the argument.
11523 (mark_image): Mark `dependencies' field.
11524 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11525 (lface_hash): Use XHASH rather than XFASTINT.
11526 (face_at_buffer_position): Fix int -> EMACS_INT position.
11527 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11528 (select_frame_for_redisplay): Remove code duplication.
11529 (redisplay_internal): Adapt arg to call to clear_image_caches.
11530
115312008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11532
11533 * s/vms4-0.h:
11534 * s/vms4-2.h:
11535 * s/vms4-4.h:
11536 * s/vms5-5.h: Remove, unused.
11537
11538 * s/irix5-2.h:
11539 * s/irix6-0.h:
11540 * s/riscos5.h:
11541 * s/mach-bsd4-3.h:
11542 * m/mips4.h: Remove files for obsolete systems.
11543
11544 * Makefile.in:
11545 * filelock.c:
11546 * unexmips.c:
11547 * m/hp9000s300.h:
11548 * m/iris4d.h:
11549 * s/aix3-1.h:
11550 * s/hpux.h:
11551 * s/msdos.h:
11552 * s/usg5-0.h:
11553 * s/usg5-2-2.h:
11554 * s/usg5-2.h:
11555 * s/usg5-3.h: Remove references to obsolete variables.
11556
11557 * s/irix5-0.h: Remove, move all the contents ...
11558 * s/irix6-5.h: ... here. Simplify.
11559 * config.in: Regenerate.
11560
115612008-02-24 Jason Rumney <jasonr@gnu.org>
11562
11563 * w32term.c (x_draw_glyph_string_background): Clear the background
11564 manually when cleartype is in use.
11565 (x_draw_glyph_string_foreground): Draw text transparently when
11566 cleartype is in use.
11567
11568 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11569 a font into it unless we have to.
11570
115712008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11572
11573 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11574 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11575
aac0c6e3
MR
115762008-02-18 Jason Rumney <jasonr@gnu.org>
11577
11578 * w32fns.c (Fw32_shell_execute): Encode parameters.
11579
115802008-02-09 Eli Zaretskii <eliz@gnu.org>
11581
11582 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11583
115842008-02-05 Juanma Barranquero <lekktu@gmail.com>
11585
11586 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11587
115882008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11589
11590 * xterm.c (x_set_offset): Don't change the gravity if
11591 CHANGE_GRAVITY is -1.
11592
115932008-02-23 Chong Yidong <cyd@stupidchicken.com>
11594
11595 * fileio.c (auto_save_error_occurred): New var.
11596 (auto_save_error): Set it.
11597 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11598 error occurred.
11599
116002008-02-23 Eli Zaretskii <eliz@gnu.org>
11601
11602 * w32.c (globals_of_w32): Add initializations for
11603 g_b_init_get_sid_sub_authority and
11604 g_b_init_get_sid_sub_authority_count.
11605
116062008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11609 (font_parse_xlfd): Use them for sanity check.
11610 (Finternal_set_font_style_table): Make sure the table is bijective.
11611
11612 Consolidate the image_cache to the terminal struct.
11613 * termhooks.h (P_): Remove redundant def.
11614 (struct terminal): New field `image_cache'.
11615 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11616 of FRAME_X_IMAGE_CACHE.
11617 * xterm.h (struct x_display_info): Remove image_cache field.
11618 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11619 * w32term.h (struct w32_display_info): Remove image_cache field.
11620 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11621 * macterm.h (struct mac_display_info): Remove image_cache field.
11622 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11623 * xterm.c (x_term_init):
11624 * w32term.c (w32_term_init):
11625 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11626 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11627 Remove declarations.
11628 (clear_image_caches, mark_image_cache): New declarations.
11629 * xfaces.c (clear_face_cache):
11630 * xdisp.c (redisplay_internal): Use clear_image_caches.
11631 * image.c (clear_image_cache): Don't check that a frame is on
11632 a window-system before checking if it shares the same cache.
11633 (clear_image_caches): New function.
11634 (Fclear_image_cache): Use it.
11635 (mark_image): Move from allo.c.
11636 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11637 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11638 (mark_object): Don't call mark_image_cache for frames.
11639 (mark_terminals): Call mark_image_cache.
11640
11641 * lisp.h (Fdelete_terminal): Declare.
11642
11643 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11644 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11645 wrong_type_argument.
11646
116472008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11648
11649 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11650 malayalam.el, and tamil.el. Add sinhala.el.
11651
116522008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11653
11654 * xterm.c (x_connection_closed): Consolidate identical tests.
11655 (x_delete_terminal): Don't crash if called via x_connection_closed.
11656
116572008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11658
11659 * xdisp.c (decode_mode_spec): New arg string.
11660 (display_mode_element): Adjust for the above change.
11661
116622008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11663
11664 * callint.c (Fcall_interactively): Use AREF.
11665
116662008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11667
11668 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11669
116702008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11671
11672 * xfns.c (Fx_show_tip): Set string to " " if empty.
11673
116742008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11675
11676 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11677 with Qt.
11678
116792008-02-17 Kenichi Handa <handa@m17n.org>
11680
11681 * ftfont.c (ftfont_shape): Return Lispy number.
11682
11683 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11684 for GCs.
11685 (Finternal_set_font_selection_order): Call font_update_sort_order
11686 only when enable_font_backend is set.
11687 (realize_x_face): Set face->font_info to that of default face only
11688 when enable_font_backend is set.
11689
11690 * xdisp.c (handle_composition_prop): Set it->c to the fist
11691 character of the composed region.
11692 (fill_composite_glyph_string): Set base_face->font_info to
11693 s->font_info. Get a face for ascii from base_face->ascii_face.
11694 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11695 with a face already decided.
11696 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11697 non-negative.
11698 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11699 call font_prepare_composition unconditionally.
11700
11701 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11702
11703 * xterm.h (struct x_display_info): New member font.
11704
11705 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11706 (x_set_mouse_face_gc, x_new_font): Likewise.
11707 (x_term_init): Setup display_info->font.
11708 (x_delete_terminal): Free display_info->font.
11709
11710 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11711
11712 * ftxfont.c (ftxfont_default_fid): Delete it.
11713 (ftxfont_open): Set xfont->fid to 0.
11714 (ftxfont_end_for_frame): Clear data specific to the frame and the
11715 font-driver.
11716
11717 * xftfont.c (xftfont_default_fid): Delete it.
11718 (xftfont_open): Set xfont->fid to 0.
11719
11720 * fontset.c (FONTSET_OBJLIST): New macro.
11721 (fontset_find_font): Update font-object list of the fontset.
11722 (free_realized_fontset): New function.
11723 (free_face_fontset): Call free_realized_fontset.
11724 (Ffont_info): Call font_close_object only when enable_font_backend
11725 is set.
11726
11727 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11728 [HAVE_NTGUI]: Include w32term.h.
11729 [MAC_OS]: Include macterm.ch.
11730 (font_otf_ValueRecord): Use make_number.
11731 (font_finish_cache): Fix handling of reference count.
11732 (font_clear_cache): Update num_fonts.
11733 (font_open_entity): Update smallest_char_width and
11734 smallest_font_height of the frame.
11735 (font_close_object): Update num_fonts.
11736 (Fclear_font_cache): Fix finding the target cache data.
11737
117382008-02-16 Glenn Morris <rgm@gnu.org>
11739
11740 * fontset.c (Finternal_char_font): Fix compilation warning.
11741
117422008-02-16 Eli Zaretskii <eliz@gnu.org>
11743
11744 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11745 instead of char arrays. Enlarge the size of array passed to
11746 get_token_information.
11747
11748 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11749 warnings.
11750
117512008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11752
11753 * .gdbinit: Don't set `args', it breaks gdb --args.
11754
117552008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11756
11757 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11758 within a narrowed buffer.
11759
117602008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11761
11762 * coding.c (decode_coding_object, encode_coding_object):
11763 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11764
117652008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11766
11767 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11768 hardcoding 1.
11769 (detect_coding_system):
11770 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11771 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11772 * insdel.c (insert_from_gap):
11773 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11774 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11775 (string_to_multibyte):
11776 * character.c (chars_in_text, multibyte_chars_in_text):
11777 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11778
11779 * character.h (FETCH_STRING_CHAR_ADVANCE)
11780 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11781 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11782 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11783
11784 * casefiddle.c (casify_region): Only call after-change and composition
11785 functions on the part of the region that was changed.
11786
11787 * keyboard.c (read_avail_input):
11788 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11789
117902008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11791
11792 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11793 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11794
117952008-02-11 Juanma Barranquero <lekktu@gmail.com>
11796
11797 * w32menu.c (push_submenu_start, push_submenu_end)
11798 (push_left_right_boundary, push_menu_pane, push_menu_item):
11799 * keyboard.c (read_key_sequence): Don't pass args with side effects
11800 to AREF, it fails when compiling with -DENABLE_CHECKING.
11801
118022008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11803
11804 * Makefile.in (${lispsource}international/charprop.el):
11805 Delete this target.
11806
11807 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11808 emacs-unicode-2.
11809
118102008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11811
11812 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11813
118142008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11815
11816 * frame.c (Qnoelisp): New symbol.
11817 (syms_of_frame): Initialize it.
11818 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11819 harmless Elisp code, from a strong `force' from x_connection_closed.
11820 * frame.h (Qnoelisp): Declare.
11821 * xterm.c (x_connection_closed): Pass `noelisp'.
11822
11823 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11824 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11825 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11826 rather than `int' for the type of `type'.
11827
118282008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11829
11830 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11831
11832 * Makefile.in (GNUC): Remove support for gcc-1.x.
11833
118342008-02-10 Richard Stallman <rms@gnu.org>
11835
11836 * lisp.h (ASET): Use AREF, not ASLOT.
11837
118382008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11839
11840 * lisp.h (ASET): Check bounds.
11841
118422008-02-10 Glenn Morris <rgm@gnu.org>
11843
11844 * buffer.c (mode-name): Doc fix.
11845
118462008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11847
11848 * Makefile.in:
11849 * emacs.c:
11850 * gmalloc.c:
11851 * keyboard.c:
11852 * lisp.h:
11853 * m/ibm370aix.h:
11854 * process.c:
11855 * regex.c:
11856 * s/hpux.h:
11857 * sysdep.c:
11858 * sysselect.h:
11859 * systty.h:
11860 * unexec.c:
11861 * w32term.c:
11862 * xsmfns.c:
11863 * xterm.c: Remove code that deals with obsolete variables.
11864
11865 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11866
11867 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11868 nothing else needs it anymore.
11869
118702008-02-09 Eli Zaretskii <eliz@gnu.org>
11871
11872 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11873 instead of unibyte_char_to_multibyte.
11874
118752008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11876
11877 * s/gnu-linux.h: Remove commented out code.
11878
11879 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11880
11881 * Makefile.in: Update what RMS says about using autoconf.
11882 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11883 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11884 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11885 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11886
118872008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11888
11889 * keymap.c (Fkey_description): Move side effect outside of macro call.
11890
11891 * xfaces.c (Finternal_make_lisp_face):
11892 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11893
11894 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11895 (syms_of_fontset): Use ASET.
11896
11897 * fns.c (concat): Move side effect outside of macro call.
11898 (hash_clear): Use ASET.
11899
119002008-02-08 Richard Stallman <rms@gnu.org>
11901
11902 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11903 If FORCE, and frame has a surrogate minibuffer for another frame,
11904 delete the other frame first.
11905
119062008-02-07 Timo Savola <timo.savola@iki.fi>
11907
11908 * xterm.c (x_detect_focus_change): Handle embed client message.
11909 (handle_one_xevent): Ditto.
11910 (handle_one_xevent): If embedded and we get a button press/release,
11911 request focus.
11912 (xembed_set_info, xembed_send_message): New functions.
11913 (x_make_frame_visible): Call xembed_set_info if embedded.
11914 (x_make_frame_invisible): Call xembed_set_info if embedded.
11915 (x_term_init): Initialize Xatom_XEMBED.
11916 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11917 (x_iconify_frame): Ditto.
11918
11919 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11920 (enum xembed_info, enum xembed_message, enum xembed_focus)
11921 (enum xembed_modifier, enum xembed_accelerator): New.
11922 (xembed_set_info, xembed_send_message): Declare.
11923 (FRAME_X_EMBEDDED_P): New.
11924
11925 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11926 gtk_plug_new.
11927
11928 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11929 window ID of a frame.
11930 (x_window): Reparent frame if embedded.
11931 (Fx_create_frame): Don't set border width if embedded.
11932
11933 * emacs.c (USAGE3): Add --parent-id.
11934 (standard_args): Ditto.
11935
119362008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11937
11938 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11939
119402008-02-07 Jim Meyering <meyering@redhat.com>
11941
11942 Use "do...while (0)", not "if (1)...else" in macro definitions.
11943 The latter provokes a warning from gcc about the empty else, when
11944 followed by ";". Also, without that trailing semicolon, it would
11945 silently swallow up any following statement.
11946 * syntax.h (SETUP_SYNTAX_TABLE)
11947 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11948 * buffer.h (DECODE_POSITION): Likewise.
11949 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11950 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11951 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11952 (FETCH_CHAR_ADVANCE): Likewise.
11953 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11954
119552008-02-07 Jim Meyering <meyering@redhat.com>
11956
11957 * lread.c [lint]: Don't include <sys/inode.h>.
11958
119592008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11960
11961 * xselect.c (x_handle_dnd_message):
11962 * xmenu.c (digest_single_submenu, xmenu_show):
11963 * xdisp.c (with_echo_area_buffer_unwind_data)
11964 (format_mode_line_unwind_data, unwind_format_mode_line)
11965 (display_menu_bar):
11966 * eval.c (Ffetch_bytecode):
11967 * doc.c (store_function_docstring):
11968 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11969 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11970 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11971
119722008-02-07 Kenichi Handa <handa@m17n.org>
11973
11974 * ftxfont.c (ftxfont_open): Don't set
11975 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11976
11977 * ftfont.c (ftfont_open): Fix previous change.
11978
119792008-02-06 Jason Rumney <jasonr@gnu.org>
11980
11981 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11982 Use cached metrics for ASCII characters.
11983 (w32font_open_internal): Don't set font's owning_frame.
11984 Cache metrics for ASCII characters.
11985
11986 * w32font.h (struct w32font_info): Add ascii_metrics.
11987 Remove owning_frame.
11988
119892008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11990
11991 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11992 to negative value.
11993
11994 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11995
11996 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11997
11998 * charset.c (syms_of_charset): Set QCtest and Qeq.
11999
120002008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12001
12002 * process.c (Fstart_process):
12003 * callproc.c (Fcall_process): Handle the case where
12004 Funhandled_file_name_directory returns nil.
12005
12006 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12007 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12008 * font.c (check_gstring): Use them and AREF to access the vector before
12009 we know it's really a gstring.
12010 (Ffont_shape_text): Fix typo.
46e722a9 12011 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12012
12013 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12014 Declare.
12015
12016 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12017
120182008-02-05 Jason Rumney <jasonr@gnu.org>
12019
12020 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12021 Set smallest_font_height and smallest_char_width in display info.
12022
120232008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12024
12025 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12026
120272008-02-05 Miles Bader <miles@gnu.org>
12028
12029 * xfaces.c (get_lface_attributes, merge_named_face)
12030 (lookup_named_face, lookup_derived_face, realize_named_face):
12031 Revert 2008-02-01 change by cyd@stupidchicken.com.
12032
120332008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12034
12035 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12036 fallback fonts.
12037 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12038
120392008-02-04 Jason Rumney <jasonr@gnu.org>
12040
12041 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12042 set full_name.
12043 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12044
120452008-02-03 Jason Rumney <jasonr@gnu.org>
12046
12047 * makefile.w32-in (OBJ1): Include font.o here.
12048 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12049
120502008-02-02 Jason Rumney <jasonr@gnu.org>
12051
12052 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12053
120542008-02-01 Jason Rumney <jasonr@gnu.org>
12055
12056 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12057
12058 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12059
120602008-02-01 Andreas Schwab <schwab@suse.de>
12061
12062 * Makefile.in (shortlisp, lisp): Update for rename of
12063 ../lisp/language/myanmar.el.
12064
120652008-02-01 Chong Yidong <cyd@stupidchicken.com>
12066
12067 * xfaces.c (get_lface_attributes): Delete function.
12068 (merge_named_face, lookup_named_face, lookup_derived_face)
12069 (realize_named_face): Call lface_from_face_name directly, and use
12070 the fact that merge_face_vectors does not alter its FROM argument.
12071
120722008-02-01 Jason Rumney <jasonr@gnu.org>
12073
12074 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12075 input in the default locale. Handle non-Unicode multibyte input.
12076
120772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12078
12079 * fontset.c (reorder_font_vector): Exclude nil elements from the
12080 font group. Don't try multiple fonts.
12081 (fontset_font): Adjust for the above change.
12082 (Finternal_char_font): Return nil if the found font doesn't
12083 contain the character ch.
12084
12085 * Makefile.in (lisp, shortlisp): Add cham.el.
12086
120872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12088
12089 * font.h (FONTP): Make it return 1 also for a font-object.
12090
12091 * .gdbinit (xfontset): New function.
12092
12093 * font.c (font_find_for_lface): Check if the character C is
12094 supported or not only for the first font.
12095
12096 * fontset.c (reorder_font_vector): Fix typo.
12097 (fontset_find_font): Don't add a font-spec specifying a script.
12098 Use 0 (not Qt) for the indication of empty font-group. Change the
12099 format of RFONT-DEF. Return Qt if no font in the font-group
12100 support the character.
12101 (fontset_font): Adjust for the above change. If no font was
12102 found the character, remember that.
12103 (face_for_char): Adjust for the change of RFONT-DEF.
12104 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12105 no font for the target.
12106 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12107
121082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12109
12110 * font.c (font_load_for_face): Handle the case that the font in
12111 face->lface is a string.
12112
121132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12114
12115 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12116
121172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12118
12119 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12120 Fix previous change. If the frame is not on a window system,
12121 signal an error.
12122
121232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12124
12125 * coding.c (decode_coding_object, encode_coding_object): Adjust
12126 marker positions after conversion.
12127
12128 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12129
121302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12131
12132 * font.c (font_find_for_lface): Fix the handling of the return
12133 value of font_has_char.
12134 (Ffont_shape_text): Fix previous change.
12135
12136 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12137 (fontset_ref_and_range): Delete it.
12138 (fontset_find_font): Call char_table_ref_and_range instead of
12139 FONTSET_REF_AND_RANGE.
12140 (make_fontset): Don't setup font groups of Latin here.
12141 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12142 (new_fontset_from_font): Make the specified font the default for
12143 all Latin characters.
12144
121452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12146
12147 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12148 is on a window system before accessing the fontset of the frame.
12149
121502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12151
12152 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12153
12154 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12155 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12156
12157 * font.c (Ffont_shape_text): If the font driver doesn't have a
12158 shaper function, make zero-width glyphs to have at least one-pixel
12159 width. Fix setting of `to' field of glyphs.
12160
121612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12162
12163 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12164 glyphs.
12165
12166 * font.h (struct font_driver): Improve docstring of member `shape'.
12167
121682008-02-01 Kenichi Handa <handa@m17n.org>
12169
12170 * composite.c (syms_of_composite): Fix docstring of
12171 auto-composition-function.
12172
12173 * font.h (LGLYPH_SIZE): New macro.
12174
12175 * font.c (Ffont_fill_gstring): Stop filling when a character not
12176 supported by the font is found.
12177 (Ffont_shape_text): When a shape callback function returns nil,
12178 try at most two more times with larger gstring.
12179 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12180
12181 * xdisp.c (handle_auto_composed_prop): Change the argument to
12182 auto-composition-function.
12183
12184 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12185 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12186 Lispy glyph and store it in the lgstring.
12187
12188 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12189
12190 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12191
121922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12193
12194 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12195
12196 * fontset.c (Vfont_encoding_charset_alist): New variable.
12197 (syms_of_fontset): DEFVAR it.
12198 (reorder_font_vector, fontset_find_font): Optimize for the case of
12199 no need of reordering.
12200 (face_for_char): Map the charset property by
12201 Vfont_encoding_charset_alist.
12202
122032008-02-01 Jason Rumney <jasonr@gnu.org>
12204
12205 * w32font.c (logfonts_match): Don't check adstyle here.
12206 (font_matches_spec): Check here against physical font instead.
12207 (add_font_entity_to_list): Avoid some substitutions.
12208
12209 * font.c (font_parse_fcname): Default weight and slant to normal.
12210 (font_score): Prefer normal fonts if weight or slant unspecified.
12211 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12212 match freetype scores.
12213
122142008-02-01 Jason Rumney <jasonr@gnu.org>
12215
12216 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12217 font, as it may have been deleted.
12218 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12219 most common hyphenless variation.
12220 (logfonts_match): Check generic family.
12221 (font_matches_spec): Don't check generic family here.
12222 (fill_in_logfont): Set generic family based on adstyle.
12223
12224 * w32font.h (w32font_get_cache): Update declaration.
12225
122262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12227
12228 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12229
12230 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12231 If none of the new drivers are available, call font_update_drivers
12232 with the old drivers.
12233
12234 * w32font.c (w32font_get_cache): Adjust the argument type.
12235
12236 * xfont.c (xfont_get_cache): Adjust the argument type.
12237
12238 * font.h (struct font_driver): Change argument type of get_cache.
12239
12240 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12241
12242 * font.c (Ffont_get): Fix arguments to Fassoc.
12243 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12244 (font_clear_cache): New function.
12245 (font_list_entities, font_matching_entity): Use font_get_cache.
12246 (font_update_drivers): Call font_clear_cache when finishing a driver.
12247
12248 * fontset.c (fontset_find_font): Fix previous change.
12249
122502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12251
12252 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12253 dpyinfo->font_table.
12254 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12255 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12256
12257 * font.c (font_at): Handle the case that the arg C is negative.
12258 Handle the unibyte case.
12259 (Ffont_at): Call font_at with the arg C -1.
12260
12261 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12262 the position here, and call font_at with the arg C -1.
12263 Don't check the range of the existing composition at the point.
12264
122652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12266
12267 * fontset.c (fontset_add): New args charset_id and family.
12268 Change caller.
12269 (load_font_get_repertory, fontset_find_font): Assume that
12270 font_spec is always a font-spec object.
12271 (Fset_fontset_font): Always store a font-spec object in a fontset.
12272
12273 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12274 instead of get_property_and_range.
12275
122762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12277
12278 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12279 (xftfont_open): Don't keep locking face.
12280 (xftfont_close): Don't unlock face.
12281 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12282
12283 * fontset.c (fontset_find_font): Don't prefer a font of
12284 supplementary charset.
12285
122862008-02-01 Kenichi Handa <handa@m17n.org>
12287
12288 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12289 script, langsys_tag to langsys, new member script.
12290 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12291 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12292 listing to the script specified in that property. Fix arg to
12293 OTF_check_features.
12294
122952008-02-01 Jason Rumney <jasonr@gnu.org>
12296
12297 * w32font.h: New file.
12298
12299 * w32font.c: Include it.
12300 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12301 (w32font_open): Set owning_frame.
12302 (w32font_text_extents): Use owning_frame.
12303 (struct font_callback_data): Add opentype_only field.
12304 (add_font_entity_to_list): Use it to filter fonts.
12305 Don't check against full name.
12306 (w32font_list_internal): New function.
12307 (w32font_list): Use it.
12308 (w32font_match_internal): New function.
12309 (w32font_match): Use it.
12310 (w32font_open_internal): New function.
12311 (w32font_open): Use it.
12312 (w32font_get_cache, w32font_close, w32font_has_char)
12313 (w32font_encode_char, w32font_text_extents, w32font_draw):
12314 Make non-static.
12315
12316 * makefile.w32-in (w32font.o): Depend on w32font.h.
12317
123182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12319
12320 * charset.c (Fdefine_charset_internal): Record a supplementary
12321 charset at the tail of Vcharset_order_list.
12322
12323 * font.c (Ffont_shape_text): Fix the return value.
12324
12325 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12326
12327 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12328
123292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12330
12331 * ftfont.c (struct OpenTypeSpec): New struct.
12332 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12333 (ftfont_get_open_type_spec): New function.
12334 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12335
12336 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12337
123382008-02-01 Jason Rumney <jasonr@gnu.org>
12339
12340 * w32font.c (add_font_entity_to_list): Compare only the beginning
12341 of full name.
12342
123432008-02-01 Kenichi Handa <handa@m17n.org>
12344
12345 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12346 Never return HANDLED_RECOMPUTE_PROPS.
12347
123482008-02-01 Kenichi Handa <handa@m17n.org>
12349
12350 * font.c (font_gstring_produce): Delete it.
12351
12352 * composite.h (COMPOSITION_METHOD):
12353 Handle COMPOSITION_WITH_GLYPH_STRING.
12354
123552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12356
12357 * xfont.c (Qx): Delete.
12358 (syms_of_xfont): Don't initialize Qx.
12359
12360 * composite.h (enum composition_method):
12361 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12362
123632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12364
12365 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12366 (choose_face_font): Accept new form of font-spec.
12367
12368 * frame.h (font_driver_list): Declare it unconditionally.
12369 (struct frame): Define members font_driver_list and font_data_list
12370 unconditionally.
12371
12372 * fontset.c: Include "font.h" unconditionally.
12373 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12374 (Fset_fontset_font): Accept a font-spec object.
12375
12376 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12377 PIXEL_SIZE part a wild card.
12378
12379 * dispextern.h (struct glyph_string): Define members clip and
12380 num_clips unconditionally.
12381 (struct face): Define members font_info and extra unconditionally.
12382
12383 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12384 ftfont_info only when HAVE_LIBOTF is defined.
12385
123862008-02-01 Andreas Schwab <schwab@suse.de>
12387
12388 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12389 and end.
12390
123912008-02-01 Jason Rumney <jasonr@gnu.org>
12392
12393 * w32font.c (w32font_driver): Add new fields.
12394
123952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12396
12397 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12398 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12399 (LIBES): Add @M17N_FLT_CFLAGS@.
12400
12401 * composite.c (compose_text): Don't treat the new style
12402 composition specially.
12403
12404 * emacs.c (main): Call syms_of_font unconditionally.
12405
12406 * font.h (FONT_ENTITY_NOT_LOADABLE)
12407 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12408 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12409 (struct font_driver): New member shape.
12410 (font_registry_charsets): Extern it.
12411 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12412 (font_otf_capability, font_drive_otf): Delete their externs.
12413
12414 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12415 (font_charset_alist, font_registry_charsets): Move from xfont.c
12416 and rename.
12417 (font_prop_validate_otf): New function.
12418 (font_property_table): Register it for QCotf.
12419 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12420 (font_drive_otf): Delete.
12421 (font_prepare_composition): New arg F. Adjust for the change of
12422 lispy gstring.
12423 (font_find_for_lface): New arg C.
12424 (font_load_for_face): Adjust for the change of font_find_for_lface.
12425 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12426 lispy gstring.
12427 (Ffont_shape_text): New function.
12428 (Fopen_font): If the font size is not given, use 12-pixel.
12429 (Ffont_at): New arg STRING.
12430 (syms_of_font): Initalize font_charset_alist.
12431 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12432 conditionally.
12433
12434 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12435 fonts of the same font-spec. Change the format of RFONT-DEF.
12436 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12437 Adjust for the change of RFONT-DEF.
12438 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12439
12440 * ftfont.h: New file.
12441
12442 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12443 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12444 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12445 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12446 font_otf_capability and font_drive_otf, set ftfont_shape.
12447 (ftfont_list): Adjust for the change of :otf property value.
12448 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12449 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12450 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12451 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12452 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12453 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12454
12455 * w32term.c (x_draw_composite_glyph_string_foreground):
12456 Adjust for the change of lispy gstring.
12457
12458 * xdisp.c (handle_composition_prop): Adjust for the change of
12459 lispy gstring. Call a function for auto-composition with the
12460 third arg it->window.
12461 (fill_composite_glyph_string): Adjust for the change of lispy string.
12462 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12463
12464 * xfaces.c (set_font_frame_param): Adjust for the change of
12465 font_find_for_lface.
12466
12467 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12468 (xfont_registry_charsets): Likewise. Change caller.
12469 (syms_of_xfont): Don't handle x_font_charset_alist.
12470
12471 * xftfont.c: Include "ftfont.h".
12472 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12473 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12474 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12475 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12476 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12477 Set xftfont_driver.shape to xftfont_shape.
12478
12479 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12480 the change of lispy gstring.
12481
124822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12483
12484 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12485
124862008-02-01 Jason Rumney <jasonr@gnu.org>
12487
12488 * w32font.c (w32font_draw): Fill background manually.
12489
124902008-02-01 Jason Rumney <jasonr@gnu.org>
12491
12492 * font.c (Qfontp): Remove unused symbol.
12493 (QCantialias): New symbol.
12494 (syms_of_font): Define it.
12495 (font_property_table): Set a validator for QCantialias.
12496
12497 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12498 Define if not already.
12499 (QCfamily): Share with xfaces.c.
12500 (Qstandard, Qsubpixel, Qnatural): New symbols.
12501 (syms_of_w32font): Define them. Don't define QCfamily here.
12502 (w32_antialias_type, lispy_antialias_type): New functions.
12503 (w32_enumfont_pattern_entity): New arg requested_font.
12504 Set antialias parameter if non-default was requested.
12505 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12506
125072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12508
12509 * lread.c (read1): Undo the previous change.
12510
125112008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12512
12513 * frame.c (Fdelete_frame): Call font_update_drivers only when
12514 USE_FONT_BACKEND is defined.
12515
125162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12517
12518 * font.h (struct font_bitmap): New member bits_per_pixel.
12519 (struct font_driver): New members start_for_frame and end_for_frame.
12520 (struct font_data_list): New struct.
12521 (font_put_frame_data, font_get_frame_data): Extern them.
12522
12523 * frame.h (struct frame): New member font_data_list.
12524
12525 * font.c (font_update_drivers): Call driver->start_for_frame and
12526 driver->end_for_frame at proper timings.
12527 (font_put_frame_data, font_get_frame_data): New functions.
12528 (Ffont_spec): Add usage in the docstring.
12529
12530 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12531 (Fdelete_frame): Call font_update_drivers.
12532
12533 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12534 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12535 (xftfont_get_xft_draw): New function.
12536 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12537 (xftfont_end_for_frame): New function.
12538 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12539
12540 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12541 Change argument. Cache GCs in the per-frame data.
12542 (struct ftxfont_frame_data): New struct.
12543 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12544 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12545 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12546 (ftxfont_end_for_frame): New function.
12547 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12548
12549 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12550
125512008-02-01 Kenichi Handa <handa@m17n.org>
12552
12553 * xselect.c (Vselection_coding_system)
12554 (Vnext_selection_coding_system): Delete them.
12555 (syms_of_xselect): Don't declare selection-coding-system and
12556 next-selection-coding-system. They are declared in select.el.
12557
125582008-02-01 Jason Rumney <jasonr@gnu.org>
12559
12560 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12561
12562 * w32fns.c: Include imm.h.
12563 (get_composition_string_fn, get_ime_context_fn): New optional
12564 system functions.
12565 (globals_of_w32fns): Load them from imm32.dll.
12566 (ignore_ime_char): New flag.
12567 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12568 WM_IME_ENDCOMPOSITION messages.
12569
12570 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12571 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12572
125732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12574
12575 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12576 (READCHAR_REPORT_MULTIBYTE): New macro.
12577 (readchar): New 2nd arg MULTIBYTE.
12578 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12579 Make symbol's name multibyte according to the multibyteness of the
12580 source.
12581
125822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12583
12584 * xfaces.c (face_for_overlay_string): Call lookup_face with
12585 correct arguments (fix of synching with the trunk).
12586
125872008-02-01 Kenichi Handa <handa@m17n.org>
12588
12589 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12590 (font_prop_validate_non_neg, font_prop_validate_spacing):
12591 Delete argument prop_index.
12592 (font_property_table): Change arguments to validater. Change Callers.
12593 (font_lispy_object): Delete.
12594 (font_at): Use font_find_object instead fo font_lispy_object.
12595
125962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12597
12598 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12599 and file names.
12600
126012008-02-01 Jason Rumney <jasonr@gnu.org>
12602
12603 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12604 (font_matches_spec): Remove debug output.
12605 (add_font_entity_to_list): Avoid using substituted fonts.
12606
126072008-02-01 Jason Rumney <jasonr@gnu.org>
12608
12609 * doc.c (Fsnarf_documentation):
12610 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12611
126122008-02-01 Miles Bader <miles@gnu.org>
12613
12614 * dispextern.h (struct glyph_row): Only define "clip" field if
12615 HAVE_WINDOW_SYSTEM is defined.
12616
126172008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12618
12619 Fix up multi-tty merge.
12620
12621 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12622 and indentation.
12623
12624 * xfaces.c (free_realized_face, clear_face_gcs):
12625 Include font_done_for_face in the input_blocked section, just in case.
12626
12627 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12628 (get_char_face_and_encoding): Undo last change and remove the *other*
12629 duplicate definition (i.e. keep the one that's better scoped and that
12630 includes code for the font-backend).
12631
12632 * terminal.c (create_terminal): Default keyboard_coding to
12633 `no-conversion' and terminal_coding to `undecided'.
12634
12635 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12636
12637 * fontset.c (free_realized_fontsets): Check that the table entry does
12638 contain a fontset before trying to compare it to `base'.
12639
12640 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12641 syms_of_charset, and syms_of_coding earlier because init_window_once
12642 now needs Vcoding_system_hash_table to be setup.
12643
12644 * coding.h (default_buffer_file_coding): Remove.
12645
12646 * coding.c (default_buffer_file_coding): Remove.
12647 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12648 than ->symbol, and use the terminal-local coding system.
12649 (syms_of_coding): Don't setup the coding-systems that are not
12650 terminal-local.
12651 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12652
12653 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12654 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12655
12656 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12657 in chartab.c and were re-added here by mistake.
12658 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12659
12660 * doc.c (Fsnarf_documentation):
12661 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12662 src to etc.
12663
12664 * ChangeLog.10: Add mistakenly removed entry.
12665
126662008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12667
12668 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12669
126702008-02-01 Miles Bader <miles@gnu.org>
12671
12672 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12673 Add extra args to FACE_FOR_CHAR.
12674
126752008-02-01 Kenichi Handa <handa@m17n.org>
12676
12677 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12678 in sequence.
12679
12680 * chartab.c (map_sub_char_table, map_char_table): If the range
12681 contains just one character, call the function with that character
12682 even if the depth is not 3.
12683
126842008-02-01 Jason Rumney <jasonr@gnu.org>
12685
12686 * w32font.c (w32font_text_extents): Calculate metrics for the
12687 whole string.
12688
126892008-02-01 Jason Rumney <jasonr@gnu.org>
12690
12691 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12692
126932008-02-01 Jason Rumney <jasonr@gnu.org>
12694
12695 * w32term.c (x_set_glyph_string_clipping): Use
12696 get_glyph_string_clip_rects.
12697 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12698 Adjust for the change of struct glyph_string.
12699
12700 * w32font.c (w32font_draw): Do clipping here.
12701
127022008-02-01 Kenichi Handa <handa@m17n.org>
12703
12704 * xftfont.c (xftfont_draw): Adjust for the change of struct
12705 glyph_string.
12706
12707 * xterm.c (x_set_glyph_string_clipping): Use
12708 get_glyph_string_clip_rects.
12709 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12710 Adjust for the change of struct glyph_string.
12711
12712 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12713 the resulting clip(s}.
12714 (expose_overlaps): Add arg r. Change callers. Set it to
12715 row->clip temporarily.
12716 (expose_window): Redraw rows overlapping the exposed area.
12717
12718 * dispextern.h (struct glyph_row): New member clip.
12719 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12720 clip_height, new member clip, and num_clips.
12721
127222008-02-01 Kenichi Handa <handa@m17n.org>
12723
12724 * data.c (Fchar_or_string_p): Fix docstring.
12725
127262008-02-01 Kenichi Handa <handa@m17n.org>
12727
12728 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12729 create a temporary XftDraw object.
12730
127312008-02-01 Kenichi Handa <handa@m17n.org>
12732
12733 * font.c (Ffontp): Fix docstring.
12734
12735 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12736 strong evidence of ISO-2022.
12737
127382008-02-01 Kenichi Handa <handa@m17n.org>
12739
12740 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12741 SYNTAX_ENTRY_FOLLOW_PARENT.
12742
127432008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12744
12745 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12746 its type.
12747 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12748 Update to the new type of weak_hash_tables and next_weak.
12749
12750 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12751 a plain C pointer to Lisp_Hash_Table.
12752
12753 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12754 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12755 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12756 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12757 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12758 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12759 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12760 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12761 (GC_EQ): Remove since they've been identical to their non-GC_
12762 alter-egos ever since the markbit was eradicated.
12763
12764 * alloc.c:
12765 * buffer.c:
12766 * buffer.h:
12767 * data.c:
12768 * fileio.c:
12769 * filelock.c:
12770 * fns.c:
12771 * frame.h:
12772 * lisp.h:
12773 * macterm.c:
12774 * print.c:
12775 * process.c:
12776 * w32fns.c:
12777 * w32menu.c:
12778 * w32term.c:
12779 * xfns.c:
12780 * xmenu.c:
12781 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12782
127832008-02-01 Kenichi Handa <handa@m17n.org>
12784
12785 * chartab.c (map_sub_char_table): Make it work for the top-level
12786 char-table. Fix handling of parent char-table.
12787 (map_char_table): Adjust for the above change.
12788
127892008-02-01 Jason Rumney <jasonr@gnu.org>
12790
12791 * w32font.c (Qgdi): Rename from Qw32.
12792
127932008-02-01 Jason Rumney <jasonr@gnu.org>
12794
12795 * w32bdf.c (get_quoted_string): Make function static.
12796
127972008-02-01 Kenichi Handa <handa@m17n.org>
12798
12799 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12800 bigger ascent and descent than those of the font, use them as
12801 font's ascent and descent.
12802
128032008-02-01 Kenichi Handa <handa@m17n.org>
12804
12805 * Makefile.in (${lispsource}international/charprop.el): Move this
12806 target within "#ifdef HAVE_UNIDATA" and "#endif".
12807
128082008-02-01 Kenichi Handa <handa@m17n.org>
12809
12810 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12811 (shortlisp): Add ../lisp/language/tai-viet.el.
12812
128132008-02-01 Ulrich Mueller <ulm@gentoo.org>
12814
12815 * Makefile.in (${lispsource}international/charprop.el): Depend on
12816 temacs${EXEEXT}.
12817
128182008-02-01 Jason Rumney <jasonr@gnu.org>
12819
12820 * w32font.c (w32font_close): Delete the GDI font object.
12821
12822 * w32menu.c: Include character.h.
12823
12824 * w32proc.c: Likewise.
12825
12826 * w32select.c: Likewise.
12827
12828 * makefile.w32-in (w32proc.o): Depend on character.h.
12829
128302008-02-01 Jason Rumney <jasonr@gnu.org>
12831
12832 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12833
12834 * w32menu.c (syms_of_w32menu): Likewise.
12835
12836 * w32proc.c (syms_of_ntproc): Likewise.
12837
12838 * w32select.c (syms_of_w32select): Likewise.
12839
12840 * w32term.c (syms_of_w32term): Likewise.
12841
128422008-02-01 Jason Rumney <jasonr@gnu.org>
12843
12844 * w32font.c (w32font_draw): Delete brush after using it.
12845
128462008-02-01 Jason Rumney <jasonr@gnu.org>
12847
12848 * w32font.c (w32font_open): Don't set font_idx.
12849 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12850 to font settings.
12851 (w32font_draw): Fill background explicitly.
12852
128532008-02-01 Jason Rumney <jasonr@gnu.org>
12854
12855 * w32term.c (w32_initialize): Don't call w32font_initialize.
12856
12857 * w32font.c (w32font_info): Remove subranges.
12858 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12859 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12860 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12861 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12862 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12863 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12864 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12865 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12866 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12867 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12868 New symbols.
12869 (font_callback_data): New struct.
12870 (w32font_list, w32font_match): Use it.
12871 (w32font_open): Don't populate subranges.
12872 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12873 (w32font_encode_char): Always return unicode code-point as-is.
12874 (w32font_text_extents): Supply a transformation matrix to
12875 GetGlyphOutline. Never look up by glyph index. Avoid looping
12876 twice. Use unicode version of GetTexExtentPoint32 instead of
12877 glyph index version.
12878 (set_fonts_frame): Remove.
12879 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12880 set frame parameter. Use backward compatible fake foundries.
12881 Save generic family in extra slot under QCfamily. Make width slot
12882 constant. Save QCspacing value. Save list of scripts instead of
12883 binary subranges.
12884 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12885 (add_font_entity_to_list): Use font_callback_data struct. Filter
12886 unwanted fonts.
12887 (add_one_font_entity_to_list): Use font_callback_data struct.
12888 (w32_registry): Default to iso10646_1.
12889 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12890 string font registries. Don't fill in font name if it is a generic
12891 family name, fill family instead. Use spacing, family and script
12892 extra info to fill pitch, family and charset fields.
12893 (list_all_matching_fonts): Use font_callback_data struct.
12894 (unicode_range_for_char): Remove.
12895 (font_supported_scripts): New function.
12896 (w32font_initialize): Remove.
12897 (syms_of_w32font): Update which symbols are defined.
12898
128992008-02-01 Jason Rumney <jasonr@gnu.org>
12900
12901 * font.c (font_pixel_size): Reverse assq_no_quit args.
12902
12903 * w32term.h (FONT_WIDTH): Report max width, not average.
12904 (FONT_MAX_WIDTH): Remove.
12905 (FONT_AVG_WIDTH): New macro.
12906
12907 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12908 redefinition of FONT_WIDTH.
12909
12910 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12911 (w32_cache_char_metrics): Use FONT_WIDTH.
12912
12913 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12914
129152008-02-01 Jason Rumney <jasonr@gnu.org>
12916
12917 * w32font.c (w32font_open): Make lfHeight negative.
12918
12919 * w32fns.c (x_default_font_parameter): Use new style font name.
12920 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12921
129222008-02-01 Jason Rumney <jasonr@gnu.org>
12923
12924 * w32font.c (QCsubranges): New symbol.
12925 (w32font_open, w32font_has_char): Get subranges from subproperty
12926 of extra.
12927 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12928 (syms_of_w32font): Define :subranges symbol.
12929
12930 * font.c (font_put_extra): Expose externally.
12931
12932 * font.h (font_put_extra): Move declaration from font.c.
12933
12934 * font.c (Ffont_get): Use font driver to determine otf capability.
12935 (adjust_anchor): Check if driver defines anchor_point before using.
12936
12937 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12938 (w32font_draw): Use options.
12939 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12940 Fix detection of truetype fonts.
12941 (registry_to_w32_charset): Handle charsets other than iso8859-1
12942 expressed as lisp symbols.
12943 (w32_registry): Express charset as lisp symbol.
12944 (fill_in_logfont): Reverse pixel and point height logic.
12945 Don't set width here. Set quality to default.
12946
12947 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12948 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12949
12950 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12951 Remove redundant loop and allocation.
12952
12953 * makefile.w32-in (font.o, w32font.o): New objects.
12954 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12955 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12956
12957 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12958 STORE_XCHARB a valid l-value.
12959
12960 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12961 calculations for non-Truetype fonts.
12962 (x_draw_glyph_string): Sync with xterm.c.
12963 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12964 Remove redundant code.
12965 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12966
12967 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12968 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12969
12970 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12971 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12972
12973 * w32font.c: New file for w32 font backend.
12974
129752008-02-01 Kenichi Handa <handa@m17n.org>
12976
12977 * term.c: Don't include "buffer.h" twice.
12978
129792008-02-01 Kenichi Handa <handa@m17n.org>
12980
12981 * character.c (Funibyte_string): New function.
12982 (syms_of_character): Defsubr it.
12983
129842008-02-01 Jason Rumney <jasonr@gnu.org>
12985
12986 * w32term.c [USE_FONT_BACKEND]:
12987 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12988 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12989 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12990 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12991 (x_free_frame_resources): Sync with xterm.c.
12992
129932008-02-01 Andreas Schwab <schwab@suse.de>
12994
12995 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12996 char-table size.
12997
129982008-02-01 Kenichi Handa <handa@m17n.org>
12999
13000 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13001
130022008-02-01 Kenichi Handa <handa@m17n.org>
13003
13004 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13005 font_otf_gpos, add font_drive_otf.
13006
13007 * fontset.c (fontset_find_font): Pay attention to font size
13008 specified for a font.
13009 (reorder_font_vector): Check contents of font_def.
13010
13011 * font.c (struct otf_list): Delete it.
13012 (otf_list): Make it a lisp variable.
13013 (otf_open): Use lispy otf_list.
13014 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13015 (check_otf_features): New function.
13016 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13017 New functions.
13018 (font_drive_otf): New function merging font_otf_gsub and
13019 font_otf_gpos.
13020 (font_open_for_lface): New arg spec. Change argument order.
13021 (font_load_for_face): Adjust for the change of font_open_for_lface.
13022 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13023 Ffont_otf_gpos.
13024 (syms_of_font): Staticpro otf_list. Delete defsubr of
13025 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13026
13027 * xfaces.c (set_font_frame_param): Adjust for the change of
13028 font_open_for_lface.
13029
13030 * font.h (font_open_for_lface): Adjust prototype.
13031 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13032 member otf_drive.
13033 (font_otf_gsub, font_otf_gpos): Delete externs.
13034 (font_drive_otf): Extern it.
13035
130362008-02-01 Kenichi Handa <handa@m17n.org>
13037
13038 * font.c (font_at): If the window W is not on a window system,
13039 return Qnil.
13040
13041 * coding.c (produce_chars, encode_coding): Don't call
13042 insert_from_gap if no characters to produce.
13043
130442008-02-01 Kenichi Handa <handa@m17n.org>
13045
13046 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13047 Fclear_face_cache.
13048
13049 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13050
130512008-02-01 Miles Bader <miles@gnu.org>
13052
13053 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13054 Parse "--disable-font-backend" option.
13055 (standard_args): Add "--disable-font-backend" option.
13056
130572008-02-01 Kenichi Handa <handa@m17n.org>
13058
13059 * fontset.c (fontset_find_font): New function.
13060 (fontset_font): Use fontset_find_font.
13061 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13062 Register the specified font for all Latin characters.
13063 (new_fontset_from_font): Register the specified font for all Latin
13064 characters.
13065 (dump_fontset): For a realized fontset, include the base fontset
13066 name in the returned vector.
13067
130682008-02-01 Kenichi Handa <handa@m17n.org>
13069
13070 * character.h (CHAR_STRING): Cast C to unsigned on calling
13071 char_string.
13072
13073 * character.c (char_string): Type of arg C changed to unsigned.
13074 Signal an error if C is an invalid character code.
13075
13076 * editfns.c (general_insert_function, Fchar_to_string):
13077 Use CHARACTERP, not INTEGERP.
13078
130792008-02-01 Kenichi Handa <handa@m17n.org>
13080
13081 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13082 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13083
13084 * regex.c (analyse_first): Fix for multibyte characters in "case
13085 charset:" and "case categoryspec:".
13086
130872008-02-01 Andreas Schwab <schwab@suse.de>
13088
13089 * Makefile.in (LIBES): Move standard libraries to the end.
13090
130912008-02-01 Kenichi Handa <handa@m17n.org>
13092
13093 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13094 nonzero, don't shrink the buffer nextb.
13095
13096 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13097
13098 * coding.c (coding_alloc_by_making_gap): New arg offset.
13099 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13100 offset.
13101 (decode_coding_iso_2022): Update coding->safe_charsets.
13102 (decode_coding_gap): Temporarily set
13103 current_buffer->text->inhibit_shrinking to 1.
13104
131052008-02-01 Kenichi Handa <handa@m17n.org>
13106
13107 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13108 indexing into elements of s->cmp and s->char2b.
13109
131102008-02-01 Juanma Barranquero <lekktu@gmail.com>
13111
13112 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13113
131142008-02-01 Kenichi Handa <handa@m17n.org>
13115
13116 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13117 target_multibyte instead of multibyte.
13118 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13119 (bcmp_translate): Change the argument name from multibyte to
13120 target_multibyte.
13121
131222008-02-01 Kenichi Handa <handa@m17n.org>
13123
13124 These changes are to compile a regexp into a pattern that can be
13125 used both for multibyte and unibyte targets.
13126
13127 * Makefile.in (search.o): Depend on charset.h.
13128
13129 * character.c (multibyte_char_to_unibyte_safe): New function.
13130
13131 * search.c: Include "charset.h".
13132 (compile_pattern_1): Delete argument multibyte. Don't set
13133 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13134 (compile_pattern): Don't compare cp->buf.target_multibyte.
13135 Compare cp->buf.charset_unibyte.
13136 (compile_pattern): Set cp->buf.target_multibyte.
13137
13138 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13139
13140 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13141
13142 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13143 multibyte. Change callers.
13144 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13145 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13146 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13147 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13148 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13149 (regex_compile): Make the compiled pattern usable both for
13150 multibyte and unibyte targets.
13151 (analyse_first): Make the fastmap usable both for multibyte and
13152 unibyte targets.
13153 (TRANSLATE_VIA_MULTIBYTE): Delete.
13154 (re_match_2_internal): Pay attention to the case that the
13155 multibyteness of bufp and target may be different.
13156
131572008-02-01 Kenichi Handa <handa@m17n.org>
13158
13159 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13160 empty box occupy at least one column width.
13161
131622008-02-01 Miles Bader <miles@gnu.org>
13163
13164 * Makefile.in: Remove redundant HAVE_XFT clause.
13165
131662008-02-01 Kenichi Handa <handa@m17n.org>
13167
13168 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13169
131702008-02-01 Kenichi Handa <handa@m17n.org>
13171
13172 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13173 being nil.
13174
131752008-02-01 Kenichi Handa <handa@m17n.org>
13176
13177 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13178
131792008-02-01 Kenichi Handa <handa@m17n.org>
13180
13181 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13182
131832008-02-01 Kenichi Handa <handa@m17n.org>
13184
13185 * search.c (simple_search): Fix previous change.
13186
131872008-02-01 Kenichi Handa <handa@m17n.org>
13188
13189 * xftfont.c (ftfont_font_format): Extern declaration.
13190
13191 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13192
13193 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13194 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13195
13196 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13197 (ftfont_font_format): Fix previous change.
13198
13199 * font.h (Ffont_xlfd_name): EXFUN it.
13200
13201 * font.c (font_parse_xlfd): Fix the array size of `f'.
13202 (register_font_driver): Use EQ to compare driver->type.
13203
13204 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13205 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13206 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13207
132082008-02-01 Kenichi Handa <handa@m17n.org>
13209
13210 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13211 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13212
132132008-02-01 Kenichi Handa <handa@m17n.org>
13214
13215 * xfont.c (xfont_open): Set font->format.
13216
13217 * xftfont.c (xftfont_open): Set font->format.
13218
13219 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13220 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13221 (ftfont_open): Set font->format.
13222 (ftfont_font_format): New function.
13223
13224 * font.h (struct font): New member format.
13225
13226 * font.c (Qopentype): New variable.
13227 (syms_of_font): Defsym it.
13228 (Fquery_font): Change the format of the last element of the return
13229 value.
13230
132312008-02-01 Kenichi Handa <handa@m17n.org>
13232
13233 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13234 last resort.
13235
132362008-02-01 Kenichi Handa <handa@m17n.org>
13237
13238 * coding.c (detect_coding_charset): Fix detection of multi-byte
13239 charset.
13240
132412008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13242
13243 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13244
132452008-02-01 Kenichi Handa <handa@m17n.org>
13246
13247 * xdisp.c (get_next_display_element): Set it->face_id for the
13248 first component of a composition.
13249 (x_produce_glyphs): Check if the font is changed or not for composition.
13250
132512008-02-01 Kenichi Handa <handa@m17n.org>
13252
13253 * fontset.c (Qlatin): New variable.
13254 (syms_of_fontset): Define it as a lisp symbol.
13255 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13256
132572008-02-01 Kenichi Handa <handa@m17n.org>
13258
13259 * font.c (font_unparse_fcname): Pay attention to the case that
13260 some of font property is a null string.
13261
132622008-02-01 Kenichi Handa <handa@m17n.org>
13263
13264 * term.c: Include "composite.h".
13265 (encode_terminal_code): Output all components of composition.
13266 Check the size of encode_terminal_src.
13267 (produce_glyphs): For composition, call produce_composite_glyph.
13268 (append_composite_glyph, produce_composite_glyph): New functions.
13269
13270 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13271 is not found, get font_info from the current ascii face.
13272
132732008-02-01 Kenichi Handa <handa@m17n.org>
13274
13275 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13276 buffer-file-name to Qnil before calling insert_from_buffer.
13277
13278 * font.c (font_unparse_fcname): Pay attention to the case that
13279 foundry is a null string.
13280
132812008-02-01 Kenichi Handa <handa@m17n.org>
13282
13283 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13284
13285 * font.c (Qunicode_sip): New variable.
13286 (syms_of_font): Declare it as a Lisp symbol.
13287
13288 * font.h (Qunicode_sip): Extern it.
13289
132902008-02-01 Kenichi Handa <handa@m17n.org>
13291
13292 * composite.c (get_composition_id): Pay attention to TAB component.
13293
13294 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13295 TAB. Adjust for the change of s->char2b which always points to
13296 the first element of allocated memory.
13297
13298 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13299
13300 * xdisp.c (handle_composition_prop): Set it->c to the first
13301 non-TAB component.
13302 (fill_composite_glyph_string): Change argument.
13303 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13304 (x_produce_glyphs): Fix handling of left/right padding.
13305
133062008-02-01 Kenichi Handa <handa@m17n.org>
13307
13308 * coding.c (detect_coding_system): Fix for handling off
13309 inhibit_iso_escape_detection. Fix for the case that no coding
13310 system is defined for a specific coding category.
13311
133122008-02-01 Kenichi Handa <handa@m17n.org>
13313
13314 * font.c (font_matching_entity): Delete unused local var.
13315
13316 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13317 opening a font.
13318
13319 * fileio.c (Finsert_file_contents): On recovering a file, assume
13320 Unix-like eol.
13321 (choose_write_coding_system): On auto-saving a file, force
13322 Unix-like eol.
13323
13324 * coding.c (setup_coding_system): Fix setting of
13325 coding->common_flags based on eol_type.
13326 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13327 inherit from it.
13328
133292008-02-01 Kenichi Handa <handa@m17n.org>
13330
13331 * alloc.c (NSTATICS): Increas to 0x600.
13332
133332008-02-01 Kenichi Handa <handa@m17n.org>
13334
13335 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13336 (ftfont_list): Don't check :name property.
13337 (ftfont_match): New function.
13338 (ftfont_pattern_entity): If the pattern doesn't contain
13339 FC_SPACING, don't assume FC_MONO.
13340
13341 * font.h (struct font_driver): New member `match'.
13342 (font_update_drivers): Adjust prototype.
13343
13344 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13345 property of FONT.
13346 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13347 them unconditionally.
13348 (font_matching_entity): New function.
13349 (font_open_by_name): Try font_matching_entity if exact match is
13350 not found.
13351 (font_update_drivers): Delete the arg FONT. Return a list of
13352 actually used backends. Don't free faces, font caches here.
13353 Don't store data in frame parameters. Don't call x_set_font.
13354 (Ffont_spec): Store :name property as is.
13355 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13356 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13357 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13358 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13359 Call font->driver->otf_gsub instead of font_otf_gsub.
13360
13361 * frame.c (x_set_font_backend): Do more works that were done in
13362 font_update_drivers before.
13363
13364 * xfont.c (xfont_match): New function.
13365 (xfont_driver): Set xfont_driver.match to xfont_match.
13366 (xfont_draw): Set font in GC if necessary.
13367
13368 * ftxfont.c (ftxfont_match): New function.
13369 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13370
13371 * xftfont.c (xftfont_match): New function.
13372 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13373
133742008-02-01 Kenichi Handa <handa@m17n.org>
13375
13376 * font.h (struct font): New member scalable.
13377 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13378 (font_otf_gsub): Adjust prototype.
13379
13380 * font.c (font_otf_capability): Fix handling of the default langsys.
13381 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13382 Check the contents of SPEC.
13383 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13384 (check_gstring): New function.
13385 (REPLACEMENT_CHARACTER): New macro.
13386 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13387 glyph codes of GSTRING.
13388 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13389 (font_prepare_composition): Set cmp->glyph_len.
13390 (font_open_entity): Set font->scalable.
13391 (Ffont_get): Handle :otf property.
13392 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13393 functions.
13394 (Fquery_font): Use font->font.full_name.
13395 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13396 Sfont_otf_alternates.
13397
13398 * ftfont.c (ftfont_open): Set font->font.full_name and
13399 font->font.name properly. Fix calculation of font->font.height
13400 and font->min_width.
13401
13402 * ftxfont.c (ftxfont_create_gcs): New function.
13403 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13404 (ftxfont_draw_backgrond): Fix filling region.
13405 (ftxfont_default_fid): New function.
13406 (ftxfont_open): Set xfont->fid to the return value of
13407 ftxfont_default_fid.
13408 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13409 (ftxfont_done_face): Free only GCs that are created by
13410 ftxfont_create_gcs.
13411 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13412
13413 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13414 Clip to src->width, etc (not src->clip_XXX).
13415
13416 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13417 FontBackend frame parameter.
13418
134192008-02-01 Kenichi Handa <handa@m17n.org>
13420
13421 * font.h (struct font_driver_list): New member `on'.
13422 (Fclear_font_cache): EXFUN it.
13423 (font_update_drivers): Extern it.
13424
13425 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13426 (font_list_entities): Check driver_list->on.
13427 (register_font_driver): Initalize `on' member to 0.
13428 (font_update_drivers): New function.
13429 (Fclear_font_cache): Check driver_list->on.
13430
13431 * frame.h (Qfont_backend): Extern it.
13432 (x_set_font_backend): Extern it.
13433
13434 * frame.c (Qfont_backend): New variable.
13435 (frame_parms): New element for font-backend.
13436 (x_set_font_backend): New function.
13437
13438 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13439 FontBackend frame parameter.
13440 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13441 x_set_font_backend.
13442
13443 * xfont.c (xfont_list): Don't try listing by :name property if the
13444 name is not for XLFD.
13445
134462008-02-01 Kenichi Handa <handa@m17n.org>
13447
13448 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13449 (LGLYPH_SET_TO): New macros.
13450 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13451 element of G is vector or not.
13452 (font_at): Extern it.
13453
13454 * font.c: Include window.h.
13455 (font_lispy_object): New function.
13456 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13457 end of valid glyph.
13458 (font_close_object): Fix getting (struct font *).
13459 (font_at): New function.
13460 (Ffont_get): If FONT is a font-object, get entity from it.
13461 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13462 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13463 range check.
13464 (Ffont_at): New function.
13465 (syms_of_font): Defsubr Sfont_at.
13466
13467 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13468 before the entry for Qcomposition.
13469 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13470 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13471 the font in gstring.
13472 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13473 LGLYPH_FORM (g) to detect the end of valid glyph.
13474 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13475 we are composing with gstring.
13476
13477 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13478 Check if adjustment is vector or not.
13479
13480 * Makefile.in (font.o): Make it depends on window.h.
13481
134822008-02-01 Kenichi Handa <handa@m17n.org>
13483
13484 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13485 adjustment is vector or not.
13486
134872008-02-01 Miles Bader <miles@gnu.org>
13488
13489 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13490
134912008-02-01 Kenichi Handa <handa@m17n.org>
13492
13493 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13494 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13495 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13496
13497 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13498 (DEVICE_DELTA): Fix typo.
13499 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13500 LGLYPH format.
13501
13502 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13503 the change of LGLYPH format.
13504
135052008-02-01 Kenichi Handa <handa@m17n.org>
13506
13507 * ftfont.c (ftfont_list): Fix typo.
13508 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13509
135102008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13511
13512 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13513
13514 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13515 xftface_info is non-NULL.
13516
135172008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13518
13519 * ftfont.c (ftfont_list): Move misplaced #endif.
13520
135212008-02-01 Kenichi Handa <handa@m17n.org>
13522
13523 * ftfont.c (ftfont_list): Pay attention to the case that
13524 FC_CAPABILITY is not defined.
13525
135262008-02-01 Kenichi Handa <handa@m17n.org>
13527
13528 * xftfont.c (xftfont_open): Set charset related members to -1.
13529
13530 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13531 QCname.
13532 (ftfont_open): Set charset related members to -1.
13533
13534 * fontset.c (Votf_script_alist): New variable.
13535 (syms_of_fontset): Initialize it.
13536 (fontset_font): Delete unused variable.
13537
13538 * fontset.h (Votf_script_alist): Extern it.
13539
13540 * font.c (font_find_for_lface): Optimize code.
13541
13542 * font.h (font_close_object, font_merge_old_spec): Extern them.
13543
135442008-02-01 Kenichi Handa <handa@m17n.org>
13545
13546 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13547 (syms_of_font): Initialize them.
13548 (font_pixel_size): Allow float value in dpi.
13549 (font_prop_validate_type): Delete.
13550 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13551 Change caller.
13552 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13553 (font_prop_validate_extra): Delete.
13554 (font_prop_validate_spacing): New function.
13555 (font_property_table): Add elements for all known properties.
13556 (get_font_prop_index): Rename from check_font_prop_name. New
13557 argument FROM. Change caller.
13558 (font_prop_validate): Validate all known properties.
13559 (font_put_extra): Delete argument force. Change caller.
13560 (font_expand_wildcards): Make it static. Fix the way of shrinking
13561 the possible range.
13562 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13563 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13564 Change caller.
13565 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13566 (font_parse_fcname): Delete argument merge. Fix parsing of point
13567 size. Don't validate properties values here. Change caller.
13568 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13569 (font_open_by_name): Delete unused variable.
13570 (Ffont_spec): Likewise. Validate property values.
13571 (Ffont_match_p): New function.
13572
13573 * font.h (QCscalable): Extern it.
13574 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13575
13576 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13577
13578 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13579 (xfont_list_pattern): New function.
13580 (xfont_list): Use xfont_list_pattern.
13581
135822008-02-01 Kenichi Handa <handa@m17n.org>
13583
13584 * font.h (Flist_fonts): EXFUN it.
13585
135862008-02-01 Jason Rumney <jasonr@gnu.org>
13587
13588 * w32term.c (w32_initialize): Add back smoothing_type and
13589 smoothing_enabled definitions.
13590
135912008-02-01 Kenichi Handa <handa@m17n.org>
13592
13593 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13594 s->face->font on determining underline position.
13595
135962008-02-01 Kenichi Handa <handa@m17n.org>
13597
13598 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13599 (font_has_char): Accept font-object too.
13600 (font_find_for_lface): Try at first with a size specified in face.
13601
136022008-02-01 Kenichi Handa <handa@m17n.org>
13603
13604 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13605 font_open_by_name.
13606
136072008-02-01 Kenichi Handa <handa@m17n.org>
13608
13609 * font.h (QCspacing, QCdpi): Extern them.
13610 (enum font_spacing): New enum.
13611 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13612
13613 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13614 (QCspacing, QCdpi): New variables.
13615 (syms_of_font): Initialize them.
13616 (font_pixel_size): New function.
13617 (font_put_extra): New function.
13618 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13619 in FONT_EXTRA.
13620 (font_parse_fcname): Handle enumerated values (e.g. bold).
13621 Fix handling font size. Add QCname property that contains only
13622 unknown properties.
13623 (font_score): Change argument. Change caller. Pay attention to
13624 FONT_PIXEL_SIZE_QUANTUM.
13625 (font_sort_entites, font_list_entities, font_find_for_lface)
13626 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13627 (Ffont_spec): Add QCname property that contains only unknown properties.
13628
13629 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13630 include weight in listing pattern, instead check weight of each
13631 listed font. Don't include scalable in pattern. Pay attention to
13632 FONT_PIXEL_SIZE_QUANTUM.
13633
136342008-02-01 Kenichi Handa <handa@m17n.org>
13635
13636 * font.c (font_parse_fcname): Fix parsing of point-size.
13637 (font_unparse_fcname): Produce symbolic names for style properties.
13638 (font_list_entities): Handle float size correctly.
13639 (font_open_by_name): Prefer `normal' property values if the name
13640 doesn't specify them.
13641
13642 * fontset.c (Finternal_char_font): Use font_get_name, not
13643 Ffont_xlfd_name.
13644
13645 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13646 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13647 pattern. Don't force scalable.
13648
13649 * xftfont.c (xftfont_open): For generating a name, start from
13650 96-byte buffer.
13651
136522008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13653
13654 * frame.h (x_new_fontset2): Fix prototype.
13655
136562008-02-01 Kenichi Handa <handa@m17n.org>
13657
13658 * font.h (struct font_driver): Delete member parse_name.
13659 (font_match_p, font_get_spec, font_parse_fcname)
13660 (font_unparse_fcname): Extern them.
13661 (font_get_name): Adjust prototype.
13662
13663 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13664 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13665 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13666 unnecessary checks for weight, slant, and swidth.
13667 (font_parse_fcname): New function.
13668 (font_unparse_fcname): New function.
13669 (font_parse_name): New function.
13670 (font_match_p): New function.
13671 (font_get_name): Change return value to Lisp string.
13672 (font_get_spec): New function.
13673 (Qunspecified, Qignore_defface): Don't extern them.
13674 (font_find_for_lface): Assume that LFACE is fully specified.
13675 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13676 object, use it for FACE.
13677 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13678 driver->parse_name.
13679 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13680
13681 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13682 prototype.
13683
13684 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13685 argument F. Don't call Fnew_fontset. Instead, directly call
13686 make_fontset.
13687
13688 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13689
13690 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13691 of x_new_fontset2.
13692
13693 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13694 (Qsans__serif): New variables.
13695 (ftfont_generic_family_list): New variable.
13696 (syms_of_ftfont): Initialize the above variables.
13697 (ftfont_pattern_entity): Delete argument NAME.
13698 (ftfont_list_generic_family): New function.
13699 (ftfont_parse_name): Delete this function.
13700 (ftfont_list): Try generic family only when FcFontList found no font.
13701 (ftfont_list_family): Fix args to FcObjectSetBuild.
13702
13703 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13704 object in attrs[LFACE_FONT_INDEX].
13705 (set_lface_from_font_name): Cancel all changes for font-backend.
13706 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13707 function.
13708 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13709 font object in QCfont attribute.
13710 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13711 (realize_default_face) [USE_FONT_BACKEND]: Call
13712 set_lface_from_font_and_fontset.
13713
13714 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13715 "fixed", and signal error here if no suitable font was found.
13716
13717 * xfont.c (xfont_parse_name): Delete this function.
13718
13719 * xftfont.c (xftfont_open): Change coding style of error
13720 handling. Generate fontconfig's fontname pattern.
13721
13722 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13723 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13724
13725 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13726 Both args FONTSET and FONT_OBJECT must be existing ones.
13727
137282008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13729
13730 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13731
137322008-02-01 Kenichi Handa <handa@m17n.org>
13733
13734 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13735
13736 * font.h (struct font): Fix typo.
13737
13738 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13739 XLFD_XXX_INDEX.
13740 (enum xlfd_field_mask): New enum.
13741 (intern_font_field): Changed argument. Change caller. If digits
13742 are followed by non-digits, return a symbol.
13743 (font_expand_wildcards): New function.
13744 (font_parse_xlfd): Fix wildcard handling.
13745 (Ffont_spec): If :name is specified, reflect the info in the other
13746 properties.
13747
13748 * ftfont.c (ftfont_pattern_entity): Fix typo.
13749 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13750 locale.
13751
137522008-02-01 Kenichi Handa <handa@m17n.org>
13753
13754 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13755
13756 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13757 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13758 registry doesn't specify encoding part.
13759 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13760 (font_open_by_name): At first try parsing the name.
13761 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13762 as Lisp symbols.
13763
13764 * fontset.c (reorder_font_vector): Pay attention to the case that
13765 the 3rd element of font_def is nil.
13766 (fontset_font): For the default fontset, append one more fontset
13767 elements for a script-based font specification. Don't add script
13768 attribute on finding a font.
13769 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13770 font name.
13771 (fontset_ascii_font): If a font can't be opened, return nil.
13772
13773 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13774 (ftfont_pattern_entity): New function.
13775 (ftfont_get_cache): Assume that freetype_font_cache is already
13776 initialized.
13777 (ftfont_list): Handle the case that a file is specified in font
13778 name. Use ftfont_pattern_entity to generate entities.
13779 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13780 (syms_of_ftfont): Initialize freetype_font_cache.
13781
13782 * xftfont.c (xftfont_open): Make the font name fontconfig's
13783 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13784 (xftfont_close): Free font->font.name if not NULL.
13785
13786 * xfont.c (xfont_list): If script is specified for a font, return
13787 null_vector.
13788 (xfont_list_family): Declare argument type.
13789
13790 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13791 name, set LFACE_FONT (lface) to nil.
13792
13793 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13794 return Qnil.
13795
137962008-02-01 Kenichi Handa <handa@m17n.org>
13797
13798 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13799 (standard_args): Add "-enable-font-backend".
13800
138012008-02-01 Kenichi Handa <handa@m17n.org>
13802
13803 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13804 (struct xftdraw_list, xftdraw_list): Delete them.
13805 (register_xftdraw, check_xftdraw): Delete them.
13806 (xftfont_prepare_face): Don't call register_xftdraw.
13807 (xftfont_done_face): Don't call check_xftdraw.
13808 (xftfont_draw): Get background color only when with_background is
13809 nonzero.
13810
13811 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13812
138132008-02-01 Kenichi Handa <handa@m17n.org>
13814
13815 These changes are for the new font handling codes.
13816
13817 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13818 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13819 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13820 (FONTSRC, FONTOBJ): New variables.
13821 (obj): Add $(FONTOBJ).
13822 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13823 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13824 @LIBOTF_LIBS@.
13825 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13826 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13827
13828 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13829
13830 * character.h (Vscript_representative_chars): Extern it.
13831
13832 * character.c (Vscript_representative_chars): New variable.
13833 (syms_of_character): Declare it as a Lisp variable.
13834
13835 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13836 enable_font_backend is nonzero, accept the composition method
13837 COMPOSITION_WITH_GLYPH_STRING.
13838
13839 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13840 enumeration COMPOSITION_WITH_GLYPH_STRING.
13841
13842 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13843 members clip_x, clip_y, clip_width, and clip_height.
13844 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13845
13846 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13847 --enable-font-backend. Call syms_of_font.
13848
13849 * fns.c (assoc_no_quit): New function.
13850
13851 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13852 (face_for_font, new_fontset_from_font)
13853 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13854
13855 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13856 (fontset_font, fontset_ascii, face_for_char)
13857 (make_fontset_for_ascii_face, Ffont_info)
13858 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13859 is nonzero, use font-backend mechanism.
13860 (find_font_encoding): Make it non-static.
13861 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13862 New functions.
13863
13864 * frame.h (struct frame): New members resx and resy.
13865 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13866 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13867
13868 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13869 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13870
13871 * lisp.h (assoc_no_quit): Extern it.
13872
13873 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13874 Through out the file, use FONT_INFO_FROM_FACE instead of
13875 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13876 rif->per_char_metric.
13877 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13878 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13879 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13880 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13881 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13882 nonzero, use font-backend mechanism.
13883 (get_per_char_metric): New function.
13884
13885 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13886 (set_lface_from_font_name)
13887 (set_font_frame_param, free_realized_face)
13888 (prepare_face_for_display, clear_face_gcs)
13889 (Finternal_set_font_selection_order, realize_x_face)
13890 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13891 font-backend mechanism.
13892 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13893 (load_face_font) [USE_FONT_BACKEND]: Abort.
13894 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13895 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13896
13897 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13898 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13899 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13900 nonzero, register all available font drivers. Call
13901 x_default_font_parameter for deciding a font.
13902 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13903
13904 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13905 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13906 (x_set_glyph_string_clipping_exactly)
13907 (x_compute_glyph_string_overhangs)
13908 (x_draw_glyph_string_foreground)
13909 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13910 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13911 enable_font_backend is nonzero, use font-backend mechanism.
13912 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13913
139142008-02-01 Kenichi Handa <handa@m17n.org>
13915
13916 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13917 system_eol_type.
13918 (syms_of_coding): Initialize system_eol_type.
13919
13920 * process.c (Fset_process_coding_system): Inherit system's eol
13921 format if necessary.
13922
139232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13924
13925 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13926
139272008-02-01 Kenichi Handa <handa@m17n.org>
13928
13929 * coding.c (decode_eol): Pay attention to buffer relocation in
13930 del_range_2.
13931 (decode_coding): Call decode_eol before restoring undo_list.
13932
139332008-02-01 Kenichi Handa <handa@m17n.org>
13934
13935 * charset.c (Fdefine_charset_internal): Fix setting of
13936 emacs_mule_bytes.
13937
139382008-02-01 Kenichi Handa <handa@m17n.org>
13939
13940 * keyboard.c (read_char): Check if C is a character or not before
13941 looking up Vkeyboard_translate_table.
13942
139432008-02-01 Kenichi Handa <handa@m17n.org>
13944
13945 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13946 condition to terminate the loop.
13947
139482008-02-01 Kenichi Handa <handa@m17n.org>
13949
13950 * coding.c (produce_composition): Compare charbuf[i] instead of
13951 args[i] against 0.
13952 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13953
139542008-02-01 Kenichi Handa <handa@m17n.org>
13955
13956 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13957 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13958 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13959 detect_coding.
13960 (emacs_mule_char): Handle old style (Emacs 20) component character
13961 of a composition.
13962 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13963 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13964 composition rule.
13965 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13966
139672008-02-01 Kenichi Handa <handa@m17n.org>
13968
13969 * coding.c (encode_coding_ccl): Allocate destination dynamically
13970 when necessary.
13971
139722008-02-01 Kenichi Handa <handa@m17n.org>
13973
13974 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13975 the loop. When quitted, show a proper error message.
13976
139772008-02-01 Kenichi Handa <handa@m17n.org>
13978
13979 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13980 src->clip_head and src->clip_tail temporarily instead of src->hl.
13981
13982 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13983 character sequence.
13984 (Fccl_execute_on_string): Use ASET, not XSET.
13985
139862008-02-01 Kenichi Handa <handa@m17n.org>
13987
13988 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13989
139902008-02-01 Kenichi Handa <handa@m17n.org>
13991
13992 * coding.c (decode_coding): Fix the condition of terminating the
13993 decoding loop.
13994
139952008-02-01 Kenichi Handa <handa@m17n.org>
13996
13997 * data.c (Faset): On setting a character bigger than 255 in a
13998 unibyte string, signal an error instead of make the string multibyte.
13999
140002008-02-01 Kenichi Handa <handa@m17n.org>
14001
14002 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14003 made by a mapping table.
14004
140052008-02-01 Kenichi Handa <handa@m17n.org>
14006
14007 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14008 not.
14009 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14010 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14011
14012 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14013 s->face is NULL or not.
14014
140152008-02-01 Kenichi Handa <handa@m17n.org>
14016
14017 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14018 (x_draw_glyph_string): Fix drawing of right_overhang and
14019 left_overhang around/on cursor.
14020
14021 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14022
140232008-02-01 Kenichi Handa <handa@m17n.org>
14024
14025 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14026
140272008-02-01 Kenichi Handa <handa@m17n.org>
14028
14029 * coding.c (Fdefine_coding_system_internal)
14030 (Fdefine_coding_system_alias): Avoid a duplicated element in
14031 Vcoding_system_alist.
14032
140332008-02-01 Kenichi Handa <handa@m17n.org>
14034
14035 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14036
14037 * coding.c (Qcoding_system_define_form): New variable.
14038 (syms_of_coding): Intern and staticpro it.
14039 (Fcoding_system_p): Check Qcoding_system_define_form.
14040 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14041
14042 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14043 Fcoding_system_p.
14044 (CHECK_CODING_SYSTEM): If ID is not available, call
14045 Fcheck_coding_system.
14046 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14047 Try also Fcheck_coding_system.
14048
140492008-02-01 Kenichi Handa <handa@m17n.org>
14050
14051 * coding.c (code_conversion_restore): GCPRO arg.
14052
140532008-02-01 Kenichi Handa <handa@m17n.org>
14054
14055 * character.c (lisp_string_width): Check multibyteness of STRING.
14056
140572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14058
14059 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14060 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14061 (decode_mac_font_name): Use decode_coding_c_string instead of
14062 decode_coding.
14063 (x_load_font): Initialize fontp->fontset to -1. Set
14064 fontp->encoding_type.
14065
140662008-02-01 Kenichi Handa <handa@m17n.org>
14067
14068 * search.c (search_buffer): Give up BM search on case-fold-search
14069 if one of a target character has a case-equivalence of different
14070 byte length even if that target charcter is an ASCII.
14071 (simple_search): Fix calculation of byte length of matched text.
14072 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14073
140742008-02-01 Kenichi Handa <handa@m17n.org>
14075
14076 * coding.c (decode_coding): Fix handling of invalid bytes.
14077
140782008-02-01 Kenichi Handa <handa@m17n.org>
14079
14080 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14081 Unicode characters.
14082
140832008-02-01 Kenichi Handa <handa@m17n.org>
14084
14085 * coding.c (encode_coding_object): If a pre-write-conversion
14086 function makes a new buffer, kill it.
14087
140882008-02-01 Kenichi Handa <handa@m17n.org>
14089
14090 * coding.c (QCascii_compatible_p): New variable.
14091 (syms_of_coding): Initialize it.
14092 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14093 calling string_char.
14094 (record_conversion_result): Add `default:' case.
14095 (coding_charset_list): Delete unused variable `coding_type'.
14096 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14097 property in the plist of the coding system.
14098 (Fcoding_system_put): Check QCascii_compatible_p.
14099
141002008-02-01 Miles Bader <miles@gnu.org>
14101
14102 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14103 removed calculation of frame `f', as it's now used.
14104
141052008-02-01 Kenichi Handa <handa@m17n.org>
14106
14107 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14108 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14109 (UNIDATA): New variable.
14110 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14111 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14112 $(RUN_TEMACS) unconditionally.
14113
141142008-02-01 Kenichi Handa <handa@m17n.org>
14115
14116 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14117 (admindir): New variable.
14118 ($(lispsource)international/charprop.el): New target.
14119
141202008-02-01 Miles Bader <miles@gnu.org>
14121
14122 * character.c (chars-in-region): Remove obsolete function.
14123 (syms_of_character): Remove its initialization.
14124
141252008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14126
14127 * w32select.c (validate_coding_system)
14128 (setup_windows_coding_system): New functions.
14129 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14130 setup_windows_coding_system.
14131 (setup_config, Fw32_get_clipboard_data): Use
14132 validate_coding_system.
14133 (Fx_selection_exists): Move call to setup_config to a place
14134 where signals are allowed.
14135
14136 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14137 (Fcheck_coding_system): Add declarations.
14138
141392008-02-01 Kenichi Handa <handa@m17n.org>
14140
14141 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14142
141432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14144
14145 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14146 string as the second argument for x_new_fontset.
14147
141482008-02-01 Kenichi Handa <handa@m17n.org>
14149
14150 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14151 (encode_coding_object): Use safe_call instead of call2.
14152
141532008-02-01 Kenichi Handa <handa@m17n.org>
14154
14155 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14156
14157 * Makefile.in (lisp): Include charprop.el.
14158
141592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14160
14161 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14162 Not sure if it's unnecessary.
14163
141642008-02-01 Steven Tamm <steventamm@mac.com>
14165
14166 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14167 some possibly unnecessary fontset checking code that crashed
14168 when creating a new frame.
14169
141702008-02-01 Kenichi Handa <handa@m17n.org>
14171
14172 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14173 lookup_face.
14174
14175 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14176
14177 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14178
141792008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14182 (coding_charset_list): New function.
14183
14184 * coding.h (coding_charset_list): Extern it.
14185
141862008-02-01 Kenichi Handa <handa@m17n.org>
14187
14188 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14189 concatenation of family and registry.
14190
141912008-02-01 Kenichi Handa <handa@m17n.org>
14192
14193 * character.h (BYTE8_STRING): Fix typo.
14194
14195 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14196 string to multibyte (sync to HEAD).
14197
14198 * casefiddle.c (casify_region): Handle changes in byte-length
14199 using replace_range_2 (sync to HEAD).
14200
142012008-02-01 Andreas Schwab <schwab@suse.de>
14202
14203 * chartab.c (map_char_table): GCPRO table and arg.
14204
142052008-02-01 Kenichi Handa <handa@m17n.org>
14206
14207 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14208 already at limit.
14209
142102008-02-01 Kenichi Handa <handa@m17n.org>
14211
14212 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14213 instead of fast_c_string_match_ignore_case.
14214 (find_font_encoding): Change argument to Lisp_Object. Use
14215 fast_string_match_ignore_case instead of
14216 fast_c_string_match_ignore_case. Change caller.
14217
142182008-02-01 Kenichi Handa <handa@m17n.org>
14219
14220 * xdisp.c (get_next_display_element): In unibyte case, decide to
14221 display in octal form by checking a character by
14222 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14223
14224 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14225
14226 * character.c (unibyte_has_multibyte_table): New variable.
14227
14228 * character.h (unibyte_has_multibyte_table): Extern it.
14229 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14230
142312008-02-01 Kenichi Handa <handa@m17n.org>
14232
14233 * coding.c (encode_coding_iso_2022): Fix handling of charset
14234 annotation.
14235
142362008-02-01 Kenichi Handa <handa@m17n.org>
14237
14238 * coding.c (setup_coding_system): If coding_system is nil, use
14239 Qundecided.
14240 (Fterminal_coding_system): Return nil if terminal coding system is
14241 `undecided'.
14242 (syms_of_coding): Define coding-system `undecided' here. Setup
14243 terminal_coding as `undecided'.
14244
142452008-02-01 Kenichi Handa <handa@m17n.org>
14246
14247 * xdisp.c (message_dolog, set_message_1): Call
14248 unibyte_char_to_multibyte with arg type int.
14249
14250 * lread.c (read1): Fix reading of a char-table.
14251
14252 * print.c (print_object): Include sub char-table in circularities
14253 detection.
14254
142552008-02-01 Kenichi Handa <handa@m17n.org>
14256
14257 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14258 Append the found sequences in car of ARGS instead of prepending.
14259
142602008-02-01 Kenichi Handa <handa@m17n.org>
14261
14262 * fileio.c (report_file_error): Make a unibyte string from
14263 strerror (errorno).
14264 (Fsubstitute_in_file_name): Fix the arg to
14265 unibyte_char_to_multibyte. It is evaluated twice.
14266
142672008-02-01 Kenichi Handa <handa@m17n.org>
14268
14269 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14270
142712008-02-01 Kenichi Handa <handa@m17n.org>
14272
14273 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14274 BOM is not found.
14275 (detect_coding, detect_coding_system): Optimization for ISO-2022
14276 when no 8-bit data is found.
14277
142782008-02-01 Jason Rumney <jasonr@gnu.org>
14279
14280 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14281
142822008-02-01 Kenichi Handa <handa@m17n.org>
14283
14284 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14285 CHARS.
14286
142872008-02-01 Steven Tamm <steventamm@mac.com>
14288
14289 * macterm.c (mac_encode_char): Add charset argument and update
14290 to use encoding_type.
14291 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14292 switch to pure fontset.
14293 (decode_mac_font_name): Temporarily remove decoding.
14294 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14295 (x_load_font): Temporarily remove encoding.
14296
142972008-02-01 Kenichi Handa <handa@m17n.org>
14298
14299 * xfaces.c (Fface_font): If frame is not on a window system,
14300 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14301 refer to face->font.
14302 (split_font_name_into_vector, build_font_name_from_vector)
14303 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14304 when HAVE_WINDOW_SYSTEM is defined.
14305
143062008-02-01 Kenichi Handa <handa@m17n.org>
14307
14308 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14309 (x_produce_glyphs): Fix setting of members of cmp in case
14310 cmp->glyph_len is zero.
14311
14312 * fontset.c (Fset_fontset_font): Fix docstring.
14313 (Ffontset_info): Make it backward compatible. New arg ALL.
14314
143152008-02-01 Kim F. Storm <storm@cua.dk>
14316
14317 * process.c (read_process_output): Grow decoding_buf when needed;
14318 this could cause a crash in allocate_string and compact_small_strings.
14319
143202008-02-01 Kenichi Handa <handa@m17n.org>
14321
14322 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14323
143242008-02-01 Kenichi Handa <handa@m17n.org>
14325
14326 * coding.c (setup_coding_system): Set coding->common_flags
14327 correctly for raw-text.
14328 (consume_chars): On encoding unibyte text by raw-text, don't check
14329 multibyte form.
14330 (encode_coding): On encoding by raw-text, never use translation tables.
14331
14332 * fileio.c (e_write): Short cut for the case of no encoding.
14333
143342008-02-01 Kenichi Handa <handa@m17n.org>
14335
14336 * coding.c (detect_coding, detect_coding_system): Delete unused
14337 variables.
14338
143392008-02-01 Kenichi Handa <handa@m17n.org>
14340
14341 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14342 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14343
143442008-02-01 Kenichi Handa <handa@m17n.org>
14345
14346 * coding.c (Ffind_coding_systems_region_internal): Include
14347 raw-text and no-conversion in the result.
14348
143492008-02-01 Kenichi Handa <handa@m17n.org>
14350
14351 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14352 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14353 FONT_DEF.
14354 (font_def_arg, add_arg, from_arg, to_arg): New args.
14355 (set_fontset_font): Change argument.
14356 (Fset_fontset_font): Fix for the case that TARGET is a script
14357 name and charset name.
14358 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14359
143602008-02-01 Kenichi Handa <handa@m17n.org>
14361
14362 * fontset.c (fontset_font): Rename from fontset_face. Change return
14363 value.
14364 (face_suitable_for_char_p, face_for_char): Adjust for the change
14365 of fontset_font.
14366 (make_fontset_for_ascii_face): Fix setting of the fontset element
14367 for ASCII.
14368 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14369 to get a font name.
14370 (Ffontset_info): Adjust for the change of fontset_font.
14371
14372 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14373
14374 * character.h (LEADING_CODE_LATIN_1_MIN)
14375 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14376
143772008-02-01 Kenichi Handa <handa@m17n.org>
14378
14379 * editfns.c (check_translation): New function.
14380 (Ftranslate_region_internal): Handle M:N mapping.
14381
143822008-02-01 Kenichi Handa <handa@m17n.org>
14383
14384 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14385
143862008-02-01 Kenichi Handa <handa@m17n.org>
14387
14388 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14389 goto invalid_code.
14390 (decode_coding_iso_2022): Fix handling of invalid designation.
14391
14392 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14393 after calling code_conversion_save.
14394
143952008-02-01 Kenichi Handa <handa@m17n.org>
14396
14397 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14398
14399 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14400
14401 * fontset.c: Include "intervals.h".
14402 (fontset_face): Fix comparing of Lisp_Objects.
14403 (free_face_fontset, new_fontset_from_font_name): Fix
14404 Lisp_Object/int mixup.
14405
14406 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14407
14408 * coding.c: Add many prototypes for static functions.
14409 (get_translation_table): Allow max_lookup to be NULL.
14410 (decode_coding, Ffind_coding_systems_region_internal)
14411 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14412 get_translation_table with max_lookup NULL.
14413
144142008-02-01 Kenichi Handa <handa@m17n.org>
14415
14416 * coding.c (get_translation_table): Declare it as Lisp_Object.
14417 (LOOKUP_TRANSLATION_TABLE): New macro.
14418 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14419 instead of CHAR_TABLE_REF.
14420
144212008-02-01 Kenichi Handa <handa@m17n.org>
14422
14423 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14424 annotation data format.
14425 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14426 Change arguments FROM and TO to single argument NCHARS. Change caller.
14427 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14428 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14429 (decode_coding_ccl, decode_coding_charset): Pay attention to
14430 coding->charbuf_used.
14431 (get_translation): New function.
14432 (produce_chars): New arguments translation_table and last_block.
14433 Translate characters here. Return number of carryover chars.
14434 Change caller.
14435 (produce_composition): New argument pos. Change caller.
14436 Adjust for the change of annotation data format.
14437 (produce_charset, produce_annotation): Likewise.
14438 (decode_coding, encode_coding): Don't call translate_chars.
14439 (consume_chars): New arg translation_table. Change caller.
14440 (translate_chars): Delete.
14441 (syms_of_coding): Make translation-table's number of extra slots 2.
14442
144432008-02-01 Kenichi Handa <handa@m17n.org>
14444
14445 * search.c (simple_search): Fix setting this_pos_byte in backward
14446 search.
14447
14448 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14449 byte sequence.
14450 (detect_coding_ccl): Fix setting of the variable valids.
14451
144522008-02-01 Kenichi Handa <handa@m17n.org>
14453
14454 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14455
14456 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14457
14458 * editfns.c (Ftranslate_region_internal): Rename from
14459 Ftranslate_region. Accept a char-table in TABLE.
14460 (syms_of_editfns): Defsubr Stranslate_region_internal.
14461
14462 * xfaces.c (set_lface_from_font_name): If a font is specified for
14463 a frame, generate a fontset from the font.
14464 (build_scalable_font_name): If the scalable font is requested for
14465 a specific size, don't change that size.
14466 (try_font_list): Try a scalable font also in the case that a
14467 pattern string is specified.
14468
144692008-02-01 Kenichi Handa <handa@m17n.org>
14470
14471 * xfaces.c (Fface_font): New optional arg CHARACTER.
14472
144732008-02-01 Kenichi Handa <handa@m17n.org>
14474
14475 * charset.h (CHARSET_OFFSET): New macro.
14476
144772008-02-01 Kenichi Handa <handa@m17n.org>
14478
14479 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14480
14481 * fontset.c (fontset_face): Handle the case that repertory is a
14482 char-table.
14483 (find_font_encoding): Return nil for unknown encoding.
14484 (Fset_fontset_font): Ignore a font of unknown encoding.
14485
144862008-02-01 Kenichi Handa <handa@m17n.org>
14487
14488 * keymap.c (describe_vector): Handle default value of a char table.
14489
14490 * fontset.c (fontset_face): Handle fallback fonts correctly.
14491 (Ffontset_info): Return infomation about fallback fonts.
14492
144932008-02-01 Kenichi Handa <handa@m17n.org>
14494
14495 * fontset.c (FONTSET_DEFAULT): New macro.
14496 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14497 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14498 the case that it is nil.
14499 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14500 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14501
14502 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14503 subset or superset.
14504
145052008-02-01 Kenichi Handa <handa@m17n.org>
14506
14507 * emacs.c (main): Call init_charset after syms_of_XXX.
14508
14509 * charset.c (Vcharset_map_directory): Delete.
14510 (Vcharset_map_path): New variable.
14511 (load_charset_map_from_file): Use Vcharset_map_path instead.
14512 (init_charset): Initialize Vcharset_map_path.
14513 (syms_of_charset): Delete declaration of "charset-map-directory",
14514 add declaration of "charset-map-path".
14515
145162008-02-01 Kenichi Handa <handa@m17n.org>
14517
14518 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14519 ASCII only string.
14520
14521 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14522
14523 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14524 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14525
145262008-02-01 Kenichi Handa <handa@m17n.org>
14527
14528 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14529
14530 * coding.c (QCmnemonic, QCdefalut_char)
14531 (QCdecode_translation_table, QCencode_translation_table)
14532 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14533 (get_translation_table): Return a list of translation tables if
14534 necessary.
14535 (decode_coding): Call get_translation_table with ENCODEP 0.
14536 (char_encodable_p): If translation_table is non-nil, always call
14537 translate_char.
14538 (Fdefine_coding_system_internal): Accept list of translation
14539 tables as :encode-translation-table and :decode-translation-table.
14540 (Fcoding_system_put): New function.
14541 (syms_of_coding): Declare new symbols. Defsubr
14542 Scoding_system_put.
14543 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14544 typically JISX0212.
14545
14546 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14547 when the charset is superset type.
14548
14549 * character.c (translate_char): Accept list of translation tables.
14550
145512008-02-01 Kenichi Handa <handa@m17n.org>
14552
14553 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14554 (CODING_ATTR_TRANS_TBL): New macro.
14555
14556 * coding.c (get_translation_table): New function.
14557 (translate_chars): Fix the bug of skipping annotation data.
14558 (decode_coding, encode_coding): Utilize get_translation_table.
14559 (char_encodable_p, Funencodable_char_position): Translate char if
14560 necessary.
14561 (Ffind_coding_systems_region_internal)
14562 (Fcheck_coding_systems_region): Setup translation table for encode
14563 in a coding system attribute vector in advance.
14564 (Fdefine_coding_system_internal): Allow a symbol as translation
14565 table. For shift-jis type coding system, allow 4th charset.
14566
145672008-02-01 Kenichi Handa <handa@m17n.org>
14568
14569 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14570
14571 * xdisp.c (get_next_display_element): Pass -1 as POS to
14572 FACE_FOR_CHAR if displaying a C-string.
14573
145742008-02-01 Kenichi Handa <handa@m17n.org>
14575
14576 * composite.c (get_composition_id): Handle xoff and yoff in a
14577 composition rule.
14578
14579 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14580 (struct composition): New member lbearing and rbearing.
14581
14582 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14583 (x_get_glyph_overhangs): Handle a composition glyph.
14584 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14585
14586 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14587 composition glyph.
14588
145892008-02-01 Kenichi Handa <handa@m17n.org>
14590
14591 * print.c: Include charset.h.
14592 (Vprint_charset_text_property): New variable.
14593 (Qdefault): Extern it.
14594 (PRINT_STRING_NON_CHARSET_FOUND)
14595 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14596 (print_check_string_result): New variable.
14597 (print_check_string_charset_prop): New function.
14598 (print_prune_charset_plist): New variable.
14599 (print_prune_string_charset): New function.
14600 (print_object): Call print_prune_string_charset if
14601 Vprint_charset_text_property is not t.
14602 (print_interval): Print nothing if interval->plist is nil.
14603 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14604 variable. Init and staticpro print_prune_charset_plist.
14605
146062008-02-01 Kenichi Handa <handa@m17n.org>
14607
14608 * fontset.c (new_fontset_from_font_name): Use the specified font
14609 for all characters in the new fontset.
14610
14611 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14612 OBJECT args.
14613
14614 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14615 OBJECT args for composition too.
14616
14617 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14618 OBJECT args.
14619
146202008-02-01 Kenichi Handa <handa@m17n.org>
14621
14622 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14623
14624 * fontset.c (reorder_font_vector): Adjust for the change of
14625 FONT_DEF format.
14626 (fontset_face): New arg id. Change caller.
14627 (face_for_char): New args pos and object.
14628 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14629 (fs_query_fontset): Check NAME by Fassoc too.
14630 (Fset_fontset_font): Allow non-XLFD font name.
14631 (Ffontset_info): Adjust for the change of FONT_DEF format.
14632
14633 * fontset.h (face_for_char): Adjust prototype.
14634
14635 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14636 (append_space, extend_face_to_end_of_line)
14637 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14638 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14639
14640 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14641 POS and OBJECT args.
14642
14643 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14644 POS and OBJECT args.
14645
146462008-02-01 Jason Rumney <jasonr@gnu.org>
14647
14648 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14649 of GlobalAlloc'ed memory.
14650
146512008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14654
14655 * charset.h (charset_table_used): Delete extern.
14656
14657 * charset.c (charset_table_used): Make it static.
14658 (map_charset_chars): Fix args to c_function with.
14659
14660 * chartab.c (map_sub_char_table_for_charset): Fix args to
14661 c_function with.
14662
14663 * coding.h (enum coding_result_code): Delete
14664 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14665
14666 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14667 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14668 (Vlast_code_conversion_error): New variables.
14669 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14670 (ONE_MORE_BYTE): Record error if any instead of signaling an
14671 error. If non-ASCII multibyte char is found, return the negative
14672 value of the code. All callers changed to check it.
14673 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14674 (record_conversion_result): New function. Change all codes setting
14675 coding->result to call this function.
14676 (detect_coding_utf_8, decode_coding_utf_8)
14677 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14678 Don't use the local variable incomplete.
14679 (emacs_mule_char): Change the second arg to `const'.
14680 (decode_coding): Fix of flushing out unprocessed data.
14681 (make_conversion_work_buffer): Fix making of a work buffer.
14682 (decode_coding_object): Return coding->dst_object.
14683
14684 * fontset.c (set_fontset_font): Fix args.
14685
14686 * lisp.h (CHARACTERBITS): Define as 22.
14687
14688 * process.c (send_process): Be sure to set coding->src_multibyte.
14689
14690 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14691
146922008-02-01 Kenichi Handa <handa@m17n.org>
14693
14694 * xdisp.c (handle_auto_composed_prop): Give limit to
14695 Fnext_single_char_property_change.
14696
146972008-02-01 Kenichi Handa <handa@m17n.org>
14698
14699 * composite.c (syms_of_composite): Don't make the composition hash
14700 table weak.
14701
14702 * fontset.c (Fset_fontset_font): Fix docstring.
14703
14704 * lisp.h (detect_coding_system): Adjust prototype.
14705
14706 * fileio.c (kill_workbuf_unwind): Delete this function.
14707 (Finsert_file_contents): Adjust the call of detect_coding_system.
14708 Get conversion_buffer by code_conversion_save. Use the macro
14709 CODING_MAY_REQUIRE_DECODING. After decoding, update
14710 coding_system.
14711
14712 * coding.h (make_conversion_work_buffer): Delete extern.
14713 (code_conversion_save): Extern it.
14714
14715 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14716 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14717 (decode_coding_utf_8): Don't do eol converion.
14718 (detect_coding_utf_16): Check coding->src_chars, not
14719 coding->src_bytes. Add heuristics for those that have no signature.
14720 (decode_coding_emacs_mule, decode_coding_iso_2022)
14721 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14722 Don't do eol converion.
14723 (adjust_coding_eol_type): Return a new coding system.
14724 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14725 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14726 each change.
14727 (decode_coding): Pay attention to undo_list. Do eol conversion for
14728 all types of coding-systems (if necessary).
14729 (Vcode_conversion_work_buf_list): Delete it.
14730 (Vcode_conversion_reused_workbuf): Rename from
14731 Vcode_conversion_reused_work_buf.
14732 (Vcode_conversion_workbuf_name): New variable.
14733 (reused_workbuf_in_use): New variable.
14734 (make_conversion_work_buffer): Delete the arg DEPTH.
14735 (code_conversion_restore): Change argument to cons.
14736 (code_conversion_save): Delete the argument BUFFER. Change callers.
14737 (detect_coding_system): New argument src_chars. Change callers.
14738 Fix for utf-16 detection.
14739 (init_coding_once): Don't use ISO_carriage_return.
14740 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14741 reused_workbuf_in_use.
14742
147432008-02-01 Kenichi Handa <handa@m17n.org>
14744
14745 * keymap.c (store_in_keymap): Pay attention to the case that idx
14746 is a cons specifying a character range.
14747
147482008-02-01 Kenichi Handa <handa@m17n.org>
14749
14750 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14751 HANDLED_RECOMPUTE_PROPS.
14752
14753 * coding.c (Fdefine_coding_system_internal): Fix checking of
14754 ascii compatibility.
14755
147562008-02-01 Kenichi Handa <handa@m17n.org>
14757
14758 * charset.c (find_charsets_in_text): Delete unused locale variable.
14759 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14760
14761 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14762 Resync charset_list to Vemacs_mule_charset_list.
14763
14764 * keymap.c (store_in_keymap): Pay attention to the case that idx
14765 is a cons specifying a character range.
14766
147672008-02-01 Kenichi Handa <handa@m17n.org>
14768
14769 * composite.c (update_compositions): Bind inhibit-read-only, etc
14770 to t before calling remove-list-of-text-properties.
14771
14772 * print.c (print_object): Always print ASCII chars as is.
14773
147742008-02-01 Kenichi Handa <handa@m17n.org>
14775
14776 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14777
14778 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14779 is a char table.
14780
147812008-02-01 Kenichi Handa <handa@m17n.org>
14782
14783 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14784
147852008-02-01 Kenichi Handa <handa@m17n.org>
14786
14787 * xfaces.c (set_lface_from_font_name): Fix for the case that
14788 FONTNAME is not fontset name.
14789
147902008-02-01 Kenichi Handa <handa@m17n.org>
14791
14792 * fns.c (base64_encode_1): Fix previous change.
14793
147942008-02-01 Kenichi Handa <handa@m17n.org>
14795
14796 * fontset.c (set_fontset_font): New function.
14797 (Fset_fontset_font): If a font is specified for a charset, use
14798 map_charset_chars to store the font spec in a fontset.
14799
148002008-02-01 Kenichi Handa <handa@m17n.org>
14801
14802 * fontset.c (fontset_face): Create a fallback fontset on demand.
14803 (make_fontset): Don't create a fallback fontset here.
14804 (free_face_fontset): Free a fallback fontset (if any) too.
14805 (n_auto_fontsets): Delete this variable.
14806 (auto_fontset_alist): New variable.
14807 (new_fontset_from_font_name): Check auto_fontset_alist.
14808 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14809 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14810 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14811 Defsubr Sfontset_list_all.
14812
148132008-02-01 Kenichi Handa <handa@m17n.org>
14814
14815 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14816
148172008-02-01 Kenichi Handa <handa@m17n.org>
14818
14819 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14820
148212008-02-01 Kenichi Handa <handa@m17n.org>
14822
14823 * editfns.c (Fgoto_char): Fix docstring.
14824
148252008-02-01 Kenichi Handa <handa@m17n.org>
14826
14827 * insdel.c (insert_from_gap): Adjust intervals correctly.
14828
148292008-02-01 Jason Rumney <jasonr@gnu.org>
14830
14831 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14832 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14833 (w32_initialize): Try to load it.
14834 (x_get_font_repertory): Use it if available.
14835 (w32_encode_char): Add shortcut for unicode output.
14836
14837 * w32fns.c (w32_load_system_font): Default charset to -1.
14838 (x_to_w32_charset): Match all fonts for unicode.
14839 (w32_to_x_charset): New parameter matching. Don't return partial
14840 or wildcard charsets.
14841 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14842 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14843 (w32_to_x_font): Match charset to real charset.
14844 (enum_font_cb2): Always list unicode versions.
14845
14846 * makefile.w32-in (temacs): Increase EMHEAP.
14847
148482008-02-01 Jason Rumney <jasonr@gnu.org>
14849
14850 * w32term.c (w32_encode_char): New charset parameter.
14851 font_info.encoding becomes encoding_type.
14852 (x_get_font_repertory): New function. Warning: stub only!
14853 (x_new_font): Return quickly if font already set.
14854 (x_new_fontset): fontsetname parameter is Lisp_Object.
14855 Use new fs_query_fontset. Try new_fontset_from_font_name.
14856 Use fontset_name for return value.
14857
14858 * w32term.h: Declare x_get_font_repertory.
14859
14860 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14861 place of find_charset_in_text. Use encode_coding_object in place
14862 of encode_coding.
14863 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14864 decode_coding.
14865
14866 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14867 of x_new_fontset.
14868 (w32_load_system_font): Initialize charset as unicode.
14869 font_info.encoding becomes encoding_type.
14870 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14871 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14872 (syms_of_w32fns): Set get_font_repertory_func.
14873
14874 * w32console.c: Include character.h. Use terminal_encode_buffer
14875 from term.c.
14876 (write_glyphs): Use new version of encode_terminal_code. Use
14877 encode_coding_object in place of encode_coding.
14878
14879 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14880 encoding becomes encoding_type.
14881
14882 * term.c (terminal_encode_buffer): Make externally visible.
14883
14884 * makefile.w32-in: Add character.h dependancies.
14885 (character.o, chartab.o): New targets.
14886
148872008-02-01 Kenichi Handa <handa@m17n.org>
14888
14889 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14890 CODING_ID_EOL_TYPE.
14891
148922008-02-01 Andreas Schwab <schwab@suse.de>
14893
14894 * coding.c (produce_chars): Revert last change.
14895
148962008-02-01 Kenichi Handa <handa@m17n.org>
14897
14898 * charset.h (charset_unicode): Extern it.
14899
14900 * charset.c (string_xstring_p): Check by (C >= 0x100).
14901 (find_charsets_in_text): Change format of the arc CHARSETS. New
14902 arg MULTIBYTE.
14903 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14904 change of find_charsets_in_text.
14905 (Fsplit_char): Fix doc. Never return unknown.
14906
14907 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14908
14909 * coding.c (Fdefine_coding_system_alias): Update
14910 Vcoding_system_list.
14911
14912 * fontset.c (load_font_get_repertory): Pay attention to the case
14913 that ENCODING of a font is specified by a char-table.
14914
14915 * xterm.c (x_get_font_repertory): Handle the case that the
14916 encoding of font is other than Unicode.
14917
149182008-02-01 Kenichi Handa <handa@m17n.org>
14919
14920 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14921 if a character is encodable by the terminal coding system. If
14922 not, produces proper number of `?'s. Update
14923 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14924 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14925
149262008-02-01 Kenichi Handa <handa@m17n.org>
14927
14928 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14929 variables.
14930 (encode_terminal_code): Change argument. Encode multiple
14931 characters at once. Store the result of encoding in
14932 terminal_encode_buffer.
14933 (write_glyphs, insert_glyphs): Adjust for the change of
14934 encode_terminal_code.
14935 (term_init): Initialize terminal_encode_buffer and
14936 terminal_encode_buf_size.
14937
14938 * coding.c (consume_chars): If coding->src_object is nil, don't
14939 check annotation.
14940
149412008-02-01 Kenichi Handa <handa@m17n.org>
14942
14943 * character.c (char_string): Use ASCII_CHAR_P instead of
14944 SINGLE_BYTE_CHAR_P.
14945
149462008-02-01 Kenichi Handa <handa@m17n.org>
14947
14948 * xdisp.c (handle_auto_composed_prop): Check if the last
14949 characters of auto-composed region is newly composed with the
14950 following characters.
14951 (handle_composition_prop): Fix checking of point being inside
14952 composition.
14953
149542008-02-01 Kenichi Handa <handa@m17n.org>
14955
14956 * fns.c (concat): Don't change multibyteness of the result by
14957 concatenating an 8-bit character.
14958
14959 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14960 multibyteness of the result when newelt is an 8-bit character.
14961
149622008-02-01 Dave Love <fx@gnu.org>
14963
14964 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14965 EMACS_INT.
14966
14967 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14968
14969 * xfaces.c (face_numeric_value): Declare dim size_t.
14970 (Finternal_lisp_face_equal_p): Remove unused f.
14971
14972 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14973 (MATRIX_ROW): Remove unused vars.
14974 (draw_glyphs, x_insert_glyphs, fast_find_position)
14975 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14976 byte/char counts.
14977
14978 * regex.c (regex_compile): Remove unused var.
14979
14980 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14981
14982 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14983 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14984
14985 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14986
14987 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14988
14989 * fileio.c (Fwrite_region): Remove unused var.
14990
14991 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14992 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14993
14994 * composite.c (Fremove_list_of_text_properties): Declare.
14995
14996 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14997 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14998 (coding_inherit_eol_type): Remove unused attrs.
14999 (detect_coding): Cast arg of detect_eol.
15000
15001 * charset.c (syms_of_charset): Remove unused var p.
15002 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15003 byte/char counts.
15004
15005 * casetab.c (set_case_table): Remove unused var.
15006
15007 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15008 unused vars.
15009
150102008-02-01 Dave Love <fx@gnu.org>
15011
15012 * xterm.c (x_bitmap_mask): Declare.
15013
150142008-02-01 Dave Love <fx@gnu.org>
15015
15016 * xterm.c (x_term_init): Fix type error.
15017
15018 * lisp.h: Add Funibyte_char_to_multibyte.
15019
15020 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15021 (Fset_coding_system_priority): Doc fix.
15022
15023 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15024
15025 * indent.c (check_composition): Make start and end EMACS_INT.
15026
15027 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15028
15029 * xdisp.c (handle_composition_prop, check_point_in_composition):
15030 Make buffer positions EMACS_INT.
15031
15032 * composite.c (find_composition, run_composition_function)
15033 (update_compositions, Ffind_composition_internal): Make buffer
15034 positions EMACS_INT.
15035
15036 * composite.h (find_composition, update_compositions): Make
15037 position args EMACS_INT.
15038
15039 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15040
15041 * intervals.c (get_property_and_range):
15042 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15043
15044 * unexalpha.c: Don't include varargs.h.
15045
150462008-02-01 Dave Love <fx@gnu.org>
15047
15048 * coding.h (ENCODE_UTF_8): New.
15049
15050 * Makefile.in (gtkutil.o): Depend on coding.h.
15051
15052 * coding.c (Fset_coding_system_priority): Doc fix.
15053
150542008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15057 the case of auto saving.
15058
150592008-02-01 Andreas Schwab <schwab@suse.de>
15060
15061 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15062 `range' from GC.
15063
150642008-02-01 Kenichi Handa <handa@m17n.org>
15065
15066 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15067
150682008-02-01 Kenichi Handa <handa@m17n.org>
15069
15070 * fileio.c (choose_write_coding_system): Return a decided coding system.
15071 (Fwrite_region): Set Vlast_coding_system_used to the return value
15072 of choose_write_coding_system.
15073
150742008-02-01 Kenichi Handa <handa@m17n.org>
15075
15076 * charset.c (Fset_charset_priority): Pay attention to duplicated
15077 arguments.
15078
15079 * coding.c (QCcategory): New variable.
15080 (syms_of_coding): Defsym it. Set all elements of
15081 Vcoding_category_table and their symbol values.
15082 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15083 coding-category-XXX, and coding-category-list.
15084 (Fdefine_coding_system_internal): Add category in the plist.
15085
150862008-02-01 Kenichi Handa <handa@m17n.org>
15087
15088 * callproc.c (Fcall_process): Handle carryover correctly.
15089
15090 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15091 (raw_text_coding_system): Check NILP (coding_system).
15092 (coding_inherit_eol_type): Check NILP (coding_system) and
15093 NILP (parent).
15094 (consume_chars): Fix for the case of raw-text.
15095
15096 * process.c (read_process_output): Handle carryover correctly.
15097
150982008-02-01 Dave Love <fx@gnu.org>
15099
15100 * regex.c (re_search_2): Fix last change.
15101
151022008-02-01 Kenichi Handa <handa@m17n.org>
15103
15104 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15105 target_multibyte. Even in a unibyte case, return a converted
15106 multibyte char.
15107 (GET_CHAR_AFTER): New macro.
15108 (PATFETCH): Translate via multibyte char.
15109 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15110 (SETUP_MULTIBYTE_RANGE): New macro.
15111 (regex_compile): Setup compiled code so that its multibyteness
15112 matches that of a target. Fix the handling of "[X-YZ]" using
15113 SETUP_MULTIBYTE_RANGE.
15114 (analyse_first) <charset>: For filling fastmap for all multibyte
15115 characters, don't check by BASE_LEADING_CODE_P.
15116 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15117 the same as RE_MULTIBYTE_P (bufp) now.
15118 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15119 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15120 (TRANSLATE_VIA_MULTIBYTE): New macro.
15121 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15122 It is the same as RE_MULTIBYTE_P (bufp) now.
15123 <exactn>: Translate via multibyte.
15124 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15125 translate it.
15126 <charset, charset_not>: Fetch a character by
15127 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15128 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15129 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15130 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15131 by GET_CHAR_AFTER.
15132 (bcmp_translate): Likewise.
15133
15134 * search.c (compile_pattern): Check the member target_multibyte,
15135 not the member multibyte of buf.
15136
15137 * lread.c (read1): While reading a string, set force_singlebyte
15138 and force_multibyte correctly.
15139
15140 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15141 up of unibyte_to_multibyte_table.
15142
151432008-02-01 Kenichi Handa <handa@m17n.org>
15144
15145 * coding.c (setup_coding_system): If coding has
15146 post-read-conversion or pre-write-conversion, set
15147 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15148 respectively.
15149 (decode_coding_gap): Run post-read-conversion if any.
15150
15151 * fileio.c (Finsert_file_contents): Even if we read into a
15152 unibyte buffer, check if we must decode the result or not.
15153
151542008-02-01 Kenichi Handa <handa@m17n.org>
15155
15156 * coding.c (make_conversion_work_buffer): Change the work buffer
15157 name to the same one as that of Emacs 21.
15158
151592008-02-01 Kenichi Handa <handa@m17n.org>
15160
15161 * coding.h (make_conversion_work_buffer): Adjust prototype.
15162 (code_conversion_restore): Don't extern it.
15163
15164 * coding.c (detected_mask): Delete unused variable.
15165 (decode_coding_iso_2022): Pay attention to the byte sequence of
15166 CTEXT extended segment, and retain those bytes as is.
15167 (decode_coding_ccl): Delete unused variable `valids'.
15168 (setup_coding_system): Delete unused variable `category'.
15169 (consume_chars): Delete unused variable `category'. Make it work
15170 for non-multibyte case.
15171 (make_conversion_work_buffer): Change argument.
15172 (saved_coding): Delete unused variable.
15173 (code_conversion_restore): Don't check saved_coding->destination.
15174 (code_conversion_save): New function.
15175 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15176 instead of record_unwind_protect.
15177 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15178 (detect_coding_system): Delete unused variable `mask'.
15179 (Fdefine_coding_system_internal): Delete unused variable id.
15180
15181 * fileio.c (kill_workbuf_unwind): New function.
15182 (Finsert_file_contents): On replacing, call
15183 make_conversion_work_buffer with correct args, and call
15184 record_unwind_protect with the first arg kill_workbuf_unwind.
15185
15186 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15187
151882008-02-01 Kenichi Handa <handa@m17n.org>
15189
15190 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15191 (fontset_add): Fix for the case that TO is less than TO1.
15192 (Ffontset_info): Don't use fallback fontset on checking the
15193 default fontset.
15194 (dump_fontset): New function for debugging.
15195
15196 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15197 coding_type is Qcharset.
15198
151992008-02-01 Kenichi Handa <handa@m17n.org>
15200
15201 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15202 (map_char_table): Don't inherit the value from the parent on
15203 initializing VAL. Adjust for the above change.
15204
152052008-02-01 Kenichi Handa <handa@m17n.org>
15206
15207 * coding.c (Qsignature, Qendian): Delete these variables.
15208 (syms_of_coding): Don't initialize them.
15209 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15210 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15211 detect_info->found.
15212 (decode_coding_utf_16): Don't detect BOM here.
15213 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15214 is NOT utf_16_without_bom.
15215 (setup_coding_system): For a coding system of type utf-16, check
15216 if the attribute :endian is Qbig or not (not nil or not), and set
15217 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15218 (detect_coding): If coding type is utf-16 and BOM detection is
15219 required, detect it.
15220 (Fdefine_coding_system_internal): For a coding system of type
15221 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15222
152232008-02-01 Kenichi Handa <handa@m17n.org>
15224
15225 * coding.c (coding_set_source): Fix for the case that the current
15226 buffer is different from coding->src_object.
15227 (decode_coding_object): Don't use the conversion work buffer if
15228 DST_OBJECT is a buffer.
15229
152302008-02-01 Dave Love <fx@gnu.org>
15231
15232 * lread.c (read_emacs_mule_char) [len==2]: Index
15233 emacs_mule_charset correctly.
15234
152352008-02-01 Dave Love <fx@gnu.org>
15236
15237 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15238 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15239 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15240 treated specially.)
15241 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15242 (detected_mask): Remove Big5 bits.
15243
152442008-02-01 Kenichi Handa <handa@m17n.org>
15245
15246 The following changes are to make the font rescaling facility
15247 compatible with Emacs 21.
15248
15249 * xfaces.c (Vface_font_rescale_alist): Rename from
15250 Vface_resizing_fonts.
15251 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15252 (font_rescale_ratio): Rename from font_resizing_ratio.
15253 (split_font_name): Set font->rescale_ratio.
15254 (better_font_p): Pay attention to font->rescale_ratio.
15255 (build_scalable_font_name): Likewise. Change RESX, and RESY
15256 fields.
15257 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15258
152592008-02-01 Kenichi Handa <handa@m17n.org>
15260
15261 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15262 (Qutf_16_le): Remove these variables.
15263 (syms_of_coding): Don't DEFSYM them.
15264 (decode_coding_utf_16): Fix handling of BOM.
15265 (encode_coding_utf_16): Fix handling of BOM.
15266
152672008-02-01 Kenichi Handa <handa@m17n.org>
15268
15269 * fileio.c (Finsert_file_contents): On replacing, before decoding
15270 the file into the work buffer, set point of the work buffer to the end.
15271
152722008-02-01 Dave Love <fx@gnu.org>
15273
15274 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15275
152762008-02-01 Dave Love <fx@gnu.org>
15277
15278 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15279 and fix C types.
15280
152812008-02-01 Kenichi Handa <handa@m17n.org>
15282
15283 * xdisp.c (SKIP_GLYPHS): New macro.
15284 (set_cursor_from_row): Pay attention to string display properties.
15285
15286 * category.c (copy_category_entry): Fix for the case that RANGE
15287 is an integer.
15288
15289 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15290
15291 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15292
152932008-02-01 Kenichi Handa <handa@m17n.org>
15294
15295 * charset.c (Fcharset_id_internal): New function.
15296 (syms_of_charset): Defsubr it.
15297
15298 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15299 with the last arg charset_list acquired from coding.
15300 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15301 the attribute coding_attr_ccl_valids.
15302
15303 * coding.h (enum define_coding_ccl_arg_index): Set the first
15304 member coding_arg_ccl_decoder to coding_arg_max.
15305
15306 * ccl.h (ccl_driver): Adjust prototype.
15307
15308 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15309 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15310 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15311 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15312 last arg Qnil.
15313
153142008-02-01 Kenichi Handa <handa@m17n.org>
15315
15316 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15317 call encode_char.
15318
15319 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15320
153212008-02-01 Dave Love <fx@gnu.org>
15322
15323 * composite.c (syms_of_composite): Make composition_hash_table weak.
15324
153252008-02-01 Kenichi Handa <handa@m17n.org>
15326
15327 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15328 (font_name_registry): Don't extern them.
15329 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15330
15331 * fontset.h (Qfontset): Don't extern it.
15332 (new_fontset_from_font_name): Extern it.
15333
15334 * fontset.c: Give 8 extra slots to fontset objects.
15335 (Qfontset_info): New variable.
15336 (syms_of_fontset): Defsym it.
15337 (FONTSET_FALLBACK): New macro.
15338 (fontset_face): Try also the default fontset.
15339 (make_fontset): Realize a fallback fontset from the default fontset.
15340 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15341 using split_font_name_into_vector and build_font_name_from_vector.
15342 (Fset_fontset_font): Access the elements of font_spec by enum
15343 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15344 name by using split_font_name_into_vector.
15345 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15346 generate a proper font name from the fontset name. Update
15347 Vfontset_alias_alist.
15348 (n_auto_fontsets): New variable.
15349 (new_fontset_from_font_name): New function.
15350 (Ffont_info): Store the information about fonts generated from the
15351 default fontset in the first extra slot of the returned char-table.
15352
15353 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15354 (font_name_registry): Delete function.
15355 (split_font_name_into_vector): New function.
15356 (build_font_name_from_vector): New function.
15357 (font_list): The argument REGISTRY is now a list of registry names.
15358 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15359 specifies an explicit font name, return the name as is. Make a
15360 list of registy names.
15361
15362 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15363 of x_new_fontset.
15364 (Fx_create_frame): Don't call x_new_fontset here. Just use
15365 x_list_fonts to check the existence of fonts.
15366
15367 * xterm.h (x_new_fontset): Adjust prototype.
15368
15369 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15370 string. Use new_fontset_from_font_name to create a fontset from a
15371 font name.
15372
153732008-02-01 Kenichi Handa <handa@m17n.org>
15374
15375 * syntax.c (Vfind_word_boundary_function_table): New name for
15376 Vnext_word_boundary_function_table.
15377 (find-word-boundary-function-table): New name for
15378 next-word-boundary-function-table.
15379
153802008-02-01 Dave Love <fx@gnu.org>
15381
15382 * Makefile.in: Fix some dependencies.
15383
15384 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15385 set it to nil before returning.
15386
15387 * composite.c (update_compositions): Fix type error.
15388
15389 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15390
153912008-02-01 Kenichi Handa <handa@m17n.org>
15392
15393 * xterm.c (x_new_font): Optimize for the case that the font is
15394 already set for the frame.
15395
153962008-02-01 Kenichi Handa <handa@m17n.org>
15397
15398 * chartab.c (char_table_ascii): Check if the char table contents
15399 is sub-char-table or not.
15400 (char_table_set, char_table_set_range): Fix argument to
15401 char_table_ascii.
15402
15403 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15404 (detect_coding_utf_8, detect_coding_utf_16)
15405 (detect_coding_emacs_mule, detect_coding_iso_2022)
15406 (detect_coding_sjis, detect_coding_big5)
15407 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15408 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15409 sequence is valid in this coding system. Change callers.
15410 (MAX_ANNOTATION_LENGTH): New macro.
15411 (ADD_ANNOTATION_DATA): New macro.
15412 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15413 ADD_ANNOTATION_DATA. Change the format of annotation data.
15414 (ADD_CHARSET_DATA): New macro.
15415 (emacs_mule_char): New argument ID. Change callers.
15416 (decode_coding_emacs_mule, decode_coding_iso_2022)
15417 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15418 Produce charset annotation data in coding->charbuf.
15419 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15420 to charset annotation data in coding->charbuf.
15421 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15422 coding->common_flags if the coding system is iso-2022 based and
15423 uses designation.
15424 (produce_composition): Adjust for the new annotation data format.
15425 (produce_charset): New function.
15426 (produce_annotation): Handle charset annotation.
15427 (handle_composition_annotation, handle_charset_annotation): New
15428 functions.
15429 (consume_chars): Handle charset annotation. Utilize the above two
15430 functions.
15431 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15432 buffer, get the deleted text as a string and set
15433 coding->src_object to that string.
15434 (detect_coding, detect_coding_system): Use the new struct
15435 coding_detection_info.
15436
15437 * coding.h (struct coding_detection_info): New structure.
15438 (struct coding_system): Adjust prototype of the member `detector'.
15439 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15440
154412008-02-01 Kenichi Handa <handa@m17n.org>
15442
15443 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15444
154452008-02-01 Dave Love <fx@gnu.org>
15446
15447 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15448 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15449 to new local and nullify apropos_accumulate before returning.
15450 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15451
154522008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15455 correctly.
e3eea1fc 15456
aac0c6e3
MR
154572008-02-01 Dave Love <fx@gnu.org>
15458
15459 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15460
154612008-02-01 Kenichi Handa <handa@m17n.org>
15462
15463 The following changes are to make character composition happen
15464 automatically on displaying.
15465
15466 * Makefile.in (lisp, shortlisp): Add composite.elc.
15467
15468 * composite.h (Qauto_composed, Vauto_composition_function)
15469 (Qauto_composition_function): Extern them.
15470
15471 * composite.c (Vcomposition_function_table)
15472 (Qcomposition_function_table): Delete variables.
15473 (Qauto_composed, Vauto_composition_function)
15474 (Qauto_composition_function): New variables.
15475 (run_composition_function): Don't call
15476 compose-chars-after-function.
15477 (update_compositions): Clear `auto-composed' text property.
15478 (compose_chars_in_text): Delete this function.
15479 (syms_of_composite): Staticpro Qauto_composed and
15480 Qauto_composition_function. Declare Vauto_composition_function as
15481 a Lisp variable.
15482
15483 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15484
15485 * xdisp.c (it_props): Add an entry for Qauto_composed.
15486 (handle_auto_composed_prop): New function.
15487
15488 * xselect.c (selection_data_to_lisp_data): Don't call
15489 compose_chars_in_text.
15490
154912008-02-01 Dave Love <fx@gnu.org>
15492
15493 * keyboard.c (read_char): Modify checking around use of
15494 Vkeyboard_translate_table.
15495
15496 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15497 and fix C types.
15498
154992008-02-01 Kenichi Handa <handa@m17n.org>
15500
15501 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15502 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15503 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15504 the case that the last byte is '\r' correctly.
15505 (decode_coding): Flush out the unprocessed data correctly.
15506 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15507
155082008-02-01 Dave Love <fx@gnu.org>
15509
15510 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15511 Add XK_ISO... case.
15512 (xaw_scroll_callback): Revert last change.
15513
155142008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15517
155182008-02-01 Kenichi Handa <handa@m17n.org>
15519
15520 * xfaces.c (Vface_resizing_fonts): New variable.
15521 (struct font_name): New member `resizing_ratio'.
15522 (font_resizing_ratio): New function.
15523 (split_font_name): Set font->resizing_ratio.
15524 (better_font_p): Pay attention to font->resizing_ratio.
15525 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15526 RESX, and RESY fields.
15527 (try_alternative_families): Try scalable fonts if
15528 Vscalable_fonts_allowed is not Qt.
15529 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15530
155312008-02-01 Dave Love <fx@gnu.org>
15532
15533 * xterm.c (xaw_scroll_callback): Cast correctly.
15534
155352008-02-01 Dave Love <fx@gnu.org>
15536
15537 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15538 (lispy_kana_keys): Comment out.
15539 (make_lispy_event) [XK_kana_A]: Comment out.
15540
15541 * xterm.c (xaw_scroll_callback): Cast call_data.
15542 (XTread_socket): Deal with ASCII keysyms.
15543 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15544
155452008-02-01 Dave Love <fx@gnu.org>
15546
15547 * xterm.c (Vx_keysym_table): New.
15548 (syms_of_xterm): Initialize it.
15549 (XTread_socket): Use it.
15550 From head: Eliminate incorrect optimization that tried to avoid
15551 decoding the output of X*LookupString.
15552 (x_get_font_repertory): Delete charset declaration.
15553
155542008-02-01 Kenichi Handa <handa@m17n.org>
15555
15556 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15557 return 0.
15558 (Fdefine_coding_system_internal): Setup
15559 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15560
155612008-02-01 Dave Love <fx@gnu.org>
15562
15563 * coding.c (Fcheck_coding_system): Doc fix.
15564
15565 * editfns.c (Finsert_byte): Return a proper value.
15566
155672008-02-01 Kenichi Handa <handa@m17n.org>
15568
15569 * coding.c (decode_coding): Fix args to translate_chars. Pay
15570 attention to Vstandard_translation_table_for_decode.
15571 (encode_coding): Fix args to translate_chars. Pay attention to
15572 Vstandard_translation_table_for_encode.
15573
15574 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15575 SINGLE_BYTE_CHAR_P.
15576
15577 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15578 not by SINGLE_BYTE_CHAR_P.
15579
15580 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15581 SINGLE_BYTE_CHAR_P.
15582
15583 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15584 SINGLE_BYTE_CHAR_P.
15585
15586 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15587 by SINGLE_BYTE_CHAR_P.
15588
15589 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15590 SINGLE_BYTE_CHAR_P.
15591
155922008-02-01 Dave Love <fx@gnu.org>
15593
15594 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15595
155962008-02-01 Dave Love <fx@gnu.org>
15597
15598 * fns.c (Flanginfo): Fix typo.
15599
15600 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15601
156022008-02-01 Kenichi Handa <handa@m17n.org>
15603
15604 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15605 (detect_coding_emacs_mule, detect_coding_iso_2022)
15606 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15607 incomplete byte sequence. Don't update *mask when correctly detected.
15608 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15609 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15610 (detect_coding, detect_coding_system): Adjust for the changes above.
15611
156122008-02-01 Kenichi Handa <handa@m17n.org>
15613
15614 * character.c (char_string): Rename from
15615 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15616 (string_char): Rename from string_char.
15617
15618 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15619 if C is greater than MAX_3_BYTE_CHAR.
15620 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15621 string_char instead of string_char_with_unification.
15622
156232008-02-01 Dave Love <fx@gnu.org>
15624
15625 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15626
156272008-02-01 Kenichi Handa <handa@m17n.org>
15628
15629 * keymap.c (push_key_description): Pay attention to force_multibyte.
15630
15631 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15632
156332008-02-01 Dave Love <fx@gnu.org>
15634
15635 * charset.c (define_charset_internal): Rename `supprementary'.
15636
15637 * Makefile.in (lisp, shortlisp): Remove latin-N.
15638
156392008-02-01 Dave Love <fx@gnu.org>
15640
15641 * xfns.c (x_window, x_window): Use use_xim.
15642
15643 * xterm.c (use_xim): Initialize.
15644 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15645 (x_term_init): Maybe set use_xim.
15646
15647 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15648
156492008-02-01 Kenichi Handa <handa@m17n.org>
15650
15651 * search.c (search_buffer): Fix case-fold-search of multibyte
15652 characters.
15653 (boyer_moore): Rename the last argument to char_high_bits.
15654
156552008-02-01 Kenichi Handa <handa@m17n.org>
15656
15657 * xdisp.c (display_string): Fix for the case of zero width glyph.
15658
15659 * xfns.c (x_set_font): Change the error message of the case that
15660 x_new_fontset returns Qt.
15661
15662 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15663 (Finternal_set_lisp_face_attribute): Use signal_error for the
15664 error of invalid fontset.
15665
15666 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15667 fontset, return Qt.
15668
156692008-02-01 Dave Love <fx@gnu.org>
15670
15671 * unexelf.c (unexec): Make .got handling not SGI-specific.
15672
15673 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15674
15675 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15676
15677 * keyboard.c (read_key_sequence): Fix type error.
15678
15679 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15680 type error.
15681
15682 * fontset.c (fontset_add): Return Lisp_Object.
15683
156842008-02-01 Dave Love <fx@gnu.org>
15685
15686 * charset.h (charset_ordered_list_tick): Declare extern.
15687
156882008-02-01 Kenichi Handa <handa@m17n.org>
15689
15690 The following changes (and some of 2008-02-01 changes of mine) are
15691 for handling syntax, category, and case conversion for unibyte
15692 characters by converting them to multibyte on the fly. With these
15693 changes, we don't have to setup syntax and case tables for unibyte
15694 characters in each language environment.
15695
15696 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15697 multibyte if necessary.
15698
15699 * bytecode.c (Fbyte_code): Likewise.
15700
15701 * character.h (LEADING_CODE_LATIN_1_MIN)
15702 (LEADING_CODE_LATIN_1_MAX): New macros.
15703 (unibyte_to_multibyte_table): Extern it.
15704 (unibyte_char_to_multibyte): New macro.
15705 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15706 (CHAR_LEADING_CODE): New macro.
15707 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15708
15709 * character.c (unibyte_to_multibyte_table): New variable.
15710 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15711 (multibyte_char_to_unibyte): If C is an eight-bit character,
15712 convert it to the corresponding byte value.
15713
15714 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15715 not 1, signals an error. Update the elements of
15716 unibyte_to_multibyte_table.
15717 (init_charset_once): Initialize unibyte_to_multibyte_table.
15718 (syms_of_charset): Define the charset `iso-8859-1'.
15719
15720 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15721 as is without converting it to unibyte. In a unibyte buffer,
15722 convert C to multibyte before checking the syntax.
15723
15724 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15725
15726 * minibuf.c (Fminibuffer_complete_word): Use the macro
15727 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15728
15729 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15730
15731 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15732 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15733 that is zero, convert an eight-bit char to multibyte.
15734 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15735 non-emacs case.
15736 (PATFETCH): Convert an eight-bit char to multibyte.
15737 (HANDLE_UNIBYTE_RANGE): New macro.
15738 (regex_compile): Setup the compiled pattern for multibyte chars
15739 even if the given regex string is unibyte. Use PATFETCH_RAW
15740 instead of PATFETCH in many places. To handle `charset'
15741 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15742 only for ASCII chars.
15743 (analyse_first) <exactn>: Simplify because the compiled pattern
15744 is multibyte.
15745 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15746 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15747 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15748 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15749 multibyte always 1.
15750 (re_search_2): In emacs, set the locale variable multibyte to 1,
15751 otherwise to 0. New local variable target_multibyte. Check it
15752 to decide the multibyteness of STR1 and STR2. If
15753 target_multibyte is zero, convert unibyte chars to multibyte
15754 before translating and checking fastmap.
15755 (TARGET_CHAR_AND_LENGTH): New macro.
15756 (re_match_2_internal): In emacs, set the locale variable multibyte
15757 to 1, otherwise to 0. New local variable target_multibyte. Check
15758 it to decide the multibyteness of STR1 and STR2. Use
15759 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15760 <charset, charset_not>: If multibyte is nonzero, check fastmap
15761 only for ASCII chars. Call bcmp_translate with
15762 target_multibyte, not with multibyte.
15763 <begline>: Declare the local variable C as `unsigned'.
15764 (bcmp_translate): Change the last arg name to target_multibyte.
15765
15766 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15767 the regexp pattern and the matching target. Set cp->buf.multibyte
15768 to the multibyteness of the regexp pattern. Set
15769 cp->but.target_multibyte to the multibyteness of the matching target.
15770 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15771 FETCH_STRING_CHAR_ADVANCE.
15772 (Freplace_match): Convert unibyte chars to multibyte.
15773
15774 * syntax.c (char_quoted, back_comment, scan_words)
15775 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15776 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15777 unibyte chars to multibyte.
15778 (skip_chars): Delete the arg syntaxp, and move the code for
15779 handling syntaxes to skip_syntaxes. Change callers.
15780 Fix the case that the multibyteness of STRING and the current
15781 buffer doesn't match.
15782 (skip_syntaxes): New function.
15783 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15784 SINGLE_BYTE_CHAR_P.
15785
157862008-02-01 Kenichi Handa <handa@m17n.org>
15787
15788 * xfaces.c (QCfontset): New variable.
15789 (LFACE_FONTSET): New macro.
15790 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15791 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15792 (Finternal_set_lisp_face_attribute)
15793 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15794 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15795 check also LFACE_FONTSET_INDEX.
15796 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15797 attrs[LFACE_FONT_INDEX].
15798 (syms_of_xfaces): Intern and staticpro QCfontset.
15799
15800 * dispextern.h (enum lface_attribute_index): New member
15801 LFACE_FONTSET_INDEX.
15802
15803 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15804
158052008-02-01 Kenichi Handa <handa@m17n.org>
15806
15807 * coding.c (coding_set_destination): Fix coding->destination for
15808 the case converting a region.
15809 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15810 (encode_coding_object): Fix coding->dst_pos and
15811 coding->dst_pos_byte for the case converting a region.
15812
15813 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15814
15815 * character.h (BYTE8_STRING): New macro.
15816
15817 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15818
158192008-02-01 Kenichi Handa <handa@m17n.org>
15820
15821 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15822 characters by octal form.
15823
15824 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15825
15826 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15827 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15828 _fetch_multibyte_char_len.
15829 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15830
15831 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15832
15833 * casefiddle.c (casify_object): Simplify. Handle the case that
15834 the case conversion change the byte length.
15835 (casify_region): Likewise.
15836
15837 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15838
15839 * character.c (_fetch_multibyte_char_len): Delete this variable.
15840 (syms_of_character): Setup Vprintable_chars.
15841
15842 * editfns.c (Fchar_equal): Fix for the unibyte case.
15843 (Finsert_byte): New function.
15844 (syms_of_editfns): Defsubr it.
15845
15846 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15847 of direct code 0x3ffff.
15848
15849 * search.c (Freplace_match): Fix for the unibyte case.
15850
158512008-02-01 Kenichi Handa <handa@m17n.org>
15852
15853 * lread.c (safe_to_load_p): Fix the logic.
15854
15855 * syntax.c (scan_words): Don't treat characters belonging to
15856 different scripts as constituting a word.
15857
15858 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15859
15860 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15861
15862 * emacs.c (main): In the case of --unibyte, instead of aborting on
15863 finding non-empty buffer, make it unibyte.
15864
158652008-02-01 Kenichi Handa <handa@m17n.org>
15866
15867 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15868 to create a fontset.
15869
158702008-02-01 Dave Love <fx@gnu.org>
15871
15872 * character.c (Funibyte_char_to_multibyte): Doc fix.
15873
15874 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15875
158762008-02-01 Kenichi Handa <handa@m17n.org>
15877
15878 * fontset.c (fontset_add): Make the type `int'.
15879 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15880
15881 * character.c (unibyte_char_to_multibyte)
15882 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15883 charset_unibyte, not charset_primary.
15884
15885 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15886
15887 * charset.c (charset_unibyte): Rename from charset_primary.
15888 (Funibyte_charset): Rename from Fprimary_charset.
15889 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15890 (syms_of_charset): Adjust for the above changes.
15891
15892 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15893 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15894 it->multibyte_p is zero.
15895
15896 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15897 Delete extern.
15898
158992008-02-01 Kenichi Handa <handa@m17n.org>
15900
15901 * coding.c (Fdefine_coding_system_internal): Fix category setting
15902 for a coding system of type iso-2022.
15903
159042008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15907
159082008-02-01 Kenichi Handa <handa@m17n.org>
15909
15910 * syntax.c (Vnext_word_boundary_function_table): New variable.
15911 (next-word-boundary-function-table): Declare it as a Lisp variable
15912 in syms_of_syntax.
15913 (scan_words): Call functions in Vnext_word_boundary_function_table
15914 if any.
15915
15916 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15917
15918 * fontset.c (fs_load_font): If fontp->charset is not negative,
15919 return fontp without setting its members.
15920
159212008-02-01 Dave Love <fx@gnu.org>
15922
15923 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15924
15925 * m/sparc.h (HAVE_ALLOCA): Delete.
15926
15927 * s/irix6-5.h: Don't include strings.h.
15928 (bcopy, bzero, bcmp): Don't undef.
15929
15930 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15931
15932 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15933 (TIOCSIGSEND): Don't test IRIX6.
15934 (bcopy, bzero, bcmp): Define conditionally.
15935
159362008-02-01 Kenichi Handa <handa@m17n.org>
15937
15938 * buffer.c (Qas, Qmake, Qto): New variables.
15939 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15940 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15941
15942 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15943 we are inserting a process output into a multibyte buffer.
15944
15945 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15946 multibyte_char_to_unibyte.
15947
15948 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15949 by the primary charset, make it eight-bit char.
15950 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15951
15952 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15953 (charset_8_bit__control, charset_8_bit_graphic)
15954 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15955 (define_charset_internal): New function.
15956 (syms_of_charset): Call define_charset_internal for pre-defined
15957 charsets.
15958
15959 * charset.h (charset_8_bit): Extern it.
15960
15961 * coding.c (make_conversion_work_buffer): Adjust for the change
15962 of Fset_buffer_multibyte.
15963 (encode_coding_raw_text): Increment p0 in the loop.
15964
15965 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15966
15967 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15968 for the change of Fset_buffer_multibyte.
15969
15970 * fns.c (Fstring_to_multibyte): New function.
15971 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15972
159732008-02-01 Dave Love <fx@gnu.org>
15974
15975 * xfns.c (x_put_x_image): Declare args.
15976
15977 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15978 (try_font_list): Declare an arg.
15979
15980 * xdisp.c (message2_nolog, set_message): Declare an arg.
15981
15982 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15983
15984 * syntax.c (scan_sexps_forward): Declare an arg.
15985
15986 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15987 Declare an arg.
15988
15989 * lisp.h (Fnew_fontset): Declare.
15990
15991 * keymap.c (push_key_description): Call CHARACTERP correctly.
15992
15993 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15994 (face_for_char): Delete unused vars.
15995 (Fset_fontset_font): Doc fix. Delete unused vars.
15996
15997 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15998
15999 * composite.c (update_compositions): Declare arg.
16000
16001 * cm.c (calccost, cmgoto): Declare args.
16002
16003 * charset.c: Remove `emacs' conditional. Doc fixes.
16004 (map_char_table_for_charset): Declare.
16005
16006 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16007
16008 * ccl.c: Remove `emacs' conditional.
16009
160102008-02-01 Kenichi Handa <handa@m17n.org>
16011
16012 The following changes are to allow specifying multiple font
16013 patterns for a character range (specified by script or charset).
16014
16015 * Makefile.in (abbrev.o): Depend on syntax.h.
16016 (xfaces.o): Depend on charset.h.
16017
16018 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16019 SINGLE_BYTE_CHAR_P.
16020
16021 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16022
16023 * character.h (Vchar_script_table): Extern it.
16024
16025 * character.c (Vscript_alist): Delete.
16026 (Vchar_script_table, Qchar_script_table): New variable.
16027 (syms_of_character): Declare Vchar_script_table as a lisp variable
16028 and initialize it.
16029
16030 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16031 have property char-table-extra-slots, make no extra slot.
16032
16033 * dispextern.h (struct face): Delete member `charset'.
16034 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16035 SINGLE_BYTE_CHAR_P.
16036 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16037 Add prototypes.
16038 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16039 (generate_ascii_font_name): Rename from generate_ascii_font.
16040
16041 * fontset.h (get_font_repertory_func): New prototype.
16042 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16043 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16044
16045 * fontset.c (Qprepend, Qappend): New variables.
16046 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16047 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16048 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16049 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16050 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16051 (load_font_get_repertory): New functions.
16052 (fontset_set): Delete.
16053 (fontset_face): New arg FACE. Return face ID, not face.
16054 Complete re-write to handle new fontset structure. Change caller.
16055 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16056 (face_for_char): Don't call lookup_face.
16057 (make_fontset_for_ascii_face): New arg FACE.
16058 (fs_load_font): New arg CHARSET_ID. Don't check
16059 Vfont_encoding_alist here.
16060 (find_font_encoding): New function.
16061 (list_fontsets): Use STRINGP, not ! NILP.
16062 (accumulate_script_ranges): New function.
16063 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16064 re-written to handle new fontset structure.
16065 (Ffontset_font): Return a copy of element.
16066 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16067 docstring of font-encoding-alist.
16068
16069 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16070 (Fset_fotset_font): Fix arguments to 5.
16071
16072 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16073
16074 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16075 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16076 (highlight_trailing_whitespace): Adjust for the change of
16077 lookup_named_face.
16078
16079 * xfaces.c: Include charset.h.
16080 (load_face_font): Delete argument C. Change caller.
16081 (generate_ascii_font_name): Rename from generate_ascii_font.
16082 (font_name_registry): New function.
16083 (cache_face): Store ascii faces before non-ascii faces in buckets.
16084 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16085 Lookup only ascii faces.
16086 (lookup_non_ascii_face): New function.
16087 (lookup_named_face): Delete argument C. Change caller.
16088 (lookup_derived_face): Delete argument C. Change caller.
16089 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16090 a string, just call font_list with it.
16091 (choose_face_font): Delete arguments FACE and C. New arg
16092 FONT_SPEC. Change caller.
16093 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16094 Change caller.
16095 (realize_non_ascii_face): New function.
16096 (realize_x_face): Call load_face_font here.
16097 (realize_tty_face): Delete argument C. Change caller.
16098 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16099 get a face ID.
16100 (dump_realized_face): Don't print charset of FACE.
16101
16102 * xfns.c (x_set_font): Always call x_new_fontset and
16103 store_frame_parameter.
16104 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16105 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16106
16107 * xterm.h (x_get_font_repertory): Extern it.
16108
16109 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16110 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16111 it->multibyte_p is zero.
16112 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16113 (x_new_fontset): If FONTSETNAME doesn't match any existing
16114 fontsets, create a new one.
16115 (x_get_font_repertory): New function.
16116
161172008-02-01 Kenichi Handa <handa@m17n.org>
16118
16119 * coding.c (Ffind_coding_systems_region_internal): Detect an
16120 ASCII only string correctly.
16121
16122 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16123 version is 0.
16124
161252008-02-01 Kenichi Handa <handa@m17n.org>
16126
16127 * lread.c: Include "coding.h".
16128 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16129 (load_each_byte, unread_char): New variables.
16130 (readchar_backlog): Delete.
16131 (readchar): Return a character unless load_each_byte is nonzero.
16132 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16133 cons. If unread_char is not -1, simply return it.
16134 (unreadchar): Handle the case that readcharfun is
16135 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16136 (read_multibyte): Delete.
16137 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16138 (read_emacs_mule_char): New functions.
16139 (Fload): Even if the file doesn't have the extension ".elc", if
16140 safe_to_load_p returns a positive version number, assume that the
16141 file contains bytecompiled code. If the version is less than 22,
16142 load the file while decoding multibyte sequences by emacs-mule.
16143 (readevalloop): Don't use readchar_backlog.
16144 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16145 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16146 (read_escape): Delete the arg BYTEREP.
16147 (read1): Set load_each_byte to 1 temporarily while handling
16148 #@NUMBER. Don't call read_multibyte.
16149 (read_vector): Call Fread with a cons. If readcharfun is
16150 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16151 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16152 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16153 and Qload_force_doc_strings.
16154
161552008-02-01 Kenichi Handa <handa@m17n.org>
16156
16157 * xdisp.c (face_before_or_after_it_pos): Call
16158 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16159
161602008-02-01 Kenichi Handa <handa@m17n.org>
16161
16162 * character.h (TRAILING_CODE_P): New macro.
16163 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16164 (string_char_with_unification): Fix prototype.
16165 (Vscript_alist): Extern it.
16166
16167 * character.c (Vscript_alist): New variable.
16168 (string_char_with_unification, str_as_unibyte)
16169 (string_escape_byte8): Add `const' to local variables.
16170 (syms_of_character): Declare script-alist as a Lisp variable.
16171
16172 * charset.h (Vcharset_ordered_list): Extern it.
16173 (charset_ordered_list_tick): Extern it.
16174 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16175 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16176 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16177 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16178 (Funify_charset): Adjust for the change of Funify_charset.
16179
16180 * charset.c (charset_ordered_list_tick): New variable.
16181 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16182 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16183 deunify intead of unify a charset.
16184 (string_xstring_p): Add `const' to local variables.
16185 (find_charsets_in_text): Add `const' to arguments and local variables.
16186 (encode_char): Adjust for the change of Funify_charset. Fix
16187 detecting of invalid code.
16188 (Fset_charset_priority): Increment charset_ordered_list_tick.
16189 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16190 and TO_CODE.
16191
16192 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16193 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16194 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16195 (decode_coding_ccl, consume_chars)
16196 (Ffind_coding_systems_region_internal)
16197 (Fcheck_coding_systems_region): Add `const' to local variables.
16198
16199 * print.c (print_object): Use octal form for printing the
16200 contents of a bool vector.
16201
162022008-02-01 Dave Love <fx@gnu.org>
16203
16204 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16205 <version == 20>: Refuse to load.
16206
162072008-02-01 Dave Love <fx@gnu.org>
16208
16209 * fns.c: Move coding.h.
16210 (Qcodeset, Qdays, Qmonths): New.
16211 (concat): Use CHARACTERP instead of INTEGERP.
16212 (Flocale_codeset): Delete.
16213 (Flanginfo): New function.
16214 (syms_of_fns): Change accordingly.
16215
16216 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16217
162182008-02-01 Dave Love <fx@gnu.org>
16219
16220 * casetab.c (init_casetab_once, init_casetab_once): Fix
16221 CHAR_TABLE_SET call.
16222
16223 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16224
16225 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16226
16227 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16228 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16229 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16230
16231 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16232
16233 * coding.c (ENCODE_DESIGNATION, decode_eol)
16234 (make_conversion_work_buffer, code_conversion_restore)
16235 (Fdefine_coding_system_internal): Convert Lisp types.
16236 (code_conversion_restore): Use EQ, not ==.
16237 (Fencode_coding_string): Fix code_convert_string call.
16238
16239 * coding.h (code_convert_region): Fix prototype.
16240
16241 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16242
16243 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16244 (Ffontset_info): Convert Lisp types.
16245
16246 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16247
16248 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16249
16250 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16251
16252 * chartab.c: Include "...h", not <...h> in some cases.
16253
16254 * callproc.c (Fcall_process): Remove unused variables.
16255
162562008-02-01 Dave Love <fx@gnu.org>
16257
16258 * coding.c (Fset_coding_system_priority): Allow null arg list.
16259
162602008-02-01 Dave Love <fx@gnu.org>
16261
16262 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16263 (Fself_insert_and_exit): Use CHARACTERP.
16264
16265 * callproc.c (Fcall_process): Remove unused vars.
16266
16267 * xterm.c (XTread_socket): Add extra dead keysyms.
16268
16269 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16270
16271 * dispextern.h: Remove prototypes for redraw_frame,
16272 redraw_garbaged_frames.
16273
16274 * cmds.c (Fself_insert_command): Use CHARACTERP.
16275
16276 * chartab.c (make_sub_char_table): Remove unused var.
16277 (Fset_char_table_default, Fmap_char_table): Doc fix.
16278
16279 * keymap.c (access_keymap): Remove generic char code.
16280 (push_key_description): Use CHARACTERP.
16281
162822008-02-01 Dave Love <fx@gnu.org>
16283
16284 * charset.c: Doc fixes.
16285 (Funify_charset): Extra checking.
16286
162872008-02-01 Dave Love <fx@gnu.org>
16288
16289 * lread.c: Remove some unused variables.
16290 (safe_to_load_p): If safe, return the magic number version byte.
16291 (Fload): Maybe use load-with-code-conversion.
16292
162932008-02-01 Kenichi Handa <handa@m17n.org>
16294
16295 * category.c (Fmodify_category_entry): Don't modify the contents
16296 of category_set for characters out of the range. Avoid
16297 unnecessary modification.
16298
16299 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16300 Vchar_unify_table. The default value of the table is now nil.
16301
16302 * character.c (syms_of_character): Setup Vchar_width_table for
16303 eight-bit-control and raw-byte chars.
16304
16305 * charset.h (enum define_charset_arg_index): Delete
16306 charset_arg_parents and add charset_arg_subset and
16307 charset_arg_superset.
16308 (enum charset_attr_index): Delete charset_parents and add
16309 charset_subset and charset_superset.
16310 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16311 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16312 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16313 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16314 (CHARSET_SUPERSET): New macros.
16315 (charset_work): Extern it.
16316 (ENCODE_CHAR): Use charset_work.
16317 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16318 (map_charset_chars): Extern it.
16319
16320 * charset.c (load_charset_map): Set the default value of encoder
16321 and deunifier char-tables to nil.
16322 (map_charset_chars): Change argument. Change callers. Use
16323 map_char_table_for_charset instead of map_char_table.
16324 (Fmap_charset_chars): New optional args from_code and to_code.
16325 (Fdefine_charset_internal): Adjust for the change of
16326 `define-charset' (:parents -> :subset or :superset).
16327 (charset_work): New variable.
16328 (encode_char, syms_of_charset): Adjust for the change of
16329 Fdefine_charset_internal.
16330 (Ffind_charset_string): Setup the vector `charsets' correctly.
16331
16332 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16333 the previous change.
16334 (char_table_ref_and_range): Adjust for the above change.
16335 (map_sub_char_table_for_charset): New function.
16336 (map_char_table_for_charset): New function.
16337
16338 * keymap.c (describe_vector): Handle a char-table directly here.
16339 (describe_char_table): Delete.
16340
16341 * lisp.h (map_charset_chars): Delete.
16342
163432008-02-01 Dave Love <fx@gnu.org>
16344
16345 * fns.c (count_combining): Comment out (unused).
16346 (Flocale_codeset): New.
16347 (syms_of_fns): Defsubr it.
16348
16349 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16350 (size_t): Remove.
16351
163522008-02-01 Dave Love <fx@gnu.org>
16353
16354 * Makefile.in (chartab.o): Depend on charset.h.
16355
163562008-02-01 Kenichi Handa <handa@m17n.org>
16357
16358 * character.c (syms_of_character): Set the default value of
16359 Vprintable_chars to Qnil.
16360
163612008-02-01 Dave Love <fx@gnu.org>
16362
16363 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16364
163652008-02-01 Kenichi Handa <handa@m17n.org>
16366
16367 * charset.c (load_charset_map): Handle the case that from < to
16368 correctly.
16369
16370 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16371 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16372 Pay attention to raw-8-bit chars.
16373
163742008-02-01 Kenichi Handa <handa@m17n.org>
16375
16376 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16377 It is not bytecompiled now.
16378
16379 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16380 (charset_jisx0208): New variables.
16381 (Fdefine_charset_internal): Setup them if appropriate.
16382 (init_charset_once): Initialize them to -1.
16383
16384 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16385 (charset_jisx0208): Extern them.
16386
16387 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16388 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16389 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16390 (setup_iso_safe_charsets): Fix arguments to Fassq.
16391 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16392 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16393 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16394 (encode_coding_iso_2022): Change the 1st arg to
16395 ENCODE_ISO_CHARACTER to a variable.
16396
163972008-02-01 Kenichi Handa <handa@m17n.org>
16398
16399 * charset.h (enum define_charset_arg_index): New enums
16400 charset_arg_min_code and charset_arg_max_code.
16401 (struct charset): New member char_index_offset.
16402
16403 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16404 Take charset->char_index_offset into account.
16405 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16406 args[charset_arg_max_code]. Setup charset.char_index_offset.
16407 (syms_of_charset): Fix args to Fdefine_charset_internal.
16408
164092008-02-01 Dave Love <fx@gnu.org>
16410
16411 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16412
164132008-02-01 Dave Love <fx@gnu.org>
16414
16415 * coding.c: Doc fixes.
16416 (Fcoding_system_aliases): Fix return value.
16417 (Qmac): Remove (duplicated) definition.
16418
164192008-02-01 Dave Love <fx@gnu.org>
16420
362654a6
JB
16421 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16422 New functions.
aac0c6e3
MR
16423
16424 * character.c (Fstring): Doc fix.
16425
16426 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16427
362654a6 16428 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16429 (font-encoding-alist): Doc fix.
16430
164312008-02-01 Dave Love <fx@gnu.org>
16432
16433 * term.c (costs_set): Declare static, non-initialized for pcc.
16434 (encode_terminal_code): Remove unused var.
16435
16436 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16437 for K&R.
16438
16439 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16440
16441 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16442 (suffixes): Move out of make_subsidiaries for K&R.
16443
16444 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16445
16446 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16447
164482008-02-01 Dave Love <fx@gnu.org>
16449
16450 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16451
16452 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16453
164542008-02-01 Yong Lu <lyongu@asia-infonet.com>
16455
16456 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16457
16458 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16459
164602008-02-01 Kenichi Handa <handa@m17n.org>
16461
16462 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16463 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16464
164652008-02-01 Kenichi Handa <handa@m17n.org>
16466
16467 * coding.c (decode_coding_charset): Adjust for the change of
16468 Fdefine_coding_system_internal.
16469 (Fdefine_coding_system_internal): For a coding system of
16470 `charset' type, store a list of charset IDs in
16471 `charset_attr_charset_valids' element of coding attributes.
16472
164732008-02-01 Kenichi Handa <handa@m17n.org>
16474
16475 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16476 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16477 caller. Handle 2-byte and 3-byte charsets correctly.
16478 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16479 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16480 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16481 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16482 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16483 sequence.
16484 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16485 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16486 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16487 and alt&rule composition.
16488 (decode_coding_iso_2022): Handle composition correctly.
16489 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16490
16491 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16492 re-defining a charset. If the charset has :emacs-mule-id, setup
16493 emacs_mule_bytes.
16494 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16495
164962008-02-01 Kenichi Handa <handa@m17n.org>
16497
16498 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16499 (encode_coding_big5, encode_coding_charset): If coding requires safe
16500 encoding, produce a character specified by
16501 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16502
165032008-02-01 Dave Love <fx@gnu.org>
16504
16505 * xterm.c (XSetIMValues): Declare.
16506
16507 * process.c: Conditionally include sys/wait.h, pty.h.
16508
16509 * print.c (print_object): Fix print format for 64-bit systems.
16510
16511 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16512
16513 * buffer.c (emacs_strerror): Declare.
16514
16515 * fontset.c (Fclear_face_cache): Declare.
16516 (accumulate_font_info): Comment-out (unused).
16517 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16518 variables.
16519
16520 * character.h (string_escape_byte8): Declare.
16521
16522 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16523 unused vars.
16524 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16525 (Fmap_charset_chars): Doc fix.
16526
16527 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16528 (Fset_coding_system_priority, Fset_coding_system_priority)
16529 (Fdefine_coding_system_internal): Doc fix.
16530
165312008-02-01 Dave Love <fx@gnu.org>
16532
16533 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * character.c (string_escape_byte8): Make multibyte string with
16538 correct size.
16539
16540 * charset.c (Fmake_char): Delete unnecessary code.
16541
165422008-02-01 Kenichi Handa <handa@m17n.org>
16543
16544 * xfns.c (x_encode_text): Allocate coding.destination here, and
16545 call encode_coding_object with dst_object Qnil.
16546
16547 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16548 multibyte form correctly.
16549
16550 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16551 against Vfont_encoding_alist.
16552
16553 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16554 handling of charset list.
16555 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16556 (decode_coding_object): Move point to coding->dst_pos before
16557 calling post-read-conversion function.
16558 (encode_coding_object): Give correct arguments to
16559 pre-write-conversion. Ignore the return value of
16560 pre-write-conversion function. Pay attention to the case that
16561 pre-write-conversion changes the current buffer. If dst_object is
16562 Qt, even if coding->src_bytes is zero, allocate at least one byte
16563 to coding->destination.
16564
16565 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16566
16567 * charset.c (Fmake_char): Make it more backward compatible.
16568 (Fmap_charset_chars): Fix docstring.
16569
165702008-02-01 Dave Love <fx@gnu.org>
16571
16572 * coding.c: Doc fixes.
16573 (Fdefine_coding_system_alias): Use names, not symbols, in
16574 coding-system-alist.
16575
165762008-02-01 Kenichi Handa <handa@m17n.org>
16577
16578 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16579 of calling free_realized_face.
16580
165812008-02-01 Yong Lu <lyongu@asia-infonet.com>
16582
16583 * charset.c (read_hex): Don't treat SPC as a comment starter.
16584 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16585 (Fdecode_char): Fix typo.
16586
165872008-02-01 Kenichi Handa <handa@m17n.org>
16588
16589 * charset.h (struct charset): New member `code_space_mask'.
16590
16591 * coding.c (coding_set_source): Delete the local variable beg_byte.
16592 (encode_coding_charset, Fdefine_coding_system_internal):
16593 Delete the local variable charset.
16594 (Fdefine_coding_system_internal): Setup
16595 attrs[coding_attr_charset_valids] correctly.
16596
16597 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16598 member to check if CODE is valid or not.
16599 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16600 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16601 is within the range of charset->min_code and carset->max_code.
16602
166032008-02-01 Dave Love <fx@gnu.org>
16604
16605 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16606
16607 * dispextern.h (generate_ascii_font): Fix return type.
16608
16609 * xfaces.c (generate_ascii_font): Fix arg declaration.
16610
16611 * coding.c (coding_inherit_eol_type)
16612 (Fset_terminal_coding_system_internal)
16613 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16614
166152008-02-01 Kenichi Handa <handa@m17n.org>
16616
16617 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16618 multiple charsets correctly.
16619
166202008-02-01 Kenichi Handa <handa@m17n.org>
16621
16622 * search.c (boyer_moore): Fix handling of multibyte character
16623 translation.
16624
16625 * xdisp.c (display_mode_element): When the variable `elt' is
16626 changed, update `this' and `lisp_string'.
16627
166282008-02-01 Kenichi Handa <handa@m17n.org>
16629
16630 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16631
16632 * callproc.c (Fcall_process): Be sure to give the current buffer
16633 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16634
16635 * charset.c (struct charset_map_entries): New struct.
16636 (load_charset_map): Rename from parse_charset_map. New args
16637 entries and n_entries. Change caller.
16638 (load_charset_map_from_file): Rename from load_charset_map.
16639 Change caller. New arg control_flag. Call load_charset_map at
16640 the tail.
16641 (load_charset_map_from_vector): New function.
16642 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16643 (encode_char): If the charset is compact, change a character index
16644 to a code point.
16645
16646 * coding.c (coding_alloc_by_making_gap): Check the case that the
16647 source and destination are the same correctly.
16648 (decode_coding_raw_text): Set coding->consumed_char and
16649 coding->consumed to 0.
16650 (produce_chars): If coding->chars_at_source is nonzero, update
16651 coding->consumed_char and coding->consumed before calling
16652 alloc_destination.
16653 (Fdefine_coding_system_alias): Register ALIAS in
16654 Vcoding_system_alist.
16655 (syms_of_coding): Define `no-conversion' coding system at the tail.
16656
16657 * fileio.c (Finsert_file_contents): Set coding_system instead of
16658 val. If the current buffer is multibyte, always call
16659 decode_coding_gap.
16660
16661 * xfaces.c (try_font_list): Give higher priority to fontset's
16662 family than face's family.
16663
166642008-02-01 Kenichi Handa <handa@m17n.org>
16665
16666 * callproc.c (Fcall_process): Be sure to give the current buffer
16667 to decode_coding_c_string.
16668
16669 * xfaces.c (try_font_list): Give a family specified in a fontset
16670 higher priority than a family specified in a face.
16671
166722008-02-01 Kenichi Handa <handa@m17n.org>
16673
16674 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16675 Fix arguments to insert_from_buffer.
16676
16677 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16678
166792008-02-01 Kenichi Handa <handa@m17n.org>
16680
16681 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16682 (decode_coding_gap): Set coding->dst_multibyte correctly.
16683
166842008-02-01 Kenichi Handa <handa@m17n.org>
16685
16686 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16687 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16688 (encode_coding_utf_16): Substitute coding->default_char for
16689 non-Unicode characters.
16690 (decode_coding): Don't call record_insert here.
16691 (setup_coding_system): Initialize `surrogate' of
16692 coding->spec.utf_16 to 0.
16693 (EMIT_ONE_BYTE): Fix for multibyte case.
16694
16695 * insdel.c (insert_from_gap): Call record_insert.
16696
166972008-02-01 Kenichi Handa <handa@m17n.org>
16698
16699 * casefiddle.c (casify_region): Fix multibyte case.
16700
16701 * character.c (c_string_width): Add return type `int'.
16702 (char_string_with_unification): Delete arg ADVANCED.
16703
16704 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16705 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16706 (CHAR_STRING_ADVANCE): Make it do-while statement.
16707
16708 * chartab.c (sub_char_table_set_range): Optimize for the case
16709 DEPTH == 3. Add workaround code for a GCC optimization bug.
16710
16711 * charset.c (parse_charset_map): Remove an unused variable.
16712
16713 * coding.c: Delete unused variables.
16714
16715 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16716 earlier. If inserted is zero and the coding system doesn't
16717 require flushing, don't call decode_coding_gap.
16718
16719 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16720
167212008-02-01 Kenichi Handa <handa@m17n.org>
16722
16723 The following changes are for using Unicode as an internal
16724 character model, and use UTF-8 format for buffer/string
16725 representation.
16726
16727 * .gdbinit (xchartable): Adjust for the change of char table structure.
16728 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16729
16730 * Makefile.in (obj): Add character.o and chartab.o.
16731 (lisp, shortlisp): Remove utf-8.elc.
16732 (*.o): For many files, change dependency on charset.h to
16733 character.h, and add dependency on character.h.
16734 (character.o, chartab.o): New targets.
16735
16736 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16737 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16738 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16739 of "charset.h".
16740
16741 * dired.c, filelock.c: Include "character.h".
16742
16743 * alloc.c: Include "character.h" instead of "charset.h".
16744 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16745 (syms_of_alloc): Remove defsubr for Smake_char_table.
16746
16747 * buffer.c: Include "character.h" instead of "charset.h", don't
16748 include "coding.h".
16749 (Fset_buffer_multibyte): Adjust for UTF-8.
16750
16751 * buffer.h: EXFUN Fbuffer_live_p.
16752
16753 * callproc.c: Include "character.h" instead of "charset.h".
16754 (Fcall_process): Big change for the new code-conversion APIs.
16755
16756 * casetab.c: Include "character.h" instead of "charset.h".
16757 (set_canon, set_identity, shuffle): Adjust for the new
16758 map_char_table spec.
16759 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16760 accessing the char table structure.
16761
16762 * chartab.c: New file that implements char table.
16763
16764 * category.c: Include "character.h".
16765 (copy_category_entry): New function.
16766 (copy_category_table): Call map_char_table and copy_category_entry.
16767 (Fmake_category_table): Initialize all top-level slots.
16768 (char_category_set): New function.
16769 (modify_lower_category_set): Delete.
16770 (Fmodify_category_entry): Call char_table_ref_and_range.
16771
16772 * category.h (CATEGORY_SET): Just call char_category_set.
16773
16774 * ccl.c: Include "character.h".
16775 (Qccl, Qcclp): New variables.
16776 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16777 it's less than 256.
16778 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16779 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16780 and DST type.
16781 (ccl_driver): Change types of argument, adjust code accordingly.
16782 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16783 ccl_driver.
16784 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16785
16786 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16787 New members src_multibyte, dst_multibyte, consumed, and produced.
16788 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16789 (CODING_SPEC_CCL_PROGRAM): New macro.
16790 (ccl_driver): Update prototype.
16791 (Qccl, Qcclp, Fccl_program_p): Extern them.
16792 (CHECK_CCL_PROGRAM): New macro.
16793
16794 * character.c, character.h, chartab.c: New files.
16795
16796 * charset.c: Mostly re-written. Move character and multibyte sequence
16797 handling codes to character.c.
16798
16799 * charset.h: Mostly re-written. Move character and multibyte sequence
16800 handling codes to character.h.
16801
16802 * coding.c, coding.h: Mostly re-written.
16803
16804 * composite.c: Include "character.h" instead of "charset.h".
16805 (CHAR_WIDTH): Move to character.h.
16806 (HASH_KEY, HASH_VALUE): Delete.
16807
16808 * composite.h (enum composition_method): Change order of enumeration
16809 symbols.
16810
16811 * data.c: Include "character.h" instead of "charset.h".
16812 (Faref): Call CHAR_TABLE_REF for a char table.
16813 (Faset): Call CHAR_TABLE_SET for a char table.
16814
16815 * dispextern.h (free_realized_face, check_face_attribytes)
16816 (generate_ascii_font): Extern them.
16817 (free_realized_multibyte_face): Delete extern.
16818
16819 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16820 table structure.
16821
16822 * editfns.c: Include "character.h" instead of "charset.h".
16823 (Fchar_to_string): Always call CHAR_STRING.
16824
16825 * emacs.c (main): Call init_charset_once, init_charset,
16826 syms_of_chartab, and syms_of_character.
16827
16828 * fileio.c: Include "character.h" instead of "charset.h".
16829 (Finsert_file_contents): Big change for the new code-conversion API.
16830 (choose_write_coding_system, Fwrite_region): Likewise.
16831 (build_annotations_2): Delete.
16832 (e_write): Big change for the new code-conversion API.
16833
16834 * fns.c: Include "character.h" instead of "charset.h".
16835 (copy_sub_char_table): Move to chartab.c.
16836 (Fcopy_sequence): Call copy_char_table for a char table.
16837 (concat): Delete codes calling count_multibyte.
16838 (string_char_to_byte, string_byte_to_char): Adjust for the new
16839 multibyte form.
16840 (internal_equal): Adjust for the change of char table structure.
16841 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16842 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16843 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16844 (char_table_translate, optimize_sub_char_table)
16845 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16846 chartab.c.
16847 (char_table_ref_and_index): Delete.
16848 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16849 (Fmd5): Call preferred_coding_system instead of accessing
16850 Vcoding_category_list. Adjust for the new code-conversion API.
16851 (syms_of_fns): Move defsubr for char table related functions to
16852 chartab.c.
16853
16854 * fontset.c: Mostly re-written.
16855
16856 * fontset.h (struct font_info): Change type of the member encoding_type.
16857 (enum FONT_SPEC_INDEX): New enum.
16858 (fontset_font_pattern, fs_load_font): Update prototype.
16859 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16860
16861 * indent.c: Include "character.h" instead of "charset.h".
16862 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16863
16864 * insdel.c: Include "character.h" instead of "charset.h".
16865 (copy_text): Don't refer to Vnonascii_translation_table.
16866 (insert_from_gap): New function.
16867
16868 * keyboard.c: Include "character.h" instead of "charset.h".
16869 (command_loop_1): Never call direct_output_forward_char before
16870 a non-ASCII character.
16871 (read_char): If Vkeyboard_translate_table is a char table, always
16872 translate a character.
16873
16874 * keymap.c: Include "character.h".
16875 (store_in_keymap): Handle the case that IDX is a cons.
16876 (Fdefine_key): Handle the case that KEY is a cons and the car part
16877 is also a cons (range).
16878 (push_key_description): Adjust for the new character code.
16879 (describe_vector): Call describe_char_table for a char table.
16880 (describe_char_table): New function.
16881
16882 * keymap.h (describe_char_table): Extern it.
16883
16884 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16885 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16886 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16887 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16888 Delete.
16889 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16890 structure.
16891 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16892 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16893 (CHARTAB_SIZE_BITS_3): New macros.
16894 (chartab_size): Extern it.
16895 (struct Lisp_Char_Table): Re-design.
16896 (struct Lisp_Sub_Char_Table): New structure.
16897 (HASH_KEY, HASH_VALUE): Move from fns.c.
16898 (CHARACTERBITS): Define as 22.
16899 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16900 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16901 (GC_SUB_CHAR_TABLE_P): New macro.
16902 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16903 (code_convert_string_norecord): Deleted extern.
16904 (init_character_once, syms_of_character, init_charset)
16905 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16906
16907 * lread.c: Include "character.h".
16908 (read_multibyte): New arg NBYTES.
16909 (read_escape): Change the meaning of returned *BYTEREP.
16910 (to_multibyte): Delete.
16911 (read1): Adjust the handling of char table and string.
16912
16913 * print.c: Include "character.h" instead of "charset.h".
16914 (print_string): Convert 8-bit raw bytes to octal form by
16915 string_escape_byte8.
16916 (print_object): Adjust for the new multibyte form. Print 8-bit
16917 raw bytes always in octal form. Handle sub char table correctly.
16918
16919 * process.c: Include "character.h" instead of "charset.h".
16920 (read_process_output, send_process): Adjust for the new
16921 code-conversion API.
16922
16923 * puresize.h (BASE_PURESIZE): Increase.
16924
16925 * regex.c: Include "character.h" instead of "charset.h".
16926 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16927 (regex_compile): Accept a range whose starting and ending
16928 character have different leading bytes.
16929 (analyse_first): Adjust for the above change.
16930
16931 * search.c: Include "character.h" instead of "charset.h".
16932 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16933 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16934
16935 * syntax.c: Include "character.h" instead of "charset.h".
16936 (syntax_parent_lookup): Delete.
16937 (Fmodify_syntax_entry): Accept a cons as CHAR.
16938 (skip_chars): Adjust for the new multibyte form.
16939 (init_syntax_once): Call char_table_set_range instead of directly
16940 accessing the structure of a char table.
16941
16942 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16943 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16944 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16945 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16946
16947 * term.c: Include "buffer.h" and "character.h".
16948 (encode_terminal_code, write_glyphs): Adjust for the new
16949 code-conversion API.
16950 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16951
16952 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16953
16954 * xdisp.c: Include "character.h".
16955 (get_next_display_element): Adjust for the new multibyte form.
16956 (disp_char_vector): Adjust for the new char table structure.
16957 (decode_mode_spec_coding): Adjust for the new structure of
16958 coding system.
16959 (decode_mode_spec): Adjust for the new code-conversion API.
16960
16961 * xfaces.c: Include "character.h" instead of "charset.h".
16962 (load_face_font): Adjust for the change of choose_face_font and
16963 FS_LOAD_FONT.
16964 (generate_ascii_font): New function.
16965 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16966 (set_font_frame_param): Adjust for the change of choose_face_font.
16967 (free_realized_face): Make it public.
16968 (free_realized_faces_for_fontset): Rename from
16969 free_realized_multibyte_face. Free also faces realized for ASCII.
16970 (choose_face_font): Change arguments. Adjust for the change of
16971 fontset_font_pattern and FS_LOAD_FONT.
16972
16973 * xfns.c: Include "character.h".
16974 (x_encode_text): Adjust for the new code-conversion API.
16975
16976 * xselect.c: Don't include "charset.h".
16977 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16978
16979 * xterm.c: Include "character.h".
16980 (x_encode_char): New argument CHARSET. Change caller.
16981 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16982 Call ENCODE_CHAR instead of SPLIT_CHAR.
16983 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16984 CHAR_WIDTH instead of CHARSET_WIDTH.
16985 (XTread_socket): Adjust for the new code-conversion API.
16986 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16987 (x_load_font): Adjust for the change of struct font.
16988
169892008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16990
16991 * xfaces.c (face_at_buffer_position): Remove unused vars.
16992
169932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16994
16995 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16996 Fix overflow checking.
16997
169982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16999
17000 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17001 Cancel previous change.
17002
170032008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17004
17005 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17006 ccl->eight_bit_control. Fix check for buffer overflow.
17007 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17008 (ccl_driver): Initialize extra_bytes to 0.
17009
170102008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17011
17012 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17013 return it ORed with ctrl_modifier.
17014
170152008-01-29 Miles Bader <miles@gnu.org>
17016
17017 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17018
170192008-01-28 Jason Rumney <jasonr@gnu.org>
17020
17021 * w32.c (stat): Don't double check for networked drive.
17022
170232008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17024
17025 * window.c (run_window_configuration_change_hook): New function.
17026 Code extracted from set_window_buffer. Set the selected frame.
17027 (set_window_buffer): Use it.
17028 * window.h (run_window_configuration_change_hook): Declare.
17029 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17030
17031 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17032
170332008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17034
17035 * Makefile.in: Remove references to unused macros.
17036
170372008-01-26 Eli Zaretskii <eliz@gnu.org>
17038
17039 * w32.c (g_b_init_get_sid_sub_authority)
17040 (g_b_init_get_sid_sub_authority_count): New static variables.
17041 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17042 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17043 (init_user_info): Use them to retrieve uid and gid.
17044 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17045 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17046 st_uid and st_gid of the file.
17047
170482008-01-26 Jason Rumney <jasonr@gnu.org>
17049
17050 * w32.c (logon_network_drive): New function.
17051 (stat): Use it.
17052
170532008-01-26 Chong Yidong <cyd@stupidchicken.com>
17054
17055 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17056 invisible text covered with an ellipsis.
17057
170582008-01-25 Richard Stallman <rms@gnu.org>
17059
17060 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17061 jump back to beginning. Move some other initializations after that.
17062 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17063 New variables.
17064 (syms_of_xdisp): Init them.
17065
17066 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17067
17068 * buffer.c (reset_buffer_local_variables):
17069 Implement `permanent-local-hook'.
17070 (Qpermanent_local_hook): New variable.
17071 (syms_of_buffer): Init and staticpro it.
17072
170732008-01-25 Michael Albinus <michael.albinus@gmx.de>
17074
17075 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17076
170772008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17078
17079 * fns.c (Fclrhash): Return TABLE.
17080
170812008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17082
17083 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17084 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17085 is set even without positional changes.
17086 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17087
17088 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17089
170902008-01-23 Jason Rumney <jasonr@gnu.org>
17091
17092 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17093
17094 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17095 the unicode range available in MULE by locale-coding-system.
17096 Improve dbcs lead byte detection. Set event timestamp and modifiers
17097 earlier.
17098
170992008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17100
17101 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17102 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17103 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17104 when used on child processes.
17105
171062008-01-21 Michael Albinus <michael.albinus@gmx.de>
17107
17108 * dbusbind.c (Fdbus_method_return_internal): Rename from
17109 Fdbus_method_return.
17110 (Fdbus_unregister_object): Move to dbus.el.
17111 (Fdbus_call_method, Fdbus_method_return_internal)
17112 (Fdbus_send_signal): Improve debug messages.
17113
171142008-01-20 Martin Rudalics <rudalics@gmx.at>
17115
17116 * undo.c (undo_inhibit_record_point): New variable.
17117 (syms_of_undo): Initialize it.
17118 (record_point): Don't record point when undo_inhibit_record_point
17119 is set.
17120
171212008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17122
17123 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17124
17125 * xdisp.c (Qauto_hscroll_mode): New var.
17126 (syms_of_xdisp): Initialize it.
17127 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17128 window's buffer.
17129 (hscroll_windows): Don't check automatic_hscrolling_p here.
17130
17131 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17132 vscroll if we're setting window-buffer to the value it already has.
17133
171342008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17135
17136 * m/intel386.h: Remove references to XENIX.
17137
171382008-01-17 Andreas Schwab <schwab@suse.de>
17139
17140 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17141 instead of HAVE_X86_64_LIB64_DIR.
17142 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17143
171442008-01-17 Glenn Morris <rgm@gnu.org>
17145
17146 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17147 to HAVE_X86_64_LIB64_DIR.
17148
171492008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17150
17151 * s/irix3-3.h:
17152 * s/irix4-0.h:
17153 * s/386-ix.h:
17154 * s/domain.h:
17155 * s/hpux9-x11r4.h:
17156 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17157
17158 * sysdep.c: Remove code containing references to symbols defined
17159 by unsupported systems.
17160
171612008-01-16 Glenn Morris <rgm@gnu.org>
17162
17163 * coding.c (select-safe-coding-system-function): Doc fix.
17164
171652008-01-15 Glenn Morris <rgm@gnu.org>
17166
17167 * config.in: Revert 2008-01-13 change: this is a generated file.
17168
171692008-01-13 Tom Tromey <tromey@redhat.com>
17170
17171 * lisp.h: Fix typo.
17172
171732008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17174
17175 * m/sequent-ptx.h:
17176 * m/sequent.h:
17177 * s/ptx.h:
17178 * s/ptx4-2.h:
17179 * s/ptx4.h: Remove files for systems no longer supported.
17180
17181 * callproc.c (Fcall_process): Fix previous change.
17182
171832008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17184
17185 * unexsunos4.c: Remove file, system not supported anymore.
17186
17187 * m/mips.h:
17188 * m/intel386.h:
17189 * callproc.c:
17190 * config.in:
17191 * ecrt0.c:
17192 * emacs.c:
17193 * fileio.c:
17194 * frame.c:
17195 * getpagesize.h:
17196 * keyboard.c:
17197 * lread.c:
17198 * process.c:
17199 * puresize.h:
17200 * sysdep.c:
17201 * systty.h:
17202 * syswait.h:
17203 * unexec.c:
17204 * xdisp.c:
17205 * alloc.c: Remove code containing references to symbols defined by
17206 unsupported systems.
17207
172082008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17209
17210 * coding.c (detect_coding_mask): Fix previous change.
17211
172122008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17213
17214 * coding.c (detect_coding_iso2022): New arg
17215 latin_extra_code_state. Allow Latin extra codes only
17216 when *latin_extra_code_state is nonzero.
17217 (detect_coding_mask): If there is a NULL byte, detect the encoding
17218 as UTF-16 or binary. If Latin extra codes exist, detect the
17219 encoding as ISO-2022 only when there's no other proper encoding is
17220 found.
17221
172222008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17223
17224 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17225 #ifdef MAC_OS.
17226
172272008-01-08 Richard Stallman <rms@gnu.org>
17228
17229 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17230
172312008-01-06 Nick Roberts <nickrob@snap.net.nz>
17232
17233 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17234 menu bar in parentheses.
17235
172362008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17237
17238 * m/7300.h:
17239 * m/acorn.h:
17240 * m/alliant-2800.h:
17241 * m/alliant.h:
17242 * m/alliant1.h:
17243 * m/alliant4.h:
17244 * m/altos.h:
17245 * m/amdahl.h:
17246 * m/apollo.h:
17247 * m/att3b.h:
17248 * m/aviion-intel.h:
17249 * m/aviion.h:
17250 * m/celerity.h:
17251 * m/clipper.h:
17252 * m/cnvrgnt.h:
17253 * m/convex.h:
17254 * m/cydra5.h:
17255 * m/delta88k.h:
17256 * m/dpx2.h:
17257 * m/dual.h:
17258 * m/elxsi.h:
17259 * m/f301.h:
17260 * m/gould-np1.h:
17261 * m/gould.h:
17262 * m/i860.h:
17263 * m/ibmps2-aix.h:
17264 * m/ibmrt-aix.h:
17265 * m/ibmrt.h:
17266 * m/irist.h:
17267 * m/is386.h:
17268 * m/isi-ov.h:
17269 * m/mega68.h:
17270 * m/mg1.h:
17271 * m/news-r6.h:
17272 * m/news-risc.h:
17273 * m/news.h:
17274 * m/nh3000.h:
17275 * m/nh4000.h:
17276 * m/ns16000.h:
17277 * m/ns32000.h:
17278 * m/nu.h:
17279 * m/orion.h:
17280 * m/orion105.h:
17281 * m/paragon.h:
17282 * m/pfa50.h:
17283 * m/plexus.h:
17284 * m/pyramid.h:
17285 * m/pyrmips.h:
17286 * m/sh3el.h:
17287 * m/sps7.h:
17288 * m/sr2k.h:
17289 * m/stride.h:
17290 * m/sun1.h:
17291 * m/sun2.h:
17292 * m/sun3-68881.h:
17293 * m/sun3-fpa.h:
17294 * m/sun3-soft.h:
17295 * m/sun3.h:
17296 * m/sun386.h:
17297 * m/symmetry.h:
17298 * m/tad68k.h:
17299 * m/tahoe.h:
17300 * m/targon31.h:
17301 * m/tek4300.h:
17302 * m/tekxd88.h:
17303 * m/tower32.h:
17304 * m/tower32v3.h:
17305 * m/ustation.h:
17306 * m/wicat.h:
17307 * m/xps100.h:
17308 * s/cxux.h:
17309 * s/cxux7.h:
17310 * s/dgux.h:
17311 * s/dgux4.h:
17312 * s/dgux5-4-3.h:
17313 * s/dgux5-4r2.h:
17314 * s/esix.h:
17315 * s/esix5r4.h:
17316 * s/hiuxmpp.h:
17317 * s/hiuxwe2.h:
17318 * s/iris3-5.h:
17319 * s/iris3-6.h:
17320 * s/isc2-2.h:
17321 * s/isc3-0.h:
17322 * s/isc4-0.h:
17323 * s/isc4-1.h:
17324 * s/newsos5.h:
17325 * s/newsos6.h:
17326 * s/osf1.h:
17327 * s/osf5-0.h:
17328 * s/riscix1-1.h:
17329 * s/riscix12.h:
17330 * s/sco4.h:
17331 * s/sco5.h:
17332 * s/sunos4-0.h:
17333 * s/sunos4-1.h:
17334 * s/sunos413.h:
17335 * s/sunos4shr.h:
17336 * s/umax.h:
17337 * s/unipl5-2.h:
17338 * s/xenix.h:
17339 * cxux-crt0.s:
17340 * unexapollo.c:
17341 * unexconvex.c:
17342 * unexenix.c:
17343 * unexsni.c: Remove files for systems no longer supported.
17344
17345 * m/intel386.h: Remove references to unsupported systems.
17346
17347 * w32.c (get_emacs_configuration): Remove reference to i860.
17348
17349 * sysdep.c: Remove dead code.
17350
173512008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17352
17353 * s/rtu.h:
17354 * m/masscomp.h: Remove files. Platform is obsolete.
17355
173562008-01-04 Michael Albinus <michael.albinus@gmx.de>
17357
17358 * dbusbind.c (Fdbus_method_return): New function.
17359 (xd_read_message): Add the serial number to the event.
17360 (Fdbus_register_method): Activate the function.
17361
173622008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17363
17364 * keyboard.c (read_key_sequence): Fix typo.
17365
173662008-01-03 Michael Albinus <michael.albinus@gmx.de>
17367
17368 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17369 (xd_signature, xd_append_arg): Handle element type detection for
17370 empty arrays.
17371 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17372 SDATA () calls; this must be solved more general.
17373 (Fdbus_register_signal): Use SBYTES instead of strlen.
17374
173752008-01-03 Magnus Henoch <magnus@zemdatav>
17376
17377 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17378 unsigned int for byte values (necessary for big-endian platform).
17379 (Fdbus_call_method): Handle the case of no returned arguments.
17380
173812007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17382
17383 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17384
173852007-12-31 Magnus Henoch <mange@freemail.hu>
17386
17387 * dbusbind.c (xd_signature): Signature of variant is just "v".
17388
173892007-12-30 Michael Albinus <michael.albinus@gmx.de>
17390
17391 * dbusbind.c: Fix several errors and compiler warnings.
17392 Reported by Tom Tromey <tromey@redhat.com>.
17393 (XD_ERROR, XD_DEBUG_MESSAGE)
17394 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17395 (xd_append_arg): Part for basic D-Bus types rewritten.
17396 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17397 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17398 appropriate.
17399 (xd_read_message): Return Qnil. Don't signal an error; it is not
17400 useful during event reading.
17401 (Fdbus_register_signal): Signal an error if the check for
17402 FUNCTIONP fails.
17403 (Fdbus_register_method): New function. The implementation is not
17404 complete, the call of the function signals an error therefore.
17405 (Fdbus_unregister_object): New function, renamed from
17406 Fdbus_unregister_signal. The initial check signals an error, if
17407 the object is not well formed.
17408
174092007-12-30 Richard Stallman <rms@gnu.org>
17410
17411 * textprop.c (get_char_property_and_overlay):
17412 Signal error if POSITION is out of range in a buffer.
17413
174142007-12-29 Martin Rudalics <rudalics@gmx.at>
17415
17416 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17417 because the original parameters are in pure storage now.
17418
174192007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17420
17421 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17422
174232007-12-22 Eli Zaretskii <eliz@gnu.org>
17424
17425 * callint.c (syms_of_callint) <command-history>: Add reference to
17426 history-length in the doc string.
17427
174282007-12-17 Jason Rumney <jasonr@gnu.org>
17429
17430 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17431 before passing as wParam.
17432
174332007-12-22 Michael Albinus <michael.albinus@gmx.de>
17434
17435 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17436 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17437 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17438 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17439 as number.
17440 (Fdbus_call_method): Fix docstring.
17441
174422007-12-21 Michael Albinus <michael.albinus@gmx.de>
17443
17444 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17445 New macros.
17446 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17447 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17448 Simplify.
17449 (xd_signature): New function.
17450 (xd_append_arg): Compute also signatures. Major rewrite.
17451 (xd_retrieve_arg): Make debug messages friendly.
17452 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17453 Check for signatures of arguments.
17454
174552007-12-19 Michael Albinus <michael.albinus@gmx.de>
17456
17457 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17458 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17459 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17460 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17461 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17462 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17463 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17464 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17465 (xd_retrieve_value): Remove. Functionality included in ...
17466 (xd_append_arg): New function.
17467 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17468
174692007-12-16 Michael Albinus <michael.albinus@gmx.de>
17470
17471 * dbusbind.c (top): Include <stdio.h>.
17472 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17473 dbus_message_new_method_call and dbus_message_new_signal.
17474 (Fdbus_register_signal): Rename unique_name to uname.
17475 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17476 non-existing unique name. Fix typos in matching rule. Return an
17477 object which is useful in Fdbus_unregister_signal.
17478 (Fdbus_unregister_signal): Reimplementation, in order to remove
17479 only the corresponding entry.
17480 (Vdbus_registered_functions_table): Change the order of entries.
17481 Apply these changes in xd_read_message and Fdbus_register_signal.
17482
174832007-12-16 Andreas Schwab <schwab@suse.de>
17484
17485 * fileio.c (Finsert_file_contents): Fix overflow check to not
17486 depend on undefined integer overflow.
17487
174882007-12-14 Jason Rumney <jasonr@gnu.org>
17489
17490 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17491 for characters above 127.
17492
174932007-12-13 Jason Rumney <jasonr@gnu.org>
17494
17495 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17496 before dereferencing array.
17497 (lookup_vk_code): Remove zero comparison.
17498
174992007-12-14 Michael Albinus <michael.albinus@gmx.de>
17500
17501 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17502 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17503 Use `unsigned int' instead of `uint'.
17504 (xd_read_message, Fdbus_register_signal): Split expressions into
17505 multiple lines before operators "&&" and "||", according to the
17506 GNU Coding Standards.
17507
175082007-12-14 Eli Zaretskii <eliz@gnu.org>
17509
17510 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17511
175122007-12-12 Juri Linkov <juri@jurta.org>
17513
17514 * buffer.c (Frename_buffer): In interactive spec replace
17515 `read-buffer' with `read-string' that uses `buffer-name-history'
17516 as history, and the current buffer's name as default.
17517
175182007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17519
17520 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17521 manipulating the backtrace manually.
17522 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17523 (struct backtrace, backtrace_list): Remove.
17524 (command_loop_1): Remove dead var `no_direct'.
17525
17526 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17527 preserve non-built-in buffer-local variables.
17528 (Fkill_all_local_variables): Don't re-create&re-set permanent
17529 buffer-local variables.
17530
175312007-12-09 Juri Linkov <juri@jurta.org>
17532
17533 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17534 Lisp code that uses `read-buffer' with current buffer as default.
17535
175362007-12-08 Michael Albinus <michael.albinus@gmx.de>
17537
17538 * dbusbind.c (xd_read_message): Generate an event for every
17539 registered handler. There might be several handlers registered
17540 for the same signal.
17541 (Fdbus_register_signal): Don't overwrite a registration for the
17542 same signal. Add a new registration if handlers are different.
17543 (Vdbus_registered_functions_table): Rework doc string.
17544
175452007-12-07 Michael Albinus <michael.albinus@gmx.de>
17546
17547 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17548 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17549 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17550 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17551 Unify argument lists.
17552 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17553 arguments and hash table keys. Use unique name for service.
17554 (Fdbus_unregister_signal): Remove checks.
17555 (Vdbus_registered_functions_table): Fix doc string.
17556
175572007-12-05 Magnus Henoch <mange@freemail.hu>
17558
17559 * process.c (make_process): Initialize pty_flag to 0.
17560
175612007-12-05 Jason Rumney <jasonr@gnu.org>
17562
17563 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17564 specified XBMs.
17565
175662007-12-05 Richard Stallman <rms@gnu.org>
17567
17568 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17569
175702007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17571
17572 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17573 New variable.
17574 (mac_try_close_socket) [MAC_OSX]: New function.
17575 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17576 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17577
17578 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17579 Use mac_try_close_socket.
17580
175812007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17582
17583 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17584 reloc_base.
17585 (copy_dysymtab): Compute relocation base here.
17586 (rebase_reloc_address) [__ppc64__]: New function.
17587 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17588 changed.
17589
175902007-12-05 Jason Rumney <jasonr@gnu.org>
17591
17592 * w32proc.c (sys_spawnve): Quote args with wildcards.
17593
175942007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17595
17596 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17597 __objc_* sections.
17598 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17599
176002007-12-05 Michael Albinus <michael.albinus@gmx.de>
17601
17602 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17603 Move check for Vdbus_registered_functions_table to
17604 xd_read_queued_messages.
17605 (xd_read_queued_messages): Protect xd_read_message calls by
17606 internal_condition_case_1.
17607
176082007-12-04 Michael Albinus <michael.albinus@gmx.de>
17609
17610 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17611 Qdbus_system_bus and Qdbus_session_bus, respectively.
17612 (Vdbus_intern_symbols): Remove.
17613 (Vdbus_registered_functions_table): New hash table.
17614 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17615 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17616 Rewrite in order to manage registered functions by hash table
17617 Vdbus_registered_functions_table.
17618
176192007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17620
17621 * xterm.c: Update URL to Window Manager Specification in comment.
17622
176232007-12-02 Michael Albinus <michael.albinus@gmx.de>
17624
17625 * config.in (HAVE_DBUS): Add.
17626
17627 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17628 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17629 (obj): Add $(DBUS_OBJ).
17630 (LIBES): Add $(DBUS_LIBS).
17631 (dbusbind.o): New target.
17632
17633 * dbusbind.c: New file.
17634
17635 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17636
17637 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17638 (Qdbus_event): New Lisp symbol.
17639 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17640 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17641 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17642
17643 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17644
176452007-12-01 Richard Stallman <rms@gnu.org>
17646
17647 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17648
176492007-11-30 Jason Rumney <jasonr@gnu.org>
17650
17651 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17652 (w32con_reset_terminal_modes): Clear screen buffer.
17653 (w32_face_attributes): Don't use color indexes that are out of range.
17654 Only reverse the default colors.
17655
17656 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17657 WINDOWSNT.
17658
17659 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17660
176612007-11-29 Jason Rumney <jasonr@gnu.org>
17662
17663 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17664 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17665 if the terminal colors are initialized.
17666 (unspecified_fg, unspecified_bg): Remove unused declarations.
17667
176682007-11-29 Andreas Schwab <schwab@suse.de>
17669
17670 * keyboard.c (apply_modifiers): Fix typo.
17671
176722007-11-29 Richard Stallman <rms@gnu.org>
17673
17674 * keymap.c (Fcurrent_local_map): Doc fix.
17675
176762007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17677
17678 * s/gnu-kfreebsd.h: New file.
17679
176802007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17681
17682 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17683 Don't cast redundantly.
17684
17685 * keyboard.c (KEY_TO_CHAR): New macro.
17686 (parse_modifiers, apply_modifiers): Accept integer arguments.
17687 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17688 for chars and symbol keys.
17689 After doing such remapping, apply function-key-map again.
17690
176912007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17692
17693 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17694 compiled anymore.
17695
176962007-11-26 Andreas Schwab <schwab@suse.de>
17697
17698 * process.c (list_processes_1): Fix indentation level of the
17699 command column.
17700
177012007-11-23 Andreas Schwab <schwab@suse.de>
17702
17703 * editfns.c (Fformat): Handle %c specially since it requires the
17704 argument to be of type int.
17705
177062007-11-23 Markus Triska <markus.triska@gmx.at>
17707
17708 * emacs.c (main): Call init_editfns before init_process, since
17709 init_process sets Vprocess_connection_type depending on OS release.
17710
177112007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17712
17713 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17714 (find_symbol_value): Use do_symval_forwarding.
17715
17716 * data.c (set_internal): Set the value in the `cons-cell' (for
17717 Buffer_Local_values) not only for frame-local variables.
17718
177192007-11-22 Andreas Schwab <schwab@suse.de>
17720
17721 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17722 values to sprintf.
17723 * keymap.c (Fsingle_key_description): Likewise.
17724 * print.c (print_object): Likewise.
17725
177262007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17727
17728 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17729 file for image is nil.
17730
177312007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17732
17733 * term.c: Include stdarg.h.
17734 (fatal): Implement using varargs.
17735 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17736
177372007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17738
17739 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17740 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17741 Update call to buffer_slot_type_mismatch.
17742 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17743 (buffer_slot_type_mismatch): Update.
17744 * buffer.c (buffer_local_types): Remove.
17745 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17746 (defvar_per_buffer): Set the type in the buffer_objfwd.
17747
177482007-11-21 Jason Rumney <jasonr@gnu.org>
17749
17750 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17751 CreateFileMapping returns NULL on failure.
17752
177532007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17754
17755 * search.c (Fset_match_data): Remove the `evaporate' feature.
17756 (unwind_set_match_data): Don't use the `evaporate' feature.
17757
177582007-11-21 Jason Rumney <jasonr@gnu.org>
17759
17760 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17761
17762 * w32console.c (w32con_write_glyphs): Remove unused variables.
17763
177642007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17765
17766 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17767
17768 * s/darwin.h (MULTI_KBOARD): Remove.
17769
17770 * macfns.c (x_create_tip_frame, Fx_create_frame)
17771 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17772
177732007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17774
17775 * buffer.c (Fbuffer_local_value): Remove redundant test.
17776 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17777 than in `current-buffer' to match the comment.
17778 Do the swap using swap_in_global_binding.
17779
17780 * data.c (store_symval_forwarding, set_internal):
17781 * eval.c (specbind): Remove dead code.
17782
17783 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17784 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17785 Since we do not want to see internal Lisp_*fwd objects here.
17786
177872007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17788
17789 * sysdep.c (init_system_name): Use getaddrinfo if available.
17790
17791 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17792 (x_scroll_bar_note_movement): start, end, with, height in struct
17793 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17794
177952007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17796
17797 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17798
177992007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17800
17801 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17802 This undoes Richard's change of 14-Oct-2002.
17803
17804 * alloc.c (allocate_other_vector):
17805 * lisp.h (allocate_other_vector): Remove.
17806
17807 * window.c (struct save_window_data): Move non-lisp data to the end
17808 and make it `int' rather than Lisp_Object.
17809 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17810 Done wrap/unwrap integer values.
17811 (Fset_window_configuration, compare_window_configurations):
17812 Update use of fields to their new types.
17813
17814 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17815 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17816 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17817 (SET_SCROLL_BAR_X_WINDOW): Remove.
17818 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17819 Access the new x_window field directly.
17820 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17821 Don't wrap/unwrap integers into Lisp_Objects.
17822 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17823 (x_scroll_bar_report_motion):
17824 Don't wrap/unwrap integers into Lisp_Objects.
17825 (x_term_init): Use SDATA.
17826 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17827 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17828 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17829 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17830 * xfns.c (x_set_background_color):
17831 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17832 Access the new x_window field directly.
17833
17834 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17835 (allocate_pseudovector): Make non-static.
17836
17837 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17838 (allocate_pseudovector): Declare.
17839 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17840
178412007-11-15 Andreas Schwab <schwab@suse.de>
17842
17843 * editfns.c (Fformat): Correctly format EMACS_INT values.
17844 Also take precision into account when formatting an integer.
17845
17846 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17847
178482007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17849
17850 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17851 (syms_of_keyboard): Defsubr it.
17852
17853 * data.c (swap_in_global_binding): Fix longstanding bug where
17854 store_symval_forwarding was not called with the right second argument,
17855 thus causing objfwd-ing from being dropped.
17856
178572007-11-14 Juanma Barranquero <lekktu@gmail.com>
17858
17859 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17860 (Fx_display_pixel_height, Fx_display_planes)
17861 (Fx_display_color_cells, Fx_server_max_request_size)
17862 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17863 (Fx_display_visual_class, Fx_display_save_under):
17864 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17865 (Fx_display_pixel_height, Fx_display_planes)
17866 (Fx_display_color_cells, Fx_server_max_request_size)
17867 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17868 (Fx_display_mm_height, Fx_display_mm_width)
17869 (Fx_display_backing_store, Fx_display_visual_class)
17870 (Fw32_select_font, Fx_display_save_under):
17871 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17872 (Fx_display_pixel_height, Fx_display_planes)
17873 (Fx_display_color_cells, Fx_server_max_request_size)
17874 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17875 (Fx_display_save_under): Fix typos in docstrings.
17876
178772007-11-14 Juanma Barranquero <lekktu@gmail.com>
17878
17879 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17880 corresponding to deleted entries; they are an implementation detail.
17881 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17882 Remove variables.
17883 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17884 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17885 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17886 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17887 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17888 (Fw32_define_rgb_color, Fw32_load_color_file)
17889 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17890 Fix typos in docstrings.
17891 (Fx_server_version): Reflow docstring.
17892 (Fw32_shell_execute): Doc fixes.
17893
178942007-11-13 Juanma Barranquero <lekktu@gmail.com>
17895
17896 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17897 if w32_parse_hot_key returned nil.
17898
178992007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17900
17901 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17902
179032007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17904
aac0c6e3
MR
17905 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17906
17907 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17908
17909 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17910 Remove W32_SCROLL_BAR_CLICK_EVENT.
17911
17912 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17913 Add MULTIMEDIA_KEY_EVENT.
17914
17915 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17916 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17917 (make_lispy_event) [WINDOWSNT]: Use it to translate
17918 MULTIMEDIA_KEY_EVENT.
17919
17920 * w32term.h (WM_APPCOMMAND): Define if not already.
17921 (GET_APPCOMMAND_LPARAM): Likewise.
17922
17923 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17924 WM_APPCOMMAND.
17925
17926 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17927 (syms_of_w32fns): Export and initialize it.
17928 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17929
179302007-11-09 Chong Yidong <cyd@stupidchicken.com>
17931
17932 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17933 twice.
17934
17935 * xdisp.c (handle_face_prop): Fix last change.
17936
179372007-11-09 Richard Stallman <rms@gnu.org>
17938
17939 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17940 not just for after-strings and before-strings.
17941 Call face_for_overlay_string and pass the overlay to it.
17942 (handle_display_prop): Determine whether property came from an overlay.
17943 Pass OVERLAY arg to handle_single_display_spec.
17944 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17945 (load_overlay_strings): Fill in it->string_overlays.
17946 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17947
17948 * xfaces.c (face_for_overlay_string): Function renamed from
17949 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17950
17951 * dispextern.h (struct it): New elt string_overlays.
17952 New elt from_overlay, also in stack.
17953 Rearrange a few elements.
17954 (face_for_overlay_string): Decl renamed from
17955 face_at_buffer_position_no_overlays, and add argument.
17956
179572007-11-09 Richard Stallman <rms@gnu.org>
17958
17959 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17960 to get the base face for an overlay string.
17961
17962 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17963
17964 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17965
17966 * xdisp.c (handle_stop): Move some code out of loop.
17967
179682007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17969
17970 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17971 Fix conversion from Lisp object to ATSUFontID.
17972
179732007-11-09 Jason Rumney <jasonr@gnu.org>
17974
17975 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17976
179772007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17978
17979 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17980 Don't assume regions are aligned to page boundary.
17981 (print_load_command_name): Add LC_UUID if defined.
17982
179832007-11-09 Richard Stallman <rms@gnu.org>
17984
17985 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17986
179872007-11-07 Jason Rumney <jasonr@gnu.org>
17988
17989 * s/windows95.h: Remove.
17990
179912007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17992
17993 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17994 abort with a message on unhandled store_type values.
17995
179962007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17997
17998 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17999 Remove HAVE_X11R5 and HAVE_X11R4.
18000
180012007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18002
18003 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18004
180052007-11-01 Johan Bockgård <bojohan@gnu.org>
18006
18007 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18008 Don't set s->stippled_p here, since it has already been set by
18009 x_set_glyph_string_gc from x_draw_glyph_string.
18010
180112007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18012
18013 * sunfns.c: Remove file.
18014
18015 * m/sun386.h:
18016 * m/sun2.h:
18017 * m/sparc.h: Remove Sun windows code.
18018
180192007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18020
18021 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18022 (init_keyboard): Set current_kboard's window-system to nil.
18023 (tty_read_avail_input): Typo.
18024 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18025
180262007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18027
18028 * s/usg5-4.h:
18029 * s/usg5-3.h:
18030 * s/ptx.h:
18031 * m/is386.h:
18032 * m/ibmps2-aix.h:
18033 * Makefile.in: Remove all mentions of X10.
18034
18035 * dispnew.c (syms_of_display): Don't mention version 10.
18036
180372007-10-28 Juanma Barranquero <lekktu@gmail.com>
18038
18039 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18040 ($(BLD)/abbrev.$(O)): Remove.
18041
180422007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18043
18044 Rewrite abbrev.c in Elisp.
18045 * image.c (Qcount): Don't declare as extern.
18046 (syms_of_image): Initialize and staticpro `Qcount'.
18047 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18048 * emacs.c (main): Don't call syms_of_abbrev.
18049 * Makefile.in (obj): Remove abbrev.o.
18050 (abbrev.o): Remove.
18051 * abbrev.c: Remove.
18052
180532007-10-26 Martin Rudalics <rudalics@gmx.at>
18054
18055 * window.c (window_min_size_2): Don't count header-line.
18056
180572007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18058
18059 * frame.h (struct frame): Move all bit fields after the first bit
18060 field to take advantage of the available space. Group all the
18061 chars together to reduce wasted space due to padding.
18062
180632007-10-26 Juanma Barranquero <lekktu@gmail.com>
18064
18065 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18066
18067 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18068 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18069 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18070 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18071 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18072 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18073 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18074 (last_marked, mark_object_loop_halt): Make static.
18075
18076 * frame.c (syms_of_frame) <delete-frame-functions>:
18077 Fix typo in docstring.
18078
180792007-10-25 Juanma Barranquero <lekktu@gmail.com>
18080
18081 * w32.c (init_environment): Fix tiny memory leak.
18082 (w32_get_resource): Remove unused variable `ok'.
18083
180842007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18085
18086 Make `window-system' into a keyboard-local variable (rather than
18087 frame-local as done originally by multi-tty).
18088
18089 * keyboard.h (struct kboard): Add Vwindow_system.
18090 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18091 (mark_kboards): Mark Vwindow_system.
18092
18093 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18094 (init_display): Don't set the obsolete `window-system' frame-param.
18095
18096 * xterm.c (x_term_init):
18097 * w32term.c (w32_create_terminal):
18098 * term.c (init_tty): Set Vwindow_system.
18099 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18100 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18101
18102 * xfns.c (Fx_create_frame, x_create_tip_frame):
18103 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18104 * macfns.c (Fx_create_frame):
18105 Don't set the obsolete `window-system' frame-param.
18106
18107 * frame.h (Qwindow_system): Remove.
18108 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18109 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18110
181112007-10-24 Richard Stallman <rms@gnu.org>
18112
18113 * frame.c (x_figure_window_size): For fullscreen case,
18114 set USPosition | PPosition without clobbering rest of window_prompting.
18115
18116 * keyboard.c (Fcurrent_idle_time): Doc fix.
18117
18118 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18119
181202007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18121
18122 * process.c (unwind_request_sigio): Only define if __ultrix__.
18123
18124 * callproc.c (child_setup): Remove spurious *.
18125
18126 * lisp.h (Fget_text_property): Declare.
18127 (have_menus_p): Declare it here rather than in sys-dep header files.
18128 * macterm.h (have_menus_p):
18129 * msdos.h (have_menus_p):
18130 * xterm.h (have_menus_p): Remove.
18131
18132 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18133 (Fmake_variable_frame_local): Just check the variable's const-ness
18134 rather than checking nil or t.
18135
181362007-10-22 Jason Rumney <jasonr@gnu.org>
18137
18138 * w32fns.c: Include math.h.
18139 (w32_abort): Declaration moved to nt/config.nt.
18140
18141 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18142 (abort): Redefinition moved to nt/config.nt.
18143
18144 * m/windowsnt.h: Remove.
18145
181462007-10-22 Juanma Barranquero <lekktu@gmail.com>
18147
18148 * emacs.c (Fdump_emacs): Fix typo in message.
18149 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18150 <installation-directory>: Reflow docstring.
18151
181522007-10-22 Juri Linkov <juri@jurta.org>
18153
18154 * minibuf.c: Allow minibuffer default to be a list of default values.
18155 With empty input use the first element of this list as returned default.
18156 (string_to_object)
18157 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18158 (read_minibuf): If defalt is cons, set histstring to its car.
18159 (Fread_string): If default_value is cons, set val to its car.
18160 (Fread_buffer): If def is cons, use its car.
18161 (Fcompleting_read): If defalt is cons, set val to its car.
18162
181632007-10-21 Michael Albinus <michael.albinus@gmx.de>
18164
18165 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18166
181672007-10-20 Juanma Barranquero <lekktu@gmail.com>
18168
18169 * doc.c (Fdocumentation): Check for advice in all cases.
18170
181712007-10-19 Chong Yidong <cyd@stupidchicken.com>
18172
18173 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18174
181752007-10-19 Richard Stallman <rms@gnu.org>
18176
18177 * doc.c (Fdocumentation): Check for and handle an advised function.
18178
181792007-10-19 Juanma Barranquero <lekktu@gmail.com>
18180
18181 * process.c (Fset_process_filter): Doc fix.
18182
181832007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18184
18185 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18186 which caused key-translation-map to applied repeatedly (thus breaking
18187 double-mode).
18188
181892007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18190
18191 * xselect.c (x_own_selection, x_handle_selection_clear)
18192 (x_clear_frame_selections):
18193 * w32menu.c (list_of_panes, list_of_items):
18194 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18195 * textprop.c (validate_plist, interval_has_all_properties)
18196 (interval_has_some_properties, interval_has_some_properties_list)
18197 (add_properties, text_property_list):
18198 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18199 * minibuf.c (Fassoc_string):
18200 * macselect.c (x_own_selection, x_clear_frame_selections)
18201 (Fx_disown_selection_internal):
18202 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18203 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18204
182052007-10-17 Chong Yidong <cyd@stupidchicken.com>
18206
18207 * process.c: Link to libs for calling res_init() if available.
18208 (Fmake_network_process): Call res_init() before getaddrinfo or
18209 gethostbyname, if possible.
18210
182112007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18212
18213 * lread.c (read1): Set pvectype for char_tables.
18214
18215 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18216 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18217 Add type checks.
18218 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18219
18220 * alloc.c (free_misc): Use XMISCTYPE.
18221 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18222
182232007-10-17 Glenn Morris <rgm@gnu.org>
18224
18225 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18226 (syms_of_minibuf): Add Qcompletion_ignore_case.
18227 * dired.c (Qcompletion_ignore_case): Change to external.
18228 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18229 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18230 (Fread_file_name): Use it rather than intern'ing.
18231
18232 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18233 (Fread_coding_system): Ignore case of user input.
18234
182352007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18236
18237 * xdisp.c (handle_display_prop): Ignore display specs after
18238 replacing one when string text is being replaced.
18239 (handle_single_display_spec): Pretend as if characters with display
18240 property haven't been consumed only when buffer text is being replaced.
18241
182422007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18243
18244 * xfns.c (Fx_create_frame, Fx_display_list):
18245 * window.c (window_fixed_size_p, enlarge_window)
18246 (shrink_window_lowest_first):
18247 * macterm.c (init_font_name_table):
18248 * macfns.c (Fx_create_frame, Fx_display_list):
18249 * lread.c (close_load_descs):
18250 * keyboard.c (read_char_x_menu_prompt):
18251 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18252 * coding.c (code_convert_region_unwind): Test the type of an object
18253 rather than just !NILP before extracting data from it.
18254
18255 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18256
18257 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18258 (XMISCANY): New macro.
18259 (XMISCTYPE): Use it.
18260 (struct Lisp_Misc_Any): New type.
18261 (union Lisp_Misc): Use it.
18262 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18263 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18264 (find_symbol_value, set_internal, default_value, Fset_default)
18265 (Fmake_variable_buffer_local, Fmake_local_variable)
18266 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18267 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18268 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18269 * alloc.c (allocate_buffer): Set the size and tag.
18270 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18271 Use XMISCANY.
18272 (die): Follow the GNU convention for error messages.
18273 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18274 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18275 tag any more.
18276 (set_buffer_internal_1):
18277 * frame.c (store_frame_param):
18278 * eval.c (specbind):
18279 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18280
18281 * doc.c (Fsnarf_documentation): Simplify.
18282
182832007-10-14 Juanma Barranquero <lekktu@gmail.com>
18284
18285 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18286 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18287
182882007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18289
18290 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18291
182922007-10-14 Juanma Barranquero <lekktu@gmail.com>
18293
18294 * eval.c (do_autoload): Don't save autoloads.
18295
18296 * data.c (Ffset): Save autoload of the function being set.
18297
182982007-10-07 John Paul Wallington <jpw@pobox.com>
18299
18300 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18301 parameter before setting up faces.
18302
183032007-10-13 Eli Zaretskii <eliz@gnu.org>
18304
18305 * ccl.c (Fregister_code_conversion_map):
18306 * keyboard.c (append_tool_bar_item): Reformat last change.
18307
18308 * lisp.h (eabs): Rename from `abs'. All callers changed.
18309
183102007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18311
18312 * buffer.c (add_overlay_mod_hooklist):
18313 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18314 * fontset.c (make_fontset):
18315 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18316 (append_tool_bar_item):
18317 * macmenu.c (grow_menu_items):
18318 * w32menu.c (grow_menu_items):
18319 * xmenu.c (grow_menu_items): Use larger_vector.
18320
183212007-10-13 Eli Zaretskii <eliz@gnu.org>
18322
18323 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18324 selected frame'' on MSDOS).
18325
183262007-10-12 Martin Rudalics <rudalics@gmx.at>
18327
18328 * frame.c (Qexplicit_name): New variable.
18329 (x_report_frame_params): Report it in parameter alist.
18330 (syms_of_frame): Intern and staticpro it.
18331
183322007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18333
18334 * macfns.c (x_create_tip_frame): Set terminal for frame.
18335
183362007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18337
18338 * frame.c (Qenvironment): Remove.
18339 (syms_of_frame) <Qenvironment>: Don't initialize.
18340 (Fdelete_frame): Don't treat the `environment' param specially.
18341 * frame.h (Qenvironment): Don't declare.
18342 * callproc.c (set_initial_environment): Don't set unused frame param.
18343
18344 * frame.c (Fframe_with_environment): Remove.
18345 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18346
18347 * lisp.h (Fframe_with_environment): Don't declare.
18348
183492007-10-10 Juanma Barranquero <lekktu@gmail.com>
18350
18351 * indent.c (indent_tabs_mode, last_known_column)
18352 (last_known_column_modified): Make static.
18353 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18354
183552007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18356
18357 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18358
183592007-10-09 Jason Rumney <jasonr@gnu.org>
18360
18361 * w32term.c (x_set_window_size): Disable code that attempts to tell
18362 Lisp code about a size change before it actually happens.
18363
183642007-10-09 Richard Stallman <rms@gnu.org>
18365
18366 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18367 return HANDLED_RETURN.
18368
183692007-10-08 Martin Rudalics <rudalics@gmx.at>
18370
18371 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18372 when there's an unread command event.
18373
18374 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18375 window autoselection act appropriately when leaving selected frame.
18376 (syms_of_frame): Initialize focus_follows_mouse.
18377 * frame.h (focus_follows_mouse): Extern it.
18378 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18379 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18380 * msdos.c (dos_rawgetc): Likewise.
18381 * w32term.c (w32_read_socket): Likewise.
18382 * xterm.c (handle_one_xevent): Likewise.
18383 * xdisp.c (syms_of_xdisp): In doc-string of
18384 mouse-autoselect-window mention focus-follows-mouse.
18385
183862007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18387
18388 * macterm.c (mac_load_query_font): Fix missing return value.
18389 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18390 Add BLOCK_INPUT.
18391
183922007-10-08 Richard Stallman <rms@gnu.org>
18393
18394 * xdisp.c (get_window_cursor_type): Implement documented behavior
18395 for cursor-in-non-selected-windows = t.
18396
183972007-10-08 Jason Rumney <jasonr@gnu.org>
18398
18399 * w32.c (w32_get_resource): Always close registry keys.
18400
184012007-10-08 Jason Rumney <jasonr@gnu.org>
18402
18403 * makefile.w32-in (LIBS): Add COMCTL32.
18404
18405 * w32fns.c (globals_of_w32fns): Init common controls.
18406
184072007-10-08 Richard Stallman <rms@gnu.org>
18408
18409 * image.c (our_memory_buffer): Rename from omfib_buffer.
18410
184112007-10-08 Richard Stallman <rms@gnu.org>
18412
18413 * buffer.c (Foverlays_at): Doc fix.
18414
184152007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18416
18417 * fns.c (Fplist_put): Preserve uneven tail data.
18418
184192007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18420
18421 * termhooks.h (enum event_kind): Remove trailing comma.
18422
18423 * frame.h (enum): Remove trailing comma.
18424
184252007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18426
18427 * w32proc.c (delete_child): Don't terminate threads of zombies.
18428
184292007-10-08 Martin Rudalics <rudalics@gmx.at>
18430
18431 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18432
18433 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18434 last-repeatable-command.
18435 (init_kboard): Initialize Vlast_repeatable_command.
18436 (command_loop_1): Set it to real_this_command unless that was
18437 bound to an input event.
18438 (mark_kboards): Mark it.
18439
184402007-10-08 Richard Stallman <rms@gnu.org>
18441
18442 * eval.c (condition-case): Doc fix.
18443
184442007-10-08 Masatake YAMATO <jet@gyve.org>
18445
18446 * xfaces.c (tty_supports_face_attributes_p): Fix code
18447 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18448 was copied and not edited.
18449
184502007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18451
18452 Add new `input-decode-map' keymap and use it for terminal
18453 escape sequences.
18454 * keyboard.h (struct kboard): Add Vinput_decode_map.
18455 Remove Vlocal_key_translation_map.
18456 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18457 (init_kboard): Init input-decode-map.
18458 Replace local-key-translation-map back with key-translation-map.
18459 (syms_of_keyboard): Declare input-decode-map.
18460 Remove local-key-translation-map. Update docstrings.
18461 (mark_kboards): Mark Vinput_decode_map.
18462 Don't mark Vlocal_key_translation_map.
18463 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18464 Replace local-key-translation-map back with key-translation-map.
18465 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18466 Bind in input-decode-map rather than function-key-map.
18467
18468 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18469 This was made redundant by the previous introduction of XSETPVECTYPE.
18470
184712007-10-09 Richard Stallman <rms@gnu.org>
18472
18473 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18474
184752007-09-29 Richard Stallman <rms@gnu.org>
18476
18477 * eval.c (internal_condition_case_2, internal_condition_case_1)
18478 (internal_condition_case): Reenable abort if x_catching_errors ()
18479 to see if that really happens and why.
18480
184812007-10-06 Andreas Schwab <schwab@suse.de>
18482
18483 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18484
184852007-10-04 Juanma Barranquero <lekktu@gmail.com>
18486
18487 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18488
184892007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18490
18491 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18492
184932007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18494
18495 * window.h (struct window):
18496 * window.c (struct save_window_data, struct saved_window):
18497 * termhooks.h (struct terminal):
18498 * process.h (struct Lisp_Process):
18499 * frame.h (struct frame):
18500 * buffer.h (struct buffer):
18501 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18502 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18503 The size field of (pseudo)vectors is now unsigned.
18504 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18505
18506 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18507 Turn `count' into an integer.
18508
18509 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18510 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18511 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18512 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18513 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18514
18515 * alloc.c (allocate_pseudovector): New fun.
18516 (ALLOCATE_PSEUDOVECTOR): New macro.
18517 (allocate_window, allocate_terminal, allocate_frame)
18518 (allocate_process): Use it.
18519 (mark_vectorlike): New function.
18520 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18521 (mark_terminals): Use it.
18522 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18523 (Fmake_byte_code): Use XSETPVECTYPE.
18524
18525 * frame.c (Fframe_parameters): Minor simplification.
18526
18527 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18528
18529 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18530
18531 * buffer.c (Fget_buffer_create, init_buffer_once):
18532 * lread.c (defsubr):
18533 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18534
18535 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18536 defined differently in the m/*.h files.
18537 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18538 (XSETPVECTYPE): New macro.
18539 (XSETPSEUDOVECTOR): Use it.
18540
18541 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18542 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18543
18544 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18545 * lread.c (defvar_per_buffer):
18546 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18547
18548 * window.c (candidate_window_p): Only consider as visible frames that
18549 are on the same terminal.
18550
18551 * m/ibms390x.h (MARKBIT): Remove unused macro.
18552
185532007-10-01 Juanma Barranquero <lekktu@gmail.com>
18554
18555 * lread.c (Fload): Fix typo in docstring.
18556
185572007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18558
18559 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18560 of a non-zero value can't yield zero.
18561
185622007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18563
18564 * term.c (term_clear_mouse_face, term_mouse_highlight)
18565 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18566
18567 * print.c (safe_debug_print): Use XHASH.
18568
18569 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18570 Lisp elements such as tags.
18571 (XHASH): New macro.
18572 (EQ): Use it.
18573 (SREF, SSET, STRING_COPYIN): Use SDATA.
18574 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18575
18576 * alloc.c (mark_terminal): Remove left-over declaration.
18577 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18578 (allocate_vectorlike): Remove type argument. Adjust callers.
18579 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18580 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18581
18582 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18583 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18584 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18585 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18586 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18587 Use them.
18588
18589 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18590 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18591 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18592
185932007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18594
18595 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18596 loaded by default.
18597
185982007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18599
18600 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18601 on this tty.
18602 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18603
18604 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18605 Update all users.
18606 (handle_one_term_event): Use Gpm_DrawPointer.
18607 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18608 Signal errors instead of returning nil. Always return nil.
18609 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18610 Make it a noop if gpm-mouse was not activated.
18611 (syms_of_term): Update names.
18612
186132007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18614
18615 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18616 (init_sys_modes): Check that gpm_tty is the current tty.
18617
18618 * alloc.c (allocate_terminal): Set the vector size to only count the
18619 lisp fields. Initialize those to nil.
18620 (mark_object): Don't treat terminals specially.
18621 (mark_terminal): Remove.
18622 (mark_terminals): Use mark_object instead.
18623
18624 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18625 the GC to the beginning.
18626
18627 * indent.h:
18628 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18629
18630 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18631
186322007-09-25 Jason Rumney <jasonr@gnu.org>
18633
18634 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18635
18636 * w32console.c (create_w32cons_output): Remove.
18637
18638 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18639
18640 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18641 (reset_sys_modes): Use reset_terminal_modes_hook.
18642
186432007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18644
18645 * eval.c (do_autoload): Don't output any message.
18646
186472007-09-24 Juri Linkov <juri@jurta.org>
18648
18649 * emacs.c (standard_args): Change priority of "--no-splash"
18650 from 40 to 3. Add "--no-desktop" with the same priority.
18651
186522007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18653
18654 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18655 and optimize the case where they are all 1.
18656
186572007-09-23 Johannes Weiner <hannes@saeurebad.de>
18658
18659 * lisp.h (abs): Define if not defined.
18660 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18661 Don't define `abs', since it's defined in lisp.h.
18662
186632007-09-22 Eli Zaretskii <eliz@gnu.org>
18664
18665 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18666 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18667 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18668 (init_tty): Use DEV_TTY instead of "/dev/tty".
18669 [WINDOWSNT]: No need to protect from NAME arg being null.
18670
186712007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18672
18673 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18674 up the tty state.
18675
186762007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18677
18678 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18679 (gpm_tty): Change its type.
18680 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18681 (gpm_tty): Change its type and initialize it.
18682 (Fterm_open_connection): Check the frame is indeed a tty.
18683 Use the new gpm_tty.
18684 (Fterm_close_connection): Use the new gpm_tty.
18685 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18686 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18687
186882007-09-21 Juanma Barranquero <lekktu@gmail.com>
18689
18690 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18691 underline_color, to draw strike-through.
18692
186932007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18694
18695 * lisp.h (allocate_terminal): Declare.
18696
18697 * window.c (candidate_window_p): Consider frames that are being placed
18698 by the user as somewhere between visible and iconified.
18699 (window_loop): Prefer windows on the current frame.
18700 (Fselect_window): Move the use of select-frame to the beginning so we
18701 can just delegate all the work (it'll call us back anyway).
18702
18703 * frame.c (Qdisplay_environment_variable):
18704 * frame.h (Qdisplay_environment_variable): Delete.
18705
18706 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18707 of the first arg, since that value may be a union.
18708
18709 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18710 parameter rather than Qdisplay_environment_variable. If all else
18711 fails, look for DISPLAY in initial-environment.
18712
187132007-09-21 Glenn Morris <rgm@gnu.org>
18714
18715 * Makefile.in (emacstool): Remove target.
18716 (lisp, shortlisp): Remove termdev.elc.
18717
187182007-09-21 Markus Triska <markus.triska@gmx.at>
18719
18720 * xterm.c (x_delete_display): Compile session management conditionally.
18721
187222007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18723
18724 * callproc.c (getenv_internal_1): New function.
18725 (getenv_internal): Use it.
18726 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18727
18728 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18729 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18730 (Fset_terminal_parameter): Work with dead terminals as well.
18731 (Fmodify_terminal_parameters): Remove.
18732
18733 * terminal.c (get_terminal): Handle terminals.
18734 Make sure the terminal returned is live.
18735 (create_terminal): Use allocate_terminal.
18736 (mark_terminals): Move to alloc.c.
18737 (delete_terminal): Use terminal->name as liveness status.
18738 NULL out fields after freeing their contents.
18739 Don't deallocate the object.
18740 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18741 rather than an int.
18742 (Fterminal_live_p): Accept non-integer arguments.
18743 (Fterminal_list): Return terminal objects rather than an ints.
18744
18745 * alloc.c (enum mem_type): New member for `terminal' objects.
18746 (allocate_terminal): New function.
18747 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18748 Handle terminals.
18749 (mark_terminal): New fun.
18750 (mark_terminals): Move from terminal.c.
18751
18752 * term.c (get_tty_terminal): Don't treat output_initial specially.
18753 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18754 (delete_tty): Use terminal->name as liveness status.
18755
18756 * termhooks.h (struct terminal): Make it into a pseudovector.
18757 Remove `deleted' replaced by checking `name's nullness.
18758
18759 * print.c (print_object): Handle terminals.
18760
18761 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18762 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18763
18764 * frame.c (make_terminal_frame):
18765 * keyboard.c (tty_read_avail_input):
18766 * w32term.c (x_delete_terminal):
18767 * xfns.c (Fx_create_frame, x_create_tip_frame):
18768 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18769
187702007-09-20 Glenn Morris <rgm@gnu.org>
18771
18772 * process.c (Fmake_network_process): Doc fix.
18773
187742007-09-19 Jason Rumney <jasonr@gnu.org>
18775
18776 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18777
187782007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18779
18780 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18781 Fix a C warning regarding variable constness.
18782
18783 * xterm.c (handle_one_xevent): Fix a C warning.
18784
187852007-09-18 Jason Rumney <jasonr@gnu.org>
18786
18787 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18788
187892007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18790
18791 * gtkutil.c (gdpy_def): New variable.
18792 (xg_initialize): Initialize gdpy_def.
18793 (xg_display_close): If no other display exists, set gdpy_def to a
18794 new connection.
18795
187962007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18797
18798 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18799 when we have no file name for the icon.
18800 (xg_tool_bar_expose_callback): Remove.
18801 (xg_create_tool_bar): Don't connect expose signal to
18802 xg_tool_bar_expose_callback.
18803 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18804
188052007-09-16 Andreas Schwab <schwab@suse.de>
18806
18807 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18808 values instead of zapping them.
18809
188102007-09-14 Glenn Morris <rgm@gnu.org>
18811
18812 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18813 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18814 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18815 scope and rename to omfib_buffer for clarity.
18816 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18817
188182007-09-14 Kenichi Handa <handa@m17n.org>
18819
18820 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18821
188222007-09-13 Jason Rumney <jasonr@gnu.org>
18823
18824 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18825
18826 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18827
18828 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18829 (mac_term_init): Call here instead, passing rif.
18830
188312007-09-13 Glenn Morris <rgm@gnu.org>
18832
18833 * s/hpux.h: No longer define `static' as nothing.
18834
188352007-09-13 Johan Bockgård <bojohan@gnu.org>
18836
18837 * callint.c (Fcall_interactively): Remove unused var `fun'.
18838
188392007-09-12 Romain Francoise <romain@orebokech.com>
18840
18841 * window.c (prefer_window_split_horizontally, display_buffer):
18842 Revert 2007-09-08 change.
18843
188442007-09-12 Glenn Morris <rgm@gnu.org>
18845
18846 * alloca.c: Remove file.
18847 * Makefile.in (alloca): Do not undef.
18848 (allocaobj, alloca.o): Remove.
18849 (otherobj): Remove allocaobj.
18850 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18851 * regex.c (C_ALLOCA): Remove all references and code that was only
18852 used when this was defined.
18853 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18854 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18855 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18856
18857 * Makefile.in (SOURCES, unlock, relock): Delete.
18858
18859 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18860 (menu_grab_callback): All uses changed.
18861
18862 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18863 (x_reply_selection_request): All uses changed.
18864
188652007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18866
18867 * lread.c (load_warn_old_style_backquotes): Change message to look
18868 better when it appears in the middle of byte-compiler messages.
18869
188702007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18871
18872 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18873
18874 * xterm.c (x_create_terminal): Add comment.
18875
18876 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18877
188782007-09-10 Richard Stallman <rms@gnu.org>
18879
18880 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18881
188822007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18883
18884 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18885 (DEFUN): Document `intspec', use it instead of `prompt'.
18886
18887 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18888
18889 * data.c (Finteractive_form): If the interactive specification starts
18890 with a `(', use it as a Lisp form.
18891
18892 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18893 name and file modes.
18894
18895 * callint.c (Fcall_interactively): Comment fixes.
18896
188972007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18898
18899 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18900 and compiled functions.
18901
189022007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18903
18904 * window.c (prefer_window_split_horizontally): New variable.
18905 (display_buffer): Consider splitting window horizontally depending
18906 on prefer_window_split_horizontally.
18907
189082007-09-08 Eli Zaretskii <eliz@gnu.org>
18909
18910 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18911
189122007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18913
18914 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18915
18916 * frame.c (x_set_frame_parameters): Check number is positive before
18917 using XFASTINT.
18918
18919 * window.c (freeze_window_start): Don't presume selected_window holds
18920 a window object.
18921 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18922
189232007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18924
18925 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18926
189272007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18928
18929 * window.c (Vsplit_window_preferred_function): New var.
18930 (Fdisplay_buffer): Use it.
18931 (syms_of_window): Export, and initialize it.
18932
189332007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18934
18935 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18936
189372007-09-06 Glenn Morris <rgm@gnu.org>
18938
18939 * gtkutil.c (menu_grab_callback) <cnt>:
18940 * xselect.c (x_reply_selection_request) <cnt>: Move static
18941 variable to file scope.
18942
189432007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18944
18945 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18946 consistent values of selected_frame and selected_window.
18947
189482007-09-04 Jason Rumney <jasonr@gnu.org>
18949
18950 * w32console.c (initialize_w32_display): Zero unused hooks.
18951
189522007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18953
18954 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18955 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18956
189572007-09-04 Jason Rumney <jasonr@gnu.org>
18958
18959 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18960 in w32console.c. Set up input. Remove XXX comments that have been
18961 confirmed as correct.
18962
18963 * s/ms-w32.h (MULTI_KBOARD): Define.
18964
18965 * w32console.c (one_and_only_w32cons): Remove.
18966 (initialize_w32_display): Take terminal argument.
18967
18968 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18969 initialize_w32_display.
18970 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18971
18972 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18973
18974 * keyboard.c (discard_mouse_events): Discard it.
18975 (make_lispy_event): Translate it to a lisp event.
18976 (lispy_wheel_names): Add wheel-left and right events.
18977 (syms_of_keyboard): Enlarge wheel_syms.
18978
18979 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18980 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18981
18982 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18983
18984 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18985 from WM_MOUSEHWHEEL.
18986 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18987
18988 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18989 terminal.
18990
18991 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18992 keyboard for the terminal.
18993
189942007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18995
18996 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18997 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18998 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18999 and resume-tty-function to resume-tty-hook.
19000 (Fsuspend_tty, Fresume_tty): Use new names.
19001
190022007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19003
19004 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19005 if it starts with "n:".
19006
190072007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19008
19009 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19010
190112007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19012
19013 * frame.h:
19014 * frame.c (Qterm_environment_variable): Remove.
19015 (syms_of_frame): Don't init and staticpro it.
19016
19017 * callproc.c (getenv_internal): Remove special case for $TERM.
19018
19019 * callproc.c (Vinitial_environment): New variable.
19020 (set_initial_environment): Initialize it.
19021 (syms_of_callproc): Declare it.
19022 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19023 TERM under which a process runs is never related to the TERM in which
19024 Emacs is running.
19025
190262007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19027
19028 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19029 * s/darwin.h: ... do it here.
19030
190312007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19032
19033 * lisp.h (set_initial_environment): Rename from set_global_environment.
19034
19035 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19036 removed by mistake on the multi-tty branch.
19037
19038 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19039 (Fmodify_frame_parameters): Return a value.
19040
19041 * image.c (png_load): Comment-out var only used in commented-out code.
19042
19043 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19044 before passing it to mark_object.
19045
19046 * xfaces.c (internal_resolve_face_name): Return a value.
19047 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19048
19049 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19050 (x_icon): Comment-out var only used in commented-out code.
19051
190522007-08-29 Romain Francoise <romain@orebokech.com>
19053
19054 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19055 QUIT hasn't been provided.
19056
190572007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19058
19059 * callproc.c (child_setup, getenv_internal): Use the
19060 display-environment-variable and term-environment-variable frame params.
19061 (set_initial_environment): Initialise Vprocess_environment.
19062
19063 * config.in: Disable multi-keyboard support on a mac.
19064
19065 * frame.c (Qterm_environment_variable)
19066 (Qdisplay_environment_variable): New variables.
19067 (syms_of_frame): Intern and staticpro them.
19068 (Fmake_terminal_frame): Disable output method test.
19069
19070 * frame.h: Declare them here.
19071
19072 * macfns.c (x_set_mouse_color): Get rif from the frame.
19073 (x_set_tool_bar_lines): Don't use updating_frame.
19074 (mac_window): Add 2 new parameters for consistency with other systems.
19075 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19076 frame parameters following what is done in X11 and w32. Don't use
19077 FRAME_MAC_DISPLAY_INFO.
19078 (Fx_open_connection, start_hourglass): Remove window-system check.
19079 (x_create_tip_frame): Get the keyboard from the terminal.
19080
19081 * macmenu.c: Reorder includes.
19082 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19083
19084 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19085 terminal parameter.
19086 (x_clear_frame): Add a frame parameter.
19087 (note_mouse_movement): Get rif from the frame.
19088 (mac_term_init): Initialize the terminal.
19089 (mac_initialize): Make static and move terminal initialization ...
19090 (mac_create_terminal): ... to this new function.
19091
19092 * macterm.h (struct mac_display_info): Add terminal.
19093 (mac_initialize): Delete declaration.
19094
19095 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19096
19097 * sysdep.c: Comment out text after #endif.
19098
19099 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19100 is defined. Better initialize ttys in windows. Use terminal
19101 specific mouse_position_hook.
19102
19103 * termhooks.h (union display_info): Add mac_display_info.
19104
19105 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19106 Set the default minibuffer frame, window_system and the rest of the
19107 frame parameters following what is done in X11.
19108
19109 * w32term.c (w32_initialize): Make static.
19110
19111 * xselect.c (x_handle_selection_clear): Only access
19112 terminal->kboard when MULTI_KBOARD is defined.
19113
19114 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19115 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19116
191172007-08-29 Jason Rumney <jasonr@gnu.org>
19118
19119 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19120 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19121
19122 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19123 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19124
19125 * keyboard.c (restore_kboard_configuration): Only define when
19126 MULTI_KBOARD defined.
19127
19128 * makefile.w32-in: Update dependancies from Makefile.in.
19129 (OBJ1): Add terminal.$(O)
19130
19131 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19132 Don't define function body.
19133 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19134
19135 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19136
19137 * w32.c (request_sigio, unrequest_sigio): Remove.
19138
19139 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19140 (w32con_clear_frame, w32con_clear_end_of_line)
19141 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19142 (w32con_delete_glyphs, w32con_set_terminal_window)
19143 (scroll_line, w32_sys_ring_bell): Add frame arg.
19144 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19145 Add terminal arg.
19146 (PICK_FRAME): Remove.
19147 (w32con_write_glyphs): Use frame specific terminal coding.
19148 (one_and_only_w32cons): New global variable.
19149 (initialize_w32_display): Use it for storing hooks.
19150 (create_w32cons_output): New function.
19151
19152 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19153 arg a frame.
19154
19155 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19156 Set window_system.
19157 (x_set_tool_bar_lines): Don't use updating_frame.
19158 (Fx_create_frame): Set terminal and ref count.
19159 (Fx_open_connection): Remove window-system check.
19160
19161 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19162
19163 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19164 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19165 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19166 Add frame arg.
19167 (x_delete_terminal, w32_create_terminal): New functions.
19168 (w32_term_init): Create a terminal.
19169 (w32_initialize): Move terminal specific initialization to
19170 w32_create_terminal.
19171
19172 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19173 (w32_clear_rect, w32_clear_area): Use background from frame.
19174 (w32_display_info): Add terminal.
19175 (w32_sys_ring_bell, x_delete_display): Declare here.
19176
19177 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19178
19179 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19180
191812007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19182
19183 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19184 Fix get_named_tty calls for the controlling tty.
19185
191862007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19187
19188 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19189
191902007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19191
19192 * term.c (tty_insert_glyphs): Add missing first parameter.
19193
191942007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19195
19196 * buffer.c (Fbuffer_list, Fbury_buffer):
19197 Take frame->buried_buffer_list into account.
19198
19199 * cm.c (current_tty): New variable, for cmputc().
19200 (cmputc): Use it.
19201 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19202 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19203 (cmgoto): Add tty parameter. Pass it on to calccost().
19204 Use emacs_tputs() instead of tputs().
19205
19206 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19207 tputs().
19208 (current_tty): New variable, for cmputc().
19209 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19210
19211 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19212 (internal_condition_case, internal_condition_case_1)
19213 (internal_condition_case_2): Don't abort when x_catching_errors.
19214
19215 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19216 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19217 prevent crashes caused by bogus longjmps in read_char.
19218
19219 * keymap.h (Fset_keymap_parent): Add EXFUN.
19220
19221 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19222 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19223 Remove redundant definition.
19224
19225 * macfns.c (x_set_mouse_color, x_make_gc):
19226 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19227
19228 * w32term.c (x_free_frame_resources):
19229 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19230 (w32_initialize): Use the accessor macros for terminal characteristics.
19231
19232 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19233 Use the accessor macros for terminal characteristics.
19234 * msdos.c (internal_terminal_init): Use the accessor macros for
19235 terminal characteristics.
19236 (ScreenVisualBell, internal_terminal_init):
19237 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19238
19239 * termopts.h (no_redraw_on_reenter): Declare.
19240
19241 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19242 (mark_terminals, mark_ttys): Declare.
19243 (Fgarbage_collect): Call them.
19244 (mark_object): Mark buried_buffer_list.
19245
19246 * prefix-args.c: Include stdlib.h for exit.
19247
19248 * syssignal.h: Add comment.
19249
19250 * indent.c: Include stdio.h.
19251
19252 * window.h (Vinitial_window_system): Declare.
19253 (Vwindow_system): Delete declaration.
19254
19255 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19256
19257 * image.c (lookup_image): Don't initialize `c' until the xasserts
19258 have been run.
19259
19260 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19261 FRAME_FOREGROUND_PIXEL.
19262
19263 * print.c (print_preprocess): Don't lose print_depth levels while
19264 iterating.
19265
19266 * widget.c (update_from_various_frame_slots):
19267 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19268
19269 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19270 frames.
19271 (window_internal_height): Remove bogus make_number call.
19272 (init_window_once): Call make_terminal_frame with two zero parameters.
19273
19274 * fileio.c (Fread_file_name): Update comment.
19275
19276 * callint.c (Fcall_interactively):
19277 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19278 Make sure it is correctly unwound.
19279
19280 * xsmfns.c (x_session_close): New function.
19281
19282 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19283 Delete declarations.
19284
19285 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19286 (x_output): Remove background_pixel and foreground_pixel fields.
19287 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19288 (x_delete_device, x_session_close): Declare.
19289
19290 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19291 (read_filtered_event): Call `read_char' with a local
19292 `wrong_kboard_jmpbuf'.
19293
19294 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19295 Don't call single_kboard_state. Use FRAME_RIF.
19296
19297 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19298 systems.
19299
19300 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19301 (Fframe_with_environment, Fset_input_meta_mode)
19302 (Fset_quit_char): EXFUN.
19303 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19304 (init_sys_modes, reset_sys_modes): Update prototypes.
19305 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19306
19307 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19308 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19309 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19310 Delete declarations.
19311 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19312 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19313 New declarations.
19314
19315 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19316 already does that during init_display(). Call syms_of_keymap
19317 before syms_of_keyboard. Call `syms_of_terminal'.
19318 Call set_initial_environment, not set_process_environment.
19319 (shut_down_emacs): Call reset_all_sys_modes() instead of
19320 reset_sys_modes().
19321
19322 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19323 (internal_resolve_face_name, resolve_face_name_error): New functions.
19324 (resolve_face_name): Protect against loops and errors thrown by Fget.
19325 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19326 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19327
19328 * scroll.c: Replace CURTTY() with local variables throughout the
19329 file (where applicable).
19330 (calculate_scrolling, calculate_direct_scrolling)
19331 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19332 characteristics.
19333
19334 * keymap.c (Vfunction_key_map): Remove.
19335 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19336 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19337 (Vkey_translation_map): Remove.
19338 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19339 (Fdescribe_buffer_bindings)
19340 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19341 Update for terminal-local key-translation-map.
19342
19343 * Makefile.in (callproc.o): Update dependencies.
19344 (lisp, shortlisp): Add termdev.elc.
19345 (obj): Add terminal.o.
19346 (terminal.o): Add dependencies.
19347 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19348 (data.o, fns.o): Add termhooks.h dependency.
19349 (SOME_MACHINE_LISP): Add dnd.elc.
19350 (minibuf.o): Fix typo.
19351 Update dependencies.
19352
19353 * data.c (do_symval_forwarding, store_symval_forwarding)
19354 (find_symbol_value): Use the selected frame's keyboard, not
19355 current_kboard.
19356
19357 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19358 Vwindow_system.
19359
19360 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19361 Fmenu_bar_open.
19362 (syms_of_xmenu): Update defsubr.
19363 (mouse_position_for_popup, Fx_popup_menu)
19364 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19365 (set_frame_menubar, free_frame_menubar)
b97439ce 19366 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19367 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19368 an X frame.
19369
19370 * xselect.c (x_own_selection): Abort if not an X frame.
19371 (some_frame_on_display): Check if it is an X frame.
19372 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19373
19374 * coding.c: Include frame.h and termhooks.h.
19375 (terminal_coding, keyboard_coding): Delete.
19376 (Fset_terminal_coding_system_internal)
19377 (Fset_keyboard_coding_system_internal)
19378 (Fkeyboard_coding_system)
19379 (Fterminal_coding_system): Add a terminal parameter.
19380 Get terminal_coding from the terminal.
19381 (init_coding_once): Don't call setup_coding_system here.
19382
19383 * dispextern.h (set_scroll_region, turn_off_insert)
19384 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19385 (tty_clear_end_of_line, tty_setup_colors)
19386 (delete_tty, updating_frame)
19387 (produce_special_glyphs, produce_glyphs, write_glyphs)
19388 (insert_glyphs): Remove.
19389 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19390 (tty_turn_off_highlight, get_tty_size): Add declaration.
19391 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19392
19393 * frame.h (enum output_method): Add output_initial.
19394 (struct x_output): Delete.
19395 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19396 Access foreground_pixel and background_pixel directly from the frame.
19397 (tty_display): Delete.
19398 (struct frame): Add buried_buffer_list, foreground_pixel,
19399 background_pixel and terminal. Delete kboard.
19400 (union output_data): Add tty.
19401 (FRAME_KBOARD): Get the kboard from the terminal.
19402 (FRAME_INITIAL_P): New macro.
19403 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19404 (Qterm_environment_variable, Qdisplay_environment_variable)
19405 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19406 New declarations.
19407
19408 * termchar.h (tty_output, tty_display_info): New structures.
19409 (tty_list): Declare.
19410 (FRAME_TTY, CURTTY): New macros.
19411 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19412 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19413 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19414 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19415
19416 * callproc.c: Include frame.h and termhooks.h, for terminal
19417 parameters.
19418 (add_env): New function.
19419 (child_setup): Use it.
19420 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19421 (getenv_internal): Fix get_terminal_param call.
19422 (Fgetenv_internal, egetenv): Update doc.
19423 (syms_of_callproc): Initialize Vprocess_environment to nil.
19424 Register and initialize them. Remove obsolete defvars. Update doc
19425 strings.
19426 (child_setup): Handle Vlocal_environment_variables.
19427 (getenv_internal): Add terminal parameter.
19428 Handle Vlocal_environment_variables.
19429 (Fgetenv_internal): Add terminal parameter.
19430 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19431 environment in a frame (not terminal) parameter. Update doc strings.
19432 (set_initial_environment): Rename from set_global_environment.
19433 Store Emacs environment in initial frame parameter.
19434
19435 * xdisp.c (redisplay_internal): Update references to
19436 `previous_terminal_frame'.
19437 (display_mode_line, Fformat_mode_line): Replace calls to
19438 `push_frame_kboard' with `push_kboard'.
19439 (get_glyph_string_clip_rects): Add extra parentheses and
19440 braces to prevent compiler warnings.
19441 (calc_pixel_width_or_height): Add xassert to check that the
19442 frame is alive. Don't call `lookup_image' on a termcap frame.
19443 (message2_nolog, message3_nolog, redisplay_internal)
19444 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19445 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19446 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19447 (Fx_display_pixel_width, Fx_display_pixel_height)
19448 (Fx_display_planes, Fx_display_color_cells)
19449 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19450 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19451 (Fx_display_backing_store, Fx_display_visual_class)
19452 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19453 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19454
19455 * xfns.c (x_set_foreground_color x_set_background_color)
19456 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19457 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19458 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19459 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19460 terminal that is being deleted.
19461 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19462 frame parameter, and make sure it overrides any user-supplied setting.
19463 (Fx_close_connection, Fx_synchronize): Unify argument names with
19464 the rest of the DEFUNs.
19465
19466 * dispnew.c (Fsend_string_to_terminal): Update call to
19467 `get_tty_terminal'.
19468 (Fredraw_frame, Fsend_string_to_terminal)
19469 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19470 FRAME_TERMCAP_P and FRAME_TTY.
19471 (window_change_signal): Don't believe width/height values that are
19472 impossibly small.
19473 (Vinitial_window_system): Rename from Vwindow_system.
19474 (termscript, Wcm, rif): Delete.
19475
19476 * termhooks.h (struct terminal): New struct containing the
19477 previously global text display hooks and new members NAME,
19478 DELETED and PARAM_ALIST.
19479 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19480 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19481 (FRAME_RIF): New macros.
19482 (get_terminal_param, get_device): New declarations.
19483 (termscript): Delete declaration.
19484
19485 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19486 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19487 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19488 FRAME_FOREGROUND_PIXEL.
19489 (x_fully_uncatch_errors): Disable definition.
19490 (x_scroll_bar_expose): Fix reference to foreground pixel.
19491 (XTread_socket): Disable loop on all X displays.
19492 (x_delete_terminal): Don't set terminal->deleted and let
19493 delete_terminal delete the frames on the terminal.
19494 (x_delete_display): Doc update to reflect changes in
19495 delete_terminal.
19496 (x_display_info) <terminal>: Move member earlier in the struct.
19497 (deleting_tty): Remove old variable.
19498 (Fsuspend_tty): Call clear_tty_hooks.
19499 (Fresume_tty, init_tty): Call set_tty_hooks.
19500 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19501 errors on X frames.
19502 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19503 (handle_one_xevent): Initialize `f' to NULL.
19504 (x_delete_terminal, x_create_terminal): New functions.
19505 (XTset_terminal_modes, XTreset_terminal_modes)
19506 (XTread_socket, x_connection_closed, x_term_init)
19507 (x_term_init, x_delete_display): Add terminal parameter.
19508 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19509 X connections.
19510
19511 * frame.c: Include termchar.h.
19512 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19513 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19514 (Qdisplay_environment_variable): New vars.
19515 (Fframep): Deal with output_initial.
19516 (Fframe-live-p): Doc fix.
19517 (Fwindow-system): New function.
19518 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19519 (make_terminal_frame): Don't create frames on a terminal that is
19520 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19521 (store_frame_param): Check for found_for_frame before calling XFRAME.
19522 (Fmake_terminal_frame): Handle NULL tty names correctly.
19523 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19524 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19525 frames to refer to a deleted frame in their 'environment parameter.
19526 (Fframe_with_environment): New function.
19527 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19528 (get_future_frame_param): New function.
19529 (Fmake_terminal_frame): Use it.
19530 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19531
19532 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19533 * sysdep.c (reset_sys_modes): Update for renames.
19534
19535 * keyboard.c (tty_read_avail_input): New function.
19536 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19537 (syms_of_keyboard): Defsubr them.
19538 (Fset_input_meta_mode, Fset_quit_char): New functions.
19539 (Fset_input_mode): Split to above functions.
19540 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19541 parameter. Use it in call to `read_char'.
19542 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19543 Set wrong_kboard_jmpbuf correctly in recursive calls.
19544 Use current_kboard to access Vkeyboard_translate_table.
19545 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19546 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19547 Update longjmp invocations. Remember the original current_kboard,
19548 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19549 changes it. Comment out unnecessary calls to
19550 `record_single_kboard_state' and `any_kboard_state'.
19551 Update recursive calls.
19552 (wrong_kboard_jmpbuf): Remove global variable.
19553 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19554 Handle deleted interrupted_kboards correctly; that is a legal
19555 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19556 and read_char calls. Abort if interrupted_kboard died in read_char.
19557 (any_kboard_state, single_kboard_state)
19558 (push_frame_kboard): Remove function.
19559 (pop_kboard): Switch out of single_kboard mode if the kboard has
19560 been deleted. Remove unused variable. Help debugging by not
19561 changing current_kboard unnecessarily. Set current_kboard to the
19562 kboard of the selected frame when the stored kboard object has
19563 been deleted before pop_kboard.
19564 (temporarily_switch_to_single_kboard): Change first parameter to a
19565 frame pointer. Throw an error when caller wants to change kboards
19566 while in single_kboard mode. Don't push_kboard if we weren't in
19567 single kboard state. Don't pop_kboard if we popped into any
19568 kboard state.
19569 (restore_kboard_configuration): Abort if pop_kboard changed the
19570 kboard in single_kboard mode. Call pop_kboard only after setting
19571 up single_kboard mode.
19572 (Frecursive_edit): Switch to single_kboard mode only in nested
19573 command loops.
19574 (cmd_error, command_loop, command_loop_1, timer_check):
19575 Comment out unnecessary call to `any_kboard_state' and
19576 `record_single_kboard_state'.
19577 (delete_kboard): Exit single_kboard mode if we have just deleted
19578 that kboard. Use FRAME_KBOARD.
19579 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19580 `fatal_error_signal'.
19581 (record_single_kboard_state): Don't push_kboard if we weren't in
19582 single kboard state. Don't pop_kboard if we popped into any
19583 kboard state.
19584 (push_frame_kboard): Rename to push_kboard.
19585 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19586 (read_avail_input): Read input from all terminals.
19587 (mark_kboards): Also mark Vkeyboard_translate_table.
19588 (kbd_buffer_store_event_hold): Simplify condition.
19589 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19590 (Vkeyboard_translate_table): Move to struct kboard.
19591 (init_kboard): Initialize Vkeyboard_translate_table.
19592 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19593 Vkeyboard_translate_table. Update doc strings. Update docs of
19594 local-function-key-map and function-key-map.
19595
19596 * terminal.c: New file.
19597
19598 * term.c: Include errno.h.
19599 (Vring_bell_function, device_list, initial_device)
19600 (next_device_id, ring_bell, update_begin, update_end)
19601 (set_terminal_window, cursor_to, raw_cursor_to)
19602 (clear_to_end, clear_frame, clear_end_of_line)
19603 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19604 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19605 (syms_of_term): Move their initialization to terminal.c.
19606 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19607 (Ftty_display_color_cells)
19608 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19609 (clear_tty_hooks, set_tty_hooks)
19610 (init_tty, maybe_fatal): New functions.
19611 (Ftty_type): Return nil if terminal is not on a tty instead of
19612 throwing an error. Doc update.
19613 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19614 Doc update. Initialize new subrs and variables.
19615 (delete_tty): Use terminal->deleted.
19616 (tty_set_terminal_modes): Rename from set_terminal_modes.
19617 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19618 (set_scroll_region): Rename to `tty_set_scroll_region'.
19619 (turn_on_insert): Rename to `tty_turn_on_insert'.
19620 (turn_off_insert): Rename to `tty_turn_off_insert'.
19621 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19622 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19623 (toggle_highligh): Rename to `tty_toggle_highlight'.
19624 (background_highlight): Rename to `tty_background_highlight'.
19625 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19626 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19627 (tty_set_scroll_region, tty_background_highlight)
19628 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19629 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19630 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19631 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19632 Add static modifier.
19633 (tty_reset_terminal_modes, tty_set_terminal_window)
19634 (tty_set_scroll_region, tty_background_highlight)
19635 (tty_highlight_if_desired, tty_cursor_to)
19636 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19637 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19638 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19639 renames.
19640
196412007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19642
19643 * keyboard.c: Qrtl is new.
19644 (parse_tool_bar_item): Handle :rtl keyword.
19645 (syms_of_keyboard): Intern :rtl keyword.
19646
19647 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19648
19649 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19650 so no Lisp code is executed.
19651 (file_for_image, find_rtl_image): New functions.
19652 (xg_get_image_for_pixmap): Use file_for_image.
19653 (update_frame_tool_bar): If direction is RTL, use RTL image if
19654 defined. Use Gtk stock images if defined.
19655
196562007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19657
19658 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19659 for nonexistent or zero-width glyph in composition glyph.
19660
196612007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19662
19663 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19664
19665 * xdisp.c (Finvisible_p): New function.
19666 (syms_of_xdisp): defsubr it.
19667
196682007-08-24 Juanma Barranquero <lekktu@gmail.com>
19669
19670 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19671 Doc fixes.
19672
196732007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19674
19675 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19676
196772007-08-24 Martin Rudalics <rudalics@gmx.at>
19678
19679 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19680 whether decoding has modified buffer contents.
19681
196822007-08-24 Jason Rumney <jasonr@gnu.org>
19683
19684 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19685 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19686 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19687 (init_svg_functions) [HAVE_NTGUI]: New function.
19688 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19689 (svg_load_image): Use them.
19690 (svg_load_image) [HAVE_NTGUI]: Implement background.
19691
196922007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19693
19694 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19695 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19696 (LIBX): Remove @RSVG_LIBS@.
19697 (LIBES): Add $(RSVG_LIBS).
19698
19699 * image.c (svg_load_image): Blend with specified background if exists.
19700 Use IMAGE_BACKGROUND. Add Mac OS Support.
19701
19702 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19703 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19704 Remove macros.
19705 [MAC_OSX] (socket_callback): Do nothing.
19706 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19707 ReceiveNextEvent.
19708 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19709 socket_callback.
19710 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19711
197122007-08-22 Glenn Morris <rgm@gnu.org>
19713
19714 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19715
197162007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19717
19718 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19719
19720 * image.c: Add support for SVG images. Some additional comments
19721 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19722 (svg_image_p): New function to test for SVG image.
19723 (svg_load): New function to load SVG image.
19724 (svg_load_image): New function, helper for svg_load.
19725 (Qsvg): New Lisp_object.
19726 (svg_keyword_index): New enum.
19727 (svg_format): New static `image_keyword' struct.
19728 (svg_type): New static `image_type' struct.
19729 (librsvg/rsvg.h): Include it.
19730
197312007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19732
19733 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19734
197352007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19736
19737 * lread.c (Qold_style_backquotes): New var.
19738 (syms_of_lread): Init and staticpro it.
19739 (load_warn_old_style_backquotes): New fun.
19740 (Fload): Use them to warn about old style backquotes.
19741 (end_of_file_error, Fload): Remove unused vars.
19742
19743 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19744
19745 * lread.c (Vold_style_backquotes): New var.
19746 (syms_of_lread): Init and export it to Elisp.
19747 (read1): Set it when we find an old-style (back)quote.
19748
197492007-08-22 Jason Rumney <jasonr@gnu.org>
19750
19751 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19752
197532007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19754
19755 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19756
197572007-08-19 Richard Stallman <rms@gnu.org>
19758
19759 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19760
197612007-08-19 Andreas Schwab <schwab@suse.de>
19762
19763 * alloc.c (pure): Round PURESIZE up.
19764
197652007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19766
19767 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19768 active frame.
19769
197702007-08-16 Richard Stallman <rms@gnu.org>
19771
19772 * eval.c (Fcommandp): Add parens to clarify.
19773
19774 * minibuf.c (Fall_completions): Use enum for type of table.
19775
19776 * emacs.c (USAGE2): Improve text.
19777
197782007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19779
19780 * term.c (tty_default_color_capabilities): Declare static
19781 variables in file scope, to avoid HPUX compiler problem.
19782
197832007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19784
19785 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19786 to gtk_toolbar_insert.
19787
197882007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19789
19790 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19791
19792 * insdel.c (reset_var_on_error): New fun.
19793 (signal_before_change, signal_after_change):
19794 Use it to reset (after|before)-change-functions to nil in case of error.
19795 Bind inhibit-modification-hooks to t.
19796 Don't bind (after|before)-change-functions to nil while they run.
19797
197982007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19799
19800 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19801 filling pixmap with stippled background.
19802
198032007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19804
19805 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19806 Don't use invisible frame as parent window for repositioning.
19807
198082007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19809
19810 * print.c (new_backquote_output): Rename from old_backquote_output.
19811 (print): Inverse its logic (according to its name) so as to match the
19812 behavior of new_backquote_flag in lread.c.
19813
198142007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19815
19816 * gmalloc.c (posix_memalign): New function.
19817
19818 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19819 ActivateControl/DeactivateControl here.
19820 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19821 frame-notice-user-settings is non-nil.
19822 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19823 for kEventParamFMFontStyle.
19824 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19825 mac_pass_command_to_system and mac_pass_control_to_system here.
19826 (XTread_socket): Call ActivateControl/DeactivateControl here.
19827 (XTread_socket) [TARGET_API_MAC_CARBON]:
19828 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19829 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19830 for window repositioning.
19831
198322007-08-08 Glenn Morris <rgm@gnu.org>
19833
19834 * Replace `iff' in doc-strings and comments.
19835
198362007-08-07 Chong Yidong <cyd@stupidchicken.com>
19837
19838 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19839
198402007-08-07 Martin Rudalics <rudalics@gmx.at>
19841
19842 * fileio.c (Finsert_file_contents): Run format-decode and
19843 after_insert_file_functions on entire buffer when REPLACE is
19844 non-nil and inhibit modification_hooks and point_motion_hooks.
19845 For consistency, run after_insert_file_functions iff something
19846 got inserted. Move signal_after_change and update_compositions
19847 after code running after_insert_file_functions. Make sure that
19848 undo_list doesn't record intermediate steps of the decoding process.
19849
198502007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19851
19852 * emacs.c (main)
19853 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19854 Call malloc_enable_thread on interactive startup.
19855
19856 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19857 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19858 [USE_PTHREAD]: Conditionalize with it.
19859 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19860 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19861 New functions.
19862
198632007-08-06 Chong Yidong <cyd@stupidchicken.com>
19864
19865 * xdisp.c (redisplay_window): When restoring original buffer
19866 position, make sure it is still valid.
19867
19868 * image.c (png_load): Ignore png-supplied background color.
19869
198702007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19871
19872 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19873 Use kCFAbsoluteTimeIntervalSince1970.
19874
19875 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19876 New variable.
19877 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19878 event loop should be quit.
19879 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19880 Quit dialog event loop if quit_dialog_event_loop is set.
19881
19882 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19883 (Selection): New typedef. Use instead of ScrapRef.
19884 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19885 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19886 (mac_clear_selection): Rename from clear_scrap.
19887 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19888 scrap_has_target_type. All uses changed.
19889 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19890 (mac_selection_has_target_p): New functions.
19891 (mac_put_selection_value): Rename from put_scrap_string.
19892 (mac_get_selection_value): Rename from get_scrap_string.
19893 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19894 (put_scrap_private_timestamp, scrap_has_target_type)
19895 (get_scrap_private_timestamp): Remove functions.
19896 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19897 (x_own_selection, x_get_local_selection):
19898 Use mac_valid_selection_value_p.
19899 (x_own_selection): Don't use put_scrap_private_timestamp.
19900 Record OWNERSHIP-INFO into Vselection_alist instead.
19901 (x_get_local_selection): Don't check type if request is local.
19902 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19903 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19904
199052007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19906
19907 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19908 add comment explaining why.
19909
199102007-08-03 Richard Stallman <rms@gnu.org>
19911
19912 * fileio.c (Fvisited_file_modtime): Use make_time.
19913
199142007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19915
19916 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19917 build.
19918
199192007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19920
19921 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19922
199232007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19924
19925 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19926
199272007-07-30 Richard Stallman <rms@gnu.org>
19928
19929 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19930
199312007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19932
19933 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19934
199352007-07-28 Nick Roberts <nickrob@snap.net.nz>
19936
19937 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19938 remote default-directory.
19939
19940 * buffer.c (mode-line-format): Update doc string.
19941
199422007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19943
19944 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19945 scroll bar gap.
19946 (x_scroll_bar_create): Set bar->fringe_extended_p.
19947 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19948 on frame edge. Check fringe background extension. Don't clear
19949 extended fringe background area.
19950
19951 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19952 (w32_fill_area): Enclose multiple statements with do ... while (0).
19953
19954 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19955 Extend fringe background to scroll bar gap.
19956 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19957 Set bar->fringe_extended_p.
19958 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19959 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19960 background extension. Don't clear extended fringe background area.
19961
19962 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19963 New member fringe_extended_p.
19964
199652007-07-25 Glenn Morris <rgm@gnu.org>
19966
19967 * Relicense all FSF files to GPLv3 or later.
19968
19969 * COPYING: Switch to GPLv3.
19970
199712007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19972
19973 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19974
19975 * data.c (Finteractive_form): Check for the presence of an
19976 `interactive-form' symbol property more thoroughly.
19977
19978 * data.c (Finteractive_form): Use an `interactive-form' property if
19979 present, analogous to the function-documentation property.
19980
199812007-07-24 Jason Rumney <jasonr@gnu.org>
19982
19983 * w32fns.c (x_real_positions): Get real position from OS instead of
19984 calculating it.
19985
199862007-07-23 Jason Rumney <jasonr@gnu.org>
19987
19988 * filelock.c (current_lock_owner): Allow for @ sign in username.
19989
199902007-07-22 Nick Roberts <nickrob@snap.net.nz>
19991
19992 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19993 remote default-directory.
19994
19995 * buffer.c (mode-line-format): Describe above case in doc string.
19996
199972007-07-20 Eli Zaretskii <eliz@gnu.org>
19998
19999 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20000 Define if not defined.
20001
200022007-07-18 Jason Rumney <jasonr@gnu.org>
20003
20004 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20005
200062007-07-18 Richard Stallman <rms@gnu.org>
20007
20008 * data.c (Fsetq_default): Doc fix.
20009
20010 * eval.c (Fsetq): Doc fix.
20011
200122007-07-18 Juanma Barranquero <lekktu@gmail.com>
20013
20014 * coding.c (Ffind_operation_coding_system):
20015 * eval.c (For, Fand): Doc fixes.
20016 Reported by Johan Bockgård.
20017
200182007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20019
20020 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20021
20022 * xterm.h: Declare x_ewmh_activate_frame.
20023
20024 * xterm.c (x_ewmh_activate_frame): New function.
20025 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20026
200272007-07-17 Martin Rudalics <rudalics@gmx.at>
20028
20029 * window.c (Fdisplay_buffer): If largest or LRU window is the
20030 only window, split it even if it is not eligible for splitting.
20031 This restores the original behavior broken by the 2007-07-15
20032 change.
20033
200342007-07-17 Glenn Morris <rgm@gnu.org>
20035
20036 * abbrev.c (abbrev_check_chars): New function.
20037 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20038 Call abbrev_check_chars to check abbrev characters are word
20039 constituents. Doc fix.
20040
200412007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20042
20043 * process.c (Fstart_process, Fmake_network_process)
20044 (read_process_output): Fix up last changes.
20045
200462007-07-16 Eli Zaretskii <eliz@gnu.org>
20047
20048 * makefile.w32-in (clean): Don't delete *~.
20049
200502007-07-16 Andreas Schwab <schwab@suse.de>
20051
20052 * window.c (Fdisplay_buffer): Use NILP.
20053 (Fset_window_scroll_bars): Likewise.
20054
200552007-07-15 Martin Rudalics <rudalics@gmx.at>
20056
20057 * window.c (window_min_size_2): New function.
20058 (window_min_size_1, size_window, Fdisplay_buffer)
20059 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20060 windows without mode- or header-lines when window-min-height is
20061 too small.
20062 (size_window): Reset nodelete_p after testing it, following an
20063 earlier note by Kim F. Storm.
20064 (display_buffer): Do not set split_height_threshold to twice the
20065 value of window_min_height to avoid changing the value of a
20066 customizable variable. Rather explicitly check whether the
20067 height of the window that shall be splitted is at least as large
20068 as split_height_threshold.
20069 (Fwindow_full_width_p): New defun.
20070 (syms_of_window): Defsubr it.
20071
20072 * window.h: Add EXFUN for Fwindow_full_width_p.
20073
200742007-07-14 Jason Rumney <jasonr@gnu.org>
20075
20076 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20077
200782007-07-14 Richard Stallman <rms@gnu.org>
20079
20080 * eval.c (maybe_call_debugger): New function.
20081 (find_handler_clause): Use maybe_call_debugger.
20082 Call it when the handler says `debug'.
20083 Eliminate DEBUGGER_VALUE_PTR.
20084 (Fsignal): Eliminate debugger_value.
20085 (Qdebug): New variable.
20086 (syms_of_eval): Initialize it.
20087
200882007-07-14 Juanma Barranquero <lekktu@gmail.com>
20089
20090 * eval.c (Fprogn):
20091 * keyboard.c (Ftrack_mouse):
20092 * print.c (Fwith_output_to_temp_buffer):
20093 * window.c (Fsave_window_excursion): Doc fix.
20094
200952007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20096
20097 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20098
200992007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20100
20101 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20102 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20103 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20104 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20105 Remove unused encoding_carryover.
20106 * process.c: Adjust all functions accordingly.
20107
201082007-07-12 Richard Stallman <rms@gnu.org>
20109
20110 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20111
201122007-07-11 Jason Rumney <jasonr@gnu.org>
20113
20114 * makefile.w32-in (LIBS): Include OLE32.
20115
20116 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20117 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20118
201192007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20120
20121 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20122 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20123 from a Lisp_Object into a bare pointer.
20124 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20125 Adjust the code correspondingly.
20126
20127 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20128
20129 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20130 (term_show_mouse_face): Remove unused var `j'.
20131 (handle_one_term_event): Remove unused vars `i' and `j'.
20132 Don't cast return value of ttyname since it's not necessary.
20133
201342007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20135
20136 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20137 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20138
20139 * fns.c (map_char_table): Use an array of int for `indices' rather than
20140 an array of Lisp_Objects (which are only ever integers anyway).
20141 (Fmap_char_table): Update caller.
20142 * lisp.h: Update prototype.
20143 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20144 * fontset.c (Ffontset_info):
20145 * casetab.c (set_case_table): Update callers.
20146
20147 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20148
20149 * keymap.c (struct accessible_keymaps_data)
20150 (struct where_is_internal_data): New structures.
20151 (accessible_keymaps_1, where_is_internal_1): Use them to change
20152 interface to adhere to the one used by map_keymap.
20153 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20154 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20155
20156 * keymap.h (map_keymap_function_t): More informative prototype.
20157
201582007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20159
20160 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20161 (looking_at_1): Don't change search_regs and last_thing_searched
20162 if `inhibit-changing-match-data' is non-nil.
20163 (string_match_1, search_buffer, set_search_regs): Likewise.
20164 (syms_of_search): Add Lisp level definition for
20165 `inhibit-changing-match-data' and set it to nil.
20166 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20167 start and end of the match, instead of using values in search_regs.
20168
201692007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20170
20171 * minibuf.c (Fcompleting_read): New value `confirm-only'
20172 for `require-match'.
20173
201742007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20175
20176 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20177 part of the 2007-06-27 change to syms_of_fileio.
20178
201792007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20180
20181 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20182 Check WINDOWP before using XWINDOW. Consolidate return statements.
20183
201842007-06-27 Richard Stallman <rms@gnu.org>
20185
20186 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20187
201882007-06-27 Juanma Barranquero <lekktu@gmail.com>
20189
20190 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20191
201922007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20193
20194 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20195 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20196 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20197 (_free_internal, memalign): Use them.
20198 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20199 Initialize to PTHREAD_MUTEX_INITIALIZER.
20200 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20201 (morecore_nolock): Rename from morecore. All uses changed.
20202 Use only nolock versions of internal allocation functions.
20203 (_malloc_internal_nolock, _realloc_internal_nolock)
20204 (_free_internal_nolock): New functions created from
20205 _malloc_internal, _realloc_internal, and _free_internal.
20206 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20207 Copy hook value to automatic variable before its use.
20208 (memalign): Copy hook value to automatic variable before its use.
20209
202102007-06-26 Kenichi Handa <handa@m17n.org>
20211
20212 * coding.c (Ffind_operation_coding_system): Docstring improved.
20213 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20214
202152007-06-25 David Kastrup <dak@gnu.org>
20216
20217 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20218 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20219 cater for additional parameter.
20220
20221 * keymap.h: Adjust number of parameters to `current-active-maps'.
20222
20223 * doc.c (Fsubstitute_command_keys): Adjust call of
20224 `current-active-maps'.
20225
202262007-06-25 David Kastrup <dak@gnu.org>
20227
20228 * callint.c (Fcall_interactively): Make the parsing of interactive
20229 specs somewhat more readable.
20230
202312007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20232
20233 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20234 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20235 if extended background has already been filled.
20236
202372007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20238
20239 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20240 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20241
20242 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20243 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20244 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20245 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20246 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20247 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20248 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20249 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20250 Run timers during dialog popup.
20251 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20252
202532007-06-21 Jason Rumney <jasonr@gnu.org>
20254
20255 * image.c (convert_mono_to_color_image): Swap fore and background.
20256
202572007-06-20 Jason Rumney <jasonr@gnu.org>
20258
20259 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20260 (w32_free_bdf_font): Unmap memory not handle.
20261
202622007-06-20 Sam Steingold <sds@gnu.org>
20263
20264 * gmalloc.c (__morecore): Fix the declaration to comply with the
20265 definition.
20266
202672007-06-20 Juanma Barranquero <lekktu@gmail.com>
20268
20269 * w32term.c (w32_delete_display): Remove leftover declaration.
20270 (w32_define_cursor, w32_initialize): Make static.
20271
20272 * w32.c (_wsa_errlist): Fix typo in error message.
20273 (init_environment): Ignore any environment variable from the
20274 registry having a null value.
20275
202762007-06-20 Glenn Morris <rgm@gnu.org>
20277
20278 * Makefile.in (LIBGIF): Default to -lgif.
20279
202802007-06-17 Jason Rumney <jasonr@gnu.org>
20281
20282 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20283 unicode strings.
20284
202852007-06-16 Juanma Barranquero <lekktu@gmail.com>
20286
20287 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20288 Fix typo in docstring.
20289
202902007-06-16 Eli Zaretskii <eliz@gnu.org>
20291
20292 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20293 and their keybindings.
20294
202952007-06-15 Chong Yidong <cyd@stupidchicken.com>
20296
20297 * composite.c (update_compositions): Fix last fix.
20298
202992007-06-14 Jason Rumney <jasonr@gnu.org>
20300
20301 * w32.c (get_process_times_fn): New function pointer.
20302 (globals_of_w32): Intialize it if present in kernel32.dll.
20303 (w32_get_internal_run_time): New function.
20304
20305 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20306
203072007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20308
20309 * composite.c (update_compositions): Check the validness of
20310 compositions.
20311
203122007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20313
20314 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20315 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20316
20317 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20318 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20319
20320 * macgui.h (USE_MAC_TOOLBAR): New define.
20321
20322 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20323 Return immediately unless popup is activated.
20324
20325 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20326 background to scroll bar gap.
20327 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20328 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20329 scroll bars on frame edge. Check fringe background extension.
20330 Don't clear extended fringe background area.
20331 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20332 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20333 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20334 [USE_MAC_TOOLBAR]: New macros.
20335 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20336 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20337 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20338 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20339 [USE_MAC_TOOLBAR]: New functions.
20340 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20341 manually if previous repositioning has failed.
20342 (mac_handle_keyboard_event): Use precomputed event kind.
20343 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20344 as tool bar item click. Handle mouse movement over tool bar items.
20345
20346 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20347 toolbar_win_gravity.
20348 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20349 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20350 Add externs.
20351
20352 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20353 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20354
203552007-06-14 Chong Yidong <cyd@stupidchicken.com>
20356
20357 * image.c (search_image_cache): Remove unused variable.
20358
203592007-06-13 Chong Yidong <cyd@stupidchicken.com>
20360
20361 * xfns.c, xmenu.c: Link to xaw3d if available.
20362
203632007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20364
20365 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20366 frame_foreground and frame_background.
20367
20368 * image.c (lookup_image): Save frame foreground and background colors.
20369 (search_image_cache): Check if saved and current frame colors match.
20370
203712007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20372
20373 * regex.c (regex_compile): Remove the `regnum' counter.
20374 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20375
203762007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20377
20378 * term.c: Include intervals.h to declare Fget_text_property.
20379
203802007-06-10 Jason Rumney <jasonr@gnu.org>
20381
20382 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20383
203842007-06-08 Juanma Barranquero <lekktu@gmail.com>
20385
20386 * callint.c (Fcall_interactively):
20387 * editfns.c (Fdelete_and_extract_region):
20388 * fileio.c (Fread_file_name):
20389 * fns.c (Fmapconcat):
20390 * keyboard.c (cmd_error_internal):
20391 * keymap.c (Fkey_description):
20392 * lread.c (openp):
20393 * minibuf.c (read_minibuf):
20394 * search.c (wordify):
20395 * sunfns.c (sel_read):
20396 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20397 * xfns.c (x_default_scroll_bar_color_parameter):
20398 * xmenu.c (menu_help_callback):
20399 * xselect.c (Fx_get_atom_name):
20400 * xterm.c (x_term_init): Use empty_unibyte_string.
20401
204022007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20403
20404 * alloc.c (init_strings): Initialize canonical empty strings.
20405 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20406 canonical empty string when the requested size is 0.
20407
20408 * emacs.c (empty_unibyte_string): Rename from empty_string.
20409 (empty_multibyte_string): New canonical empty string.
20410 (syms_of_emacs): Don't initialize empty_string.
20411
20412 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20413 string, if appropriate.
20414 (empty_unibyte_string, empty_multibyte_string): New externs.
20415 (empty_string): Remove extern.
20416
20417 * lread.c (syms_of_lread): Use empty_unibyte_string.
20418
204192007-06-07 Jason Rumney <jasonr@gnu.org>
20420
20421 * s/ms-w32.h: Don't define HAVE_TZNAME.
20422
20423 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20424
204252007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20426
20427 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20428
20429 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20430 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20431
20432 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20433 Don't call next handler.
20434 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20435 Remove argument. Install handler to application.
20436 (set_frame_menubar): Don't change deep_p.
20437 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20438 FRAME_OUTER_TO_INNER_DIFF_Y.
20439 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20440 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20441 [HAVE_DIALOGS]: New macros.
20442 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20443 Use them.
20444 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20445
20446 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20447 init_service_handler. All callers changed. Return OSStatus value.
20448
20449 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20450 All callers changed so as not to call SetPortWindowPort.
20451 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20452 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20453 mac_draw_string_common.
20454 (mac_draw_image_string_qd): Likewise.
20455 (mac_draw_string_common): Use them. Add INLINE.
20456 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20457 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20458 GetGlobalMouse.
20459 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20460 and FRAME_OUTER_TO_INNER_DIFF_Y.
20461 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20462 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20463 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20464 repositioning window to mac_handle_window_event.
20465 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20466 saving window location to mac_handle_window_event
20467 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20468 (install_menu_target_item_handler): Remove argument in extern.
20469 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20470 Also accept command events.
20471 (do_keystroke): New function created from XTread_socket.
20472 (init_command_handler): Remove functions.
20473 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20474 and save window location by kEventWindowShowing and kEventWindowHiding
20475 handlers here. Don't call next handler for window state change and
20476 focus events.
20477 (mac_handle_application_event, mac_handle_keyboard_event)
20478 [TARGET_API_MAC_CARBON]: New functions.
20479 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20480 kEventWindowShowing and kEventWindowHiding events. Move installation
20481 of mouse, font, text input and menu target item handlers to
20482 install_application_handler.
20483 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20484 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20485 New function.
20486 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20487 Register it.
20488 (XTread_socket) [TARGET_API_MAC_CARBON]:
20489 Consolidate SendEventToEventTarget calls.
20490 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20491 Move application activation handler to mac_handle_application_event.
20492 Move keyboard handler to mac_handle_keyboard_event.
20493 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20494 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20495 init_command_handler. Call install_application_handler.
20496
20497 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20498 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20499
205002007-06-07 Glenn Morris <rgm@gnu.org>
20501
20502 * emacs.c (main): Use `emacs-copyright' in --version output.
20503
205042007-06-06 Chong Yidong <cyd@stupidchicken.com>
20505
20506 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20507
205082007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20509
20510 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20511
20512 * macgui.h: Replace WindowPtr with WindowRef.
20513
20514 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20515 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20516 Replace ControlHandle with ControlRef.
20517 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20518
20519 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20520 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20521 Replace ControlHandle with ControlRef.
20522 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20523 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20524
20525 * macterm.h (struct scroll_bar): Rename member control_handle_low
20526 and control_handle_high to control_ref_low and control_ref_high.
20527 All uses changed.
20528 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20529 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20530 respectively. All uses changed.
20531 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20532 (install_window_handler, remove_window_handler): Replace WindowPtr
20533 with WindowRef in externs.
20534
205352007-06-05 Juanma Barranquero <lekktu@gmail.com>
20536
20537 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20538
205392007-06-03 Nick Roberts <nickrob@snap.net.nz>
20540
20541 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20542
20543 * frame.c (Fmouse_position, Fmouse_pixel_position):
20544 Condition on HAVE_GPM too.
20545
20546 * term.c (term_mouse_highlight): Remove unused variables.
20547 (Fterm_open_connection): Set gpm_zerobased to 1.
20548 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20549 Use zero based co-ordinates.
20550 (handle_one_term_event): Report a drag as mouse movement too.
20551
20552 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20553
205542007-06-03 Chong Yidong <cyd@stupidchicken.com>
20555
20556 * image.c (search_image_cache): New function. Require background
20557 color match if background color is unspecified in the image spec.
20558 (uncache_image, lookup_image): Use it.
20559
205602007-06-01 Juanma Barranquero <lekktu@gmail.com>
20561
20562 * window.c (Fshrink_window): Reflow docstring.
20563
205642007-06-02 Chong Yidong <cyd@stupidchicken.com>
20565
20566 * Version 22.1 released.
20567
205682007-06-01 Richard Stallman <rms@gnu.org>
20569
20570 * xfns.c (x_encode_text): Add GCPRO.
20571
205722007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20573
20574 * xfns.c (x_set_name_internal): Save encoded name before
20575 x_encode_text in case string data is relocated.
20576
205772007-05-31 Richard Stallman <rms@gnu.org>
20578
20579 * buffer.c (syms_of_buffer): Doc fix.
20580
205812007-05-30 Nick Roberts <nickrob@snap.net.nz>
20582
20583 * sysdep.c (init_sys_modes): Add rather than replace with
20584 O_NONBLOCK.
20585
20586 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20587 term_mouse_moveto.
20588
20589 * termhooks.h (term_mouse_moveto): New extern.
20590
20591 * term.c (mouse_face_window): Rename...
20592 (Qmouse_face_window): ...to this.
20593 (term_show_mouse_face, term_clear_mouse_face)
20594 (term_mouse_highlight): Use Qmouse_face_window.
20595 (term_mouse_moveto): New function.
20596 (term_mouse_position): Make it work.
20597 (syms_of_term): Uncomment assignment to mouse_position_hook.
20598 Staticpro Qmouse_face_window.
20599
206002007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20601
20602 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20603 around current_column call.
20604
206052007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20606
20607 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20608 * xdisp.c (next_element_from_buffer):
20609 * window.c (delete_window):
20610 * term.c (term_mouse_highlight):
20611 * msdos.c (getdefdir):
20612 * macterm.c (mac_create_bitmap_from_bitmap_data)
20613 (init_font_name_table):
20614 * fns.c (Fsxhash):
20615 * data.c (Fmake_local_variable):
20616 * ccl.c (ccl_driver): Likewise.
20617
206182007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20619
20620 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20621 Call mac_wakeup_from_rne on window size change.
20622
206232007-05-25 Chong Yidong <cyd@stupidchicken.com>
20624
20625 * image.c (uncache_image): Fix typo.
20626
206272007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20628
20629 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20630
206312007-05-22 Richard Stallman <rms@gnu.org>
20632
20633 * xterm.c (x_connection_closed): Remove NO_RETURN.
20634
206352007-05-22 Martin Rudalics <rudalics@gmx.at>
20636
20637 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20638
206392007-05-21 Chong Yidong <cyd@stupidchicken.com>
20640
20641 * image.c (uncache_image): New function.
20642 (Fimage_refresh): New function.
20643
206442007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20645
20646 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20647
206482007-05-20 Nick Roberts <nickrob@snap.net.nz>
20649
20650 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20651 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20652
206532007-05-20 Nick Roberts <nickrob@snap.net.nz>
20654
20655 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20656 conditional on [HAVE_GPM_H].
20657
206582007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20659
20660 * syntax.c (skip_chars): Update syntax-table only after we checked that
20661 the new location is valid.
20662
206632007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20664
20665 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20666 mac_get_window_bounds.
20667
206682007-05-20 Nick Roberts <nickrob@snap.net.nz>
20669
20670 * Makefile.in (LIBGPM): Allow it to be set from configure.
20671 If set then link Emacs with it.
20672
20673 * config.in: Regenerate.
20674
20675 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20676 New externs.
20677
20678 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20679 Include gpm.h.
20680 (handle_one_term_event, term_gpm): New externs.
20681
20682 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20683 and allow it to be interrupted by SIGIO.
20684
20685 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20686 (wait_reading_process_output): Wait on gpm_fd too.
20687 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20688 (add_gpm_wait_descriptor_called_flag): New variable.
20689 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20690
20691 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20692 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20693 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20694 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20695 (make_lispy_event): Add case GPM_CLICK_EVENT.
20696 (read_avail_input): Handle mouse input.
20697
20698 * term.c (write_glyphs_with_face): New function.
20699 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20700 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20701 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20702 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20703 (last_mouse_x, last_mouse_y): New variables.
20704 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20705 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20706 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20707 (Fterm_close_connection): New functions.
20708 (term_init): Initialise mouse_face_window.
20709
207102007-05-19 Chong Yidong <cyd@stupidchicken.com>
20711
20712 * xdisp.c (redisplay_window): If first window line is a
20713 continuation line, recompute the new window start instead of
20714 recentering.
20715
207162007-05-18 Glenn Morris <rgm@gnu.org>
20717
20718 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20719 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20720
207212007-05-17 Glenn Morris <rgm@gnu.org>
20722
20723 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20724
207252007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20726
20727 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20728 dead key repeat and up events.
20729
207302007-05-14 Chong Yidong <cyd@stupidchicken.com>
20731
20732 * image.c (pbm_load): Check image size for monochrome pbm.
20733
207342007-05-13 Chong Yidong <cyd@stupidchicken.com>
20735
20736 * xterm.c (XTread_socket): Revert last change.
20737
207382007-05-12 Chong Yidong <cyd@stupidchicken.com>
20739
20740 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20741
20742 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20743
207442007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20745
20746 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20747 mixup (YAILOM).
20748
207492007-05-07 Andreas Schwab <schwab@suse.de>
20750
20751 * keymap.c (Flookup_key): Fix typo in last change.
20752
207532007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20754
20755 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20756 mapping for unibyte strings.
20757
207582007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20759
20760 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20761 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20762
207632007-04-29 Richard Stallman <rms@gnu.org>
20764
20765 * insdel.c (replace_range): For undo, record insertion first.
20766
207672007-04-29 Andreas Schwab <schwab@suse.de>
20768
20769 * lisp.h (VECSIZE): Use OFFSETOF.
20770
207712007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20772
20773 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20774 disabled lines.
20775
207762007-04-28 Richard Stallman <rms@gnu.org>
20777
20778 * lread.c (read_escape): In a string, \s is always space.
20779
207802007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20781
20782 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20783
20784 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20785 submenu for menu bar items.
20786
20787See ChangeLog.10 for earlier changes.
20788
20789;; Local Variables:
20790;; coding: utf-8
20791;; add-log-time-zone-rule: t
aac0c6e3
MR
20792;; End:
20793
76b6f707 20794 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20795
20796 This file is part of GNU Emacs.
20797
20798 GNU Emacs is free software: you can redistribute it and/or modify
20799 it under the terms of the GNU General Public License as published by
20800 the Free Software Foundation, either version 3 of the License, or
20801 (at your option) any later version.
20802
20803 GNU Emacs is distributed in the hope that it will be useful,
20804 but WITHOUT ANY WARRANTY; without even the implied warranty of
20805 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20806 GNU General Public License for more details.
20807
20808 You should have received a copy of the GNU General Public License
20809 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20810
20811;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40