(Fbyteorder, init_font, Ffont_get_system_font): Declare.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9370c1d8
AS
12009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2
3 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
4
637fa988
JD
52009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6
a6eb20d8 7 * xftfont.c (xftfont_fix_match): Older versions of fontconfig does
21050de1 8 not have FC_LCD_*. #define them if not there.
a6eb20d8
JD
9
10 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto
11
637fa988
JD
12 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
13
14 * xterm.c (handle_one_xevent): Call xft_settings_event for
15 ClientMessage, PropertyNotify and DestroyNotify.
16 (x_term_init): If we have XFT, get DPI from Xft.dpi.
17 Call xsettings_initialize.
18
19 * xftfont.c (xftfont_fix_match): New function.
20 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
21 Call xftfont_fix_match after XftFontMatch.
22
23 * xfont.c (xfont_driver): Initialize all members.
24
25 * xfns.c (x_default_font_parameter): Try font from Ffont_get_system_font.
26 Do not get font from x_default_parameter if we got one from
27 Ffont_get_system_font.
28 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT (f).
29
30 * w32font.c (w32font_driver): Initialize all members.
31
32 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
33
34 * lisp.h: Declare syms_of_xsettings.
35
36 * keyboard.c (kbd_buffer_get_event, make_lispy_event): Handle
37 CONFIG_CHANGED_EVENT.
38
39 * ftfont.c (ftfont_filter_properties): New function.
40
41 * frame.c (x_set_font): Remove unused variable lval.
42
43 * font.h (struct font_driver): filter_properties is new.
44
45 * font.c (font_put_extra): Don't return if val is nil, it means
46 boolean option is off.
47 (font_parse_fcname): Collect all extra properties in extra_props
48 and call filter_properties for all drivers with extra_props and
49 font as parameter.
50 (font_open_entity): Do not use cache, it does not pick up new fontconfig
51 settings like hinting.
52 (font_load_for_lface): If spec had a name in it, store it in entity.
53
54 * emacs.c (main): Call syms_of_xsettings
55
56 * config.in: HAVE_GCONF is new.
57
58 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
59 xsettings.o is new.
60
5a942932
KH
612009-11-17 Kenichi Handa <handa@m17n.org>
62
63 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
64 back to the default font in case that no suitable font is found.
65
b7c7a4d1
SM
662009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
67
68 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
69 Suggested by Chad Brown <yandros@mit.edu>.
70 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
71
072f1e39
JD
722009-11-16 Jan Djärv <jan.h.d@swipnet.se>
73
74 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
75
5d1e70a2
AS
762009-11-14 Andreas Schwab <schwab@linux-m68k.org>
77
78 * Makefile.in: Ignore errors from mkdir when creating deps
79 directory.
80
a53cfbe5
JD
812009-11-14 Jan Djärv <jan.h.d@swipnet.se>
82
473a99b7
JD
83 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
84 has a parent.
85
a53cfbe5
JD
86 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
87 dependency files in deps/. Include those files into Makefile.
88
89 * config.in: Generated (AUTO_DEPEND).
90
f04bb9b2
MA
912009-11-13 Michael Albinus <michael.albinus@gmx.de>
92
b7c7a4d1 93 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
94 Vdbus_registered_functions_table, because it contains also
95 properties. Fix docstring.
b7c7a4d1 96 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 97
8f11f7ec
SM
982009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
99
100 * alloc.c (mark_object): Don't reprocess marked strings.
101 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
102 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
103
8a605fe8
KH
1042009-11-13 Kenichi Handa <handa@m17n.org>
105
8f11f7ec 106 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
107 semantics of Vword_combining_categories.
108 (Vword_combining_categories): Describe the slight change of the
109 semantics.
110
241c4680
EZ
1112009-11-13 Eli Zaretskii <eliz@gnu.org>
112
113 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
114
115 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
116
5d58e44c
SM
1172009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
118
119 * xdisp.c (syms_of_xdisp): Fix typo in last change.
120
5e13f9d3
JB
1212009-11-12 Juanma Barranquero <lekktu@gmail.com>
122
123 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
124
cf54c754
DR
1252009-11-11 David Reitter <david.reitter@gmail.com>
126
127 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
128 variables to fix 2009-11-09 change.
129
a4ada374
DN
1302009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
131
91433552
DN
132 * process.c (ifflag_def): Make flag_sym constant.
133 (Fnetwork_interface_info): Use a constant pointer.
134 (ifflag_table):
135 * xfns.c (cursor_bits):
136 * xdisp.c (power_letter):
137 * termcap.c (speeds, esctab):
138 * sysdep.c (baud_convert):
139 * keyboard.c (lispy_accent_codes, modifier_names):
140 * image.c (xbm_format, xpm_format, pbm_format, png_format)
141 (jpeg_format, tiff_format, gif_format, svg_format)
142 (interlace_start, interlace_increment, gs_format):
143 * gtkutil.c (separator_names):
144 * fringe.c (swap_nibble):
145 * fns.c (base64_value_to_char, base64_char_to_value):
146 * fileio.c (make_temp_name_tbl):
147 * coding.c (suffixes): Make constant.
148
f4265f6c
DN
149 * frame.c (make_initial_frame):
150 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
151 build_string.
152 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
153
04420943
DN
154 * s/freebsd.h:
155 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
156
0a5d24ae
DN
157 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
158 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
159
a4ada374
DN
160 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
161 * xterm.c (syms_of_xterm):
162 * xfaces.c (syms_of_xfaces):
163 * xdisp.c (syms_of_xdisp):
164 * lread.c (syms_of_lread):
165 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
166 build_string.
91433552 167
a4ada374
DN
168 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
169
af98fc7f
SM
1702009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
171
172 * fns.c (Fplist_get): Merge the active and the uncommented code.
173
e90292a9
JD
1742009-11-10 Jan Djärv <jan.h.d@swipnet.se>
175
176 * keyboard.h: Declare timer_check.
177
178 * keyboard.c (timer_check_2): New function that does what the old
179 timer_check did.
180 (timer_check): Call timer_check_2 until -1 or a non-zero time is
181 returned, i.e. don't return -1 with timers pending.
182
183 * process.c: Remove extern declaration of timer_check.
184
185 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
186 even if timer_check returned -1.
187
af98fc7f
SM
188 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
189 xg_dialog_data.
e90292a9
JD
190 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
191 the event loop.
192 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
193 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
194 Destroy the dialog after xg_dialog_run.
195
045b83c0
SM
1962009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
197
198 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
199
1fb99a3a
JD
2002009-11-10 Jan Djärv <jan.h.d@swipnet.se>
201
202 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
203
04e452cb
JB
2042009-11-09 Juanma Barranquero <lekktu@gmail.com>
205
206 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
207
ef7417fd
SM
2082009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
209
210 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
211 w32menu.c, and nsmenu.m.
212 Simplify the obsolete case where position is nil.
213 (cleanup_popup_menu): New function, moved from nsmenu.m.
214 (struct skp): Remove slot `notreal'.
215 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
216 adjust callers.
217 (single_menu_item): Adjust call to parse_menu_item.
218 (syms_of_menu): Defsubr x-popup-menu.
219 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
220 (keymap_panes): Don't export any more.
221 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
222 (xmenu_show): Declare.
223 * keyboard.c (parse_menu_item): Remove arg `notreal'.
224 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
225 * keyboard.h (parse_menu_item): Update declaration.
226 * xmenu.c (Fx_popup_menu): Remove.
227 (syms_of_xmenu): Don't defsubr x-popup-menu.
228 * w32menu.c (Fx_popup_menu): Remove.
229 (syms_of_w32menu): Don't defsubr x-popup-menu.
230 * nsmenu.m (cleanup_popup_menu): Remove.
231 (ns_menu_show): Rename from ns_popup_menu and remove all the code
232 moved to menu.c's Fx_popup_menu.
233 (Fx_popup_menu): Remove.
234 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
235 menu_items (it's done in menu.c already).
236
424d6179
SM
2372009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
238
239 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
240 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
241
c0df13a6 2422009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
243
244 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 245 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
246 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
247 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
248
2de9f71c
SM
2492009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
250
251 Let integers use up 2 tags to give them one extra bit and thus double
252 their range.
253 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
254 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
255 New macros.
256 (enum Lisp_Type): Use them. Give explicit values.
257 (Lisp_Type_Limit): Remove.
258 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
259 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
260 Pay attention to USE_2_TAGS_FOR_INTS.
261 (INTEGERP): Use LISP_INT_TAG_P.
262 * fns.c (internal_equal): Simplify the default case.
263 (sxhash): Use case_Lisp_Int.
264 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
265 any more.
266 (Ftype_of): Use case_Lisp_Int.
267 (store_symval_forwarding): Take into account the fact that Ints can
268 now have more than one tag.
269 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
270 buffer_slot_type_mismatch):
271 * xfaces.c (face_attr_equal_p):
272 * print.c (print_object):
273 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
274 Use case_Lisp_Int.
275
323637a2
EZ
2762009-11-06 Eli Zaretskii <eliz@gnu.org>
277
7ac65b38
EZ
278 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
279
323637a2
EZ
280 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
281 warning.
282
e511451f
JD
2832009-11-06 Jan Djärv <jan.h.d@swipnet.se>
284
285 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
286
287 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
288
289 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
290 ButtonPressRelease and MotionNotify (bug#4870).
291
5e2327cf
DN
2922009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
293
5adc433e
DN
294 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
295
d67b4f80
DN
296 * xterm.c (syms_of_xterm):
297 * xselect.c (syms_of_xselect):
298 * xmenu.c (syms_of_xmenu):
299 * xfns.c (syms_of_xfns):
300 * xfaces.c (syms_of_xfaces):
301 * xdisp.c (syms_of_xdisp):
302 * window.c (syms_of_window):
303 * w32fns.c (syms_of_w32fns):
304 * undo.c (syms_of_undo):
305 * textprop.c (syms_of_textprop):
306 * terminal.c (syms_of_terminal):
307 * syntax.c (syms_of_syntax):
308 * sound.c (syms_of_sound):
309 * search.c (syms_of_search):
310 * print.c (syms_of_print):
311 * minibuf.c (syms_of_minibuf):
312 * macros.c (syms_of_macros):
313 * keymap.c (syms_of_keymap, initial_define_key)
314 (initial_define_lispy_key):
315 * keyboard.c (syms_of_keyboard):
316 * insdel.c (syms_of_insdel):
317 * image.c (syms_of_image):
318 * fringe.c (syms_of_fringe):
319 * frame.c (syms_of_frame):
320 * fontset.c (syms_of_fontset):
321 * fns.c (syms_of_fns):
322 * fns.c (syms_of_fns):
323 * fileio.c (syms_of_fileio):
324 * fileio.c (syms_of_fileio):
325 * eval.c (syms_of_eval):
326 * doc.c (syms_of_doc):
327 * dispnew.c (syms_of_display):
328 * dired.c (syms_of_dired):
329 * dbusbind.c (syms_of_dbusbind):
330 * data.c (syms_of_data):
331 * composite.c (syms_of_composite):
332 * coding.c (syms_of_coding):
333 * cmds.c (syms_of_cmds):
334 * charset.c (define_charset_internal, syms_of_character):
335 * ccl.c (syms_of_ccl):
336 * category.c (syms_of_category, init_category_once):
337 * casetab.c (syms_of_casetab):
338 * casefiddle.c (syms_of_casefiddle):
339 * callint.c (syms_of_callint):
340 * bytecode.c (syms_of_bytecode):
341 * buffer.c (keys_of_buffer, syms_of_buffer):
342 * alloc.c (syms_of_alloc):
343 * process.c (syms_of_process, init_process):
344 * lread.c (syms_of_lread, init_obarray):
345 * font.c (build_style_table):
346 * emacs.c (syms_of_emacs, main): Replace calls to intern with
347 intern_c_string, calls to make_pure_string with
348 make_pure_c_string. Use pure_cons instead of Fcons.
349
5e2327cf
DN
350 * process.c (socket_options): Make it const.
351 (set_socket_option, init_process): Use a const pointer.
352
353 * lread.c (intern_c_string): New function.
354 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
355 (defvar_int): Uset it. Make the name const char*.
356
357 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
358 (defvar_int): Update prototypes.
359 (DEFUN, EXFUN): Support for prototypes is now required.
360 (intern_c_string): New prototype.
361 (struct Lisp_Subr): Make symbol_name constant.
362
363 * font.c (struct table_entry): Remove unused member. Make NAMES
364 constant.
365 (weight_table, slant_table, width_table): Make constant.
366
367 * emacs.c (struct standard_args): Make name and longname constant.
368
369 * character.h (DEFSYM): Use intern_c_string.
370
a56eaaef
DN
3712009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
372
373 * alloc.c (make_pure_c_string): New function.
374
375 * eval.c (Fautoload): Purecopy all arguments.
376
f6a07420
KH
3772009-11-05 Kenichi Handa <handa@m17n.org>
378
379 * fileio.c (Finsert_file_contents): Be sure set coding-system of
380 the buffer in case of replace.
381
5d28d4b1
DN
3822009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
383
384 * puresize.h (BASE_PURESIZE): Increase to 1620000.
385
b349d111
SM
3862009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
387
d528b1ce
SM
388 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
389 when applicable (bug#4851).
390
b349d111
SM
391 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
392 (P_): Support for prototypes is now required.
393
c38eb027
CY
3942009-10-31 Chong Yidong <cyd@stupidchicken.com>
395
396 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
397 (Bug#4827).
398
0405f8d9
EZ
3992009-10-30 Eli Zaretskii <eliz@gnu.org>
400
d528b1ce 401 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 402
ca0a881a
DN
4032009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
404
405 * puresize.h (BASE_PURESIZE): Increase to 1470000.
406
d528b1ce
SM
407 * lread.c (Fload): Purecopy the file name when building
408 Vpreloaded_file_list.
ca0a881a 409
47e0e0e4
JR
4102009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
411
412 * w32fns.c (syms_of_w32fns): Change default value of
413 w32-scroll-lock-modifier to nil. (Bug#2827)
414
057bce6f
JB
4152009-10-26 Juanma Barranquero <lekktu@gmail.com>
416
782a943e 417 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 418
242bc74c
AS
4192009-10-26 Andreas Schwab <schwab@redhat.com>
420
421 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
422
522d013a
JB
4232009-10-26 Juanma Barranquero <lekktu@gmail.com>
424
425 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
426 For delta < 0, skip check that only makes sense when the mini-window
427 is going to be enlarged. (Bug#4534)
428
18060980
CY
4292009-10-25 Chong Yidong <cyd@stupidchicken.com>
430
431 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
432 string in menu maps (Bug#4471).
433
fec8f0fe
CY
4342009-10-24 Chong Yidong <cyd@stupidchicken.com>
435
436 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
437 FRAME_NS_VIEW on terminal frames (Bug#4765).
438
10d66ec0
AS
4392009-10-24 Andreas Schwab <schwab@linux-m68k.org>
440
1cae01f7
AS
441 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
442 DBUS_TYPE_UINTnn separately to get proper sign extension.
443
58a12889
AS
444 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
445 can properly handle unsigned types.
d528b1ce 446 (make_uid, make_gid): Remove.
58a12889 447
987c9327
AS
448 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
449 types again.
450
522d013a 451 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
452 (system_process_attributes): Likewise.
453
905a9ed3
DN
4542009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
455
456 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
457
458 * eval.c (Fautoload): Purecopy the filename. Simplify.
459
460 * category.c (Fdefine_category): Purecopy docstring.
461
a599b3e8
AS
4622009-10-23 Andreas Schwab <schwab@linux-m68k.org>
463
7b792fc9
AS
464 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
465
a599b3e8
AS
466 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
467
b35ac83e
CY
4682009-10-23 Chong Yidong <cyd@stupidchicken.com>
469
470 * window.c (Fwindow_edges, Fwindow_pixel_edges)
471 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
472 (Bug#4775).
473
e8903e00
SM
4742009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
475
476 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
477 (init_fileio_once):
478 * lisp.h (init_fileio_once): Remove.
479 * emacs.c (main): Don't call init_fileio_once.
480
8f43cbf3
DN
4812009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
482
483 * puresize.h (BASE_PURESIZE): Increase to 1430000.
484
26898943
AS
4852009-10-21 Andreas Schwab <schwab@linux-m68k.org>
486
487 * doprnt.c (doprnt): Fix overflow check.
488
5c646d5a
JD
4892009-10-21 Jan Djärv <jan.h.d@swipnet.se>
490
3132a7ea
JD
491 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
492
5c646d5a
JD
493 * xterm.h (x_wait_for_event): Declare it.
494
495 * xterm.c (pending_event_wait): New variable.
496 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
497 see pending_event_wait.eventtype.
498 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
499 (x_new_font): Call change_frame_size with new rows/columns before we
500 try to resize the frame.
5c646d5a 501 (x_wait_for_event): New function.
d528b1ce
SM
502 (x_set_window_size_1): Don't change gravity unless change_gravity
503 is set.
5c646d5a
JD
504 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
505 don't change frame size, instead wait for the ConfigureNotify.
506 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
507 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
508 (x_initialize): Initialize pending_event_wait.
509
510 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
511 size.
512
513 * widget.c (EmacsFrameSetValues): Add comment.
514 (EmacsFrameSetCharSize): Just call x_set_window_size.
515
516 * gtkutil.c (xg_frame_set_char_size): Flush events and call
517 x_wait_for_event.
d528b1ce 518 (flush_and_sync): Remove again.
5c646d5a
JD
519 (xg_get_font_name): Suggest monospace if no previous font is known.
520
e9c1637d
SM
5212009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
522
523 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 524 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 525
5a72cccb
YM
5262009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
527
528 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
529 processing pending events when event is filtered for input method.
ab04798f 530 (Bug#3681)
5a72cccb 531
2629aa37
JB
5322009-10-20 Juanma Barranquero <lekktu@gmail.com>
533
534 * fns.c: Add #endif accidentally removed in previous change.
535
c3417a74
DN
5362009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
537
538 * fns.c: Remove code for unsupported system: MAC_OS.
539 * image.c: Likewise. Include setjmp.h.
540
9685cef2
JD
5412009-10-19 Jan Djärv <jan.h.d@swipnet.se>
542
543 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
544 pixel -1 (bug #4742).
545
d7306fe6
DN
5462009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
547
019d2c4c
DN
548 * process.c (create_pty): Remove conditionals for no longer
549 supported systems: UNIPLUS and RTU.
550
ee6bacd4
DN
551 * xterm.c:
552 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
553
d7306fe6
DN
554 * alloc.c: Do not define struct catchtag.
555 * eval.c: Move struct catchtag definition ...
556 * lisp.h: ... here.
557
558 * image.c: Move png.h #include earlier to avoid warnings.
559
560 * xterm.c:
561 * xsmfns.c:
562 * xselect.c:
563 * xrdb.c:
564 * xmenu.c:
565 * xftfont.c:
566 * xfont.c:
567 * xfns.c:
568 * xfaces.c:
569 * xdisp.c:
570 * window.c:
571 * widget.c:
572 * w32xfns.c:
573 * w32uniscribe.c:
574 * w32term.c:
575 * w32select.c:
576 * w32reg.c:
577 * w32proc.c:
578 * w32menu.c:
579 * w32inevt.c:
580 * w32heap.c:
581 * w32font.c:
582 * w32fns.c:
583 * w32console.c:
584 * w32.c:
585 * w16select.c:
586 * vm-limit.c:
587 * unexsol.c:
588 * unexec.c:
589 * unexcw.c:
590 * unexaix.c:
591 * undo.c:
592 * tparam.c:
593 * textprop.c:
594 * terminfo.c:
595 * terminal.c:
596 * termcap.c:
597 * term.c:
598 * syntax.c:
599 * sound.c:
600 * sheap.c:
601 * search.c:
602 * scroll.c:
603 * region-cache.c:
604 * regex.c:
605 * ralloc.c:
606 * process.c:
607 * print.c:
b024548b
DN
608 * nsterm.m:
609 * nsselect.m:
610 * nsmenu.m:
611 * nsimage.m:
612 * nsfont.m:
613 * nsfns.m:
d7306fe6
DN
614 * msdos.c:
615 * minibuf.c:
616 * menu.c:
617 * marker.c:
618 * macros.c:
619 * keymap.c:
620 * keyboard.c:
621 * intervals.c:
622 * insdel.c:
623 * indent.c:
624 * gtkutil.c:
625 * ftxfont.c:
626 * ftfont.c:
627 * fringe.c:
628 * frame.c:
629 * fontset.c:
630 * font.c:
631 * fns.c:
632 * floatfns.c:
633 * filelock.c:
634 * fileio.c:
635 * emacs.c:
636 * editfns.c:
637 * dosfns.c:
638 * doprnt.c:
639 * doc.c:
640 * dispnew.c:
641 * dired.c:
642 * dbusbind.c:
643 * data.c:
644 * composite.c:
645 * coding.c:
646 * cmds.c:
647 * cm.c:
648 * chartab.c:
649 * charset.c:
650 * character.c:
651 * ccl.c:
652 * category.c:
653 * casetab.c:
654 * casefiddle.c:
655 * callproc.c:
656 * callint.c:
657 * bytecode.c:
658 * buffer.c:
659 * atimer.c: Include setjmp.h. (Bug#4643)
660
fd5f21e6
SM
6612009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
662
4c0354d7
SM
663 Remove leftover table unibyte_to_multibyte_table.
664 * character.c (unibyte_to_multibyte_table): Remove.
665 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
666 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
667 * character.h (UNIBYTE_TO_CHAR): New macro.
668 (MAKE_CHAR_MULTIBYTE): Use it.
669 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
670 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
671 (message_dolog, set_message_1):
672 * search.c (Freplace_match):
673 * editfns.c (Fcompare_buffer_substrings):
674 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
675 (concat):
676 * insdel.c (copy_text, count_size_as_multibyte):
677 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
678 * term.c (produce_glyphs):
679 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
680 * regex.c (RE_CHAR_TO_MULTIBYTE):
681 * cmds.c (internal_self_insert):
682 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
683
fd5f21e6
SM
684 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
685
4418646e
DN
6862009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
687
688 * puresize.h (BASE_PURESIZE): Increase to 1310000.
689
35f5c1d2
JB
6902009-10-16 Juanma Barranquero <lekktu@gmail.com>
691
692 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
693
a0cd8f6b
AR
6942009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
695
696 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
697 still needed under Tiger.
698
699 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
700
701 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
702 __Apple__.
703
704 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
705
01a8d3fa
KH
7062009-10-15 Kenichi Handa <handa@m17n.org>
707
708 * print.c (print_object): Escape a symbol like "2E10" too.
709
bf6c75c9 7102009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
711
712 Cleanups and changes for 64-bit compile under Snow Leopard.
713 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
714
715 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
716
c5959062 717 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
718 (ns_findfonts, nsfont_list_family): Use long format in printf, and
719 cast argument.
720 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 721 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
722
723 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
724
725 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
726 where appropriate.
727
728 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
729 where appropriate.
6e4780c5
JB
730 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
731 Use stringWithUTF8String.
bf6c75c9
AR
732 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
733
6e4780c5
JB
734 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
735 Add formal protocol mention to inheritance.
bf6c75c9
AR
736 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
737
6e4780c5
JB
738 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
739 Fix printf format.
bf6c75c9
AR
740 (ns_query_color): Use CGFloat where appropriate.
741 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
742 (EmacsScroller-mouseDown:) Use long format in printf, and cast
743 argument.
744
3d87f118
AR
745 * config.in (NS_HAVE_NSINTEGER): Drop.
746
a95c8102
AR
747 * dbusbind.c (dbus-method-return-internal)
748 (dbus-method-error-internal): Use long format in printf, and cast
749 argument.
750
751 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
752 in printf, and cast argument.
753
6873acca 754 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
755 cast argument.
756
9ec6f100
GM
7572009-10-11 Glenn Morris <rgm@gnu.org>
758
759 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
760
5be883cd
JD
7612009-10-08 Jan Djärv <jan.h.d@swipnet.se>
762
763 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
764 menu bar with a small width so it doesn't enlarge the frame.
765
d7a39b51
JB
7662009-10-08 Juanma Barranquero <lekktu@gmail.com>
767
768 * fontset.c (Fset_fontset_font): Fix typos in error messages.
769
0c2b6f8e
GM
7702009-10-06 Glenn Morris <rgm@gnu.org>
771
772 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
773 SOME_MACHINE_LISP (this enters indirectly via DOC).
774
e02131a2
EZ
7752009-10-05 Eli Zaretskii <eliz@gnu.org>
776
777 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
778
b4744254
EZ
7792009-10-04 Eli Zaretskii <eliz@gnu.org>
780
781 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
782 Doc fix.
783
dbf64827
JB
7842009-10-03 Martin Rudalics <rudalics@gmx.at>
785
786 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
787
e9a0aef8
MA
7882009-10-02 Michael Albinus <michael.albinus@gmx.de>
789
d528b1ce 790 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
791 used anymore outside fileio.c.
792
793 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
794
64eb2b56
JB
7952009-10-01 Juanma Barranquero <lekktu@gmail.com>
796
797 * lisp.h (Qdelete_directory_internal):
798 Declare, instead of Qdelete_directory.
799
800 * w32fns.c (Fsystem_move_file_to_trash): Use it.
801
9d28c33e
SM
8022009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
803
804 * eval.c (Fcalled_interactively_p): Add `kind' argument.
805
9d8f3bd9
MA
8062009-10-01 Michael Albinus <michael.albinus@gmx.de>
807
9d28c33e 808 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
809 Fdelete_directory. It is not a command anymore. It has no file
810 name handler.
811
9694740b
SM
8122009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
813
814 * xdisp.c (get_next_display_element): Use an enum in last change.
815
748e162f
KH
8162009-09-28 Kenichi Handa <handa@m17n.org>
817
9694740b 818 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
819 unibyte_display_via_language_environment in handling
820 Vnobreak_char_display.
821
17efd58d
AR
8222009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
823
824 * nsterm.h (ns_app_name): New extern variable.
825
826 * nsterm.m (ns_app_name): New variable.
827 (ns_term_init): Set and use it.
828 (ns_term_shutdown): Use it.
829
830 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
831 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
832
833 * nsfns.m (ns_set_name_iconic, ns_set_name)
834 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
835 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
836
9694740b
SM
837 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
838 Remove double-casting in client_data comparison.
31c2d412 839
3208cb35
YM
8402009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
841
842 * keyboard.c (make_lispy_event): Remember last wheel direction.
843 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
844
b7d552d6
GM
8452009-09-26 Glenn Morris <rgm@gnu.org>
846
847 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
848 internal.elc. Add term/pc-win.elc.
849 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
850 term/x-win.elc.
851 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
852 term/w32-win.elc.
853 (NS_SUPPORT): New.
854 (lisp): Add NS_SUPPORT.
855 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
856
4ff670a8
DR
8572009-09-25 David Reitter <david.reitter@gmail.com>
858
859 * nsmenu.m (EmacsMenu-clear): Recognize application menu
860 on Mac OS X 10.6+ (bug#4513).
861
feabfb6c
JB
8622009-09-24 Juanma Barranquero <lekktu@gmail.com>
863
864 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
865 some parts of Emacs code (like font selection) don't grok them.
866 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 867
de59072a
AS
8682009-09-24 Andreas Schwab <schwab@redhat.com>
869
870 * coding.c (decode_coding_iso_2022): Fix operator precedence.
871
a489517b
JB
8722009-09-24 Juanma Barranquero <lekktu@gmail.com>
873
874 * dired.c (Fdirectory_files): Fix typo in docstring.
875
0592970c
AR
8762009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
877
878 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
879 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
880 (EmacsScroller-setPosition:portion:whole:): Remove -display call
881 under GNUstep.
882 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
883
884 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
885 glyph advancement.
886
48e8a88b
AR
8872009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
888
889 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 890 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
891
892 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
893 deleted (bug #4492).
894
e14f0a78
AR
895 * nsfont.m (Vns_reg_to_script): New lisp variable.
896 (syms_of_nsfont): Declare it.
897 (ns_registry_to_script): New function.
898 (ns_get_req_script): Call it.
899 (ns_findfonts): Don't give up on non-unicode registry.
900
901 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
902
5b650faa
SM
9032009-09-20 Tom Tromey <tromey@redhat.com>
904
905 * eval.c (find_handler_clause): Make stack-trace-on-error work in
906 batch mode (bug#4228).
907
a489517b 9082009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
909
910 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 911 carefully. (Bug #4339)
0bae4e09 912
fcfe06f3
CY
9132009-09-18 Chong Yidong <cyd@stupidchicken.com>
914
d798ba87 915 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 916
31642728
AR
9172009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
918
919 * emacs.c (inhibit_x_resources): Update doc string for NS.
920 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 921 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
922
923 * nsterm.h (ns_no_defaults): Remove.
924
925 * nsterm.m (ns_no_defaults): Remove.
926 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
927 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
928 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
929 don't update the NSWindow itself.
930 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 931 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
932
933 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
934 ns_use_qd_smoothing.
935
936 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
937 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 938 (x-close-connection): Drop PSFlush() under OS X.
a489517b 939 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 940
8686ac71
JB
9412009-09-17 Juanma Barranquero <lekktu@gmail.com>
942
943 * emacs.c (inhibit_x_resources): New variable.
944 (main) [HAVE_NS]: Don't process --quick command line option.
945 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
946
947 * lisp.h (inhibit_x_resources): Declare it extern.
948
949 * w32reg.c (x_get_string_resource):
950 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
951
e227ba05
EZ
9522009-09-17 Eli Zaretskii <eliz@gnu.org>
953
362654a6
JB
954 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
955 Add lisp/term/internal.elc.
e227ba05 956
742d40e8
SM
9572009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
958
959 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
960 (bug#4461).
961
005bd5a2
DN
9622009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
963
964 * puresize.h (BASE_PURESIZE): Increase to 1290000.
965
966 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
967 (OBJECTS_MACHINE): Remove, unused.
968
f9af9719
SM
9692009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
970
971 * frame.c (x_get_resource_string): Remove unused.
972
0307c7d2
JD
9732009-09-15 Jan Djärv <jan.h.d@swipnet.se>
974
975 * xterm.c (x_new_font): Call change_frame_size before calling
976 x_set_window_size, in case frame size won't change.
977
978 * frame.c (x_set_font): Remove dead code.
979
428b13d6
SM
9802009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
981
982 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
983
5766c380
SM
9842009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
985
986 * lread.c (Fload): Don't output a message after loading an obsolete
987 package any more (done in Lisp now).
988
2fd0161b
CY
9892009-09-12 Chong Yidong <cyd@stupidchicken.com>
990
991 * fns.c (syms_of_fns): Doc fix (Bug#4227).
992
bc5e75b6
SM
9932009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
994
995 * keymap.c (Fwhere_is_internal): Use nconc2.
996
c31c985e
AM
9972009-09-11 Alan Mackenzie <acm@muc.de>
998
999 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1000 batch mode.
1001
78012bd2
AS
10022009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1003
1004 * xdisp.c (display_mode_element): Detect cycles.
1005
9d889332
SM
10062009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1007
1008 * keymap.c (where_is_internal): Don't erroneously return nil right after
1009 filling the cache.
1010 (where_is_internal_1): Fix up typo.
1011
7ab5d780
GM
10122009-09-11 Glenn Morris <rgm@gnu.org>
1013
1014 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1015 share a common doc-string.
1016
5238a749
SM
10172009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1018
66d77eda
SM
1019 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1020 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1021
5238a749
SM
1022 * keymap.c (QCadvertised_binding): New constant.
1023 (syms_of_keymap): Initialize it.
1024 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1025 if applicable.
1026
19f48442
SM
10272009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1028
50d4ba39
SM
1029 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1030 (parse_menu_item): Streamline since bindings are recomputed all the
1031 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1032 more and don't support lmenu's menu-alias any more either.
1033
a88a5372
SM
1034 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1035 (where_is_internal): Strip it down to only traverse the keymaps.
1036 Move the cache handling from Fwhere_is_internal to here.
1037 (Fwhere_is_internal): Move the handling of remapping and the choice of
1038 the best binding from where_is_internal to here.
1039 Unify the cached/noncached paths, so remapping is also handled
1040 correctly when the cache is used, and so the cache can be used to
1041 speed up remap-handling when applicable.
1042 Give preference to non-remapped bindings.
1043 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1044 non-remapped bindings.
1045 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1046 command remapping.
1047
19f48442
SM
1048 * xdisp.c (display_mode_element): Move list length limit from 50 to
1049 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1050
599498c3 10512009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1052
1053 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1054
f9b7b5ac
SM
10552009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1056
a53af587
JB
1057 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1058 (Bug#4334)
1059
f9b7b5ac
SM
1060 * keymap.c (where_is_internal): Filter out shadowed remappings.
1061 Assume that where_is_internal returns unshadowed bindings to simplify
1062 the code and get rid of the gotos. Use ASIZE.
1063
04f4b72d
JD
10642009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1065
4da146f2
JD
1066 * xterm.c (x_focus_changed): If we get a focusout and pointer
1067 is invisible, make it visible.
1068
04f4b72d
JD
1069 * xterm.h: Remove condition for declaration of
1070 x_*_window_to_frame.
1071
7cef7ce3
SM
10722009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1073
1074 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1075 initial terminal as well.
1076
a54fa5b7
JD
10772009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1078
1079 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1080 x_menubar_window_to_frame.
a54fa5b7
JD
1081
1082 * xterm.c: Remove declarations also in xterm.h
1083 (XTmouse_position): Do not return valid positions
1084 for clicks in the menubar and the toolbar for Gtk+.
1085
1086 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1087 if the widget for the event has the same top level as a frame,
1088 return the frame.
1089 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1090 internal windows, bug #4122.
1091 (x_non_menubar_window_to_frame): Remove.
1092
5a021dd0
GM
10932009-09-02 Glenn Morris <rgm@gnu.org>
1094
1095 * buffer.c (default-major-mode): Move most of the doc from here...
1096 (major-mode): ... to here.
1097
548fe2f3
NR
10982009-08-30 Nick Roberts <nickrob@snap.net.nz>
1099
1100 * process.c (wait_reading_process_output): Keep the descriptor
1101 when pty is used by a non-child process, e.g., in I/O buffer of
1102 GDB this allows inferior to be restarted.
1103
e0840eef
EZ
11042009-08-29 Eli Zaretskii <eliz@gnu.org>
1105
1106 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1107 both branches into one.
1108
82e98df4
SM
11092009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1110
1111 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1112 (main): Use enable-multibyte-characters rather than
1113 default-enable-multibyte-characters. Output a warning message when
1114 running a unibyte session.
1115
890617cb
YM
11162009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1117
1118 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1119 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1120 (copy_data_segment): Also copy __program_vars section.
1121 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1122 (dump_it) [LC_DYLD_INFO]: Use it.
1123
1124 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1125
e7adeadc
EZ
11262009-08-28 Eli Zaretskii <eliz@gnu.org>
1127
1128 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1129 $(SRC)/buildobj.h.
1130 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1131 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1132 $(SRC)/buildobj.h.
1133 (clean): Add buildobj.h.
1134
3ed8bbdc
TZ
11352009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1136
1137 * print.c (print_object): Set escapeflag to 1 when printing
1138 hashtable keys and values.
1139
155a6764
SM
11402009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1141
1142 * lread.c (read_integer): Use doubles (and potentially return a float
1143 number) as we do in string-to-number.
1144 (read1): Use strtol to read integers, signal errors on strtol's
1145 overflow and use floats if strtol's output is too large for
1146 Elisp integers.
1147
877610de
EZ
11482009-08-27 Eli Zaretskii <eliz@gnu.org>
1149
1150 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1151 (make-buildobj-SH): Fix last change.
1152 (SRC): Move to before where it's first used.
1153
ef73e7be
KH
11542009-08-27 Kenichi Handa <handa@m17n.org>
1155
550c8289
KH
1156 * process.c (send_process): Use encode_coding_object instead of
1157 encode_coding_string to perform eol-conversion even if the string
1158 is unibyte.
1159
60afa08d
KH
1160 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1161 character.
1162
ef73e7be 1163 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1164 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1165
7b3a82d7
DN
11662009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1167
5654bf63
DN
1168 * callproc.c (Fcall_process): Remove always true #if.
1169
7b3a82d7
DN
1170 * lisp.h: Replace #if 0 code for checking with text pointing to
1171 the --enable-checking configure flag.
1172
1173 * emacs.c (main): Mention the --enable-profiling configure flag
1174 instead of using CFLAGS.
1175
878bde49
KR
11762009-08-26 Ken Raeburn <raeburn@raeburn.org>
1177
1178 * Makefile.in (buildobj.h): New target.
1179 (doc.o): Depend on it.
1180 (temacs${EXEEXT}): Don't generate buildobj.lst.
1181 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1182 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1183 ($(BLD)/doc.$(O)): Depend on it.
1184 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1185 provided by Eli Zaretskii.)
1186 ($(TEMACS)): Don't generate buildobj.lst.
1187 * doc.c: Include buildobj.h.
1188 (buildobj): New static variable.
1189 (Fsnarf_documentation): Use it, instead of opening and reading
1190 buildobj.lst.
1191
1574224c
MA
11922009-08-25 Michael Albinus <michael.albinus@gmx.de>
1193
1194 * dbusbind.c (Fdbus_call_method)
1195 (Fdbus_call_method_asynchronously): Use English numeric format for
1196 timeout values in doc string.
1197
d9da2f45
KH
11982009-08-25 Kenichi Handa <handa@m17n.org>
1199
ef73e7be
KH
1200 * alloc.c (mark_char_table): New function.
1201 (mark_object): Use mark_char_table for a char-table.
1202
d9da2f45
KH
1203 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1204 (CHAR_TABLE_REF): Use it.
1205
c8edcc01
KR
12062009-08-23 Ken Raeburn <raeburn@raeburn.org>
1207
1208 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1209 before invoking the newly build emacs to check for load-path
1210 shadowing.
1211
7763401b
GM
12122009-08-22 Glenn Morris <rgm@gnu.org>
1213
1214 * Makefile.in (bootstrap_exe): New variable.
1215 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1216 Use ${bootstrap_exe}.
1217
729eadda
EZ
12182009-08-22 Eli Zaretskii <eliz@gnu.org>
1219
1220 * coding.h (encode_coding_string): Don't encode unibyte strings.
1221 (Bug#4047)
1222
eb4c6ace
MA
12232009-08-22 Michael Albinus <michael.albinus@gmx.de>
1224
1225 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1226
1227 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1228 intended as hotfix only.
1229 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1230
36e34d1b
AR
12312009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1232
1233 * nsterm.m (ns_get_color): Update documentation properly for last
1234 change, and clean up loose ends in the code left by it. Fix
1235 longstanding bug with 16-bit hex parsing, and add support for
1236 yet another X11 format (rgb:r/g/b) for compatibility.
1237 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1238 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1239
f983eb8a
SM
12402009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1241
1242 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1243
3f56d3c6
MA
12442009-08-20 Michael Albinus <michael.albinus@gmx.de>
1245
1246 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1247 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1248 (xd_initialize, xd_pending_messages): Check, whether
1249 $DBUS_SESSION_BUS_ADDRESS is set.
1250
fb641d68
YM
12512009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1252
1253 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1254
1255 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1256
cf59a374
GM
12572009-08-20 Glenn Morris <rgm@gnu.org>
1258
1259 * emacs.c (system-type): Doc fix.
1260
1373f3be
SM
12612009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1262
1263 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1264 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1265
058ed861
MA
12662009-08-18 Michael Albinus <michael.albinus@gmx.de>
1267
1373f3be
SM
1268 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1269 New functions.
058ed861
MA
1270 (xd_initialize): Revert change from 2009-08-16.
1271
563a866e 12722009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1273
1274 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1275 font-group vector, return nil.
5fc05db0 1276
e42bdf01
CY
12772009-08-17 Chong Yidong <cyd@stupidchicken.com>
1278
1279 * process.c (status_notify): Don't perform redisplay.
1280 (Fdelete_process, list_processes_1, process_send_signal):
1281 Expliticly perform redisplay.
1282 (wait_reading_process_output): Always check process status, but
1283 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1284
4230ab74
KR
12852009-08-17 Ken Raeburn <raeburn@raeburn.org>
1286
1373f3be 1287 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1288 (XFLOAT_INIT): New macro for storing a float value.
1289 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1290 * fns.c (sxhash): Copy out the value of a float in order to
1291 examine its bytes.
1292 * dbusbind.c (xd_append_arg): Likewise.
1293
4230ab74
KR
1294 * emacs.c (main): Don't call syms_of_data twice.
1295
a0645cdd
MA
12962009-08-16 Michael Albinus <michael.albinus@gmx.de>
1297
1298 * dbusbind.c (xd_initialize): Add connection file descriptor to
1299 input_wait_mask, in order to let select() detect, whether a new
1300 message has been arrived.
ca4f31ea 1301 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1302
485db0ba
MA
13032009-08-15 Michael Albinus <michael.albinus@gmx.de>
1304
1373f3be
SM
1305 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1306 New functions.
485db0ba
MA
1307
1308 * lisp.h (xd_pending_messages): Declare.
1309
1310 * keyboard.c (readable_events): Call xd_pending_messages.
1311
b5b98ff4
CY
13122009-08-15 Chong Yidong <cyd@stupidchicken.com>
1313
1373f3be 1314 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1315
f8354c6e
CY
1316 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1317
b5b98ff4
CY
1318 * buffer.c (set_buffer_internal_1)
1319 (swap_out_buffer_local_variables): Check for unbound local
1320 variables (Bug#4138).
1321
8b9fc636
EZ
13222009-08-14 Eli Zaretskii <eliz@gnu.org>
1323
1324 * process.c (create_pty): Fix last change.
1325
ce959360
CY
13262009-08-13 Chong Yidong <cyd@stupidchicken.com>
1327
1328 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1329 (xbm_load_image): Caller changed.
64b807c9 1330 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1331
c7baf7e9
NR
13322009-08-13 Nick Roberts <nickrob@snap.net.nz>
1333
1334 * process.c (create_pty): New function.
1335 (Fstart_process): Use it to allow Emacs to just associate a pty
1336 with the buffer. See associated change in gdb-mi.el.
1337 (list_processes_1): Deal with no program name.
1338 (start_process_unwind): Use pid == -2 to mean no process.
1339
1ac9108a
SM
13402009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1341
1342 * cmds.c (nonundocount): New global variable.
1343 (keys_of_cmds): Initialize it.
1344 (Fself_insert_command): Use it to combine upto 20 sequential chars
1345 into a single undo entry, just like the Qself_insert_command code in
1346 keyboard.c does.
1347 Call frame_make_pointer_invisible, also like the Qself_insert_command
1348 code in keyboard.c does.
1349 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1350 than its own local replacement for it.
1351
e267324c
KR
13522009-08-10 Ken Raeburn <raeburn@raeburn.org>
1353
1ac9108a 1354 * fns.c (concat): Don't re-set string length to its current value.
77437343 1355
1ac9108a
SM
1356 * coding.h (decode_coding_string, encode_coding_string):
1357 Use SBYTES macro.
f0bed503 1358
1ac9108a 1359 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1360 (doprnt): Merge with doprnt1, discarding lispstrings code.
1361 * lisp.h (doprnt_lisp): Don't declare.
1362
416e006d
JL
13632009-08-07 Juri Linkov <juri@jurta.org>
1364
1365 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1366
6f7d5780
DN
13672009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1368
1369 * print.c (syms_of_print): Undo previous change.
1370
f19a0f5b
TZ
13712009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1372
1373 * lread.c (read1, syms_of_lread): Read hashtables back from the
1374 readable format.
1375
1376 * print.c (print_preprocess, print_object): Print hashtables fully
1377 and readably.
1378 (syms_of_print): Provide 'hashtable-print-readable.
1379
b9173dc2
AR
13802009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1381
1382 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1383 no family set.
1384 (nsfont_open): Handle case when entity has no family.
1385
1586503c
AR
13862009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1387
1388 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1389 element, not a list, for match case.
1390
087048cd
KH
13912009-07-28 Kenichi Handa <handa@m17n.org>
1392
1393 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1394 rigidly.
1395
1396 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1397 font_parse_xlfd. Check font properties more rigidly.
1398
780c2506
DN
13992009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1400
31fd7c5c
JB
1401 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1402 bsd-common.h.
780c2506 1403
a8c0cc18
KH
14042009-07-27 Kenichi Handa <handa@m17n.org>
1405
1406 * xfaces.c (face_with_height): Call font_clear_prop.
1407
4fbe2306
CY
14082009-07-26 Chong Yidong <cyd@stupidchicken.com>
1409
111d9af3
CY
1410 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1411
1412 * xterm.c (x_term_init): Use Qx.
1413
4fbe2306
CY
1414 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1415
1ac9108a 1416 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1417 (ns_get_color): Revert 2009-07-16 change.
1418
beb0b7f9
EZ
14192009-07-25 Eli Zaretskii <eliz@gnu.org>
1420
1421 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1422 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1423
2baf5e76
KR
14242009-07-25 Ken Raeburn <raeburn@raeburn.org>
1425
1ac9108a
SM
1426 * coding.h (decode_coding_string, encode_coding_string):
1427 Use SCHARS macro.
8890e5f5 1428
2baf5e76 1429 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1430 (load_depth): Delete.
2baf5e76
KR
1431 (Qload_in_progress): New variable.
1432 (load_unwind): Don't reference load_depth or load_in_progress.
1433 (Fload): Likewise; specbind Qload_in_progress instead.
1434 (init_lread): Don't initialize load_depth.
1435 (syms_of_lread): Initialize and protect Qload_in_progress.
1436
1395c6f5
AR
14372009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1438
1439 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1440
4e2f36cf
AR
14412009-07-23 Yavor Doganov <yavor@gnu.org>
1442
1443 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1444
5dd9a6f7
AR
14452009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1446
1447 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1448 Bugs 3792, 3720, 2402.
1449 (ns_lookup_indexed_color): Check for bad index.
1450 (ns_index_color): Init unused slot to 0.
1451 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1452 Bug 3714, possibly 3082.
5dd9a6f7 1453
c902b920
JR
14542009-07-22 Jason Rumney <jasonr@gnu.org>
1455
1ac9108a
SM
1456 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1457 Position IME window at cursor (Bug#2570).
c902b920
JR
1458 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1459 (globals_of_w32fns): Dynamically load functions required above.
1460
1461 * w32term.c (w32_draw_window_cursor): Send message to reposition
1462 any IME window.
1463
090101cf
CY
14642009-07-21 Chong Yidong <cyd@stupidchicken.com>
1465
1466 * fileio.c: Revert 2009-07-16 changes.
1467 (Vauto_save_include_big_deletions): New variable.
1468 (Fdo_auto_save): Disable auto-save only if
1469 auto-save-include-big-deletions is nil.
1470
e6583e3d
CY
14712009-07-21 Chong Yidong <cyd@stupidchicken.com>
1472
1473 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1474 the overflowed pixels into account (Bug#3879).
1475
ece435a5
KR
14762009-07-21 Ken Raeburn <raeburn@raeburn.org>
1477
1478 * lread.c (load_depth): New variable.
1479 (Fload, load_unwind, init_lread): Set it to the load recursion
1480 depth; set load_in_progress as a simple boolean based on the
1481 current load_depth. (Bug#3892)
1482
40b2d973
AR
14832009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1484
1485 * nsfont.m (ns_has_attribute): Remove.
1486 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1487
10be7e0d
JL
14882009-07-18 Juri Linkov <juri@jurta.org>
1489
1490 * process.c (Fset_process_query_on_exit_flag): Mention killing
1491 a buffer in docstring.
1492
fa055055
KH
14932009-07-17 Kenichi Handa <handa@m17n.org>
1494
1495 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1496
042f7b69
YM
14972009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1498
1499 * nsfns.m (Fns_set_alpha): Remove function.
1500 (syms_of_nsfns): Don't defsubr it.
1501
1502 * nsterm.m (ns_get_color): Remove incompatible color formats.
1503 (ns_color_to_lisp): Generate #rrggbb color format string.
1504
4be941e3
RS
15052009-07-16 Richard Stallman <rms@gnu.org>
1506
1507 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1508 (Fset_buffer_auto_saved): Handle save_length = -2.
1509
4e6b227d
CY
15102009-07-16 Chong Yidong <cyd@stupidchicken.com>
1511
1512 * xterm.c (Qx_gtk_map_stock): New var.
1513
1514 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1515 of calling intern each time.
1516
a1856973
YM
15172009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1518
1519 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1520 does tiling.
1521
1522 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1523
497e54d8
KH
15242009-07-14 Kenichi Handa <handa@m17n.org>
1525
72d36834
KH
1526 * font.c (font_vconcat_entity_vectors): New function.
1527 (struct font_sort_data): New member font_driver_preference.
1528 (font_compare): Check font_driver_preference.
1529 (font_sort_entities): The format of the first argument changed.
1530 (font_delete_unmatched): Likewise.
1531 (font_list_entities): The return type changed.
1532 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1533 (font_find_for_lface): Adjuste for the above changes.
1534 Don't suppress the checking of C even if the repertory supports it.
1535 (Flist_fonts): Adjust for the above changes.
72d36834 1536
1ac9108a
SM
1537 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1538 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1539 Reject a font who has adstyle property that is different from a
1540 langname derived from registry property.
1ac9108a 1541 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1542
b6046155
EZ
15432009-07-13 Eli Zaretskii <eliz@gnu.org>
1544
1545 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1546 local copy of dirfilename.
1547
fb6b6049
KH
15482009-07-13 Kenichi Handa <handa@m17n.org>
1549
e2402a5e
KH
1550 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1551 against max_char.
1552
fb6b6049
KH
1553 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1554 calling XSYMBOL (sym).
1555
65156807
EZ
15562009-07-11 Eli Zaretskii <eliz@gnu.org>
1557
1ac9108a
SM
1558 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1559 New function.
1560 (directory_files_internal) [WINDOWSNT]:
1561 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1562 the filesystem of the directory is fast or slow.
1563
1564 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1565 file name.
1566 (is_slow_fs): New function.
1567 (stat): Use it to determine whether to issue more system calls to
1568 get accurate file attributes, when w32-get-true-file-attributes is
1569 `local'.
1570
e0ab5fcf
JD
15712009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1572
1573 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1574 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1575 parameter font-parameter as default to the font dialog.
1576
784ceded
KH
15772009-07-10 Kenichi Handa <handa@m17n.org>
1578
1579 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1580
fb8edc0b
EZ
15812009-07-09 Eli Zaretskii <eliz@gnu.org>
1582
1ac9108a 1583 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1584
fb8edc0b
EZ
1585 * w32.c (stat): Treat UNC file names as residing on remote
1586 drives. (Bug#3542)
1587
635c75b1
KH
15882009-07-09 Kenichi Handa <handa@m17n.org>
1589
1590 * fontset.c (fontset_find_font): Fix previous change.
1591
c1d5ce94
MA
15922009-07-08 Michael Albinus <michael.albinus@gmx.de>
1593
1594 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1595 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1596 error flag.
1597
edb61b39
KH
15982009-07-08 Kenichi Handa <handa@m17n.org>
1599
374bf7e4
KH
1600 * fontset.c (fontset_find_font): Fix the logic of handling
1601 charset_matched.
1602 (font_for_char): Delete unused var.
1603 (generate_ascii_font_name): Delete it.
1604
edb61b39
KH
1605 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1606
1607 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1608 (encode_coding_sjis): Fix the code range check.
1609
0f3f018c
CY
16102009-07-07 Chong Yidong <cyd@stupidchicken.com>
1611
1612 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1613 (Fexpand_file_name): Copy string data properly (Bug#3772).
1614
fcaf6f3a
JD
16152009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1616
1617 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1618 first MapNotify.
1619
6809ca75
KH
16202009-07-07 Kenichi Handa <handa@m17n.org>
1621
1622 * character.h (unibyte_has_multibyte_table): Delete extern.
1623 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1624
1625 * charset.c (Fset_charset_priority): Update charset_unibyte.
1626 (syms_of_charset): Initialize charset_unibyte.
1627
1628 * character.c (unibyte_has_multibyte_table): Delete it.
1629 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1630 charset_unibyte.
1631 (multibyte_char_to_unibyte_safe): Likewise.
1632 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1633
1ac9108a 1634 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1635 (x_produce_glyphs): Likewise.
1636
1637 * .gdbinit (xcharset): Fix the treating $arg0.
1638
ad9e2d54
EZ
16392009-07-04 Eli Zaretskii <eliz@gnu.org>
1640
1641 Emulation of `getloadavg' on MS-Windows.
1642 * w32.c: Include float.h
1643 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1644 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1645 (get_native_system_info, get_system_times): New functions.
1646 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1647 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1648 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1649 g_b_init_get_system_times, and num_of_processors.
1650
0a3472c7
JR
16512009-07-03 Jason Rumney <jasonr@gnu.org>
1652
1653 * w32term.c (w32_initialize): Use standard types.
1654
80904120
EZ
16552009-07-03 Eli Zaretskii <eliz@gnu.org>
1656
1657 * dired.c (Ffile_attributes): Decode user and group names by the
1658 locale's encoding. (Bug#3443)
1659
6978862d
DN
16602009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1661
f8d23104
DN
1662 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1663 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1664
1665 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1666
1667 * term.c (init_tty): Remove spurious #ifdef.
1668
6978862d
DN
1669 * m/mips.h: Mention this file is also used for netbsd.
1670 * m/pmax.h: Remove file.
1671
e044e4fc
JD
16722009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1673
1674 * xterm.h (struct x_display_info): Add invisible_cursor.
1675 (struct x_output): Add current_cursor.
1676
1677 * xterm.c (XTtoggle_invisible_pointer): New function.
1678 (x_define_frame_cursor): Don't define cursor if invisible or the
1679 same as before. Set current_cursor.
1680 (x_create_terminal): Set toggle_invisible_pointer_hook.
1681
1682 * xfns.c (make_invisible_cursor): New function.
1683 (x_set_mouse_color): Call make_invisible_cursor.
1684 Set current_cursor.
1685 (x_window): Set current_cursor.
1686
1687 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1688
1689 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1690 inserting a character.
1691 (read_avail_input): Call frame_make_pointer_visible.
1692
1693 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1694 (frame_make_pointer_invisible, frame_make_pointer_visible):
1695 New functions.
e044e4fc
JD
1696 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1697
1698 * frame.h: Declare frame_make_pointer_invisible and
1699 frame_make_pointer_visible.
1700 (struct frame): Add pointer_invisible.
1701
574c8efa
JD
17022009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1703
7b507248
JD
1704 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1705 frame isn't visible.
1706 (xg_frame_resized): If width/height is -1, get size of window
1707 from X server.
1708
1709 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1710 for MapNotify.
1711
835bdaa7 1712 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1713 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1714 (flush_and_sync): Reintroduce.
574c8efa 1715
3f1c6666 17162009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1717
31fd7c5c 1718 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1719
1720 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1721 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1722
1723 * frame.h: Declare Qsticky.
1724
cad9ef74
JD
1725 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1726
1727 * nsfns.m (ns_frame_parm_handlers): Ditto.
1728
1729 * frame.c: Declare Qsticky.
1730 (frame_parms): Add sticky.
1731
1732 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1733
1734 * xterm.h: Declare x_set_sticky.
1735
1736 * xterm.c (x_set_sticky): New function.
1737
69b16610
JD
1738 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1739 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1740 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1741
1742 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1743
1744 * frame.c: Qmaximized is new.
1745 (x_set_frame_parameters): Do not handle fullscreen specially.
1746 Only set width and height if explicitly set.
1747 (x_set_fullscreen): Handle Qmaximized.
1748 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1749 (syms_of_frame): Initialize Qmaximized.
1750
1ac9108a
SM
1751 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1752 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1753
1754 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1755 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1756 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1757 set gravity to NorthWestGravity when USE_GTK.
1758 (set_wm_state): New function.
31fd7c5c 1759 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1760 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1761 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1762 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1763 to x_real_positions and x_fullscreen_adjust.
1764
1765 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1766 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1767 flush_and_sync.
1768 (xg_height_changed): New function.
1769 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1770 and gtk_window_set_policy. Set frame gravity after parsing the
1771 geometry string.
3f1c6666
JD
1772 (xg_update_frame_menubar, free_frame_menubar)
1773 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1774 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1775 Remove calls to xg_frame_set_char_size.
1776
fd503d99
KH
17772009-07-01 Kenichi Handa <handa@m17n.org>
1778
1779 * keyboard.c (decode_keyboard_code): New function.
1780 (tty_read_avail_input): Decode the input bytes if necessary.
1781
1ac9108a
SM
1782 * coding.c (setup_coding_system):
1783 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1784 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1785 use Qno_conversion.
1786
24ed93fb
YM
17872009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1788
1789 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1790
99061dfc
CY
17912009-06-30 Chong Yidong <cyd@stupidchicken.com>
1792
1ac9108a 1793 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1794
ff90fbde
JR
17952009-06-30 Jason Rumney <jasonr@gnu.org>
1796
1797 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1798 is already loaded.
1799 Set user model ID if supported (bug#1849).
1800
5f445726
JM
18012009-06-29 Jim Meyering <meyering@redhat.com>
1802
1803 Remove useless if-before-xfree test.
1804 * nsfont.m (nsfont_close): Remove useless test.
1805 * term.c (delete_tty): Likewise.
1806 * w32.c (system_process_attributes): Likewise.
1807 * w32font.c (w32font_close): Likewise.
1808 * xfaces.c (x_free_gc): Likewise.
1809 * xselect.c (buffer): Likewise.
1810
b9607587
AS
18112009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1812
1813 * process.c (send_process): Keep decoded string in a local
1814 variable and protect it from GC. (Bug#3521)
1815
89ba96f4
EZ
18162009-06-28 Eli Zaretskii <eliz@gnu.org>
1817
1818 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1819 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1820
098a1589
CY
18212009-06-28 Chong Yidong <cyd@stupidchicken.com>
1822
485422be
CY
1823 * xdisp.c (start_display, handle_face_prop)
1824 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1825 (redisplay_window, try_window_id, produce_image_glyph):
1826 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1827
098a1589
CY
1828 * xterm.c (x_update_window_begin, x_new_focus_frame)
1829 (x_scroll_bar_handle_click, handle_one_xevent)
1830 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1831 (x_make_frame_visible, x_make_frame_invisible)
1832 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1833 code chunks that are now obsolete.
1834
78c38319
MA
18352009-06-28 Michael Albinus <michael.albinus@gmx.de>
1836
1837 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1838 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1839 for hours, when optimzation is enabled.
1840 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1841 (xd_read_message): Make them static.
1842
4189ed40
CY
18432009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1844
1845 * term.c (turn_on_face): Allow simultaneously bold and dim
1846 terminal faces (Bug#3530).
1847
cd9b5e16
CY
18482009-06-27 Chong Yidong <cyd@stupidchicken.com>
1849
4e23bedb
CY
1850 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1851
cd9b5e16
CY
1852 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1853 truncation glyphs (Bug#3686).
1854
07cc3c35
GM
18552009-06-27 Glenn Morris <rgm@gnu.org>
1856
1857 * m/pmax.h: Restore file, with only netbsd portions.
1858
31fd7c5c 18592009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1860
cd9b5e16 1861 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1862
42d4a64f
KH
18632009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1864
1865 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1866 the arg FORCE_SYMBOL.
1867
930fe55b 18682009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1869
1870 * fontset.c (fontset_find_font): When a usable rfont_def is found
1871 in a fallback font-group, make it the first element of the group.
1872
57ebc3fd
CY
18732009-06-24 Chong Yidong <cyd@stupidchicken.com>
1874
1875 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1876
f084f942
KH
18772009-06-24 Kenichi Handa <handa@m17n.org>
1878
1879 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1880 set for C.
1881 (fontset_font): Record the availability of a font for C both in
1882 the realized fontsets of the current one and the default one.
1883
2f686c87
DN
18842009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1885
1886 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1887 conditional, it is always defined on AIX.
1888
666e158e
MB
18892009-06-23 Miles Bader <miles@gnu.org>
1890
1891 * window.c (Vrecenter_redisplay): New variable.
1892 (syms_of_window): Initialize it.
1893 (Qtty): New extern declaration.
1894 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1895
c6da7cd2
JM
18962009-06-23 Jim Meyering <meyering@redhat.com>
1897
1ac9108a
SM
1898 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1899 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 1900 pointer dereferences are guaranteed to be valid.
c6da7cd2 1901
678dca3d
KH
19022009-06-23 Kenichi Handa <handa@m17n.org>
1903
74d75424
KH
1904 * emacs.c (main): Call init_font ().
1905
1906 * font.h (Vfont_log): Extern it.
1907 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1908
1909 * font.c (font_sort_entities, font_list_entities)
1910 (font_matching_entity, font_open_entity)
1911 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1912 (Vfont_log): Delete static.
1913 (font_log_env_checked): Delete this variable.
1914 (font_add_log): Don't check font_log_env_checked.
1915 (font_deferred_log): Check Vfont_log.
1916 (init_font): New function.
1917
678dca3d
KH
1918 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1919
1920 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1921
1922 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1923
1924 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1925
1926 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1927 (face_for_char): Don't call font_deferred_log here.
1928 (font_for_char): Likewise.
1929
8a668709
CY
19302009-06-22 Chong Yidong <cyd@stupidchicken.com>
1931
9a01ee33
CY
1932 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1933 rather than its background_width for drawing the overline and
1934 underline (Bug#489).
1935
1936 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1937 rather than its background_width for drawing the overline and
1938 underline (Bug#489).
ec7c9926
CY
1939 (xg_default_icon_file): New variable.
1940 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1941 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1942
8a668709
CY
1943 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1944 (load_overlay_strings): Remove externs.
1945 (fast_find_position): Function deleted.
1946 (mouse_face_from_buffer_pos): New function, based on
1947 fast_find_position. Correctly handle before-strings,
1948 display-strings, and after-strings (Bug#1220).
1949 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1950
4d4c02d8
CY
19512009-06-21 Chong Yidong <cyd@stupidchicken.com>
1952
1ac9108a 1953 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
1954 (move_it_in_display_line_to, move_it_in_display_line_to)
1955 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1956
70243478
CY
19572009-06-21 Chong Yidong <cyd@stupidchicken.com>
1958
1959 * Branch for 23.1.
1960
13087e59
JR
19612009-06-21 Jason Rumney <jasonr@gnu.org>
1962
1963 * w32term.c (keyboard_codepage): New static variable.
1964 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1965 (w32_read_socket) [WM_CHAR]: Use it to decode character
1966 input (bug#3237).
1967 (w32_initialize): Initialize it.
1968 (codepage_for_locale): New function.
1969
4735b74e
KR
19702009-06-20 Ken Raeburn <raeburn@raeburn.org>
1971
1972 * process.c (status_message): Pass Faset index argument as a lisp
1973 object, so as to work with USE_LISP_UNION_TYPE.
1974
0e727afa
YM
19752009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1976
1977 * coding.c (Ffind_coding_systems_region_internal):
1978 Cache checked characters.
1979
cf299835
KH
19802009-06-18 Kenichi Handa <handa@m17n.org>
1981
1ac9108a 1982 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 1983
90f20d94
AS
19842009-06-18 Andreas Schwab <aschwab@redhat.com>
1985
1986 * xdisp.c (redisplay_internal): Check that the frame is still
1987 live after redisplay of its windows.
1988 (redisplay_windows): Check that the window is still live.
1989
7f1faf1c
KH
19902009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1991
1992 * coding.c (detect_coding_utf_16): Fix previous change.
1993
cc13543e
KH
19942009-06-16 Kenichi Handa <handa@m17n.org>
1995
1996 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1997 UTF-16 by checking the dispersion of Eth and Oth bytes.
1998
977b85f4
AS
19992009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2000
2001 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2002
66bd43d1
KH
20032009-06-15 Kenichi Handa <handa@m17n.org>
2004
2005 * process.c (status_message): Fix previous change. Be sure to
2006 decode a localized string.
2007
cb5ca9c5
YM
20082009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2009
2010 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2011 add comment explaining why.
2012
ec7709ba 20132009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2014
ec7709ba 2015 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2016
4b7f335c
AR
20172009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2018
2019 * nsfont.m (ns_attribute_value): Remove.
2020 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2021 (ns_has_attribute): Shrink the normal range.
2022 (ns_findfonts): Don't worry about requested spec in determining
2023 need for synthItal.
e41820ee 2024 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2025
73b26103
SZ
20262009-06-14 Seiji Zenitani <zenitani@mac.com>
2027
2028 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2029
5753e4da
KH
20302009-06-11 Kenichi Handa <handa@m17n.org>
2031
2032 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2033 overhang for the static composition case.
2034
3561b671
KH
20352009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2036
5753e4da
KH
2037 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2038 overhang for the automatic composition case.
2039
3561b671
KH
2040 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2041 composition case.
2042
852bbd41
CY
20432009-06-10 Chong Yidong <cyd@stupidchicken.com>
2044
2045 * xdisp.c (get_next_display_element): When handling wrap-prefix
2046 and line-prefix, treat \n as a control character (bug#3502).
2047
9903d1e6
KH
20482009-06-10 Kenichi Handa <handa@m17n.org>
2049
2050 * font.c (font_parse_family_registry): Fix for one-char foundry.
2051 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2052
0bcbaaaa
CY
20532009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2054
2055 * process.c (status_message): Fix handling of multibyte signal
2056 string (Bug#3499).
2057
40aa3f13
JM
20582009-06-09 Jim Meyering <meyering@redhat.com>
2059
1f80c7e2
CY
2060 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2061 color name is missing.
40aa3f13 2062
72d51285
KH
20632009-06-09 Kenichi Handa <handa@m17n.org>
2064
2065 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2066 FROM-CODE and TO-CODE are codepoints of CHARSET.
2067
c1d04d84
AR
20682009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2069
2070 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2071
20722009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2073
2074 Changes to support :script/:lang/:otf in NS font driver.
2075 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2076 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2077 indicate not part of font driver interface, and change callers.
2078 (ns_get_family): Remove pointless null check.
2079 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2080 ns_spec_to_descriptor, ns_descriptor_to_entity.
2081 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2082 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2083 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2084 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2085 (ns_get_req_script, ns_accumulate_script_ranges)
2086 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2087 New functions.
2088 (nsfont_list, nsfont_match): Use ns_findfonts.
2089 (nsfont_open): Use font descriptor instead of traits.
2090 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2091 (dump_glyphstring): Rename to ns_dump_glyphstring.
2092
c7eb9816
AR
2093 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2094
c1d04d84
AR
2095 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2096
2097 * fontset.c (fontset_from_font): Remove NS-specific code.
2098
ec7709ba 20992009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2100
2101 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2102 nonactive windows.
2103
31fd7c5c 21042009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2105
1ac9108a 2106 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2107
68852c13 21082009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2109
2110 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2111
6756cd1d
CY
21122009-06-07 Chong Yidong <cyd@stupidchicken.com>
2113
2114 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2115 account for the overflowing of newlines into the last glyph on the
2116 display line (Bug#3482).
2117
28bf482a
DR
21182009-06-05 David Reitter <david.reitter@gmail.com>
2119
ec7709ba
JB
2120 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2121 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2122 Fns_selection_exists_p, Fns_selection_owner_p.
2123
fdb55376
JR
21242009-06-03 Jason Rumney <jasonr@gnu.org>
2125
2126 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2127 available. (Bug#3379)
2128
05129fbe
KH
21292009-05-29 Kenichi Handa <handa@m17n.org>
2130
1ac9108a
SM
2131 * coding.c (get_translation_table):
2132 Check Venable_character_translation.
05129fbe 2133
ec7709ba 21342009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2135
ec7709ba
JB
2136 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2137 (x_make_frame_visible): Move frame to front rather than calling
15891144 2138 ns_raise_frame().
ec7709ba 2139 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2140 isn't key window.
ec7709ba 2141 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2142 drawRect may be called by NSView even if the frame is hidden.
2143
ec7709ba
JB
2144 * nsfns.m (Fx_create_frame): Follow other ports in
2145 determining visibility; default to t. Ensure async_visible is set.
15891144 2146
21f73755
EZ
21472009-05-23 Eli Zaretskii <eliz@gnu.org>
2148
2149 * dired.c (Ffile_attributes): Doc fix.
2150
34001e41
CY
21512009-05-22 Chong Yidong <cyd@stupidchicken.com>
2152
2153 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2154
46306a17
SM
21552009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2156
2157 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2158 and xfont_scratch_props.
2159 (syms_of_xfont): Do it here instead.
2160 (xfont_find_ccl_program): Delete, unused.
2161 (xfont_open): Delete unused var `i'.
2162
ef6e0694
KH
21632009-05-21 Kenichi Handa <handa@m17n.org>
2164
2165 * fontset.c (Qlatin): Don't make it static.
2166
46306a17
SM
2167 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2168 New functions.
ef6e0694
KH
2169 (xfont_scripts_cache, xfont_scratch_props): New variables.
2170 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2171 (xfont_list_pattern): Argument changed. Callers changed.
2172 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2173 (xfont_list): Don't reject a font spec with :script property.
2174 (xfont_has_char): Fix setting of encoding.
2175 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2176 xfont_scratch_props.
2177
21782009-05-19 Kenichi Handa <handa@m17n.org>
2179
46306a17 2180 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2181 Callers changed.
2182
21832009-05-18 Kenichi Handa <handa@m17n.org>
2184
2185 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2186
ac71ced7
SM
21872009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2188
2189 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2190 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2191
1c6d1051
YM
21922009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2193
2194 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2195 (x_delete_terminal): Dissociate resource database from display and
2196 then call XrmDestroyDatabase before closing display.
2197
9b9b779c
AR
21982009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2199
2200 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2201 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2202 whether selected frame is viable before raising it (based on patch
2203 by David Reitter), and improve commentary.
2204 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2205
cccd42d5
KH
22062009-05-15 Kenichi Handa <handa@m17n.org>
2207
2208 * font.c (Ffont_spec): Check arguments.
2209
337fbd17
CY
22102009-05-14 Chong Yidong <cyd@stupidchicken.com>
2211
2212 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2213 weight when testing attributes (Bug#3282).
2214
47a6002f
JD
22152009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2216
2217 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2218 what we expect to get in the next ConfigureNotify event.
2219
9cb363db
YM
2220 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2221 before Xft one (Bug#1696).
2222
b9126609
CY
22232009-05-07 David Reitter <david.reitter@gmail.com>
2224
2225 * nsfns.m (Fx_display_planes): Compute bitplanes using
2226 NSBitsPerPixelFromDepth (Bug#3207).
2227
27a69fd9
CY
22282009-05-10 Chong Yidong <cyd@stupidchicken.com>
2229
2230 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2231
00f37552
TTN
22322009-05-10 Ulrich Mueller <ulm@gentoo.org>
2233
2234 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2235
2d82a920
DR
22362009-05-07 David Reitter <david.reitter@gmail.com>
2237
ec7709ba
JB
2238 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2239 Respect mouse face background.
2d82a920 2240
46b0d52d
DR
22412009-05-07 David Reitter <david.reitter@gmail.com>
2242
ec7709ba
JB
2243 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2244 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2245 in ns_update_begin and ns_update_end.
2246
ce1b23bb
SM
22472009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2248
5996e1b7
SM
2249 * nsfns.m (ns_get_screen): Rewrite.
2250 Don't presume selected-frame is of type `ns'.
2251
ba98e3a0
SM
2252 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2253 all drivers.
2254
ce1b23bb
SM
2255 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2256
bcda200f
YM
22572009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2258
2259 * keyboard.h (add_user_signal): Fix typo in extern.
2260
2261 * lisp.h (add_user_signal): Remove extern.
2262
2263 * unexelf.c (unexec): Consider a section to precede the .bss section
2264 if its addresses overlap that of .bss.
2265 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2266 instead of dumping process.
2267
864660a2
SM
22682009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2269
2270 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2271
50da4e56
SM
22722009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2273
2274 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2275
51520a1a
DN
22762009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2277
2278 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2279 any statements.
2280
409ea3a1
AS
22812009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2282
59c4c60f
AS
2283 * process.c (read_process_output): Make sure the current buffer is
2284 always restored.
2285
409ea3a1
AS
2286 * coding.c (record_conversion_result): Don't modify
2287 Vlast_code_conversion_error for successful result.
2288 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2289
56f00ed2
KH
22902009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2291
2292 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2293 (load_charset_map): Remove unnecessary code.
56f00ed2 2294
4491c9d2
DR
22952009-04-30 David Reitter <david.reitter@gmail.com>
2296
35f5b128 2297 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2298 through f24.
2299
6970f632
CY
23002009-04-30 Chong Yidong <cyd@stupidchicken.com>
2301
2302 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2303
2304 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2305 face_at_buffer_position.
2306 (face_before_or_after_it_pos, get_next_display_element)
2307 (note_mouse_highlight): Update face_at_buffer_position call.
2308
2309 * term.c (term_mouse_highlight):
2310 * msdos.c (IT_note_mouse_highlight):
2311 * fontset.c (Finternal_char_font):
35f5b128 2312 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2313
2314 * dispextern.h (face_at_buffer_position): Update prototype.
2315
0c616f63
KH
23162009-04-30 Kenichi Handa <handa@m17n.org>
2317
35f5b128 2318 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2319
ad3aaf33
AS
23202009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2321
2322 * callproc.c (Fcall_process): Fix GC protection. Make sure
2323 current buffer is always restored.
2324
c3c963a0
YM
23252009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2326
2327 * atimer.c (init_atimer): Also clear stopped_atimers.
2328
2329 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2330
7e3386cb
YM
2331 * process.c (create_process): Clean up merger residues of
2332 2008-07-17 change.
2333
91f68422
CY
23342009-04-29 Ulrich Mueller <ulm@gentoo.org>
2335
2336 * lread.c (Vread_circle): New variable.
2337 (read1): Disable recursive read if Vread_circle is nil.
2338
24b34550
KH
23392009-04-29 Kenichi Handa <handa@m17n.org>
2340
2341 * fontset.h (set_default_ascii_font): Delete extern.
2342
2343 * fontset.c (set_default_ascii_font): Delete this unused function.
2344
2345 * frame.c (x_set_font): When ARG is a font-object, check if the
2346 font-object matches with the ASCII font-spec of the frame's
9c358bda 2347 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2348
77bf07e1
AS
23492009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2350
2351 * fns.c (Flocale_info): Protect vector from GC during decoding.
2352
2353 * process.c (Fstart_process): Protect argv strings from GC during
2354 encoding.
2355
2c55aacf
AS
23562009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2357
2358 * sysdep.c: Include <ctype.h>.
2359
b892d3c9
DR
23602009-04-27 David Reitter <david.reitter@gmail.com>
2361
35f5b128 2362 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2363 Remove commented-out code.
2364
9d0644c4
JB
23652009-04-26 Johan Bockgård <bojohan@gnu.org>
2366
2367 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2368
b7053016
JR
23692009-04-25 Jason Rumney <jasonr@gnu.org>
2370
2371 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2372
4e8231f3
YM
23732009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2374
2375 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2376 Swap bytes in short integer if fringe bitmap width > 8.
2377
493dcf2c
KH
23782009-04-23 Kenichi Handa <handa@m17n.org>
2379
2380 * xfaces.c (Fx_list_fonts): If a font size is specified in
2381 PATTERN, set it in returned scalable fonts.
2382
401e9e57
CY
23832009-04-22 Chong Yidong <cyd@stupidchicken.com>
2384
708e05dc
CY
2385 * keyboard.c (Fset_input_meta_mode): Doc fix.
2386
2387 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2388
1ac9108a 2389 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2390
2391 * coding.c (Fterminal_coding_system): Doc fix.
2392
2393 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2394 (Fx_display_pixel_height, Fx_display_planes)
2395 (Fx_display_color_cells, Fx_server_max_request_size)
2396 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2397 (Fx_display_mm_height, Fx_display_mm_width)
2398 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2399 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2400 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2401 (check_x_display_info): Handle terminal objects instead of
2402 terminal ids.
2403
401e9e57
CY
2404 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2405 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2406 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2407 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2408
df80c7f0
KH
24092009-04-21 Kenichi Handa <handa@m17n.org>
2410
5a8f12af 2411 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2412 (font_score): Check AVGWIDTH too.
908567ef 2413
df80c7f0
KH
2414 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2415 worst case.
1ac9108a
SM
2416 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2417 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2418
705af33f
JR
24192009-04-19 Jason Rumney <jasonr@gnu.org>
2420
2421 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2422 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2423
2424 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2425 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2426 get_phys_cursor_geometry.
2427
b71ac3dd 2428 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2429 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2430 using get_phys_cursor_geometry.
2431
2432 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2433 correctly calculated.
2434
dc2933eb
JD
24352009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2436
1ac9108a
SM
2437 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2438 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2439 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2440 is deprecated.
2441
973e7849
AS
24422009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2443
2444 * font.c (font_put_frame_data): Use xfree instead of free.
2445
314d66f4
JB
24462009-04-17 Juanma Barranquero <lekktu@gmail.com>
2447
2448 * w32font.c (Qja, Qko): Remove declarations.
2449 (syms_of_w32font): Don't DEFSYM them.
2450
cf702558
CY
24512009-04-17 Chong Yidong <cyd@stupidchicken.com>
2452
2453 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2454
2455 * font.h (Qja, Qko): Extern them.
2456
2457 * ftfont.c (Qja, Qko): Remove declarations.
2458
2459 * xfont.c (Qja, Qko): Remove declarations.
2460
b50504f5
KH
24612009-04-17 Kenichi Handa <handa@m17n.org>
2462
bde25748
KH
2463 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2464 string from a vector to handle Latin-1 characters correctly.
2465
b50504f5
KH
2466 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2467 entity even if the cache hits.
2468
f4646fff
AS
24692009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2470
2471 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2472 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2473
e7deaab0
AS
2474 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2475 * lisp.h: Adjust prototypes.
2476
0a0e7d49
CY
24772009-04-16 Chong Yidong <cyd@stupidchicken.com>
2478
2479 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2480 change (Bug#3003).
2481
3c908a57
KH
24822009-04-16 Kenichi Handa <handa@m17n.org>
2483
1ac9108a 2484 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2485
2486 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2487 adstyle.
2488
2489 * ftfont.c (Qja, Qko): Don't make them static.
2490 (enum ftfont_cache_for): New enum.
2491 (fc_charset_table): Undo the previous change.
2492 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2493 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2494 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2495 non-scarable font, try to get AVERAGE_WIDTH.
2496 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2497 Change ft_face_cache from a list of a hash-table. Don't check
2498 `ja' and `ko' adstyle here.
2499 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2500 FTFONT_CACHE_FOR_CHARET.
2501 (ftfont_get_charset): Undo the previous change.
1ac9108a 2502 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2503 (ftfont_close): Likewise.
2504 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2505
2506 * font.c (font_sort_entites): Change the meaning of the arg
2507 BEST-ONLY. Don't optimize for VEC of lenght 1.
2508 (font_select_entity): Just return the value of font_sort_entites.
2509
2510 * xfaces.c (merge_face_vectors): Reflect font properties in
2511 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2512 font_clear_prop if a face attribute doesn't change.
2513
3c908a57
KH
2514 * charset.h (charset_ksc5601): Extern it.
2515
2516 * charset.c (charset_ksc5601): New variable.
2517 (Fdefine_charset_internal): Set charset_ksc5601.
2518 (init_charset_once): Initialize charset_ksc5601 to -1.
2519
d65859c3
DN
25202009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2521
2522 * fileio.c (history_delete_duplicates): Remove unused declaration.
2523
2524 * callint.c (history_delete_duplicates): New declaration.
2525 (Fcall_interactively): Remove command history duplicates when
2526 history_delete_duplicates is true.
2527
3ba010e5
EZ
25282009-04-14 Eli Zaretskii <eliz@gnu.org>
2529
2530 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2531
06f19b91
KH
25322009-04-14 Kenichi Handa <handa@m17n.org>
2533
2534 * font.c (Ffont_info): Fix docstring. Fix the second element of
2535 the returned value (bug#2949).
2536
2cce8bfc
CY
25372009-04-14 Chong Yidong <cyd@stupidchicken.com>
2538
2539 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2540
d156542d
KH
25412009-04-14 Kenichi Handa <handa@m17n.org>
2542
2543 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2544 encoding charset is ascii_compatible.
2545
2546 * charset.c (Fdefine_charset_internal): Make charset
2547 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2548 code_offset is 0, and covers all ASCII characters.
2549
86fa089e
SM
25502009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2551
2552 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2553 (ns_string_to_pasteboard_internal):
2554 * nsmenu.m (process_dialog):
2555 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2556 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2557 * lisp.h (Fx_load_color_file): Declare.
2558
a8a3728b
KH
25592009-04-13 Kenichi Handa <handa@m17n.org>
2560
1ac9108a 2561 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2562 (font_select_entity): Suppress the code to optimize for the same
2563 kind of fonts.
2564 (font_load_for_lface): Get a font that supports at least ASCII
2565 characters.
2566
2567 * ftfont.c (Qja, Qko): New variables.
2568 (fc_charset_table): Delete uniquifier data for iso8859-1.
2569 (ftfont_get_latin1_charset): New function.
2570 (get_adstyle_property): New function.
2571 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2572 bitmap fonts.
2573 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2574 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2575 `ko' or `ja'.
2576 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2577 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2578 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2579 property.
2580 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2581 (syms_of_ftfont): DEFSYM Qja and Qko.
2582
483670b5
KH
25832009-04-09 Kenichi Handa <handa@m17n.org>
2584
12b55765
KH
2585 * charset.c (map_charset_chars): For a charset of `superset'
2586 method, fix calculation of code range.
2587
483670b5
KH
2588 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2589 from the list of extra properties.
2590 (font_clear_prop): Be sure to delete `:name' font property.
2591
57d3b93b
KH
25922009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2593
b4b2c2ca
YM
2594 * dispnew.c (redraw_overlapping_rows): Fix detection of
2595 overlapping for topmost and bottommost rows.
2596
1ac9108a 2597 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2598
472c3609
JR
25992009-04-06 Jason Rumney <jasonr@gnu.org>
2600
2601 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2602
ab193662
KH
26032009-04-06 Kenichi Handa <handa@m17n.org>
2604
2605 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2606
2607 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2608
0c26f026
KH
26092009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2610
2611 * ftfont.c (ftfont_open): Fix checking of the return value of
2612 FT_Load_Char. Fix setting font->underline_thickness.
2613
e173bbce
CY
26142009-04-04 Chong Yidong <cyd@stupidchicken.com>
2615
2616 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2617 (Fterminal_parameters, Fterminal_parameter)
2618 (Fset_terminal_parameter): In doc string, refer to terminal
2619 objects rather than terminal ids.
2620
693a2698
EZ
26212009-04-04 Eli Zaretskii <eliz@gnu.org>
2622
2623 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2624 ret_lim_data. (Bug#2867)
2625
d5221487
CY
26262009-04-03 Chong Yidong <cyd@stupidchicken.com>
2627
2628 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2629 so they don't get wider than the window, matching 2006-01-23
2630 change to the partner function in xdisp.c (Bug#2800).
2631
223509a3
KH
26322009-04-03 Kenichi Handa <handa@m17n.org>
2633
2634 * print.c (print_object): Make each lowest sub_char_table start a
2635 new line (Bug#2866).
2636
74fcd0b1
KH
26372009-04-02 Kenichi Handa <handa@m17n.org>
2638
2639 * fontset.c (fontset_font): Record no-font when a fontset
2640 explicitly tells not to try another font-specs.
2641
c542407d
SM
26422009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2643
2644 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2645
e3869731
KH
26462009-03-30 Kenichi Handa <handa@m17n.org>
2647
d8d2f142
KH
2648 * fontset.c (fontset_from_font): Specify only registry in a
2649 font-spec for all characters supported by that registry.
2650
e3869731
KH
2651 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2652 even if HAVE_M17N_FLT is not defined.
2653
5da5f805
CY
26542009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2655
2656 * ftfont.c: Conditionalize prototyping and use of
2657 ftfont_variation_glyphs.
2658
ab226c50
SM
26592009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2660
9628fed7
SM
2661 * frame.c (delete_frame): Work around compiler bug.
2662
2663 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2664 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2665 Some more EMACS_INT.
2666 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2667
2668 * xdisp.c (dump_glyph): Fix typo.
2669
ae19ba7c
SM
2670 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2671 (adjust_markers_gap_motion, adjust_markers_for_delete)
2672 (adjust_markers_for_insert, adjust_point)
2673 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2674 (make_gap, copy_text, count_size_as_multibyte, insert)
2675 (insert_and_inherit, insert_before_markers)
2676 (insert_before_markers_and_inherit, insert_1)
2677 (count_combining_before, count_combining_after, insert_1_both)
2678 (insert_from_string, insert_from_string_before_markers)
2679 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2680 (insert_from_buffer_1, adjust_after_replace)
2681 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2682 (replace_range_2, del_range, del_range_1, del_range_byte)
2683 (del_range_both, del_range_2, modify_region)
2684 (prepare_to_modify_buffer, signal_before_change)
2685 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2686 for buffer positions and sizes.
2687 * lisp.h: Adjust prototypes accordingly.
2688
2689 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2690 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2691 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2692
ab226c50
SM
2693 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2694
46dfb8fb
JD
26952009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2696
2697 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2698 lines and columns so we keep the same pixel height and width.
2699
2700 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2701 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2702 (x_handle_net_wm_state): New function to update frame parameter
2703 fullscreen.
2704 (x_term_init): Initialize atoms for _NET_WM_STATE.
2705
2706 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2707
d347e494
SM
27082009-03-27 Kevin Ryde <user42@zip.com.au>
2709
2710 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2711 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2712 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2713 (Fgpm_mouse_stop): Pass that new parameter.
2714 * termhooks.h (close_gpm): Adjust prototype.
2715
84db11d6
SM
27162009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2717
c95a5008
SM
2718 * lisp.h (Fx_focus_frame): Declare.
2719
84db11d6
SM
2720 * callint.c (Fcall_interactively): For '^' just delegate the work to
2721 handle-shift-selection.
2722 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2723
0a1958d6
CY
27242009-03-24 Chong Yidong <cyd@stupidchicken.com>
2725
0bfdff23
CY
2726 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2727
0a1958d6
CY
2728 * data.c (Qinteractive_form): New variable.
2729 (Finteractive_form): Use it.
2730
2731 * eval.c (Fcommandp): Use Qinteractive_form.
2732
58aec0d6
JR
27332009-03-24 Jason Rumney <jasonr@gnu.org>
2734
2735 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2736 Calculate total size precisely. Decode environment variables
2737 before substituting. (Bug#38)
2738
553dd618
KH
27392009-03-24 Kenichi Handa <handa@m17n.org>
2740
2741 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2742 encoding (Bug#2722).
553dd618 2743
c39ea606
JD
27442009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2745
2746 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2747 that gdpy is set.
2748
bc9b2b5e
AM
27492009-03-22 Alan Mackenzie <acm@muc.de>
2750
2751 * callint.c (Finteractive): Clarify the doc string - even
2752 promptless elements need \n separators.
2753
9f995a76
JR
27542009-03-22 Jason Rumney <jasonr@gnu.org>
2755
2756 * w32term.c (syms_of_w32term): Doc fix for
2757 x-use-underline-position-properties.
2758
22749e9a
EZ
27592009-03-21 Eli Zaretskii <eliz@gnu.org>
2760
2761 * w32.c (getpwuid): Change argument type to unsigned.
2762 (struct w32_id): Change type of `rid' member to unsigned.
2763 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2764 argument ID to unsigned. All callers changed.
2765 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2766
e00553bf
EZ
27672009-03-20 Eli Zaretskii <eliz@gnu.org>
2768
2769 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2770 negative, produce a float value.
2771
2772 * dired.c (make_uid, make_gid): New functions.
2773 (Ffile_attributes): Use them to avoid negative UID and GID.
2774
f761d6b6
JB
27752009-03-20 Juanma Barranquero <lekktu@gmail.com>
2776
2777 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2778 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2779 Fix typos in docstrings.
2780
d507f8d7
KH
27812009-03-19 Kenichi Handa <handa@m17n.org>
2782
2783 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2784 changed, use font_load_for_lface to get a new font object.
2785 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2786
2787 * frame.c (x_set_font): Handle the case that ARG is a cons.
2788
c68845e0
GM
27892009-03-19 Glenn Morris <rgm@gnu.org>
2790
2791 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2792
bfa49dd1
CY
27932009-03-19 Chong Yidong <cyd@stupidchicken.com>
2794
2795 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2796
8458d4c1
KH
27972009-03-19 Kenichi Handa <handa@m17n.org>
2798
2799 * charset.c (load_charset_map_from_file): When a mapfile can't be
2800 loaded, signal an error.
2801
78e7d1fe
EZ
28022009-03-18 Eli Zaretskii <eliz@gnu.org>
2803
2804 * dired.c (Ffile_attributes): Make sure UID and GID are always
2805 positive, even if the value is too large for a positive EMACS_INT.
2806 Doc fix.
2807
2808 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2809
5da9fdfa
YM
28102009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2811
2812 * xmenu.c (xdialog_show): Move Fredisplay call ...
2813 (Fx_popup_dialog): ... here.
2814
7519c40d
SM
28152009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2816
2817 * dired.c (file_name_completion): Disable the first optimization just
2818 installed, since it is not implemented correctly.
2819
2cd298e2
SM
28202009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2821
2822 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2823 only if the entry can affect bestmatch.
2cd298e2
SM
2824 Stop the search early, as Ftry_completion already does.
2825
48d37adf
CY
28262009-03-17 Chong Yidong <cyd@stupidchicken.com>
2827
e10c9c93 2828 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2829
9286b16a
CY
28302009-03-15 Chong Yidong <cyd@stupidchicken.com>
2831
2832 * keyboard.c (parse_menu_item): Don't display remappings as menu
2833 equivalent bindings (Bug#788).
2834
f7b146dc
JR
28352009-03-15 Jason Rumney <jasonr@gnu.org>
2836
2837 * w32term.h (WM_EMACS_PAINT): New message.
2838 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2839 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2840 before passing to lisp thread. (Bug#950)
2841
f761d6b6 28422009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2843
d93f9575
CY
2844 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2845 variable as it was never reset.
2846 (ns_term_init): Remove initialization of Lisp-settable defaults
2847 and ns_expand_space.
2848 (-setPanelFromDefaultValues): Remove ns_expand_space.
2849 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2850 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2851 i.e. no additional spacing, similar to Carbon port.
2852
d93f9575
CY
2853 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2854 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2855
305018ec
JD
28562009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2857
2858 * sound.c (alsa_configure): Remove call to deprecated
2859 snd_pcm_sw_params_set_xfer_align.
2860
f761d6b6 28612009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2862
2863 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2864 after clicking in a detached tool bar.
2865 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2866
46e722a9
SM
28672009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2868
348db3dd
SM
2869 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2870 int/Lisp_Object mixup).
46e722a9 2871
a3d16f39
KH
28722009-03-13 Kenichi Handa <handa@m17n.org>
2873
2874 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2875 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2876 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2877 (set_fontset_font): Change ARG to a vector. Handle range_list in
2878 ARG correctly.
2879 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2880 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2881 the above change.
2882 (fontset_from_font): Fix previous change.
fe24f56a 2883 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2884 entry. If FONTSET is the default fontset, don't set the extra
2885 slot of the returning char-table.
2886
b066e6b6
JB
28872009-03-12 Juanma Barranquero <lekktu@gmail.com>
2888
2889 * nsfns.m (Fx_close_connection): Doc fix.
2890 (Fns_do_applescript): Reflow docstring.
2891 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2892 (Fx_display_pixel_width, Fx_display_pixel_height)
2893 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2894 Fix typos in docstrings.
2895 (Fns_set_alpha): Fix typos in error messages.
2896
d472514e 28972009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 2898
d472514e 2899 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
2900 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2901 were used for such events.
2902
d472514e
JB
2903 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2904 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 2905
d472514e 2906 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
2907 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2908
fb930676
KH
29092009-03-11 Kenichi Handa <handa@m17n.org>
2910
ff85581a
KH
2911 * font.h (font_open_by_spec): Extern it.
2912
c50b7e98
KH
2913 * font.c (font_open_by_spec): New function.
2914 (font_open_by_name): Use font_open_by_spec.
2915
fb930676
KH
2916 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2917 fontset of the frame.
2918
2919 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2920 modify the default font of frames that use this fontset.
2921 (num_auto_fontsets): New variable.
2922 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2923 name. Be sure to set FONTSET_ASCII to the correct font name.
2924 (update_auto_fontset_alist): New function.
2925
df4e8455
JB
29262009-03-11 Juanma Barranquero <lekktu@gmail.com>
2927
2928 * makefile.w32-in: Update dependencies.
2929
0a375797
AR
29302009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2931
2932 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2933
61313fa3
SM
29342009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2935
2936 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2937
b55103fb
CY
29382009-03-10 Chong Yidong <cyd@stupidchicken.com>
2939
2940 * lread.c (Feval_buffer): Doc fix.
2941
dde2559c
KH
29422009-03-09 Kenichi Handa <handa@m17n.org>
2943
2944 * charset.c (Qfile_name_handler_alist): Extern it.
2945 (load_charset_map_from_file): Temporarily bind
2946 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2947
df4e8455 29482009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2949
47f588bb
GM
2950 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2951 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2952
4ddf94bd
AR
29532009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2954
4c9bdfc2
AR
2955 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2956 (x_set_window_size): Change back to calculated method of setting
2957 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
2958 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2959 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2960
fe41ae9e
AR
2961 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2962
4c9bdfc2
AR
2963 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2964 accelerator in parens under GNUstep.
2965
825d0875
KH
29662009-03-06 Kenichi Handa <handa@m17n.org>
2967
2968 These changes are to detect incorrect composition sequence without
f3b3be74 2969 looking ahead the source. (Bug#2370)
825d0875
KH
2970
2971 * coding.h: Include "composite.h".
2972 (enum compisition_state): New enum.
2973 (struct compisition_status): New struct.
2974 (struct iso_2022_spec): New member cmp_status.
2975 (struct emacs_mule_spec): New struct.
2976 (struct coding_system): New members ctext_extended_segment_len and
2977 embedded_utf_8. Change the union member
2978 spec.emacs_mule_full_support to spec.emacs_mule.
2979
2980 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2981 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 2982 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
2983 (ADD_COMPOSITION_DATA): New arg nbytes.
2984 (emacs_mule_char): New arg cmp_status.
2985 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2986 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2987 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2988 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2989 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2990 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2991 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2992 (EMACS_MULE_COMPOSITION_END): New macro.
2993 (emacs_mule_finish_composition): New function.
2994 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2995 (decode_coding_emacs_mule): Avoid long looking ahead while
2996 handling composition.
2997 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2998 (ENCODE_COMPOSITION_RULE): New macro.
2999 (finish_composition): New function.
3000 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3001 (DECODE_COMPOSITION_START): New implementation.
3002 (DECODE_COMPOSITION_END): Likewise.
3003 (STORE_COMPOSITION_RULE): New macro.
3004 (decode_coding_iso_2022): Avoid long looking ahead while handling
3005 composition, CTEXT extended segment, and embedded UTF-8.
3006 (setup_coding_system): For a coding of type iso-2022, reset
3007 CODING_ISO_EXTSEGMENT_LEN (coding) and
3008 CODING_ISO_EMBEDDED_UTF_8 (coding).
3009 (get_translation): Delete arguments last_block, from_nchars,
3010 to_nchars. Callers changed.
3011 (produce_chars): Don't modify charbuf. Adjusted for the change of
3012 get_translation.
98a326f7 3013 (produce_composition): Adjust for the new annotation sequence.
825d0875 3014 (handle_composition_annotation): Likewise.
98a326f7 3015 (consume_chars): Adjust for the change of get_translation.
825d0875 3016
ccbc4452
AR
30172009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3018
4ddf94bd 3019 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3020
988a7ddb
KH
30212009-03-05 Kenichi Handa <handa@m17n.org>
3022
3023 * font.c (font_select_entity): New function.
3024 (font_find_for_lface): Use font_select_entity to select a font.
3025
3026 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3027 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3028 font with C restriction.
3029
98a326f7 30302009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3031
be1bce46 3032 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3033
10ea2b82
JR
30342009-03-04 Jason Rumney <jasonr@gnu.org>
3035
2c93b248 3036 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3037 characters that have already been read. (Bug#2569)
2c93b248 3038
10ea2b82
JR
3039 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3040 Log an error message if check_image_size failed.
3041 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3042 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3043
71a0c011
EZ
30442009-03-02 Eli Zaretskii <eliz@gnu.org>
3045
3046 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3047 when decoding process output.
3048
2f63bba8
RS
30492009-03-01 Richard M Stallman <rms@gnu.org>
3050
3051 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3052
3053 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3054
0a9564cb
EZ
30552009-02-28 Eli Zaretskii <eliz@gnu.org>
3056
3057 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3058 (decode_coding_emacs_mule, decode_coding_iso_2022)
3059 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3060 (decode_coding_raw_text, decode_coding_charset)
3061 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3062 Honor inhibit-eol-conversion. (Bug #2186)
3063
449148b3
JR
30642009-02-28 Jason Rumney <jasonr@gnu.org>
3065
3066 * coding.c (detect_coding_charset): If not checking latin extra,
3067 fail on characters between 0x80 and 0xA0. (Bug#2354)
3068
a4aee864
EZ
30692009-02-28 Eli Zaretskii <eliz@gnu.org>
3070
3071 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3072 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3073
d88bee5a
GM
30742009-02-27 Glenn Morris <rgm@gnu.org>
3075
3076 * callint.c (Finteractive): Doc fix.
3077
a808f22d
KH
30782009-02-27 Kenichi Handa <handa@m17n.org>
3079
3080 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3081
caf8d60c
CY
30822009-02-27 Chong Yidong <cyd@stupidchicken.com>
3083
3084 * font.c (font_style_to_value): Set value for unknown symbols to
3085 100 instead of 255.
b61137ea
CY
3086 (weight_table, slant_table, width_table): Treat "unspecified" as
3087 the default value.
caf8d60c 3088
1a0de25c
JB
30892009-02-26 Juanma Barranquero <lekktu@gmail.com>
3090
3091 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3092
8fc45744
JB
30932009-02-25 Juanma Barranquero <lekktu@gmail.com>
3094
107bd7d1
JB
3095 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3096 error as soon as a recursive load is detected.
8fc45744 3097
f097e223
AR
30982009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3099
3100 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3101 before caching.
3102
8810a12f
KH
31032009-02-24 Kenichi Handa <handa@m17n.org>
3104
3105 * fontset.c (fontset_find_font): Fix the condition for checking
3106 unavailable font.
3107
2c7d1565
GM
31082009-02-24 Glenn Morris <rgm@gnu.org>
3109
3110 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3111 whitespace that confuses documentation.
3112
a20878b6
MB
31132009-02-23 Miles Bader <miles@gnu.org>
3114
3115 * process.c (Flist_system_processes, Fprocess_attributes)
3116 (syms_of_process): Rename `system-process-attributes' to
3117 `process-attributes'.
3118
b3b58c01
AS
31192009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3120
1b3b981b
AS
3121 * coding.h (struct coding_system): Make safe_charsets a pointer to
3122 unsigned char.
3123 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3124 being 255.
3125 (SAFE_CHARSET_P): Likewise.
3126 (setup_iso_safe_charsets): Properly setup safe_charsets.
3127 (Fdefine_coding_system_internal): Likewise.
3128 (setup_coding_system): Likewise. Remove unneeded casts.
3129 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3130 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3131 unneeded casts.
3132
b3b58c01
AS
3133 * insdel.c (del_range_2): Don't modify gap contents when called
3134 from decode_coding_object. (Bug#1809)
3135
0b6f228c
CY
31362009-02-21 Chong Yidong <cyd@stupidchicken.com>
3137
3138 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3139 Qfont_object.
3140 (Ftype_of): Recognize font objects.
3141
3142 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3143
3144 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3145 moved to data.c.
3146
52f8870b
AR
31472009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3148
3149 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3150 async_iconified. Based on a patch by Christian Lynbech
3151 <christian.lynbech@tieto.com>.
3152 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3153
7087d5e9
GM
31542009-02-20 Glenn Morris <rgm@gnu.org>
3155
3156 * syntax.c (Fskip_chars_forward): Fix doc typo.
3157
41d2ceef
CY
31582009-02-20 Chong Yidong <cyd@stupidchicken.com>
3159
3160 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3161
1a3b7ca6
CY
31622009-02-19 Chong Yidong <cyd@stupidchicken.com>
3163
3164 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3165
73cce38d
KH
31662009-02-19 Kenichi Handa <handa@m17n.org>
3167
3168 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3169 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3170
a51092ee
DN
31712009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3172
3173 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3174
c423ecca
KH
31752009-02-18 Kenichi Handa <handa@m17n.org>
3176
3177 * font.c (font_check_otf_features): Fix handling of `nil' element.
3178 (Ffont_spec): Describe :lang and :otf in the docstring.
3179
4c1958f4
AS
31802009-02-16 Andreas Schwab <schwab@suse.de>
3181
3182 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3183 string.
3184
5704f39a
KH
31852009-02-16 Kenichi Handa <handa@m17n.org>
3186
3187 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3188 (Bug#1723)
5704f39a 3189
8f0085aa
CY
31902009-02-14 Chong Yidong <cyd@stupidchicken.com>
3191
a057d86a 3192 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3193
3194 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3195 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3196
aff01dd9
EZ
31972009-02-14 Eli Zaretskii <eliz@gnu.org>
3198
3199 * msdos.c (MAX_SCREEN_BUF): New macro.
3200 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3201 Encode the entire run of glyphs sharing the same face, instead of
3202 doing that one glyph at a time (fixes a bug with displaying
3203 double-size characters).
3204
ba301db3
AR
32052009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3206
3207 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3208
3209 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3210 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3211 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3212
3213 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3214 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3215
51d861de
SM
32162009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3217
3218 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3219 invisible areas.
3220
7fed8996
JR
32212009-02-12 Jason Rumney <jasonr@gnu.org>
3222
631ea4fb
JR
3223 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3224 (add_font_entity_to_list): Call check_face_name even when family
3225 is unspecified.
3226
cb4a3e42
JR
3227 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3228 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3229 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3230
7fed8996 3231 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3232 raster fonts. (Bug#2219)
7fed8996 3233
895416e3
KH
32342009-02-12 Kenichi Handa <handa@m17n.org>
3235
3236 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3237 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3238 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3239 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3240 (find_automatic_composition): While looking forward and backward,
3241 check static composition. Fix where to stop looking forward.
3242 (composition_adjust_point): Fix checking of static composition.
3243 (Fcomposition_get_gstring): Pay attention to
1dacf998 3244 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3245
3246 * lisp.h (fast_looking_at): Extern it.
3247
3248 * search.c (fast_looking_at): New function.
3249
51d861de 3250 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3251 <struct glyph>.u.cmp.to.
3252 (append_composite_glyph): Likewise.
3253
51d861de 3254 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3255 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3256 composition.
51d861de 3257 (append_composite_glyph): Adjust for the change of
895416e3
KH
3258 <strcut glyph>.u.cmp.to.
3259
8510724d
JB
32602009-02-11 Juanma Barranquero <lekktu@gmail.com>
3261
3262 * casetab.c (init_casetab_once):
3263 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3264 * font.c (font_update_lface):
3265 * fontset.c (Fnew_fontset):
3266 * ftfont.c (ftfont_drive_otf):
3267 * xfont.c (xfont_open):
3268 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3269
294fa707
SM
32702009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3271
3272 * fileio.c (Fwrite_region): !NILP -> CONSP.
3273
b5bfebec
AS
32742009-02-10 Andreas Schwab <schwab@suse.de>
3275
3276 * process.c (send_process): Properly relocate pointer into data
adab88bd 3277 when using encoded data. (Bug#2272)
b5bfebec 3278
cb84a2be
KH
32792009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3280
3281 * coding.c (detect_coding_charset): Fix previous change.
3282
89e09428
JR
32832009-02-08 Jason Rumney <jasonr@gnu.org>
3284
3285 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3286 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3287
4470a277
AS
32882009-02-07 Andreas Schwab <schwab@suse.de>
3289
3290 * unexelf.c (unexec): Fix error message.
3291
3175b12a
AR
32922009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3293
3294 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3295 when modal window is active. (Bug #2152)
3175b12a
AR
3296 (applicationShouldTerminate:): Remove now-unneeded while loop
3297 around NSRunAlertPanel.
3298
3299 * nsmenu.m (popupSession): New file-global variable.
3300 (pop_down_menu): End the popupSession before closing dialog.
3301 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3302 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3303 don't query NSApp for events (just sleep instead).
3304
8434d0b8
EZ
33052009-02-07 Eli Zaretskii <eliz@gnu.org>
3306
51d861de
SM
3307 * coding.c (syms_of_coding) <translation-table-for-input>:
3308 Modify doc string to discourage use for character code unification.
8434d0b8 3309
aa82edfd
CY
33102009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3311
3312 * atimer.c (run_timers): Update pending_atimers.
3313
2d283c7c
CY
33142009-02-06 Chong Yidong <cyd@stupidchicken.com>
3315
eb306cab
CY
3316 * image.c (svg_load_image): Fix last change.
3317
2d283c7c
CY
3318 * xfns.c (Fx_create_frame): Signal an error if no font is
3319 found (Bug#2147).
3320
4d8e170e
JB
33212009-02-05 Juanma Barranquero <lekktu@gmail.com>
3322
3323 * character.c (syms_of_character) <script-representative-chars>:
3324 Fix typo in docstring.
3325
c96169a0
AR
33262009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3327
3328 * nsmenu.m (pop_down_menu): New function.
3329 (ns_popup_dialog): Call it on unwind.
3330 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3331 call timer_check() (Bug#2154).
3332 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3333 handling_signal is set.
3334 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3335
31fd7c5c 3336 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3337
3338 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3339
3340 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3341
51d861de
SM
3342 * keyboard.c (poll_for_input_1, handle_async_input):
3343 Set handling_signal under HAVE_NS.
c96169a0 3344
aacd8ba1
GM
33452009-02-04 Glenn Morris <rgm@gnu.org>
3346
3347 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3348
4cb75c4b
KH
33492009-02-04 Kenichi Handa <handa@m17n.org>
3350
3351 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3352
3353 * charset.c (Fchar_charset): New optional arg restriction.
3354
3355 * coding.h (coding_system_charset_list): Extern it.
3356
3357 * coding.c (coding_system_charset_list): New function.
3358
3359 * composite.c: Include coding.h and termhooks.h.
3360 (composition_gstring_p): Fix for the terminal case.
3361 (composition_gstring_width): Likewise.
3362 (fill_gstring_body): Likewise.
3363 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3364 the frame.
3365 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3366 is within a composition.
867d4bb3 3367 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3368
3369 * term.c (encode_terminal_code): Fix handling of composition.
3370 (produce_composite_glyph): For static composition, get pixel_width
3371 from struct composition.
3372
826ba17e
AS
33732009-02-02 Andreas Schwab <schwab@suse.de>
3374
3375 * unexelf.c (unexec): Handle unaligned bss offset.
3376
8ad093db
AR
33772009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3378
3379 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3380 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3381
8ad093db
AR
3382 * keyboard.c (handle_interrupt): Don't call
3383 quit_throw_to_read_char() under NS.
d0a76a6e 3384
8ad093db
AR
3385 * blockinput.h: Remove NS-specific code.
3386
4d18a7a2
DN
33872009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3388
db878925
DN
3389 * dispnew.c (window_change_signal): Don't try to get the size of a
3390 suspended tty frame.
3391 * term.c (Fresume_tty): Resize if the size has changed while the
3392 tty was suspended.
3393
4d18a7a2
DN
3394 * alloc.c (mark_stack): Properly conditionalize previous change.
3395
8984df7c
JB
33962009-01-30 Juanma Barranquero <lekktu@gmail.com>
3397
3398 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3399 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3400 Remove; this code is not used on Windows.
3401
75f4f1ac
EZ
34022009-01-30 Eli Zaretskii <eliz@gnu.org>
3403
3404 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3405 EOLs that also has stray ^M characters.
3406
07a1e794
JB
34072009-01-30 Juanma Barranquero <lekktu@gmail.com>
3408
3409 * atimer.c (run_timers, alarm_signal_handler):
3410 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3411 * w32inevt.c (w32_console_read_socket):
3412 * w32term.c (w32_read_socket):
3413 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3414
a8b11cc9
CY
34152009-01-30 Chong Yidong <cyd@stupidchicken.com>
3416
3417 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3418 Initialize it as a relative filename pattern.
3419 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3420 (Fcall_process_region): Simplify temp file creation using
3421 temporary-file-directory.
3422
c279587b
EZ
34232009-01-29 Eli Zaretskii <eliz@gnu.org>
3424
3425 * msdos.c: Rename pending_signals to msdos_pending_signals.
3426 (sig_suspender, sigprocmask): Adjust.
3427
a8fe3242
CY
34282009-01-29 Chong Yidong <cyd@stupidchicken.com>
3429
3430 * keyboard.c (pending_signals): New var.
3431 (poll_for_input, input_available_signal, init_keyboard): Set it.
3432 (process_pending_signals): New function.
3433
3434 * lisp.h (QUIT): Check pending_signals instead of
3435 interrupt_input_pending. Use process_pending_signals.
3436
51d861de 3437 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3438
51d861de 3439 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3440
3441 * sysdep.c (emacs_write): Use process_pending_signals.
3442
3443 * xterm.c (XTread_socket): Update pending_signals.
3444
3445 * w32term.c (w32_read_socket): Update pending_signals.
3446
3447 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3448
6570a1c4
KH
34492009-01-29 Kenichi Handa <handa@m17n.org>
3450
3451 * xftfont.c (xftfont_has_char): New function.
3452 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3453
d72a4afa
AR
34542009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3455
3456 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3457 under GNUstep.
3458 (ns_query_color): New declaration.
3459
3460 * nsterm.m (ns_confirm_quit): New variable.
3461 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3462 (EmacsApp-applicationShouldTerminate:): Use it.
3463 (EmacsPrefsController): Let user set it.
3464 (ns_query_color): New function.
3465 (ns_defined_color): Use it.
3466 (ns_initialize): Drop.
3467 (ns_term_init): Add two lines from ns_initialize(), and set
3468 input_interrupt_mode to nil.
3469
3470 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3471 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3472
9fe78804
KH
34732009-01-28 Kenichi Handa <handa@m17n.org>
3474
3475 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3476 (fontset_get_font_group): Remember that no font-group is specified
3477 for C.
9fe78804 3478
fa57de36
CY
34792009-01-27 Chong Yidong <cyd@stupidchicken.com>
3480
930600e9
CY
3481 * fns.c (concat): Check for string overflow (bug#1787).
3482
fa57de36
CY
3483 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3484 Quadruple undo limits (bug#1501).
3485
7179ce7b
KH
34862009-01-27 Kenichi Handa <handa@m17n.org>
3487
3488 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3489 directly use GT_Get_Char_index.
3490
3491 * xftfont.c (struct xftfont_info): New member `index'.
3492
3493 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3494 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3495
5be8fcc0
CY
34962009-01-26 Kenichi Handa <handa@m17n.org>
3497
3498 * fontset.c (fontset_find_font): Fix handling of non-cons return
3499 value of fontset_get_font_group.
3500 (fontset_font): Revert last change.
3501
19ae3e61
JR
35022009-01-26 Jason Rumney <jasonr@gnu.org>
3503
3504 * w32font.c (w32font_list_internal): Return quickly if registry is
3505 unknown. Simplify final return.
3506 (add_font_entity_to_list): Break complex logic down into more
3507 manageable chunks. Move unknown registry check to
3508 w32font_list_internal.
3509
8612b71a
AR
35102009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3511
3512 Changes to remove Feval calls from GUI under NS.
3513
d8038940
JB
3514 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3515 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3516 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3517
3518 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3519 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3520 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3521 instead of NON_ASCII_KEYSTROKE_EVENT.
3522 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3523 (EmacsApp-applicationShouldTerminate:): Query user.
3524 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3525 instead of Feval.
3526
3527 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3528
3529 * keyboard.c (kbd_buffer_get_event): Check for it.
3530 (keys_of_keyboard): Define lispy keys for
3531 ns-put/unput-working-text.
3532
3533 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3534 versions.
3535 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3536
6288ae55
CY
35372009-01-25 Chong Yidong <cyd@stupidchicken.com>
3538
3539 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3540 setting current_buffer directly. (Bug#2044)
6288ae55 3541
289e7f8f
CY
35422009-01-24 Chong Yidong <cyd@stupidchicken.com>
3543
5ce87308 3544 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3545 any work. (Bug#1952, bug#1990).
5ce87308 3546
64cc3cf6 3547 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3548
b3243e6f
AR
35492009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3550
3551 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3552 (ns_no_defaults): New declaration.
3553 (main): Use it.
e0d2e69a 3554
d900b2af 3555 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3556
d900b2af 3557 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3558
d900b2af
AR
3559 * nsterm.m (ns_no_defaults): New variable.
3560 (ns_initialize): Don't read defaults when ns_no_defaults.
3561 (EmacsView-readSelectionFromPasteboard:)
3562 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3563 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3564 (ns_dumpglyphs_stretch): New function.
3565 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3566 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3567
e0d2e69a
AR
3568 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3569
3ac71f5d
CY
35702009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3571
3572 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3573 call for Sparc64.
3574
3fe53a83
AR
35752009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3576
3577 * nsfns.m:
3578 * nsgui.h:
3579 * nsmenu.m:
3580 * nsselect.m:
3581 * nsterm.h:
3582 * nsterm.m: Remove '23' comments that indicated code added during
3583 update from emacs-20 -> emacs-23.
3584
10f87c6f 35852009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3586
3587 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3588 ns_alternate_modifier. (Bug#1217)
a3b53a85 3589
c7cef62d
AR
3590 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3591 Display all shortcuts, including those w/o super modifier.
3592
575fb8bd
AR
3593 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3594
918b848b
CY
35952009-01-22 Chong Yidong <cyd@stupidchicken.com>
3596
3597 * fileio.c (Vwrite_region_post_annotation_function)
3598 (Vwrite_region_annotation_buffers): New vars.
3599 (build_annotations_unwind): Just reset
3600 Vwrite_region_annotation_buffers.
3601 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3602 Call write-region-post-annotation-function.
3603 (build_annotations): Add to Vwrite_region_annotation_buffers if
3604 buffer changes.
3605
a39e2539
AR
36062009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3607
3608 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3609 Tiger.
51d861de
SM
3610 * nsfns.m (ns_do_applescript):
3611 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3612
35ed44db
AR
36132009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3614
3615 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3616
cbe0b5bf
AR
36172009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3618
3619 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3620
6049d3a0
AR
3621 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3622
3623 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3624 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3625 handle Ctrl-tab. (Bug#1841)
3626 (ns_get_color): Use unsigned long long for scanned hex string value.
3627 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3628 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3629 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3630 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3631 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3632 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3633 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3634
d3810c21 3635 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3636 DPI. (Bug#1316)
d3810c21
AR
3637 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3638 values in onTiger section.
4c7077c3 3639
e301e634
CY
36402009-01-19 Chong Yidong <cyd@stupidchicken.com>
3641
7f82490b
CY
3642 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3643 Check return value of font_spec_from_name.
64cc3cf6 3644 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3645
3646 * font.c (font_spec_from_name): Return Qnil if font name could not
3647 be parsed.
3648 (font_parse_name): Treat a `?' character as part of an XLFD.
3649
e301e634
CY
3650 * fns.c (Fsubstring): Doc fix.
3651
1c0db158
KH
36522009-01-19 Kenichi Handa <handa@m17n.org>
3653
51d861de 3654 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3655 (ftfont_list): Likewise.
3656
acf20901
JB
36572009-01-18 Juanma Barranquero <lekktu@gmail.com>
3658
fff4e459
JB
3659 * dbusbind.c (Fdbus_register_signal):
3660 * process.c (conv_sockaddr_to_lisp):
3661 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3662
acf20901
JB
3663 * callproc.c (Fgetenv_internal): Doc fix.
3664
e7abcdfb
CY
36652009-01-16 Chong Yidong <cyd@stupidchicken.com>
3666
3667 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3668 it is not even used.
3669
b60861e6
GM
36702009-01-16 Glenn Morris <rgm@gnu.org>
3671
3672 * font.c (Ffont_variation_glyphs): Silence compiler.
3673
8db52afe
JB
36742009-01-15 Juanma Barranquero <lekktu@gmail.com>
3675
3676 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3677 Reported by David Robinow <drobinow@gmail.com>.
3678
4cddb209
KH
36792009-01-15 Kenichi Handa <handa@m17n.org>
3680
51d861de 3681 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3682
f247f67b
JR
36832009-01-14 Jason Rumney <jasonr@gnu.org>
3684
3685 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3686 never a fontset. (Bug#1562)
f247f67b 3687
f56a4450
KH
36882009-01-14 Kenichi Handa <handa@m17n.org>
3689
3690 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3691 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3692
4e99855e
CY
36932009-01-13 Chong Yidong <cyd@stupidchicken.com>
3694
3695 * font.c (font_clear_prop): If clearing the family, clear the font
3696 width index too.
3697
fff4e459 3698 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3699
24f01470
JB
37002009-01-12 Juanma Barranquero <lekktu@gmail.com>
3701
3702 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3703 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3704 functions, use sizeof.
3705
a41240a3
MR
37062009-01-12 Martin Rudalics <rudalics@gmx.at>
3707
3708 * keyboard.c (read_char): Fix case where last_nonmenu_event
3709 returned a bad value with submenus. (Bug#447)
3710
944636b8
CY
37112009-01-12 Chong Yidong <cyd@stupidchicken.com>
3712
3713 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3714 family, clear the font width index too.
3715
0dad7c6f
JR
37162009-01-11 Jason Rumney <jasonr@gnu.org>
3717
3718 * keyboard.c (cmd_error_internal): Exit when errors occur before
3719 frame creation and not in daemon mode. (Bug#1836)
3720
7c2363af
CY
37212009-01-10 Chong Yidong <cyd@stupidchicken.com>
3722
3723 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3724 of a display vector, backtrack.
3725 (try_window_reusing_current_matrix): Check glyph type before
3726 referencing charpos member.
3727
97b1b294
EZ
37282009-01-10 Eli Zaretskii <eliz@gnu.org>
3729
3730 Fix Bug #876:
3731
3732 * coding.c (inhibit_null_byte_detection): New variable.
3733 (detect_coding, detect_coding_system): Don't pay attention to null
3734 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3735 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3736 <inhibit-iso-escape-detection>: Doc fix.
3737
4624b6e3
JR
37382009-01-09 Jason Rumney <jasonr@gnu.org>
3739
3740 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3741 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3742 Only report Unicode Plane 2 fonts as unicode-sip.
3743
323b840c
CY
37442009-01-09 Chong Yidong <cyd@stupidchicken.com>
3745
51d861de
SM
3746 * xfaces.c (Fx_font_family_list): Delete function.
3747 Move compatibility version to faces.el.
323b840c 3748
51d861de 3749 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3750
eba7400d
MR
37512009-01-09 Martin Rudalics <rudalics@gmx.at>
3752
3753 * frame.c (x_set_frame_parameters): Remember requested value for
3754 fullscreen before it's reset by the parameter handler.
3755
4b09796d
GM
37562009-01-09 Glenn Morris <rgm@gnu.org>
3757
3758 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3759 (last_command_event): ... and update all users.
4b09796d
GM
3760 (last_input_char): For clarity, rename to...
3761 (last_input_event): ... and update all users.
3762 (last-command-char, last-input-char): Move to subr.el as aliases.
3763 * cmds.c, commands.h: Update for last_command_char rename.
3764
14ccea62
CY
37652009-01-08 Chong Yidong <cyd@stupidchicken.com>
3766
51d861de 3767 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3768
5f004711
JR
37692009-01-08 Jason Rumney <jasonr@gnu.org>
3770
3771 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3772 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3773 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3774 Don't declare.
fff4e459 3775 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3776 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3777
b71f6f73
KH
37782009-01-07 Kenichi Handa <handa@m17n.org>
3779
50b06221 3780 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3781 remember the coding system used for decoding in
50b06221
KH
3782 coding_system (Bug#1039).
3783
b71f6f73 3784 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3785 breaking the loop. (Bug#870)
b71f6f73
KH
3786 (decode_coding_utf_16, decode_coding_emacs_mule)
3787 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3788 (decode_coding_charset): Likewise.
3789
56f668f7
MR
37902009-01-05 Martin Rudalics <rudalics@gmx.at>
3791
3792 * frame.c (x_set_frame_parameters): Make sure height (width) get
3793 applied when fullwidth (fullheight) is set. (Bug#1522)
3794
5da9424d
JB
37952009-01-04 Juanma Barranquero <lekktu@gmail.com>
3796
3797 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3798 (utc_base): Declare as ULONGLONG, not long double.
3799 (convert_time_raw): Delete.
3800 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3801 (initialize_utc_base): New function.
3802 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3803 (convert_from_time_t): Use initialize_utc_base; compute result with
3804 64-bit arithmetic.
3805 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3806
c4605e09
EZ
38072009-01-03 Eli Zaretskii <eliz@gnu.org>
3808
9acef61c 3809 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3810 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3811 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3812 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3813 [!subprocesses]: Define.
3814 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3815 (Flist_system_processes, Fsystem_process_attributes)
3816 [!subprocesses]: Call list_system_processes and
3817 system_process_attributes instead of returning Qnil.
3818
9acef61c
JB
3819 * dosfns.c (system_process_attributes, list_system_processes):
3820 New functions.
c4605e09
EZ
3821
3822 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3823
3824 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3825 Don't use the default (no-op) implementation.
3826
8b7d0a16
JR
38272009-01-03 Jason Rumney <jasonr@gnu.org>
3828
a6d46bc1
JR
3829 * keyboard.c (parse_modifiers_uncached): Wheel events are
3830 clicks (bug#687).
3831
8b7d0a16
JR
3832 * w32term.c (x_query_colors, x_query_color): New functions.
3833
3834 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3835 (svg_load_image): Cast returned pointers from dynamically loaded
3836 functions. Eliminate W32 specific code.
3837
bfe11752
DN
38382009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3839
89e2438a
DN
3840 * nsfns.m (x_set_foreground_color, x_set_background_color)
3841 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3842 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3843 x_ prefix instead of ns_. Update references.
3844 (syms_of_nsfns): Add a FIXME comment.
3845
3846 * nsterm.m (x_set_cursor_type): New prototype.
3847 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3848
bfe11752
DN
3849 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3850 for Solaris instead of incorrectly providing Qutime and Qcutime.
3851
031da700
EZ
38522009-01-02 Eli Zaretskii <eliz@gnu.org>
3853
3854 * w32.c (process_times): Compute sum of utime and stime.
3855 (system_process_attributes): Add Qtime to the alist.
3856
3857 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3858 and add them to the alist.
3859
3860 * process.c (top level) <Qtime, Qctime>: New variables.
3861 (syms_of_process): staticpro them.
3862 (Fsystem_process_attributes): Add their documentation to the doc
3863 string.
3864
3865 * process.h: Declare Qtime and Qctime.
3866
df23bf08
JR
38672009-01-02 Jason Rumney <jasonr@gnu.org>
3868
9acef61c 3869 * image.c (Qgobject): New symbol.
df23bf08
JR
3870 (syms_of_image): Initialize it.
3871 (init_svg_functions): Load some functions from gobject library.
3872
5bbdf7aa
DN
38732009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3874
3875 * frame.c (make_terminal_frame): Remove redundant code and useless
3876 block.
3877
63136da6
AS
38782009-01-01 Andreas Schwab <schwab@suse.de>
3879
3880 * process.c (conv_sockaddr_to_lisp): Add workaround for
3881 getsockname bug on BSD.
3882
9ef69046
CY
38832009-01-01 Chong Yidong <cyd@stupidchicken.com>
3884
d6fafbe0
CY
3885 * xfns.c (x_create_tip_frame): Set border width of the X window.
3886
51d861de 3887 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3888
f9c34147
JR
38892009-01-01 Jason Rumney <jasonr@gnu.org>
3890
9acef61c 3891 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
3892 Don't block input, as per earlier xterm.c changes.
3893
f5497e45
AR
38942008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3895
3896 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3897 (ns_appkit_version_int): New function.
3898 (x-server-version): Use ns_appkit_version_int and follow 21+
3899 convention of returning 3 integers.
3900
c19cab20
KH
39012008-12-30 Kenichi Handa <handa@m17n.org>
3902
3903 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3904 (CHAR_SURROGATE_PAIR_P): New macro.
3905
3906 * font.h (struct font_driver): New member get_variation_glyphs.
3907
9acef61c 3908 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
3909 (Ffont_variation_glyphs): New function.
3910 (syms_of_font): Defsubr it.
3911
3912 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3913 ftfont_variation_glyphs.
3914 (setup_otf_gstring): New function.
3915 (ftfont_drive_otf): Use it.
3916 (ftfont_shape_by_flt): Handle variation selector.
3917 (ftfont_variation_glyphs): New function.
3918
28cd591f
MR
39192008-12-30 Martin Rudalics <rudalics@gmx.at>
3920
3921 * frame.c (Vemacs_iconified): Remove.
3922
7f714baf
JR
39232008-12-30 Jason Rumney <jasonr@gnu.org>
3924
3925 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3926 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3927
9d2d22ab
CY
39282008-12-30 Chong Yidong <cyd@stupidchicken.com>
3929
3930 * indent.c (Fvertical_motion): Don't advance iterator if we have
3931 reseated to the desired position.
3932
3933 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3934 checking for pos match.
3935
545312c2
KH
39362008-12-30 Kenichi Handa <handa@m17n.org>
3937
1ede3eb6
KH
3938 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3939 just get the low 8-bit of the code.
3940
545312c2
KH
3941 * font.c (font_intern_prop): Validate str as multibyte.
3942
bd7bbf29
DN
39432008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3944
31e0750e
DN
3945 * dispextern.h (struct face): Move lface and hash from the middle
3946 of bitfields.
3947
bd7bbf29
DN
3948 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3949
b5672e7c
DN
39502008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3951
3952 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3953 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3954 instead of intervals.h.
3955
d704470f
AS
39562008-12-26 Andreas Schwab <schwab@suse.de>
3957
3958 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3959 cons.
3960
54b33868
MR
39612008-12-26 Martin Rudalics <rudalics@gmx.at>
3962
3963 * textprop.c (Qminibuffer_prompt): New variable.
3964 (syms_of_textprop): Initialize it.
3965 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3966 in minibuffer-prompt face. (Bug#1662)
3967
40b615d6
JR
39682008-12-25 Jason Rumney <jasonr@gnu.org>
3969
3970 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3971
baae5c2d
JR
39722008-12-24 Jason Rumney <jasonr@gnu.org>
3973
3974 * ralloc.c (r_alloc_reset_variable): New function.
3975
3976 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 3977 record of what points where. (Bug#716)
baae5c2d 3978
a9051c88
DN
39792008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3980
3981 * minibuf.c (read_minibuf): Follow the non-interactive case when
3982 running as a daemon, before detaching.
3983
8b146312
AS
39842008-12-22 Andreas Schwab <schwab@suse.de>
3985
3986 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3987 * gtkutil.c (free_widget_value): Use xfree instead of free.
3988
56f2de10
MR
39892008-12-22 Martin Rudalics <rudalics@gmx.at>
3990
3991 * frame.c (delete_frame): New function derived from
3992 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3993 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3994 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3995 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3996 * frame.h: Extern delete_frame.
3997 * window.c (window_loop):
3998 * terminal.c (delete_terminal):
3999 * xterm.c (x_connection_closed):
4000 * xfns.c (Fx_hide_tip):
9acef61c 4001 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4002
1fc200d6
JR
40032008-12-21 Jason Rumney <jasonr@gnu.org>
4004
4005 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4006 when character maps to .notdef character.
4007
5e252df2
SM
40082008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4009
4010 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4011
99b72cc4
JR
40122008-12-20 Jason Rumney <jasonr@gnu.org>
4013
4014 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4015 a graphical frame on Windows. (Bug#1325)
99b72cc4 4016
acc49a52
JD
40172008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4018
4019 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4020
6ea15123
CY
40212008-12-20 Chong Yidong <cyd@stupidchicken.com>
4022
4023 * minibuf.c (Fread_buffer): Doc fix.
4024
b2dab6c8
JR
40252008-12-20 Jason Rumney <jasonr@gnu.org>
4026
54ea0c87 4027 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4028 server name in UNC paths. (Bug#719)
54ea0c87 4029
b2dab6c8 4030 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4031 charbuf. (Bug#1035)
b2dab6c8 4032
6d1921be
DN
40332008-12-19 Daniel Engeler <engeler@gmail.com>
4034
4035 * sysdep.c (serial_configure): Fix typo.
4036
53934c98
DN
40372008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4038
4039 * sysdep.c: Include alloca.h.
f4f634e8
DN
4040 (system_process_attributes): Add implementation for Solaris.
4041
4042 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4043
06e111a6
DN
40442008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4045
4046 Reorganize implementation of Flist_system_processes and
4047 Fsystem_process_attributes. No functional changes.
4048 * process.c: Don't #include pwd.h, grp.h and limits.h.
4049 (Flist_system_processes): Just call list_system_processes.
4050 (Fsystem_process_attributes): Just call system_process_attributes.
4051 (procfs_list_system_processes, time_from_jiffies)
4052 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4053 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4054
4055 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4056 (list_system_processes): Rename from
4057 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4058 Provide a do nothing implementation.
4059 (system_process_attributes): Rename from
4060 procfs_list_system_processes.
4061 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4062 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4063
4064 * w32.c (list_system_processes): Rename from
4065 w32_list_system_processes.
4066 (system_process_attributes): Rename from
4067 w32_system_process_attributes.
4068
4069 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4070
4071 * process.h (w32_list_system_processes)
4072 (w32_system_process_attributes): Remove.
362654a6
JB
4073 (list_system_processes, system_process_attributes):
4074 New prototypes.
06e111a6 4075
6a705b23
KH
40762008-12-19 Kenichi Handa <handa@m17n.org>
4077
4078 * xfont.c (xfont_decode_coding_xlfd): New function.
4079 (xfont_encode_coding_xlfd): New function.
4080 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4081 (xfont_list): Decode and encode XLFD by iso-8859-1.
4082 (xfont_match): Likewise.
4083 (xfont_list_family): Likewise.
4084 (xfont_open): Likewise.
4085
d66c0241 4086 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4087 names are utf-8.
4088
d66c0241 4089 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4090 names are utf-8.
4091
5a130941
JD
40922008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4093
4094 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4095 changed.
bfd20325
JD
4096 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4097 clicked on a detached tool bar button.
5a130941 4098
fd95644b
DN
40992008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4100
4101 * emacs.c (main): Print and error and exit when no data is read
4102 from the pipe.
4103
e6eee6ae
JR
41042008-12-17 Jason Rumney <jasonr@gnu.org>
4105
4106 * w32font.c (w32font_has_char): Always return -1.
4107
a35dd56b
KH
41082008-12-16 Kenichi Handa <handa@m17n.org>
4109
4110 * font.c (font_open_entity): Fix previous change.
4111
0e3635c2
DN
41122008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4113
4114 * process.c: Include <limits.h>.
4115
d4835507 41162008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4117
4118 * font.c (font_update_drivers): Fix mistake in reconstructing the
4119 driver list.
4120
41212008-12-16 Chong Yidong <cyd@stupidchicken.com>
4122
4123 * font.c (font_clear_cache): Fix format of font cache data.
4124
e2cbc401
CY
41252008-12-15 Chong Yidong <cyd@stupidchicken.com>
4126
4127 * xftfont.c (xftfont_open): Free Xft font pattern if
4128 XftFontOpenPattern fails.
4129
4130 * xterm.c (x_free_frame_resources): Remove extraneous call to
4131 free_frame_faces.
4132
b131d535
CY
41332008-12-13 Chong Yidong <cyd@stupidchicken.com>
4134
4135 * xterm.c (x_delete_display): Move xim_close_dpy call to
4136 x_delete_terminal.
4137 (x_delete_terminal): Call xim_close_dpy.
4138
e6df5336
JR
41392008-12-13 Jason Rumney <jasonr@gnu.org>
4140
4141 * w32font.c (intern_font_name): New function.
4142 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4143 (w32font_open_internal, Fx_select_font): Decode font name.
4144 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4145
4146 * w32font.h (intern_font_name): Declare new function.
4147
4148 * w32uniscribe.c (add_opentype_font_name_to_list):
4149 Use intern_font_name.
4150
20d68145
CY
41512008-12-13 Chong Yidong <cyd@stupidchicken.com>
4152
9f2554de
CY
4153 * frame.c (Fdelete_frame): Call free_font_driver_list.
4154
3d9bec9a
CY
4155 * font.c (free_font_driver_list): Implement missing function.
4156
20d68145
CY
4157 * w32term.c (w32_term_init): Don't initialize the image cache
4158 here; it will be done in init_frame_faces.
4159
4160 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4161 (struct x_display_info): Remove unused member null_pixel. New
4162 member xim_callback_data.
4163
4164 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4165 (xim_initialize): Save pointer to callback function data.
4166 (xim_close_dpy): Free callback function data. Call XCloseIM,
4167 reverting 2008-11-04 change by David Smith.
4168 (x_term_init): Don't initialize the image cache here; it will be
4169 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4170 (x_delete_display): Free x_dnd_atoms member.
4171
96f9306b
KH
41722008-12-13 Kenichi Handa <handa@m17n.org>
4173
6dec9044
JB
4174 * font.c (font_rescale_ratio): Moved from xfaces.c.
4175 Argument type changed. Handle a font-spec too.
96f9306b 4176 (font_score): Check Vface_font_rescale_alist.
6dec9044 4177 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4178
4179 * xfaces.c (font_rescale_ratio): Moved to font.c.
4180
8d5b4964
CY
41812008-12-13 Chong Yidong <cyd@stupidchicken.com>
4182
4183 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4184
e6df5336
JR
41852008-12-12 Jason Rumney <jasonr@gnu.org>
4186
4187 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4188 Vwindow_system_version to the real w32 major version.
4189
97c6058a
DN
41902008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4191
4192 * term.c (init_tty): Move setting the terminal name before the
4193 potential user: maybe_fatal.
4194
ec4e88d7
CY
41952008-12-11 Chong Yidong <cyd@stupidchicken.com>
4196
d4835507
JB
4197 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4198 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4199
b4233ec9
JR
42002008-12-11 Jason Rumney <jasonr@gnu.org>
4201
8ec71e23 4202 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4203 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4204
b4233ec9 4205 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4206 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4207
011a0143
JB
42082008-12-11 Juanma Barranquero <lekktu@gmail.com>
4209
4210 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4211
3c309f34
JB
42122008-12-11 Juanma Barranquero <lekktu@gmail.com>
4213
4214 * process.c (Fsystem_process_attributes, syms_of_process):
4215 Fix typo in name of Ssystem_process_attributes.
4216 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4217
fedc6ab5
JB
42182008-12-11 Juanma Barranquero <lekktu@gmail.com>
4219
4220 * syntax.c (Fmodify_syntax_entry): Doc fix.
4221
ba3de0e8
JB
42222008-12-10 Juanma Barranquero <lekktu@gmail.com>
4223
4224 * font.c (Ffont_spec): Move usage to end of docstring.
4225
174f1c74
JR
42262008-12-10 Jason Rumney <jasonr@gnu.org>
4227
4228 * w32font.c (Qcham): New symbol.
4229 (font_supported_scripts): Add cham, and comments for other new
4230 scripts in bitfield from OpenType spec.
9d32f818
JR
4231 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4232 contain characters beyond the bmp.
174f1c74 4233
7b649478
KH
42342008-12-10 Kenichi Handa <handa@m17n.org>
4235
4236 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4237 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4238 Qunicode_sip.
4239
2133e2d1
JB
42402008-12-10 Juanma Barranquero <lekktu@gmail.com>
4241
4242 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4243 (Fcoding_system_put): Use QCdefault_char.
4244 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4245
9af886ee
CY
42462008-12-09 Chong Yidong <cyd@stupidchicken.com>
4247
74d819eb
CY
4248 * xftfont.c (syms_of_xftfont): Fix typo.
4249
4ccfa1c0 4250 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4251
7c19d3ae
DN
42522008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4253
4254 * emacs.c (main): Close daemon_pipe on exec.
4255
567826bb
CY
42562008-12-08 Chong Yidong <cyd@stupidchicken.com>
4257
4258 * termchar.h (struct tty): New members termcap_term_buffer and
4259 termcap_strings_buffer.
4260
4261 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4262 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4263 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4264 All callers changed.
4265 (init_tty): Store termcap data and string buffers in new struct
4266 tty members termcap_term_buffer and termcap_strings_buffer.
4267 (delete_tty): Free them.
4ccfa1c0 4268 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4269
aa96c42b
SZ
42702008-12-07 Seiji Zenitani <zenitani@mac.com>
4271
4272 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4273 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4274
b7e1d896
CY
42752008-12-06 Chong Yidong <cyd@stupidchicken.com>
4276
4277 * coding.c (make_conversion_work_buffer): Disable buffer
4278 modification hooks in the work buffer.
4279
b5ec91a5
EZ
42802008-12-05 Eli Zaretskii <eliz@gnu.org>
4281
4282 * process.c (procfs_system_process_attributes): If `nread' has a
4283 negative value, assign zero to it.
4284
a5d2a52b
CY
42852008-12-05 Chong Yidong <cyd@stupidchicken.com>
4286
68c5540b 4287 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4288
7bf1bb21
KH
42892008-12-05 Kenichi Handa <handa@m17n.org>
4290
4291 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4292 second character is a combining character.
4293
2fdc7d00
EZ
42942008-12-05 Eli Zaretskii <eliz@gnu.org>
4295
4296 * process.c (procfs_system_process_attributes): Don't use cmd,
4297 cmdsize, and q without initializing them first.
4298
bf6bfba8
JR
42992008-12-04 Jason Rumney <jasonr@gnu.org>
4300
4301 * w32font.c (w32font_draw): Initialize orig_clip before getting
4302 it, and delete it when finished.
4303
a3b1a468
DN
43042008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4305
4306 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4307 case when running as a daemon before detaching.
4308
8b8be8eb
JB
43092008-12-03 Juanma Barranquero <lekktu@gmail.com>
4310
805f2638 4311 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4312
b1bde622
KH
43132008-12-03 Kenichi Handa <handa@m17n.org>
4314
e500c47d
KH
4315 * font.c (font_at): Set `multibyte' at first.
4316
ca516334
KH
4317 * coding.c (decode_coding_charset): Check type of an element of
4318 vector VALIDS.
7bf1bb21 4319 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4320
4ccfa1c0 4321 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4322 (font_for_char): Likewise.
4323
1e5ecd37
CY
43242008-12-03 Chong Yidong <cyd@stupidchicken.com>
4325
d5b01609 4326 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4327 (font_update_lface): Handle fonts with corrupted size specs,
4328 i.e. non-int and non-float.
d5b01609 4329
11e3a6e4 4330 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4331 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4332 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4333
ab06788b
CY
4334 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4335
1e5ecd37 4336 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4337 underline_minimum_offset for underline position.
1e5ecd37 4338
63c125ab
DN
43392008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4340
4341 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4342
4343 * character.c (c_string_width): Specify the type for LEN.
4344
3a8406e1
KH
43452008-12-03 Kenichi Handa <handa@m17n.org>
4346
4ccfa1c0 4347 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4348 (decode_coding_utf_8): Likewise.
4ccfa1c0 4349 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4350 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4351
651df7d9
CY
43522008-12-02 Chong Yidong <cyd@stupidchicken.com>
4353
4354 * keyboard.c (make_lispy_position): Only use PT if the selected
4355 window is current.
4356
1f625c6c
AS
43572008-12-02 Andreas Schwab <schwab@suse.de>
4358
f7741ce9
AS
4359 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4360
1f625c6c
AS
4361 * doprnt.c (doprnt1): Fix size of charbuf.
4362
92bc2678
CY
43632008-12-02 Chong Yidong <cyd@stupidchicken.com>
4364
4365 * keyboard.c (timer_check): Revert last change.
4366
93b9e8cc
JB
43672008-12-02 Juanma Barranquero <lekktu@gmail.com>
4368
4369 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4370
fd7a37d5
JB
43712008-12-01 Juanma Barranquero <lekktu@gmail.com>
4372
4373 * makefile.w32-in: Update dependencies.
4374 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4375
c115043b
AS
43762008-12-01 Andreas Schwab <schwab@suse.de>
4377
4378 * font.c (register_font_driver): Use xmalloc.
4379 (font_put_frame_data): Likewise.
4380
f5668d2a
CY
43812008-12-01 Chong Yidong <cyd@stupidchicken.com>
4382
860d96be
CY
4383 * xfaces.c (realize_x_face): Make abort condition clearer.
4384
f5668d2a
CY
4385 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4386
379c17e7
CY
43872008-11-30 Chong Yidong <cyd@stupidchicken.com>
4388
4389 * keyboard.c (timer_check): After a timer runs, ensure that the
4390 selected window's buffer is current.
4391
35f36d65
JB
43922008-11-30 Juanma Barranquero <lekktu@gmail.com>
4393
f952c61c
JB
4394 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4395 It was accidentally restored by the Unicode merge.
4396
35f36d65
JB
4397 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4398
b23077df
JB
43992008-11-29 Juanma Barranquero <lekktu@gmail.com>
4400
4401 * w32proc.c: Include "coding.h".
4402 (Fw32_short_file_name): Encode filename passed to Windows API.
4403 (Fw32_long_file_name): Encode filename passed to Windows API and
4404 decode back the result. (Bug#1433)
4405
b8ebe9dd
KH
44062008-11-29 Kenichi Handa <handa@m17n.org>
4407
8cc53f96
KH
4408 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4409 not before accessing it.
4410
b8ebe9dd
KH
4411 * charset.c (Fdefine_charset_internal): After calculating
4412 min_char, max_char, and fastmap, copy the charset structure again.
4413 (encode_char): Fix the previous change.
4414
59bc82c0
SZ
44152008-11-28 Seiji Zenitani <zenitani@mac.com>
4416
4417 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4418
4419 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4420
4421 * nsterm.m (x_set_frame_alpha): New function.
4422
32247e3d
EZ
44232008-11-27 Eli Zaretskii <eliz@gnu.org>
4424
4425 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4426
b003e5ff
JB
44272008-11-27 Juanma Barranquero <lekktu@gmail.com>
4428
4429 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4430 pointer to check_face_name.
4431
708550f5
KH
44322008-11-27 Kenichi Handa <handa@m17n.org>
4433
4434 * category.h (SET_CATEGORY_SET): Call set_category_set.
4435 (set_category_set): Extern it.
4436
4437 * category.c (hash_get_category_set): New function.
4438 (Fmodify_category_entry): Adjusted for the change of
4439 char_table_ref_and_range. Call hash_get_category_set to get a
4440 category set to store in the table.
4441
4442 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4443 Funify_charset.
4444
2ae37cf0 4445 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4446 (DECODE_CHAR): Check if the decoder vector is ready.
4447 (ENCODE_CHAR): Check if the encoder char-table is ready.
4448 (maybe_unify_char): Extern it.
4449
4450 * charset.c (Vchar_unified_charset_table): Delete it.
4451 (inhibit_load_charset_map): New variable.
4452 (temp_charset_work): New variable.
4453 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4454 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4455 New macros.
4456 (load_charset_map): Meaning of control_flag changed. If
4457 inhibit_load_charset_map is nonzero, setup a table in
4458 temp_charset_work.
4459 (load_charset): New argument control_flag.
4460 (map_charset_for_dump): New function.
4461 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4462 map_charset_for_dump.
4463 (Fdefine_charset_internal): If the charset method is MAP, load
4464 mapping tables by calling load_charset.
4465 (Funify_charset): Don't load a mapping table but directly set
4466 Vchar_unify_table.
4467 (maybe_unify_char): New function.
4468 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4469 Handle the case of inhibit_load_charset_map being nonzero.
4470 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4471 Handle the case of inhibit_load_charset_map being nonzero.
4472 (Fclear_charset_maps): Just free temp_charset_work.
4473 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4474 variable.
4475
4476 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4477 change of char_table_ref_and_range.
4478 (char_table_ref_and_range): Change the meaning of argument FROM
4479 and TO. Now the caller must provide initial values for *FROM
4480 and *TO.
4481
4482 * fontset.c (fontset_add): Adjusted for the change of
4483 char_table_ref_and_range.
4484 (fontset_get_font_group): Likewise.
4485 (Ffontset_info): Likewise.
4486
4487 * keymap.c (describe_vector): Adjusted for the change of
4488 char_table_ref_and_range. For char-table, put boundary between
4489 non-ASCII and 8-bit characters.
4490
4491 * print.c (print_object): For bool-vector, delete unnecessary
4492 check of ASCII_BYTE_P.
4493
9196133b
JR
44942008-11-26 Jason Rumney <jasonr@gnu.org>
4495
4496 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4497 leading in font height. (Bug#879)
9196133b 4498
9f688acf
GM
44992008-11-26 Glenn Morris <rgm@gnu.org>
4500
4501 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4502 redefinition with ifdef. (Bug#1383)
4503
90d19aff
AR
45042008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4505
4506 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4507
4ccfa1c0 45082008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4509
4510 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4511 New EmacsView methods.
4512 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4513 Fixes bug #1048,1357,1414.
4514
45152008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4516
4517 Fix bug #1362.
4518 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4519 is not an indexed color.
4520 * nsterm.m (free_indexed_color): Add argument checking.
4521 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4522
e7d5ecb3
CY
45232008-11-24 Chong Yidong <cyd@stupidchicken.com>
4524
4525 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4526 Document confirm-after-completion value for
4527 minibuffer-completion-confirm.
4528
c285743c
JR
45292008-11-24 Jason Rumney <jasonr@gnu.org>
4530
4531 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4532 warning.
4533
b0857706
JR
45342008-11-23 Jason Rumney <jasonr@gnu.org>
4535
4536 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4537 restored before returning.
4538
4539 * w32font.c (check_face_name): New function.
4540 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4541 fonts. (Bug#642)
b0857706 4542
ee50ff07
MR
45432008-11-22 Martin Rudalics <rudalics@gmx.at>
4544
4545 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4546 confirm-nonexistent-file-or-buffer in doc-string.
4547
b8ff72fa
SM
45482008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4549
4550 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4551 Fix copy/paste typo. Add checks.
4552
cee53ed4
KH
45532008-11-21 Kenichi Handa <handa@m17n.org>
4554
4555 * coding.c (detect_coding_iso_2022): Reject invalid composition
4556 sequence.
4557 (DECODE_COMPOSITION_START): If the current source is the last
4558 block, and the current composition doesn't end, regard this
4559 sequence as invalid.
4560 (decode_coding_iso_2022): Handle invalid composition sequence.
4561
f6ef1e65
MR
45622008-11-20 Martin Rudalics <rudalics@gmx.at>
4563
4564 * window.c (coordinates_in_window): Don't return
4565 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4566 line when the window is not the rightmost one. (Bug#1372)
4567
e08b1705
MR
45682008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4569
4570 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4571
ad98e89f
EZ
45722008-11-15 Eli Zaretskii <eliz@gnu.org>
4573
4574 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4575 and bright_bg if noninteractive is non-zero.
4576
fb098a4b
CY
45772008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4578
4579 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4580 x_draw_glyph_string_background.
4581
4582 * w32term.c (x_draw_glyph_string): Likewise.
4583
ce952b6e
CY
45842008-11-15 Chong Yidong <cyd@stupidchicken.com>
4585
4586 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4587 the next glyph string once past the overhang width.
4588
4589 * nsterm.m (ns_draw_glyph_string): Likewise.
4590
4591 * w32term.c (x_draw_glyph_string): Likewise.
4592
26ea7079
CY
45932008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4594
4595 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4596 double file close.
4597
1c33c906
MR
45982008-11-14 Martin Rudalics <rudalics@gmx.at>
4599
4600 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4601 dedicated status of window before attempting to display another
4602 buffer in it.
4603
8fc29035
JB
46042008-11-14 Juanma Barranquero <lekktu@gmail.com>
4605
4606 * msdos.c (Fmsdos_long_file_names):
4607 (syms_of_msdos) <dos-unsupported-char-glyph>:
4608 * dosfns.c (Fint86): Fix typos in docstrings.
4609
55fb4286
EZ
46102008-11-14 Eli Zaretskii <eliz@gnu.org>
4611
4612 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4613
3fda0315
KY
46142008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4615
4616 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4617
7e849c17
CY
46182008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4619
4620 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4621
4622 * frame.h: Negative alpha means "don't touch".
4623
4624 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4625
4626 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4627
b9fd67bd
DN
46282008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4629
4630 * hftctl.c:
4631 * chpdef.h:
4632 * acldef.h: Remove files used only for systems no longer supported.
4633
4634 * Makefile.in: Fix .o alphabetical ordering.
4635 (hftctl.o): Remove dependency, file removed.
4636 (keymap.o, print.o): Depend on charset.h.
4637
d5998e03
KH
46382008-11-10 Kenichi Handa <handa@m17n.org>
4639
2ae37cf0 4640 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4641
be70e183
CY
46422008-11-08 Chong Yidong <cyd@stupidchicken.com>
4643
4644 * dired.c (file_name_completion): If completion_ignore_case is
4645 enabled, ignore case when checking completion-regexp-list.
4646
7cf94eac
EZ
46472008-11-08 Eli Zaretskii <eliz@gnu.org>
4648
4649 * vm-limit.c (get_lim_data): Fix last change.
4650
ee107a89
KH
46512008-11-08 Kenichi Handa <handa@m17n.org>
4652
4653 * character.c (Fget_byte): New function.
4654 (syms_of_character): Defsubr Fget_byte.
4655
5fd15622
CY
46562008-11-07 Chong Yidong <cyd@stupidchicken.com>
4657
4658 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4659 cursor position is valid after scrolling.
4660
13d62fad
JB
46612008-11-06 Juanma Barranquero <lekktu@gmail.com>
4662
4663 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4664
a1dd2936
GM
46652008-11-06 Glenn Morris <rgm@gnu.org>
4666
4667 * xterm.c (handle_one_xevent): Don't let popup menus cause
4668 mouse-autoselect-window related window switching. (Bug#1261)
4669
860cd236
CY
46702008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4671
4672 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4673
653a3150
AS
46742008-11-04 Andreas Schwab <schwab@suse.de>
4675
4676 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4677
870f5cac
CY
46782008-11-03 Chong Yidong <cyd@stupidchicken.com>
4679
4680 * xfns.c (Fx_wm_set_size_hint): New function.
4681
1e02f3cb
MR
46822008-11-03 Martin Rudalics <rudalics@gmx.at>
4683
4684 * textprop.c (Fprevious_single_char_property_change): Return 0
4685 when there's no change in a string. (Bug#1301)
4686
e630dfc6
MR
46872008-11-02 Martin Rudalics <rudalics@gmx.at>
4688
4689 * frame.c (do_switch_frame): New argument NORECORD passed to
4690 Fselect_window.
4691 (Fselect_frame): New argument NORECORD passed to
4692 do_switch_frame.
4693 (Fset_frame_selected_window): New argument NORECORD passed to
4694 Fselect_frame.
4695 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4696 in call of do_switch_frame.
4697 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4698 Handle NORECORD argument in call of Fselect_frame.
4699 * lisp.h (do_switch_frame, Fselect_frame)
4700 (Fset_frame_selected_window): Adjust declarations.
4701 * window.c (select_frame_norecord): New function.
4702 (run_window_configuration_change_hook): Use it and call
4703 Fselect_frame with NORECORD set.
4704 (Fselect_window): Pass NORECORD to Fselect_frame.
4705 (Fset_window_configuration): Handle NORECORD argument in call of
4706 do_switch_frame.
4707 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4708 Fset_frame_selected_window.
4709 * keyboard.c (command_loop_1): Handle NORECORD in call of
4710 Fselect_frame (currently ifdefd).
4711
9020b223
GM
47122008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4713
4714 * emacs.c (USAGE2): Untabify.
4715
793ffee8
SM
47162008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4717
4718 * composite.c (fill_gstring_header): Fix copy/paste typo.
4719
ab6d1131
MR
47202008-10-31 Martin Rudalics <rudalics@gmx.at>
4721
4722 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4723 (Fother_window): Rename argument and rewrite doc-string.
4724 (select_window_norecord): Fix return value. (Bug#1276)
4725
601a9cf1
JB
47262008-10-30 Juanma Barranquero <lekktu@gmail.com>
4727
4728 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4729 new frames overriding foreground for tooltips. Based on similar patch
4730 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4731
813b0652
CY
47322008-10-29 Chong Yidong <cyd@stupidchicken.com>
4733
4734 * emacs.c (Fdaemon_initialized): Initialize nfd.
4735
4414f58f
MR
47362008-10-29 Martin Rudalics <rudalics@gmx.at>
4737
4738 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4739 (Fwindow_text_height): Clarify doc-strings.
4740 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4741 doc-string of window-scroll-functions.
4742
ecdcaa09
RS
47432008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4744
4745 * category.c (syms_of_category): Fix typo in docstring.
4746
23fe745a
JB
47472008-10-28 Juanma Barranquero <lekktu@gmail.com>
4748
4749 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4750 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4751 Fix typos in docstrings.
4752
ff808935
DN
47532008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4754
4755 * emacs.c (daemon_pipe): Make non-static.
4756 (IS_DAEMON): Move definition ...
4757 * lisp.h (IS_DAEMON): ... here.
4758 (daemon_pipe): Declare.
4759 (is_daemon): Remove.
4760 * dispnew.c (init_display): Use IS_DAEMON.
4761
fc012771
SM
47622008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4763
4764 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4765 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4766
4767 * emacs.c (is_daemon): Remove.
4768 (main): Don't set is_daemon.
4769 (IS_DAEMON): New macro.
4770 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4771 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4772 parent exits.
4773 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4774
d8bdbe6f
CY
47752008-10-27 Chong Yidong <cyd@stupidchicken.com>
4776
d1a072bf
CY
4777 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4778 over-sized glyph, draw it with the default glyph width.
4779
e2e325aa
CY
4780 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4781 glyph, draw it with the default glyph width.
4782
4783 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4784 glyph, draw it with the default glyph width.
4785
d8bdbe6f
CY
4786 * xdisp.c (try_scrolling): When computing the distance from the
4787 scroll margin to PT, try moving some distance past the window
4788 bottom before giving up.
4789
7bfac547
MR
47902008-10-27 Martin Rudalics <rudalics@gmx.at>
4791
4792 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4793 (Fset_window_buffer): Explain in doc-string that a window can be
4794 "strongly" dedicated to its buffer.
4795
4ff029f6
DN
47962008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4797
4798 * emacs.c (daemon_name): New variable.
4799 (main): Deal with --daemon=SERVER_NAME.
4800 (Fdaemonp): Return a name if one was passed to --daemon.
4801
5790ef40
DN
48022008-10-26 Romain Francoise <romain@orebokech.com>
4803
f9bd0df9 4804 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4805 (main): Create a pipe before forking, make the parent exit only after
4806 the child has closed its end of the pipe. Move closing the
4807 descriptors ...
4808 (Fdaemon_initialized): ... here. New function.
4809
f5385255
SM
48102008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4811
4d632321
SM
4812 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4813 the previous unoptimized table.
4814
f5385255
SM
4815 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4816 the distinction between non-nil and non-t value of `dedicated'.
4817
6c56a0f3
CY
48182008-10-25 Chong Yidong <cyd@stupidchicken.com>
4819
4820 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4821 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4822
fec89261
MR
48232008-10-25 Martin Rudalics <rudalics@gmx.at>
4824
4825 * window.c (Fget_buffer_window, Fdelete_windows_on)
4826 (Freplace_buffer_in_windows): Make buffer argument optional and
4827 rename to buffer_or_name.
4828
34fcddd0
CY
48292008-10-24 Chong Yidong <cyd@stupidchicken.com>
4830
f5385255
SM
4831 * xdisp.c (handle_single_display_spec, handle_display_prop):
4832 Undo 2005-05-16 change.
34fcddd0
CY
4833 (handle_stop): Pop iterator if it's loaded with an empty string.
4834 (get_overlay_strings_1): Don't save iterator if it's loaded with
4835 an empty string (bug#1201).
4836
064766f2
KH
48372008-10-24 Kenichi Handa <handa@m17n.org>
4838
4839 * ftfont.c (ftfont_otf_features): Fix previous change.
4840 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4841 calling ftfont_otf_features.
4842
f9bd0df9 48432008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4844
4845 * font.c (font_match_p): Fix for the case that a vector of
4846 characters is in script-representative-chars.
4847
1dae9197
MA
48482008-10-24 Michael Albinus <michael.albinus@gmx.de>
4849
4850 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4851 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4852 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4853 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4854 macro. (Bug#1186).
4855
f9bd0df9 48562008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4857
4858 * s/sol2-10.h: New file.
4859
878a4584
JB
48602008-10-23 Juanma Barranquero <lekktu@gmail.com>
4861
4862 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4863 poor beast has survived 9+ years and the jump from xterm.c!).
4864
cd265ca6
MR
48652008-10-23 Martin Rudalics <rudalics@gmx.at>
4866
4867 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4868 Reword doc-string.
f5385255 4869 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4870
472a4dc9
JB
48712008-10-23 Juanma Barranquero <lekktu@gmail.com>
4872
4873 * character.c (syms_of_character) <script-representative-chars>:
4874 <unicode-category-table>: Doc fixes.
4875
159bd5a2
NF
48762008-10-23 Noah Friedman <friedman@splode.com>
4877
4878 * coding.c (make_conversion_work_buffer): Check that
4879 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4880 Fget_buffer_create.
4881
49f9c344
KH
48822008-10-23 Kenichi Handa <handa@m17n.org>
4883
4884 * font.c (font_add_log): Check the values of extra properties.
4885
12bb3111
MR
48862008-10-22 Martin Rudalics <rudalics@gmx.at>
4887
4888 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4889 Reword doc-string.
4890 (Fset_window_parameter): Use NILP.
4891 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 4892 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 4893
bbeb4e99
JB
48942008-10-22 Juanma Barranquero <lekktu@gmail.com>
4895
4896 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4897
48982008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
4899
4900 * nsfns.m (ns_appkit_version): New function.
4901 (x-server-version): Use it.
4902 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4903 (x-server-vendor): Don't check_ns().
4904
4905 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4906
a9b555d3
JB
49072008-10-22 Juanma Barranquero <lekktu@gmail.com>
4908
4909 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4910 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4911
4626499f
KH
49122008-10-22 Kenichi Handa <handa@m17n.org>
4913
e3681952
KH
4914 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4915 scripts.
4916
4626499f
KH
4917 * category.c (word_boundary_p): Check scripts instead of charset.
4918 Handle nil value in word-separating-categories and
4919 word-combining-categories.
4920 (syms_of_category): Fix docstrings of word-separating-categories
4921 and word-combining-categories.
4922
1560f91a
EZ
49232008-10-21 Eli Zaretskii <eliz@gnu.org>
4924
4925 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4926 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4927
f4668441
MR
49282008-10-21 Martin Rudalics <rudalics@gmx.at>
4929
4930 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4931 Rename arg "buffer" to "buffer_or_name".
4932 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4933 it optional.
4934 (no_switch_window): Remove since the return value is not used.
a9b555d3 4935 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4936 Consider window as dedicated when Fwindow_dedicated_p returns a
4937 non-nil value.
4938 * lisp.h: Remove prototype for no_switch_window.
4939
fd75ddb2
JD
49402008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4941
4942 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4943 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4944
07295713
KH
49452008-10-21 Kenichi Handa <handa@m17n.org>
4946
4947 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4948 check Vlatin_extra_code_table.
4949
712adc82
EZ
49502008-10-20 Eli Zaretskii <eliz@gnu.org>
4951
4952 * fileio.c (Fset_file_modes): Doc fix.
4953
f549eb0b
MA
49542008-10-19 Michael Albinus <michael.albinus@gmx.de>
4955
4956 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4957 in arrays.
4958
aac0c6e3
MR
49592008-10-19 Martin Rudalics <rudalics@gmx.at>
4960
4961 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4962 Mention kill-buffer in doc-string.
4963 (Fset_window_buffer): Reinsert tem check removed in last commit.
4964 (Fenlarge_window, Fshrink_window): Have argument names and
4965 doc-string follow Elisp manual more closely.
4966
49672008-10-18 Eli Zaretskii <eliz@gnu.org>
4968
4969 * fileio.c (Fset_file_modes): Doc fix.
4970
49712008-10-18 Martin Rudalics <rudalics@gmx.at>
4972
4973 * window.c (Fwindow_width, Fset_window_start)
4974 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
4975 (Fdelete_windows_on, Freplace_buffer_in_windows):
4976 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
4977 (Fwindow_dedicated_p): Make window argument optional.
4978 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4979 (Fset_window_buffer): Respect any non-nil dedicated value for
4980 window. Rename "buffer" argument to "buffer_or_name".
4981
49822008-10-18 Ulrich Mueller <ulm@gentoo.org>
4983
4984 * m/sh3.h: New file, machine description for SuperH.
4985
49862008-10-17 Martin Rudalics <rudalics@gmx.at>
4987
4988 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4989
49902008-10-17 Kenichi Handa <handa@m17n.org>
4991
4992 * ftfont.c (ftfont_otf_features): Fix indexing
4993 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4994
49952008-10-16 Magnus Henoch <mange@freemail.hu>
4996
4997 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4998 (Fdbus_call_method_asynchronously): Ditto.
4999 This change makes C-h f display the argument list.
5000
50012008-10-16 Chong Yidong <cyd@stupidchicken.com>
5002
5003 * fileio.c (Fexpand_file_name): Doc fix.
5004
5005 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5006 of :foreground and :background equivalent to unspecified (20.x
5007 compatibility).
5008
50092008-10-15 Eli Zaretskii <eliz@gnu.org>
5010
5011 * buffer.c (syms_of_buffer): Doc fix.
5012
50132008-10-14 Kenichi Handa <handa@m17n.org>
5014
5015 * font.c (font_clear_prop): When clearing font width, clear the
5016 average width field too.
5017
50182008-10-12 Andreas Schwab <schwab@suse.de>
5019
5020 * ftfont.c (ftfont_shape_by_flt): Make static.
5021 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5022
5023 * font.c: Don't include <m17n-flt.h>.
5024
50252008-10-10 Eli Zaretskii <eliz@gnu.org>
5026
5027 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5028
50292008-10-09 Eli Zaretskii <eliz@gnu.org>
5030
5031 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5032 away code.
5033
50342008-10-09 Chong Yidong <cyd@stupidchicken.com>
5035
5036 * dispnew.c (update_text_area): Avoid looping due to large glyph
5037 overhangs (bug#1070).
5038
50392008-10-09 Kenichi Handa <handa@m17n.org>
5040
5041 * fontset.c (face_for_char): If face->fontset is negative, just
5042 return ascii_face.
5043
f5385255
SM
5044 * font.c (font_delete_unmatched): Fix previous change.
5045 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5046
50472008-10-09 Martin Rudalics <rudalics@gmx.at>
5048
5049 * frame.c (Fraise_frame): On text-only terminals select frame in
5050 order to make it visible. (Bug#1061)
5051
50522008-10-08 Chong Yidong <cyd@stupidchicken.com>
5053
5054 * fontset.c (fontset_find_font): Check frame validity.
5055
50562008-10-07 Chong Yidong <cyd@stupidchicken.com>
5057
a9b555d3 5058 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5059 (xg_display_close): Allow Emacs to close all displays (bug#985).
5060
50612008-10-06 Andreas Schwab <schwab@suse.de>
5062
f5385255 5063 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5064
50652008-10-06 Chong Yidong <cyd@stupidchicken.com>
5066
f5385255 5067 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5068
a9b555d3 5069 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5070
5071 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5072 during initialization.
5073
50742008-10-04 Eli Zaretskii <eliz@gnu.org>
5075
5076 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5077 whole thing on MSDOS frames as well as on a TTY.
5078
5079 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5080 well as for TTY.
5081 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5082 well as on a TTY.
5083
5084 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5085 as well as for TTY.
5086
5087 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5088
5089 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5090 MSDOS frames as well.
5091
50922008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5093
5094 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5095 correct arguments.
b71ac3dd 5096 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5097
50982008-10-03 Glenn Morris <rgm@gnu.org>
5099
5100 * emacs.c (USAGE1): Add --daemon.
5101
51022008-10-02 Eli Zaretskii <eliz@gnu.org>
5103
5104 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5105 100, so it's in percents as advertised.
5106
51072008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5108
5109 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5110 (ns_output.current_cursor, ns_output.desired_cursor)
5111 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5112 (FRAME_NEW_CURSOR_COLOR): Remove.
5113
5114 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5115 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5116 enumeration (HOLLOW_BOX_CURSOR, etc.).
5117
5118 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5119 (draw_window_cursor): Simplify code.
f5385255
SM
5120 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5121 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5122 updates manually.
a9b555d3
JB
5123 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5124 Use core Emacs cursor types.
aac0c6e3 5125
b8ff72fa 5126 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5127
51282008-10-02 Martin Rudalics <rudalics@gmx.at>
5129
5130 * process.c (Faccept_process_output): Fix doc-string.
5131
51322008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5133
5134 * gmalloc.c (__sbrk): Also define for uClibc.
5135
5136 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5137 for uClibc.
5138
51392008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5140
5141 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5142 styles.
5143 (nsfont_open): Reenable the cache.
5144
51452008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5146
5147 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5148 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5149
51502008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5151
5152 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5153 a suspended terminal.
5154
51552008-09-30 Michael Albinus <michael.albinus@gmx.de>
5156
5157 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5158
51592008-09-30 Eli Zaretskii <eliz@gnu.org>
5160
5161 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5162
51632008-09-30 Chong Yidong <cyd@stupidchicken.com>
5164
5165 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5166 in a continued line coincides with a line beginning.
5167
51682008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5169
5170 * nsfont.m (nsfont_trait_distance): Fix bug.
5171 (nsfont_list): Return a list rather than a vector (syncs with Handa
5172 changes of 2008-05-14).
5173 (nsfont_open): Improve logging.
5174
51752008-09-29 Andreas Schwab <schwab@suse.de>
5176
5177 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5178
51792008-09-28 Martin Rudalics <rudalics@gmx.at>
5180
5181 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5182 name as char-resolve-modifiers.
5183 Reported by: Markus Triska <markus.triska@gmx.at>
5184
51852008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5186
5187 * dispnew.c (init_display): Return earlier when running as a daemon.
5188
51892008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5190
5191 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5192
51932008-09-27 Eli Zaretskii <eliz@gnu.org>
5194
5195 * composite.c (Fcomposition_get_gstring)
5196 (Fcompose_region_internal, Fcompose_string_internal)
5197 (Ffind_composition_internal): Doc fix.
5198 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5199 (syms_of_composite) <auto-composition-function>: Doc fix.
5200 (syms_of_composite) <composition-function-table>: Doc fix.
5201
52022008-09-25 Chong Yidong <cyd@stupidchicken.com>
5203
5204 * search.c (wordify): New argument for lax word-ends.
5205 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5206
52072008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5208
5209 * lisp.h (is_daemon): Declare.
5210 * dispnew.c (init_display): Do not try to initialize the terminal
5211 when running as a daemon.
5212
52132008-09-22 Chong Yidong <cyd@stupidchicken.com>
5214
5215 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5216 x_display_pixel_height.
5217
52182008-09-22 Martin Rudalics <rudalics@gmx.at>
5219
5220 * undo.c (record_point): Don't call Fundo_boundary for first
5221 change. (Bug#731)
5222
52232008-09-22 Juanma Barranquero <lekktu@gmail.com>
5224
5225 * emacs.c (Fdaemonp): Doc fix.
5226
52272008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5228
5229 * emacs.c (main): Place #ifdef in the proper place.
5230
52312008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5232
5233 * emacs.c (standard_args): Add --daemon.
5234 (main): Disconnect from the terminal when --daemon is passed.
5235 (is_daemon): New variable.
5236 (Fdaemonp): New function.
5237 (syms_of_emacs): Defsubr it.
5238
52392008-09-20 Chong Yidong <cyd@stupidchicken.com>
5240
5241 * xdisp.c (get_next_display_element): Handle string display
5242 correctly when checking for the end of a box run.
5243
52442008-09-20 Glenn Morris <rgm@gnu.org>
5245
5246 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5247 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5248 (Frename_file): Avoid copying to trash if a rename involves
5249 a delete. (Bug#964).
5250
52512008-09-20 Eli Zaretskii <eliz@gnu.org>
5252
5253 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5254 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5255 frames as well as termcap frames.
5256 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5257 get_named_tty.
5258
52592008-09-19 Eli Zaretskii <eliz@gnu.org>
5260
5261 * process.c (procfs_system_process_attributes): Fix cmdline in
5262 case /proc/PID/cmdline is empty.
5263
5264 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5265 x_display_pixel_height.
5266
52672008-09-19 Juanma Barranquero <lekktu@gmail.com>
5268
5269 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5270
5271 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5272 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5273
52742008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5275
5276 * dispextern.h (struct it): Move line_wrap away from the middle of
5277 bitfields. Move voffset in struct iterator_stack_entry after the
5278 bitfields. Move tab_width near after another short.
5279
52802008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5281
5282 * frame.h (struct frame): Move alpha from the middle of bitfields.
5283
5284 * window.h (struct window): Move frozen_window_start_p after the
5285 rest of the bitfields to reduce padding.
5286
52872008-09-18 Chong Yidong <cyd@stupidchicken.com>
5288
5289 * xterm.h (x_display_info): Remove `height' and `width' members.
5290
5291 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5292
5293 * w32term.h (w32_display_info): Remove `height', `width',
5294 `height_in', and `width_in' members.
5295
b8ff72fa
SM
5296 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5297 New functions.
aac0c6e3
MR
5298 (x_calc_absolute_position): Use them.
5299 (x_term_init): Omit removed `height' and `width' members.
5300
b8ff72fa
SM
5301 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5302 New functions.
aac0c6e3
MR
5303 (w32_read_socket, x_calc_absolute_position): Use them.
5304 (w32_initialize_display_info, w32_term_init): Omit removed members
5305 of w32_display_info.
5306
b8ff72fa
SM
5307 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5308 New functions.
5309 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5310
b8ff72fa
SM
5311 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5312 New functions.
aac0c6e3
MR
5313 (x_calc_absolute_position): Use them.
5314 (x_term_init): Omit removed `height' and `width' members.
5315
5316 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5317 (compute_tip_xy):
5318 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5319 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5320 x_display_pixel_width.
5321
53222008-09-18 Kenichi Handa <handa@m17n.org>
5323
5324 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5325 (composition_compute_stop_pos): Fix handling of static composition.
5326 (Fcomposition_get_gstring): Check FROM and TO at first.
5327
53282008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5329
46e722a9 5330 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5331 mixup (YAILOM).
5332
53332008-09-17 Chong Yidong <cyd@stupidchicken.com>
5334
5335 * indent.c (Fvertical_motion): Use position reported by iterator
5336 instead of PT for determining screen motion (bug#943).
5337
53382008-09-17 Romain Francoise <romain@orebokech.com>
5339
5340 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5341
53422008-09-17 Kenichi Handa <handa@m17n.org>
5343
5344 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5345
5346 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5347 if necessary.
5348
53492008-09-16 Kenichi Handa <handa@m17n.org>
5350
5351 * coding.c (make_conversion_work_buffer): Avoid calling
5352 Fget_buffer_create if it is not necessary.
5353
53542008-09-15 Martin Rudalics <rudalics@gmx.at>
5355
5356 * window.c (Fselect_window): Don't update window_select_count and
5357 use_time when norecord is not nil.
5358
53592008-09-14 Kenichi Handa <handa@m17n.org>
5360
5361 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5362 specpdl_ptr.
5363
53642008-09-12 Kenichi Handa <handa@m17n.org>
5365
5366 * indent.c (scan_for_column): Don't handle automatic composition
5367 if the current buffer is not associated with a window.
5368
5369 * composite.c (composition_reseat_it): If the current buffer is
5370 not associated with a window, ignore the automatic composition.
5371 (find_automatic_composition): Likewise.
5372
53732008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5374
5375 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5376 (Fgpm_mouse_stop): Use it.
5377 * termhooks.h (close_gpm): Declare.
5378 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5379 connection if Gpm_GetEvent fails.
5380
5381 * window.c (set_window_buffer): Always preserve current-buffer.
5382
53832008-09-12 Glenn Morris <rgm@gnu.org>
5384
5385 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5386
53872008-09-11 Glenn Morris <rgm@gnu.org>
5388
5389 * charset.c (charset-map-path): Doc fix.
5390
53912008-09-10 Kenichi Handa <handa@m17n.org>
5392
5393 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5394
5395 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5396 compose a grapheme cluster with the preceding base glyph.
5397
5398 * composite.c (composition_compute_stop_pos): Fix previous change.
5399 Reset cmp_it->id to -1 at first.
5400
54012008-09-10 Glenn Morris <rgm@gnu.org>
5402
5403 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5404
54052008-09-09 Chong Yidong <cyd@stupidchicken.com>
5406
5407 * keyboard.c (read_key_sequence): Reapply translation maps when
5408 switching keyboards.
5409
54102008-09-09 Kenichi Handa <handa@m17n.org>
5411
5412 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5413 characters.
5414
5415 * composite.c (FORWARD_CHAR): Fix calculation
5416 of (POSITION).pos_byte.
5417 (composition_compute_stop_pos): Limit the search of composition to
5418 at most 500 characters ahead. If we reach the limit or find a
5419 newline, set cmp_it->ch to -2 and return 0.
5420 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5421
54222008-09-08 Kenichi Handa <handa@m17n.org>
5423
5424 * indent.c (Fvertical_motion): Be sure to set
5425 it_overshoot_expected if it.cmp_it.id is non-negative.
5426
54272008-09-07 Andreas Schwab <schwab@suse.de>
5428
5429 * callproc.c (Fcall_process): Don't hold references to string data
5430 across garbage collection. Move initialisation of new_argv down
5431 to avoid compiler bug.
5432
54332008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5434
5435 * process.c (Fsystem_process_attributes): Doc fix.
5436
54372008-09-07 Chong Yidong <cyd@stupidchicken.com>
5438
5439 * callproc.c (Fcall_process): Canonicalize current directory name.
5440
5441 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5442 iterator advances to the next line if the current line ends in a
5443 continued tab.
5444
54452008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5446
5447 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5448 member to point to cmp_from.
5449
5450 * xdisp.c: Doc fix for references to gidx data member.
5451
54522008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5453
5454 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5455
54562008-09-07 Kenichi Handa <handa@m17n.org>
5457
5458 * composite.c (FORWARD_CHAR): Check STOP after
5459 incrementing (POSITION).pos.
5460
54612008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5462
5463 * process.c (Fsystem_process_attributes): Doc fix.
5464
54652008-09-06 Chong Yidong <cyd@stupidchicken.com>
5466
5467 * keyboard.c (Ftop_level): Doc fix.
5468
54692008-09-06 Eli Zaretskii <eliz@gnu.org>
5470
5471 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5472 minibuffer, don't let lower part of menu invade the echo area.
5473
5474 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5475 "char *q" to access menu text and advance through it. Revert the
5476 change that displayed ">" instead of ASCII character 0x10.
5477
54782008-09-05 Eli Zaretskii <eliz@gnu.org>
5479
5480 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5481 toggle boxes and radio buttons on MS-DOS as well.
5482
54832008-09-05 Kenichi Handa <handa@m17n.org>
5484
5485 * composite.c (autocmp_chars): Check lookback count.
5486 (composition_compute_stop_pos): Set cmp_it->lookback.
5487 (composition_reseat_it): Check lookback count.
5488 (struct position_record): New struct.
5489 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5490 (find_automatic_composition): New function.
5491 (composition_adjust_point): Use find_automatic_composition.
5492
5493 * dispextern.h (struct composition_it): New member lookback.
5494
54952008-09-02 Chong Yidong <cyd@stupidchicken.com>
5496
5497 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5498 if moving by a single line.
5499
55002008-09-02 Andreas Schwab <schwab@suse.de>
5501
5502 * xterm.c (x_delete_display): Fix merge error.
5503
5504 * fileio.c (Fexpand_file_name): Remove unused variables.
5505
55062008-09-02 Eli Zaretskii <eliz@gnu.org>
5507
5508 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5509 storage on all platforms, not just on DOS_NT.
5510
55112008-09-02 Jason Rumney <jasonr@gnu.org>
5512
b8ff72fa
SM
5513 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5514 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5515
55162008-09-01 Chong Yidong <cyd@stupidchicken.com>
5517
5518 * xfaces.c (Finternal_set_alternative_font_family_alist)
5519 (Finternal_set_alternative_font_registry_alist): Properly copy
5520 entire alist structure.
5521
55222008-09-01 Kenichi Handa <handa@m17n.org>
5523
d66c0241 5524 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5525 representative chars of the script is a vector.
d66c0241
JB
5526 (ftfont_list): Handle the case where the representative chars of
5527 the script is a vector.
aac0c6e3
MR
5528
5529 * character.c (syms_of_character): Docstring of
5530 script-representative-chars fixed.
5531
55322008-08-31 Eli Zaretskii <eliz@gnu.org>
5533
5534 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5535 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5536 the menu. Allocate larger buffer for `text', to account for
5537 possible ^C characters.
5538
55392008-08-31 Martin Rudalics <rudalics@gmx.at>
5540
5541 * xdisp.c (prepare_menu_bars): Don't call
5542 Vwindow_size_change_functions with arg Qt.
5543
55442008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5545
5546 * font.h (font_range):
5547 * fileio.c (report_file_error):
46e722a9
SM
5548 * composite.c (composition_update_it): Yet another int/Lisp_Object
5549 mixup (YAILOM).
aac0c6e3
MR
5550
55512008-08-30 Glenn Morris <rgm@gnu.org>
5552
5553 * data.c (Fmake_variable_frame_local): Doc fix.
5554
5555 * frame.c (Fmodify_frame_parameters): Doc fix.
5556
55572008-08-30 Eli Zaretskii <eliz@gnu.org>
5558
5559 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5560 needed by GetTokenInformation.
5561 (w32_system_process_attributes): Check return values of all system
5562 APIs.
5563
5564 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5565 only when the state changes.
5566 (IT_update_begin, IT_update_end): Add termscript trace.
5567
5568 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5569 clipboard is unavailable. Set dst to NULL if it doesn't point to
5570 malloc'ed data.
5571 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5572 passing random values to xfree.
5573
5574 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5575 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5576
55772008-08-29 Jason Rumney <jasonr@gnu.org>
5578
5579 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5580
55812008-08-29 Eli Zaretskii <eliz@gnu.org>
5582
5583 * composite.c (fill_gstring_body): Avoid compiler warnings.
5584
5585 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5586 LGLYPH_SET_CODE to avoid compiler warnings.
5587
2ae37cf0 5588 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5589
5590 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5591
5592 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5593 LGLYPH_SET_CODE.
5594
55952008-08-29 Kenichi Handa <handa@m17n.org>
5596
5597 * fileio.c (report_file_error): Don't downcase the first character
5598 of errstring if it is still unibyte.
5599
56002008-08-29 Kenichi Handa <handa@m17n.org>
5601
5602 These changes are to re-implement the automatic composition so
5603 that it doesn't use text properties.
5604
5605 * Makefile.in (ftfont.o): Depend on composite.h.
5606 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5607
5608 * character.h (Vunicode_category_table): Extern it.
5609
5610 * character.c (Vunicode_category_table): New variable.
5611 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5612
5613 * chartab.c (optimize_sub_char_table): Perform more greedy
5614 optimization.
5615
b8ff72fa
SM
5616 * composite.h (enum composition_method):
5617 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5618 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5619 (Vcomposition_function_table): Extern it.
5620 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5621 (composition_gstring_put_cache, composition_gstring_from_id)
5622 (composition_gstring_p, composition_gstring_width)
5623 (composition_compute_stop_pos, composition_reseat_it)
5624 (composition_update_it, composition_adjust_point): Extern them.
5625 (Fcomposition_get_gstring): EXFUN it.
5626
d66c0241 5627 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5628 (Vcomposition_function_table)
5629 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5630 (gstring_hash_table, gstring_work, gstring_work_headers):
5631 New variables.
aac0c6e3
MR
5632 (gstring_lookup_cache, composition_gstring_put_cache)
5633 (composition_gstring_from_id, composition_gstring_p)
5634 (composition_gstring_width, fill_gstring_header)
5635 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5636 (composition_reseat_it, composition_update_it)
b8ff72fa 5637 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5638 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5639 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5640 Defsubr compostion_get_gstring.
5641
5642 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5643 cmp_id.
5644 (struct glyph_string): Delete the member gidx. New members
5645 cmp_id, cmp_from, and cmp_to.
5646 (enum it_method): Delete GET_FROM_COMPOSITION.
5647 (struct composition_it): New struct.
5648 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5649 Delete c, len, cmp_id, cmp_len in u.comp.
5650
5651 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5652 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5653 (enum lglyph_indices): Likewise.
b8ff72fa 5654 (font_range): Adjust extern.
aac0c6e3
MR
5655 (font_fill_lglyph_metrics): Extern it.
5656
5657 * font.c (QCf): New variable.
5658 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5659 (font_prepare_composition): Delete this function.
5660 (font_range): Type and arguments changed.
5661 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5662 (font_fill_lglyph_metrics): New function.
b8ff72fa 5663 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5664 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5665 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5666 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5667
5668 * fontset.h (font_for_char): Extern it.
5669
5670 * fontset.c (font_for_char): New function.
5671
5672 * ftfont.c: Include composite.h.
5673 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5674 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5675
5676 * indent.c: Include composite.h and dispextern.h.
5677 (check_composition): Delete this function.
5678 (scan_for_column): Handle composition by
5679 composition_compute_stop_pos, composition_reseat_it, and
5680 composition_update_it.
5681 (compute_motion): Likewise.
5682 (Fvertical_motion): Fix checking of composition.
5683
5684 * keyboard.c (adjust_point_for_property): Check composition by
5685 composition_adjust_point.
5686
b8ff72fa 5687 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5688 struct glyph_string.
5689
b8ff72fa
SM
5690 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5691 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5692 struct glyph.
5693 (produce_composite_glyph): Likewise.
5694
b8ff72fa
SM
5695 * w32term.c (x_draw_composite_glyph_string_foreground):
5696 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5697 (x_draw_glyph_string): Likewise.
5698
5699 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5700 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5701
5702 * xdisp.c: Include font.h.
5703 (it_props): Delete the entry for Qauto_composed.
5704 (init_iterator): Initialize it->cmp_it.id to -1.
5705 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5706 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5707 (handle_auto_composed_prop): Delete it.
5708 (handle_composition_prop): Handle only static composition.
5709 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5710 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5711 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5712 (pop_it): Likewise.
5713 (get_next_element): Delete next_element_from_composition.
5714 (CHAR_COMPOSED_P): New macro.
5715 (get_next_display_element): For automatic composition, get a face
5716 from the font in the glyph-string.
5717 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5718 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5719 (next_element_from_string): Check if the character at the current
5720 position is composed by CHAR_COMPOSED_P.
5721 (next_element_from_buffer): Likewise.
d66c0241
JB
5722 (next_element_from_composition): Adjust for the change of struct it.
5723 Update it->cmp_it.
b8ff72fa
SM
5724 (dump_glyph): Adjust for the change of struct glyph.
5725 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5726 it and struct glyph. Don't handle automatic composition here.
5727 (fill_gstring_glyph_string): New function.
5728 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5729 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5730 (BUILD_GSTRING_GLYPH_STRING): New macro.
5731 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5732 automatic composition.
b8ff72fa 5733 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5734 struct glyph.
b8ff72fa 5735 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5736
b8ff72fa 5737 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5738 the change of struct glyph_string.
5739 (x_draw_glyph_string): Likewise.
5740
57412008-08-29 Glenn Morris <rgm@gnu.org>
5742
5743 * buffer.c (word-wrap): Doc fix.
5744 * xdisp.c (truncate-partial-width-windows): Doc fix.
5745 Increase default to 50.
5746
57472008-08-29 Chong Yidong <cyd@stupidchicken.com>
5748
5749 * xdisp.c (update_tool_bar_unwind): New function.
5750 (update_tool_bar): Temporarily set selected frame before building
5751 tool-bar items.
5752
57532008-08-28 Michael Albinus <michael.albinus@gmx.de>
5754
5755 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5756 snprintf, respectively.
5757 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5758
57592008-08-28 Chong Yidong <cyd@stupidchicken.com>
5760
5761 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5762 LDFLAGS to GNUstep CC invocation.
5763
57642008-08-27 Chong Yidong <cyd@stupidchicken.com>
5765
5766 * indent.c (Fvertical_motion): Revert last change. Handle the
5767 general case where we are moving forward, and PT spans multiple
5768 screen lines.
5769
5770 * eval.c (find_handler_clause): Temporarily increase
5771 max-lisp-eval-depth while printing the backtrace buffer, to
5772 guarantee that help-mode code can run.
5773
57742008-08-27 Eli Zaretskii <eliz@gnu.org>
5775
5776 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5777 colors under -rv.
5778 (IT_set_frame_parameters): Don't swap foreground and background
5779 colors if `(reverse . t)' is present in the frame properties.
5780 (internal_terminal_init): Call init_frame_faces only for the
5781 initial frame.
5782
57832008-08-27 Andreas Schwab <schwab@suse.de>
5784
5785 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5786
57872008-08-27 Andreas Schwab <schwab@suse.de>
5788
5789 * search.c (search_buffer): Set char_base to zero only at the end.
5790
57912008-08-27 Kenichi Handa <handa@m17n.org>
5792
b8ff72fa 5793 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5794
57952008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5796
5797 * xterm.c (x_term_init): Temporarily hide the partially
5798 initialized terminal while calling vendor-specific-keysyms.
5799
58002008-08-26 Eli Zaretskii <eliz@gnu.org>
5801
5802 * msdos.c (internal_terminal_init): Most initializations done only
5803 once, especially initial_screen_colors[] and termscript open.
5804
58052008-08-26 Chong Yidong <cyd@stupidchicken.com>
5806
5807 * eval.c (Fcondition_case): Doc fix.
5808
5809 * widgetprv.h (EmacsFramePart): Change font member to the new font
5810 struct.
5811
5812 * widget.c: Include character.h and font.h for XSETFONT.
5813 (setup_frame_gcs): Compute X font id from font struct, just once.
5814
58152008-08-26 Eli Zaretskii <eliz@gnu.org>
5816
5817 * term.c (get_named_tty): Fix last change.
5818
58192008-08-26 Chong Yidong <cyd@stupidchicken.com>
5820
5821 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5822 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5823
58242008-08-25 Eli Zaretskii <eliz@gnu.org>
5825
5826 * frame.c (do_switch_frame): Mark previously displayed frame as
5827 obscured for FRAME_MSDOS_P frames as well.
5828
58292008-08-24 Eli Zaretskii <eliz@gnu.org>
5830
5831 * frame.c (make_terminal_frame): Initialize f->terminal,
5832 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5833 Set the top frame to newly created frame.
5834 (Fmake_terminal_frame): Reuse the_only_display_info.
5835
5836 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5837 estimating available memory.
5838
b97439ce 58392008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5840
5841 * nsterm.m (ns_draw_window_cursor): Don't call
5842 NSDisableScreenUpdates and NSEnableScreenUpdates on
5843 non-NS_IMPL_COCOA systems.
5844
58452008-08-23 Andreas Schwab <schwab@suse.de>
5846
5847 * process.c (procfs_system_process_attributes): Fix use of
5848 uninitialized variables.
5849
58502008-08-23 Eli Zaretskii <eliz@gnu.org>
5851
5852 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5853
5854 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5855 calling tty-set-up-initial-frame-faces.
5856
b8ff72fa
SM
5857 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5858 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5859
5860 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5861 addition to output_termcap.
5862
5863 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5864
5865 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5866 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5867 highlight.
5868
5869 * process.c [!subprocesses]: Define QCname.
5870 (syms_of_process): Intern and staticpro it.
5871
5872 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5873 Adjust for changes in encoding/decoding routines.
5874 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5875 encode_coding and decode_coding.
5876
b8ff72fa 5877 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5878
5879 * dosfns.c: Include frame.h before termhooks.h.
5880 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5881 variable termscript.
5882
5883 * s/msdos.h (USER_FULL_NAME): Define.
5884 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5885
5886 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5887 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5888 pw->pw_gecos.
5889
5890 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5891 SELECTED_FRAME as additional (1st) argument.
5892 (tty_read_avail_input): Handle output_msdos_raw in
5893 addition to output_termcap.
5894
5895 * msdos.c: Include frame.h before termhooks.h.
5896 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5897 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5898 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5899 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5900 (IT_set_terminal_modes, IT_reset_terminal_modes)
5901 (IT_set_frame_parameters): Use tty->termscript instead of a global
5902 variable termscript.
5903 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5904 global variable terminal_coding. Don't refer to
5905 Vnonascii_translation_table.
5906 (internal_terminal_init): Set Vwindow_system in current_kboard.
5907 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5908 Announce date and time of session start, if termscript is open.
5909 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5910 term.c:init_tty). Open termscript only of not already open.
5911 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5912 here instead of dos_ttraw. Don't initialize display if this is an
5913 initial tty. Don't set FRAME_FONT.
5914 (Vwindow_system_version): Bump to 23.
5915 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5916 is available, set up mouse_position_hook.
5917 (dos_ttraw, IT_set_terminal_modes): If called with initial
5918 terminal, do nothing.
5919 (IT_set_frame_parameters): Handle the Qtty_type frame
5920 parameter by calling internal_terminal_init.
5921 (dos_set_window_size, show_mouse_face)
5922 (clear_mouse_face, IT_note_mode_line_highlight)
5923 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5924 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5925 (initialize_msdos_display): New function.
5926 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5927 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5928 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5929 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5930 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5931 (request_sigio, unrequest_sigio): Don't define, now defined on
5932 sysdep.c.
5933 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5934
5935 * term.c [MSDOS]: Include msdos.h.
5936 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5937 conditional to DOS_NT. Allow only one call to this function in a
5938 session. Don't allocate a new struct tty_display_info; instead,
5939 reuse the_only_display_info. Call get_tty_size to get screen
5940 dimensions. Call init_baud_rate to set bad_rate.
5941 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5942 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5943 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5944 (get_tty_terminal, get_named_tty, Ftty_type)
5945 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5946 output_termcap.
b8ff72fa
SM
5947 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5948 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5949 only when subprocesses are supported.
aac0c6e3
MR
5950
5951 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5952 f->output_data.x.
5953 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5954 terminal devices.
5955
5582fbc7 5956 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
5957 x_output.
5958 (FRAME_FONT): Use output_data.tty.
5959 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
5960 (struct x_display_info): Rename from display_info. Update all users in
5961 msdos.c.
aac0c6e3 5962 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 5963 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
5964 (dos_ttraw): Update prototype.
5965
5966 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5967 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5968
59692008-08-23 Jason Rumney <jasonr@gnu.org>
5970
5971 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5972 (fn_TIFFSetDirectory): New library function used.
5973 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5974 (tiff_load): Use :index to select among multiple images. Set count
5975 property when multiple images exist.
5976 (gif_format): Use :index, not :image.
5977
59782008-08-23 Chong Yidong <cyd@stupidchicken.com>
5979
5980 * xdisp.c (try_scrolling): Check INT_MAX instead of
5981 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5982 to obtain INT_MAX.
5983
59842008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5985
5986 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5987
59882008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5989
5990 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5991 GNUstep library location.
5992
59932008-08-21 Chong Yidong <cyd@stupidchicken.com>
5994
5995 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5996 before using it.
5997
5998 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5999
60002008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6001
6002 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6003 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6004 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6005 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6006 (EmacsApp-cursor_blink_handler): Remove declaration.
6007 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6008 match 01 Feb 2008 changes in xterm.c.
6009 (ns_read_socket): Add cast to avoid warning.
6010 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6011 GNUstep.
6012
60132008-08-20 Chong Yidong <cyd@stupidchicken.com>
6014
6015 * xselect.c (x_get_foreign_selection): Return nil if desired
6016 selection could not be obtained, instead of signalling an error.
6017
60182008-08-20 David Reitter <david.reitter@gmail.com>
6019
6020 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6021 * nsterm.m: Remove ns-specific code for cursor blinking.
6022 (ns_draw_window_cursor): Clear cursor properly rather than
6023 redrawing the area. Respect width of bar cursors.
6024 These changes enable the use of generic blink-cursor-mode and
6025 generic cursor types in NS and support smooth cursor movements (do
6026 not blink off after command).
6027 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6028 Nextstep, too.
6029
60302008-08-19 Kenichi Handa <handa@m17n.org>
6031
6032 * font.c (Vfont_log_deferred): New variable.
6033 (font_add_log): Check Vfont_log_deferred.
6034 (font_deferred_log): New function.
6035
6036 * font.h (font_deferred_log): Extern it.
6037
6038 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6039 for sorting.
6040 (face_for_char): Use deferred log.
6041
60422008-08-18 Kenichi Handa <handa@m17n.org>
6043
6044 * fontset.c (face_for_char): Add font log.
6045
6046 * font.c (font_add_log): Add the font properties :script, :lang,
6047 and :otf in the log.
6048
60492008-08-17 Chong Yidong <cyd@stupidchicken.com>
6050
6051 * xdisp.c: Remove dead code.
6052 (handle_invisible_prop, next_overlay_string): Defer call to
6053 setup_for_ellipsis.
6054 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6055
60562008-08-15 Chong Yidong <cyd@stupidchicken.com>
6057
6058 * xfaces.c (lookup_derived_face): Properly handle possible zero
6059 return value of get_lface_attributes.
6060 (merge_faces): Don't tell lookup_derived_face to signal an error
6061 if face is not found.
6062
6063 * dired.c (Fdirectory_files): Doc fix.
6064
6065 * process.c (make_process): Initialize kill_without_query struct
6066 member.
6067
60682008-08-15 Eli Zaretskii <eliz@gnu.org>
6069
6070 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6071 Alternative calculation of totphys for Visual Studio 6.
6072
6073 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6074
6075 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6076 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6077 All users changed.
6078 (stat): Only root directory passed to GetDriveType. Allow RAM
6079 disk as well as local fixed disk when w32-get-true-file-attributes
6080 is set to `local'.
6081 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6082 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6083 (w32_cached_id, w32_add_to_cache): New functions.
6084 (get_name_and_id): Look account names in the cache before calling
6085 lookup_account_sid.
6086 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6087 New initialization flags.
6088 (globals_of_w32): Initialize them to zero.
6089 (w32_system_process_attributes): Use w32_cached_id and
6090 w32_add_to_cache.
6091
60922008-08-14 Lawrence Mitchell <wence@gmx.li>
6093
6094 * lread.c (Fread_char, Fread_char_exclusive): If no character
6095 event is read before timeout is reached, return nil, rather than
6096 converting to a number.
6097
60982008-08-14 Chong Yidong <cyd@stupidchicken.com>
6099
6100 * fns.c (use_dialog_box): Doc fix.
6101
6102 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6103 on OS X.
6104
61052008-08-13 Chong Yidong <cyd@stupidchicken.com>
6106
6107 * frame.c (Qns_parse_geometry): New var.
6108 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6109
61102008-08-11 Chong Yidong <cyd@stupidchicken.com>
6111
6112 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6113 space character in calculating tabs.
6114
61152008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6116
6117 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6118
61192008-08-10 Glenn Morris <rgm@gnu.org>
6120
6121 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6122 silence gcc "limited range of data type" warnings in some
6123 make_fixnum_or_float calls.
6124
61252008-08-09 Eli Zaretskii <eliz@gnu.org>
6126
6127 * w32.c (w32_system_process_attributes): If the process does not
6128 exist, return nil.
6129
6130 * w32.c: Include thelp32.h, psapi.h and coding.h.
6131 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6132 declarations.
6133 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6134 (Process32Next_Proc): New typedefs.
6135 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6136 (g_b_init_process32_next, g_b_init_open_thread_token)
6137 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6138 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6139 (g_b_init_get_process_working_set_size)
6140 (g_b_init_global_memory_status_ex): New static variables.
6141 (globals_of_w32): Initialize them.
6142 (create_toolhelp32_snapshot, process32_first, process32_next)
6143 (open_thread_token, impersonate_self, revert_to_self)
6144 (get_process_memory_info, get_process_working_set_size)
6145 (global_memory_status, global_memory_status_ex): New wrapper
6146 functions.
6147 (w32_list_system_processes, w32_system_process_attributes)
6148 (enable_privilege, restore_privilege, ltime, process_times):
6149 New functions.
6150 (convert_time_raw): New function.
6151 (convert_time): Remove conversion of FILETIME into time in 100
6152 nsec units, call convert_time_raw instead.
6153
6154 * process.h (w32_list_system_processes, w32_system_process_attributes):
6155 Add prototypes.
6156 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6157 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6158 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6159 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6160
6161 * process.c (Fsystem_process_attributes): Doc fix.
6162
61632008-08-08 Chong Yidong <cyd@stupidchicken.com>
6164
6165 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6166 a continued multi-char glyph; if so, advance to the actual glyph.
6167
61682008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6169
6170 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6171
6172 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6173 (.m.o): Use it.
6174 * config.in: Regenerate.
6175
61762008-08-07 Chong Yidong <cyd@stupidchicken.com>
6177
6178 * xdisp.c (redisplay_window): Revert last change.
6179 (try_window): Check bottom scroll margin too.
6180
61812008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6182
6183 * config.in: Regenerate.
6184
6185 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6186 -list-load-path-shadows'.
6187 (nsgui.h): Reduce number of things depending on it.
6188
61892008-08-06 Chong Yidong <cyd@stupidchicken.com>
6190
6191 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6192 instead of window-end which does the wrong thing at eob.
6193 (try_cursor_movement): Minor optimization.
6194 (redisplay_window): If scroll margin is defined, don't assume
6195 window doesn't need scrolling.
6196
61972008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6198
6199 * config.in: Regenerate.
6200
6201 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6202 (mostlyclean): Don't delete *.d under NS.
6203
6204 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6205
62062008-08-06 Kenichi Handa <handa@m17n.org>
6207
6208 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6209
62102008-08-06 Andreas Schwab <schwab@suse.de>
6211
6212 * config.in: Regenerate.
6213
62142008-08-05 Chong Yidong <cyd@stupidchicken.com>
6215
6216 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6217 forcing a window start.
6218
6219 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6220 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6221
62222008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6223
6224 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6225 argument.
6226
62272008-08-05 Juanma Barranquero <lekktu@gmail.com>
6228
6229 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6230 <scroll-down-aggressively, before-change-functions>:
6231 <after-change-functions>: Reflow docstrings.
6232
62332008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6234 Ken Raeburn <raeburn@gnu.org>
6235
6236 Dock menu customization, based on a patch by Ken Raeburn, plus some
6237 other fixes.
6238 * nsmenu.m (dockMenu): New variable.
6239 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6240
6241 * nsterm.h (dockMenu): Declare.
6242
6243 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6244 (ns_term_init): Initialize dockMenu.
6245 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6246 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6247 left.
6248
6249 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6250
62512008-08-04 Chong Yidong <cyd@stupidchicken.com>
6252
6253 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6254
6255 * config.in: Regenerate.
6256
62572008-08-04 Seiji Zenitani <zenitani@mac.com>
6258
6259 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6260
62612008-08-04 Chong Yidong <cyd@stupidchicken.com>
6262
6263 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6264
62652008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6266
6267 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6268
6269 * keyboard.h: Comment an #endif.
6270
6271 * lisp.h (have_menus_p): Adjust comment.
6272
6273 * menu.c (find_and_return_menu_selection): Fix comparison with
6274 client_data.
6275
6276 * nsmenu.m (popup_activated_flag): New variable.
6277 (popup_activated): New function.
6278 (menu-or-popup-active-p): New exported lisp definition.
6279 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6280 when popup done.
6281 (ns_popup_dialog): Set popup_activated_flag.
6282
6283 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6284 version for GNUstep (handled by conditional typedef in nsterm.m).
6285 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6286 in rgb.txt).
6287
6288 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6289
6290 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6291
6292 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6293
6294 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6295 shortcircuit if popup_activated like GTK and X toolkit.
6296
6297 * m/inter386.h: Change DARWIN to DARWIN_OS.
6298
6299 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6300 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6301 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6302 comment on NO_SOCK_SIGIO.
6303
63042008-08-03 Chong Yidong <cyd@stupidchicken.com>
6305
6306 * nsterm.m (windowDidResize): Remove stopModal call.
6307
63082008-08-03 Andreas Schwab <schwab@suse.de>
6309
6310 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6311 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6312
63132008-08-02 Chong Yidong <cyd@stupidchicken.com>
6314
6315 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6316 Don't use uninitialized pointer variable when using getrlimit.
6317
63182008-08-02 Jason Rumney <jasonr@gnu.org>
6319
6320 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6321
63222008-08-02 Eli Zaretskii <eliz@gnu.org>
6323
6324 * alloc.c (NSTATICS): Bump to 0x640.
6325
6326 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6327
6328 * lisp.h: Add prototype for directory_files_internal.
6329
6330 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6331 New functions.
6332 (syms_of_process): Defsubr them. Add initializations for various
6333 Q* symbols used in procfs_system_process_attributes.
6334 (procfs_list_system_processes, procfs_system_process_attributes)
6335 [HAVE_PROCFS]: New functions.
6336 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6337 (procfs_get_total_memory): New functions.
6338
63392008-08-01 Juanma Barranquero <lekktu@gmail.com>
6340
6341 * xfaces.c (Fx_load_color_file): Fix previous change;
6342 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6343
63442008-08-01 Michael Albinus <michael.albinus@gmx.de>
6345
6346 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6347
63482008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6349
6350 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6351
63522008-08-01 Chong Yidong <cyd@stupidchicken.com>
6353
6354 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6355
6356 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6357 define NSApplicationDelegateReplySuccess.
6358 (EmacsView -converstationIdentifier): Use long instead of
6359 NSInteger for GNUstep, since it doesn't have NSInteger.
6360
6361 * xmenu.c: Revert last change.
6362
6363 * keyboard.h: Fix last change.
6364
63652008-08-01 Juanma Barranquero <lekktu@gmail.com>
6366
6367 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6368 on Windows.
6369
63702008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6371
6372 Warning clearing and clean-up in NS port.
6373 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6374 Add prototypes.
6375 * nsgui.h (FACE_DEFAULT): Remove, unused.
6376 (XGCValues): Change colors to unsigned long.
6377 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6378 nsterm.m.
6379 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6380 (ns_list_fonts): Remove, unused.
6381 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6382 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6383 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6384 (nsfont_draw): Compare face colors to 0, not nil.
6385 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6386 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6387 (-addSubmenuWithTitle:): Use NSMenuItem class.
6388 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6389 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6390 (ns_clip_to_row): Make gc arg a BOOL.
6391 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6392 ns_clip_to_row() call.
6393 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6394 used). Cast FRAME_FONT assignments.
6395 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6396 (ns_string_to_lispmod): Change arg to const char.
6397 (ns_term_init): Use NSMenuItem class.
6398 (EmacsApp -openFile:): Move to different section of file.
6399 (EmacsApp -application:openFiles:): Don't return a value, call
6400 -replyToOpenOrPrint:.
6401 (EmacsView -keyDown:): Fix up cast.
6402 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6403 (EmacsView -menuDown:): Cast tag in call to
6404 find_and_call_menu_selection().
6405 (ns_list_fonts): Remove, unused.
6406 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6407 (ns_fontname_to_xlfd): Make static.
6408 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6409 Remove prototypes (now in keyboard.h).
6410 (next_menubar_widget_id): Remove, unused.
6411 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6412 Remove prototypes (now in keyboard.h).
6413 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6414
64152008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6416
6417 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6418 (floatfns.o): Depend on syssignal.h.
6419 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6420
6421 * systty.h: Fix previous change that removed BSD_TERMIOS.
6422 Add comments to #ifdefs.
6423
64242008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6425
6426 * w32fns.c (w32-load-color-file): Remove.
6427 (x-open-connection): Use renamed Fx_load_color_file.
6428 * xfaces.c (x-load-color-file): Add.
6429 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6430 Emacs.clr.
6431 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6432
64332008-07-31 Michael Albinus <michael.albinus@gmx.de>
6434
6435 * dbusbind.c (Fdbus_call_method_asynchronously)
6436 (Fdbus_method_error_internal): New defuns.
6437 (xd_read_message): Handle also reply messages.
6438 (Vdbus_registered_functions_table): Extend docstring.
6439
64402008-07-31 Juanma Barranquero <lekktu@gmail.com>
6441
6442 * keyboard.c (gobble_input): Fix previous change.
6443
64442008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6445
6446 * bitmaps/README:
6447 * xfns.c:
6448 * termcap.c:
6449 * term.c:
6450 * syswait.h:
6451 * systty.h:
6452 * systime.h:
6453 * syssignal.h:
6454 * sysdep.c:
6455 * process.h:
6456 * process.c:
6457 * print.c:
6458 * ndir.h:
6459 * lread.c:
6460 * keyboard.c:
6461 * getpagesize.h:
6462 * floatfns.c:
6463 * fileio.c:
6464 * emacs.c:
6465 * doc.c:
6466 * dispnew.c:
6467 * dired.c:
6468 * data.c:
6469 * callproc.c:
6470 * buffer.c:
6471 * README:
6472 * Makefile.in:
6473 * s/template.h:
6474 * s/msdos.h:
6475 * m/vax.h: Remove VMS support.
6476 * s/vms.h:
6477 * vlimit.h:
6478 * uaf.h:
6479 * temacs.opt:
6480 * param.h:
6481 * ioctl.h: Remove file.
6482
64832008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6484
6485 * s/ms-w32.h (MULTI_KBOARD): Remove.
6486 * xterm.c:
6487 * xselect.c:
6488 * xfns.c:
6489 * window.c:
6490 * w32term.c:
6491 * w32fns.c:
6492 * terminal.c:
6493 * termhooks.h:
6494 * term.c:
6495 * sysdep.c:
6496 * keyboard.h:
6497 * keyboard.c:
6498 * frame.h:
6499 * frame.c:
6500 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6501 * config.in: Regenerate.
6502
65032008-07-30 Jason Rumney <jasonr@gnu.org>
6504
6505 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6506
6507 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6508 (w32font_open_internal): Get unicode version of textmetrics.
6509 Don't enable or disable glyph indices here.
6510 (w32font_open): Disable use of glyph indices.
6511
6512 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6513
65142008-07-30 Chong Yidong <cyd@stupidchicken.com>
6515
6516 * minibuf.c (Vread_buffer_function): Doc fix.
6517
65182008-07-30 John Paul Wallington <jpw@pobox.com>
6519
6520 * minibuf.c (read_buffer_completion_ignore_case): New var.
6521 (Fread_buffer): Use it.
6522
65232008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6524
6525 * systty.h (sensemode): Remove empty #if. Remove reference to
6526 BSD_TERMIOS, unused.
6527
6528 * sysdep.c: Remove reference to DGUX.
6529 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6530
6531 * config.in: Regenerate.
6532
65332008-07-30 Jason Rumney <jasonr@gnu.org>
6534
6535 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6536
65372008-07-29 Jason Rumney <jasonr@gnu.org>
6538
6539 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6540 is populated.
6541 (uniscribe_encode_char): Always use uniscribe.
6542 Avoid using context if cache is populated.
6543
65442008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6545
6546 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6547 open menu.
6548
6549 * gtkutil.c (menu_nav_ended): Remove.
6550 (create_menus): Remove signal connect for menu_nav_ended.
6551
65522008-07-28 Chong Yidong <cyd@stupidchicken.com>
6553
6554 * xdisp.c (redisplay_window): Check return value of
6555 compute_window_start_on_continuation_line before forcing a window
6556 start.
6557
65582008-07-28 Jason Rumney <jasonr@gnu.org>
6559
6560 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6561
6562 * w32term.c (w32_enable_unicode_output, cleartype_active):
6563 Remove obsolete display options.
6564 (x_draw_glyph_string_background): Don't use old cleartype_active
6565 workaround.
6566 (w32_initialize): Remove cleartype_active initialization.
6567 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6568
65692008-07-28 Andreas Schwab <schwab@suse.de>
6570
6571 * lisp.h (init_weak_hash_tables, syms_of_font)
6572 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6573 (remove_hash_entry): Don't declare.
6574 * eval.c (maybe_call_debugger): Make static and move before use.
6575 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6576 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6577 * xterm.h (x_set_frame_alpha): Declare.
6578
65792008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6580
6581 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6582 (create_menus): Connect selection-done to menu_nav_ended.
6583
65842008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6585
6586 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6587 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6588 parameter with read of 'alpha' one.
6589 (Qns_frame_parameter): Remove.
5582fbc7 6590 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6591 (next-selection-coding-system, Vselection_coding_system)
6592 (Vnext_selection_coding_system): Drop.
6593
65942008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6595
6596 * nsfns.m (do-applescript, do_applescript): Rename to
6597 ns-do-applescript, ns_do_applescript, and move within file.
6598
65992008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6600
6601 Remove support for Mac Carbon.
6602 * mactoolbox.c:
6603 * macterm.h:
6604 * macterm.c:
6605 * macselect.c:
6606 * macmenu.c:
6607 * macgui.h:
6608 * macfns.c:
6609 * mac.c: Remove file.
6610 * s/darwin.h:
6611 * m/intel386.h:
6612 * xfaces.c:
6613 * xdisp.c:
6614 * window.c:
6615 * tparam.c:
6616 * termhooks.h:
6617 * termcap.c:
6618 * term.c:
6619 * syssignal.h:
6620 * sysselect.h:
6621 * sysdep.c:
6622 * process.c:
6623 * lread.c:
6624 * lisp.h:
6625 * keyboard.c:
6626 * image.c:
6627 * fringe.c:
6628 * frame.h:
6629 * frame.c:
6630 * fontset.c:
6631 * font.h:
6632 * font.c:
6633 * fns.c:
6634 * fileio.c:
6635 * emacs.c:
6636 * dispnew.c:
6637 * dispextern.h:
6638 * config.in:
6639 * atimer.c:
2ae37cf0 6640 * Makefile.in: Remove code for Carbon.
aac0c6e3 6641
f0131492 66422008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6643
6644 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6645
66462008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6647
6648 * macterm.h (kCGBitmapByteOrder32Host): New define for
6649 non-universal SDKs.
6650
6651 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6652 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6653
6654 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6655 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6656
66572008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6658
6659 * w32inevt.c: Include dispextern.h.
6660
66612008-07-26 Andreas Schwab <schwab@suse.de>
6662
6663 * print.c (print_object): Fix off-by-one in last change.
6664
66652008-07-25 Juanma Barranquero <lekktu@gmail.com>
6666
6667 * term.c (syms_of_term): Don't initialize default_orig_pair,
6668 default_set_foreground and default_set_background on Windows.
6669
66702008-07-25 Jason Rumney <jasonr@gnu.org>
6671
6672 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6673 ScriptItemize. Clean up return value checking. Remove unused
6674 variables.
6675 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6676 shaping engine.
6677
6678 * w32font.c (w32font_has_char): Handle the case where we can't
6679 determine the script for a character.
6680
66812008-07-25 Chong Yidong <cyd@stupidchicken.com>
6682
6683 * term.c (syms_of_term): Initialize default_orig_pair,
6684 default_set_foreground, and default_set_background.
6685
6686 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6687 clash (bug#86).
6688 (getloadavg): Callers changed.
6689
6690 * image.c (svg_load_image): Fix last change.
6691 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6692 image size is valid. Use g_object_unref instead of deprecated
6693 rsvg_handle_free to free rsvg handle.
6694 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6695
66962008-07-25 Jason Rumney <jasonr@gnu.org>
6697
6698 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6699 surrogates before looking up glyph index.
6700 (w32font_text_extents): Encode as surrogates if falling back to
6701 functions that need UTF-16 wide chars.
6702
6703 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6704 BMP as surrogates before looking up glyph index.
6705
67062008-07-25 Chong Yidong <cyd@stupidchicken.com>
6707
6708 * image.c (svg_load_image): Check for failure in return value of
6709 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6710
67112008-07-25 Jason Rumney <jasonr@gnu.org>
6712
6713 * w32font.c (Fx_select_font): Reverse sense of second arg.
6714
67152008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6716
6717 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6718 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6719
6720 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6721 (PURESIZE): Use it.
6722
67232008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6724
6725 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6726 * m/alpha.h (TEXT_END):
6727 * m/ibmrs6000.h (TEXT_END):
6728 * m/macppc.h (TEXT_END):
6729 * s/darwin.h (TEXT_END):
6730 * s/msdos.h (TEXT_END): Remove, unused.
6731 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6732 * s/cygwin.h: Remove comment.
6733
6734 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6735 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6736 * m/intel386.h (DOT_GLOBAL_START):
6737 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6738 (USG): Remove, file not used on USG platforms.
6739
6740 * Makefile.in (HAVE_X11): Remove empty #else.
6741
67422008-07-24 Andreas Schwab <schwab@suse.de>
6743
6744 * fileio.c (Finsert_file_contents): Properly adjust undo list
6745 after format conversion.
6746
67472008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6748
6749 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6750 (menu_nav_ended): Remove.
6751 (create_menus): Remove signal connect for menu_nav_ended.
6752 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6753 create_menus.
6754 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6755
67562008-07-23 Jason Rumney <jasonr@gnu.org>
6757
6758 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6759 with opened font.
6760 (w32font_open): Set font type to gdi.
6761
6762 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6763
67642008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6765
6766 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6767 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6768 defines it.
6769 * unexec.c (ADDR_CORRECT): Define unconditionally.
6770
6771 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6772
6773 * unexec.c: Remove code depending on !COFF and USG, the file is
6774 not used for such systems.
6775
6776 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6777 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6778 (LD_SWITCH_SYSTEM_1): Remove, update users.
6779
6780 * s/darwin.h (DATA_END):
6781 * m/intel386.h (DATA_END):
6782 * m/ibmrs6000.h (DATA_END):
6783 * m/alpha.h (DATA_END): Remove, unused.
6784
6785 * config.in: Regenerate.
6786 * s/ms-w32.h (subprocesses): Define unconditionally.
6787 * s/template.h (subprocesses): Update comment.
6788 * s/vms.h (subprocesses):
6789 * s/usg5-4.h (subprocesses):
6790 * s/hpux10-20.h (subprocesses):
6791 * s/gnu-linux.h (subprocesses):
6792 * s/cygwin.h (subprocesses):
6793 * s/bsd-common.h (subprocesses):
6794 * s/aix4-2.h (subprocesses):
6795 * s/darwin.h (subprocesses): Do not define, defined by default now.
6796
6797 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6798 Remove all references.
6799 (temacs): Add GNUstep specific ld flags.
6800
6801 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6802 similarly to what X does.
6803
68042008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6805
6806 * nsfns.m (x-list-fonts): Remove.
6807 (syms_of_nsfns): Drop the x-list-fonts declaration.
6808 * nsterm.m: Get rid of remaining "//" comments.
6809
68102008-07-22 Chong Yidong <cyd@stupidchicken.com>
6811
6812 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6813
6814 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6815 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6816 (Fns_own_selection_internal, Fx_disown_selection_internal)
6817 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6818
6819 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6820 ... */' style of docstrings. Doc fixes.
6821
68222008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6823
6824 * terminfo.c (UP, BC, PC): Undo previous change.
6825
6826 * nsfns.m: Rename ns prefixed functions/variables to the
6827 corresponding x versions. Update references.
6828
68292008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6830
6831 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6832
68332008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6834
6835 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6836 Remove forwarding functions.
6837 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6838 non-static.
6839 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6840 non-static.
6841 (ns_frame_parm_handlers): Use the new names.
6842 (syms_of_nsfns): Move to the end of file.
6843
6844 * nsterm.m (syms_of_nsterm): Move to the end of file.
6845
6846 * dispnew.c (init_display): Remove code for X10.
6847
68482008-07-22 Jason Rumney <jasonr@gnu.org>
6849
6850 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6851 bare drive.
6852
68532008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6854
6855 * nsterm.m (syms_of_nsterm): Remove debugging println.
6856
68572008-07-22 David Reitter <david.reitter@gmail.com>
6858
6859 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6860 Carbon implementation of the same functionality: execute arbitrary
6861 AppleScript code.
6862
68632008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6864
6865 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6866 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6867 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6868 (Fx_display_mm_height, Fx_display_mm_width)
6869 (Fx_display_backing_store, Fx_display_visual_class)
6870 (Fx_display_save_under, Fx_open_connection)
6871 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6872 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6873 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6874 (Fx_display_pixel_width, Fx_display_pixel_height)
6875 (Fx_display_usable_bounds, Fx_display_planes)
6876 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6877 ... */' style of docstrings.
6878
68792008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6880
6881 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6882 on this platform.
6883 (mips):
6884 * m/iris4d.h (mips): Do not define.
6885 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6886
6887 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6888
6889 * image.c:
6890 * nsfns.m:
6891 * nsselect.m:
6892 * nsterm.h:
6893 * nsterm.m: Rename ns prefixed functions/variables to the
6894 corresponding x versions. Update references.
6895
6896 * m/ibms390x.h (NO_REMAP): Do not undefine.
6897
6898 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6899
69002008-07-21 Chong Yidong <cyd@stupidchicken.com>
6901
6902 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6903 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6904 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6905 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6906 (Fns_display_mm_height, Fns_display_mm_width)
6907 (Fns_display_backing_store, Fns_display_visual_class)
6908 (Fns_display_save_under, Fns_open_connection)
6909 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6910 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6911 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6912 (Fns_display_pixel_width, Fns_display_pixel_height)
6913 (Fns_display_usable_bounds, Fx_display_planes)
6914 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6915
69162008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6917
6918 * print.c (print_object): Check print_depth before searching for
6919 circularities.
6920
69212008-07-21 Michael Albinus <michael.albinus@gmx.de>
6922
6923 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6924 only sprintf.
6925
69262008-07-21 Kenichi Handa <handa@m17n.org>
6927
6928 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6929
69302008-07-20 Andreas Schwab <schwab@suse.de>
6931
6932 * syntax.c (find_start_pos, find_start_value)
6933 (find_start_value_byte, find_start_begv, find_defun_start)
6934 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6935
69362008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6937
6938 * s/sol2-3.h: Insert contents of s/sol2.h.
6939 (LD_SWITCH_SYSTEM): Remove redundant definition.
6940 * s/sol2.h: Remove, unused.
6941
69422008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6943
6944 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6945
69462008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6947
6948 * Makefile.in (ns_appdir): Fix typo in find command.
6949
69502008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6951
6952 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6953
6954 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6955 added not supported anymore.
6956
6957 * s/usg5-4-2.h (LIBS_SYSTEM):
6958 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6959
6960 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6961 * s/lynxos.h (GETPGRP_NO_ARG):
6962 * s/hpux10-20.h (NO_SIOCTL_H):
6963 * s/gnu.h (GETPGRP_NO_ARG):
6964 * s/gnu-linux.h (NO_SIOCTL_H):
6965 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6966 * s/cygwin.h (GETPGRP_NO_ARG):
6967 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6968 (C_DEBUG_SWITCH): Remove duplicate definition.
6969
6970 * m/ibms390.h: Remove boilerplate comments.
6971
6972 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6973
6974 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6975 (wait_reading_process_output): Remove code for SunOS, platform not
6976 supported anymore. Use SOLARIS2 instead of sun.
6977
69782008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6979
6980 * font.c (font_open_by_name): Under NS, default lface height to zero.
6981 (font_open_for_lface): Under NS, set size based on frame fontsize.
6982 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6983 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6984
69852008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6986
6987 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6988 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6989 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6990 YES/NO.
6991 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6992 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6993 * Makefile.in (clean): Clear out build destination dir.
6994
69952008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6996
6997 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6998 xterm, xselect.
6999 * lisp.h: Remove declaration of hash_remove.
7000 * nsgui.h: Remove redefinitions of hash_remove.
7001 * fns.c (hash_remove): Rename to hash_remove_from_table.
7002
70032008-07-19 Seiji Zenitani <zenitani@mac.com>
7004
7005 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7006 strdup() the family UTF8String before modifying it.
7007
70082008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7009
7010 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7011 NS_FACE_BACKGROUND with 0 instead of nil.
7012 * nsfont.m (nsfont_draw): Same.
7013
70142008-07-19 Chong Yidong <cyd@stupidchicken.com>
7015
7016 * nsfns.m (ns_set_background_color): Fix crash.
7017
70182008-07-18 Chong Yidong <cyd@stupidchicken.com>
7019
7020 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7021
70222008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7023
7024 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7025
70262008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7027
7028 * gtkutil.c: Include <config.h> instead of "config.h".
7029
7030 * lisp.h (Foverlay_buffer): Add EXFUN.
7031
7032 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7033 child process to complete child_setup. Undo 2005-09-21 change.
7034
7035 * s/darwin.h: Mention setsid after vfork.
7036
70372008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7038
7039 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7040 Depend on macgui.h.
7041
7042 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7043 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7044
7045 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7046 and f19.
7047 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7048
7049 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7050 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7051 Remove enumerators.
7052
7053 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7054 Check if FACE_FROM_ID returns NULL.
7055
70562008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7057
7058 * w32inevt.c (change_frame_size): Remove extern declaration.
7059 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7060 change_frame_size.
7061
70622008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7063
7064 * getloadavg.c: Revert last change (2008-07-15).
7065
70662008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7067
7068 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7069 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7070 from configure.
7071
70722008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7073
7074 * s/sol2.h:
7075 * s/sol2-4.h: Reorganize conditionals.
7076
7077 * ecrt0.c: Remove code depending on m68000, not used anymore.
7078
7079 * fns.c (hash_remove): Make static.
7080 * lisp.h (hash_remove): Don't prototype.
7081
7082 * m/ibmrs6000.h:
7083 * m/ibms390x.h:
7084 * m/macppc.h: Remove boilerplate comments.
7085
7086 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7087 Solaris, which does not need them.
7088
7089 * m/vax.h: Remove comments about unsupported systems.
7090
7091 * s/darwin.h: Reorganize ifdefs.
7092
70932008-07-17 Andreas Schwab <schwab@suse.de>
7094
7095 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7096
70972008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7098
7099 Use SDATA. Follow coding convention of placing operators at
7100 beginning of next line rather than end of previous line, and placing
7101 spaces around infix operators.
7102
7103 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7104 in case it was defined already.
7105 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7106 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7107 ns_default.
7108 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7109 Lisp_Objects.
7110 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7111 (ns_defined_color, ns_color_to_lisp): Declare.
7112 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7113 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7114 it's accepted even with USE_LISP_UNION_TYPE.
7115 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7116 (update_frame_tool_bar): Remove apparently obsolete tests for
7117 non-integerness of f->tool_bar_lines.
7118 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7119 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7120 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7121 (nsfont_open): Don't confuse NULL for Qnil.
7122 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7123 * menu.h (find_and_call_menu_selection):
7124 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7125 (find_and_return_menu_selection): Always return something.
7126 * frame.h: Include dispextern.h for Display_Info.
7127 (display_x_get_resource): Declare.
7128
71292008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7130
7131 * syntax.c: Remove stdio.h include accidentally introduced in
7132 Emacs.app commit.
7133 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7134 NS_IMPL_COCOA.
7135 * keyboard.c (handle_async_input, input_available_signal): Remove
7136 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7137
71382008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7139
7140 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7141 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7142 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7143 Use SDATA.
7144
7145 * keymap.c: Remove all NS-specific code.
7146 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7147 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7148 where_is_preferred_modifier, return a different value depending on how
7149 preferred is the binding.
7150 (where_is_internal): Adjust accordingly.
7151 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7152 Adjust to new preferred_sequence_p.
7153 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7154 * keyboard.c (parse_solitary_modifier): Not static any more.
7155 * keyboard.h (parse_solitary_modifier): Declare.
7156
71572008-07-16 Andreas Schwab <schwab@suse.de>
7158
7159 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7160 of easymenu.
7161
71622008-07-16 Chong Yidong <cyd@stupidchicken.com>
7163
7164 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7165 that we don't move off the line.
7166
71672008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7168
7169 * keyboard.c (Qsuper): Remove.
7170 (parse_menu_item): Don't call where_is_internal specially for NS.
7171
71722008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7173
7174 * s/gnu-linux.h: Remove boilerplate comments.
7175
7176 * m/alpha.h (__ELF__): Consolidate conditions.
7177
7178 * m/m68k.h (linux): Use GNU_LINUX instead.
7179 Remove boilerplate comments.
7180
7181 * m/intel386.h: Undo refactoring from previous change.
7182 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7183 too, remove dead code.
7184 (linux): Use GNU_LINUX instead.
7185
71862008-07-16 Jason Rumney <jasonr@gnu.org>
7187
7188 * w32gui.h: Repeat 26 June changes lost by last change.
7189
71902008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7191
7192 * systty.h: Remove code for Aix on 386, unsupported platform.
7193
7194 * s/ms-w32.h: Remove boilerplate comments.
7195 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7196
7197 * s/gnu-linux.h (TERM): Remove support.
7198 (HAVE_SYSVIPC): Remove, unused.
7199 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7200 for this system.
7201
7202 * process.c: Remove support for IRIS, unused.
7203 Remove support for TERM, not relevant anymore.
7204
7205 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7206 used with the definition.
7207
7208 * s/aix4-2.h (static): Do not undef.
7209
7210 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7211 only used on Aix.
7212 (HAVE_SYSVIPC): Remove, unused.
7213
7214 * m/hp800.h (CANNOT_DUMP): Do not undef.
7215
7216 * m/alpha.h: Fix comment.
7217
7218 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7219 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7220 used by this configuration.
7221 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7222 * unexec.c: Remove code depending on HPUX and
7223 USG_SHARED_LIBRARIES, not used with this file. Remove code
7224 depending on IRIS, unused. Remove if 0-ed code.
7225
7226 * s/template.h: Remove comments about static.
7227
7228 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7229 Remove if 0-ed code.
7230 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7231 were the same as the default.
7232 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7233 Remove boilerplate comments.
7234 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7235 (HAVE_SYSVIPC): Remove, unused.
7236 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7237
7238 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7239 Remove boilerplate comments.
7240 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7241 Remove boilerplate comments.
7242 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7243 Remove boilerplate comments.
7244 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7245
7246 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7247 USG systems which do not use DATA_SEG_BITS.
7248 Refactor code. Remove boilerplate comments.
7249
7250 * m/ibms390.h:
7251 * m/m68k.h:
7252 * s/bsd-common.h:
7253 * s/cygwin.h:
7254 * s/darwin.h:
7255 * s/freebsd.h:
7256 * s/gnu.h:
7257 * s/msdos.h: Remove boilerplate comments.
7258
7259 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7260 do not use this file.
aac0c6e3
MR
7261 (IRIS_4D): Remove, unused.
7262
7263 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7264 do not use this file.
aac0c6e3
MR
7265 (SIGN_EXTEND_CHAR):
7266 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7267 * unexmips.c: Remove file, unused.
7268
7269 * editfns.c (Fuser_full_name): Replace the only use of
7270 USER_FULL_NAME with its value.
7271 * config.in: Regenerate.
7272
72732008-07-16 David Reitter <david.reitter@gmail.com>
7274
7275 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7276 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7277
72782008-07-16 Glenn Morris <rgm@gnu.org>
7279
7280 * emacs.c (system-type): Doc fix.
7281
72822008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7283
7284 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7285 If the cache doesn't work, let's fix it, rather than work around it.
7286
72872008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7288
7289 * Makefile.in: Correct additions for nsfont.o in last commit.
7290 * nsfont.m: New file (forgot last commit).
7291
72922008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7293
7294 * callproc.c (set_initial_environment): Initialize
7295 Vprocess_environment under CANNOT_DUMP (fixes crash when
7296 batch-compiling for bootstrap).
7297
72982008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7299 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7300
7301 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7302 fix crash due to different init order.
7303
73042008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7305
7306 Changes and additions for NeXTstep windowing system (Cocoa and
7307 GNUstep) support.
7308
7309 * Makefile.in:
7310 * config.in: Support defines and build commands for NS port.
7311 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7312 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7313 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7314 windowing.
7315 (struct face): Add synth_ital field.
7316 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7317 (init_display): Initialize Vinitial_window_system to "ns" when so
7318 compiled.
7319 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7320 (display_arg): Use under NS.
7321 (main): Under NS, allocate autorelease pool and handle command line
7322 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7323 (standard_args): Add NS-specific args.
7324 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7325 * font.c (DEFAULT_ENCODING): New variable.
7326 (font_find_for_lface): Use it.
7327 (syms_of_font): Load syms_of_nsfont under NS.
7328 * font.h: Declare nsfont_driver when compiled under NS.
7329 * fontset.c: When compiling under NS, include nsterm.h.
7330 (fontset_from_font): Autoconstruct fontset under NS.
7331 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7332 symbol, document and use it.
7333 (do_switch_frame): When for_deletion under Cocoa, add
7334 Fraise_frame(Qnil).
7335 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7336 (x_get_arg): Allow "yes" and "no" as boolean values.
7337 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7338 Qright under Cocoa.
7339 (focus-follows-mouse): Default to 0 under NS.
7340 * frame.h (enum output_method): Add output_ns.
7341 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7342 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7343 (FRAME_WINDOW_P): NS-specific definition.
7344 * fringe.c (max_used_fringe_bitmap): Make public.
7345 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7346 (getloadavg): Use NeXT code under descendant OS's.
7347 * image.c (includes and header section, x_create_bitmap_from_data)
7348 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7349 (image_background_transparent, x_clear_image_1)
7350 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7351 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7352 (x_to_xcolors, x_from_xcolors, x_disable_image)
7353 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7354 other GUIs, including XPM support using code originally written for
7355 Carbon GUI.
7356 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7357 using NS API.
7358 (image_ascent): Use font metrics macros instead of direct struct field
7359 access.
7360 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7361 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7362 Also, handle NS as GTK for menu bar purposes.
7363 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7364 toolkit where they differ.
7365 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7366 use cachelist, still needed under NS.
7367 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7368 (struct widget_value): Define it here for menu.c.
7369 * keymap.c (includes): Include modifier internals.
7370 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7371 NS.
7372 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7373 support for preferring sequences using certain modifiers, specified by
7374 the FIRSTONLY argument.
7375 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7376 under NS GNUstep implementation.
7377 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7378 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7379 * menu.c: Include nsterm.h under NS.
7380 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7381 (free_menubar_widget_tree_value, update_submenu_strings)
7382 (find_and_call_menu_selection): Treat NS as X and NT.
7383 (find_and_return_menu_selection): New function, used for popup menus.
7384 * nsgui.h:
7385 * nsterm.h:
7386 * nsfns.m:
7387 * nsimage.m:
7388 * nsmenu.m:
7389 * nsselect.m:
7390 * nsterm.m: New files.
7391 * process.c (wait_reading_process_output): Under NS, call ns_select()
7392 instead of plain select().
7393 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7394 beginning of buffer.
7395 * sysselect.h (init_process): Rename when compiling under Cocoa to
7396 avoid name conflict.
7397 * termhooks.h (display_info): Add ns_display_info to union.
7398 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7399 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7400 COCOA environment.
7401 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7402 unexec() signature. (Note, this will dump, but the resulting file
7403 crashes; unexosx is used instead; keeping around for reference and
7404 possible aid in getting dump working under GNUstep.)
7405 * w32gui.h (button_type, widget_value): Remove definitions (now in
7406 keyboard.h).
7407 * window.c: Include nsterm.h when compiling under NS.
7408 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7409 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7410 other GUI windowing systems.
7411 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7412 GTK.
7413 (x_consider_frame_title): Under NS, set icon type and frame
7414 modified-state indicator; use ns_set_name_as_filename() when using
7415 formatted title.
7416 (update_window_cursor): Make public when compiling under NS.
7417 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7418 (hourglass_atimer, Vhourglass_delay
7419 * xfaces.c (header section, init_frame_faces, clear_font_table)
7420 (defined_color, unload_color, x_face_list_fonts)
7421 (prepare_face_for_display): Add NS support parallel to other GUIs.
7422 Emulate GCs like other non-X GUIs.
7423 (split_font_name): Don't lowercase font name under NS.
7424 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7425 under NS.
7426 * s/darwin.h: Add support for compilation under NS.
7427
74282008-07-15 Jason Rumney <jasonr@gnu.org>
7429
7430 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7431 (w32_show_hourglass): Rename from show_hourglass.
7432 (w32_hide_hourglass): Rename from hide_hourglass.
7433 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7434 (Vhourglass_delay): Declare extern.
7435 (hourglass_started): Remove.
7436
7437 * xdisp.c (Vhourglass_delay): Remove static.
7438 (hourglass_started, start_hourglass, cancel_hourglass):
7439 Don't include these versions on WINDOWSNT.
7440
74412008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7442
7443 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7444 variables (formerly in xfns.c).
7445 (show_hourglass, hide_hourglass): New prototypes (same).
7446 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7447 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7448 in xfns.c).
7449 (syms_of_xdisp): Declare/initialize display-hourglass,
7450 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7451 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7452 formerly in xfns.c.
7453 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7454 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7455 (start_hourglass, cancel_hourglass): Remove.
7456 (show_hourglass, hide_hourglass): Remove prototypes and static
7457 modifiers.
7458 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7459 hourglass_atimer, hourglass_shown_p declaration/initialization.
7460 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7461 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7462 (start_hourglass, cancel_hourglass): Remove.
7463 (show_hourglass, hide_hourglass): Remove prototypes and static
7464 modifiers.
7465 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7466 hourglass_atimer, hourglass_shown_p declaration/initialization.
7467 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7468 (DEFAULT_HOURGLASS_DELAY): Remove.
7469 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7470 hourglass_shown_p declaration/initialization.
7471
74722008-07-14 Jason Rumney <jasonr@gnu.org>
7473
7474 * w32fns.c (w32_get_arg): Remove wrapper function.
7475 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7476 directly.
7477 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7478
74792008-07-14 Kenichi Handa <handa@m17n.org>
7480
7481 * xfont.c (xfont_open): Add workaround for X's bug.
7482
74832008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7484
7485 * fontset.c: Include <stdio.h> unconditionally.
7486
74872008-07-13 Michael Albinus <michael.albinus@gmx.de>
7488
7489 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7490 for filtering.
7491
74922008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7493
7494 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7495
7496 * m/macppc.h:
7497 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7498
7499 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7500 (SPECIAL_EMACS_INT):
7501 * m/ia64.h (SPECIAL_EMACS_INT):
7502 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7503 * s/gnu.h (NLIST_STRUCT):
7504 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7505 * s/gnu-linux.h (LINUX):
7506 * s/msdos.h (HAVE_FACES):
7507 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7508
7509 * systty.h:
7510 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7511 anymore.
7512
75132008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7514
7515 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7516 always defined as int.
7517
7518 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7519 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7520 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7521 * s/freebsd.h (HAVE_WAIT_HEADER):
7522 * s/bsd-common.h (HAVE_UNION_WAIT):
7523 * s/aix4-2.h (HAVE_WAIT_HEADER):
7524 * m/mips.h (HAVE_UNION_WAIT):
7525 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7526 (COFF, static): Do not define, they are undefined later in the file.
7527
7528 * process.c (update_status): Don't use a union.
7529 (status_convert):
7530 (sigchld_handler): Use int instead of WAITTYPE.
7531
75322008-07-12 Chong Yidong <cyd@stupidchicken.com>
7533
7534 * indent.c (Fvertical_motion): Restore hscroll before moving to
7535 goal column.
7536
75372008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7538
7539 * lisp.h: Remove left over code.
7540
75412008-07-11 Andreas Schwab <schwab@suse.de>
7542
7543 * lisp.h: Fix logic in last change.
7544
7545 * menu.h: New file.
7546 * menu.c: Include it.
7547 * xmenu.c: Likewise.
7548 * Makefile.in: Update dependencies.
7549
75502008-07-11 Kenichi Handa <handa@m17n.org>
7551
7552 * fontset.c (fontset_from_font): Cancel the previous change.
7553
75542008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7555
7556 * lisp.h:
7557 * w32heap.c:
7558 * emacs.c:
7559 * alloc.c: Replace all references of NO_UNION_TYPE with
7560 USE_LISP_UNION_TYPE.
7561
7562 * m/xtensa.h (NO_UNION_TYPE):
7563 * m/vax.h (NO_UNION_TYPE):
7564 * m/template.h (NO_UNION_TYPE):
7565 * m/sparc.h (NO_UNION_TYPE):
7566 * m/mips.h (NO_UNION_TYPE):
7567 * m/macppc.h (NO_UNION_TYPE):
7568 * m/m68k.h (NO_UNION_TYPE):
7569 * m/iris4d.h (NO_UNION_TYPE):
7570 * m/intel386.h (NO_UNION_TYPE):
7571 * m/ibms390x.h (NO_UNION_TYPE):
7572 * m/ibms390.h (NO_UNION_TYPE):
7573 * m/ibmrs6000.h (NO_UNION_TYPE):
7574 * m/ia64.h (NO_UNION_TYPE):
7575 * m/hp800.h (NO_UNION_TYPE):
7576 * m/arm.h (NO_UNION_TYPE):
7577 * m/amdx86-64.h (NO_UNION_TYPE):
7578 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7579 defining it the same.
7580
75812008-07-10 Chong Yidong <cyd@stupidchicken.com>
7582
7583 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7584
75852008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7586
7587 * fileio.c:
7588 * sysdep.c
7589 * systty.h:
7590 * m/ibmrs6000.h:
7591 * m/iris4d.h:
7592 * s/aix4-2.h:
7593 * s/freebsd.h:
7594 * s/gnu-linux.h:
7595 * s/hpux10-20.h:
7596 * s/hpux11.h:
7597 * s/netbsd.h:
7598 * s/sol2-3.h:
7599 * s/sol2-4.h:
7600 * s/sol2.h:
7601 * s/usg5-4.h:
7602 * s/vms.h: Remove references to unused variables.
7603
76042008-07-10 Andreas Schwab <schwab@suse.de>
7605
7606 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7607 pattern before matching the generic family.
7608
76092008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7610
7611 * unexec.c:
7612 * s/vms.h:
7613 * s/usg5-4-2.h:
7614 * s/sol2-5.h:
7615 * s/freebsd.h:
7616 * s/darwin.h: Remove dead code.
7617
7618 * m/template.h:
7619 * m/sparc.h:
7620 * m/mips.h:
7621 * m/m68k.h:
7622 * m/iris4d.h:
7623 * m/intel386.h:
7624 * m/ibms390x.h:
7625 * m/ibms390.h:
7626 * m/ia64.h:
7627 * m/hp800.h:
7628 * m/arm.h:
7629 * m/amdx86-64.h: Remove dead code and references to unused
7630 and compiler defined symbols.
7631
7632 * unexmips.c:
7633 * unexelf.c: Remove references to desupported systems.
7634
7635 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7636
7637 * m/powermac.h: Remove boilerplate comments.
7638 (NO_REMAP): Remove unused definition.
7639
7640 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7641 define them.
7642
76432008-07-10 Kenichi Handa <handa@m17n.org>
7644
7645 * xfont.c (xfont_open): Log the reason of failure.
7646
76472008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7648
7649 * fontset.c (fontset_get_font_group):
7650 * font.c (font_check_otf): Specify argument types.
7651
76522008-07-09 Kenichi Handa <handa@m17n.org>
7653
7654 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7655 non-ASCII char is found.
7656
7657 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7658 (reorder_font_vector): Change the arg preferred_family to font.
7659 Prefer the spec matching with font.
7660 (fontset_get_font_group): New function.
7661 (fontset_find_font): Change the format of an element of a realized
7662 fontset. Use fontset_get_font_group.
7663 (fontset_font): Try the current fontset, the default fontset, the
7664 fallbacks of the current fontset, and the fallbacks of the default
7665 fontset in this order.
7666 (face_for_char): Delete the shortcut to use the current font.
7667 (fontset_from_font): Don't set fonts for Latin in the fontset.
7668
7669 * font.h (font_make_object, font_match_p): Adjust prototypes.
7670
7671 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7672
7673 * font.c (font_make_object): New arg entity and pixelsize.
7674 (font_check_otf_features, font_check_otf): New functions.
7675 (font_match_p): Check :lang, :script, and :otf properties.
7676
7677 * xfont.c (xfont_open): Adjust it for the change of
7678 font_make_object.
7679 (xfont_text_extents): Fix initial setting of metrics.
7680
7681 * ftfont.c (struct ftfont_info): New member index, delete member
7682 fc_charset_idx. Make the member order compatible with struct
7683 xftfont_info.
7684 (fc_charset_table): Change charset names to registry names.
7685 (ftfont_pattern_entity): Delete the args registry and
7686 fc_charset_idx. Change the value of :font-entity property
7687 to (FONTNAME . INDEX). Always set :registry property to
7688 `iso10646-1'.
7689 (struct ftfont_cache_data): New struct.
7690 (ftfont_lookup_cache): New arg for_face.
7691 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7692 (ftfont_driver): Set the member otf_capability.
7693 (ftfont_get_charset): Adjust it for the change of
7694 fc_charset_table.
7695 (OTF_TAG_SYM): New macro.
7696 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7697 for the change of fc_charset_table.
7698 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7699 ftfont_pattern_entity. Add FC_INDEX to objset.
7700 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7701 and ftfont_pattern_entity.
7702 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7703 font_make_object, struct ftfont_info.
7704 (ftfont_has_char): Use ftfont_get_fc_charset.
7705 (ftfont_otf_features, ftfont_otf_capability): New functions.
7706 (ftfont_shape): Use ftfont_get_otf.
7707 (ftfont_text_extents): Fix initial setting of metrics.
7708
7709 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7710 member order compatible with struct ftfont_info.
7711 (xftfont_open): Add FC_CHARSET to the pattern. Set
7712 xftfont_info->ft_size. Don't unlock the face. Check BDF
7713 properties if appropriate.
7714 (xftfont_close): Unlock the face.
7715 (xftfont_anchor_point, xftfont_shape): Deleted.
7716 (syms_of_xftfont): Don't set members anchor_point and shape of
7717 xftfont_driver.
7718
7719 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7720 font_make_object.
7721
7722 * w32font.c (w32font_open): Adjust it for the change of
7723 font_make_object.
7724 (w32font_open_internal): Don't set properties of font_object here.
7725
77262008-07-08 Chong Yidong <cyd@stupidchicken.com>
7727
7728 * macfns.c (x_create_tip_frame):
7729 * w32fns.c (x_create_tip_frame):
7730 * xfns.c (x_create_tip_frame): Pass parameter argument to
7731 face-set-after-frame-default.
7732
7733 * xfaces.c (Finternal_merge_in_global_face): Save merged
7734 attributes for the default face back into the face vector.
7735
77362008-07-08 Andreas Schwab <schwab@suse.de>
7737
7738 * fontset.h: Declare fontset_from_font. Don't declare
7739 new_fontset_from_font and fontset_from_font_name.
7740 * xterm.c: Include "fontset.h".
7741 * Makefile.in (xterm.o): Update dependencies.
7742
77432008-07-08 Glenn Morris <rgm@gnu.org>
7744
7745 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7746 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7747
77482008-07-07 Chong Yidong <cyd@stupidchicken.com>
7749
7750 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7751 (x_set_frame_parameters): Don't bind it.
7752
77532008-07-07 Juanma Barranquero <lekktu@gmail.com>
7754
7755 * w32fns.c (map_w32_filename): Declare extern.
7756
77572008-07-07 Jason Rumney <jasonr@gnu.org>
7758
7759 * w32term.c (WS_EX_LAYERED): Define if not already.
7760
77612008-07-06 Chong Yidong <cyd@stupidchicken.com>
7762
7763 * xfaces.c (set_font_frame_param): Don't try to set the font
7764 parameter if it is still unspecified in the lface.
7765
77662008-07-05 Chong Yidong <cyd@stupidchicken.com>
7767
7768 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7769 face if it didn't already exist.
7770
7771 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7772
77732008-07-05 Andreas Schwab <schwab@suse.de>
7774
7775 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7776
77772008-07-05 Chong Yidong <cyd@stupidchicken.com>
7778
7779 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7780 word-wrapping.
7781 (IT_DISPLAYING_WHITESPACE): New macro.
7782 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7783 when word-wrapping. Simplify word-wrapping logic. Use correct
7784 pixel positions when saving copies of the iterator.
7785 (display_line): Use proper wrap point if the last character on a
7786 line was preceded by whitespace.
7787
77882008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7789
7790 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7791
77922008-07-04 Kenichi Handa <handa@m17n.org>
7793
7794 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7795
7796 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7797
77982008-07-02 Jason Rumney <jasonr@gnu.org>
7799
7800 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7801 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7802
7803 * xdisp.c (next_element_from_display_vector): Move assignment out
7804 of if statement.
7805
78062008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7807
7808 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7809
7810 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7811 (syms_of_fileio): Initialize and export them.
7812 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7813
7814 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7815 (Fsystem_move_file_to_trash): New function.
7816 (syms_of_w32fns): Export it to lisp.
7817
78182008-07-01 Jason Rumney <jasonr@gnu.org>
7819
7820 * w32font.c (w32font_text_extents): Don't count overhang as part
7821 of width.
7822
78232008-06-30 Miles Bader <miles@gnu.org>
7824
7825 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7826 Add `avoid_cursor_p' field.
7827
7828 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7829 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7830 (append_glyph, append_composite_glyph, produce_image_glyph)
7831 (append_stretch_glyph): Initialize avoid_cursor_p.
7832 (get_it_property): Rename from `get_line_height_property'.
7833 (x_produce_glyphs): Use get_it_property.
7834 (handle_line_prefix, push_display_prop): New functions.
7835 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7836 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7837 New variables.
7838 (syms_of_xdisp): Initialize them.
7839
78402008-06-30 Kenichi Handa <handa@m17n.org>
7841
7842 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7843 XftDefaultSubstitute (they are called in XftFontMatch).
7844 (xftfont_open): Fix args to ftfont_font_format.
7845
7846 * ftfont.c (fc_charset_table): New member lang.
7847 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7848 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7849 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7850 (ftfont_open): Fix args to ftfont_font_format.
7851 (ftfont_font_format): New arg filename.
7852
78532008-06-30 Chong Yidong <cyd@stupidchicken.com>
7854
7855 * xfaces.c (Finternal_merge_in_global_face): If default face was
7856 modified, realize it again. Update the font face attribute.
7857
78582008-06-29 Jason Rumney <jasonr@gnu.org>
7859
7860 * w32term.c (x_set_frame_alpha): Fix logic.
7861
78622008-06-29 Kenichi Handa <handa@m17n.org>
7863
7864 * fontset.c (Finternal_char_font): Return font-object instead of
7865 font-name.
7866
7867 * composite.c (get_composition_id): Fix the width calculation for TAB.
7868
78692008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7870
7871 * indent.c (Fvertical_motion): Properly handle float column arg.
7872
78732008-06-28 Jason Rumney <jasonr@gnu.org>
7874
7875 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7876 (pfnSetLayeredWindowAttributes): New function pointer.
7877 (w32_initialize): Initialize it when supported.
7878 (x_set_frame_alpha): New function.
7879
7880 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7881 (w32_frame_parm_handlers): Set alpha handler.
7882
7883 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7884
78852008-06-27 Jason Rumney <jasonr@gnu.org>
7886
7887 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7888 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7889 (w32_to_x_charset, x_to_w32_charset)
7890 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7891 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7892 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7893 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7894 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7895 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7896 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7897 (Qw32_charset_unicode): Remove.
7898 (syms_of_w32fns): Update for above changes.
7899
7900 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7901 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7902 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7903 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7904 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7905 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7906 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7907 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7908 (syms_of_w32font): Update for above changes.
7909
79102008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7911
7912 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7913 removed #if.
7914 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7915
79162008-06-26 Juanma Barranquero <lekktu@gmail.com>
7917 Eli Zaretskii <eliz@gnu.org>
7918
7919 * makefile.w32-in (LOCAL_FLAGS):
7920 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7921
7922 * sysdep.c (_spawnlp, _getpid):
7923 Declare with explicit _cdecl instead of _CRTAPI1.
7924
7925 * editfns.c (Fget_internal_run_time):
7926 Check for WINDOWSNT with #ifdef, not #if.
7927
79282008-06-26 Jason Rumney <jasonr@gnu.org>
7929
7930 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7931
7932 * w32term.c (x_draw_glyph_string_foreground)
7933 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7934 Use FONT_HANDLE macro.
7935 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7936
7937 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7938 (uniscribe_encode_char): Use FONT_HANDLE macro.
7939
7940 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7941 (w32font_text_extents): Use precast w32_font.
7942 (w32font_close): Free cached metrics.
7943 (w32font_open_internal): Allocate space for name on stack.
7944
79452008-06-26 Chong Yidong <cyd@stupidchicken.com>
7946
7947 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7948
79492008-06-26 Jason Rumney <jasonr@gnu.org>
7950
7951 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7952 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7953
79542008-06-26 Juanma Barranquero <lekktu@gmail.com>
7955
7956 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7957
79582008-06-26 Jason Rumney <jasonr@gnu.org>
7959
7960 * w32bdf.c, w32bdf.h: Remove obsolete files.
7961
7962 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7963
7964 * w32gui.h: Don't include w32bdf.h.
7965 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7966 Remove obsolete font support.
7967
7968 * w32font.h (struct w32font_info): Remove compat_w32_font.
7969 Add hfont member.
7970 (FONT_COMPAT): Remove obsolete macro.
7971
7972 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7973 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7974 (w32font_open_internal): Remove compat code. Set new hfont member.
7975 (Fx_select_font): Use new hfont member.
7976
7977 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7978 (uniscribe_encode_char): Use new hfont member.
7979
7980 * w32term.c (x_draw_glyph_string_foreground)
7981 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7982 (x_draw_glyph_string): Use metrics in w32font_info.
7983
79842008-06-26 Kenichi Handa <handa@m17n.org>
7985
7986 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7987
79882008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7989
7990 * unexnext.c:
7991 * m/ews4800.h:
7992 * m/hp9000s300.h:
7993 * m/ibm370aix.h:
7994 * m/mips-siemens.h:
7995 * m/ncr386.h:
7996 * m/next.h:
7997 * m/pmax.h:
7998 * m/powerpcle.h:
7999 * m/tandem-s2.h:
8000 * s/386bsd.h:
8001 * s/bsd386.h:
8002 * s/bsd4-1.h:
8003 * s/bsd4-2.h:
8004 * s/bsdos2-1.h:
8005 * s/bsdos2.h:
8006 * s/bsdos3.h:
8007 * s/bsdos4.h:
8008 * s/nextstep.h:
8009 * s/ultrix4-3.h:
8010 * s/usg5-0.h:
8011 * s/usg5-2-2.h:
8012 * s/usg5-2.h:
8013 * s/usg5-4-3.h:
8014 * s/ux4800.h:
8015 * s/uxpds.h:
8016 * s/uxpv.h: Remove support for obsolete systems.
8017 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8018 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8019 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8020 Remove, insert contents in s/aix4-2.h.
8021 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8022 * s/bsd4-3.h: Rename to ...
8023 * s/bsd-common.h: ... this.
8024 * data.c:
8025 * doc.c:
8026 * ecrt0.c:
8027 * emacs.c:
8028 * fileio.c:
8029 * floatfns.c:
8030 * keyboard.c:
8031 * mem-limits.h:
8032 * print.c:
8033 * process.c:
8034 * sysdep.c:
8035 * syssignal.h:
8036 * systty.h:
8037 * syswait.h:
8038 * term.c:
8039 * unexec.c:
8040 * unexelf.c:
8041 * unexhp9k800.c:
8042 * m/hp800.h:
8043 * m/ibmrs6000.h:
8044 * m/mips.h:
8045 * m/vax.h:
8046 * s/darwin.h:
8047 * s/freebsd.h:
8048 * s/gnu.h:
8049 * s/ms-w32.h:
8050 * s/msdos.h:
8051 * s/netbsd.h:
8052 * s/template.h: Remove references to obsolete variables.
8053
8054 * Makefile.in: Add dependencies for all unexec files.
8055 (admindir): Remove unused variable.
8056 (UNEXEC_SRC): Remove references.
8057
80582008-06-25 Chong Yidong <cyd@stupidchicken.com>
8059
8060 * xfns.c (x_default_font_parameter): If Xft is available, first
8061 try Monospace-12 for the default font.
8062
80632008-06-25 Jason Rumney <jasonr@gnu.org>
8064
8065 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8066
80672008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8068
8069 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8070
8071 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8072
80732008-06-25 Juanma Barranquero <lekktu@gmail.com>
8074
8075 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8076 <scroll-conservatively>: Fix typo in docstring.
8077
8078 * xselect.c (Fx_send_client_event): Doc fix.
8079
80802008-06-25 Kenichi Handa <handa@m17n.org>
8081
8082 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8083
8084 * font.c (font_parse_fcname): Remove unused variables.
8085 (font_sort_entites): Delete the arg SPEC. Caller changed.
8086 Fix for the case of ! best_only.
8087 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8088
8089 * lisp.h (Fstring_to_unibyte): EXFUN it.
8090
8091 * character.h (str_to_unibyte): Extern it.
8092
8093 * character.c (str_to_unibyte): New function.
8094
8095 * fns.c (Fstring_to_unibyte): New function.
8096 (syms_of_fns): Defsubr it.
8097
80982008-06-24 Kenichi Handa <handa@m17n.org>
8099
8100 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8101 DPI too.
8102 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8103
81042008-06-24 Andreas Schwab <schwab@suse.de>
8105
8106 * Makefile.in (${lispsource}loaddefs.el): Rename from
8107 ../lisp/loaddefs.el.
8108 (bootstrap-clean): Do what distclean does but don't remove
8109 Makefile.
8110 (distclean): Depend on bootstrap-clean and remove Makefile.
8111
81122008-06-24 Chong Yidong <cyd@stupidchicken.com>
8113
8114 * buffer.h (struct buffer): New member word_wrap.
8115
8116 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8117 word-wrap.
8118 (init_buffer_once): Initialize them.
8119
8120 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8121 line_wrap enum possessing three possible values.
8122
8123 * termopts.h: Replace truncate_partial_width_windows with
8124 Vtruncate_partial_width_windows.
8125
8126 * dispnew.c (direct_output_for_insert): Avoid direct output when
8127 inserting a space with word wrap on.
8128
8129 * indent.c (compute_motion): Obey integer values of
8130 truncate-partial-width-windows.
8131
8132 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8133 replacing truncate_partial_width_windows.
8134 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8135 truncate only if the window width is below that integer.
8136 (start_display, resize_mini_window, produce_stretch_glyph)
8137 (display_string, move_it_in_display_line_to): Use line_wrap.
8138 (back_to_previous_visible_line_start, reseat_1): Reset
8139 string_from_display_prop_p.
8140 (display_line): Extend default face to end of line when wrapping.
8141
81422008-06-24 Kim F. Storm <storm@cua.dk>
8143
8144 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8145 to wrap continued lines at word boundaries.
8146
81472008-06-24 Jason Rumney <jasonr@gnu.org>
8148
8149 * font.c (Ffont_face_attributes): Multiply pixel size before point
8150 conversion to avoid multiplying rounding error.
8151
81522008-06-23 Jason Rumney <jasonr@gnu.org>
8153
8154 * w32term.c (x_draw_glyph_string_background)
8155 (x_draw_glyph_string): Remove old bdf font code.
8156
8157 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8158
81592008-06-22 Kenichi Handa <handa@m17n.org>
8160
8161 * font.c (font_find_for_lface): Try the adstyle specified in
8162 the property of LFACE_FONT of LFACE (if any).
8163
81642008-06-21 Seiji Zenitani <zenitani@mac.com>
8165 Ryo Yoshitake <ryo@shiftmode.net>
8166
8167 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8168
81692008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8170
8171 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8172 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8173 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8174 (witness-emacs): Remove.
8175 (lisp, shortlisp): Move loaddefs.el earlier.
8176 (mostlyclean): Forget about witness-emacs.
8177
81782008-06-22 Glenn Morris <rgm@gnu.org>
8179
8180 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8181 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8182
81832008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8184
8185 * Makefile.in (PRECOMP): Remove.
8186 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8187 (witness-emacs): Run `compile-first'.
8188 (.el.elc): Use the new compile-onefile target.
8189
81902008-06-21 Kenichi Handa <handa@m17n.org>
8191
8192 * xftfont.c (xftfont_open): Handle QCembolden only when
8193 FC_EMBOLDEN is defined.
8194
81952008-06-21 Andreas Schwab <schwab@suse.de>
8196
8197 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8198 (.el.elc): Likewise.
8199
82002008-06-21 Miles Bader <miles@gnu.org>
8201
8202 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8203 build dir, not the lisp source dir.
8204
82052008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8206
8207 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8208 (bootstrapclean): Remove.
8209 (.el.elc): New rule.
8210 (PRECOMP): New var.
8211 (../lisp/subdirs.el): Remove.
8212 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8213 (witness-emacs): New target.
8214 (mostlyclean): Remove witness-emacs as well.
8215 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8216 Add witness-emacs dependency.
8217
82182008-06-20 Chong Yidong <cyd@stupidchicken.com>
8219
8220 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8221 defined by the font.
8222
82232008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8224
8225 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8226 (bootstrap-clean): New target that keeps TAGS around.
8227 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8228 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8229
82302008-06-20 Jason Rumney <jasonr@gnu.org>
8231
8232 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8233 Remove obsolete font code.
8234
8235 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8236 to determine language support.
8237
82382008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8239
8240 * sysdep.c (cfsetspeed): New fun extracted from the code.
8241 (cfmakeraw): Move before first use.
8242
82432008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8244
8245 * sysdep.c (cfmakeraw): Provide fallback implementation.
8246 (serial_configure): Provide fallback implementation of cfsetspeed.
8247
82482008-06-20 Kenichi Handa <handa@m17n.org>
8249
8250 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8251 the pattern.
8252
8253 * fontset.c (fontset_from_font): Copy font_spec before changing
8254 the elements.
8255
8256 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8257
82582008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8259
8260 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8261 for explicit `font' parameters.
8262
8263 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8264
82652008-06-19 Kenichi Handa <handa@m17n.org>
8266
8267 * frame.c: Include <ctype.h>.
8268 (x_set_font_backend): Allow spacing characters in the X resource
8269 for FontBackend.
8270
82712008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8272
8273 * w32fns.c, xfns.c (Qfont_param): New var.
8274 (syms_of_w32fns): Initialize it.
8275 (x_default_font_parameter): Record explicit `font' into
8276 `font-parameter'.
8277
82782008-06-18 Kenichi Handa <handa@m17n.org>
8279
8280 * font.c (font_parse_xlfd): Fix previous change.
8281 (font_parse_fcname): Don't use :fc-unknown-spec.
8282 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8283 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8284 (font_add_log): Prepend the driver name to the resulting fonts.
8285
8286 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8287 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8288 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8289
8290 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8291 (QCembolden): New variables.
8292 (syms_of_xftfont): DEFSYM them.
8293 (xftfont_open): Call XftFontMatch. Don't trust the result of
8294 XftTextExtents8 if the pixel_size is less than 5.
8295
82962008-06-18 Andreas Schwab <schwab@suse.de>
8297
8298 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8299 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8300
83012008-06-18 Jason Rumney <jasonr@gnu.org>
8302
8303 * w32font.c (w32font_list, w32font_match): Add logging.
8304
8305 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8306
83072008-06-17 Chong Yidong <cyd@stupidchicken.com>
8308
8309 * font.c (font_parse_fcname): Store divider characters for
8310 unknown-spec list. For known key symbols, intern using correct
8311 symbol name.
8312
83132008-06-17 Kenichi Handa <handa@m17n.org>
8314
8315 * xfaces.c (realize_default_face): If the frame is not on window
8316 system, set the fontset of face to nil.
8317
83182008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8319
8320 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8321
83222008-06-16 Juanma Barranquero <lekktu@gmail.com>
8323
8324 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8325 (build_font_name_from_vector): Delete externs.
8326
8327 * xfaces.c (struct font_name): Don't declare.
8328
83292008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8330
8331 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8332
83332008-06-16 Chong Yidong <cyd@stupidchicken.com>
8334
8335 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8336
83372008-06-16 Juanma Barranquero <lekktu@gmail.com>
8338
8339 * font.c (Ffont_spec): Fix usage in docstring.
8340 (Ffont_face_attributes): Doc fix.
8341
83422008-06-16 Andreas Schwab <schwab@suse.de>
8343
8344 * font.c (Ffont_face_attributes): Fix definition.
8345
83462008-06-16 Jason Rumney <jasonr@gnu.org>
8347
8348 * font.h (font_style_symbolic_from_value): Remove.
8349
8350 * font.c (font_style_symbolic_from_value): Remove.
8351 (font_style_symbolic): Revert to pre 2008-06-13 version.
8352
8353 * w32font.c (w32_to_fc_weight): New function.
8354 (w32font_full_name, logfont_to_fcname): Use it.
8355
83562008-06-16 Kenichi Handa <handa@m17n.org>
8357
8358 * font.c (font_check_object): Delete it.
8359 (font_clear_cache): Check if a font-object is alive.
8360 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8361 font-object to nil.
8362 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8363 (font_at): Don't call font_check_object.
8364 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8365
83662008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8367
8368 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8369
83702008-06-16 Chong Yidong <cyd@stupidchicken.com>
8371
8372 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8373
83742008-06-15 Chong Yidong <cyd@stupidchicken.com>
8375
8376 * font.c (font_parse_fcname): Only one decimal point.
8377 (font_unparse_fcname): Handle data in family and foundry indices
8378 as symbols, not strings.
8379 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8380
8381 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8382
8383 * font.h (font_unparse_gtkname): Add prototype.
8384
83852008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8386
8387 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8388
83892008-06-15 Andreas Schwab <schwab@suse.de>
8390
8391 * font.c (font_update_drivers): Fix crash when no drivers match.
8392
83932008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8394
8395 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8396 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8397
83982008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8399
8400 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8401
84022008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8403
8404 * process.c (Fserial_process_configure, Fprocess_send_eof):
8405 Use EQ to compare Lisp_Objects.
8406
84072008-06-13 Jason Rumney <jasonr@gnu.org>
8408
8409 * w32fns.c (Fw32_select_font): Remove old font API function.
8410
8411 * w32font.c (logfont_to_fcname): New function.
8412 (Fx_select_font): New font dialog function compatible with
8413 GTK/fontconfig version.
8414
8415 * font.c (font_style_symbolic_from_value): New function.
8416 (font_style_symbolic): Use it.
8417
8418 * font.h (font_style_symbolic_from_value): Declare new function.
8419
84202008-06-13 Juanma Barranquero <lekktu@gmail.com>
8421
8422 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8423 <font-width-table>: Fix typos in docstrings.
8424
84252008-06-13 Daniel Engeler <engeler@gmail.com>
8426
8427 These changes add serial port access.
8428 * process.c: Add HAVE_SERIAL.
8429 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8430 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8431 (list_processes_1, select_wrapper, Fstop_process)
8432 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8433 (status_notify): Modify to handle serial processes.
8434 [HAVE_SERIAL] (Fserial_process_configure)
8435 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8436 New functions.
8437 * process.h (struct Lisp_Process): Add `type'.
8438 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8439 New functions.
8440 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8441 serial ports.
b71ac3dd 8442 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8443 * w32.h: Add FILE_SERIAL.
8444 (struct _child_process): Add ovl_read, ovl_write.
8445
84462008-06-13 Kenichi Handa <handa@m17n.org>
8447
8448 * dispextern.h (enum lface_attribute_index): New member
8449 LFACE_FOUNDRY_INDEX.
8450
8451 * font.c (font_score): Delete arg alternate_families. Check only
8452 weight, slant, width, and size. Ignore the difference of alias
8453 style symbols.
8454 (font_sort_entites): Adjust for the above change. Reflect the
8455 order of font-driver to scores.
8456 (font_list_entities): Don't check alternate_familes here.
8457 (font_clear_prop): Handle foundry.
8458 (font_update_lface): Don't parse "foundry-family" form here.
8459 Handle FONT_FOUNDRY_INDEX.
8460 (font_find_for_lface): Likewise. Handle alternate families here.
8461 If registry is nil, try iso8859-1 and ascii-0.
8462 (font_open_for_lface): Pay attention to size in ENTITY.
8463 (font_open_by_name): Simplify by calling font_load_for_lface.
8464 (free_font_driver_list): Delete it.
8465 (font_update_drivers): Preserve the order of backends.
8466 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8467 of font_score and font_sort_entites.
8468 (font_update_sort_order): Likewise.
8469
8470 * xfaces.c (LFACE_FOUNDRY): New macro.
8471 (check_lface_attrs): Check foundry.
8472 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8473 (merge_face_vectors): Check foundry.
8474 (merge_face_ref): Likewise.
8475 (Finternal_set_lisp_face_attribute): Likewise.
8476 (x_update_menu_appearance): Likewise.
8477 (Finternal_get_lisp_face_attribute): Likewise.
8478 (lface_hash): Likewise.
8479 (lface_same_font_attributes_p): Likewise.
8480 (x_supports_face_attributes_p): Likewise.
8481 (tty_supports_face_attributes_p): Likewise.
8482 (Finternal_set_alternative_font_family_alist): Intern strings.
8483 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8484 (realize_default_face): Set LFACE_FOUNDRY (lface).
8485
8486 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8487 font-driver at first.
8488
8489 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8490
84912008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8492
8493 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8494
84952008-06-12 Jim Meyering <meyering@redhat.com>
8496
8497 Make unexec_free handle NULL the same way free does.
8498 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8499
85002008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8501
8502 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8503 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8504 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8505 (WEAK_ALIAS): Simplify.
8506 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8507 when searching a unibyte buffer.
8508
85092008-06-12 Chong Yidong <cyd@stupidchicken.com>
8510
8511 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8512
85132008-06-12 Juanma Barranquero <lekktu@gmail.com>
8514
8515 * w32font.c: Include ctype.h.
8516
85172008-06-11 Jason Rumney <jasonr@gnu.org>
8518
8519 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8520 misreported as space.
8521 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8522 as aliases for registry iso10646-1.
8523
85242008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8525
8526 * buffer.c (clone_per_buffer_values): Skip `name'.
8527
85282008-06-11 Chong Yidong <cyd@stupidchicken.com>
8529
8530 * font.c (font_parse_fcname): Fix last change; accept decimal
8531 points in font size.
8532
85332008-06-10 Jason Rumney <jasonr@gnu.org>
8534
8535 * w32uniscribe.c (add_opentype_font_name_to_list):
8536 Skip non unicode fonts.
8537
85382008-06-10 Chong Yidong <cyd@stupidchicken.com>
8539
8540 * xfns.c (Fx_font_dialog): New function.
8541
8542 * gtkutil.c (xg_dialog_response_cb): Rename from
8543 xg_file_response_callback.
8544 (pop_down_dialog): Rename from pop_down_file_dialog.
8545 (xg_get_file_name): Callers changed.
8546 (xg_get_font_name): New function.
8547
8548 * gtkutil.h (xg_get_font_name): Insert prototype.
8549
85502008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8551
8552 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8553 x_underline_minimum_display_offset.
8554 (syms_of_xdisp): Declare it here rather than in xterm.c.
8555 * dispextern.h (underline_minimum_offset): Declare it.
8556 * w32term.c (x_draw_glyph_string): Use it.
8557 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8558 (syms_of_xterm): Don't declare it any more.
8559 (x_draw_glyph_string): Adjust to the new name.
8560
85612008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8562
8563 * xterm.c (x_underline_minimum_display_offset): New var.
8564 (x_draw_glyph_string): Use it.
8565 (syms_of_xterm): Declare it.
8566
85672008-06-10 Chong Yidong <cyd@stupidchicken.com>
8568
8569 * font.c (font_parse_fcname): Accept GTK-style font names too.
8570
85712008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8572
8573 * dired.c (file_name_completion): Don't return t if the match is exact
8574 but with different capitalization.
8575 * minibuf.c (Ftry_completion): Simplify.
8576
8577 * window.c (Vwindow_point_insertion_type): New var.
8578 (set_window_buffer): Use it.
8579 (syms_of_window): Init and export it to Lisp.
8580
85812008-06-10 Kenichi Handa <handa@m17n.org>
8582
8583 * font.h (font_intern_prop): Prototype adjusted.
8584
8585 * font.c (font_intern_prop): New arg force_symbol.
8586 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8587 Adjust for the change of font_intern_prop.
8588
8589 * ftfont.c (ftfont_pattern_entity):
8590 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8591 (w32_registry):
8592 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8593 the change of font_intern_prop.
8594
85952008-06-09 Juanma Barranquero <lekktu@gmail.com>
8596
8597 * w32menu.c (digest_single_submenu): Declare extern.
8598
85992008-06-09 Jason Rumney <jasonr@gnu.org>
8600
8601 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8602
8603 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8604 (parse_single_submenu): Remove.
8605 (digest_single_submenu): Remove.
8606 (syms_of_w32menu): Don't initialise variables that have moved
8607 to menu.c.
8608 (set_frame_menubar): Sync with version in xmenu.c.
8609 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8610
8611 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8612 Make static again.
8613
86142008-06-09 Jason Rumney <jasonr@gnu.org>
8615
8616 Changes to w32 files related to the move of common menu code
8617 to menu.c on 2008-06-08 by Chong Yidong.
8618
8619 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8620 defs to w32gui.h.
8621 (single_keymap_panes, push_menu_item, push_menu_pane):
8622 Make globally visible.
8623
8624 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8625 (local_free, malloc_widget_value, free_widget_value)
8626 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8627 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8628 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8629 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8630 (menu_items, menu_items_allocated, menu_items_used)
8631 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8632 (init_menu_items, finish_menu_items, discard_menu_items)
8633 (grow_menu_items, push_submenu_start, push_submenu_end)
8634 (push_left_right_boundary, push_menu_pane, push_menu_item)
8635 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8636 (free_menubar_widget_tree_value, parse_single_submenu)
8637 (update_submenu_strings): Remove functions.
8638 (xmalloc_widget_value): Remove and declare extern.
8639
8640 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8641 (OBJ1): Build it.
8642
8643 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8644 (local_heap, local_alloc, local_free, malloc_widget_value)
8645 (free_widget_value): Define here.
8646
86472008-06-09 Kenichi Handa <handa@m17n.org>
8648
8649 * font.h (Qascii_0): Extern it.
8650
8651 * font.c (Qascii_0): New variable.
8652 (syms_of_font): DEFSYM it.
8653 (font_open_by_name): If the registry "iso8859-1" fails, try also
8654 "ascii-0".
8655
8656 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8657
86582008-06-08 Kenichi Handa <handa@m17n.org>
8659
8660 * .gdbinit (xfont): New command.
8661
86622008-06-08 Andreas Schwab <schwab@suse.de>
8663
8664 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8665 * Makefile.in (menu.o): Update dependencies.
8666
8667 * Makefile.in (obj): Always add menu.o.
8668 * emacs.c (main): Always call syms_of_menu.
8669 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8670
86712008-06-08 Chong Yidong <cyd@stupidchicken.com>
8672
8673 * Makefile.in: Compile menu.c.
8674
8675 * lisp.h: Declare syms_of_menu.
8676
8677 * emacs.c (main): Call syms_of_menu.
8678
8679 * keyboard.h: Relocate platform-independent menu definitions from
8680 xmenu.c.
8681
8682 * menu.c: New file. Relocate platform-independent menu
8683 definitions from xmenu.c. Suggested by Adrian Robert.
8684
8685 * xmenu.c: Remove platform-independent menu definitions.
8686 (menu_items menu_items_inuse, menu_items_allocated)
8687 (menu_items_used, menu_items_n_panes)
8688 (menu_items_submenu_depth): Move to keyboard.h.
8689 (init_menu_items, finish_menu_items, unuse_menu_items)
8690 (discard_menu_items, restore_menu_items, save_menu_items)
8691 (grow_menu_items, push_submenu_start, push_submenu_end)
8692 (push_left_right_boundary, push_menu_pane, push_menu_item)
8693 (keymap_panes, single_keymap_panes, single_menu_item)
8694 (list_of_panes, list_of_items, find_and_call_menu_selection)
8695 (xmalloc_widget_value, free_menubar_widget_value_tree)
8696 (parse_single_submenu, digest_single_submenu)
8697 (update_submenu_strings): Move to menu.c.
8698
86992008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8700
8701 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8702
87032008-06-06 Miles Bader <miles@gnu.org>
8704
8705 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8706 face, not frame default.
8707
87082008-06-05 Martin Rudalics <rudalics@gmx.at>
8709
8710 * window.c (pop_up_windows, pop_up_frames)
8711 (display_buffer_reuse_frames, Vpop_up_frame_function)
8712 (Vdisplay_buffer_function, Veven_window_heights)
8713 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8714 (Vspecial_display_function, Vsame_window_buffer_names)
8715 (Vsame_window_regexps, split_height_threshold)
8716 (Vsplit_window_preferred_function): Move those vars to window.el.
8717 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8718 (Fdisplay_buffer): Move those functions to window.el.
8719 (syms_of_window): Remove corresponding declarations.
8720 (display_buffer): New function.
8721 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8722 * dispnew.c (Flast_nonminibuf_frame): New function.
8723 * buffer.c (Fpop_to_buffer): Move to window.el.
8724
87252008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8726
8727 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8728
87292008-06-05 Kenichi Handa <handa@m17n.org>
8730
8731 * coding.c (detect_coding): Fix previous change.
8732 (detect_coding_system): Likewise.
8733
87342008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8735
8736 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8737
8738 * keymap.c (Vminibuffer_local_filename_must_match_map):
8739 Rename from Vminibuffer_local_must_match_filename_map.
8740 (syms_of_keymap):
8741 * minibuf.c (Fcompleting_read): Adjust accordingly.
8742 * commands.h: Rename declaration as well.
8743
87442008-06-05 Kenichi Handa <handa@m17n.org>
8745
8746 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8747 family name.
8748 (Ffont_put): Likewise.
8749
8750 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8751 current font-spec.
8752
8753 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8754 is unspecified.
8755
8756 * xfaces.c (realize_x_face): If the font-related face attributes
8757 are the same as those of default face, realize a new fontset from
8758 default->fontset.
8759 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8760
87612008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8762
8763 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8764 (move_it_in_display_line): New wrapper.
8765
8766 * window.c (window_scroll_pixel_based_preserve_x)
8767 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8768 (window_scroll_pixel_based, window_scroll_line_based):
8769 Use them to preserve column positions.
8770 (syms_of_window): Initialize them.
8771
8772 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8773 (HPOS . VPOS) pair.
8774
8775 * dispextern.h (move_it_in_display_line): Declare.
8776
87772008-06-05 Juanma Barranquero <lekktu@gmail.com>
8778
8779 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8780 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8781 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8782
87832008-06-04 Juanma Barranquero <lekktu@gmail.com>
8784
8785 * window.c (Fset_window_parameter): Doc fix.
8786 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8787
87882008-06-04 Joakim Verona <joakim@verona.se>
8789
8790 * window.h (struct window): Add new member window_parameters.
8791
8792 * window.c (Fwindow_parameters, Fwindow_parameter)
8793 (Fset_window_parameter): New defuns.
8794 (syms_of_window): Defsubr the new defuns.
8795 (make_window): Initialize window_parameters to nil.
8796
87972008-06-04 John Paul Wallington <jpw@pobox.com>
8798
8799 * eval.c (Fdefmacro): Doc fix.
8800
88012008-06-04 Kenichi Handa <handa@m17n.org>
8802
8803 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8804 Be sure to call setup_coding_system when we find a proper coding system.
8805 (detect_coding_system): Fix handling of coding->head_ascii.
8806
88072008-06-03 Andreas Schwab <schwab@suse.de>
8808
8809 * font.c (font_prop_validate_spacing): Fix last change.
8810
88112008-06-03 Kenichi Handa <handa@m17n.org>
8812
8813 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8814 (font_parse_fcname): Fix handling of unknown key.
8815
8816 * xfont.c (xfont_list): Try an alias.
8817
8818 * charset.c (char_charset): Return NULL if the arg charset_list is
8819 specified and C doesn't belong to any of them.
8820
88212008-06-02 Chip Coldwell <coldwell@redhat.com>
8822
8823 * font.c (font_pixel_size): Don't take cdr of an integer.
8824
88252008-06-02 Jim Meyering <meyering@redhat.com>
8826
8827 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8828 * alloc.c (xfree): Return right away for a NULL arg.
8829 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8830 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8831 * mac.c (create_apple_event_from_event_ref): Likewise.
8832 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8833 Likewise.
8834 * doprnt.c (doprnt1): Likewise.
8835 * frame.c (frame): Likewise.
8836 * keyboard.c (wipe_kboard): Likewise.
8837 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8838 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8839 * term.c (tty_default_color_capabilities, maybe_fatal)
8840 (delete_tty): Likewise.
8841 * w16select.c (string): Likewise.
8842 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8843 * w32bdf.c (w32_free_bdf_font): Likewise.
8844 * w32fns.c (w32_unload_font): Likewise.
8845 * w32font.c (w32font_close): Likewise.
8846 * window.c (size_window): Likewise.
8847 * xselect.c (receive_incremental_selection): Likewise.
8848 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8849 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8850 * w32.c (stat): Likewise.
8851
8852 Remove useless if-before-free tests.
8853 * editfns.c (Fset_time_zone_rule): Likewise.
8854 * lread.c (nosuffix): Likewise.
8855 * ralloc.c (get_bloc): Likewise.
8856 * regex.c (reg_free): Likewise.
8857 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8858 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8859 * xsmfns.c (smc_save_yourself_CB): Likewise.
8860
88612008-06-02 Kenichi Handa <handa@m17n.org>
8862
8863 * font.c (font_find_for_lface): Handle float font size.
8864 (font_open_for_lface): Likewise.
8865
8866 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8867 comparing the properties.
8868
88692008-06-01 Jason Rumney <jasonr@gnu.org>
8870
8871 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8872 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8873 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8874 Don't add empty script list.
8875 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8876
88772008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8878
8879 * Makefile.in (dot, dotdot): Remove, update users.
8880 ".." has been used elsewhere in the file for a long time.
8881 (LIBXT_STATIC): Remove conditional based on unused variable.
8882
88832008-06-01 Miles Bader <miles@gnu.org>
8884
8885 * xfaces.c (Vface_remapping_alist): New variable.
8886 (syms_of_xfaces): Initialize it.
8887 (enum named_merge_point_kind): New type.
8888 (struct named_merge_point): Add `named_merge_point_kind' field.
8889 (push_named_merge_point): Make cycle detection respect different
8890 named-merge-point kinds.
8891 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8892 Remove face-name alias resolution.
8893 (lface_from_face_name): New definition using
8894 `lface_from_face_name_no_resolve'.
8895 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8896 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8897 (get_lface_attributes): New definition that layers face-remapping on
8898 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8899 (lookup_basic_face): New function.
8900 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8901 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8902 `get_lface_attributes'.
8903 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8904 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8905 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8906
8907 * xdisp.c (init_iterator): Pass base_face_id through
8908 `lookup_basic_face' when we actually use it as a face-id.
8909 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8910 DEFAULT_FACE_ID.
8911
8912 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8913 lookup the initial face-id.
8914
8915 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8916
89172008-06-01 Juanma Barranquero <lekktu@gmail.com>
8918
8919 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8920 (Fremove_text_properties): Fix typos in docstrings.
8921
89222008-05-31 Kenichi Handa <handa@m17n.org>
8923
8924 * font.c (font_list_entities): Fix the car part of data to be
8925 stored in the cache.
8926
8927 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8928
89292008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8930
8931 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8932 Add a `test' argument so another predicate than `equal' can be used.
8933 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8934 (map_char_table): Remove unused vars `c' and `i'.
8935 * lisp.h (Foptimize_char_table): Adjust declaration.
8936 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8937
89382008-05-30 Kenichi Handa <handa@m17n.org>
8939
8940 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8941 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8942 defined.
8943
89442008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8945
8946 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8947 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8948 frame-local settings for the same variable.
8949
89502008-05-30 Kenichi Handa <handa@m17n.org>
8951
8952 * fontset.c (Ffont_info): Move to font.c.
8953 (syms_of_fontset): Delete defsubr of Sfont_info.
8954
8955 * font.c (font_style_to_value, font_score): Delete casting of the
8956 args to xstcasecmp.
8957 (register_font_driver): Increment num_font_drivers only when
8958 registering the driver globally.
8959 (Ffont_info): Move from fontset.c. Handle a font object too.
8960 (syms_of_font): Defsubr Sfont_info.
8961
89622008-05-29 Kenichi Handa <handa@m17n.org>
8963
8964 * coding.h (enum define_coding_utf8_arg_index): New enum.
8965 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8966 coding_attr_utf_bom.
8967 (enum utf_bom_type): Rename from utf_16_bom_type.
8968 (struct utf_16_spec): Adjust for the above change.
8969 (struct coding_system): Add utf_8_bom in `spec' union.
8970
8971 * coding.c (CODING_UTF_8_BOM): New macro.
8972 (enum coding_category): Delete coding_category_utf_8, add
8973 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8974 coding_category_utf_8_sig.
8975 (CATEGORY_MASK_UTF_8): Delete it.
8976 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8977 (CATEGORY_MASK_UTF_8_SIG): New macros.
8978 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8979 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8980 CATEGORY_MASK_UTF_8_SIG.
8981 (CATEGORY_MASK_UTF_8): New macro.
8982 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8983 (detect_coding_utf_8): Check BOM.
8984 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8985 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8986 (encode_coding_utf_16): Likewise.
8987 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8988 (detect_coding, detect_coding_system): Handle utf-8-auto.
8989 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8990 (syms_of_coding): Fix setting up of Vcoding_category_table.
8991
89922008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8993
8994 * process.c (Faccept_process_output): If `millisec' is non-nil,
8995 `seconds' default to 0.
8996 (wait_reading_process_output): Also return non-nil if we read output
8997 from a non-running process.
8998
89992008-05-29 Jason Rumney <jasonr@gnu.org>
9000
9001 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9002 `raster' specified.
9003 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9004 in the uniscribe backend, but disallow any font that has no
9005 unicode subrange support.
9006
90072008-05-29 Juanma Barranquero <lekktu@gmail.com>
9008
9009 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9010 Fix typos in docstrings.
9011
90122008-05-29 Kenichi Handa <handa@m17n.org>
9013
9014 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9015 (Fx_family_fonts): Set frame correctly.
9016
90172008-05-28 Jason Rumney <jasonr@gnu.org>
9018
9019 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9020
90212008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9022
9023 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9024 calling build_annotations.
9025
90262008-05-28 Juanma Barranquero <lekktu@gmail.com>
9027
9028 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9029 (Fencode_coding_string):
9030 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9031 <latin-extra-code-table>: Fix typos in docstrings.
9032 (syms_of_coding) <coding-system-alist>: Doc fix.
9033 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9034
90352008-05-28 Kenichi Handa <handa@m17n.org>
9036
9037 * fontset.c (Ffont_info): Don't call font_close_object.
9038
9039 * font.c (font_parse_family_registry): Use Ffont_put to validate
9040 foundry and family.
9041 (font_delete_unmatched): Don't check spacing.
9042 (font_list_entities): Add spacing to the spec to list fonts.
9043
9044 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9045 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9046
9047 * coding.c (encode_coding_raw_text): Fix previous change.
9048 (encode_coding_object): When the dst_object is a buffer and is
9049 different from src_object, move gap to PT.
9050
90512008-05-27 Chong Yidong <cyd@stupidchicken.com>
9052
9053 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9054
90552008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9056
9057 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9058 all branches. Compute it differently.
9059
9060 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9061
90622008-05-27 Juanma Barranquero <lekktu@gmail.com>
9063
9064 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9065 into "else if () ... else ...".
9066
90672008-05-27 Jason Rumney <jasonr@gnu.org>
9068
9069 * w32font.c (w32font_open_internal): Determine if glyph indices
9070 are likely to work here.
9071
90722008-05-27 Chong Yidong <cyd@stupidchicken.com>
9073
9074 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9075 draw overlap glyphs with appropriate highlighting.
9076
90772008-05-27 Kenichi Handa <handa@m17n.org>
9078
9079 * xfont.c (xfont_open): Fix calculation of font->average_width.
9080
90812008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9082
9083 * casefiddle.c (casify_object): Try to guess better whether the
9084 argument is a byte or a char.
9085
90862008-05-26 Andreas Schwab <schwab@suse.de>
9087
9088 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9089 Always send multiples of format size.
9090
9091 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9092
90932008-05-26 Jason Rumney <jasonr@gnu.org>
9094
9095 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9096 (compute_metrics): Don't set failure if we just cleared the cache.
9097 (w32_weight_table): Remove unused variable.
9098 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9099 backwards compatibility.
9100
91012008-05-25 Kenichi Handa <handa@m17n.org>
9102
9103 * w32term.c (x_draw_glyph_string):
9104 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9105
9106 * xfaces.c: Delete unused function prototypes.
9107 (xstrlwr, font_frame): Delete them.
9108 (clear_face_cache): Delete unused variable.
9109
9110 * xftfont.c (xftfont_open): Delete unused variable.
9111 If underline_thickness is not 1, adjust underline_position.
9112
9113 * ftxfont.c (ftxfont_open): Delete unused variable.
9114
9115 * fontset.c (face_for_char): Optimize for the case of no charset
9116 property.
9117
9118 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9119 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9120 (otf_open, font_otf_capability, generate_otf_features)
9121 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9122 Comment out by surrounding "#if 0" and "#endif" for the moment.
9123 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9124 (syms_of_font): Codes for accessing above commented out.
9125
91262008-05-24 Eli Zaretskii <eliz@gnu.org>
9127
9128 * w32proc.c: Include dispextern.h.
9129
9130 * w32.c: Include dispextern.h.
9131
91322008-05-23 Juanma Barranquero <lekktu@gmail.com>
9133
9134 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9135 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9136 Fix typos in docstrings.
9137
91382008-05-23 Jason Rumney <jasonr@gnu.org>
9139
9140 * xsmfns.c: Remove includes that are already included by config.h.
9141
91422008-05-23 Kenichi Handa <handa@m17n.org>
9143
9144 * charset.c (Qemacs, charset_emacs): New variables.
9145 (char_charset): Fix for non-Unicode characters.
9146 (syms_of_charset): Define charset_emacs.
9147
9148 * w32term.c (x_draw_glyph_string): Be sure to update
9149 s->underline_thickness and s->underline_position. Be sure to draw
9150 underline within the current line area.
9151
9152 * xterm.c (x_draw_glyph_string): Be sure to update
9153 s->underline_thickness and s->underline_position. Be sure to draw
9154 underline within the current line area.
9155
9156 * fontset.c: Delete unused variables and add casting for char *
9157 throughout the file.
9158 (fontset_font): Try the fallback fonts of the current fontset
9159 before consulting the default fontset.
9160
9161 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9162
9163 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9164
91652008-05-22 Jason Rumney <jasonr@gnu.org>
9166
9167 * font.c: Don't include strings.h.
9168
9169 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9170
9171 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9172 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9173 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9174 to call xstrcasecmp.
9175
9176 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9177
9178 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9179
9180 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9181
9182 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9183
91842008-05-22 Kenichi Handa <handa@m17n.org>
9185
9186 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9187
9188 * font.c (font_prop_validate_style): Adjust for the format
9189 change of font_style_table.
9190
9191 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9192 two args.
9193
9194 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9195 two args.
9196
91972008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9198
9199 * minibuf.c (keys_of_minibuf): Delete.
9200 * lisp.h (keys_of_minibuf): Delete.
9201 * emacs.c (main): Don't call keys_of_minibuf.
9202
92032008-05-22 Kenichi Handa <handa@m17n.org>
9204
9205 * ftfont.c (ftfont_resolve_generic_family): Rename from
9206 ftfont_list_generic_family. Return a single family for each
9207 generic family.
9208 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9209 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9210 Call font_add_log.
9211 (ftfont_match): Call font_add_log.
9212
9213 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9214 (FONT_DEBUG): Define it.
9215 (font_add_log): Extern it.
9216 (font_assert): Rename from xassert.
9217
9218 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9219 (xfont_list_family): Call font_add_log.
9220 (xfont_match): Likewise.
9221 (memq_no_quit): Delete.
9222
9223 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9224 call of Ffont_xlfd_name.
9225
9226 * xfaces.c (struct table_entry, slant_table, weight_table)
9227 (swidth_table): Move to font.c.
9228
9229 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9230 xassert are changed to font_assert. Delete many unused variables.
9231 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9232 New variables.
9233 (struct table_entry): Move from xfaces.c and modified.
9234 (weight_table, slant_table, width_table): Move from xfaces.c and
9235 contents adjusted for the change of struct table_entry.
9236 (font_style_to_value, font_style_symbolic): Adjust for the
9237 format change of font_style_table.
9238 (font_parse_family_registry): Don't overwrite existing foundry and
9239 family of font_spec.
9240 (font_score): Fix calculation of diff for sizes.
9241 (font_sort_entites): Call font_add_log.
9242 (font_delete_unmatched): Return a newly created list.
9243 (font_list_entities): Fix previous change. Call font_add_log.
9244 (font_matching_entity, font_open_entity, font_close_entity):
9245 Call font_add_log.
9246 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9247 (Finternal_set_font_style_table): Delete.
9248 (BUILD_STYLE_TABLE): New macro.
9249 (build_style_table): New function.
9250 (Vfont_log, font_log_env_checked): New variables.
9251 (font_add_log): New function.
9252 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9253 Declare Lisp variables "font-weight-table", "font-slant-table",
9254 "font-width-table", and "font-log". Initialize font_style_table.
9255
92562008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9257
9258 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9259
92602008-05-21 Seiji Zenitani <zenitani@mac.com>
9261 Ryo Yoshitake <ryo@shiftmode.net>
9262
9263 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9264 (Vframe_alpha_lower_limit): New variable.
9265 (x_set_alpha): New function.
9266
9267 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9268
9269 * xfns.c (x-create-frame, Qalpha):
9270 Initialize the frame parameter `alpha'.
9271 * xterm.c (OPAQUE, OPACITY): New.
9272 (x_set_frame_alpha): New function.
9273 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9274
9275 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9276 * w32fns.c (w32_frame_parm_handlers): Likewise.
9277
92782008-05-20 Jason Rumney <jasonr@gnu.org>
9279
9280 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9281 truetype fonts to opentype list.
9282
92832008-05-20 Juanma Barranquero <lekktu@gmail.com>
9284
9285 * fontset.c (Ffontset_info): Doc fix.
9286 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9287 <ignore-relative-composition>: Fix typos in docstrings.
9288
9289 * font.c (syms-of-font) <font-encoding-alist>:
9290 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9291 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9292 (Ffont_otf_alternates): Doc fixes.
9293
92942008-05-20 Kenichi Handa <handa@m17n.org>
9295
9296 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9297 font.h through out the file.
9298 (FONT_DRIVERS): Rename from FONTOBJ.
9299 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9300 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9301
9302 * emacs.c (main): Call syms_of_font unconditionally.
9303
9304 * font.h (find_font_encoding): Extern it.
9305
9306 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9307 fontset.c.
9308 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9309 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9310 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9311 only when HAVE_WINDOW_SYSTEM is defined.
9312 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9313 when HAVE_WINDOW_SYSTEM is defined.
9314
9315 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9316 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9317
9318 * xfaces.c: Include font.h unconditionally.
9319 (merge_face_ref, merge_face_vectors)
9320 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9321
93222008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9323
9324 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9325 indirect_variable.
9326 * eval.c (lisp_indirect_variable): New fun.
9327 (Fuser_variable_p): Use it.
9328
93292008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9330
9331 * lisp.h (indirect_variable):
9332 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9333 Use Lisp_Symbol pointers rather than Lisp_Object.
9334 Adjust callers.
9335 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9336 To this end, change calling-convention.
9337
9338 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9339 if some non-hidden buffers are selected by string&pred.
9340
93412008-05-19 Chong Yidong <cyd@stupidchicken.com>
9342
9343 * process.c (wait_reading_process_output): Always check status
9344 when in batch mode.
9345
93462008-05-19 Kenichi Handa <handa@m17n.org>
9347
9348 * font.c (font_list_entities): Fix handling of cache.
9349 (font_matching_entity): Likewise.
9350
9351 * ftfont.c (cs_iso8859_1): Delete.
9352 (ft_face_cache): New variable.
9353 (struct ftfont_info): New member fc_charset_idx.
9354 (ftfont_build_basic_charsets): Delete.
9355 (fc_charset_table): New variable.
9356 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9357 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9358 Callers changed.
9359 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9360 (ftfont_spec_pattern): New argument fc_charset_idx.
9361 Check registry more rigidly. Change callers.
9362 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9363 change of :font-entity property of the font.
9364
9365 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9366 property of the font.
9367
93682008-05-18 Juanma Barranquero <lekktu@gmail.com>
9369
9370 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9371 (Funencodable_char_position, Fcheck_coding_systems_region)
9372 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9373 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9374 (Ffind_operation_coding_system, Fset_coding_system_priority)
9375 (Fcoding_system_eol_type): Doc fixes.
9376
93772008-05-17 Glenn Morris <rgm@gnu.org>
9378
9379 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9380
93812008-05-16 Eli Zaretskii <eliz@gnu.org>
9382
9383 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9384 and st_gid.
9385
9386 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9387 HAVE_WINDOW_SYSTEM is not defined.
9388
9389 * xfaces.c (merge_face_ref, merge_face_vectors)
9390 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9391 HAVE_WINDOW_SYSTEM is defined.
9392 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9393
93942008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9395
9396 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9397
93982008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9399
9400 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9401
94022008-05-15 Kenichi Handa <handa@m17n.org>
9403
9404 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9405 preference.
9406
94072008-05-15 Glenn Morris <rgm@gnu.org>
9408
9409 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9410
94112008-05-15 Chong Yidong <cyd@stupidchicken.com>
9412
9413 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9414 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9415
9416 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9417
94182008-05-15 Kenichi Handa <handa@m17n.org>
9419
9420 * ftfont.c (ftfont_list): Downcase family name to check generic
9421 families.
9422
9423 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9424 font-spec for QCfont value.
9425
9426 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9427 buffer. Check the return value of it.
9428
94292008-05-14 Jason Rumney <jasonr@gnu.org>
9430
9431 * w32term.c (w32_get_glyph_overhangs): Remove.
9432 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9433
94342008-05-14 Kenichi Handa <handa@m17n.org>
9435
9436 * font.c (font_prop_validate): Make nil a valid value.
9437 (font_clear_cache): Check if the cached vector of entities is nil
9438 or not.
9439
94402008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9441
9442 * emacs.c (main_thread): Conditionalize on
9443 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9444 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9445
9446 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9447 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9448 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9449
94502008-05-14 Kenichi Handa <handa@m17n.org>
9451
9452 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9453 has no corresponding coding system.
9454
94552008-05-14 Jason Rumney <jasonr@gnu.org>
9456
9457 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9458
9459 * w32font.h (w32font_open_internal): Update declaration.
9460
9461 * w32font.c (w32font_open_internal): Change last argument from
9462 w32font_info struct to font object. Fill in font object from
9463 font_entity. Get Outline metrics if possible. Use them to
9464 calculate underline position and thickness. Use xlfd name as name
9465 property. Don't set codepage.
9466 (w32font_open): Pass font_object to w32font_open_internal. Don't
9467 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9468 (w32font_draw): Use s->font.
9469 (clear_cached_metrics): Don't clear non-existent blocks.
9470
9471 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9472 font was not found.
9473 (x_draw_glyph_string): Use underline position and thickness from font.
9474
9475 * w32uniscribe.c (uniscribe_open): Pass font_object to
9476 w32font_open_internal.
9477
94782008-05-14 Kenichi Handa <handa@m17n.org>
9479
9480 These changes are to delete all legacy font-handling codes, and
9481 make Emacs use only font-backends.
9482
9483 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9484 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9485
9486 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9487
9488 * charset.h (Vcharset_non_preferred_head)
9489 (Vcurrent_iso639_language): Extern them.
9490
9491 * charset.c (Vcharset_non_preferred_head): New variable.
9492 (Vcurrent_iso639_language): New variable.
9493 (syms_of_charset): Declare it as a Lisp variable.
9494 (char_charset): Don't check non preferred charsets. As a last
9495 resort, return charset_unicode.
9496 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9497
9498 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9499 conditionals. Don't check enable_font_backend. Delete all codes
9500 used only when USE_FONT_BACKEND is not defined.
9501
9502 * dispextern.h (struct glyph_string): Change type of `font' to
9503 `struct font *'.
9504 (struct glyph_string): New member underline_position and
9505 underline_thickness.
9506 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9507 (struct face): Change type of `font' to `struct font *'. Remove
9508 members `font_name', `font_info_id'.
9509 (per_char_metric, encode_char): Delete externs.
9510 (calc_pixel_width_or_height): Adjust the prototype.
9511
9512 * emacs.c (enable_font_backend): Delete extern.
9513 (main): Don't set enable_font_backend. Don't check the command
9514 line argument "-disable-font-backend".
9515
9516 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9517 (enum font_property_index): New members FONT_DPI_INDEX,
9518 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9519 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9520 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9521 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9522 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9523 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9524 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9525 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9526 (struct font_spec, struct font_entity): New structs.
9527 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9528 (struct font): Many members from old "struct font_info" moved to
9529 here. Members font and entity deleted.
9530 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9531 the new font-related objects.
9532 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9533 (CHECK_FONT_GET_OBJECT): Likewise.
9534 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9535 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9536 (struct font_driver): New members case_sensitive anc check. Type
9537 of the member list and open changed.
9538 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9539 (font_symbolic_width, font_find_object, font_get_spec)
9540 (font_set_lface_from_name): Delete extern.
9541 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9542
9543 * font.c: Include <strings.h>.
9544 (enable_font_backend): Delete it.
9545 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9546 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9547 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9548 (null_string): Delete it.
9549 (null_vector): Make it static.
9550 (font_family_alist): Delete it.
9551 (Qnormal): Extern it.
9552 (QCextra, QClanguage): Delete it.
9553 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9554 (font_make_spec, font_make_entity, font_make_object)
9555 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9556 the string. Callers changed.
9557 (font_pixel_size): Adjusted for the format change of font-related
9558 objects.
9559 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9560 (font_style_to_value, font_style_symbolic): New function.
9561 (build_font_family_alist): Delete it.
9562 (font_registry_charsets): Use Fassoc_string instead of
9563 assq_no_quit.
9564 (font_prop_validate_symbol): Don't return null_string.
9565 (font_prop_validate_style): Adjusted for the change of
9566 style-related values in a font vector.
9567 (font_property_table): Delete entries for QClanguage and
9568 QCantialias, add entries for QCavgwidth.
9569 (get_font_prop_index): Delete the 2nd argument FROM.
9570 (font_prop_validate): Arguments changed.
9571 (font_put_extra): Adjusted for the change of font-related objects.
9572 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9573 (font_parse_fcname, font_unparse_fcname)
9574 (font_prepare_composition): Likewise.
9575 (font_parse_family_registry): Renamed from font_merge_old_spec.
9576 (otf_open): Delete the 1st arg entity.
9577 (font_otf_capability): Adjusted for the above change.
9578 (font_score): New arg alternate_families. Adjusted for the change
9579 of font-related objects.
9580 (font_sort_entites): New arg best_only.
9581 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9582 Delete them.
9583 (font_match_p): Check alternate families.
9584 (font_find_object): Delete it.
9585 (font_check_object): New function.
9586 (font_clear_cache): Adjusted for the change of font-related objects.
9587 (font_delete_unmatched): New arg.
9588 (font_list_entities): Call font_driver->list with a spec that
9589 doesn't specify style-related properties.
9590 (font_matching_entity): Arguments changed. Caller changed.
9591 (font_open_entity): Adjusted for the change of font-related objects.
9592 (font_close_object, font_has_char, font_encode_char)
9593 (font_get_name, font_get_spec): Likewise.
9594 (font_spec_from_name, font_clear_prop, font_update_lface):
9595 New functions.
9596 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9597 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9598 (font_at): Adjusted for the change of font-related objects.
9599 (font_range): New function.
9600 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9601 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9602 (Fcopy_font_spec, Fmerge_font_spec): New function.
9603 (Ffont_family_list): Renamed from list-families.
9604 (Finternal_set_font_style_table): Arguments changed.
9605 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9606 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9607 change of font-related objects.
9608 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9609
9610 * fontset.h (struct font_info): Delete it. Most members go to
9611 struct font.
9612 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9613 (enum FONT_SPEC_INDEX): Delete it.
9614 (font_info, list_fonts_func, load_font_func, query_font_func)
9615 (set_frame_fontset_func, find_ccl_program_func)
9616 (get_font_repertory_func, new_fontset_from_font_name): Delete
9617 externs.
9618 (fontset_from_font_name): Extern it.
9619 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9620 (FONT_INFO_FROM_FACE): Deleted.
9621 (face_for_font): Adjust prototype.
9622
9623 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9624 conditionals. Don't check enable_font_backend. Delete all codes
9625 used only when USE_FONT_BACKEND is not defined.
9626 (get_font_info_func, list_font_func, load_font_func)
9627 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9628 (get_font_repertory_func): Delete them.
9629 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9630 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9631 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9632 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9633 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9634 (fontset_compare_rfontdef): New function.
9635 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9636 rfont-defs by qsort. Adjusted for the change of font-group vector.
9637 (load_font_get_repertory): Deleted.
9638 (fontset_find_font): Use new macros to ref/set elements of
9639 font-def and rfont-def.
9640 (fontset_font): Fix the timing of remembering that no font for C.
9641 (free_face_fontset): Do nothing if the face has no fontset.
9642 (face_suitable_for_char_p): Use new macros to ref/set elements of
9643 rfont-def.
9644 (face_for_char): Likewise. Call face_for_char with font_object.
9645 (fs_load_font): Delete. Delete #pragma surrounding it.
9646 (fs_query_fontset): Use strcasecmp instead of strcmp.
9647 (generate_ascii_font_name): Adjusted for the format change of
9648 font-spec.
9649 (Fset_fontset_font): Likewise. Use new macros to set elements of
9650 font-def.
9651 (Fnew_fontset): Use font_unparse_xlfd to generate
9652 FONTSET_ASCII (fontset).
9653 (new_fontset_from_font_name): Deleted.
9654 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9655 a fontset is already created for the font. FIx updating of
9656 Vfontset_alias_alist.
9657 (fontset_ascii_font): Deleted.
9658 (Ffont_info): Adjusted for the format change of font-spec.
9659 (Finternal_char_font): Likewise.
9660 (Ffontset_info): Likewise.
9661 (syms_of_fontset): Don't check load_font_func.
9662
9663 * fns.c (internal_equal): Handle PREV_FONT.
9664
9665 * frame.h: Delete USE_FONT_BACKEND conditional.
9666
9667 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9668 conditionals. Don't check enable_font_backend. Delete all codes
9669 used only when USE_FONT_BACKEND is not defined.
9670 (x_set_font): Call x_new_font, not x_new_fontset2.
9671 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9672 already set for the frame.
9673
9674 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9675 a font-entity by font_make_entity. Use font_intern_prop instead
9676 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9677 font property. If a font is scalable, set avgwidth property to 0.
9678 Set font-entity property by font_put_extra.
9679 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9680 (ffont_driver): Adjusted for the change of struct font_driver.
9681 (ftfont_spec_pattern): New function.
9682 (ftfont_list): Return a list, not vector.
9683 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9684 (ftfont_list_family): Don't downcase names.
9685 (ftfont_free_entity): Deleted.
9686 (ftfont_open): Return a font-object. Adjusted for the change of
9687 struct font. Get underline_thickness and underline_position from
9688 font property. Don't update dpyinfo->smallest_font_height and
9689 dpyinfo->smallest_char_width.
9690 (ftfont_close): Don't free `struct font'.
9691 (ftfont_has_char): Adjusted for the format change of font-entity.
9692 (ftfont_encode_char, ftfont_text_extents): Likewise.
9693
9694 * ftxfont.c (ftxfont_list): Return a list, not vector.
9695 (ftxfont_open): Return a font-object. Adjusted for the change of
9696 struct font. Get underline_thickness and underline_position from
9697 font property. Don't update dpyinfo->smallest_font_height and
9698 dpyinfo->smallest_char_width.
9699 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9700 (ftxfont_draw): Adjusted for the change of struct font.
9701
9702 * image.c (image_ascent): Don't include "charset.h". Include
9703 "character.h" and "font.h".
9704
9705 * lisp.h (enum pvec_type): New member PREV_FONT.
9706 (Fassoc_string): EXFUN it.
9707
9708 * print.c: Include font.h.
9709 (print_object): Handle font-related objects.
9710
9711 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9712 conditionals. Don't check enable_font_backend. Delete all codes
9713 used only when USE_FONT_BACKEND is not defined.
9714 (handle_auto_composed_prop): Do nothing if it->f is not on a
9715 window system. Check how many following characters can be
9716 displayed by the same font.
9717 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9718 'struct font *'.
9719 (get_char_face_and_encoding): Assign the whole encoding task to
9720 the `encode-char' method of a font driver.
9721 (fill_composite_glyph_string): Adjusted for the change of `struct
9722 face' and `struct glyph_string'.
9723 (fill_glyph_string): Likewise.
9724 (get_per_char_metric): Arguments changed.
9725 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9726 and `struct glyph_string'.
9727 (produce_stretch_glyph, calc_line_height_property)
9728 (x_produce_glyphs): Likewise.
9729
9730 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9731 conditionals. Don't check enable_font_backend. Delete all codes
9732 used only when USE_FONT_BACKEND is not defined. Use
9733 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9734 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9735 (Qp): Extern them.
9736 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9737 Deleted.
9738 (struct font_name): Deleted.
9739 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9740 (compare_fonts_by_sort_order): New function.
9741 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9742 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9743 Deleted.
9744 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9745 compare_fonts_by_sort_order.
9746 (Fx_font_family_list): Call Ffont_family_list.
9747 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9748 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9749 (face_symbolic_slant, face_symbolic_swidth)
9750 (split_font_name_into_vector, build_font_name_from_vector)
9751 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9752 (font_rescale_ratio, split_font_name, build_font_name)
9753 (free_font_names, sort_fonts, x_face_list_fonts)
9754 (face_font_available_p, sorted_font_list, cmp_font_names)
9755 (font_list_1, concat_font_list, font_list, remove_duplicates):
9756 Deleted.
9757 (Fx_list_fonts): Use Ffont_list.
9758 (LFACE_AVGWIDTH): Deleted.
9759 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9760 by FONTP.
9761 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9762 (set_lface_from_font_name): Delete it.
9763 (set_lface_from_font): Renamed from
9764 set_lface_from_font_and_fontset. Caller changed. Don't set
9765 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9766 for face.
9767 (merge_face_vectors): Copy font-spec if necessary.
9768 Clear properties of the font-spec if necessary.
9769 (merge_face_ref): Clear properties of the font-spec if necessary.
9770 (Finternal_set_lisp_face_attribute): Likewise.
9771 (set_font_frame_param): Use font_load_for_lface to load a
9772 font-object, and call Fmodify_frame_parameters with it.
9773 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9774 font name by Ffont_xlfd_name.
9775 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9776 QCslant, and QCwidth.
9777 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9778 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9779 Compare fonts by EQ.
9780 (lookup_non_ascii_face): Deleted.
9781 (face_for_font): The 2nd argument changed.
9782 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9783 Check atomic font properties by case insensitive.
9784 (realize_non_ascii_face): Set face->overstrike correctly.
9785 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9786 (dump_realized_face): Get font name from
9787 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9788
9789 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9790 conditionals. Don't check enable_font_backend. Delete all codes
9791 used only when USE_FONT_BACKEND is not defined.
9792 (xic_create_xfontset): Original code deleted and renamed from
9793 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9794 (x_make_gc): Don't set GCFont in GCs.
9795 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9796 opened by "fixed".
9797 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9798 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9799 get_font_repertory_func.
9800
9801 * xfont.c: Include <stdlib.h> and "ccl.h".
9802 (struct xfont_info): New structure.
9803 (xfont_query_font): Deleted.
9804 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9805 moved from xterm.c.
9806 (xfont_driver): Adjusted for the change of struct font_driver.
9807 (compare_font_names): New function.
9808 (xfont_list_pattern): Sort font names case insensitively. Make
9809 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9810 (xfont_list): Return a list, not vector.
9811 (xfont_match): If the font doesn't have QCname property, generate
9812 a name from the other font properties.
9813 (xfont_open): Return a font-object. Adjusted for the change of
9814 struct font. Get underline_thickness and underline_position from
9815 font property. Don't update dpyinfo->smallest_font_height and
9816 dpyinfo->smallest_char_width.
9817 (xfont_close): Don't free struct font.
9818 (xfont_prepare_face): Adjusted for the change of struct font.
9819 (xfont_done_face): Deleted.
9820 (xfont_has_char): Adjusted for the change of struct font.
9821 (xfont_encode_char, xfont_draw): Likewise.
9822 (xfont_check): New function.
9823
9824 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9825 callback function.
9826 (xftfont_match): Adjusted for the format change of font-entity.
9827 (xftfont_open): Adjusted for the format change of font-entity and
9828 font-object. Adjusted for the change of struct font. Return a
9829 font-object. Don't update dpyinfo->smallest_font_height and
9830 dpyinfo->smallest_char_width.
9831 (xftfont_close): Block input while calling XftFontClose.
9832 (xftfont_prepare_face): Don't block input while calling
9833 xftfont_get_colors. Adjusted for the change of struct font.
9834 (xftfont_shape): Return value of error case fixed.
9835
9836 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9837
9838 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9839 conditionals.
9840 (FONT_WIDTH): Return (f)->max_width.
9841 (struct x_display_info): Delete member `font'.
9842 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9843 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9844 (struct x_output): Change type of `font' to `struct font *'.
9845
9846 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9847 conditionals. Don't check enable_font_backend. Delete all codes
9848 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9849 (x_per_char_metric, x_encode_char): Deleted.
9850 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9851 (x_compute_glyph_string_overhangs): Adjusted for the change of
9852 `struct face'.
9853 (x_draw_glyph_string_foreground)
9854 (x_draw_composite_glyph_string_foreground): Likewise.
9855 (x_draw_glyph_string): Likewise. Use font->underline_position and
9856 font->underline_thickness.
9857 (x_new_font): Renamed from x_new_fontset2.
9858 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9859 (x_check_font): Call `check' method of a font driver.
9860 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9861 (x_query_font, x_get_font_repertory): Deleted.
9862 (x_find_ccl_program): Renamed and moved to xfont.c.
9863 (x_redisplay_interface): Adjusted for the change of `struct
9864 redisplay_interface'.
9865
9866 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9867 conditionals. Don't check enable_font_backend. Delete all codes
9868 used only when USE_FONT_BACKEND is not defined. Surround non-used
9869 code by "#ifdef OLD_FONT" and "endif".
9870 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9871
9872 * w32font.h (struct w32font_info): New member.
9873 (FONT_COMPAT): New macro.
9874 (w32font_open_internal): Prototype adjusted.
9875
9876 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9877 OLD_FONT" and "endif".
9878
9879 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9880 conditionals. Don't check enable_font_backend. Delete all codes
9881 used only when USE_FONT_BACKEND is not defined.
9882 (w32font_open): Return a font-object. Make a font-object by
9883 font_make_object. Adjusted for the change of struct w32font_info.
9884 (w32font_close): Don't free struct font. Adjusted for the change
9885 of struct w32font_info.
9886 (w32font_encode_char, w32font_text_extents, w32font_draw):
9887 Adjusted for the change of struct w32font_info.
9888 (w32font_draw): Likewise.
9889 (w32font_list_internal): Return a list, not vector.
9890 (w32font_open_internal): Change the 4th arg to font-object.
9891 Adjusted for the change of struct w32font_info and font-object format.
9892 (add_font_name_to_list): Don't downcase names.
9893 (w32_enumfont_pattern_entity): Make a font-entity by
9894 font_make_entity. Adjusted for the format change of font-entity.
9895 Use FONT_SET_STYLE to set a style-related font property. If a
9896 font is scalable, set avgwidth property to 0. Set font-entity
9897 property by font_put_extra.
9898 (font_matches_spec): Adjusted for the format change of font-entity.
9899 (w32_weight_table, w32_decode_weight): New variables.
9900 (w32_encode_weight): New function.
9901 (fill_in_logfont): Adjusted for the format change of font-spec.
9902 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9903 weight value.
9904 (w32font_driver): Adjusted for the change of struct font_driver.
9905
9906 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9907 conditionals. Don't check enable_font_backend. Surround non-used
9908 code by "#ifdef OLD_FONT" and "endif".
9909 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9910 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9911
9912 * w32term.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
9917 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9918 (uniscribe_open): Return value changed to font-object.
9919 Adjusted for the format change of font-object.
9920 (uniscribe_otf_capability): Adjusted for the change of struct font.
9921 (add_opentype_font_name_to_list): Don't downcase names.
9922 (uniscribe_font_driver): Adjusted for the change of struct
9923 font_driver.
9924
99252008-05-13 Chong Yidong <cyd@stupidchicken.com>
9926
9927 * dispnew.c (update_frame_1): Check if tty output is still valid
9928 before flushing it.
9929
99302008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9931
9932 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9933 to Gtk+ menus.
9934
99352008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9936
9937 * dired.c (file_name_completion): Tweak the code so as to always do it
9938 in a single pass. Tighten the scope of some variables.
9939
9940 * dired.c (Qdefault_directory): New var.
9941 (file_name_completion): Use it instead of Fexpand_file_name.
9942 (syms_of_dired): Initialize it.
9943
99442008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9945
9946 * fileio.c (double_dollars): Remove dead code.
9947
99482008-05-10 Eli Zaretskii <eliz@gnu.org>
9949
9950 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9951 Mention w32-get-true-file-attributes in doc string.
9952
9953 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9954
99552008-05-09 Glenn Morris <rgm@gnu.org>
9956
9957 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9958 2008-04-23.
9959
99602008-05-09 Eli Zaretskii <eliz@gnu.org>
9961
9962 Support for reporting owner and group of each file on MS-Windows:
9963 * dired.c (stat_uname, stat_gname): New functions, with special
9964 implementation for w32.
9965 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9966
9967 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9968 (dflt_group_name): New static variable.
9969 (dflt_group): Rename from the_group.
9970 (init_user_info): Init dflt_group fields. Get user's group name
9971 from LookupAccountSid.
9972 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9973 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9974 New initialization states.
9975 (globals_of_w32): Initialize them to zero. Initialize the default
9976 group name to "None".
9977 (GetFileSecurity_Name): New global var, the name of the function
9978 to call for GetFileSecurity.
9979 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9980 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9981 (get_file_security, get_security_descriptor_owner)
9982 (get_security_descriptor_group, is_valid_sid)
9983 (get_file_security_desc, get_rid, get_name_and_id)
9984 (get_file_owner_and_group): New functions.
9985 (stat): Use get_file_security_desc and get_file_owner_and_group to
9986 report the owner and primary group of each file. Don't ignore the
9987 high 32 bits of file's size, now that st_size is 64-bit wide.
9988 Fix test when to get true file attributes.
9989 (init_user_info): Use get_rid instead of equivalent inline code.
9990 (fstat): Don't ignore the high 32 bits of file's size.
9991
99922008-05-09 Chong Yidong <cyd@stupidchicken.com>
9993
9994 * image.c (png_load): Use correct bit-depth for setting background
9995 color.
9996
99972008-05-08 Eli Zaretskii <eliz@gnu.org>
9998
9999 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10000 epa-hook.elc.
10001
100022008-05-08 Juanma Barranquero <lekktu@gmail.com>
10003
10004 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10005
100062008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10007
10008 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10009 because the original parameters are in pure storage now.
10010 (mac_window): Remove unused params. Update callers.
10011
100122008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10013
10014 * lread.c (substitute_object_recurse): Use lower-level primitives.
10015 Don't signal errors when traversing sub-char-tables.
10016 Don't loop over all the possible characters when traversing char-tables.
10017
10018 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10019 just like we do in print.c.
10020
100212008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10022
10023 * minibuf.c (Ftry_completion): Remove code left over from when we used
10024 scmp instead of Fcompare_strings.
10025
100262008-05-04 Juanma Barranquero <lekktu@gmail.com>
10027
10028 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10029
100302008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10031
10032 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10033 Create bitmap context in native byte order.
10034
10035 * macterm.c (XDrawLine)
10036 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10037 context in native byte order.
10038
100392008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10040
10041 * config.in: Regenerate.
10042
10043 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10044 New definitions for Image I/O support.
10045 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10046 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10047 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10048 (mac_data_provider_release_data, image_load_image_io)
10049 [USE_MAC_IMAGE_IO]: New functions.
10050 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10051 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10052 (init_image_func_pointer) [MAC_OSX]: Remove function.
10053 (image_load_quartz2d) [MAC_OSX]: Check availability of
10054 CGImageCreateWithPNGDataProvider at compile time.
10055 Use lowercase `false' for boolean constant.
10056 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10057 Use image_load_image_io.
10058 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10059 Don't check MyCGImageCreateWithPNGDataProvider.
10060 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10061 Don't call init_image_func_pointer.
10062
10063 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10064
10065 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10066 Make variable non-static.
10067 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10068 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10069
10070 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10071 (RED_FROM_ULONG): Mask off higher bits.
10072 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10073
10074 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10075 Include AvailabilityMacros.h.
10076 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10077 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10078
100792008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10080
10081 * chartab.c (Fset_char_table_range): If range is t, really set all
10082 chars to that value.
10083
100842008-05-03 Eli Zaretskii <eliz@gnu.org>
10085
10086 * dired.c (Ffile_attributes): Don't allow the device number become
10087 negative.
10088
100892008-05-02 Daiki Ueno <ueno@unixuser.org>
10090
10091 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10092
100932008-05-02 Juri Linkov <juri@jurta.org>
10094
10095 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10096 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10097 DEFAULT argument as a list of default values in docstrings.
10098
100992008-05-01 Chong Yidong <cyd@stupidchicken.com>
10100
10101 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10102
101032008-05-01 Martin Rudalics <rudalics@gmx.at>
10104
10105 * dispnew.c (change_frame_size_1): Preserve small windows when
10106 shrinking frames by calling set_window_height|width with third
10107 arg 2.
10108
10109 * window.h (struct window): Replace field too_small_ok by field
10110 resize_proportionally.
10111
10112 * window.c (make_window): Initialize resize_proportionally.
10113 (enlarge_window): Temporarily set resize_proportionally to make
10114 sure that shrink_windows does scale the window proportionally.
10115 (shrink_windows): When window has resize_proportionally set try
10116 to shrink it proportionally by stealing from other windows.
10117 (struct saved_window, Fset_window_configuration)
10118 (compare_window_configurations): Handle resize_proportionally.
10119 (WINDOW_TOTAL_SIZE): New macro.
10120 (window_min_size, shrink_windows, size_window): Use it.
10121 (check_min_window_sizes): Remove. Invalid values of
10122 window-min-height|width are handled by window_min_size_2 now.
10123 (size_window, Fsplit_window, enlarge_window)
10124 (adjust_window_trailing_edge, grow_mini_window): Don't call
10125 check_min_window_sizes.
10126 (window_min_size_2, window_min_size_1, window_min_size):
10127 New argument safe_p for retrieving "safe" minimum sizes.
10128 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10129 (adjust_window_trailing_edge, grow_mini_window):
10130 Adjust arguments of window_min_size... functions.
10131 (shrink_windows): Argument min_size removed. New argument
10132 safe_p allows shrinking windows to their safe minimum sizes.
10133 Calculate minimum size and decide whether a window shall be
10134 deleted for each window individually.
10135 (size_window): When nodelete_p equals 2, tell shrink_windows to
10136 delete windows only if their new minimum size is no more safe.
10137 (shrink_window_lowest_first): Call window_min_size_1 to make
10138 sure to preserve modeline of bottom-most window when resizing
10139 the minibuffer.
10140 (Fset_window_configuration, Fcurrent_window_configuration)
10141 (compare_window_configurations): Do not handle
10142 window-min-height|width any more.
10143 (syms_of_window): Clarify window-min-height|width doc-strings.
10144
101452008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10146
10147 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10148 some more. Copy some of the code from Ftry_completions.
10149 Remove special case code that dates back to initial revision when the
10150 slash was only added when necessary and that can't trigger nowadays.
10151
101522008-04-27 Kenichi Handa <handa@m17n.org>
10153
10154 * font.c (font_prop_validate): Signal `error' instead of `font'.
10155
101562008-04-29 Jason Rumney <jasonr@gnu.org>
10157
10158 * w32fns.c (Fw32_battery_status): New defun.
10159 (syms_of_w32fns): Defsubr it.
10160
101612008-04-28 Andreas Schwab <schwab@suse.de>
10162
10163 * dired.c (file_name_completion): Fix another mixing of encoded
10164 and decoded names.
10165
101662008-04-28 Juanma Barranquero <lekktu@gmail.com>
10167
10168 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10169
101702008-04-27 Juanma Barranquero <lekktu@gmail.com>
10171
10172 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10173
101742008-04-27 Andreas Schwab <schwab@suse.de>
10175
10176 * dired.c (file_name_completion): Fix inappropriate mixing of
10177 encoded and decoded names.
10178
10179 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10180
10181 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10182
101832008-04-26 Eli Zaretskii <eliz@gnu.org>
10184
10185 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10186 2008-03-31, it's not needed anymore with `struct stat' definition
10187 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10188 for the same reasons.
10189
101902008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10191
10192 * m/sparc.h: Additional redefinitions for GNU/Linux.
10193
101942008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10195
10196 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10197 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10198 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10199 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10200 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10201 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10202 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10203 Likewise.
10204
10205 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10206 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10207 (mac_ax_number_of_characters): Add externs.
10208 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10209 [USE_MAC_TSM]: Likewise.
10210 (mac_handle_text_input_event) [MAC_OSX]:
10211 Handle kEventTextInputOffsetToPos for no active input area case.
10212 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10213 (mac_handle_document_access_event)
10214 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10215 (install_application_handler) [MAC_OSX]: Register handlers for
10216 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10217 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10218 Register mac_handle_document_access_event.
10219
10220 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10221 Make functions non-static.
10222
102232008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10224
10225 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10226 (read_file_name_completion_ignore_case, insert_default_directory)
10227 (Qdefault_directory): Move to minibuffer.el.
10228 (Fread_file_name): Call the new `read-file-name' instead.
10229
102302008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10231
10232 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10233 Make function non-static.
10234 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10235 Remove function.
10236 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10237 Move to mactoolbox.c.
10238 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10239
10240 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10241 (mac_rect_make): New macro.
10242
10243 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10244 instead of float.
10245 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10246 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10247 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10248 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10249 CGRectMake.
10250 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10251 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10252 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10253 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10254 instead of WindowRef in argument type.
10255 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10256 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10257 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10258 instead of DISPLAY. All uses changed.
10259 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10260 (x_calc_absolute_position): Simplify so as not to use
10261 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10262
10263 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10264 instead of WindowRef in argument type.
10265 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10266 [TARGET_API_MAC_CARBON]: Remove externs.
10267 (create_apple_event, mac_event_parameters_to_lisp)
10268 [TARGET_API_MAC_CARBON]: Add externs.
10269
10270 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10271 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10272 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10273 is clicked.
10274 (x_activate_menubar): Remove extern for saved_menu_event_location.
10275 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10276 Move from mac.c.
10277
102782008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10279
10280 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10281 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10282
102832008-04-23 Jason Rumney <jasonr@gnu.org>
10284
10285 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10286 attributes only for local files.
10287
10288 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10289 default to Qlocal.
10290
102912008-04-22 Juri Linkov <juri@jurta.org>
10292
10293 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10294 read-buffer-to-switch instead of using the letter "B".
10295
102962008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10297
10298 * fileio.c (Qdefault_directory): New variable.
10299 (Fread_file_name): Use it to pass `dir' to the completion functions.
10300
103012008-04-20 Chong Yidong <cyd@stupidchicken.com>
10302
10303 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10304
103052008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10306
10307 * keyboard.c (Vpre_help_message): Remove.
10308 (show_help_echo): Remove default C code.
10309
10310 * dired.c (directory_files_internal, file_name_completion):
10311 Only call ENCODE_FILE if the string is indeed decoded.
10312
103132008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10314
10315 * Makefile.in (TOOLKIT_DEFINES): Remove.
10316 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10317
103182008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10319
10320 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10321 (mactoolbox.o): New target.
10322
10323 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10324 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10325
10326 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10327 Use mac_set_frame_window_background instead of XSetWindowBackground.
10328 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10329 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10330 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10331 instead of SetWindowTitleWithCFString.
10332 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10333 Move function to mactoolbox.c.
10334 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10335 Use mac_set_window_modified instead of SetWindowModified.
10336 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10337 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10338 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10339 FrontNonFloatingWindow. Use mac_activate_window instead of
10340 ActivateWindow. Use mac_active_non_floating_window instead of
10341 ActiveNonFloatingWindow.
10342 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10343 Use mac_show_hourglass and mac_hide_hourglass.
10344 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10345 instead of GetGlobalMouse.
10346 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10347 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10348 Use mac_bring_window_to_front instead of BringToFront.
10349 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10350 mactoolbox.c.
10351 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10352 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10353 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10354 mactoolbox.c.
10355
10356 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10357 (XtPointer): Move typedef from macmenu.c.
10358 (enum button_type): Move enum from macmenu.c.
10359 (widget_value): Move typedef from macmenu.c.
10360 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10361 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10362 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10363 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10364 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10365 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10366 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10367 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10368 (Selection): Move typedef from macselect.c.
10369 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10370 macterm.c.
10371 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10372 (mac_is_window_collapsed, mac_bring_window_to_front)
10373 (mac_send_window_behind, mac_hide_window, mac_show_window)
10374 (mac_collapse_window, mac_front_non_floating_window)
10375 (mac_active_non_floating_window, mac_activate_window)
10376 (mac_move_window_structure, mac_move_window, mac_size_window)
10377 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10378
10379 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10380 (enum mac_menu_kind): Move enum to mactoolbox.c.
10381 (min_menu_id): Move variable to mactoolbox.c.
10382 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10383 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10384 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10385 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10386 [TARGET_API_MAC_CARBON]: Likewise.
10387 (XtPointer): Move typedef to macgui.h.
10388 (enum button_type): Move enum to macgui.h.
10389 (widget_value): Move typedef to macgui.h.
10390 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10391 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10392 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10393 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10394 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10395 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10396 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10397 (popup_activated_flag): Make variable non-static.
10398 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10399 (add_menu_item, fill_menu, dispose_menus):
10400 Move functions to mactoolbox.c.
10401 (restore_show_help_function, menu_target_item_handler)
10402 (install_menu_target_item_handler, mac_handle_dialog_event)
10403 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10404 [TARGET_API_MAC_CARBON]: Likewise.
10405 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10406 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10407 (find_and_call_menu_selection, name_is_separator): Make function
10408 non-static.
10409 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10410 to mactoolbox.c.
10411 (set_frame_menubar): Don't call install_menu_quit_handler.
10412 (menu_item_selection): New variable.
10413 (mac_menu_show): Use create_and_show_popup_menu.
10414 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10415 selection but set variable menu_item_selection. All uses changed.
10416 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10417 Call install_menu_quit_handler. Move to mactoolbox.c.
10418
10419 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10420 (Selection): Move typedef to macgui.h.
10421 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10422 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10423 Make variables non-static.
10424 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10425 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10426 Make functions non-static.
10427 (Vmac_service_selection) [MAC_OSX]: Likewise.
10428 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10429 (mac_valid_selection_target_p, mac_clear_selection)
10430 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10431 (mac_put_selection_value, mac_selection_has_target_p)
10432 (mac_get_selection_value, mac_get_selection_target_list)
10433 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10434 Move functions to mactoolbox.c.
10435 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10436 Likewise.
10437 (copy_scrap_flavor_data, mac_handle_service_event)
10438 (install_service_handler) [MAC_OSX]: Likewise.
10439 (syms_of_macselect) <Vmac_dnd_known_types>:
10440 Use mac_dnd_default_known_types.
10441
10442 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10443 Move to mactoolbox.c.
10444 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10445 (Fx_selection_owner_p): Add EXFUN.
10446 (install_window_handler, remove_window_handler, XSetWindowBackground):
10447 Remove externs.
10448 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10449 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10450 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10451 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10452 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10453 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10454 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10455 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10456 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10457 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10458 (mac_valid_selection_target_p, mac_clear_selection)
10459 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10460 (mac_put_selection_value, mac_selection_has_target_p)
10461 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10462 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10463 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10464 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10465 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10466 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10467 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10468 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10469 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10470
10471 * mactoolbox.c: New file.
10472
104732008-04-18 Jason Rumney <jasonr@gnu.org>
10474
10475 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10476
104772008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10478
10479 * character.c (Fmultibyte_char_to_unibyte):
10480 Return latin1 chars unchanged.
10481
10482 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10483 relocated if it points to `name'.
10484
104852008-04-17 Kenichi Handa <handa@m17n.org>
10486
10487 * data.c (Faset): Allow setting a multibyte character in an
10488 ASCII-only unibyte string.
10489
10490 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10491
104922008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10493
10494 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10495 done in config.h.
10496
104972008-04-16 Juanma Barranquero <lekktu@gmail.com>
10498
10499 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10500 (Fchar_direction): Add usage in the docstring.
10501
105022008-04-15 Chong Yidong <cyd@stupidchicken.com>
10503
10504 * keyboard.c (read_key_sequence): Remove always-true checks.
10505
105062008-04-14 Jason Rumney <jasonr@gnu.org>
10507
10508 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10509 compatibility struct, for better underline positioning.
10510
105112008-04-13 David Hansen <david.hansen@gmx.net>
10512
10513 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10514 string.
10515
105162008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10517
10518 * m/hp800.h (XUINT, XSET): Remove.
10519
105202008-04-12 Juanma Barranquero <lekktu@gmail.com>
10521
10522 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10523 previous change.
10524
105252008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10526
10527 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10528 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10529
105302008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10531
10532 * keymap.h (map_keymap_canonical): Declare.
10533 * xmenu.c (single_keymap_panes): Use it.
10534
105352008-04-11 Glenn Morris <rgm@gnu.org>
10536
10537 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10538 set the target's value to that of the alias.
10539
105402008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10541
10542 * term.c (set_tty_color_mode): Left over typo.
10543
105442008-04-10 Michael Albinus <michael.albinus@gmx.de>
10545
10546 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10547 only after check for file name handler functions. Signal, when
10548 native functionality is not supported.
10549 (syms_of_fileio): Declare it unconditionally.
10550
105512008-04-10 Jason Rumney <jasonr@gnu.org>
10552
10553 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10554 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10555
10556 * w32.c (logon_network_drive): Also logon to remote drives that
10557 are mapped to drive letters.
10558
105592008-04-10 Glenn Morris <rgm@gnu.org>
10560
10561 * xdisp.c (truncate-partial-width-windows): Doc fix.
10562
105632008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10564
10565 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10566 Move functions to minibuffer.el.
10567 (syms_of_fileio): Don't declare them.
10568
105692008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10570
10571 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10572 (syms_of_minibuf): Remove its initialization.
10573
10574 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10575
105762008-04-09 Juanma Barranquero <lekktu@gmail.com>
10577
10578 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10579
105802008-04-09 Jason Rumney <jasonr@gnu.org>
10581
10582 * makefile.w32-in (distclean): Delete makefile too.
10583 (maintainer-clean): New target.
10584
10585 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10586
10587 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10588 for new font backend and composite cases.
10589
105902008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10591
10592 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10593 Most of the code moved to run_timers.
10594 (do_pending_atimers): Call run_timers.
10595 (run_timers): New function.
10596
10597 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10598 run atimers.
10599
10600 * process.c (wait_reading_process_output): The same as above.
10601
106022008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10603
10604 * minibuf.c (last_exact_completion): Remove variable.
10605 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10606 (complete_and_exit_1, complete_and_exit_2)
10607 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10608 (Fdisplay_completion_list, display_completion_list_1)
10609 (Fminibuffer_completion_help, Fself_insert_and_exit)
10610 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10611 minibuffer.el.
10612 (syms_of_minibuf): Remove corresponding initializations.
10613
10614 * keyboard.c (Qdeactivate_mark): New var.
10615 (command_loop_1): Use it to call `deactivate-mark'.
10616 (syms_of_keyboard): Initialize it.
10617
10618 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10619 to another frame.
10620 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10621 Don't call set_tty_color_mode.
10622 (store_frame_param): Reset previous_frame rather than call
10623 set_tty_color_mode.
10624 * term.c (set_tty_color_mode): Rewrite.
10625 * dispextern.h (set_tty_color_mode): New type.
10626 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10627
106282008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10629
10630 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10631 for generic chars, which do not exist any more in emacs-unicode.
10632
106332008-04-08 Michael Albinus <michael.albinus@gmx.de>
10634
10635 * coding.c (detect_coding_emacs_mule)
10636 (Ffind_operation_coding_system): Fix typo.
10637
106382008-04-08 Jason Rumney <jasonr@gnu.org>
10639
10640 * w32uniscribe.c (SNAME): Extract only symbol name.
10641
10642 * w32font.h (struct w32_metric_cache): New struct.
10643 (w32font_info): Use it.
10644 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10645 (CACHE_BLOCKSIZE): New constants.
10646
10647 * w32font.c (Qja, Qko, Qzh): New symbols.
10648 (syms_of_w32font): Initialise them.
10649 (font_matches_spec): Use them to filter by language.
10650 (recompute_cached_metrics): Remove function.
10651 (compute_metrics, clear_cached_metrics): New functions.
10652 (w32font_encode_char): Use them to manage metric cache.
10653 (w32font_text_extents): Cache metrics for all glyphs on demand.
10654 Delay converting glyph indices to WORD until needed.
10655 (w32font_open_internal): Initialize metric cache to empty.
10656 (registry_to_w32_charset): Charset should always be a symbol.
10657 (fill_in_logfont, list_all_matching_fonts): Family should
10658 always be a symbol.
10659
106602008-04-06 Jason Rumney <jasonr@gnu.org>
10661
10662 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10663 Give up if glyph indices not supported. Use uniscribe obtained
10664 ABC widths for individual metrics. Map glyph clusters back to
10665 characters using fClusterStart flag. Return number of glyphs
10666 produced, not chars processed.
10667 (uniscribe_shape): Map char at FROM to current glyph.
10668
106692008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10670
10671 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10672 Use SetMenuItemHierarchicalMenu.
10673
106742008-04-05 Jason Rumney <jasonr@gnu.org>
10675
10676 * image.c (pbm_load): Allow color values up to 65535.
10677 Throw an error if max_color_idx is outside the supported range.
10678 Report an error when image size is invalid.
10679 Read two bytes at a time when raw images have max_color_idx above 255.
10680
106812008-04-05 Eli Zaretskii <eliz@gnu.org>
10682
10683 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10684 cFileName a file name that includes `?' characters, use the 8+3
10685 alias in cAlternateFileName instead.
10686
106872008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10688
10689 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10690 append "CCL: Quitted" when the CCL program is quitted.
10691 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10692
10693 * ccl.h (struct ccl_program): New member quit_silently.
10694
106952008-04-05 Chong Yidong <cyd@stupidchicken.com>
10696
10697 * search.c (compile_pattern_1): Treat non-nil and non-string of
10698 search-spaces-regexp as nil.
10699
10700 * minibuf.c (Fassoc_string): Tweak docstring.
10701
107022008-04-05 Eli Zaretskii <eliz@gnu.org>
10703
10704 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10705 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10706 2008-03-14 to force inode be positive.
10707
10708 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10709 _S_* ones, since we now use our own sys/stat.h.
10710 (stat, fstat): Don't mangle the inode number.
10711 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10712
107132008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10714
10715 * frame.h (struct frame): Give one more bit to `visible' since we use
10716 values larger than 1 to indicate obscured frames on ttys.
10717
10718 * keymap.c (Qkeymap_canonicalize): New var.
10719 (Fmap_keymap_internal): New fun.
10720 (describe_map): Use keymap-canonicalize.
10721
10722 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10723 (Fundo_boundary): Set them.
10724 (syms_of_undo): Initialize them.
10725 (record_point): Use them instead of last_point_position*.
10726 (last_undo_buffer): Change type.
10727
107282008-04-04 Jason Rumney <jasonr@gnu.org>
10729
10730 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10731 (recompute_cached_metrics): Don't set ascent and descent per char.
10732
10733 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10734 (uniscribe_check_otf): Add GC protection before consing.
10735 Rearrange loop for counting features.
10736
107372008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10738
10739 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10740 buffer with byte-size of source buffer.
10741
107422008-04-03 Chong Yidong <cyd@stupidchicken.com>
10743
10744 * callint.c (Fcall_interactively): Handle temporary region even
10745 when shift-select-mode is off.
10746
107472008-04-03 Jason Rumney <jasonr@gnu.org>
10748
10749 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10750
107512008-04-03 Kenichi Handa <handa@m17n.org>
10752
10753 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10754 (CATEGORY_MASK_UTF_16): Likewise.
10755 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10756 binary file.
10757 (detect_coding): Add null-byte detection for a binary file.
10758 (detect_coding_system): Likewise.
10759
107602008-04-03 Jason Rumney <jasonr@gnu.org>
10761
10762 * w32uniscribe.c: New file.
10763
10764 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10765
10766 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10767
10768 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10769 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10770 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10771 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10772 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10773 (Qphonetic): New symbols.
10774 (syms_of_w32font): Initialize them.
10775 (font_supported_scripts): Use them.
10776 (w32font_list_family): List all charsets.
10777 (w32font_text_extents, recompute_cached_metrics): Fix metric
10778 calculations.
10779 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10780 Give opentype fonts their own format.
10781 (font_matches_spec): New arguments backend and logfont.
10782 Handle :otf spec for uniscribe backend.
10783 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10784 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10785
10786 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10787 font backend.
10788 (globals_of_w32fns): Initialize uniscribe font backend.
10789
10790 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10791 dependencies.
10792 (w32uniscribe.$(O)): New file to build.
10793 (FONT_OBJ): Include w32uniscribe.$(O).
10794 (LIBS): Add uniscribe libraries.
10795
10796 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10797
107982008-04-02 Chong Yidong <cyd@stupidchicken.com>
10799
10800 * callint.c (Vshift_select_mode): New var.
10801 (Finteractive): Document new ^ spec.
10802 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10803 is present.
10804
10805 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10806 (command_loop_1): Avoid running the direct display versions of
10807 forward-char and backward-char if shift-selection may occur.
10808 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10809 shift-translation takes place.
10810
10811 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10812 avoid clobbering by define-minor-mode.
10813
10814 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10815 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10816
10817 * syntax.c (Fforward_word): Add ^ interactive spec.
10818
10819 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10820 (Fscroll_right): Add ^ interactive spec.
10821
108222008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10823
10824 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10825
10826 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10827
10828 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10829
108302008-03-31 Juri Linkov <juri@jurta.org>
10831
10832 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10833
108342008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10835
10836 * gtkutil.c (xg_set_geometry): Fix indentation.
10837 (xg_resize_outer_widget): Remove.
10838 (x_wm_size_hint_off): Fix indentation.
10839 (xg_frame_set_char_size): Call flush_and_sync after
10840 gtk_window_resize.
10841 (x_wm_set_size_hint): Pass NULL as geometry window to
10842 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10843 Add menu bar and tool bar height to base height.
10844 (xg_update_frame_menubar, free_frame_menubar)
10845 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10846 (update_frame_tool_bar, free_frame_tool_bar):
10847 Change xg_resize_outer_widget to xg_frame_set_char_size.
10848
108492008-03-30 Michael Albinus <michael.albinus@gmx.de>
10850
10851 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10852 (Fdbus_call_method): New parameter TIMEOUT.
10853 (dbus-send-signal): Optimize UNGCPRO call.
10854
108552008-03-29 Juri Linkov <juri@jurta.org>
10856
10857 * window.c (Fdisplay_buffer): Move call to
10858 Vsplit_window_preferred_function out of conditions that check
10859 if window is eligible for vertical splitting.
10860 When Vsplit_window_preferred_function is non-nil, call it and use
10861 its non-nil return value as window. Otherwise, continue doing
10862 vertical splitting using Fsplit_window with arg horflag=nil.
10863 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10864 default value from `split-window' to nil.
10865
108662008-03-29 Juri Linkov <juri@jurta.org>
10867
10868 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10869 for interactive code letters 'b' and 'B'.
10870
108712008-03-29 Eli Zaretskii <eliz@gnu.org>
10872
10873 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10874 multibyte string.
10875
108762008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10877
10878 * keyboard.c (pending_funcalls): New var.
10879 (timer_check): Run it.
10880 (syms_of_keyboard): Initialize it.
10881 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10882 (Vdelete_terminal_functions): New vars.
10883 (syms_of_terminal): Initialize them.
10884 (Fdelete_terminal): Run delete-terminal-functions.
10885 * xdisp.c (safe_eval): Rewrite.
10886 (safe_call2): New fun.
10887 * frame.c (Qdelete_frame_functions): New var.
10888 (syms_of_frame): Initialize it.
10889 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10890 * lisp.h (safe_call2, pending_funcalls): Declare.
10891
108922008-03-28 Andreas Schwab <schwab@suse.de>
10893
10894 * indent.c (Fmove_to_column): Move declaration before statements.
10895
108962008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10897
10898 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10899 (struct frame): Use bit fields for boolean vars.
10900
10901 * process.c (server_accept_connection): Simplify naming.
10902 (emacs_get_tty_pgrp): Use SDATA.
10903
10904 * coding.c (decode_coding_object): Fix last change.
10905
109062008-03-27 Jason Rumney <jasonr@gnu.org>
10907
10908 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10909
109102008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10911
10912 * charset.c (Fdefine_charset_internal): Change the way of
10913 registering charsets in Vcharset_order_list.
10914 (syms_of_charset): Make the charset `eight-bit' supplementary.
10915
109162008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10917
10918 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10919 operations, to avoid having the difference between pointers
10920 overflow.
10921
109222008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10923
10924 * indent.c (check_display_width): New fun.
10925 (scan_for_column): Use it.
10926
10927 * data.c (syms_of_data): Mark most-positive-fixnum and
10928 most-negative-fixnum as constants.
10929
10930 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10931
10932 * indent.c (scan_for_column): Extract from current_column_1.
10933 Merge with the same code from Fmove_to_column.
10934 (current_column_1, Fmove_to_column): Use it.
10935
109362008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10937
10938 * keymap.c (map_keymap_internal): New fun.
10939 (map_keymap): Use it.
10940 (Fmap_keymap_internal): New fun.
10941 (Fmap_keymap): Remove left-out test from before make_save_value.
10942
10943 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10944
10945 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10946 Use XCAR/XCDR.
10947
10948 * process.h (struct Lisp_Process): Remove filter_multibyte.
10949 * process.c (QCfilter_multibyte): Remove.
10950 (setup_process_coding_systems): Don't use filter_multibyte.
10951 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10952 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10953 (Fset_process_filter_multibyte): Change the coding-system to
10954 approximate the previous behavior.
10955 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10956 coding-system.
10957
10958 * coding.c (decode_coding_object): When not decoding into a buffer,
10959 obey the coding system's preference of (uni|multi)byte.
10960
109612008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10962
10963 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10964 every char is changed and has a different byte-length.
10965 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10966 Fix int -> EMACS_INT.
10967
109682008-03-23 David Hansen <david.hansen@gmx.net>
10969
10970 * dbusbind.c (xd_read_message): Remove extra copying of message
10971 strings. Check for NULL `interface' or `member'.
10972
109732008-03-22 Eli Zaretskii <eliz@gnu.org>
10974
10975 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10976 cFileName a file name that includes `?' characters, use the 8+3
10977 alias in cAlternateFileName instead.
10978
109792008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10980
10981 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10982
109832008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10984
10985 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10986 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10987 work on current_buffer only instead (that was already the case
10988 for some of the code anyway).
10989 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10990 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10991 (SET_PT, SET_PT_BOTH): Adjust.
10992 * intervals.h (set_point, temp_set_point, set_point_both)
10993 (temp_set_point_both): Remove redundant declarations.
10994
109952008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10996
10997 * fileio.c (Finsert_file_contents):
10998 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10999 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11000 when buffer != current_buffer anyway.
11001
110022008-03-20 Andreas Schwab <schwab@suse.de>
11003
11004 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11005 as default.
11006
110072008-03-19 Jason Rumney <jasonr@gnu.org>
11008
11009 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11010 (syms_of_w32fns): Initialize them.
11011 (HOURGLASS_ID): New constant.
11012 (x_window_to_frame): Don't check hourglass_window.
11013 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11014 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11015 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11016 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11017 Only change the cursor if hourglass is not active.
11018 (Fx_create_frame): Initialize frame's current_cursor.
11019 (hourglass_atimer): Remove.
11020 (hourglass_started): New function.
11021 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11022 (show_hourglass): Adapt to w32, changing argument to frame.
11023
11024 * w32term.h (struct w32_output): Remove hourglass_window.
11025 Add current_cursor.
11026
11027 * eval.c (call_debugger, Fsignal):
11028 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11029 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11030 (Fexecute_extended_command, cancel_hourglass_unwind):
11031 * minibuf.c (read_minibuf):
11032 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11033
110342008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11035
11036 * window.c (run_funs): New fun.
11037 (run_window_configuration_change_hook): Use it to run the buffer-local
11038 and the global part of the hook.
11039
11040 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11041 (unwind_format_mode_line): Restore selected window.
11042 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11043
110442008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11045
11046 * editfns.c (Fchar_equal): Check they are valid characters.
11047
11048 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11049
110502008-03-17 Andreas Schwab <schwab@suse.de>
11051
11052 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11053 against a charset.
11054
11055 * lisp.h (Fbuffer_list): Declare.
11056
110572008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11058
aac0c6e3
MR
11059 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11060 handlebox_widget is != 0.
11061
110622008-03-16 Juri Linkov <juri@jurta.org>
11063
11064 * callint.c (Fcall_interactively): For interactive code letters
11065 'b' and 'B' put the buffer list into the list of default "future"
11066 values of the minibuffer.
11067
110682008-03-16 Andreas Schwab <schwab@suse.de>
11069
11070 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11071 modifiers.
11072
11073 * regex.c (re_match_2_internal): Correct matching of a charset
11074 against latin-1 characters.
11075
110762008-03-16 Kenichi Handa <handa@m17n.org>
11077
11078 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11079 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11080 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11081 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11082 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11083 CHAR_STRING_ADVANCE.
11084 (produce_chars): Fix for the case that the source and the
11085 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11086 instead of CHAR_STRING_ADVANCE.
11087 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11088 STRING_CHAR_ADVANCE.
11089
110902008-03-15 Andreas Schwab <schwab@suse.de>
11091
11092 * regex.c (re_match_2_internal): Correct matching of eight bit
11093 characters in unibyte strings.
11094
110952008-03-15 Martin Rudalics <rudalics@gmx.at>
11096
11097 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11098 at end of range when it coincides with the end of the buffer.
11099
111002008-03-14 Eli Zaretskii <eliz@gnu.org>
11101
11102 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11103
11104 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11105
111062008-03-14 Jason Rumney <jasonr@gnu.org>
11107
11108 * editfns.c (initial_tz): New variable.
11109 (syms_of_editfns): Initialize it.
11110 (Fset_time_zone_rule): Set it when first called.
11111 Use it when TZSTRING is nil.
11112
11113 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11114 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11115 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11116 (globals_of_w32fns): Initialize them.
11117 (compute_tip_xy): Use them to position tooltips.
11118
111192008-03-14 Glenn Morris <rgm@gnu.org>
11120
11121 * emacs.c (main): Revert previous change.
11122 (standard_args): Revert -internal-script back to -scriptload,
11123 and remove the long-option form.
11124
111252008-03-13 Glenn Morris <rgm@gnu.org>
11126
11127 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11128 Remove option -enable-font-backend.
11129
111302008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11131
11132 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11133
111342008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11135
11136 * xterm.c (x_connection_closed): For GTK: If this is the last
11137 terminal just exit without closing the display.
11138
111392008-03-11 Jason Rumney <jasonr@gnu.org>
11140
11141 * w32font.c (w32font_full_name): Use floor to round.
11142
f0131492 111432008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11144
11145 * sound.c (alsa_configure): Declare vol at beginning of block.
11146
11147 * fontset.c (Ffontset_info): Remove extra semicolon.
11148
111492008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11150
11151 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11152 size of resulting string.
11153
111542008-03-10 Jason Rumney <jasonr@gnu.org>
11155
11156 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11157
111582008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11159
11160 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11161 Don't pretend as if characters with display property haven't been
11162 consumed for string-replacing-string case.
11163
111642008-03-08 Kim F. Storm <storm@cua.dk>
11165
11166 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11167 (get_next_display_element, next_element_from_string)
11168 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11169
111702008-03-08 Andreas Schwab <schwab@suse.de>
11171
11172 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11173
111742008-03-06 Jason Rumney <jasonr@gnu.org>
11175
11176 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11177 when charset not specified. Only translate ANSI to unicode when
11178 font_type is truetype.
11179 (w32font_coverage_ok): New function.
11180 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11181
111822008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11183
11184 * lread.c (Fread_char): Resolve modifiers.
11185 (Fread_char_exclusive): Likewise.
11186
11187 * character.c (char_resolve_modifier_mask): New function.
11188 (char_string): Use char_resolve_modifier_mask.
11189 (Fchar_resolve_modifiers): New function.
11190 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11191 function.
11192
111932008-03-04 Jason Rumney <jasonr@gnu.org>
11194
11195 * makefile.w32-in: Always include w32font.c in the build.
11196 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11197
111982008-03-04 Andreas Schwab <schwab@suse.de>
11199
11200 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11201 (versionclean): Likewise.
11202
112032008-03-04 Juanma Barranquero <lekktu@gmail.com>
11204
11205 * .cvsignore: Add oo.
11206
112072008-03-03 Andreas Schwab <schwab@suse.de>
11208
11209 * coding.c (decode_coding_object): Inhibit gap shrinking while
11210 decoding in place.
11211
112122008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11213
11214 * w32term.c: Remove unused include "gnu.h".
11215 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11216
11217 * gnu.h: Rename to ...
11218 * emacs-icon.h: ... this.
11219 * xterm.c: Use emacs-icon.h instead of gnu.h.
11220 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11221
112222008-03-03 Juanma Barranquero <lekktu@gmail.com>
11223
11224 * w32font.c: Include math.h.
11225
112262008-03-03 Jason Rumney <jasonr@gnu.org>
11227
11228 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11229 Compute options separately.
11230 (w32font_open_internal): Set glyph_idx before caching metrics.
11231
11232 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11233 Define if system headers don't.
11234 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11235 (w32font_encode_char): Don't declare here.
11236
11237 * w32font.c (Quniscribe, QCformat): New symbols.
11238 (syms_of_w32font): Define them.
11239 (w32font_has_char): Indicate uncertainty.
11240 (w32font_encode_char): Encode as glyph point. Make static.
11241 (recompute_cached_metrics): New function.
11242 (w32font_open_internal): Use it. Set font to use glyph points
11243 initially. Set format based on type of font.
11244 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11245 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11246 on it. Set format based on information available here.
11247 (add_font_entity_to_list): Identify backend based on opentype_only.
11248
112492008-03-02 Andreas Schwab <schwab@suse.de>
11250
11251 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11252
11253 * coding.c (decode_coding_big5, produce_chars):
11254 Fix typos in last change.
11255
112562008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11257
11258 * gnu.h: New icon.
11259
112602008-03-02 Kenichi Handa <handa@m17n.org>
11261
11262 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11263 `dos', don't decode '\r' if that is the last in the source.
11264 (decode_coding_utf_16, decode_coding_emacs_mule)
11265 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11266 (decode_coding_raw_text, decode_coding_charset): Likewise.
11267 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11268
112692008-03-01 Jason Rumney <jasonr@gnu.org>
11270
11271 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11272
112732008-03-01 Kim F. Storm <storm@cua.dk>
11274
11275 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11276
112772008-03-01 Jason Rumney <jasonr@gnu.org>
11278
11279 * w32font.c (w32font_full_name): New function.
11280 (w32font_open_internal): Use it.
11281
112822008-03-01 Kim F. Storm <storm@cua.dk>
11283
11284 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11285
112862008-03-01 Jason Rumney <jasonr@gnu.org>
11287
11288 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11289
112902008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11291
11292 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11293 xg_frame_resized when the event is for the edit widget.
11294
11295 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11296
11297 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11298 set_char_size.
11299 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11300 operations on widgets here. Just set frame size if needed.
11301 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11302 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11303 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11304 the whole frame.
11305 (xg_create_tool_bar): Move attachment of the tool bar to
11306 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11307 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11308
113092008-03-01 Jason Rumney <jasonr@gnu.org>
11310
11311 * w32fns.c (w32_msg_pump): Disable debug code.
11312
113132008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11314
11315 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11316
113172008-02-29 Chong Yidong <cyd@stupidchicken.com>
11318
11319 * xdisp.c (next_overlay_string): Don't set
11320 overlay_strings_at_end_processed_p if we're currently reading from
11321 a display string.
11322
113232008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11324
11325 * xdisp.c (get_overlay_strings_1): Fix typo.
11326
113272008-02-29 Chong Yidong <cyd@stupidchicken.com>
11328
11329 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11330
113312008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11332
11333 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11334
11335 * xdisp.c (display_mode_element): Cancel the previous change.
11336 (decode_mode_spec): Likewise.
11337 (handle_auto_composed_prop): Don't make composition if it->string
11338 is a string.
11339
113402008-02-27 Kim F. Storm <storm@cua.dk>
11341
11342 * lisp.h (GLYPH): Change type from int to struct with separate char
11343 and face_id members.
11344 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11345 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11346 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11347 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11348 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11349 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11350 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11351 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11352 handle new Lisp glyph code encoding, either an integer or a cons.
11353
11354 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11355 (GLYPH_ALIAS): Delete.
11356 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11357 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11358 (GLYPH_FROM_CHAR): Replace macro by ...
11359 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11360
11361 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11362 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11363 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11364 (GLYPH_INVALID_P): New macro.
11365 (spec_glyph_lookup_face): Update prototype.
11366
11367 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11368 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11369 new glyph code encoding.
11370 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11371 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11372
11373 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11374 Adapt to new glyph type and new glyph code encoding.
11375
11376 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11377
11378 * indent.c (current_column, current_column_1, Fmove_to_column)
11379 (compute_motion): Adapt to new glyph code encoding.
11380
11381 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11382
113832008-02-27 Chong Yidong <cyd@stupidchicken.com>
11384
11385 * process.c (wait_reading_process_output): Check for window
11386 changes caused by timers.
11387 Suggested by Johan Bockgård.
11388
113892008-02-27 Glenn Morris <rgm@gnu.org>
11390
11391 * emacs.c (USAGE1): Add `--disable-font-backend'.
11392
113932008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11394
11395 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11396 is made to the buffer.
11397
113982008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11399
11400 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11401 (face_at_string_position):
11402 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11403 (face_at_string_position):
11404 * xdisp.c (display_string, next_overlay_change):
11405 * buffer.h (overlays_at):
11406 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11407 Update callers.
11408
114092008-02-26 Chong Yidong <cyd@stupidchicken.com>
11410
11411 * editfns.c (Fformat): Doc fix.
11412
114132008-02-26 Juanma Barranquero <lekktu@gmail.com>
11414
11415 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11416 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11417 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11418
114192008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11420
11421 * buffer.c (Fbuffer_swap_text): New function.
11422 (syms_of_buffer): Defsubr it.
11423
114242008-02-25 Chong Yidong <cyd@stupidchicken.com>
11425
11426 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11427
114282008-02-25 Jason Rumney <jasonr@gnu.org>
11429
11430 * w32font.c (w32font_draw): Draw one character at a time when padding.
11431
114322008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11433
11434 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11435 Handle a nil arg. Use run_window_configuration_change_hook.
11436 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11437 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11438 Use run_window_configuration_change_hook.
11439
114402008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11441
11442 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11443 1-pixel width.
11444
114452008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11446
11447 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11448 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11449 if the glyph in the font is zero pixel with.
11450
11451 * dispextern.h (struct glyph_string): New member padding_p.
11452
11453 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11454
11455 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11456
11457 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11458
11459 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11460
11461 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11462
114632008-02-25 Jason Rumney <jasonr@gnu.org>
11464
11465 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11466
114672008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11468
11469 Allow fine-grained image-cache flushing.
11470 * dispextern.h (struct image): Add `dependencies' field.
11471 (clear_image_caches): Change arg to Lisp_Object.
11472 * image.c (make_image): Initialize `dependencies' field.
11473 (clear_image_cache): Change arg to allow fine-grained flushing.
11474 Perform the flush even if image-cache-eviction-delay is nil.
11475 (clear_image_caches): Change arg to Lisp_Object.
11476 (Fclear_image_cache): Expand meaning of the argument.
11477 (mark_image): Mark `dependencies' field.
11478 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11479 (lface_hash): Use XHASH rather than XFASTINT.
11480 (face_at_buffer_position): Fix int -> EMACS_INT position.
11481 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11482 (select_frame_for_redisplay): Remove code duplication.
11483 (redisplay_internal): Adapt arg to call to clear_image_caches.
11484
114852008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11486
11487 * s/vms4-0.h:
11488 * s/vms4-2.h:
11489 * s/vms4-4.h:
11490 * s/vms5-5.h: Remove, unused.
11491
11492 * s/irix5-2.h:
11493 * s/irix6-0.h:
11494 * s/riscos5.h:
11495 * s/mach-bsd4-3.h:
11496 * m/mips4.h: Remove files for obsolete systems.
11497
11498 * Makefile.in:
11499 * filelock.c:
11500 * unexmips.c:
11501 * m/hp9000s300.h:
11502 * m/iris4d.h:
11503 * s/aix3-1.h:
11504 * s/hpux.h:
11505 * s/msdos.h:
11506 * s/usg5-0.h:
11507 * s/usg5-2-2.h:
11508 * s/usg5-2.h:
11509 * s/usg5-3.h: Remove references to obsolete variables.
11510
11511 * s/irix5-0.h: Remove, move all the contents ...
11512 * s/irix6-5.h: ... here. Simplify.
11513 * config.in: Regenerate.
11514
115152008-02-24 Jason Rumney <jasonr@gnu.org>
11516
11517 * w32term.c (x_draw_glyph_string_background): Clear the background
11518 manually when cleartype is in use.
11519 (x_draw_glyph_string_foreground): Draw text transparently when
11520 cleartype is in use.
11521
11522 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11523 a font into it unless we have to.
11524
115252008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11526
11527 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11528 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11529
aac0c6e3
MR
115302008-02-18 Jason Rumney <jasonr@gnu.org>
11531
11532 * w32fns.c (Fw32_shell_execute): Encode parameters.
11533
115342008-02-09 Eli Zaretskii <eliz@gnu.org>
11535
11536 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11537
115382008-02-05 Juanma Barranquero <lekktu@gmail.com>
11539
11540 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11541
115422008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11543
11544 * xterm.c (x_set_offset): Don't change the gravity if
11545 CHANGE_GRAVITY is -1.
11546
115472008-02-23 Chong Yidong <cyd@stupidchicken.com>
11548
11549 * fileio.c (auto_save_error_occurred): New var.
11550 (auto_save_error): Set it.
11551 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11552 error occurred.
11553
115542008-02-23 Eli Zaretskii <eliz@gnu.org>
11555
11556 * w32.c (globals_of_w32): Add initializations for
11557 g_b_init_get_sid_sub_authority and
11558 g_b_init_get_sid_sub_authority_count.
11559
115602008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11561
11562 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11563 (font_parse_xlfd): Use them for sanity check.
11564 (Finternal_set_font_style_table): Make sure the table is bijective.
11565
11566 Consolidate the image_cache to the terminal struct.
11567 * termhooks.h (P_): Remove redundant def.
11568 (struct terminal): New field `image_cache'.
11569 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11570 of FRAME_X_IMAGE_CACHE.
11571 * xterm.h (struct x_display_info): Remove image_cache field.
11572 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11573 * w32term.h (struct w32_display_info): Remove image_cache field.
11574 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11575 * macterm.h (struct mac_display_info): Remove image_cache field.
11576 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11577 * xterm.c (x_term_init):
11578 * w32term.c (w32_term_init):
11579 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11580 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11581 Remove declarations.
11582 (clear_image_caches, mark_image_cache): New declarations.
11583 * xfaces.c (clear_face_cache):
11584 * xdisp.c (redisplay_internal): Use clear_image_caches.
11585 * image.c (clear_image_cache): Don't check that a frame is on
11586 a window-system before checking if it shares the same cache.
11587 (clear_image_caches): New function.
11588 (Fclear_image_cache): Use it.
11589 (mark_image): Move from allo.c.
11590 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11591 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11592 (mark_object): Don't call mark_image_cache for frames.
11593 (mark_terminals): Call mark_image_cache.
11594
11595 * lisp.h (Fdelete_terminal): Declare.
11596
11597 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11598 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11599 wrong_type_argument.
11600
116012008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11602
11603 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11604 malayalam.el, and tamil.el. Add sinhala.el.
11605
116062008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * xterm.c (x_connection_closed): Consolidate identical tests.
11609 (x_delete_terminal): Don't crash if called via x_connection_closed.
11610
116112008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11612
11613 * xdisp.c (decode_mode_spec): New arg string.
11614 (display_mode_element): Adjust for the above change.
11615
116162008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11617
11618 * callint.c (Fcall_interactively): Use AREF.
11619
116202008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11621
11622 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11623
116242008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11625
11626 * xfns.c (Fx_show_tip): Set string to " " if empty.
11627
116282008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11629
11630 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11631 with Qt.
11632
116332008-02-17 Kenichi Handa <handa@m17n.org>
11634
11635 * ftfont.c (ftfont_shape): Return Lispy number.
11636
11637 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11638 for GCs.
11639 (Finternal_set_font_selection_order): Call font_update_sort_order
11640 only when enable_font_backend is set.
11641 (realize_x_face): Set face->font_info to that of default face only
11642 when enable_font_backend is set.
11643
11644 * xdisp.c (handle_composition_prop): Set it->c to the fist
11645 character of the composed region.
11646 (fill_composite_glyph_string): Set base_face->font_info to
11647 s->font_info. Get a face for ascii from base_face->ascii_face.
11648 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11649 with a face already decided.
11650 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11651 non-negative.
11652 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11653 call font_prepare_composition unconditionally.
11654
11655 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11656
11657 * xterm.h (struct x_display_info): New member font.
11658
11659 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11660 (x_set_mouse_face_gc, x_new_font): Likewise.
11661 (x_term_init): Setup display_info->font.
11662 (x_delete_terminal): Free display_info->font.
11663
11664 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11665
11666 * ftxfont.c (ftxfont_default_fid): Delete it.
11667 (ftxfont_open): Set xfont->fid to 0.
11668 (ftxfont_end_for_frame): Clear data specific to the frame and the
11669 font-driver.
11670
11671 * xftfont.c (xftfont_default_fid): Delete it.
11672 (xftfont_open): Set xfont->fid to 0.
11673
11674 * fontset.c (FONTSET_OBJLIST): New macro.
11675 (fontset_find_font): Update font-object list of the fontset.
11676 (free_realized_fontset): New function.
11677 (free_face_fontset): Call free_realized_fontset.
11678 (Ffont_info): Call font_close_object only when enable_font_backend
11679 is set.
11680
11681 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11682 [HAVE_NTGUI]: Include w32term.h.
11683 [MAC_OS]: Include macterm.ch.
11684 (font_otf_ValueRecord): Use make_number.
11685 (font_finish_cache): Fix handling of reference count.
11686 (font_clear_cache): Update num_fonts.
11687 (font_open_entity): Update smallest_char_width and
11688 smallest_font_height of the frame.
11689 (font_close_object): Update num_fonts.
11690 (Fclear_font_cache): Fix finding the target cache data.
11691
116922008-02-16 Glenn Morris <rgm@gnu.org>
11693
11694 * fontset.c (Finternal_char_font): Fix compilation warning.
11695
116962008-02-16 Eli Zaretskii <eliz@gnu.org>
11697
11698 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11699 instead of char arrays. Enlarge the size of array passed to
11700 get_token_information.
11701
11702 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11703 warnings.
11704
117052008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11706
11707 * .gdbinit: Don't set `args', it breaks gdb --args.
11708
117092008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11710
11711 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11712 within a narrowed buffer.
11713
117142008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11715
11716 * coding.c (decode_coding_object, encode_coding_object):
11717 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11718
117192008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11720
11721 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11722 hardcoding 1.
11723 (detect_coding_system):
11724 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11725 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11726 * insdel.c (insert_from_gap):
11727 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11728 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11729 (string_to_multibyte):
11730 * character.c (chars_in_text, multibyte_chars_in_text):
11731 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11732
11733 * character.h (FETCH_STRING_CHAR_ADVANCE)
11734 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11735 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11736 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11737
11738 * casefiddle.c (casify_region): Only call after-change and composition
11739 functions on the part of the region that was changed.
11740
11741 * keyboard.c (read_avail_input):
11742 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11743
117442008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11745
11746 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11747 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11748
117492008-02-11 Juanma Barranquero <lekktu@gmail.com>
11750
11751 * w32menu.c (push_submenu_start, push_submenu_end)
11752 (push_left_right_boundary, push_menu_pane, push_menu_item):
11753 * keyboard.c (read_key_sequence): Don't pass args with side effects
11754 to AREF, it fails when compiling with -DENABLE_CHECKING.
11755
117562008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11757
11758 * Makefile.in (${lispsource}international/charprop.el):
11759 Delete this target.
11760
11761 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11762 emacs-unicode-2.
11763
117642008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11765
11766 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11767
117682008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11769
11770 * frame.c (Qnoelisp): New symbol.
11771 (syms_of_frame): Initialize it.
11772 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11773 harmless Elisp code, from a strong `force' from x_connection_closed.
11774 * frame.h (Qnoelisp): Declare.
11775 * xterm.c (x_connection_closed): Pass `noelisp'.
11776
11777 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11778 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11779 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11780 rather than `int' for the type of `type'.
11781
117822008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11783
11784 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11785
11786 * Makefile.in (GNUC): Remove support for gcc-1.x.
11787
117882008-02-10 Richard Stallman <rms@gnu.org>
11789
11790 * lisp.h (ASET): Use AREF, not ASLOT.
11791
117922008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11793
11794 * lisp.h (ASET): Check bounds.
11795
117962008-02-10 Glenn Morris <rgm@gnu.org>
11797
11798 * buffer.c (mode-name): Doc fix.
11799
118002008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11801
11802 * Makefile.in:
11803 * emacs.c:
11804 * gmalloc.c:
11805 * keyboard.c:
11806 * lisp.h:
11807 * m/ibm370aix.h:
11808 * process.c:
11809 * regex.c:
11810 * s/hpux.h:
11811 * sysdep.c:
11812 * sysselect.h:
11813 * systty.h:
11814 * unexec.c:
11815 * w32term.c:
11816 * xsmfns.c:
11817 * xterm.c: Remove code that deals with obsolete variables.
11818
11819 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11820
11821 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11822 nothing else needs it anymore.
11823
118242008-02-09 Eli Zaretskii <eliz@gnu.org>
11825
11826 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11827 instead of unibyte_char_to_multibyte.
11828
118292008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11830
11831 * s/gnu-linux.h: Remove commented out code.
11832
11833 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11834
11835 * Makefile.in: Update what RMS says about using autoconf.
11836 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11837 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11838 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11839 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11840
118412008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11842
11843 * keymap.c (Fkey_description): Move side effect outside of macro call.
11844
11845 * xfaces.c (Finternal_make_lisp_face):
11846 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11847
11848 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11849 (syms_of_fontset): Use ASET.
11850
11851 * fns.c (concat): Move side effect outside of macro call.
11852 (hash_clear): Use ASET.
11853
118542008-02-08 Richard Stallman <rms@gnu.org>
11855
11856 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11857 If FORCE, and frame has a surrogate minibuffer for another frame,
11858 delete the other frame first.
11859
118602008-02-07 Timo Savola <timo.savola@iki.fi>
11861
11862 * xterm.c (x_detect_focus_change): Handle embed client message.
11863 (handle_one_xevent): Ditto.
11864 (handle_one_xevent): If embedded and we get a button press/release,
11865 request focus.
11866 (xembed_set_info, xembed_send_message): New functions.
11867 (x_make_frame_visible): Call xembed_set_info if embedded.
11868 (x_make_frame_invisible): Call xembed_set_info if embedded.
11869 (x_term_init): Initialize Xatom_XEMBED.
11870 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11871 (x_iconify_frame): Ditto.
11872
11873 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11874 (enum xembed_info, enum xembed_message, enum xembed_focus)
11875 (enum xembed_modifier, enum xembed_accelerator): New.
11876 (xembed_set_info, xembed_send_message): Declare.
11877 (FRAME_X_EMBEDDED_P): New.
11878
11879 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11880 gtk_plug_new.
11881
11882 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11883 window ID of a frame.
11884 (x_window): Reparent frame if embedded.
11885 (Fx_create_frame): Don't set border width if embedded.
11886
11887 * emacs.c (USAGE3): Add --parent-id.
11888 (standard_args): Ditto.
11889
118902008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11891
11892 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11893
118942008-02-07 Jim Meyering <meyering@redhat.com>
11895
11896 Use "do...while (0)", not "if (1)...else" in macro definitions.
11897 The latter provokes a warning from gcc about the empty else, when
11898 followed by ";". Also, without that trailing semicolon, it would
11899 silently swallow up any following statement.
11900 * syntax.h (SETUP_SYNTAX_TABLE)
11901 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11902 * buffer.h (DECODE_POSITION): Likewise.
11903 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11904 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11905 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11906 (FETCH_CHAR_ADVANCE): Likewise.
11907 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11908
119092008-02-07 Jim Meyering <meyering@redhat.com>
11910
11911 * lread.c [lint]: Don't include <sys/inode.h>.
11912
119132008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11914
11915 * xselect.c (x_handle_dnd_message):
11916 * xmenu.c (digest_single_submenu, xmenu_show):
11917 * xdisp.c (with_echo_area_buffer_unwind_data)
11918 (format_mode_line_unwind_data, unwind_format_mode_line)
11919 (display_menu_bar):
11920 * eval.c (Ffetch_bytecode):
11921 * doc.c (store_function_docstring):
11922 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11923 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11924 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11925
119262008-02-07 Kenichi Handa <handa@m17n.org>
11927
11928 * ftxfont.c (ftxfont_open): Don't set
11929 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11930
11931 * ftfont.c (ftfont_open): Fix previous change.
11932
119332008-02-06 Jason Rumney <jasonr@gnu.org>
11934
11935 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11936 Use cached metrics for ASCII characters.
11937 (w32font_open_internal): Don't set font's owning_frame.
11938 Cache metrics for ASCII characters.
11939
11940 * w32font.h (struct w32font_info): Add ascii_metrics.
11941 Remove owning_frame.
11942
119432008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11944
11945 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11946 to negative value.
11947
11948 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11949
11950 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11951
11952 * charset.c (syms_of_charset): Set QCtest and Qeq.
11953
119542008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11955
11956 * process.c (Fstart_process):
11957 * callproc.c (Fcall_process): Handle the case where
11958 Funhandled_file_name_directory returns nil.
11959
11960 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11961 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11962 * font.c (check_gstring): Use them and AREF to access the vector before
11963 we know it's really a gstring.
11964 (Ffont_shape_text): Fix typo.
46e722a9 11965 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
11966
11967 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11968 Declare.
11969
11970 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11971
119722008-02-05 Jason Rumney <jasonr@gnu.org>
11973
11974 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11975 Set smallest_font_height and smallest_char_width in display info.
11976
119772008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11978
11979 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11980
119812008-02-05 Miles Bader <miles@gnu.org>
11982
11983 * xfaces.c (get_lface_attributes, merge_named_face)
11984 (lookup_named_face, lookup_derived_face, realize_named_face):
11985 Revert 2008-02-01 change by cyd@stupidchicken.com.
11986
119872008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11988
11989 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11990 fallback fonts.
11991 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11992
119932008-02-04 Jason Rumney <jasonr@gnu.org>
11994
11995 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11996 set full_name.
11997 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11998
119992008-02-03 Jason Rumney <jasonr@gnu.org>
12000
12001 * makefile.w32-in (OBJ1): Include font.o here.
12002 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12003
120042008-02-02 Jason Rumney <jasonr@gnu.org>
12005
12006 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12007
120082008-02-01 Jason Rumney <jasonr@gnu.org>
12009
12010 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12011
12012 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12013
120142008-02-01 Andreas Schwab <schwab@suse.de>
12015
12016 * Makefile.in (shortlisp, lisp): Update for rename of
12017 ../lisp/language/myanmar.el.
12018
120192008-02-01 Chong Yidong <cyd@stupidchicken.com>
12020
12021 * xfaces.c (get_lface_attributes): Delete function.
12022 (merge_named_face, lookup_named_face, lookup_derived_face)
12023 (realize_named_face): Call lface_from_face_name directly, and use
12024 the fact that merge_face_vectors does not alter its FROM argument.
12025
120262008-02-01 Jason Rumney <jasonr@gnu.org>
12027
12028 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12029 input in the default locale. Handle non-Unicode multibyte input.
12030
120312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12032
12033 * fontset.c (reorder_font_vector): Exclude nil elements from the
12034 font group. Don't try multiple fonts.
12035 (fontset_font): Adjust for the above change.
12036 (Finternal_char_font): Return nil if the found font doesn't
12037 contain the character ch.
12038
12039 * Makefile.in (lisp, shortlisp): Add cham.el.
12040
120412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12042
12043 * font.h (FONTP): Make it return 1 also for a font-object.
12044
12045 * .gdbinit (xfontset): New function.
12046
12047 * font.c (font_find_for_lface): Check if the character C is
12048 supported or not only for the first font.
12049
12050 * fontset.c (reorder_font_vector): Fix typo.
12051 (fontset_find_font): Don't add a font-spec specifying a script.
12052 Use 0 (not Qt) for the indication of empty font-group. Change the
12053 format of RFONT-DEF. Return Qt if no font in the font-group
12054 support the character.
12055 (fontset_font): Adjust for the above change. If no font was
12056 found the character, remember that.
12057 (face_for_char): Adjust for the change of RFONT-DEF.
12058 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12059 no font for the target.
12060 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12061
120622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12063
12064 * font.c (font_load_for_face): Handle the case that the font in
12065 face->lface is a string.
12066
120672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12068
12069 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12070
120712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12072
12073 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12074 Fix previous change. If the frame is not on a window system,
12075 signal an error.
12076
120772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12078
12079 * coding.c (decode_coding_object, encode_coding_object): Adjust
12080 marker positions after conversion.
12081
12082 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12083
120842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12085
12086 * font.c (font_find_for_lface): Fix the handling of the return
12087 value of font_has_char.
12088 (Ffont_shape_text): Fix previous change.
12089
12090 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12091 (fontset_ref_and_range): Delete it.
12092 (fontset_find_font): Call char_table_ref_and_range instead of
12093 FONTSET_REF_AND_RANGE.
12094 (make_fontset): Don't setup font groups of Latin here.
12095 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12096 (new_fontset_from_font): Make the specified font the default for
12097 all Latin characters.
12098
120992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12100
12101 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12102 is on a window system before accessing the fontset of the frame.
12103
121042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12105
12106 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12107
12108 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12109 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12110
12111 * font.c (Ffont_shape_text): If the font driver doesn't have a
12112 shaper function, make zero-width glyphs to have at least one-pixel
12113 width. Fix setting of `to' field of glyphs.
12114
121152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12116
12117 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12118 glyphs.
12119
12120 * font.h (struct font_driver): Improve docstring of member `shape'.
12121
121222008-02-01 Kenichi Handa <handa@m17n.org>
12123
12124 * composite.c (syms_of_composite): Fix docstring of
12125 auto-composition-function.
12126
12127 * font.h (LGLYPH_SIZE): New macro.
12128
12129 * font.c (Ffont_fill_gstring): Stop filling when a character not
12130 supported by the font is found.
12131 (Ffont_shape_text): When a shape callback function returns nil,
12132 try at most two more times with larger gstring.
12133 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12134
12135 * xdisp.c (handle_auto_composed_prop): Change the argument to
12136 auto-composition-function.
12137
12138 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12139 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12140 Lispy glyph and store it in the lgstring.
12141
12142 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12143
12144 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12145
121462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12147
12148 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12149
12150 * fontset.c (Vfont_encoding_charset_alist): New variable.
12151 (syms_of_fontset): DEFVAR it.
12152 (reorder_font_vector, fontset_find_font): Optimize for the case of
12153 no need of reordering.
12154 (face_for_char): Map the charset property by
12155 Vfont_encoding_charset_alist.
12156
121572008-02-01 Jason Rumney <jasonr@gnu.org>
12158
12159 * w32font.c (logfonts_match): Don't check adstyle here.
12160 (font_matches_spec): Check here against physical font instead.
12161 (add_font_entity_to_list): Avoid some substitutions.
12162
12163 * font.c (font_parse_fcname): Default weight and slant to normal.
12164 (font_score): Prefer normal fonts if weight or slant unspecified.
12165 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12166 match freetype scores.
12167
121682008-02-01 Jason Rumney <jasonr@gnu.org>
12169
12170 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12171 font, as it may have been deleted.
12172 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12173 most common hyphenless variation.
12174 (logfonts_match): Check generic family.
12175 (font_matches_spec): Don't check generic family here.
12176 (fill_in_logfont): Set generic family based on adstyle.
12177
12178 * w32font.h (w32font_get_cache): Update declaration.
12179
121802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12181
12182 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12183
12184 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12185 If none of the new drivers are available, call font_update_drivers
12186 with the old drivers.
12187
12188 * w32font.c (w32font_get_cache): Adjust the argument type.
12189
12190 * xfont.c (xfont_get_cache): Adjust the argument type.
12191
12192 * font.h (struct font_driver): Change argument type of get_cache.
12193
12194 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12195
12196 * font.c (Ffont_get): Fix arguments to Fassoc.
12197 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12198 (font_clear_cache): New function.
12199 (font_list_entities, font_matching_entity): Use font_get_cache.
12200 (font_update_drivers): Call font_clear_cache when finishing a driver.
12201
12202 * fontset.c (fontset_find_font): Fix previous change.
12203
122042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12205
12206 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12207 dpyinfo->font_table.
12208 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12209 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12210
12211 * font.c (font_at): Handle the case that the arg C is negative.
12212 Handle the unibyte case.
12213 (Ffont_at): Call font_at with the arg C -1.
12214
12215 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12216 the position here, and call font_at with the arg C -1.
12217 Don't check the range of the existing composition at the point.
12218
122192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12220
12221 * fontset.c (fontset_add): New args charset_id and family.
12222 Change caller.
12223 (load_font_get_repertory, fontset_find_font): Assume that
12224 font_spec is always a font-spec object.
12225 (Fset_fontset_font): Always store a font-spec object in a fontset.
12226
12227 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12228 instead of get_property_and_range.
12229
122302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12231
12232 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12233 (xftfont_open): Don't keep locking face.
12234 (xftfont_close): Don't unlock face.
12235 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12236
12237 * fontset.c (fontset_find_font): Don't prefer a font of
12238 supplementary charset.
12239
122402008-02-01 Kenichi Handa <handa@m17n.org>
12241
12242 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12243 script, langsys_tag to langsys, new member script.
12244 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12245 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12246 listing to the script specified in that property. Fix arg to
12247 OTF_check_features.
12248
122492008-02-01 Jason Rumney <jasonr@gnu.org>
12250
12251 * w32font.h: New file.
12252
12253 * w32font.c: Include it.
12254 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12255 (w32font_open): Set owning_frame.
12256 (w32font_text_extents): Use owning_frame.
12257 (struct font_callback_data): Add opentype_only field.
12258 (add_font_entity_to_list): Use it to filter fonts.
12259 Don't check against full name.
12260 (w32font_list_internal): New function.
12261 (w32font_list): Use it.
12262 (w32font_match_internal): New function.
12263 (w32font_match): Use it.
12264 (w32font_open_internal): New function.
12265 (w32font_open): Use it.
12266 (w32font_get_cache, w32font_close, w32font_has_char)
12267 (w32font_encode_char, w32font_text_extents, w32font_draw):
12268 Make non-static.
12269
12270 * makefile.w32-in (w32font.o): Depend on w32font.h.
12271
122722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12273
12274 * charset.c (Fdefine_charset_internal): Record a supplementary
12275 charset at the tail of Vcharset_order_list.
12276
12277 * font.c (Ffont_shape_text): Fix the return value.
12278
12279 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12280
12281 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12282
122832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12284
12285 * ftfont.c (struct OpenTypeSpec): New struct.
12286 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12287 (ftfont_get_open_type_spec): New function.
12288 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12289
12290 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12291
122922008-02-01 Jason Rumney <jasonr@gnu.org>
12293
12294 * w32font.c (add_font_entity_to_list): Compare only the beginning
12295 of full name.
12296
122972008-02-01 Kenichi Handa <handa@m17n.org>
12298
12299 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12300 Never return HANDLED_RECOMPUTE_PROPS.
12301
123022008-02-01 Kenichi Handa <handa@m17n.org>
12303
12304 * font.c (font_gstring_produce): Delete it.
12305
12306 * composite.h (COMPOSITION_METHOD):
12307 Handle COMPOSITION_WITH_GLYPH_STRING.
12308
123092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12310
12311 * xfont.c (Qx): Delete.
12312 (syms_of_xfont): Don't initialize Qx.
12313
12314 * composite.h (enum composition_method):
12315 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12316
123172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12318
12319 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12320 (choose_face_font): Accept new form of font-spec.
12321
12322 * frame.h (font_driver_list): Declare it unconditionally.
12323 (struct frame): Define members font_driver_list and font_data_list
12324 unconditionally.
12325
12326 * fontset.c: Include "font.h" unconditionally.
12327 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12328 (Fset_fontset_font): Accept a font-spec object.
12329
12330 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12331 PIXEL_SIZE part a wild card.
12332
12333 * dispextern.h (struct glyph_string): Define members clip and
12334 num_clips unconditionally.
12335 (struct face): Define members font_info and extra unconditionally.
12336
12337 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12338 ftfont_info only when HAVE_LIBOTF is defined.
12339
123402008-02-01 Andreas Schwab <schwab@suse.de>
12341
12342 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12343 and end.
12344
123452008-02-01 Jason Rumney <jasonr@gnu.org>
12346
12347 * w32font.c (w32font_driver): Add new fields.
12348
123492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12350
12351 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12352 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12353 (LIBES): Add @M17N_FLT_CFLAGS@.
12354
12355 * composite.c (compose_text): Don't treat the new style
12356 composition specially.
12357
12358 * emacs.c (main): Call syms_of_font unconditionally.
12359
12360 * font.h (FONT_ENTITY_NOT_LOADABLE)
12361 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12362 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12363 (struct font_driver): New member shape.
12364 (font_registry_charsets): Extern it.
12365 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12366 (font_otf_capability, font_drive_otf): Delete their externs.
12367
12368 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12369 (font_charset_alist, font_registry_charsets): Move from xfont.c
12370 and rename.
12371 (font_prop_validate_otf): New function.
12372 (font_property_table): Register it for QCotf.
12373 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12374 (font_drive_otf): Delete.
12375 (font_prepare_composition): New arg F. Adjust for the change of
12376 lispy gstring.
12377 (font_find_for_lface): New arg C.
12378 (font_load_for_face): Adjust for the change of font_find_for_lface.
12379 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12380 lispy gstring.
12381 (Ffont_shape_text): New function.
12382 (Fopen_font): If the font size is not given, use 12-pixel.
12383 (Ffont_at): New arg STRING.
12384 (syms_of_font): Initalize font_charset_alist.
12385 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12386 conditionally.
12387
12388 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12389 fonts of the same font-spec. Change the format of RFONT-DEF.
12390 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12391 Adjust for the change of RFONT-DEF.
12392 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12393
12394 * ftfont.h: New file.
12395
12396 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12397 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12398 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12399 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12400 font_otf_capability and font_drive_otf, set ftfont_shape.
12401 (ftfont_list): Adjust for the change of :otf property value.
12402 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12403 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12404 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12405 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12406 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12407 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12408
12409 * w32term.c (x_draw_composite_glyph_string_foreground):
12410 Adjust for the change of lispy gstring.
12411
12412 * xdisp.c (handle_composition_prop): Adjust for the change of
12413 lispy gstring. Call a function for auto-composition with the
12414 third arg it->window.
12415 (fill_composite_glyph_string): Adjust for the change of lispy string.
12416 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12417
12418 * xfaces.c (set_font_frame_param): Adjust for the change of
12419 font_find_for_lface.
12420
12421 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12422 (xfont_registry_charsets): Likewise. Change caller.
12423 (syms_of_xfont): Don't handle x_font_charset_alist.
12424
12425 * xftfont.c: Include "ftfont.h".
12426 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12427 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12428 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12429 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12430 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12431 Set xftfont_driver.shape to xftfont_shape.
12432
12433 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12434 the change of lispy gstring.
12435
124362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12437
12438 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12439
124402008-02-01 Jason Rumney <jasonr@gnu.org>
12441
12442 * w32font.c (w32font_draw): Fill background manually.
12443
124442008-02-01 Jason Rumney <jasonr@gnu.org>
12445
12446 * font.c (Qfontp): Remove unused symbol.
12447 (QCantialias): New symbol.
12448 (syms_of_font): Define it.
12449 (font_property_table): Set a validator for QCantialias.
12450
12451 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12452 Define if not already.
12453 (QCfamily): Share with xfaces.c.
12454 (Qstandard, Qsubpixel, Qnatural): New symbols.
12455 (syms_of_w32font): Define them. Don't define QCfamily here.
12456 (w32_antialias_type, lispy_antialias_type): New functions.
12457 (w32_enumfont_pattern_entity): New arg requested_font.
12458 Set antialias parameter if non-default was requested.
12459 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12460
124612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12462
12463 * lread.c (read1): Undo the previous change.
12464
124652008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12466
12467 * frame.c (Fdelete_frame): Call font_update_drivers only when
12468 USE_FONT_BACKEND is defined.
12469
124702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12471
12472 * font.h (struct font_bitmap): New member bits_per_pixel.
12473 (struct font_driver): New members start_for_frame and end_for_frame.
12474 (struct font_data_list): New struct.
12475 (font_put_frame_data, font_get_frame_data): Extern them.
12476
12477 * frame.h (struct frame): New member font_data_list.
12478
12479 * font.c (font_update_drivers): Call driver->start_for_frame and
12480 driver->end_for_frame at proper timings.
12481 (font_put_frame_data, font_get_frame_data): New functions.
12482 (Ffont_spec): Add usage in the docstring.
12483
12484 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12485 (Fdelete_frame): Call font_update_drivers.
12486
12487 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12488 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12489 (xftfont_get_xft_draw): New function.
12490 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12491 (xftfont_end_for_frame): New function.
12492 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12493
12494 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12495 Change argument. Cache GCs in the per-frame data.
12496 (struct ftxfont_frame_data): New struct.
12497 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12498 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12499 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12500 (ftxfont_end_for_frame): New function.
12501 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12502
12503 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12504
125052008-02-01 Kenichi Handa <handa@m17n.org>
12506
12507 * xselect.c (Vselection_coding_system)
12508 (Vnext_selection_coding_system): Delete them.
12509 (syms_of_xselect): Don't declare selection-coding-system and
12510 next-selection-coding-system. They are declared in select.el.
12511
125122008-02-01 Jason Rumney <jasonr@gnu.org>
12513
12514 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12515
12516 * w32fns.c: Include imm.h.
12517 (get_composition_string_fn, get_ime_context_fn): New optional
12518 system functions.
12519 (globals_of_w32fns): Load them from imm32.dll.
12520 (ignore_ime_char): New flag.
12521 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12522 WM_IME_ENDCOMPOSITION messages.
12523
12524 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12525 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12526
125272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12528
12529 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12530 (READCHAR_REPORT_MULTIBYTE): New macro.
12531 (readchar): New 2nd arg MULTIBYTE.
12532 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12533 Make symbol's name multibyte according to the multibyteness of the
12534 source.
12535
125362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12537
12538 * xfaces.c (face_for_overlay_string): Call lookup_face with
12539 correct arguments (fix of synching with the trunk).
12540
125412008-02-01 Kenichi Handa <handa@m17n.org>
12542
12543 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12544 (font_prop_validate_non_neg, font_prop_validate_spacing):
12545 Delete argument prop_index.
12546 (font_property_table): Change arguments to validater. Change Callers.
12547 (font_lispy_object): Delete.
12548 (font_at): Use font_find_object instead fo font_lispy_object.
12549
125502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12551
12552 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12553 and file names.
12554
125552008-02-01 Jason Rumney <jasonr@gnu.org>
12556
12557 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12558 (font_matches_spec): Remove debug output.
12559 (add_font_entity_to_list): Avoid using substituted fonts.
12560
125612008-02-01 Jason Rumney <jasonr@gnu.org>
12562
12563 * doc.c (Fsnarf_documentation):
12564 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12565
125662008-02-01 Miles Bader <miles@gnu.org>
12567
12568 * dispextern.h (struct glyph_row): Only define "clip" field if
12569 HAVE_WINDOW_SYSTEM is defined.
12570
125712008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12572
12573 Fix up multi-tty merge.
12574
12575 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12576 and indentation.
12577
12578 * xfaces.c (free_realized_face, clear_face_gcs):
12579 Include font_done_for_face in the input_blocked section, just in case.
12580
12581 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12582 (get_char_face_and_encoding): Undo last change and remove the *other*
12583 duplicate definition (i.e. keep the one that's better scoped and that
12584 includes code for the font-backend).
12585
12586 * terminal.c (create_terminal): Default keyboard_coding to
12587 `no-conversion' and terminal_coding to `undecided'.
12588
12589 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12590
12591 * fontset.c (free_realized_fontsets): Check that the table entry does
12592 contain a fontset before trying to compare it to `base'.
12593
12594 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12595 syms_of_charset, and syms_of_coding earlier because init_window_once
12596 now needs Vcoding_system_hash_table to be setup.
12597
12598 * coding.h (default_buffer_file_coding): Remove.
12599
12600 * coding.c (default_buffer_file_coding): Remove.
12601 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12602 than ->symbol, and use the terminal-local coding system.
12603 (syms_of_coding): Don't setup the coding-systems that are not
12604 terminal-local.
12605 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12606
12607 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12608 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12609
12610 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12611 in chartab.c and were re-added here by mistake.
12612 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12613
12614 * doc.c (Fsnarf_documentation):
12615 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12616 src to etc.
12617
12618 * ChangeLog.10: Add mistakenly removed entry.
12619
126202008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12621
12622 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12623
126242008-02-01 Miles Bader <miles@gnu.org>
12625
12626 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12627 Add extra args to FACE_FOR_CHAR.
12628
126292008-02-01 Kenichi Handa <handa@m17n.org>
12630
12631 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12632 in sequence.
12633
12634 * chartab.c (map_sub_char_table, map_char_table): If the range
12635 contains just one character, call the function with that character
12636 even if the depth is not 3.
12637
126382008-02-01 Jason Rumney <jasonr@gnu.org>
12639
12640 * w32font.c (w32font_text_extents): Calculate metrics for the
12641 whole string.
12642
126432008-02-01 Jason Rumney <jasonr@gnu.org>
12644
12645 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12646
126472008-02-01 Jason Rumney <jasonr@gnu.org>
12648
12649 * w32term.c (x_set_glyph_string_clipping): Use
12650 get_glyph_string_clip_rects.
12651 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12652 Adjust for the change of struct glyph_string.
12653
12654 * w32font.c (w32font_draw): Do clipping here.
12655
126562008-02-01 Kenichi Handa <handa@m17n.org>
12657
12658 * xftfont.c (xftfont_draw): Adjust for the change of struct
12659 glyph_string.
12660
12661 * xterm.c (x_set_glyph_string_clipping): Use
12662 get_glyph_string_clip_rects.
12663 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12664 Adjust for the change of struct glyph_string.
12665
12666 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12667 the resulting clip(s}.
12668 (expose_overlaps): Add arg r. Change callers. Set it to
12669 row->clip temporarily.
12670 (expose_window): Redraw rows overlapping the exposed area.
12671
12672 * dispextern.h (struct glyph_row): New member clip.
12673 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12674 clip_height, new member clip, and num_clips.
12675
126762008-02-01 Kenichi Handa <handa@m17n.org>
12677
12678 * data.c (Fchar_or_string_p): Fix docstring.
12679
126802008-02-01 Kenichi Handa <handa@m17n.org>
12681
12682 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12683 create a temporary XftDraw object.
12684
126852008-02-01 Kenichi Handa <handa@m17n.org>
12686
12687 * font.c (Ffontp): Fix docstring.
12688
12689 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12690 strong evidence of ISO-2022.
12691
126922008-02-01 Kenichi Handa <handa@m17n.org>
12693
12694 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12695 SYNTAX_ENTRY_FOLLOW_PARENT.
12696
126972008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12698
12699 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12700 its type.
12701 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12702 Update to the new type of weak_hash_tables and next_weak.
12703
12704 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12705 a plain C pointer to Lisp_Hash_Table.
12706
12707 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12708 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12709 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12710 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12711 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12712 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12713 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12714 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12715 (GC_EQ): Remove since they've been identical to their non-GC_
12716 alter-egos ever since the markbit was eradicated.
12717
12718 * alloc.c:
12719 * buffer.c:
12720 * buffer.h:
12721 * data.c:
12722 * fileio.c:
12723 * filelock.c:
12724 * fns.c:
12725 * frame.h:
12726 * lisp.h:
12727 * macterm.c:
12728 * print.c:
12729 * process.c:
12730 * w32fns.c:
12731 * w32menu.c:
12732 * w32term.c:
12733 * xfns.c:
12734 * xmenu.c:
12735 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12736
127372008-02-01 Kenichi Handa <handa@m17n.org>
12738
12739 * chartab.c (map_sub_char_table): Make it work for the top-level
12740 char-table. Fix handling of parent char-table.
12741 (map_char_table): Adjust for the above change.
12742
127432008-02-01 Jason Rumney <jasonr@gnu.org>
12744
12745 * w32font.c (Qgdi): Rename from Qw32.
12746
127472008-02-01 Jason Rumney <jasonr@gnu.org>
12748
12749 * w32bdf.c (get_quoted_string): Make function static.
12750
127512008-02-01 Kenichi Handa <handa@m17n.org>
12752
12753 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12754 bigger ascent and descent than those of the font, use them as
12755 font's ascent and descent.
12756
127572008-02-01 Kenichi Handa <handa@m17n.org>
12758
12759 * Makefile.in (${lispsource}international/charprop.el): Move this
12760 target within "#ifdef HAVE_UNIDATA" and "#endif".
12761
127622008-02-01 Kenichi Handa <handa@m17n.org>
12763
12764 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12765 (shortlisp): Add ../lisp/language/tai-viet.el.
12766
127672008-02-01 Ulrich Mueller <ulm@gentoo.org>
12768
12769 * Makefile.in (${lispsource}international/charprop.el): Depend on
12770 temacs${EXEEXT}.
12771
127722008-02-01 Jason Rumney <jasonr@gnu.org>
12773
12774 * w32font.c (w32font_close): Delete the GDI font object.
12775
12776 * w32menu.c: Include character.h.
12777
12778 * w32proc.c: Likewise.
12779
12780 * w32select.c: Likewise.
12781
12782 * makefile.w32-in (w32proc.o): Depend on character.h.
12783
127842008-02-01 Jason Rumney <jasonr@gnu.org>
12785
12786 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12787
12788 * w32menu.c (syms_of_w32menu): Likewise.
12789
12790 * w32proc.c (syms_of_ntproc): Likewise.
12791
12792 * w32select.c (syms_of_w32select): Likewise.
12793
12794 * w32term.c (syms_of_w32term): Likewise.
12795
127962008-02-01 Jason Rumney <jasonr@gnu.org>
12797
12798 * w32font.c (w32font_draw): Delete brush after using it.
12799
128002008-02-01 Jason Rumney <jasonr@gnu.org>
12801
12802 * w32font.c (w32font_open): Don't set font_idx.
12803 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12804 to font settings.
12805 (w32font_draw): Fill background explicitly.
12806
128072008-02-01 Jason Rumney <jasonr@gnu.org>
12808
12809 * w32term.c (w32_initialize): Don't call w32font_initialize.
12810
12811 * w32font.c (w32font_info): Remove subranges.
12812 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12813 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12814 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12815 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12816 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12817 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12818 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12819 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12820 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12821 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12822 New symbols.
12823 (font_callback_data): New struct.
12824 (w32font_list, w32font_match): Use it.
12825 (w32font_open): Don't populate subranges.
12826 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12827 (w32font_encode_char): Always return unicode code-point as-is.
12828 (w32font_text_extents): Supply a transformation matrix to
12829 GetGlyphOutline. Never look up by glyph index. Avoid looping
12830 twice. Use unicode version of GetTexExtentPoint32 instead of
12831 glyph index version.
12832 (set_fonts_frame): Remove.
12833 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12834 set frame parameter. Use backward compatible fake foundries.
12835 Save generic family in extra slot under QCfamily. Make width slot
12836 constant. Save QCspacing value. Save list of scripts instead of
12837 binary subranges.
12838 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12839 (add_font_entity_to_list): Use font_callback_data struct. Filter
12840 unwanted fonts.
12841 (add_one_font_entity_to_list): Use font_callback_data struct.
12842 (w32_registry): Default to iso10646_1.
12843 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12844 string font registries. Don't fill in font name if it is a generic
12845 family name, fill family instead. Use spacing, family and script
12846 extra info to fill pitch, family and charset fields.
12847 (list_all_matching_fonts): Use font_callback_data struct.
12848 (unicode_range_for_char): Remove.
12849 (font_supported_scripts): New function.
12850 (w32font_initialize): Remove.
12851 (syms_of_w32font): Update which symbols are defined.
12852
128532008-02-01 Jason Rumney <jasonr@gnu.org>
12854
12855 * font.c (font_pixel_size): Reverse assq_no_quit args.
12856
12857 * w32term.h (FONT_WIDTH): Report max width, not average.
12858 (FONT_MAX_WIDTH): Remove.
12859 (FONT_AVG_WIDTH): New macro.
12860
12861 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12862 redefinition of FONT_WIDTH.
12863
12864 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12865 (w32_cache_char_metrics): Use FONT_WIDTH.
12866
12867 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12868
128692008-02-01 Jason Rumney <jasonr@gnu.org>
12870
12871 * w32font.c (w32font_open): Make lfHeight negative.
12872
12873 * w32fns.c (x_default_font_parameter): Use new style font name.
12874 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12875
128762008-02-01 Jason Rumney <jasonr@gnu.org>
12877
12878 * w32font.c (QCsubranges): New symbol.
12879 (w32font_open, w32font_has_char): Get subranges from subproperty
12880 of extra.
12881 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12882 (syms_of_w32font): Define :subranges symbol.
12883
12884 * font.c (font_put_extra): Expose externally.
12885
12886 * font.h (font_put_extra): Move declaration from font.c.
12887
12888 * font.c (Ffont_get): Use font driver to determine otf capability.
12889 (adjust_anchor): Check if driver defines anchor_point before using.
12890
12891 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12892 (w32font_draw): Use options.
12893 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12894 Fix detection of truetype fonts.
12895 (registry_to_w32_charset): Handle charsets other than iso8859-1
12896 expressed as lisp symbols.
12897 (w32_registry): Express charset as lisp symbol.
12898 (fill_in_logfont): Reverse pixel and point height logic.
12899 Don't set width here. Set quality to default.
12900
12901 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12902 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12903
12904 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12905 Remove redundant loop and allocation.
12906
12907 * makefile.w32-in (font.o, w32font.o): New objects.
12908 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12909 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12910
12911 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12912 STORE_XCHARB a valid l-value.
12913
12914 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12915 calculations for non-Truetype fonts.
12916 (x_draw_glyph_string): Sync with xterm.c.
12917 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12918 Remove redundant code.
12919 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12920
12921 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12922 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12923
12924 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12925 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12926
12927 * w32font.c: New file for w32 font backend.
12928
129292008-02-01 Kenichi Handa <handa@m17n.org>
12930
12931 * term.c: Don't include "buffer.h" twice.
12932
129332008-02-01 Kenichi Handa <handa@m17n.org>
12934
12935 * character.c (Funibyte_string): New function.
12936 (syms_of_character): Defsubr it.
12937
129382008-02-01 Jason Rumney <jasonr@gnu.org>
12939
12940 * w32term.c [USE_FONT_BACKEND]:
12941 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12942 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12943 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12944 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12945 (x_free_frame_resources): Sync with xterm.c.
12946
129472008-02-01 Andreas Schwab <schwab@suse.de>
12948
12949 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12950 char-table size.
12951
129522008-02-01 Kenichi Handa <handa@m17n.org>
12953
12954 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12955
129562008-02-01 Kenichi Handa <handa@m17n.org>
12957
12958 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12959 font_otf_gpos, add font_drive_otf.
12960
12961 * fontset.c (fontset_find_font): Pay attention to font size
12962 specified for a font.
12963 (reorder_font_vector): Check contents of font_def.
12964
12965 * font.c (struct otf_list): Delete it.
12966 (otf_list): Make it a lisp variable.
12967 (otf_open): Use lispy otf_list.
12968 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12969 (check_otf_features): New function.
12970 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12971 New functions.
12972 (font_drive_otf): New function merging font_otf_gsub and
12973 font_otf_gpos.
12974 (font_open_for_lface): New arg spec. Change argument order.
12975 (font_load_for_face): Adjust for the change of font_open_for_lface.
12976 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12977 Ffont_otf_gpos.
12978 (syms_of_font): Staticpro otf_list. Delete defsubr of
12979 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12980
12981 * xfaces.c (set_font_frame_param): Adjust for the change of
12982 font_open_for_lface.
12983
12984 * font.h (font_open_for_lface): Adjust prototype.
12985 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12986 member otf_drive.
12987 (font_otf_gsub, font_otf_gpos): Delete externs.
12988 (font_drive_otf): Extern it.
12989
129902008-02-01 Kenichi Handa <handa@m17n.org>
12991
12992 * font.c (font_at): If the window W is not on a window system,
12993 return Qnil.
12994
12995 * coding.c (produce_chars, encode_coding): Don't call
12996 insert_from_gap if no characters to produce.
12997
129982008-02-01 Kenichi Handa <handa@m17n.org>
12999
13000 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13001 Fclear_face_cache.
13002
13003 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13004
130052008-02-01 Miles Bader <miles@gnu.org>
13006
13007 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13008 Parse "--disable-font-backend" option.
13009 (standard_args): Add "--disable-font-backend" option.
13010
130112008-02-01 Kenichi Handa <handa@m17n.org>
13012
13013 * fontset.c (fontset_find_font): New function.
13014 (fontset_font): Use fontset_find_font.
13015 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13016 Register the specified font for all Latin characters.
13017 (new_fontset_from_font): Register the specified font for all Latin
13018 characters.
13019 (dump_fontset): For a realized fontset, include the base fontset
13020 name in the returned vector.
13021
130222008-02-01 Kenichi Handa <handa@m17n.org>
13023
13024 * character.h (CHAR_STRING): Cast C to unsigned on calling
13025 char_string.
13026
13027 * character.c (char_string): Type of arg C changed to unsigned.
13028 Signal an error if C is an invalid character code.
13029
13030 * editfns.c (general_insert_function, Fchar_to_string):
13031 Use CHARACTERP, not INTEGERP.
13032
130332008-02-01 Kenichi Handa <handa@m17n.org>
13034
13035 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13036 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13037
13038 * regex.c (analyse_first): Fix for multibyte characters in "case
13039 charset:" and "case categoryspec:".
13040
130412008-02-01 Andreas Schwab <schwab@suse.de>
13042
13043 * Makefile.in (LIBES): Move standard libraries to the end.
13044
130452008-02-01 Kenichi Handa <handa@m17n.org>
13046
13047 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13048 nonzero, don't shrink the buffer nextb.
13049
13050 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13051
13052 * coding.c (coding_alloc_by_making_gap): New arg offset.
13053 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13054 offset.
13055 (decode_coding_iso_2022): Update coding->safe_charsets.
13056 (decode_coding_gap): Temporarily set
13057 current_buffer->text->inhibit_shrinking to 1.
13058
130592008-02-01 Kenichi Handa <handa@m17n.org>
13060
13061 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13062 indexing into elements of s->cmp and s->char2b.
13063
130642008-02-01 Juanma Barranquero <lekktu@gmail.com>
13065
13066 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13067
130682008-02-01 Kenichi Handa <handa@m17n.org>
13069
13070 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13071 target_multibyte instead of multibyte.
13072 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13073 (bcmp_translate): Change the argument name from multibyte to
13074 target_multibyte.
13075
130762008-02-01 Kenichi Handa <handa@m17n.org>
13077
13078 These changes are to compile a regexp into a pattern that can be
13079 used both for multibyte and unibyte targets.
13080
13081 * Makefile.in (search.o): Depend on charset.h.
13082
13083 * character.c (multibyte_char_to_unibyte_safe): New function.
13084
13085 * search.c: Include "charset.h".
13086 (compile_pattern_1): Delete argument multibyte. Don't set
13087 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13088 (compile_pattern): Don't compare cp->buf.target_multibyte.
13089 Compare cp->buf.charset_unibyte.
13090 (compile_pattern): Set cp->buf.target_multibyte.
13091
13092 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13093
13094 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13095
13096 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13097 multibyte. Change callers.
13098 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13099 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13100 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13101 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13102 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13103 (regex_compile): Make the compiled pattern usable both for
13104 multibyte and unibyte targets.
13105 (analyse_first): Make the fastmap usable both for multibyte and
13106 unibyte targets.
13107 (TRANSLATE_VIA_MULTIBYTE): Delete.
13108 (re_match_2_internal): Pay attention to the case that the
13109 multibyteness of bufp and target may be different.
13110
131112008-02-01 Kenichi Handa <handa@m17n.org>
13112
13113 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13114 empty box occupy at least one column width.
13115
131162008-02-01 Miles Bader <miles@gnu.org>
13117
13118 * Makefile.in: Remove redundant HAVE_XFT clause.
13119
131202008-02-01 Kenichi Handa <handa@m17n.org>
13121
13122 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13123
131242008-02-01 Kenichi Handa <handa@m17n.org>
13125
13126 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13127 being nil.
13128
131292008-02-01 Kenichi Handa <handa@m17n.org>
13130
13131 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13132
131332008-02-01 Kenichi Handa <handa@m17n.org>
13134
13135 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13136
131372008-02-01 Kenichi Handa <handa@m17n.org>
13138
13139 * search.c (simple_search): Fix previous change.
13140
131412008-02-01 Kenichi Handa <handa@m17n.org>
13142
13143 * xftfont.c (ftfont_font_format): Extern declaration.
13144
13145 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13146
13147 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13148 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13149
13150 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13151 (ftfont_font_format): Fix previous change.
13152
13153 * font.h (Ffont_xlfd_name): EXFUN it.
13154
13155 * font.c (font_parse_xlfd): Fix the array size of `f'.
13156 (register_font_driver): Use EQ to compare driver->type.
13157
13158 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13159 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13160 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13161
131622008-02-01 Kenichi Handa <handa@m17n.org>
13163
13164 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13165 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13166
131672008-02-01 Kenichi Handa <handa@m17n.org>
13168
13169 * xfont.c (xfont_open): Set font->format.
13170
13171 * xftfont.c (xftfont_open): Set font->format.
13172
13173 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13174 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13175 (ftfont_open): Set font->format.
13176 (ftfont_font_format): New function.
13177
13178 * font.h (struct font): New member format.
13179
13180 * font.c (Qopentype): New variable.
13181 (syms_of_font): Defsym it.
13182 (Fquery_font): Change the format of the last element of the return
13183 value.
13184
131852008-02-01 Kenichi Handa <handa@m17n.org>
13186
13187 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13188 last resort.
13189
131902008-02-01 Kenichi Handa <handa@m17n.org>
13191
13192 * coding.c (detect_coding_charset): Fix detection of multi-byte
13193 charset.
13194
131952008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13196
13197 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13198
131992008-02-01 Kenichi Handa <handa@m17n.org>
13200
13201 * xdisp.c (get_next_display_element): Set it->face_id for the
13202 first component of a composition.
13203 (x_produce_glyphs): Check if the font is changed or not for composition.
13204
132052008-02-01 Kenichi Handa <handa@m17n.org>
13206
13207 * fontset.c (Qlatin): New variable.
13208 (syms_of_fontset): Define it as a lisp symbol.
13209 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13210
132112008-02-01 Kenichi Handa <handa@m17n.org>
13212
13213 * font.c (font_unparse_fcname): Pay attention to the case that
13214 some of font property is a null string.
13215
132162008-02-01 Kenichi Handa <handa@m17n.org>
13217
13218 * term.c: Include "composite.h".
13219 (encode_terminal_code): Output all components of composition.
13220 Check the size of encode_terminal_src.
13221 (produce_glyphs): For composition, call produce_composite_glyph.
13222 (append_composite_glyph, produce_composite_glyph): New functions.
13223
13224 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13225 is not found, get font_info from the current ascii face.
13226
132272008-02-01 Kenichi Handa <handa@m17n.org>
13228
13229 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13230 buffer-file-name to Qnil before calling insert_from_buffer.
13231
13232 * font.c (font_unparse_fcname): Pay attention to the case that
13233 foundry is a null string.
13234
132352008-02-01 Kenichi Handa <handa@m17n.org>
13236
13237 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13238
13239 * font.c (Qunicode_sip): New variable.
13240 (syms_of_font): Declare it as a Lisp symbol.
13241
13242 * font.h (Qunicode_sip): Extern it.
13243
132442008-02-01 Kenichi Handa <handa@m17n.org>
13245
13246 * composite.c (get_composition_id): Pay attention to TAB component.
13247
13248 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13249 TAB. Adjust for the change of s->char2b which always points to
13250 the first element of allocated memory.
13251
13252 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13253
13254 * xdisp.c (handle_composition_prop): Set it->c to the first
13255 non-TAB component.
13256 (fill_composite_glyph_string): Change argument.
13257 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13258 (x_produce_glyphs): Fix handling of left/right padding.
13259
132602008-02-01 Kenichi Handa <handa@m17n.org>
13261
13262 * coding.c (detect_coding_system): Fix for handling off
13263 inhibit_iso_escape_detection. Fix for the case that no coding
13264 system is defined for a specific coding category.
13265
132662008-02-01 Kenichi Handa <handa@m17n.org>
13267
13268 * font.c (font_matching_entity): Delete unused local var.
13269
13270 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13271 opening a font.
13272
13273 * fileio.c (Finsert_file_contents): On recovering a file, assume
13274 Unix-like eol.
13275 (choose_write_coding_system): On auto-saving a file, force
13276 Unix-like eol.
13277
13278 * coding.c (setup_coding_system): Fix setting of
13279 coding->common_flags based on eol_type.
13280 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13281 inherit from it.
13282
132832008-02-01 Kenichi Handa <handa@m17n.org>
13284
13285 * alloc.c (NSTATICS): Increas to 0x600.
13286
132872008-02-01 Kenichi Handa <handa@m17n.org>
13288
13289 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13290 (ftfont_list): Don't check :name property.
13291 (ftfont_match): New function.
13292 (ftfont_pattern_entity): If the pattern doesn't contain
13293 FC_SPACING, don't assume FC_MONO.
13294
13295 * font.h (struct font_driver): New member `match'.
13296 (font_update_drivers): Adjust prototype.
13297
13298 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13299 property of FONT.
13300 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13301 them unconditionally.
13302 (font_matching_entity): New function.
13303 (font_open_by_name): Try font_matching_entity if exact match is
13304 not found.
13305 (font_update_drivers): Delete the arg FONT. Return a list of
13306 actually used backends. Don't free faces, font caches here.
13307 Don't store data in frame parameters. Don't call x_set_font.
13308 (Ffont_spec): Store :name property as is.
13309 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13310 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13311 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13312 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13313 Call font->driver->otf_gsub instead of font_otf_gsub.
13314
13315 * frame.c (x_set_font_backend): Do more works that were done in
13316 font_update_drivers before.
13317
13318 * xfont.c (xfont_match): New function.
13319 (xfont_driver): Set xfont_driver.match to xfont_match.
13320 (xfont_draw): Set font in GC if necessary.
13321
13322 * ftxfont.c (ftxfont_match): New function.
13323 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13324
13325 * xftfont.c (xftfont_match): New function.
13326 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13327
133282008-02-01 Kenichi Handa <handa@m17n.org>
13329
13330 * font.h (struct font): New member scalable.
13331 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13332 (font_otf_gsub): Adjust prototype.
13333
13334 * font.c (font_otf_capability): Fix handling of the default langsys.
13335 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13336 Check the contents of SPEC.
13337 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13338 (check_gstring): New function.
13339 (REPLACEMENT_CHARACTER): New macro.
13340 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13341 glyph codes of GSTRING.
13342 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13343 (font_prepare_composition): Set cmp->glyph_len.
13344 (font_open_entity): Set font->scalable.
13345 (Ffont_get): Handle :otf property.
13346 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13347 functions.
13348 (Fquery_font): Use font->font.full_name.
13349 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13350 Sfont_otf_alternates.
13351
13352 * ftfont.c (ftfont_open): Set font->font.full_name and
13353 font->font.name properly. Fix calculation of font->font.height
13354 and font->min_width.
13355
13356 * ftxfont.c (ftxfont_create_gcs): New function.
13357 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13358 (ftxfont_draw_backgrond): Fix filling region.
13359 (ftxfont_default_fid): New function.
13360 (ftxfont_open): Set xfont->fid to the return value of
13361 ftxfont_default_fid.
13362 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13363 (ftxfont_done_face): Free only GCs that are created by
13364 ftxfont_create_gcs.
13365 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13366
13367 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13368 Clip to src->width, etc (not src->clip_XXX).
13369
13370 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13371 FontBackend frame parameter.
13372
133732008-02-01 Kenichi Handa <handa@m17n.org>
13374
13375 * font.h (struct font_driver_list): New member `on'.
13376 (Fclear_font_cache): EXFUN it.
13377 (font_update_drivers): Extern it.
13378
13379 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13380 (font_list_entities): Check driver_list->on.
13381 (register_font_driver): Initalize `on' member to 0.
13382 (font_update_drivers): New function.
13383 (Fclear_font_cache): Check driver_list->on.
13384
13385 * frame.h (Qfont_backend): Extern it.
13386 (x_set_font_backend): Extern it.
13387
13388 * frame.c (Qfont_backend): New variable.
13389 (frame_parms): New element for font-backend.
13390 (x_set_font_backend): New function.
13391
13392 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13393 FontBackend frame parameter.
13394 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13395 x_set_font_backend.
13396
13397 * xfont.c (xfont_list): Don't try listing by :name property if the
13398 name is not for XLFD.
13399
134002008-02-01 Kenichi Handa <handa@m17n.org>
13401
13402 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13403 (LGLYPH_SET_TO): New macros.
13404 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13405 element of G is vector or not.
13406 (font_at): Extern it.
13407
13408 * font.c: Include window.h.
13409 (font_lispy_object): New function.
13410 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13411 end of valid glyph.
13412 (font_close_object): Fix getting (struct font *).
13413 (font_at): New function.
13414 (Ffont_get): If FONT is a font-object, get entity from it.
13415 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13416 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13417 range check.
13418 (Ffont_at): New function.
13419 (syms_of_font): Defsubr Sfont_at.
13420
13421 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13422 before the entry for Qcomposition.
13423 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13424 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13425 the font in gstring.
13426 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13427 LGLYPH_FORM (g) to detect the end of valid glyph.
13428 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13429 we are composing with gstring.
13430
13431 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13432 Check if adjustment is vector or not.
13433
13434 * Makefile.in (font.o): Make it depends on window.h.
13435
134362008-02-01 Kenichi Handa <handa@m17n.org>
13437
13438 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13439 adjustment is vector or not.
13440
134412008-02-01 Miles Bader <miles@gnu.org>
13442
13443 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13444
134452008-02-01 Kenichi Handa <handa@m17n.org>
13446
13447 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13448 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13449 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13450
13451 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13452 (DEVICE_DELTA): Fix typo.
13453 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13454 LGLYPH format.
13455
13456 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13457 the change of LGLYPH format.
13458
134592008-02-01 Kenichi Handa <handa@m17n.org>
13460
13461 * ftfont.c (ftfont_list): Fix typo.
13462 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13463
134642008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13465
13466 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13467
13468 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13469 xftface_info is non-NULL.
13470
134712008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13472
13473 * ftfont.c (ftfont_list): Move misplaced #endif.
13474
134752008-02-01 Kenichi Handa <handa@m17n.org>
13476
13477 * ftfont.c (ftfont_list): Pay attention to the case that
13478 FC_CAPABILITY is not defined.
13479
134802008-02-01 Kenichi Handa <handa@m17n.org>
13481
13482 * xftfont.c (xftfont_open): Set charset related members to -1.
13483
13484 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13485 QCname.
13486 (ftfont_open): Set charset related members to -1.
13487
13488 * fontset.c (Votf_script_alist): New variable.
13489 (syms_of_fontset): Initialize it.
13490 (fontset_font): Delete unused variable.
13491
13492 * fontset.h (Votf_script_alist): Extern it.
13493
13494 * font.c (font_find_for_lface): Optimize code.
13495
13496 * font.h (font_close_object, font_merge_old_spec): Extern them.
13497
134982008-02-01 Kenichi Handa <handa@m17n.org>
13499
13500 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13501 (syms_of_font): Initialize them.
13502 (font_pixel_size): Allow float value in dpi.
13503 (font_prop_validate_type): Delete.
13504 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13505 Change caller.
13506 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13507 (font_prop_validate_extra): Delete.
13508 (font_prop_validate_spacing): New function.
13509 (font_property_table): Add elements for all known properties.
13510 (get_font_prop_index): Rename from check_font_prop_name. New
13511 argument FROM. Change caller.
13512 (font_prop_validate): Validate all known properties.
13513 (font_put_extra): Delete argument force. Change caller.
13514 (font_expand_wildcards): Make it static. Fix the way of shrinking
13515 the possible range.
13516 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13517 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13518 Change caller.
13519 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13520 (font_parse_fcname): Delete argument merge. Fix parsing of point
13521 size. Don't validate properties values here. Change caller.
13522 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13523 (font_open_by_name): Delete unused variable.
13524 (Ffont_spec): Likewise. Validate property values.
13525 (Ffont_match_p): New function.
13526
13527 * font.h (QCscalable): Extern it.
13528 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13529
13530 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13531
13532 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13533 (xfont_list_pattern): New function.
13534 (xfont_list): Use xfont_list_pattern.
13535
135362008-02-01 Kenichi Handa <handa@m17n.org>
13537
13538 * font.h (Flist_fonts): EXFUN it.
13539
135402008-02-01 Jason Rumney <jasonr@gnu.org>
13541
13542 * w32term.c (w32_initialize): Add back smoothing_type and
13543 smoothing_enabled definitions.
13544
135452008-02-01 Kenichi Handa <handa@m17n.org>
13546
13547 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13548 s->face->font on determining underline position.
13549
135502008-02-01 Kenichi Handa <handa@m17n.org>
13551
13552 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13553 (font_has_char): Accept font-object too.
13554 (font_find_for_lface): Try at first with a size specified in face.
13555
135562008-02-01 Kenichi Handa <handa@m17n.org>
13557
13558 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13559 font_open_by_name.
13560
135612008-02-01 Kenichi Handa <handa@m17n.org>
13562
13563 * font.h (QCspacing, QCdpi): Extern them.
13564 (enum font_spacing): New enum.
13565 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13566
13567 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13568 (QCspacing, QCdpi): New variables.
13569 (syms_of_font): Initialize them.
13570 (font_pixel_size): New function.
13571 (font_put_extra): New function.
13572 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13573 in FONT_EXTRA.
13574 (font_parse_fcname): Handle enumerated values (e.g. bold).
13575 Fix handling font size. Add QCname property that contains only
13576 unknown properties.
13577 (font_score): Change argument. Change caller. Pay attention to
13578 FONT_PIXEL_SIZE_QUANTUM.
13579 (font_sort_entites, font_list_entities, font_find_for_lface)
13580 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13581 (Ffont_spec): Add QCname property that contains only unknown properties.
13582
13583 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13584 include weight in listing pattern, instead check weight of each
13585 listed font. Don't include scalable in pattern. Pay attention to
13586 FONT_PIXEL_SIZE_QUANTUM.
13587
135882008-02-01 Kenichi Handa <handa@m17n.org>
13589
13590 * font.c (font_parse_fcname): Fix parsing of point-size.
13591 (font_unparse_fcname): Produce symbolic names for style properties.
13592 (font_list_entities): Handle float size correctly.
13593 (font_open_by_name): Prefer `normal' property values if the name
13594 doesn't specify them.
13595
13596 * fontset.c (Finternal_char_font): Use font_get_name, not
13597 Ffont_xlfd_name.
13598
13599 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13600 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13601 pattern. Don't force scalable.
13602
13603 * xftfont.c (xftfont_open): For generating a name, start from
13604 96-byte buffer.
13605
136062008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13607
13608 * frame.h (x_new_fontset2): Fix prototype.
13609
136102008-02-01 Kenichi Handa <handa@m17n.org>
13611
13612 * font.h (struct font_driver): Delete member parse_name.
13613 (font_match_p, font_get_spec, font_parse_fcname)
13614 (font_unparse_fcname): Extern them.
13615 (font_get_name): Adjust prototype.
13616
13617 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13618 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13619 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13620 unnecessary checks for weight, slant, and swidth.
13621 (font_parse_fcname): New function.
13622 (font_unparse_fcname): New function.
13623 (font_parse_name): New function.
13624 (font_match_p): New function.
13625 (font_get_name): Change return value to Lisp string.
13626 (font_get_spec): New function.
13627 (Qunspecified, Qignore_defface): Don't extern them.
13628 (font_find_for_lface): Assume that LFACE is fully specified.
13629 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13630 object, use it for FACE.
13631 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13632 driver->parse_name.
13633 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13634
13635 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13636 prototype.
13637
13638 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13639 argument F. Don't call Fnew_fontset. Instead, directly call
13640 make_fontset.
13641
13642 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13643
13644 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13645 of x_new_fontset2.
13646
13647 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13648 (Qsans__serif): New variables.
13649 (ftfont_generic_family_list): New variable.
13650 (syms_of_ftfont): Initialize the above variables.
13651 (ftfont_pattern_entity): Delete argument NAME.
13652 (ftfont_list_generic_family): New function.
13653 (ftfont_parse_name): Delete this function.
13654 (ftfont_list): Try generic family only when FcFontList found no font.
13655 (ftfont_list_family): Fix args to FcObjectSetBuild.
13656
13657 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13658 object in attrs[LFACE_FONT_INDEX].
13659 (set_lface_from_font_name): Cancel all changes for font-backend.
13660 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13661 function.
13662 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13663 font object in QCfont attribute.
13664 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13665 (realize_default_face) [USE_FONT_BACKEND]: Call
13666 set_lface_from_font_and_fontset.
13667
13668 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13669 "fixed", and signal error here if no suitable font was found.
13670
13671 * xfont.c (xfont_parse_name): Delete this function.
13672
13673 * xftfont.c (xftfont_open): Change coding style of error
13674 handling. Generate fontconfig's fontname pattern.
13675
13676 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13677 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13678
13679 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13680 Both args FONTSET and FONT_OBJECT must be existing ones.
13681
136822008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13683
13684 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13685
136862008-02-01 Kenichi Handa <handa@m17n.org>
13687
13688 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13689
13690 * font.h (struct font): Fix typo.
13691
13692 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13693 XLFD_XXX_INDEX.
13694 (enum xlfd_field_mask): New enum.
13695 (intern_font_field): Changed argument. Change caller. If digits
13696 are followed by non-digits, return a symbol.
13697 (font_expand_wildcards): New function.
13698 (font_parse_xlfd): Fix wildcard handling.
13699 (Ffont_spec): If :name is specified, reflect the info in the other
13700 properties.
13701
13702 * ftfont.c (ftfont_pattern_entity): Fix typo.
13703 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13704 locale.
13705
137062008-02-01 Kenichi Handa <handa@m17n.org>
13707
13708 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13709
13710 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13711 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13712 registry doesn't specify encoding part.
13713 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13714 (font_open_by_name): At first try parsing the name.
13715 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13716 as Lisp symbols.
13717
13718 * fontset.c (reorder_font_vector): Pay attention to the case that
13719 the 3rd element of font_def is nil.
13720 (fontset_font): For the default fontset, append one more fontset
13721 elements for a script-based font specification. Don't add script
13722 attribute on finding a font.
13723 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13724 font name.
13725 (fontset_ascii_font): If a font can't be opened, return nil.
13726
13727 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13728 (ftfont_pattern_entity): New function.
13729 (ftfont_get_cache): Assume that freetype_font_cache is already
13730 initialized.
13731 (ftfont_list): Handle the case that a file is specified in font
13732 name. Use ftfont_pattern_entity to generate entities.
13733 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13734 (syms_of_ftfont): Initialize freetype_font_cache.
13735
13736 * xftfont.c (xftfont_open): Make the font name fontconfig's
13737 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13738 (xftfont_close): Free font->font.name if not NULL.
13739
13740 * xfont.c (xfont_list): If script is specified for a font, return
13741 null_vector.
13742 (xfont_list_family): Declare argument type.
13743
13744 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13745 name, set LFACE_FONT (lface) to nil.
13746
13747 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13748 return Qnil.
13749
137502008-02-01 Kenichi Handa <handa@m17n.org>
13751
13752 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13753 (standard_args): Add "-enable-font-backend".
13754
137552008-02-01 Kenichi Handa <handa@m17n.org>
13756
13757 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13758 (struct xftdraw_list, xftdraw_list): Delete them.
13759 (register_xftdraw, check_xftdraw): Delete them.
13760 (xftfont_prepare_face): Don't call register_xftdraw.
13761 (xftfont_done_face): Don't call check_xftdraw.
13762 (xftfont_draw): Get background color only when with_background is
13763 nonzero.
13764
13765 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13766
137672008-02-01 Kenichi Handa <handa@m17n.org>
13768
13769 These changes are for the new font handling codes.
13770
13771 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13772 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13773 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13774 (FONTSRC, FONTOBJ): New variables.
13775 (obj): Add $(FONTOBJ).
13776 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13777 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13778 @LIBOTF_LIBS@.
13779 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13780 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13781
13782 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13783
13784 * character.h (Vscript_representative_chars): Extern it.
13785
13786 * character.c (Vscript_representative_chars): New variable.
13787 (syms_of_character): Declare it as a Lisp variable.
13788
13789 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13790 enable_font_backend is nonzero, accept the composition method
13791 COMPOSITION_WITH_GLYPH_STRING.
13792
13793 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13794 enumeration COMPOSITION_WITH_GLYPH_STRING.
13795
13796 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13797 members clip_x, clip_y, clip_width, and clip_height.
13798 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13799
13800 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13801 --enable-font-backend. Call syms_of_font.
13802
13803 * fns.c (assoc_no_quit): New function.
13804
13805 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13806 (face_for_font, new_fontset_from_font)
13807 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13808
13809 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13810 (fontset_font, fontset_ascii, face_for_char)
13811 (make_fontset_for_ascii_face, Ffont_info)
13812 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13813 is nonzero, use font-backend mechanism.
13814 (find_font_encoding): Make it non-static.
13815 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13816 New functions.
13817
13818 * frame.h (struct frame): New members resx and resy.
13819 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13820 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13821
13822 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13823 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13824
13825 * lisp.h (assoc_no_quit): Extern it.
13826
13827 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13828 Through out the file, use FONT_INFO_FROM_FACE instead of
13829 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13830 rif->per_char_metric.
13831 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13832 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13833 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13834 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13835 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13836 nonzero, use font-backend mechanism.
13837 (get_per_char_metric): New function.
13838
13839 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13840 (set_lface_from_font_name)
13841 (set_font_frame_param, free_realized_face)
13842 (prepare_face_for_display, clear_face_gcs)
13843 (Finternal_set_font_selection_order, realize_x_face)
13844 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13845 font-backend mechanism.
13846 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13847 (load_face_font) [USE_FONT_BACKEND]: Abort.
13848 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13849 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13850
13851 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13852 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13853 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13854 nonzero, register all available font drivers. Call
13855 x_default_font_parameter for deciding a font.
13856 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13857
13858 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13859 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13860 (x_set_glyph_string_clipping_exactly)
13861 (x_compute_glyph_string_overhangs)
13862 (x_draw_glyph_string_foreground)
13863 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13864 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13865 enable_font_backend is nonzero, use font-backend mechanism.
13866 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13867
138682008-02-01 Kenichi Handa <handa@m17n.org>
13869
13870 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13871 system_eol_type.
13872 (syms_of_coding): Initialize system_eol_type.
13873
13874 * process.c (Fset_process_coding_system): Inherit system's eol
13875 format if necessary.
13876
138772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13878
13879 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13880
138812008-02-01 Kenichi Handa <handa@m17n.org>
13882
13883 * coding.c (decode_eol): Pay attention to buffer relocation in
13884 del_range_2.
13885 (decode_coding): Call decode_eol before restoring undo_list.
13886
138872008-02-01 Kenichi Handa <handa@m17n.org>
13888
13889 * charset.c (Fdefine_charset_internal): Fix setting of
13890 emacs_mule_bytes.
13891
138922008-02-01 Kenichi Handa <handa@m17n.org>
13893
13894 * keyboard.c (read_char): Check if C is a character or not before
13895 looking up Vkeyboard_translate_table.
13896
138972008-02-01 Kenichi Handa <handa@m17n.org>
13898
13899 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13900 condition to terminate the loop.
13901
139022008-02-01 Kenichi Handa <handa@m17n.org>
13903
13904 * coding.c (produce_composition): Compare charbuf[i] instead of
13905 args[i] against 0.
13906 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13907
139082008-02-01 Kenichi Handa <handa@m17n.org>
13909
13910 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13911 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13912 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13913 detect_coding.
13914 (emacs_mule_char): Handle old style (Emacs 20) component character
13915 of a composition.
13916 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13917 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13918 composition rule.
13919 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13920
139212008-02-01 Kenichi Handa <handa@m17n.org>
13922
13923 * coding.c (encode_coding_ccl): Allocate destination dynamically
13924 when necessary.
13925
139262008-02-01 Kenichi Handa <handa@m17n.org>
13927
13928 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13929 the loop. When quitted, show a proper error message.
13930
139312008-02-01 Kenichi Handa <handa@m17n.org>
13932
13933 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13934 src->clip_head and src->clip_tail temporarily instead of src->hl.
13935
13936 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13937 character sequence.
13938 (Fccl_execute_on_string): Use ASET, not XSET.
13939
139402008-02-01 Kenichi Handa <handa@m17n.org>
13941
13942 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13943
139442008-02-01 Kenichi Handa <handa@m17n.org>
13945
13946 * coding.c (decode_coding): Fix the condition of terminating the
13947 decoding loop.
13948
139492008-02-01 Kenichi Handa <handa@m17n.org>
13950
13951 * data.c (Faset): On setting a character bigger than 255 in a
13952 unibyte string, signal an error instead of make the string multibyte.
13953
139542008-02-01 Kenichi Handa <handa@m17n.org>
13955
13956 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13957 made by a mapping table.
13958
139592008-02-01 Kenichi Handa <handa@m17n.org>
13960
13961 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13962 not.
13963 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13964 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13965
13966 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13967 s->face is NULL or not.
13968
139692008-02-01 Kenichi Handa <handa@m17n.org>
13970
13971 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13972 (x_draw_glyph_string): Fix drawing of right_overhang and
13973 left_overhang around/on cursor.
13974
13975 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13976
139772008-02-01 Kenichi Handa <handa@m17n.org>
13978
13979 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13980
139812008-02-01 Kenichi Handa <handa@m17n.org>
13982
13983 * coding.c (Fdefine_coding_system_internal)
13984 (Fdefine_coding_system_alias): Avoid a duplicated element in
13985 Vcoding_system_alist.
13986
139872008-02-01 Kenichi Handa <handa@m17n.org>
13988
13989 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13990
13991 * coding.c (Qcoding_system_define_form): New variable.
13992 (syms_of_coding): Intern and staticpro it.
13993 (Fcoding_system_p): Check Qcoding_system_define_form.
13994 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13995
13996 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13997 Fcoding_system_p.
13998 (CHECK_CODING_SYSTEM): If ID is not available, call
13999 Fcheck_coding_system.
14000 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14001 Try also Fcheck_coding_system.
14002
140032008-02-01 Kenichi Handa <handa@m17n.org>
14004
14005 * coding.c (code_conversion_restore): GCPRO arg.
14006
140072008-02-01 Kenichi Handa <handa@m17n.org>
14008
14009 * character.c (lisp_string_width): Check multibyteness of STRING.
14010
140112008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14012
14013 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14014 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14015 (decode_mac_font_name): Use decode_coding_c_string instead of
14016 decode_coding.
14017 (x_load_font): Initialize fontp->fontset to -1. Set
14018 fontp->encoding_type.
14019
140202008-02-01 Kenichi Handa <handa@m17n.org>
14021
14022 * search.c (search_buffer): Give up BM search on case-fold-search
14023 if one of a target character has a case-equivalence of different
14024 byte length even if that target charcter is an ASCII.
14025 (simple_search): Fix calculation of byte length of matched text.
14026 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14027
140282008-02-01 Kenichi Handa <handa@m17n.org>
14029
14030 * coding.c (decode_coding): Fix handling of invalid bytes.
14031
140322008-02-01 Kenichi Handa <handa@m17n.org>
14033
14034 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14035 Unicode characters.
14036
140372008-02-01 Kenichi Handa <handa@m17n.org>
14038
14039 * coding.c (encode_coding_object): If a pre-write-conversion
14040 function makes a new buffer, kill it.
14041
140422008-02-01 Kenichi Handa <handa@m17n.org>
14043
14044 * coding.c (QCascii_compatible_p): New variable.
14045 (syms_of_coding): Initialize it.
14046 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14047 calling string_char.
14048 (record_conversion_result): Add `default:' case.
14049 (coding_charset_list): Delete unused variable `coding_type'.
14050 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14051 property in the plist of the coding system.
14052 (Fcoding_system_put): Check QCascii_compatible_p.
14053
140542008-02-01 Miles Bader <miles@gnu.org>
14055
14056 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14057 removed calculation of frame `f', as it's now used.
14058
140592008-02-01 Kenichi Handa <handa@m17n.org>
14060
14061 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14062 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14063 (UNIDATA): New variable.
14064 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14065 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14066 $(RUN_TEMACS) unconditionally.
14067
140682008-02-01 Kenichi Handa <handa@m17n.org>
14069
14070 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14071 (admindir): New variable.
14072 ($(lispsource)international/charprop.el): New target.
14073
140742008-02-01 Miles Bader <miles@gnu.org>
14075
14076 * character.c (chars-in-region): Remove obsolete function.
14077 (syms_of_character): Remove its initialization.
14078
140792008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14080
14081 * w32select.c (validate_coding_system)
14082 (setup_windows_coding_system): New functions.
14083 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14084 setup_windows_coding_system.
14085 (setup_config, Fw32_get_clipboard_data): Use
14086 validate_coding_system.
14087 (Fx_selection_exists): Move call to setup_config to a place
14088 where signals are allowed.
14089
14090 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14091 (Fcheck_coding_system): Add declarations.
14092
140932008-02-01 Kenichi Handa <handa@m17n.org>
14094
14095 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14096
140972008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14098
14099 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14100 string as the second argument for x_new_fontset.
14101
141022008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14105 (encode_coding_object): Use safe_call instead of call2.
14106
141072008-02-01 Kenichi Handa <handa@m17n.org>
14108
14109 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14110
14111 * Makefile.in (lisp): Include charprop.el.
14112
141132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14114
14115 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14116 Not sure if it's unnecessary.
14117
141182008-02-01 Steven Tamm <steventamm@mac.com>
14119
14120 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14121 some possibly unnecessary fontset checking code that crashed
14122 when creating a new frame.
14123
141242008-02-01 Kenichi Handa <handa@m17n.org>
14125
14126 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14127 lookup_face.
14128
14129 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14130
14131 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14132
141332008-02-01 Kenichi Handa <handa@m17n.org>
14134
14135 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14136 (coding_charset_list): New function.
14137
14138 * coding.h (coding_charset_list): Extern it.
14139
141402008-02-01 Kenichi Handa <handa@m17n.org>
14141
14142 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14143 concatenation of family and registry.
14144
141452008-02-01 Kenichi Handa <handa@m17n.org>
14146
14147 * character.h (BYTE8_STRING): Fix typo.
14148
14149 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14150 string to multibyte (sync to HEAD).
14151
14152 * casefiddle.c (casify_region): Handle changes in byte-length
14153 using replace_range_2 (sync to HEAD).
14154
141552008-02-01 Andreas Schwab <schwab@suse.de>
14156
14157 * chartab.c (map_char_table): GCPRO table and arg.
14158
141592008-02-01 Kenichi Handa <handa@m17n.org>
14160
14161 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14162 already at limit.
14163
141642008-02-01 Kenichi Handa <handa@m17n.org>
14165
14166 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14167 instead of fast_c_string_match_ignore_case.
14168 (find_font_encoding): Change argument to Lisp_Object. Use
14169 fast_string_match_ignore_case instead of
14170 fast_c_string_match_ignore_case. Change caller.
14171
141722008-02-01 Kenichi Handa <handa@m17n.org>
14173
14174 * xdisp.c (get_next_display_element): In unibyte case, decide to
14175 display in octal form by checking a character by
14176 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14177
14178 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14179
14180 * character.c (unibyte_has_multibyte_table): New variable.
14181
14182 * character.h (unibyte_has_multibyte_table): Extern it.
14183 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14184
141852008-02-01 Kenichi Handa <handa@m17n.org>
14186
14187 * coding.c (encode_coding_iso_2022): Fix handling of charset
14188 annotation.
14189
141902008-02-01 Kenichi Handa <handa@m17n.org>
14191
14192 * coding.c (setup_coding_system): If coding_system is nil, use
14193 Qundecided.
14194 (Fterminal_coding_system): Return nil if terminal coding system is
14195 `undecided'.
14196 (syms_of_coding): Define coding-system `undecided' here. Setup
14197 terminal_coding as `undecided'.
14198
141992008-02-01 Kenichi Handa <handa@m17n.org>
14200
14201 * xdisp.c (message_dolog, set_message_1): Call
14202 unibyte_char_to_multibyte with arg type int.
14203
14204 * lread.c (read1): Fix reading of a char-table.
14205
14206 * print.c (print_object): Include sub char-table in circularities
14207 detection.
14208
142092008-02-01 Kenichi Handa <handa@m17n.org>
14210
14211 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14212 Append the found sequences in car of ARGS instead of prepending.
14213
142142008-02-01 Kenichi Handa <handa@m17n.org>
14215
14216 * fileio.c (report_file_error): Make a unibyte string from
14217 strerror (errorno).
14218 (Fsubstitute_in_file_name): Fix the arg to
14219 unibyte_char_to_multibyte. It is evaluated twice.
14220
142212008-02-01 Kenichi Handa <handa@m17n.org>
14222
14223 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14224
142252008-02-01 Kenichi Handa <handa@m17n.org>
14226
14227 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14228 BOM is not found.
14229 (detect_coding, detect_coding_system): Optimization for ISO-2022
14230 when no 8-bit data is found.
14231
142322008-02-01 Jason Rumney <jasonr@gnu.org>
14233
14234 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14235
142362008-02-01 Kenichi Handa <handa@m17n.org>
14237
14238 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14239 CHARS.
14240
142412008-02-01 Steven Tamm <steventamm@mac.com>
14242
14243 * macterm.c (mac_encode_char): Add charset argument and update
14244 to use encoding_type.
14245 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14246 switch to pure fontset.
14247 (decode_mac_font_name): Temporarily remove decoding.
14248 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14249 (x_load_font): Temporarily remove encoding.
14250
142512008-02-01 Kenichi Handa <handa@m17n.org>
14252
14253 * xfaces.c (Fface_font): If frame is not on a window system,
14254 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14255 refer to face->font.
14256 (split_font_name_into_vector, build_font_name_from_vector)
14257 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14258 when HAVE_WINDOW_SYSTEM is defined.
14259
142602008-02-01 Kenichi Handa <handa@m17n.org>
14261
14262 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14263 (x_produce_glyphs): Fix setting of members of cmp in case
14264 cmp->glyph_len is zero.
14265
14266 * fontset.c (Fset_fontset_font): Fix docstring.
14267 (Ffontset_info): Make it backward compatible. New arg ALL.
14268
142692008-02-01 Kim F. Storm <storm@cua.dk>
14270
14271 * process.c (read_process_output): Grow decoding_buf when needed;
14272 this could cause a crash in allocate_string and compact_small_strings.
14273
142742008-02-01 Kenichi Handa <handa@m17n.org>
14275
14276 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14277
142782008-02-01 Kenichi Handa <handa@m17n.org>
14279
14280 * coding.c (setup_coding_system): Set coding->common_flags
14281 correctly for raw-text.
14282 (consume_chars): On encoding unibyte text by raw-text, don't check
14283 multibyte form.
14284 (encode_coding): On encoding by raw-text, never use translation tables.
14285
14286 * fileio.c (e_write): Short cut for the case of no encoding.
14287
142882008-02-01 Kenichi Handa <handa@m17n.org>
14289
14290 * coding.c (detect_coding, detect_coding_system): Delete unused
14291 variables.
14292
142932008-02-01 Kenichi Handa <handa@m17n.org>
14294
14295 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14296 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14297
142982008-02-01 Kenichi Handa <handa@m17n.org>
14299
14300 * coding.c (Ffind_coding_systems_region_internal): Include
14301 raw-text and no-conversion in the result.
14302
143032008-02-01 Kenichi Handa <handa@m17n.org>
14304
14305 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14306 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14307 FONT_DEF.
14308 (font_def_arg, add_arg, from_arg, to_arg): New args.
14309 (set_fontset_font): Change argument.
14310 (Fset_fontset_font): Fix for the case that TARGET is a script
14311 name and charset name.
14312 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14313
143142008-02-01 Kenichi Handa <handa@m17n.org>
14315
14316 * fontset.c (fontset_font): Rename from fontset_face. Change return
14317 value.
14318 (face_suitable_for_char_p, face_for_char): Adjust for the change
14319 of fontset_font.
14320 (make_fontset_for_ascii_face): Fix setting of the fontset element
14321 for ASCII.
14322 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14323 to get a font name.
14324 (Ffontset_info): Adjust for the change of fontset_font.
14325
14326 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14327
14328 * character.h (LEADING_CODE_LATIN_1_MIN)
14329 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14330
143312008-02-01 Kenichi Handa <handa@m17n.org>
14332
14333 * editfns.c (check_translation): New function.
14334 (Ftranslate_region_internal): Handle M:N mapping.
14335
143362008-02-01 Kenichi Handa <handa@m17n.org>
14337
14338 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14339
143402008-02-01 Kenichi Handa <handa@m17n.org>
14341
14342 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14343 goto invalid_code.
14344 (decode_coding_iso_2022): Fix handling of invalid designation.
14345
14346 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14347 after calling code_conversion_save.
14348
143492008-02-01 Kenichi Handa <handa@m17n.org>
14350
14351 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14352
14353 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14354
14355 * fontset.c: Include "intervals.h".
14356 (fontset_face): Fix comparing of Lisp_Objects.
14357 (free_face_fontset, new_fontset_from_font_name): Fix
14358 Lisp_Object/int mixup.
14359
14360 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14361
14362 * coding.c: Add many prototypes for static functions.
14363 (get_translation_table): Allow max_lookup to be NULL.
14364 (decode_coding, Ffind_coding_systems_region_internal)
14365 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14366 get_translation_table with max_lookup NULL.
14367
143682008-02-01 Kenichi Handa <handa@m17n.org>
14369
14370 * coding.c (get_translation_table): Declare it as Lisp_Object.
14371 (LOOKUP_TRANSLATION_TABLE): New macro.
14372 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14373 instead of CHAR_TABLE_REF.
14374
143752008-02-01 Kenichi Handa <handa@m17n.org>
14376
14377 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14378 annotation data format.
14379 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14380 Change arguments FROM and TO to single argument NCHARS. Change caller.
14381 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14382 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14383 (decode_coding_ccl, decode_coding_charset): Pay attention to
14384 coding->charbuf_used.
14385 (get_translation): New function.
14386 (produce_chars): New arguments translation_table and last_block.
14387 Translate characters here. Return number of carryover chars.
14388 Change caller.
14389 (produce_composition): New argument pos. Change caller.
14390 Adjust for the change of annotation data format.
14391 (produce_charset, produce_annotation): Likewise.
14392 (decode_coding, encode_coding): Don't call translate_chars.
14393 (consume_chars): New arg translation_table. Change caller.
14394 (translate_chars): Delete.
14395 (syms_of_coding): Make translation-table's number of extra slots 2.
14396
143972008-02-01 Kenichi Handa <handa@m17n.org>
14398
14399 * search.c (simple_search): Fix setting this_pos_byte in backward
14400 search.
14401
14402 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14403 byte sequence.
14404 (detect_coding_ccl): Fix setting of the variable valids.
14405
144062008-02-01 Kenichi Handa <handa@m17n.org>
14407
14408 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14409
14410 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14411
14412 * editfns.c (Ftranslate_region_internal): Rename from
14413 Ftranslate_region. Accept a char-table in TABLE.
14414 (syms_of_editfns): Defsubr Stranslate_region_internal.
14415
14416 * xfaces.c (set_lface_from_font_name): If a font is specified for
14417 a frame, generate a fontset from the font.
14418 (build_scalable_font_name): If the scalable font is requested for
14419 a specific size, don't change that size.
14420 (try_font_list): Try a scalable font also in the case that a
14421 pattern string is specified.
14422
144232008-02-01 Kenichi Handa <handa@m17n.org>
14424
14425 * xfaces.c (Fface_font): New optional arg CHARACTER.
14426
144272008-02-01 Kenichi Handa <handa@m17n.org>
14428
14429 * charset.h (CHARSET_OFFSET): New macro.
14430
144312008-02-01 Kenichi Handa <handa@m17n.org>
14432
14433 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14434
14435 * fontset.c (fontset_face): Handle the case that repertory is a
14436 char-table.
14437 (find_font_encoding): Return nil for unknown encoding.
14438 (Fset_fontset_font): Ignore a font of unknown encoding.
14439
144402008-02-01 Kenichi Handa <handa@m17n.org>
14441
14442 * keymap.c (describe_vector): Handle default value of a char table.
14443
14444 * fontset.c (fontset_face): Handle fallback fonts correctly.
14445 (Ffontset_info): Return infomation about fallback fonts.
14446
144472008-02-01 Kenichi Handa <handa@m17n.org>
14448
14449 * fontset.c (FONTSET_DEFAULT): New macro.
14450 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14451 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14452 the case that it is nil.
14453 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14454 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14455
14456 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14457 subset or superset.
14458
144592008-02-01 Kenichi Handa <handa@m17n.org>
14460
14461 * emacs.c (main): Call init_charset after syms_of_XXX.
14462
14463 * charset.c (Vcharset_map_directory): Delete.
14464 (Vcharset_map_path): New variable.
14465 (load_charset_map_from_file): Use Vcharset_map_path instead.
14466 (init_charset): Initialize Vcharset_map_path.
14467 (syms_of_charset): Delete declaration of "charset-map-directory",
14468 add declaration of "charset-map-path".
14469
144702008-02-01 Kenichi Handa <handa@m17n.org>
14471
14472 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14473 ASCII only string.
14474
14475 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14476
14477 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14478 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14479
144802008-02-01 Kenichi Handa <handa@m17n.org>
14481
14482 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14483
14484 * coding.c (QCmnemonic, QCdefalut_char)
14485 (QCdecode_translation_table, QCencode_translation_table)
14486 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14487 (get_translation_table): Return a list of translation tables if
14488 necessary.
14489 (decode_coding): Call get_translation_table with ENCODEP 0.
14490 (char_encodable_p): If translation_table is non-nil, always call
14491 translate_char.
14492 (Fdefine_coding_system_internal): Accept list of translation
14493 tables as :encode-translation-table and :decode-translation-table.
14494 (Fcoding_system_put): New function.
14495 (syms_of_coding): Declare new symbols. Defsubr
14496 Scoding_system_put.
14497 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14498 typically JISX0212.
14499
14500 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14501 when the charset is superset type.
14502
14503 * character.c (translate_char): Accept list of translation tables.
14504
145052008-02-01 Kenichi Handa <handa@m17n.org>
14506
14507 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14508 (CODING_ATTR_TRANS_TBL): New macro.
14509
14510 * coding.c (get_translation_table): New function.
14511 (translate_chars): Fix the bug of skipping annotation data.
14512 (decode_coding, encode_coding): Utilize get_translation_table.
14513 (char_encodable_p, Funencodable_char_position): Translate char if
14514 necessary.
14515 (Ffind_coding_systems_region_internal)
14516 (Fcheck_coding_systems_region): Setup translation table for encode
14517 in a coding system attribute vector in advance.
14518 (Fdefine_coding_system_internal): Allow a symbol as translation
14519 table. For shift-jis type coding system, allow 4th charset.
14520
145212008-02-01 Kenichi Handa <handa@m17n.org>
14522
14523 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14524
14525 * xdisp.c (get_next_display_element): Pass -1 as POS to
14526 FACE_FOR_CHAR if displaying a C-string.
14527
145282008-02-01 Kenichi Handa <handa@m17n.org>
14529
14530 * composite.c (get_composition_id): Handle xoff and yoff in a
14531 composition rule.
14532
14533 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14534 (struct composition): New member lbearing and rbearing.
14535
14536 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14537 (x_get_glyph_overhangs): Handle a composition glyph.
14538 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14539
14540 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14541 composition glyph.
14542
145432008-02-01 Kenichi Handa <handa@m17n.org>
14544
14545 * print.c: Include charset.h.
14546 (Vprint_charset_text_property): New variable.
14547 (Qdefault): Extern it.
14548 (PRINT_STRING_NON_CHARSET_FOUND)
14549 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14550 (print_check_string_result): New variable.
14551 (print_check_string_charset_prop): New function.
14552 (print_prune_charset_plist): New variable.
14553 (print_prune_string_charset): New function.
14554 (print_object): Call print_prune_string_charset if
14555 Vprint_charset_text_property is not t.
14556 (print_interval): Print nothing if interval->plist is nil.
14557 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14558 variable. Init and staticpro print_prune_charset_plist.
14559
145602008-02-01 Kenichi Handa <handa@m17n.org>
14561
14562 * fontset.c (new_fontset_from_font_name): Use the specified font
14563 for all characters in the new fontset.
14564
14565 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14566 OBJECT args.
14567
14568 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14569 OBJECT args for composition too.
14570
14571 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14572 OBJECT args.
14573
145742008-02-01 Kenichi Handa <handa@m17n.org>
14575
14576 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14577
14578 * fontset.c (reorder_font_vector): Adjust for the change of
14579 FONT_DEF format.
14580 (fontset_face): New arg id. Change caller.
14581 (face_for_char): New args pos and object.
14582 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14583 (fs_query_fontset): Check NAME by Fassoc too.
14584 (Fset_fontset_font): Allow non-XLFD font name.
14585 (Ffontset_info): Adjust for the change of FONT_DEF format.
14586
14587 * fontset.h (face_for_char): Adjust prototype.
14588
14589 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14590 (append_space, extend_face_to_end_of_line)
14591 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14592 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14593
14594 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14595 POS and OBJECT args.
14596
14597 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14598 POS and OBJECT args.
14599
146002008-02-01 Jason Rumney <jasonr@gnu.org>
14601
14602 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14603 of GlobalAlloc'ed memory.
14604
146052008-02-01 Kenichi Handa <handa@m17n.org>
14606
14607 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14608
14609 * charset.h (charset_table_used): Delete extern.
14610
14611 * charset.c (charset_table_used): Make it static.
14612 (map_charset_chars): Fix args to c_function with.
14613
14614 * chartab.c (map_sub_char_table_for_charset): Fix args to
14615 c_function with.
14616
14617 * coding.h (enum coding_result_code): Delete
14618 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14619
14620 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14621 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14622 (Vlast_code_conversion_error): New variables.
14623 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14624 (ONE_MORE_BYTE): Record error if any instead of signaling an
14625 error. If non-ASCII multibyte char is found, return the negative
14626 value of the code. All callers changed to check it.
14627 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14628 (record_conversion_result): New function. Change all codes setting
14629 coding->result to call this function.
14630 (detect_coding_utf_8, decode_coding_utf_8)
14631 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14632 Don't use the local variable incomplete.
14633 (emacs_mule_char): Change the second arg to `const'.
14634 (decode_coding): Fix of flushing out unprocessed data.
14635 (make_conversion_work_buffer): Fix making of a work buffer.
14636 (decode_coding_object): Return coding->dst_object.
14637
14638 * fontset.c (set_fontset_font): Fix args.
14639
14640 * lisp.h (CHARACTERBITS): Define as 22.
14641
14642 * process.c (send_process): Be sure to set coding->src_multibyte.
14643
14644 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14645
146462008-02-01 Kenichi Handa <handa@m17n.org>
14647
14648 * xdisp.c (handle_auto_composed_prop): Give limit to
14649 Fnext_single_char_property_change.
14650
146512008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * composite.c (syms_of_composite): Don't make the composition hash
14654 table weak.
14655
14656 * fontset.c (Fset_fontset_font): Fix docstring.
14657
14658 * lisp.h (detect_coding_system): Adjust prototype.
14659
14660 * fileio.c (kill_workbuf_unwind): Delete this function.
14661 (Finsert_file_contents): Adjust the call of detect_coding_system.
14662 Get conversion_buffer by code_conversion_save. Use the macro
14663 CODING_MAY_REQUIRE_DECODING. After decoding, update
14664 coding_system.
14665
14666 * coding.h (make_conversion_work_buffer): Delete extern.
14667 (code_conversion_save): Extern it.
14668
14669 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14670 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14671 (decode_coding_utf_8): Don't do eol converion.
14672 (detect_coding_utf_16): Check coding->src_chars, not
14673 coding->src_bytes. Add heuristics for those that have no signature.
14674 (decode_coding_emacs_mule, decode_coding_iso_2022)
14675 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14676 Don't do eol converion.
14677 (adjust_coding_eol_type): Return a new coding system.
14678 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14679 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14680 each change.
14681 (decode_coding): Pay attention to undo_list. Do eol conversion for
14682 all types of coding-systems (if necessary).
14683 (Vcode_conversion_work_buf_list): Delete it.
14684 (Vcode_conversion_reused_workbuf): Rename from
14685 Vcode_conversion_reused_work_buf.
14686 (Vcode_conversion_workbuf_name): New variable.
14687 (reused_workbuf_in_use): New variable.
14688 (make_conversion_work_buffer): Delete the arg DEPTH.
14689 (code_conversion_restore): Change argument to cons.
14690 (code_conversion_save): Delete the argument BUFFER. Change callers.
14691 (detect_coding_system): New argument src_chars. Change callers.
14692 Fix for utf-16 detection.
14693 (init_coding_once): Don't use ISO_carriage_return.
14694 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14695 reused_workbuf_in_use.
14696
146972008-02-01 Kenichi Handa <handa@m17n.org>
14698
14699 * keymap.c (store_in_keymap): Pay attention to the case that idx
14700 is a cons specifying a character range.
14701
147022008-02-01 Kenichi Handa <handa@m17n.org>
14703
14704 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14705 HANDLED_RECOMPUTE_PROPS.
14706
14707 * coding.c (Fdefine_coding_system_internal): Fix checking of
14708 ascii compatibility.
14709
147102008-02-01 Kenichi Handa <handa@m17n.org>
14711
14712 * charset.c (find_charsets_in_text): Delete unused locale variable.
14713 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14714
14715 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14716 Resync charset_list to Vemacs_mule_charset_list.
14717
14718 * keymap.c (store_in_keymap): Pay attention to the case that idx
14719 is a cons specifying a character range.
14720
147212008-02-01 Kenichi Handa <handa@m17n.org>
14722
14723 * composite.c (update_compositions): Bind inhibit-read-only, etc
14724 to t before calling remove-list-of-text-properties.
14725
14726 * print.c (print_object): Always print ASCII chars as is.
14727
147282008-02-01 Kenichi Handa <handa@m17n.org>
14729
14730 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14731
14732 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14733 is a char table.
14734
147352008-02-01 Kenichi Handa <handa@m17n.org>
14736
14737 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14738
147392008-02-01 Kenichi Handa <handa@m17n.org>
14740
14741 * xfaces.c (set_lface_from_font_name): Fix for the case that
14742 FONTNAME is not fontset name.
14743
147442008-02-01 Kenichi Handa <handa@m17n.org>
14745
14746 * fns.c (base64_encode_1): Fix previous change.
14747
147482008-02-01 Kenichi Handa <handa@m17n.org>
14749
14750 * fontset.c (set_fontset_font): New function.
14751 (Fset_fontset_font): If a font is specified for a charset, use
14752 map_charset_chars to store the font spec in a fontset.
14753
147542008-02-01 Kenichi Handa <handa@m17n.org>
14755
14756 * fontset.c (fontset_face): Create a fallback fontset on demand.
14757 (make_fontset): Don't create a fallback fontset here.
14758 (free_face_fontset): Free a fallback fontset (if any) too.
14759 (n_auto_fontsets): Delete this variable.
14760 (auto_fontset_alist): New variable.
14761 (new_fontset_from_font_name): Check auto_fontset_alist.
14762 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14763 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14764 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14765 Defsubr Sfontset_list_all.
14766
147672008-02-01 Kenichi Handa <handa@m17n.org>
14768
14769 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14770
147712008-02-01 Kenichi Handa <handa@m17n.org>
14772
14773 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14774
147752008-02-01 Kenichi Handa <handa@m17n.org>
14776
14777 * editfns.c (Fgoto_char): Fix docstring.
14778
147792008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * insdel.c (insert_from_gap): Adjust intervals correctly.
14782
147832008-02-01 Jason Rumney <jasonr@gnu.org>
14784
14785 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14786 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14787 (w32_initialize): Try to load it.
14788 (x_get_font_repertory): Use it if available.
14789 (w32_encode_char): Add shortcut for unicode output.
14790
14791 * w32fns.c (w32_load_system_font): Default charset to -1.
14792 (x_to_w32_charset): Match all fonts for unicode.
14793 (w32_to_x_charset): New parameter matching. Don't return partial
14794 or wildcard charsets.
14795 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14796 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14797 (w32_to_x_font): Match charset to real charset.
14798 (enum_font_cb2): Always list unicode versions.
14799
14800 * makefile.w32-in (temacs): Increase EMHEAP.
14801
148022008-02-01 Jason Rumney <jasonr@gnu.org>
14803
14804 * w32term.c (w32_encode_char): New charset parameter.
14805 font_info.encoding becomes encoding_type.
14806 (x_get_font_repertory): New function. Warning: stub only!
14807 (x_new_font): Return quickly if font already set.
14808 (x_new_fontset): fontsetname parameter is Lisp_Object.
14809 Use new fs_query_fontset. Try new_fontset_from_font_name.
14810 Use fontset_name for return value.
14811
14812 * w32term.h: Declare x_get_font_repertory.
14813
14814 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14815 place of find_charset_in_text. Use encode_coding_object in place
14816 of encode_coding.
14817 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14818 decode_coding.
14819
14820 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14821 of x_new_fontset.
14822 (w32_load_system_font): Initialize charset as unicode.
14823 font_info.encoding becomes encoding_type.
14824 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14825 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14826 (syms_of_w32fns): Set get_font_repertory_func.
14827
14828 * w32console.c: Include character.h. Use terminal_encode_buffer
14829 from term.c.
14830 (write_glyphs): Use new version of encode_terminal_code. Use
14831 encode_coding_object in place of encode_coding.
14832
14833 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14834 encoding becomes encoding_type.
14835
14836 * term.c (terminal_encode_buffer): Make externally visible.
14837
14838 * makefile.w32-in: Add character.h dependancies.
14839 (character.o, chartab.o): New targets.
14840
148412008-02-01 Kenichi Handa <handa@m17n.org>
14842
14843 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14844 CODING_ID_EOL_TYPE.
14845
148462008-02-01 Andreas Schwab <schwab@suse.de>
14847
14848 * coding.c (produce_chars): Revert last change.
14849
148502008-02-01 Kenichi Handa <handa@m17n.org>
14851
14852 * charset.h (charset_unicode): Extern it.
14853
14854 * charset.c (string_xstring_p): Check by (C >= 0x100).
14855 (find_charsets_in_text): Change format of the arc CHARSETS. New
14856 arg MULTIBYTE.
14857 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14858 change of find_charsets_in_text.
14859 (Fsplit_char): Fix doc. Never return unknown.
14860
14861 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14862
14863 * coding.c (Fdefine_coding_system_alias): Update
14864 Vcoding_system_list.
14865
14866 * fontset.c (load_font_get_repertory): Pay attention to the case
14867 that ENCODING of a font is specified by a char-table.
14868
14869 * xterm.c (x_get_font_repertory): Handle the case that the
14870 encoding of font is other than Unicode.
14871
148722008-02-01 Kenichi Handa <handa@m17n.org>
14873
14874 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14875 if a character is encodable by the terminal coding system. If
14876 not, produces proper number of `?'s. Update
14877 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14878 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14879
148802008-02-01 Kenichi Handa <handa@m17n.org>
14881
14882 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14883 variables.
14884 (encode_terminal_code): Change argument. Encode multiple
14885 characters at once. Store the result of encoding in
14886 terminal_encode_buffer.
14887 (write_glyphs, insert_glyphs): Adjust for the change of
14888 encode_terminal_code.
14889 (term_init): Initialize terminal_encode_buffer and
14890 terminal_encode_buf_size.
14891
14892 * coding.c (consume_chars): If coding->src_object is nil, don't
14893 check annotation.
14894
148952008-02-01 Kenichi Handa <handa@m17n.org>
14896
14897 * character.c (char_string): Use ASCII_CHAR_P instead of
14898 SINGLE_BYTE_CHAR_P.
14899
149002008-02-01 Kenichi Handa <handa@m17n.org>
14901
14902 * xdisp.c (handle_auto_composed_prop): Check if the last
14903 characters of auto-composed region is newly composed with the
14904 following characters.
14905 (handle_composition_prop): Fix checking of point being inside
14906 composition.
14907
149082008-02-01 Kenichi Handa <handa@m17n.org>
14909
14910 * fns.c (concat): Don't change multibyteness of the result by
14911 concatenating an 8-bit character.
14912
14913 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14914 multibyteness of the result when newelt is an 8-bit character.
14915
149162008-02-01 Dave Love <fx@gnu.org>
14917
14918 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14919 EMACS_INT.
14920
14921 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14922
14923 * xfaces.c (face_numeric_value): Declare dim size_t.
14924 (Finternal_lisp_face_equal_p): Remove unused f.
14925
14926 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14927 (MATRIX_ROW): Remove unused vars.
14928 (draw_glyphs, x_insert_glyphs, fast_find_position)
14929 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14930 byte/char counts.
14931
14932 * regex.c (regex_compile): Remove unused var.
14933
14934 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14935
14936 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14937 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14938
14939 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14940
14941 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14942
14943 * fileio.c (Fwrite_region): Remove unused var.
14944
14945 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14946 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14947
14948 * composite.c (Fremove_list_of_text_properties): Declare.
14949
14950 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14951 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14952 (coding_inherit_eol_type): Remove unused attrs.
14953 (detect_coding): Cast arg of detect_eol.
14954
14955 * charset.c (syms_of_charset): Remove unused var p.
14956 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14957 byte/char counts.
14958
14959 * casetab.c (set_case_table): Remove unused var.
14960
14961 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14962 unused vars.
14963
149642008-02-01 Dave Love <fx@gnu.org>
14965
14966 * xterm.c (x_bitmap_mask): Declare.
14967
149682008-02-01 Dave Love <fx@gnu.org>
14969
14970 * xterm.c (x_term_init): Fix type error.
14971
14972 * lisp.h: Add Funibyte_char_to_multibyte.
14973
14974 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14975 (Fset_coding_system_priority): Doc fix.
14976
14977 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14978
14979 * indent.c (check_composition): Make start and end EMACS_INT.
14980
14981 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14982
14983 * xdisp.c (handle_composition_prop, check_point_in_composition):
14984 Make buffer positions EMACS_INT.
14985
14986 * composite.c (find_composition, run_composition_function)
14987 (update_compositions, Ffind_composition_internal): Make buffer
14988 positions EMACS_INT.
14989
14990 * composite.h (find_composition, update_compositions): Make
14991 position args EMACS_INT.
14992
14993 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14994
14995 * intervals.c (get_property_and_range):
14996 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14997
14998 * unexalpha.c: Don't include varargs.h.
14999
150002008-02-01 Dave Love <fx@gnu.org>
15001
15002 * coding.h (ENCODE_UTF_8): New.
15003
15004 * Makefile.in (gtkutil.o): Depend on coding.h.
15005
15006 * coding.c (Fset_coding_system_priority): Doc fix.
15007
150082008-02-01 Kenichi Handa <handa@m17n.org>
15009
15010 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15011 the case of auto saving.
15012
150132008-02-01 Andreas Schwab <schwab@suse.de>
15014
15015 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15016 `range' from GC.
15017
150182008-02-01 Kenichi Handa <handa@m17n.org>
15019
15020 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15021
150222008-02-01 Kenichi Handa <handa@m17n.org>
15023
15024 * fileio.c (choose_write_coding_system): Return a decided coding system.
15025 (Fwrite_region): Set Vlast_coding_system_used to the return value
15026 of choose_write_coding_system.
15027
150282008-02-01 Kenichi Handa <handa@m17n.org>
15029
15030 * charset.c (Fset_charset_priority): Pay attention to duplicated
15031 arguments.
15032
15033 * coding.c (QCcategory): New variable.
15034 (syms_of_coding): Defsym it. Set all elements of
15035 Vcoding_category_table and their symbol values.
15036 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15037 coding-category-XXX, and coding-category-list.
15038 (Fdefine_coding_system_internal): Add category in the plist.
15039
150402008-02-01 Kenichi Handa <handa@m17n.org>
15041
15042 * callproc.c (Fcall_process): Handle carryover correctly.
15043
15044 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15045 (raw_text_coding_system): Check NILP (coding_system).
15046 (coding_inherit_eol_type): Check NILP (coding_system) and
15047 NILP (parent).
15048 (consume_chars): Fix for the case of raw-text.
15049
15050 * process.c (read_process_output): Handle carryover correctly.
15051
150522008-02-01 Dave Love <fx@gnu.org>
15053
15054 * regex.c (re_search_2): Fix last change.
15055
150562008-02-01 Kenichi Handa <handa@m17n.org>
15057
15058 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15059 target_multibyte. Even in a unibyte case, return a converted
15060 multibyte char.
15061 (GET_CHAR_AFTER): New macro.
15062 (PATFETCH): Translate via multibyte char.
15063 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15064 (SETUP_MULTIBYTE_RANGE): New macro.
15065 (regex_compile): Setup compiled code so that its multibyteness
15066 matches that of a target. Fix the handling of "[X-YZ]" using
15067 SETUP_MULTIBYTE_RANGE.
15068 (analyse_first) <charset>: For filling fastmap for all multibyte
15069 characters, don't check by BASE_LEADING_CODE_P.
15070 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15071 the same as RE_MULTIBYTE_P (bufp) now.
15072 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15073 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15074 (TRANSLATE_VIA_MULTIBYTE): New macro.
15075 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15076 It is the same as RE_MULTIBYTE_P (bufp) now.
15077 <exactn>: Translate via multibyte.
15078 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15079 translate it.
15080 <charset, charset_not>: Fetch a character by
15081 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15082 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15083 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15084 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15085 by GET_CHAR_AFTER.
15086 (bcmp_translate): Likewise.
15087
15088 * search.c (compile_pattern): Check the member target_multibyte,
15089 not the member multibyte of buf.
15090
15091 * lread.c (read1): While reading a string, set force_singlebyte
15092 and force_multibyte correctly.
15093
15094 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15095 up of unibyte_to_multibyte_table.
15096
150972008-02-01 Kenichi Handa <handa@m17n.org>
15098
15099 * coding.c (setup_coding_system): If coding has
15100 post-read-conversion or pre-write-conversion, set
15101 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15102 respectively.
15103 (decode_coding_gap): Run post-read-conversion if any.
15104
15105 * fileio.c (Finsert_file_contents): Even if we read into a
15106 unibyte buffer, check if we must decode the result or not.
15107
151082008-02-01 Kenichi Handa <handa@m17n.org>
15109
15110 * coding.c (make_conversion_work_buffer): Change the work buffer
15111 name to the same one as that of Emacs 21.
15112
151132008-02-01 Kenichi Handa <handa@m17n.org>
15114
15115 * coding.h (make_conversion_work_buffer): Adjust prototype.
15116 (code_conversion_restore): Don't extern it.
15117
15118 * coding.c (detected_mask): Delete unused variable.
15119 (decode_coding_iso_2022): Pay attention to the byte sequence of
15120 CTEXT extended segment, and retain those bytes as is.
15121 (decode_coding_ccl): Delete unused variable `valids'.
15122 (setup_coding_system): Delete unused variable `category'.
15123 (consume_chars): Delete unused variable `category'. Make it work
15124 for non-multibyte case.
15125 (make_conversion_work_buffer): Change argument.
15126 (saved_coding): Delete unused variable.
15127 (code_conversion_restore): Don't check saved_coding->destination.
15128 (code_conversion_save): New function.
15129 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15130 instead of record_unwind_protect.
15131 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15132 (detect_coding_system): Delete unused variable `mask'.
15133 (Fdefine_coding_system_internal): Delete unused variable id.
15134
15135 * fileio.c (kill_workbuf_unwind): New function.
15136 (Finsert_file_contents): On replacing, call
15137 make_conversion_work_buffer with correct args, and call
15138 record_unwind_protect with the first arg kill_workbuf_unwind.
15139
15140 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15141
151422008-02-01 Kenichi Handa <handa@m17n.org>
15143
15144 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15145 (fontset_add): Fix for the case that TO is less than TO1.
15146 (Ffontset_info): Don't use fallback fontset on checking the
15147 default fontset.
15148 (dump_fontset): New function for debugging.
15149
15150 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15151 coding_type is Qcharset.
15152
151532008-02-01 Kenichi Handa <handa@m17n.org>
15154
15155 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15156 (map_char_table): Don't inherit the value from the parent on
15157 initializing VAL. Adjust for the above change.
15158
151592008-02-01 Kenichi Handa <handa@m17n.org>
15160
15161 * coding.c (Qsignature, Qendian): Delete these variables.
15162 (syms_of_coding): Don't initialize them.
15163 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15164 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15165 detect_info->found.
15166 (decode_coding_utf_16): Don't detect BOM here.
15167 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15168 is NOT utf_16_without_bom.
15169 (setup_coding_system): For a coding system of type utf-16, check
15170 if the attribute :endian is Qbig or not (not nil or not), and set
15171 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15172 (detect_coding): If coding type is utf-16 and BOM detection is
15173 required, detect it.
15174 (Fdefine_coding_system_internal): For a coding system of type
15175 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15176
151772008-02-01 Kenichi Handa <handa@m17n.org>
15178
15179 * coding.c (coding_set_source): Fix for the case that the current
15180 buffer is different from coding->src_object.
15181 (decode_coding_object): Don't use the conversion work buffer if
15182 DST_OBJECT is a buffer.
15183
151842008-02-01 Dave Love <fx@gnu.org>
15185
15186 * lread.c (read_emacs_mule_char) [len==2]: Index
15187 emacs_mule_charset correctly.
15188
151892008-02-01 Dave Love <fx@gnu.org>
15190
15191 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15192 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15193 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15194 treated specially.)
15195 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15196 (detected_mask): Remove Big5 bits.
15197
151982008-02-01 Kenichi Handa <handa@m17n.org>
15199
15200 The following changes are to make the font rescaling facility
15201 compatible with Emacs 21.
15202
15203 * xfaces.c (Vface_font_rescale_alist): Rename from
15204 Vface_resizing_fonts.
15205 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15206 (font_rescale_ratio): Rename from font_resizing_ratio.
15207 (split_font_name): Set font->rescale_ratio.
15208 (better_font_p): Pay attention to font->rescale_ratio.
15209 (build_scalable_font_name): Likewise. Change RESX, and RESY
15210 fields.
15211 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15212
152132008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15216 (Qutf_16_le): Remove these variables.
15217 (syms_of_coding): Don't DEFSYM them.
15218 (decode_coding_utf_16): Fix handling of BOM.
15219 (encode_coding_utf_16): Fix handling of BOM.
15220
152212008-02-01 Kenichi Handa <handa@m17n.org>
15222
15223 * fileio.c (Finsert_file_contents): On replacing, before decoding
15224 the file into the work buffer, set point of the work buffer to the end.
15225
152262008-02-01 Dave Love <fx@gnu.org>
15227
15228 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15229
152302008-02-01 Dave Love <fx@gnu.org>
15231
15232 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15233 and fix C types.
15234
152352008-02-01 Kenichi Handa <handa@m17n.org>
15236
15237 * xdisp.c (SKIP_GLYPHS): New macro.
15238 (set_cursor_from_row): Pay attention to string display properties.
15239
15240 * category.c (copy_category_entry): Fix for the case that RANGE
15241 is an integer.
15242
15243 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15244
15245 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15246
152472008-02-01 Kenichi Handa <handa@m17n.org>
15248
15249 * charset.c (Fcharset_id_internal): New function.
15250 (syms_of_charset): Defsubr it.
15251
15252 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15253 with the last arg charset_list acquired from coding.
15254 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15255 the attribute coding_attr_ccl_valids.
15256
15257 * coding.h (enum define_coding_ccl_arg_index): Set the first
15258 member coding_arg_ccl_decoder to coding_arg_max.
15259
15260 * ccl.h (ccl_driver): Adjust prototype.
15261
15262 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15263 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15264 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15265 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15266 last arg Qnil.
15267
152682008-02-01 Kenichi Handa <handa@m17n.org>
15269
15270 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15271 call encode_char.
15272
15273 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15274
152752008-02-01 Dave Love <fx@gnu.org>
15276
15277 * composite.c (syms_of_composite): Make composition_hash_table weak.
15278
152792008-02-01 Kenichi Handa <handa@m17n.org>
15280
15281 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15282 (font_name_registry): Don't extern them.
15283 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15284
15285 * fontset.h (Qfontset): Don't extern it.
15286 (new_fontset_from_font_name): Extern it.
15287
15288 * fontset.c: Give 8 extra slots to fontset objects.
15289 (Qfontset_info): New variable.
15290 (syms_of_fontset): Defsym it.
15291 (FONTSET_FALLBACK): New macro.
15292 (fontset_face): Try also the default fontset.
15293 (make_fontset): Realize a fallback fontset from the default fontset.
15294 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15295 using split_font_name_into_vector and build_font_name_from_vector.
15296 (Fset_fontset_font): Access the elements of font_spec by enum
15297 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15298 name by using split_font_name_into_vector.
15299 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15300 generate a proper font name from the fontset name. Update
15301 Vfontset_alias_alist.
15302 (n_auto_fontsets): New variable.
15303 (new_fontset_from_font_name): New function.
15304 (Ffont_info): Store the information about fonts generated from the
15305 default fontset in the first extra slot of the returned char-table.
15306
15307 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15308 (font_name_registry): Delete function.
15309 (split_font_name_into_vector): New function.
15310 (build_font_name_from_vector): New function.
15311 (font_list): The argument REGISTRY is now a list of registry names.
15312 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15313 specifies an explicit font name, return the name as is. Make a
15314 list of registy names.
15315
15316 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15317 of x_new_fontset.
15318 (Fx_create_frame): Don't call x_new_fontset here. Just use
15319 x_list_fonts to check the existence of fonts.
15320
15321 * xterm.h (x_new_fontset): Adjust prototype.
15322
15323 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15324 string. Use new_fontset_from_font_name to create a fontset from a
15325 font name.
15326
153272008-02-01 Kenichi Handa <handa@m17n.org>
15328
15329 * syntax.c (Vfind_word_boundary_function_table): New name for
15330 Vnext_word_boundary_function_table.
15331 (find-word-boundary-function-table): New name for
15332 next-word-boundary-function-table.
15333
153342008-02-01 Dave Love <fx@gnu.org>
15335
15336 * Makefile.in: Fix some dependencies.
15337
15338 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15339 set it to nil before returning.
15340
15341 * composite.c (update_compositions): Fix type error.
15342
15343 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15344
153452008-02-01 Kenichi Handa <handa@m17n.org>
15346
15347 * xterm.c (x_new_font): Optimize for the case that the font is
15348 already set for the frame.
15349
153502008-02-01 Kenichi Handa <handa@m17n.org>
15351
15352 * chartab.c (char_table_ascii): Check if the char table contents
15353 is sub-char-table or not.
15354 (char_table_set, char_table_set_range): Fix argument to
15355 char_table_ascii.
15356
15357 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15358 (detect_coding_utf_8, detect_coding_utf_16)
15359 (detect_coding_emacs_mule, detect_coding_iso_2022)
15360 (detect_coding_sjis, detect_coding_big5)
15361 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15362 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15363 sequence is valid in this coding system. Change callers.
15364 (MAX_ANNOTATION_LENGTH): New macro.
15365 (ADD_ANNOTATION_DATA): New macro.
15366 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15367 ADD_ANNOTATION_DATA. Change the format of annotation data.
15368 (ADD_CHARSET_DATA): New macro.
15369 (emacs_mule_char): New argument ID. Change callers.
15370 (decode_coding_emacs_mule, decode_coding_iso_2022)
15371 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15372 Produce charset annotation data in coding->charbuf.
15373 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15374 to charset annotation data in coding->charbuf.
15375 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15376 coding->common_flags if the coding system is iso-2022 based and
15377 uses designation.
15378 (produce_composition): Adjust for the new annotation data format.
15379 (produce_charset): New function.
15380 (produce_annotation): Handle charset annotation.
15381 (handle_composition_annotation, handle_charset_annotation): New
15382 functions.
15383 (consume_chars): Handle charset annotation. Utilize the above two
15384 functions.
15385 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15386 buffer, get the deleted text as a string and set
15387 coding->src_object to that string.
15388 (detect_coding, detect_coding_system): Use the new struct
15389 coding_detection_info.
15390
15391 * coding.h (struct coding_detection_info): New structure.
15392 (struct coding_system): Adjust prototype of the member `detector'.
15393 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15394
153952008-02-01 Kenichi Handa <handa@m17n.org>
15396
15397 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15398
153992008-02-01 Dave Love <fx@gnu.org>
15400
15401 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15402 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15403 to new local and nullify apropos_accumulate before returning.
15404 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15405
154062008-02-01 Kenichi Handa <handa@m17n.org>
15407
15408 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15409 correctly.
e3eea1fc 15410
aac0c6e3
MR
154112008-02-01 Dave Love <fx@gnu.org>
15412
15413 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15414
154152008-02-01 Kenichi Handa <handa@m17n.org>
15416
15417 The following changes are to make character composition happen
15418 automatically on displaying.
15419
15420 * Makefile.in (lisp, shortlisp): Add composite.elc.
15421
15422 * composite.h (Qauto_composed, Vauto_composition_function)
15423 (Qauto_composition_function): Extern them.
15424
15425 * composite.c (Vcomposition_function_table)
15426 (Qcomposition_function_table): Delete variables.
15427 (Qauto_composed, Vauto_composition_function)
15428 (Qauto_composition_function): New variables.
15429 (run_composition_function): Don't call
15430 compose-chars-after-function.
15431 (update_compositions): Clear `auto-composed' text property.
15432 (compose_chars_in_text): Delete this function.
15433 (syms_of_composite): Staticpro Qauto_composed and
15434 Qauto_composition_function. Declare Vauto_composition_function as
15435 a Lisp variable.
15436
15437 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15438
15439 * xdisp.c (it_props): Add an entry for Qauto_composed.
15440 (handle_auto_composed_prop): New function.
15441
15442 * xselect.c (selection_data_to_lisp_data): Don't call
15443 compose_chars_in_text.
15444
154452008-02-01 Dave Love <fx@gnu.org>
15446
15447 * keyboard.c (read_char): Modify checking around use of
15448 Vkeyboard_translate_table.
15449
15450 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15451 and fix C types.
15452
154532008-02-01 Kenichi Handa <handa@m17n.org>
15454
15455 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15456 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15457 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15458 the case that the last byte is '\r' correctly.
15459 (decode_coding): Flush out the unprocessed data correctly.
15460 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15461
154622008-02-01 Dave Love <fx@gnu.org>
15463
15464 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15465 Add XK_ISO... case.
15466 (xaw_scroll_callback): Revert last change.
15467
154682008-02-01 Kenichi Handa <handa@m17n.org>
15469
15470 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15471
154722008-02-01 Kenichi Handa <handa@m17n.org>
15473
15474 * xfaces.c (Vface_resizing_fonts): New variable.
15475 (struct font_name): New member `resizing_ratio'.
15476 (font_resizing_ratio): New function.
15477 (split_font_name): Set font->resizing_ratio.
15478 (better_font_p): Pay attention to font->resizing_ratio.
15479 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15480 RESX, and RESY fields.
15481 (try_alternative_families): Try scalable fonts if
15482 Vscalable_fonts_allowed is not Qt.
15483 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15484
154852008-02-01 Dave Love <fx@gnu.org>
15486
15487 * xterm.c (xaw_scroll_callback): Cast correctly.
15488
154892008-02-01 Dave Love <fx@gnu.org>
15490
15491 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15492 (lispy_kana_keys): Comment out.
15493 (make_lispy_event) [XK_kana_A]: Comment out.
15494
15495 * xterm.c (xaw_scroll_callback): Cast call_data.
15496 (XTread_socket): Deal with ASCII keysyms.
15497 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15498
154992008-02-01 Dave Love <fx@gnu.org>
15500
15501 * xterm.c (Vx_keysym_table): New.
15502 (syms_of_xterm): Initialize it.
15503 (XTread_socket): Use it.
15504 From head: Eliminate incorrect optimization that tried to avoid
15505 decoding the output of X*LookupString.
15506 (x_get_font_repertory): Delete charset declaration.
15507
155082008-02-01 Kenichi Handa <handa@m17n.org>
15509
15510 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15511 return 0.
15512 (Fdefine_coding_system_internal): Setup
15513 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15514
155152008-02-01 Dave Love <fx@gnu.org>
15516
15517 * coding.c (Fcheck_coding_system): Doc fix.
15518
15519 * editfns.c (Finsert_byte): Return a proper value.
15520
155212008-02-01 Kenichi Handa <handa@m17n.org>
15522
15523 * coding.c (decode_coding): Fix args to translate_chars. Pay
15524 attention to Vstandard_translation_table_for_decode.
15525 (encode_coding): Fix args to translate_chars. Pay attention to
15526 Vstandard_translation_table_for_encode.
15527
15528 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15529 SINGLE_BYTE_CHAR_P.
15530
15531 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15532 not by SINGLE_BYTE_CHAR_P.
15533
15534 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15535 SINGLE_BYTE_CHAR_P.
15536
15537 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15538 SINGLE_BYTE_CHAR_P.
15539
15540 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15541 by SINGLE_BYTE_CHAR_P.
15542
15543 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15544 SINGLE_BYTE_CHAR_P.
15545
155462008-02-01 Dave Love <fx@gnu.org>
15547
15548 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15549
155502008-02-01 Dave Love <fx@gnu.org>
15551
15552 * fns.c (Flanginfo): Fix typo.
15553
15554 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15555
155562008-02-01 Kenichi Handa <handa@m17n.org>
15557
15558 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15559 (detect_coding_emacs_mule, detect_coding_iso_2022)
15560 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15561 incomplete byte sequence. Don't update *mask when correctly detected.
15562 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15563 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15564 (detect_coding, detect_coding_system): Adjust for the changes above.
15565
155662008-02-01 Kenichi Handa <handa@m17n.org>
15567
15568 * character.c (char_string): Rename from
15569 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15570 (string_char): Rename from string_char.
15571
15572 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15573 if C is greater than MAX_3_BYTE_CHAR.
15574 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15575 string_char instead of string_char_with_unification.
15576
155772008-02-01 Dave Love <fx@gnu.org>
15578
15579 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15580
155812008-02-01 Kenichi Handa <handa@m17n.org>
15582
15583 * keymap.c (push_key_description): Pay attention to force_multibyte.
15584
15585 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15586
155872008-02-01 Dave Love <fx@gnu.org>
15588
15589 * charset.c (define_charset_internal): Rename `supprementary'.
15590
15591 * Makefile.in (lisp, shortlisp): Remove latin-N.
15592
155932008-02-01 Dave Love <fx@gnu.org>
15594
15595 * xfns.c (x_window, x_window): Use use_xim.
15596
15597 * xterm.c (use_xim): Initialize.
15598 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15599 (x_term_init): Maybe set use_xim.
15600
15601 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15602
156032008-02-01 Kenichi Handa <handa@m17n.org>
15604
15605 * search.c (search_buffer): Fix case-fold-search of multibyte
15606 characters.
15607 (boyer_moore): Rename the last argument to char_high_bits.
15608
156092008-02-01 Kenichi Handa <handa@m17n.org>
15610
15611 * xdisp.c (display_string): Fix for the case of zero width glyph.
15612
15613 * xfns.c (x_set_font): Change the error message of the case that
15614 x_new_fontset returns Qt.
15615
15616 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15617 (Finternal_set_lisp_face_attribute): Use signal_error for the
15618 error of invalid fontset.
15619
15620 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15621 fontset, return Qt.
15622
156232008-02-01 Dave Love <fx@gnu.org>
15624
15625 * unexelf.c (unexec): Make .got handling not SGI-specific.
15626
15627 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15628
15629 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15630
15631 * keyboard.c (read_key_sequence): Fix type error.
15632
15633 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15634 type error.
15635
15636 * fontset.c (fontset_add): Return Lisp_Object.
15637
156382008-02-01 Dave Love <fx@gnu.org>
15639
15640 * charset.h (charset_ordered_list_tick): Declare extern.
15641
156422008-02-01 Kenichi Handa <handa@m17n.org>
15643
15644 The following changes (and some of 2008-02-01 changes of mine) are
15645 for handling syntax, category, and case conversion for unibyte
15646 characters by converting them to multibyte on the fly. With these
15647 changes, we don't have to setup syntax and case tables for unibyte
15648 characters in each language environment.
15649
15650 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15651 multibyte if necessary.
15652
15653 * bytecode.c (Fbyte_code): Likewise.
15654
15655 * character.h (LEADING_CODE_LATIN_1_MIN)
15656 (LEADING_CODE_LATIN_1_MAX): New macros.
15657 (unibyte_to_multibyte_table): Extern it.
15658 (unibyte_char_to_multibyte): New macro.
15659 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15660 (CHAR_LEADING_CODE): New macro.
15661 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15662
15663 * character.c (unibyte_to_multibyte_table): New variable.
15664 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15665 (multibyte_char_to_unibyte): If C is an eight-bit character,
15666 convert it to the corresponding byte value.
15667
15668 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15669 not 1, signals an error. Update the elements of
15670 unibyte_to_multibyte_table.
15671 (init_charset_once): Initialize unibyte_to_multibyte_table.
15672 (syms_of_charset): Define the charset `iso-8859-1'.
15673
15674 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15675 as is without converting it to unibyte. In a unibyte buffer,
15676 convert C to multibyte before checking the syntax.
15677
15678 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15679
15680 * minibuf.c (Fminibuffer_complete_word): Use the macro
15681 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15682
15683 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15684
15685 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15686 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15687 that is zero, convert an eight-bit char to multibyte.
15688 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15689 non-emacs case.
15690 (PATFETCH): Convert an eight-bit char to multibyte.
15691 (HANDLE_UNIBYTE_RANGE): New macro.
15692 (regex_compile): Setup the compiled pattern for multibyte chars
15693 even if the given regex string is unibyte. Use PATFETCH_RAW
15694 instead of PATFETCH in many places. To handle `charset'
15695 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15696 only for ASCII chars.
15697 (analyse_first) <exactn>: Simplify because the compiled pattern
15698 is multibyte.
15699 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15700 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15701 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15702 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15703 multibyte always 1.
15704 (re_search_2): In emacs, set the locale variable multibyte to 1,
15705 otherwise to 0. New local variable target_multibyte. Check it
15706 to decide the multibyteness of STR1 and STR2. If
15707 target_multibyte is zero, convert unibyte chars to multibyte
15708 before translating and checking fastmap.
15709 (TARGET_CHAR_AND_LENGTH): New macro.
15710 (re_match_2_internal): In emacs, set the locale variable multibyte
15711 to 1, otherwise to 0. New local variable target_multibyte. Check
15712 it to decide the multibyteness of STR1 and STR2. Use
15713 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15714 <charset, charset_not>: If multibyte is nonzero, check fastmap
15715 only for ASCII chars. Call bcmp_translate with
15716 target_multibyte, not with multibyte.
15717 <begline>: Declare the local variable C as `unsigned'.
15718 (bcmp_translate): Change the last arg name to target_multibyte.
15719
15720 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15721 the regexp pattern and the matching target. Set cp->buf.multibyte
15722 to the multibyteness of the regexp pattern. Set
15723 cp->but.target_multibyte to the multibyteness of the matching target.
15724 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15725 FETCH_STRING_CHAR_ADVANCE.
15726 (Freplace_match): Convert unibyte chars to multibyte.
15727
15728 * syntax.c (char_quoted, back_comment, scan_words)
15729 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15730 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15731 unibyte chars to multibyte.
15732 (skip_chars): Delete the arg syntaxp, and move the code for
15733 handling syntaxes to skip_syntaxes. Change callers.
15734 Fix the case that the multibyteness of STRING and the current
15735 buffer doesn't match.
15736 (skip_syntaxes): New function.
15737 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15738 SINGLE_BYTE_CHAR_P.
15739
157402008-02-01 Kenichi Handa <handa@m17n.org>
15741
15742 * xfaces.c (QCfontset): New variable.
15743 (LFACE_FONTSET): New macro.
15744 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15745 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15746 (Finternal_set_lisp_face_attribute)
15747 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15748 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15749 check also LFACE_FONTSET_INDEX.
15750 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15751 attrs[LFACE_FONT_INDEX].
15752 (syms_of_xfaces): Intern and staticpro QCfontset.
15753
15754 * dispextern.h (enum lface_attribute_index): New member
15755 LFACE_FONTSET_INDEX.
15756
15757 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15758
157592008-02-01 Kenichi Handa <handa@m17n.org>
15760
15761 * coding.c (coding_set_destination): Fix coding->destination for
15762 the case converting a region.
15763 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15764 (encode_coding_object): Fix coding->dst_pos and
15765 coding->dst_pos_byte for the case converting a region.
15766
15767 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15768
15769 * character.h (BYTE8_STRING): New macro.
15770
15771 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15772
157732008-02-01 Kenichi Handa <handa@m17n.org>
15774
15775 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15776 characters by octal form.
15777
15778 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15779
15780 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15781 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15782 _fetch_multibyte_char_len.
15783 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15784
15785 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15786
15787 * casefiddle.c (casify_object): Simplify. Handle the case that
15788 the case conversion change the byte length.
15789 (casify_region): Likewise.
15790
15791 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15792
15793 * character.c (_fetch_multibyte_char_len): Delete this variable.
15794 (syms_of_character): Setup Vprintable_chars.
15795
15796 * editfns.c (Fchar_equal): Fix for the unibyte case.
15797 (Finsert_byte): New function.
15798 (syms_of_editfns): Defsubr it.
15799
15800 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15801 of direct code 0x3ffff.
15802
15803 * search.c (Freplace_match): Fix for the unibyte case.
15804
158052008-02-01 Kenichi Handa <handa@m17n.org>
15806
15807 * lread.c (safe_to_load_p): Fix the logic.
15808
15809 * syntax.c (scan_words): Don't treat characters belonging to
15810 different scripts as constituting a word.
15811
15812 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15813
15814 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15815
15816 * emacs.c (main): In the case of --unibyte, instead of aborting on
15817 finding non-empty buffer, make it unibyte.
15818
158192008-02-01 Kenichi Handa <handa@m17n.org>
15820
15821 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15822 to create a fontset.
15823
158242008-02-01 Dave Love <fx@gnu.org>
15825
15826 * character.c (Funibyte_char_to_multibyte): Doc fix.
15827
15828 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15829
158302008-02-01 Kenichi Handa <handa@m17n.org>
15831
15832 * fontset.c (fontset_add): Make the type `int'.
15833 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15834
15835 * character.c (unibyte_char_to_multibyte)
15836 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15837 charset_unibyte, not charset_primary.
15838
15839 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15840
15841 * charset.c (charset_unibyte): Rename from charset_primary.
15842 (Funibyte_charset): Rename from Fprimary_charset.
15843 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15844 (syms_of_charset): Adjust for the above changes.
15845
15846 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15847 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15848 it->multibyte_p is zero.
15849
15850 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15851 Delete extern.
15852
158532008-02-01 Kenichi Handa <handa@m17n.org>
15854
15855 * coding.c (Fdefine_coding_system_internal): Fix category setting
15856 for a coding system of type iso-2022.
15857
158582008-02-01 Kenichi Handa <handa@m17n.org>
15859
15860 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15861
158622008-02-01 Kenichi Handa <handa@m17n.org>
15863
15864 * syntax.c (Vnext_word_boundary_function_table): New variable.
15865 (next-word-boundary-function-table): Declare it as a Lisp variable
15866 in syms_of_syntax.
15867 (scan_words): Call functions in Vnext_word_boundary_function_table
15868 if any.
15869
15870 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15871
15872 * fontset.c (fs_load_font): If fontp->charset is not negative,
15873 return fontp without setting its members.
15874
158752008-02-01 Dave Love <fx@gnu.org>
15876
15877 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15878
15879 * m/sparc.h (HAVE_ALLOCA): Delete.
15880
15881 * s/irix6-5.h: Don't include strings.h.
15882 (bcopy, bzero, bcmp): Don't undef.
15883
15884 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15885
15886 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15887 (TIOCSIGSEND): Don't test IRIX6.
15888 (bcopy, bzero, bcmp): Define conditionally.
15889
158902008-02-01 Kenichi Handa <handa@m17n.org>
15891
15892 * buffer.c (Qas, Qmake, Qto): New variables.
15893 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15894 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15895
15896 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15897 we are inserting a process output into a multibyte buffer.
15898
15899 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15900 multibyte_char_to_unibyte.
15901
15902 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15903 by the primary charset, make it eight-bit char.
15904 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15905
15906 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15907 (charset_8_bit__control, charset_8_bit_graphic)
15908 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15909 (define_charset_internal): New function.
15910 (syms_of_charset): Call define_charset_internal for pre-defined
15911 charsets.
15912
15913 * charset.h (charset_8_bit): Extern it.
15914
15915 * coding.c (make_conversion_work_buffer): Adjust for the change
15916 of Fset_buffer_multibyte.
15917 (encode_coding_raw_text): Increment p0 in the loop.
15918
15919 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15920
15921 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15922 for the change of Fset_buffer_multibyte.
15923
15924 * fns.c (Fstring_to_multibyte): New function.
15925 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15926
159272008-02-01 Dave Love <fx@gnu.org>
15928
15929 * xfns.c (x_put_x_image): Declare args.
15930
15931 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15932 (try_font_list): Declare an arg.
15933
15934 * xdisp.c (message2_nolog, set_message): Declare an arg.
15935
15936 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15937
15938 * syntax.c (scan_sexps_forward): Declare an arg.
15939
15940 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15941 Declare an arg.
15942
15943 * lisp.h (Fnew_fontset): Declare.
15944
15945 * keymap.c (push_key_description): Call CHARACTERP correctly.
15946
15947 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15948 (face_for_char): Delete unused vars.
15949 (Fset_fontset_font): Doc fix. Delete unused vars.
15950
15951 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15952
15953 * composite.c (update_compositions): Declare arg.
15954
15955 * cm.c (calccost, cmgoto): Declare args.
15956
15957 * charset.c: Remove `emacs' conditional. Doc fixes.
15958 (map_char_table_for_charset): Declare.
15959
15960 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15961
15962 * ccl.c: Remove `emacs' conditional.
15963
159642008-02-01 Kenichi Handa <handa@m17n.org>
15965
15966 The following changes are to allow specifying multiple font
15967 patterns for a character range (specified by script or charset).
15968
15969 * Makefile.in (abbrev.o): Depend on syntax.h.
15970 (xfaces.o): Depend on charset.h.
15971
15972 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15973 SINGLE_BYTE_CHAR_P.
15974
15975 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15976
15977 * character.h (Vchar_script_table): Extern it.
15978
15979 * character.c (Vscript_alist): Delete.
15980 (Vchar_script_table, Qchar_script_table): New variable.
15981 (syms_of_character): Declare Vchar_script_table as a lisp variable
15982 and initialize it.
15983
15984 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15985 have property char-table-extra-slots, make no extra slot.
15986
15987 * dispextern.h (struct face): Delete member `charset'.
15988 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15989 SINGLE_BYTE_CHAR_P.
15990 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15991 Add prototypes.
15992 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15993 (generate_ascii_font_name): Rename from generate_ascii_font.
15994
15995 * fontset.h (get_font_repertory_func): New prototype.
15996 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15997 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15998
15999 * fontset.c (Qprepend, Qappend): New variables.
16000 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16001 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16002 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16003 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16004 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16005 (load_font_get_repertory): New functions.
16006 (fontset_set): Delete.
16007 (fontset_face): New arg FACE. Return face ID, not face.
16008 Complete re-write to handle new fontset structure. Change caller.
16009 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16010 (face_for_char): Don't call lookup_face.
16011 (make_fontset_for_ascii_face): New arg FACE.
16012 (fs_load_font): New arg CHARSET_ID. Don't check
16013 Vfont_encoding_alist here.
16014 (find_font_encoding): New function.
16015 (list_fontsets): Use STRINGP, not ! NILP.
16016 (accumulate_script_ranges): New function.
16017 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16018 re-written to handle new fontset structure.
16019 (Ffontset_font): Return a copy of element.
16020 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16021 docstring of font-encoding-alist.
16022
16023 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16024 (Fset_fotset_font): Fix arguments to 5.
16025
16026 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16027
16028 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16029 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16030 (highlight_trailing_whitespace): Adjust for the change of
16031 lookup_named_face.
16032
16033 * xfaces.c: Include charset.h.
16034 (load_face_font): Delete argument C. Change caller.
16035 (generate_ascii_font_name): Rename from generate_ascii_font.
16036 (font_name_registry): New function.
16037 (cache_face): Store ascii faces before non-ascii faces in buckets.
16038 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16039 Lookup only ascii faces.
16040 (lookup_non_ascii_face): New function.
16041 (lookup_named_face): Delete argument C. Change caller.
16042 (lookup_derived_face): Delete argument C. Change caller.
16043 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16044 a string, just call font_list with it.
16045 (choose_face_font): Delete arguments FACE and C. New arg
16046 FONT_SPEC. Change caller.
16047 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16048 Change caller.
16049 (realize_non_ascii_face): New function.
16050 (realize_x_face): Call load_face_font here.
16051 (realize_tty_face): Delete argument C. Change caller.
16052 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16053 get a face ID.
16054 (dump_realized_face): Don't print charset of FACE.
16055
16056 * xfns.c (x_set_font): Always call x_new_fontset and
16057 store_frame_parameter.
16058 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16059 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16060
16061 * xterm.h (x_get_font_repertory): Extern it.
16062
16063 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16064 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16065 it->multibyte_p is zero.
16066 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16067 (x_new_fontset): If FONTSETNAME doesn't match any existing
16068 fontsets, create a new one.
16069 (x_get_font_repertory): New function.
16070
160712008-02-01 Kenichi Handa <handa@m17n.org>
16072
16073 * coding.c (Ffind_coding_systems_region_internal): Detect an
16074 ASCII only string correctly.
16075
16076 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16077 version is 0.
16078
160792008-02-01 Kenichi Handa <handa@m17n.org>
16080
16081 * lread.c: Include "coding.h".
16082 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16083 (load_each_byte, unread_char): New variables.
16084 (readchar_backlog): Delete.
16085 (readchar): Return a character unless load_each_byte is nonzero.
16086 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16087 cons. If unread_char is not -1, simply return it.
16088 (unreadchar): Handle the case that readcharfun is
16089 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16090 (read_multibyte): Delete.
16091 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16092 (read_emacs_mule_char): New functions.
16093 (Fload): Even if the file doesn't have the extension ".elc", if
16094 safe_to_load_p returns a positive version number, assume that the
16095 file contains bytecompiled code. If the version is less than 22,
16096 load the file while decoding multibyte sequences by emacs-mule.
16097 (readevalloop): Don't use readchar_backlog.
16098 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16099 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16100 (read_escape): Delete the arg BYTEREP.
16101 (read1): Set load_each_byte to 1 temporarily while handling
16102 #@NUMBER. Don't call read_multibyte.
16103 (read_vector): Call Fread with a cons. If readcharfun is
16104 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16105 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16106 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16107 and Qload_force_doc_strings.
16108
161092008-02-01 Kenichi Handa <handa@m17n.org>
16110
16111 * xdisp.c (face_before_or_after_it_pos): Call
16112 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16113
161142008-02-01 Kenichi Handa <handa@m17n.org>
16115
16116 * character.h (TRAILING_CODE_P): New macro.
16117 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16118 (string_char_with_unification): Fix prototype.
16119 (Vscript_alist): Extern it.
16120
16121 * character.c (Vscript_alist): New variable.
16122 (string_char_with_unification, str_as_unibyte)
16123 (string_escape_byte8): Add `const' to local variables.
16124 (syms_of_character): Declare script-alist as a Lisp variable.
16125
16126 * charset.h (Vcharset_ordered_list): Extern it.
16127 (charset_ordered_list_tick): Extern it.
16128 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16129 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16130 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16131 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16132 (Funify_charset): Adjust for the change of Funify_charset.
16133
16134 * charset.c (charset_ordered_list_tick): New variable.
16135 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16136 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16137 deunify intead of unify a charset.
16138 (string_xstring_p): Add `const' to local variables.
16139 (find_charsets_in_text): Add `const' to arguments and local variables.
16140 (encode_char): Adjust for the change of Funify_charset. Fix
16141 detecting of invalid code.
16142 (Fset_charset_priority): Increment charset_ordered_list_tick.
16143 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16144 and TO_CODE.
16145
16146 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16147 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16148 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16149 (decode_coding_ccl, consume_chars)
16150 (Ffind_coding_systems_region_internal)
16151 (Fcheck_coding_systems_region): Add `const' to local variables.
16152
16153 * print.c (print_object): Use octal form for printing the
16154 contents of a bool vector.
16155
161562008-02-01 Dave Love <fx@gnu.org>
16157
16158 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16159 <version == 20>: Refuse to load.
16160
161612008-02-01 Dave Love <fx@gnu.org>
16162
16163 * fns.c: Move coding.h.
16164 (Qcodeset, Qdays, Qmonths): New.
16165 (concat): Use CHARACTERP instead of INTEGERP.
16166 (Flocale_codeset): Delete.
16167 (Flanginfo): New function.
16168 (syms_of_fns): Change accordingly.
16169
16170 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16171
161722008-02-01 Dave Love <fx@gnu.org>
16173
16174 * casetab.c (init_casetab_once, init_casetab_once): Fix
16175 CHAR_TABLE_SET call.
16176
16177 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16178
16179 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16180
16181 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16182 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16183 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16184
16185 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16186
16187 * coding.c (ENCODE_DESIGNATION, decode_eol)
16188 (make_conversion_work_buffer, code_conversion_restore)
16189 (Fdefine_coding_system_internal): Convert Lisp types.
16190 (code_conversion_restore): Use EQ, not ==.
16191 (Fencode_coding_string): Fix code_convert_string call.
16192
16193 * coding.h (code_convert_region): Fix prototype.
16194
16195 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16196
16197 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16198 (Ffontset_info): Convert Lisp types.
16199
16200 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16201
16202 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16203
16204 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16205
16206 * chartab.c: Include "...h", not <...h> in some cases.
16207
16208 * callproc.c (Fcall_process): Remove unused variables.
16209
162102008-02-01 Dave Love <fx@gnu.org>
16211
16212 * coding.c (Fset_coding_system_priority): Allow null arg list.
16213
162142008-02-01 Dave Love <fx@gnu.org>
16215
16216 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16217 (Fself_insert_and_exit): Use CHARACTERP.
16218
16219 * callproc.c (Fcall_process): Remove unused vars.
16220
16221 * xterm.c (XTread_socket): Add extra dead keysyms.
16222
16223 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16224
16225 * dispextern.h: Remove prototypes for redraw_frame,
16226 redraw_garbaged_frames.
16227
16228 * cmds.c (Fself_insert_command): Use CHARACTERP.
16229
16230 * chartab.c (make_sub_char_table): Remove unused var.
16231 (Fset_char_table_default, Fmap_char_table): Doc fix.
16232
16233 * keymap.c (access_keymap): Remove generic char code.
16234 (push_key_description): Use CHARACTERP.
16235
162362008-02-01 Dave Love <fx@gnu.org>
16237
16238 * charset.c: Doc fixes.
16239 (Funify_charset): Extra checking.
16240
162412008-02-01 Dave Love <fx@gnu.org>
16242
16243 * lread.c: Remove some unused variables.
16244 (safe_to_load_p): If safe, return the magic number version byte.
16245 (Fload): Maybe use load-with-code-conversion.
16246
162472008-02-01 Kenichi Handa <handa@m17n.org>
16248
16249 * category.c (Fmodify_category_entry): Don't modify the contents
16250 of category_set for characters out of the range. Avoid
16251 unnecessary modification.
16252
16253 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16254 Vchar_unify_table. The default value of the table is now nil.
16255
16256 * character.c (syms_of_character): Setup Vchar_width_table for
16257 eight-bit-control and raw-byte chars.
16258
16259 * charset.h (enum define_charset_arg_index): Delete
16260 charset_arg_parents and add charset_arg_subset and
16261 charset_arg_superset.
16262 (enum charset_attr_index): Delete charset_parents and add
16263 charset_subset and charset_superset.
16264 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16265 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16266 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16267 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16268 (CHARSET_SUPERSET): New macros.
16269 (charset_work): Extern it.
16270 (ENCODE_CHAR): Use charset_work.
16271 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16272 (map_charset_chars): Extern it.
16273
16274 * charset.c (load_charset_map): Set the default value of encoder
16275 and deunifier char-tables to nil.
16276 (map_charset_chars): Change argument. Change callers. Use
16277 map_char_table_for_charset instead of map_char_table.
16278 (Fmap_charset_chars): New optional args from_code and to_code.
16279 (Fdefine_charset_internal): Adjust for the change of
16280 `define-charset' (:parents -> :subset or :superset).
16281 (charset_work): New variable.
16282 (encode_char, syms_of_charset): Adjust for the change of
16283 Fdefine_charset_internal.
16284 (Ffind_charset_string): Setup the vector `charsets' correctly.
16285
16286 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16287 the previous change.
16288 (char_table_ref_and_range): Adjust for the above change.
16289 (map_sub_char_table_for_charset): New function.
16290 (map_char_table_for_charset): New function.
16291
16292 * keymap.c (describe_vector): Handle a char-table directly here.
16293 (describe_char_table): Delete.
16294
16295 * lisp.h (map_charset_chars): Delete.
16296
162972008-02-01 Dave Love <fx@gnu.org>
16298
16299 * fns.c (count_combining): Comment out (unused).
16300 (Flocale_codeset): New.
16301 (syms_of_fns): Defsubr it.
16302
16303 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16304 (size_t): Remove.
16305
163062008-02-01 Dave Love <fx@gnu.org>
16307
16308 * Makefile.in (chartab.o): Depend on charset.h.
16309
163102008-02-01 Kenichi Handa <handa@m17n.org>
16311
16312 * character.c (syms_of_character): Set the default value of
16313 Vprintable_chars to Qnil.
16314
163152008-02-01 Dave Love <fx@gnu.org>
16316
16317 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16318
163192008-02-01 Kenichi Handa <handa@m17n.org>
16320
16321 * charset.c (load_charset_map): Handle the case that from < to
16322 correctly.
16323
16324 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16325 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16326 Pay attention to raw-8-bit chars.
16327
163282008-02-01 Kenichi Handa <handa@m17n.org>
16329
16330 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16331 It is not bytecompiled now.
16332
16333 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16334 (charset_jisx0208): New variables.
16335 (Fdefine_charset_internal): Setup them if appropriate.
16336 (init_charset_once): Initialize them to -1.
16337
16338 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16339 (charset_jisx0208): Extern them.
16340
16341 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16342 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16343 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16344 (setup_iso_safe_charsets): Fix arguments to Fassq.
16345 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16346 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16347 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16348 (encode_coding_iso_2022): Change the 1st arg to
16349 ENCODE_ISO_CHARACTER to a variable.
16350
163512008-02-01 Kenichi Handa <handa@m17n.org>
16352
16353 * charset.h (enum define_charset_arg_index): New enums
16354 charset_arg_min_code and charset_arg_max_code.
16355 (struct charset): New member char_index_offset.
16356
16357 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16358 Take charset->char_index_offset into account.
16359 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16360 args[charset_arg_max_code]. Setup charset.char_index_offset.
16361 (syms_of_charset): Fix args to Fdefine_charset_internal.
16362
163632008-02-01 Dave Love <fx@gnu.org>
16364
16365 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16366
163672008-02-01 Dave Love <fx@gnu.org>
16368
16369 * coding.c: Doc fixes.
16370 (Fcoding_system_aliases): Fix return value.
16371 (Qmac): Remove (duplicated) definition.
16372
163732008-02-01 Dave Love <fx@gnu.org>
16374
362654a6
JB
16375 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16376 New functions.
aac0c6e3
MR
16377
16378 * character.c (Fstring): Doc fix.
16379
16380 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16381
362654a6 16382 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16383 (font-encoding-alist): Doc fix.
16384
163852008-02-01 Dave Love <fx@gnu.org>
16386
16387 * term.c (costs_set): Declare static, non-initialized for pcc.
16388 (encode_terminal_code): Remove unused var.
16389
16390 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16391 for K&R.
16392
16393 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16394
16395 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16396 (suffixes): Move out of make_subsidiaries for K&R.
16397
16398 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16399
16400 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16401
164022008-02-01 Dave Love <fx@gnu.org>
16403
16404 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16405
16406 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16407
164082008-02-01 Yong Lu <lyongu@asia-infonet.com>
16409
16410 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16411
16412 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16413
164142008-02-01 Kenichi Handa <handa@m17n.org>
16415
16416 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16417 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16418
164192008-02-01 Kenichi Handa <handa@m17n.org>
16420
16421 * coding.c (decode_coding_charset): Adjust for the change of
16422 Fdefine_coding_system_internal.
16423 (Fdefine_coding_system_internal): For a coding system of
16424 `charset' type, store a list of charset IDs in
16425 `charset_attr_charset_valids' element of coding attributes.
16426
164272008-02-01 Kenichi Handa <handa@m17n.org>
16428
16429 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16430 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16431 caller. Handle 2-byte and 3-byte charsets correctly.
16432 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16433 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16434 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16435 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16436 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16437 sequence.
16438 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16439 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16440 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16441 and alt&rule composition.
16442 (decode_coding_iso_2022): Handle composition correctly.
16443 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16444
16445 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16446 re-defining a charset. If the charset has :emacs-mule-id, setup
16447 emacs_mule_bytes.
16448 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16449
164502008-02-01 Kenichi Handa <handa@m17n.org>
16451
16452 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16453 (encode_coding_big5, encode_coding_charset): If coding requires safe
16454 encoding, produce a character specified by
16455 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16456
164572008-02-01 Dave Love <fx@gnu.org>
16458
16459 * xterm.c (XSetIMValues): Declare.
16460
16461 * process.c: Conditionally include sys/wait.h, pty.h.
16462
16463 * print.c (print_object): Fix print format for 64-bit systems.
16464
16465 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16466
16467 * buffer.c (emacs_strerror): Declare.
16468
16469 * fontset.c (Fclear_face_cache): Declare.
16470 (accumulate_font_info): Comment-out (unused).
16471 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16472 variables.
16473
16474 * character.h (string_escape_byte8): Declare.
16475
16476 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16477 unused vars.
16478 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16479 (Fmap_charset_chars): Doc fix.
16480
16481 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16482 (Fset_coding_system_priority, Fset_coding_system_priority)
16483 (Fdefine_coding_system_internal): Doc fix.
16484
164852008-02-01 Dave Love <fx@gnu.org>
16486
16487 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16488
164892008-02-01 Kenichi Handa <handa@m17n.org>
16490
16491 * character.c (string_escape_byte8): Make multibyte string with
16492 correct size.
16493
16494 * charset.c (Fmake_char): Delete unnecessary code.
16495
164962008-02-01 Kenichi Handa <handa@m17n.org>
16497
16498 * xfns.c (x_encode_text): Allocate coding.destination here, and
16499 call encode_coding_object with dst_object Qnil.
16500
16501 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16502 multibyte form correctly.
16503
16504 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16505 against Vfont_encoding_alist.
16506
16507 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16508 handling of charset list.
16509 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16510 (decode_coding_object): Move point to coding->dst_pos before
16511 calling post-read-conversion function.
16512 (encode_coding_object): Give correct arguments to
16513 pre-write-conversion. Ignore the return value of
16514 pre-write-conversion function. Pay attention to the case that
16515 pre-write-conversion changes the current buffer. If dst_object is
16516 Qt, even if coding->src_bytes is zero, allocate at least one byte
16517 to coding->destination.
16518
16519 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16520
16521 * charset.c (Fmake_char): Make it more backward compatible.
16522 (Fmap_charset_chars): Fix docstring.
16523
165242008-02-01 Dave Love <fx@gnu.org>
16525
16526 * coding.c: Doc fixes.
16527 (Fdefine_coding_system_alias): Use names, not symbols, in
16528 coding-system-alist.
16529
165302008-02-01 Kenichi Handa <handa@m17n.org>
16531
16532 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16533 of calling free_realized_face.
16534
165352008-02-01 Yong Lu <lyongu@asia-infonet.com>
16536
16537 * charset.c (read_hex): Don't treat SPC as a comment starter.
16538 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16539 (Fdecode_char): Fix typo.
16540
165412008-02-01 Kenichi Handa <handa@m17n.org>
16542
16543 * charset.h (struct charset): New member `code_space_mask'.
16544
16545 * coding.c (coding_set_source): Delete the local variable beg_byte.
16546 (encode_coding_charset, Fdefine_coding_system_internal):
16547 Delete the local variable charset.
16548 (Fdefine_coding_system_internal): Setup
16549 attrs[coding_attr_charset_valids] correctly.
16550
16551 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16552 member to check if CODE is valid or not.
16553 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16554 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16555 is within the range of charset->min_code and carset->max_code.
16556
165572008-02-01 Dave Love <fx@gnu.org>
16558
16559 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16560
16561 * dispextern.h (generate_ascii_font): Fix return type.
16562
16563 * xfaces.c (generate_ascii_font): Fix arg declaration.
16564
16565 * coding.c (coding_inherit_eol_type)
16566 (Fset_terminal_coding_system_internal)
16567 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16568
165692008-02-01 Kenichi Handa <handa@m17n.org>
16570
16571 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16572 multiple charsets correctly.
16573
165742008-02-01 Kenichi Handa <handa@m17n.org>
16575
16576 * search.c (boyer_moore): Fix handling of multibyte character
16577 translation.
16578
16579 * xdisp.c (display_mode_element): When the variable `elt' is
16580 changed, update `this' and `lisp_string'.
16581
165822008-02-01 Kenichi Handa <handa@m17n.org>
16583
16584 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16585
16586 * callproc.c (Fcall_process): Be sure to give the current buffer
16587 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16588
16589 * charset.c (struct charset_map_entries): New struct.
16590 (load_charset_map): Rename from parse_charset_map. New args
16591 entries and n_entries. Change caller.
16592 (load_charset_map_from_file): Rename from load_charset_map.
16593 Change caller. New arg control_flag. Call load_charset_map at
16594 the tail.
16595 (load_charset_map_from_vector): New function.
16596 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16597 (encode_char): If the charset is compact, change a character index
16598 to a code point.
16599
16600 * coding.c (coding_alloc_by_making_gap): Check the case that the
16601 source and destination are the same correctly.
16602 (decode_coding_raw_text): Set coding->consumed_char and
16603 coding->consumed to 0.
16604 (produce_chars): If coding->chars_at_source is nonzero, update
16605 coding->consumed_char and coding->consumed before calling
16606 alloc_destination.
16607 (Fdefine_coding_system_alias): Register ALIAS in
16608 Vcoding_system_alist.
16609 (syms_of_coding): Define `no-conversion' coding system at the tail.
16610
16611 * fileio.c (Finsert_file_contents): Set coding_system instead of
16612 val. If the current buffer is multibyte, always call
16613 decode_coding_gap.
16614
16615 * xfaces.c (try_font_list): Give higher priority to fontset's
16616 family than face's family.
16617
166182008-02-01 Kenichi Handa <handa@m17n.org>
16619
16620 * callproc.c (Fcall_process): Be sure to give the current buffer
16621 to decode_coding_c_string.
16622
16623 * xfaces.c (try_font_list): Give a family specified in a fontset
16624 higher priority than a family specified in a face.
16625
166262008-02-01 Kenichi Handa <handa@m17n.org>
16627
16628 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16629 Fix arguments to insert_from_buffer.
16630
16631 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16632
166332008-02-01 Kenichi Handa <handa@m17n.org>
16634
16635 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16636 (decode_coding_gap): Set coding->dst_multibyte correctly.
16637
166382008-02-01 Kenichi Handa <handa@m17n.org>
16639
16640 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16641 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16642 (encode_coding_utf_16): Substitute coding->default_char for
16643 non-Unicode characters.
16644 (decode_coding): Don't call record_insert here.
16645 (setup_coding_system): Initialize `surrogate' of
16646 coding->spec.utf_16 to 0.
16647 (EMIT_ONE_BYTE): Fix for multibyte case.
16648
16649 * insdel.c (insert_from_gap): Call record_insert.
16650
166512008-02-01 Kenichi Handa <handa@m17n.org>
16652
16653 * casefiddle.c (casify_region): Fix multibyte case.
16654
16655 * character.c (c_string_width): Add return type `int'.
16656 (char_string_with_unification): Delete arg ADVANCED.
16657
16658 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16659 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16660 (CHAR_STRING_ADVANCE): Make it do-while statement.
16661
16662 * chartab.c (sub_char_table_set_range): Optimize for the case
16663 DEPTH == 3. Add workaround code for a GCC optimization bug.
16664
16665 * charset.c (parse_charset_map): Remove an unused variable.
16666
16667 * coding.c: Delete unused variables.
16668
16669 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16670 earlier. If inserted is zero and the coding system doesn't
16671 require flushing, don't call decode_coding_gap.
16672
16673 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16674
166752008-02-01 Kenichi Handa <handa@m17n.org>
16676
16677 The following changes are for using Unicode as an internal
16678 character model, and use UTF-8 format for buffer/string
16679 representation.
16680
16681 * .gdbinit (xchartable): Adjust for the change of char table structure.
16682 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16683
16684 * Makefile.in (obj): Add character.o and chartab.o.
16685 (lisp, shortlisp): Remove utf-8.elc.
16686 (*.o): For many files, change dependency on charset.h to
16687 character.h, and add dependency on character.h.
16688 (character.o, chartab.o): New targets.
16689
16690 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16691 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16692 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16693 of "charset.h".
16694
16695 * dired.c, filelock.c: Include "character.h".
16696
16697 * alloc.c: Include "character.h" instead of "charset.h".
16698 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16699 (syms_of_alloc): Remove defsubr for Smake_char_table.
16700
16701 * buffer.c: Include "character.h" instead of "charset.h", don't
16702 include "coding.h".
16703 (Fset_buffer_multibyte): Adjust for UTF-8.
16704
16705 * buffer.h: EXFUN Fbuffer_live_p.
16706
16707 * callproc.c: Include "character.h" instead of "charset.h".
16708 (Fcall_process): Big change for the new code-conversion APIs.
16709
16710 * casetab.c: Include "character.h" instead of "charset.h".
16711 (set_canon, set_identity, shuffle): Adjust for the new
16712 map_char_table spec.
16713 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16714 accessing the char table structure.
16715
16716 * chartab.c: New file that implements char table.
16717
16718 * category.c: Include "character.h".
16719 (copy_category_entry): New function.
16720 (copy_category_table): Call map_char_table and copy_category_entry.
16721 (Fmake_category_table): Initialize all top-level slots.
16722 (char_category_set): New function.
16723 (modify_lower_category_set): Delete.
16724 (Fmodify_category_entry): Call char_table_ref_and_range.
16725
16726 * category.h (CATEGORY_SET): Just call char_category_set.
16727
16728 * ccl.c: Include "character.h".
16729 (Qccl, Qcclp): New variables.
16730 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16731 it's less than 256.
16732 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16733 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16734 and DST type.
16735 (ccl_driver): Change types of argument, adjust code accordingly.
16736 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16737 ccl_driver.
16738 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16739
16740 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16741 New members src_multibyte, dst_multibyte, consumed, and produced.
16742 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16743 (CODING_SPEC_CCL_PROGRAM): New macro.
16744 (ccl_driver): Update prototype.
16745 (Qccl, Qcclp, Fccl_program_p): Extern them.
16746 (CHECK_CCL_PROGRAM): New macro.
16747
16748 * character.c, character.h, chartab.c: New files.
16749
16750 * charset.c: Mostly re-written. Move character and multibyte sequence
16751 handling codes to character.c.
16752
16753 * charset.h: Mostly re-written. Move character and multibyte sequence
16754 handling codes to character.h.
16755
16756 * coding.c, coding.h: Mostly re-written.
16757
16758 * composite.c: Include "character.h" instead of "charset.h".
16759 (CHAR_WIDTH): Move to character.h.
16760 (HASH_KEY, HASH_VALUE): Delete.
16761
16762 * composite.h (enum composition_method): Change order of enumeration
16763 symbols.
16764
16765 * data.c: Include "character.h" instead of "charset.h".
16766 (Faref): Call CHAR_TABLE_REF for a char table.
16767 (Faset): Call CHAR_TABLE_SET for a char table.
16768
16769 * dispextern.h (free_realized_face, check_face_attribytes)
16770 (generate_ascii_font): Extern them.
16771 (free_realized_multibyte_face): Delete extern.
16772
16773 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16774 table structure.
16775
16776 * editfns.c: Include "character.h" instead of "charset.h".
16777 (Fchar_to_string): Always call CHAR_STRING.
16778
16779 * emacs.c (main): Call init_charset_once, init_charset,
16780 syms_of_chartab, and syms_of_character.
16781
16782 * fileio.c: Include "character.h" instead of "charset.h".
16783 (Finsert_file_contents): Big change for the new code-conversion API.
16784 (choose_write_coding_system, Fwrite_region): Likewise.
16785 (build_annotations_2): Delete.
16786 (e_write): Big change for the new code-conversion API.
16787
16788 * fns.c: Include "character.h" instead of "charset.h".
16789 (copy_sub_char_table): Move to chartab.c.
16790 (Fcopy_sequence): Call copy_char_table for a char table.
16791 (concat): Delete codes calling count_multibyte.
16792 (string_char_to_byte, string_byte_to_char): Adjust for the new
16793 multibyte form.
16794 (internal_equal): Adjust for the change of char table structure.
16795 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16796 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16797 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16798 (char_table_translate, optimize_sub_char_table)
16799 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16800 chartab.c.
16801 (char_table_ref_and_index): Delete.
16802 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16803 (Fmd5): Call preferred_coding_system instead of accessing
16804 Vcoding_category_list. Adjust for the new code-conversion API.
16805 (syms_of_fns): Move defsubr for char table related functions to
16806 chartab.c.
16807
16808 * fontset.c: Mostly re-written.
16809
16810 * fontset.h (struct font_info): Change type of the member encoding_type.
16811 (enum FONT_SPEC_INDEX): New enum.
16812 (fontset_font_pattern, fs_load_font): Update prototype.
16813 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16814
16815 * indent.c: Include "character.h" instead of "charset.h".
16816 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16817
16818 * insdel.c: Include "character.h" instead of "charset.h".
16819 (copy_text): Don't refer to Vnonascii_translation_table.
16820 (insert_from_gap): New function.
16821
16822 * keyboard.c: Include "character.h" instead of "charset.h".
16823 (command_loop_1): Never call direct_output_forward_char before
16824 a non-ASCII character.
16825 (read_char): If Vkeyboard_translate_table is a char table, always
16826 translate a character.
16827
16828 * keymap.c: Include "character.h".
16829 (store_in_keymap): Handle the case that IDX is a cons.
16830 (Fdefine_key): Handle the case that KEY is a cons and the car part
16831 is also a cons (range).
16832 (push_key_description): Adjust for the new character code.
16833 (describe_vector): Call describe_char_table for a char table.
16834 (describe_char_table): New function.
16835
16836 * keymap.h (describe_char_table): Extern it.
16837
16838 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16839 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16840 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16841 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16842 Delete.
16843 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16844 structure.
16845 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16846 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16847 (CHARTAB_SIZE_BITS_3): New macros.
16848 (chartab_size): Extern it.
16849 (struct Lisp_Char_Table): Re-design.
16850 (struct Lisp_Sub_Char_Table): New structure.
16851 (HASH_KEY, HASH_VALUE): Move from fns.c.
16852 (CHARACTERBITS): Define as 22.
16853 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16854 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16855 (GC_SUB_CHAR_TABLE_P): New macro.
16856 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16857 (code_convert_string_norecord): Deleted extern.
16858 (init_character_once, syms_of_character, init_charset)
16859 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16860
16861 * lread.c: Include "character.h".
16862 (read_multibyte): New arg NBYTES.
16863 (read_escape): Change the meaning of returned *BYTEREP.
16864 (to_multibyte): Delete.
16865 (read1): Adjust the handling of char table and string.
16866
16867 * print.c: Include "character.h" instead of "charset.h".
16868 (print_string): Convert 8-bit raw bytes to octal form by
16869 string_escape_byte8.
16870 (print_object): Adjust for the new multibyte form. Print 8-bit
16871 raw bytes always in octal form. Handle sub char table correctly.
16872
16873 * process.c: Include "character.h" instead of "charset.h".
16874 (read_process_output, send_process): Adjust for the new
16875 code-conversion API.
16876
16877 * puresize.h (BASE_PURESIZE): Increase.
16878
16879 * regex.c: Include "character.h" instead of "charset.h".
16880 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16881 (regex_compile): Accept a range whose starting and ending
16882 character have different leading bytes.
16883 (analyse_first): Adjust for the above change.
16884
16885 * search.c: Include "character.h" instead of "charset.h".
16886 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16887 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16888
16889 * syntax.c: Include "character.h" instead of "charset.h".
16890 (syntax_parent_lookup): Delete.
16891 (Fmodify_syntax_entry): Accept a cons as CHAR.
16892 (skip_chars): Adjust for the new multibyte form.
16893 (init_syntax_once): Call char_table_set_range instead of directly
16894 accessing the structure of a char table.
16895
16896 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16897 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16898 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16899 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16900
16901 * term.c: Include "buffer.h" and "character.h".
16902 (encode_terminal_code, write_glyphs): Adjust for the new
16903 code-conversion API.
16904 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16905
16906 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16907
16908 * xdisp.c: Include "character.h".
16909 (get_next_display_element): Adjust for the new multibyte form.
16910 (disp_char_vector): Adjust for the new char table structure.
16911 (decode_mode_spec_coding): Adjust for the new structure of
16912 coding system.
16913 (decode_mode_spec): Adjust for the new code-conversion API.
16914
16915 * xfaces.c: Include "character.h" instead of "charset.h".
16916 (load_face_font): Adjust for the change of choose_face_font and
16917 FS_LOAD_FONT.
16918 (generate_ascii_font): New function.
16919 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16920 (set_font_frame_param): Adjust for the change of choose_face_font.
16921 (free_realized_face): Make it public.
16922 (free_realized_faces_for_fontset): Rename from
16923 free_realized_multibyte_face. Free also faces realized for ASCII.
16924 (choose_face_font): Change arguments. Adjust for the change of
16925 fontset_font_pattern and FS_LOAD_FONT.
16926
16927 * xfns.c: Include "character.h".
16928 (x_encode_text): Adjust for the new code-conversion API.
16929
16930 * xselect.c: Don't include "charset.h".
16931 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16932
16933 * xterm.c: Include "character.h".
16934 (x_encode_char): New argument CHARSET. Change caller.
16935 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16936 Call ENCODE_CHAR instead of SPLIT_CHAR.
16937 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16938 CHAR_WIDTH instead of CHARSET_WIDTH.
16939 (XTread_socket): Adjust for the new code-conversion API.
16940 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16941 (x_load_font): Adjust for the change of struct font.
16942
169432008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16944
16945 * xfaces.c (face_at_buffer_position): Remove unused vars.
16946
169472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16948
16949 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16950 Fix overflow checking.
16951
169522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16953
16954 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16955 Cancel previous change.
16956
169572008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16958
16959 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16960 ccl->eight_bit_control. Fix check for buffer overflow.
16961 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16962 (ccl_driver): Initialize extra_bytes to 0.
16963
169642008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16965
16966 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16967 return it ORed with ctrl_modifier.
16968
169692008-01-29 Miles Bader <miles@gnu.org>
16970
16971 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16972
169732008-01-28 Jason Rumney <jasonr@gnu.org>
16974
16975 * w32.c (stat): Don't double check for networked drive.
16976
169772008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16978
16979 * window.c (run_window_configuration_change_hook): New function.
16980 Code extracted from set_window_buffer. Set the selected frame.
16981 (set_window_buffer): Use it.
16982 * window.h (run_window_configuration_change_hook): Declare.
16983 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16984
16985 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16986
169872008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16988
16989 * Makefile.in: Remove references to unused macros.
16990
169912008-01-26 Eli Zaretskii <eliz@gnu.org>
16992
16993 * w32.c (g_b_init_get_sid_sub_authority)
16994 (g_b_init_get_sid_sub_authority_count): New static variables.
16995 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16996 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16997 (init_user_info): Use them to retrieve uid and gid.
16998 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16999 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17000 st_uid and st_gid of the file.
17001
170022008-01-26 Jason Rumney <jasonr@gnu.org>
17003
17004 * w32.c (logon_network_drive): New function.
17005 (stat): Use it.
17006
170072008-01-26 Chong Yidong <cyd@stupidchicken.com>
17008
17009 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17010 invisible text covered with an ellipsis.
17011
170122008-01-25 Richard Stallman <rms@gnu.org>
17013
17014 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17015 jump back to beginning. Move some other initializations after that.
17016 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17017 New variables.
17018 (syms_of_xdisp): Init them.
17019
17020 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17021
17022 * buffer.c (reset_buffer_local_variables):
17023 Implement `permanent-local-hook'.
17024 (Qpermanent_local_hook): New variable.
17025 (syms_of_buffer): Init and staticpro it.
17026
170272008-01-25 Michael Albinus <michael.albinus@gmx.de>
17028
17029 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17030
170312008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17032
17033 * fns.c (Fclrhash): Return TABLE.
17034
170352008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17036
17037 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17038 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17039 is set even without positional changes.
17040 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17041
17042 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17043
170442008-01-23 Jason Rumney <jasonr@gnu.org>
17045
17046 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17047
17048 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17049 the unicode range available in MULE by locale-coding-system.
17050 Improve dbcs lead byte detection. Set event timestamp and modifiers
17051 earlier.
17052
170532008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17054
17055 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17056 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17057 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17058 when used on child processes.
17059
170602008-01-21 Michael Albinus <michael.albinus@gmx.de>
17061
17062 * dbusbind.c (Fdbus_method_return_internal): Rename from
17063 Fdbus_method_return.
17064 (Fdbus_unregister_object): Move to dbus.el.
17065 (Fdbus_call_method, Fdbus_method_return_internal)
17066 (Fdbus_send_signal): Improve debug messages.
17067
170682008-01-20 Martin Rudalics <rudalics@gmx.at>
17069
17070 * undo.c (undo_inhibit_record_point): New variable.
17071 (syms_of_undo): Initialize it.
17072 (record_point): Don't record point when undo_inhibit_record_point
17073 is set.
17074
170752008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17076
17077 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17078
17079 * xdisp.c (Qauto_hscroll_mode): New var.
17080 (syms_of_xdisp): Initialize it.
17081 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17082 window's buffer.
17083 (hscroll_windows): Don't check automatic_hscrolling_p here.
17084
17085 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17086 vscroll if we're setting window-buffer to the value it already has.
17087
170882008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17089
17090 * m/intel386.h: Remove references to XENIX.
17091
170922008-01-17 Andreas Schwab <schwab@suse.de>
17093
17094 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17095 instead of HAVE_X86_64_LIB64_DIR.
17096 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17097
170982008-01-17 Glenn Morris <rgm@gnu.org>
17099
17100 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17101 to HAVE_X86_64_LIB64_DIR.
17102
171032008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17104
17105 * s/irix3-3.h:
17106 * s/irix4-0.h:
17107 * s/386-ix.h:
17108 * s/domain.h:
17109 * s/hpux9-x11r4.h:
17110 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17111
17112 * sysdep.c: Remove code containing references to symbols defined
17113 by unsupported systems.
17114
171152008-01-16 Glenn Morris <rgm@gnu.org>
17116
17117 * coding.c (select-safe-coding-system-function): Doc fix.
17118
171192008-01-15 Glenn Morris <rgm@gnu.org>
17120
17121 * config.in: Revert 2008-01-13 change: this is a generated file.
17122
171232008-01-13 Tom Tromey <tromey@redhat.com>
17124
17125 * lisp.h: Fix typo.
17126
171272008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17128
17129 * m/sequent-ptx.h:
17130 * m/sequent.h:
17131 * s/ptx.h:
17132 * s/ptx4-2.h:
17133 * s/ptx4.h: Remove files for systems no longer supported.
17134
17135 * callproc.c (Fcall_process): Fix previous change.
17136
171372008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17138
17139 * unexsunos4.c: Remove file, system not supported anymore.
17140
17141 * m/mips.h:
17142 * m/intel386.h:
17143 * callproc.c:
17144 * config.in:
17145 * ecrt0.c:
17146 * emacs.c:
17147 * fileio.c:
17148 * frame.c:
17149 * getpagesize.h:
17150 * keyboard.c:
17151 * lread.c:
17152 * process.c:
17153 * puresize.h:
17154 * sysdep.c:
17155 * systty.h:
17156 * syswait.h:
17157 * unexec.c:
17158 * xdisp.c:
17159 * alloc.c: Remove code containing references to symbols defined by
17160 unsupported systems.
17161
171622008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17163
17164 * coding.c (detect_coding_mask): Fix previous change.
17165
171662008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17167
17168 * coding.c (detect_coding_iso2022): New arg
17169 latin_extra_code_state. Allow Latin extra codes only
17170 when *latin_extra_code_state is nonzero.
17171 (detect_coding_mask): If there is a NULL byte, detect the encoding
17172 as UTF-16 or binary. If Latin extra codes exist, detect the
17173 encoding as ISO-2022 only when there's no other proper encoding is
17174 found.
17175
171762008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17177
17178 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17179 #ifdef MAC_OS.
17180
171812008-01-08 Richard Stallman <rms@gnu.org>
17182
17183 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17184
171852008-01-06 Nick Roberts <nickrob@snap.net.nz>
17186
17187 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17188 menu bar in parentheses.
17189
171902008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17191
17192 * m/7300.h:
17193 * m/acorn.h:
17194 * m/alliant-2800.h:
17195 * m/alliant.h:
17196 * m/alliant1.h:
17197 * m/alliant4.h:
17198 * m/altos.h:
17199 * m/amdahl.h:
17200 * m/apollo.h:
17201 * m/att3b.h:
17202 * m/aviion-intel.h:
17203 * m/aviion.h:
17204 * m/celerity.h:
17205 * m/clipper.h:
17206 * m/cnvrgnt.h:
17207 * m/convex.h:
17208 * m/cydra5.h:
17209 * m/delta88k.h:
17210 * m/dpx2.h:
17211 * m/dual.h:
17212 * m/elxsi.h:
17213 * m/f301.h:
17214 * m/gould-np1.h:
17215 * m/gould.h:
17216 * m/i860.h:
17217 * m/ibmps2-aix.h:
17218 * m/ibmrt-aix.h:
17219 * m/ibmrt.h:
17220 * m/irist.h:
17221 * m/is386.h:
17222 * m/isi-ov.h:
17223 * m/mega68.h:
17224 * m/mg1.h:
17225 * m/news-r6.h:
17226 * m/news-risc.h:
17227 * m/news.h:
17228 * m/nh3000.h:
17229 * m/nh4000.h:
17230 * m/ns16000.h:
17231 * m/ns32000.h:
17232 * m/nu.h:
17233 * m/orion.h:
17234 * m/orion105.h:
17235 * m/paragon.h:
17236 * m/pfa50.h:
17237 * m/plexus.h:
17238 * m/pyramid.h:
17239 * m/pyrmips.h:
17240 * m/sh3el.h:
17241 * m/sps7.h:
17242 * m/sr2k.h:
17243 * m/stride.h:
17244 * m/sun1.h:
17245 * m/sun2.h:
17246 * m/sun3-68881.h:
17247 * m/sun3-fpa.h:
17248 * m/sun3-soft.h:
17249 * m/sun3.h:
17250 * m/sun386.h:
17251 * m/symmetry.h:
17252 * m/tad68k.h:
17253 * m/tahoe.h:
17254 * m/targon31.h:
17255 * m/tek4300.h:
17256 * m/tekxd88.h:
17257 * m/tower32.h:
17258 * m/tower32v3.h:
17259 * m/ustation.h:
17260 * m/wicat.h:
17261 * m/xps100.h:
17262 * s/cxux.h:
17263 * s/cxux7.h:
17264 * s/dgux.h:
17265 * s/dgux4.h:
17266 * s/dgux5-4-3.h:
17267 * s/dgux5-4r2.h:
17268 * s/esix.h:
17269 * s/esix5r4.h:
17270 * s/hiuxmpp.h:
17271 * s/hiuxwe2.h:
17272 * s/iris3-5.h:
17273 * s/iris3-6.h:
17274 * s/isc2-2.h:
17275 * s/isc3-0.h:
17276 * s/isc4-0.h:
17277 * s/isc4-1.h:
17278 * s/newsos5.h:
17279 * s/newsos6.h:
17280 * s/osf1.h:
17281 * s/osf5-0.h:
17282 * s/riscix1-1.h:
17283 * s/riscix12.h:
17284 * s/sco4.h:
17285 * s/sco5.h:
17286 * s/sunos4-0.h:
17287 * s/sunos4-1.h:
17288 * s/sunos413.h:
17289 * s/sunos4shr.h:
17290 * s/umax.h:
17291 * s/unipl5-2.h:
17292 * s/xenix.h:
17293 * cxux-crt0.s:
17294 * unexapollo.c:
17295 * unexconvex.c:
17296 * unexenix.c:
17297 * unexsni.c: Remove files for systems no longer supported.
17298
17299 * m/intel386.h: Remove references to unsupported systems.
17300
17301 * w32.c (get_emacs_configuration): Remove reference to i860.
17302
17303 * sysdep.c: Remove dead code.
17304
173052008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17306
17307 * s/rtu.h:
17308 * m/masscomp.h: Remove files. Platform is obsolete.
17309
173102008-01-04 Michael Albinus <michael.albinus@gmx.de>
17311
17312 * dbusbind.c (Fdbus_method_return): New function.
17313 (xd_read_message): Add the serial number to the event.
17314 (Fdbus_register_method): Activate the function.
17315
173162008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17317
17318 * keyboard.c (read_key_sequence): Fix typo.
17319
173202008-01-03 Michael Albinus <michael.albinus@gmx.de>
17321
17322 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17323 (xd_signature, xd_append_arg): Handle element type detection for
17324 empty arrays.
17325 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17326 SDATA () calls; this must be solved more general.
17327 (Fdbus_register_signal): Use SBYTES instead of strlen.
17328
173292008-01-03 Magnus Henoch <magnus@zemdatav>
17330
17331 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17332 unsigned int for byte values (necessary for big-endian platform).
17333 (Fdbus_call_method): Handle the case of no returned arguments.
17334
173352007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17336
17337 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17338
173392007-12-31 Magnus Henoch <mange@freemail.hu>
17340
17341 * dbusbind.c (xd_signature): Signature of variant is just "v".
17342
173432007-12-30 Michael Albinus <michael.albinus@gmx.de>
17344
17345 * dbusbind.c: Fix several errors and compiler warnings.
17346 Reported by Tom Tromey <tromey@redhat.com>.
17347 (XD_ERROR, XD_DEBUG_MESSAGE)
17348 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17349 (xd_append_arg): Part for basic D-Bus types rewritten.
17350 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17351 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17352 appropriate.
17353 (xd_read_message): Return Qnil. Don't signal an error; it is not
17354 useful during event reading.
17355 (Fdbus_register_signal): Signal an error if the check for
17356 FUNCTIONP fails.
17357 (Fdbus_register_method): New function. The implementation is not
17358 complete, the call of the function signals an error therefore.
17359 (Fdbus_unregister_object): New function, renamed from
17360 Fdbus_unregister_signal. The initial check signals an error, if
17361 the object is not well formed.
17362
173632007-12-30 Richard Stallman <rms@gnu.org>
17364
17365 * textprop.c (get_char_property_and_overlay):
17366 Signal error if POSITION is out of range in a buffer.
17367
173682007-12-29 Martin Rudalics <rudalics@gmx.at>
17369
17370 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17371 because the original parameters are in pure storage now.
17372
173732007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17374
17375 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17376
173772007-12-22 Eli Zaretskii <eliz@gnu.org>
17378
17379 * callint.c (syms_of_callint) <command-history>: Add reference to
17380 history-length in the doc string.
17381
173822007-12-17 Jason Rumney <jasonr@gnu.org>
17383
17384 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17385 before passing as wParam.
17386
173872007-12-22 Michael Albinus <michael.albinus@gmx.de>
17388
17389 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17390 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17391 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17392 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17393 as number.
17394 (Fdbus_call_method): Fix docstring.
17395
173962007-12-21 Michael Albinus <michael.albinus@gmx.de>
17397
17398 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17399 New macros.
17400 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17401 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17402 Simplify.
17403 (xd_signature): New function.
17404 (xd_append_arg): Compute also signatures. Major rewrite.
17405 (xd_retrieve_arg): Make debug messages friendly.
17406 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17407 Check for signatures of arguments.
17408
174092007-12-19 Michael Albinus <michael.albinus@gmx.de>
17410
17411 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17412 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17413 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17414 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17415 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17416 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17417 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17418 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17419 (xd_retrieve_value): Remove. Functionality included in ...
17420 (xd_append_arg): New function.
17421 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17422
174232007-12-16 Michael Albinus <michael.albinus@gmx.de>
17424
17425 * dbusbind.c (top): Include <stdio.h>.
17426 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17427 dbus_message_new_method_call and dbus_message_new_signal.
17428 (Fdbus_register_signal): Rename unique_name to uname.
17429 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17430 non-existing unique name. Fix typos in matching rule. Return an
17431 object which is useful in Fdbus_unregister_signal.
17432 (Fdbus_unregister_signal): Reimplementation, in order to remove
17433 only the corresponding entry.
17434 (Vdbus_registered_functions_table): Change the order of entries.
17435 Apply these changes in xd_read_message and Fdbus_register_signal.
17436
174372007-12-16 Andreas Schwab <schwab@suse.de>
17438
17439 * fileio.c (Finsert_file_contents): Fix overflow check to not
17440 depend on undefined integer overflow.
17441
174422007-12-14 Jason Rumney <jasonr@gnu.org>
17443
17444 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17445 for characters above 127.
17446
174472007-12-13 Jason Rumney <jasonr@gnu.org>
17448
17449 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17450 before dereferencing array.
17451 (lookup_vk_code): Remove zero comparison.
17452
174532007-12-14 Michael Albinus <michael.albinus@gmx.de>
17454
17455 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17456 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17457 Use `unsigned int' instead of `uint'.
17458 (xd_read_message, Fdbus_register_signal): Split expressions into
17459 multiple lines before operators "&&" and "||", according to the
17460 GNU Coding Standards.
17461
174622007-12-14 Eli Zaretskii <eliz@gnu.org>
17463
17464 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17465
174662007-12-12 Juri Linkov <juri@jurta.org>
17467
17468 * buffer.c (Frename_buffer): In interactive spec replace
17469 `read-buffer' with `read-string' that uses `buffer-name-history'
17470 as history, and the current buffer's name as default.
17471
174722007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17473
17474 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17475 manipulating the backtrace manually.
17476 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17477 (struct backtrace, backtrace_list): Remove.
17478 (command_loop_1): Remove dead var `no_direct'.
17479
17480 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17481 preserve non-built-in buffer-local variables.
17482 (Fkill_all_local_variables): Don't re-create&re-set permanent
17483 buffer-local variables.
17484
174852007-12-09 Juri Linkov <juri@jurta.org>
17486
17487 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17488 Lisp code that uses `read-buffer' with current buffer as default.
17489
174902007-12-08 Michael Albinus <michael.albinus@gmx.de>
17491
17492 * dbusbind.c (xd_read_message): Generate an event for every
17493 registered handler. There might be several handlers registered
17494 for the same signal.
17495 (Fdbus_register_signal): Don't overwrite a registration for the
17496 same signal. Add a new registration if handlers are different.
17497 (Vdbus_registered_functions_table): Rework doc string.
17498
174992007-12-07 Michael Albinus <michael.albinus@gmx.de>
17500
17501 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17502 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17503 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17504 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17505 Unify argument lists.
17506 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17507 arguments and hash table keys. Use unique name for service.
17508 (Fdbus_unregister_signal): Remove checks.
17509 (Vdbus_registered_functions_table): Fix doc string.
17510
175112007-12-05 Magnus Henoch <mange@freemail.hu>
17512
17513 * process.c (make_process): Initialize pty_flag to 0.
17514
175152007-12-05 Jason Rumney <jasonr@gnu.org>
17516
17517 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17518 specified XBMs.
17519
175202007-12-05 Richard Stallman <rms@gnu.org>
17521
17522 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17523
175242007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17525
17526 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17527 New variable.
17528 (mac_try_close_socket) [MAC_OSX]: New function.
17529 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17530 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17531
17532 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17533 Use mac_try_close_socket.
17534
175352007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17536
17537 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17538 reloc_base.
17539 (copy_dysymtab): Compute relocation base here.
17540 (rebase_reloc_address) [__ppc64__]: New function.
17541 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17542 changed.
17543
175442007-12-05 Jason Rumney <jasonr@gnu.org>
17545
17546 * w32proc.c (sys_spawnve): Quote args with wildcards.
17547
175482007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17549
17550 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17551 __objc_* sections.
17552 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17553
175542007-12-05 Michael Albinus <michael.albinus@gmx.de>
17555
17556 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17557 Move check for Vdbus_registered_functions_table to
17558 xd_read_queued_messages.
17559 (xd_read_queued_messages): Protect xd_read_message calls by
17560 internal_condition_case_1.
17561
175622007-12-04 Michael Albinus <michael.albinus@gmx.de>
17563
17564 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17565 Qdbus_system_bus and Qdbus_session_bus, respectively.
17566 (Vdbus_intern_symbols): Remove.
17567 (Vdbus_registered_functions_table): New hash table.
17568 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17569 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17570 Rewrite in order to manage registered functions by hash table
17571 Vdbus_registered_functions_table.
17572
175732007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17574
17575 * xterm.c: Update URL to Window Manager Specification in comment.
17576
175772007-12-02 Michael Albinus <michael.albinus@gmx.de>
17578
17579 * config.in (HAVE_DBUS): Add.
17580
17581 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17582 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17583 (obj): Add $(DBUS_OBJ).
17584 (LIBES): Add $(DBUS_LIBS).
17585 (dbusbind.o): New target.
17586
17587 * dbusbind.c: New file.
17588
17589 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17590
17591 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17592 (Qdbus_event): New Lisp symbol.
17593 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17594 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17595 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17596
17597 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17598
175992007-12-01 Richard Stallman <rms@gnu.org>
17600
17601 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17602
176032007-11-30 Jason Rumney <jasonr@gnu.org>
17604
17605 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17606 (w32con_reset_terminal_modes): Clear screen buffer.
17607 (w32_face_attributes): Don't use color indexes that are out of range.
17608 Only reverse the default colors.
17609
17610 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17611 WINDOWSNT.
17612
17613 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17614
176152007-11-29 Jason Rumney <jasonr@gnu.org>
17616
17617 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17618 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17619 if the terminal colors are initialized.
17620 (unspecified_fg, unspecified_bg): Remove unused declarations.
17621
176222007-11-29 Andreas Schwab <schwab@suse.de>
17623
17624 * keyboard.c (apply_modifiers): Fix typo.
17625
176262007-11-29 Richard Stallman <rms@gnu.org>
17627
17628 * keymap.c (Fcurrent_local_map): Doc fix.
17629
176302007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17631
17632 * s/gnu-kfreebsd.h: New file.
17633
176342007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17635
17636 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17637 Don't cast redundantly.
17638
17639 * keyboard.c (KEY_TO_CHAR): New macro.
17640 (parse_modifiers, apply_modifiers): Accept integer arguments.
17641 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17642 for chars and symbol keys.
17643 After doing such remapping, apply function-key-map again.
17644
176452007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17646
17647 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17648 compiled anymore.
17649
176502007-11-26 Andreas Schwab <schwab@suse.de>
17651
17652 * process.c (list_processes_1): Fix indentation level of the
17653 command column.
17654
176552007-11-23 Andreas Schwab <schwab@suse.de>
17656
17657 * editfns.c (Fformat): Handle %c specially since it requires the
17658 argument to be of type int.
17659
176602007-11-23 Markus Triska <markus.triska@gmx.at>
17661
17662 * emacs.c (main): Call init_editfns before init_process, since
17663 init_process sets Vprocess_connection_type depending on OS release.
17664
176652007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17666
17667 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17668 (find_symbol_value): Use do_symval_forwarding.
17669
17670 * data.c (set_internal): Set the value in the `cons-cell' (for
17671 Buffer_Local_values) not only for frame-local variables.
17672
176732007-11-22 Andreas Schwab <schwab@suse.de>
17674
17675 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17676 values to sprintf.
17677 * keymap.c (Fsingle_key_description): Likewise.
17678 * print.c (print_object): Likewise.
17679
176802007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17681
17682 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17683 file for image is nil.
17684
176852007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17686
17687 * term.c: Include stdarg.h.
17688 (fatal): Implement using varargs.
17689 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17690
176912007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17692
17693 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17694 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17695 Update call to buffer_slot_type_mismatch.
17696 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17697 (buffer_slot_type_mismatch): Update.
17698 * buffer.c (buffer_local_types): Remove.
17699 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17700 (defvar_per_buffer): Set the type in the buffer_objfwd.
17701
177022007-11-21 Jason Rumney <jasonr@gnu.org>
17703
17704 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17705 CreateFileMapping returns NULL on failure.
17706
177072007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17708
17709 * search.c (Fset_match_data): Remove the `evaporate' feature.
17710 (unwind_set_match_data): Don't use the `evaporate' feature.
17711
177122007-11-21 Jason Rumney <jasonr@gnu.org>
17713
17714 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17715
17716 * w32console.c (w32con_write_glyphs): Remove unused variables.
17717
177182007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17719
17720 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17721
17722 * s/darwin.h (MULTI_KBOARD): Remove.
17723
17724 * macfns.c (x_create_tip_frame, Fx_create_frame)
17725 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17726
177272007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17728
17729 * buffer.c (Fbuffer_local_value): Remove redundant test.
17730 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17731 than in `current-buffer' to match the comment.
17732 Do the swap using swap_in_global_binding.
17733
17734 * data.c (store_symval_forwarding, set_internal):
17735 * eval.c (specbind): Remove dead code.
17736
17737 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17738 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17739 Since we do not want to see internal Lisp_*fwd objects here.
17740
177412007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17742
17743 * sysdep.c (init_system_name): Use getaddrinfo if available.
17744
17745 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17746 (x_scroll_bar_note_movement): start, end, with, height in struct
17747 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17748
177492007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17750
17751 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17752
177532007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17754
17755 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17756 This undoes Richard's change of 14-Oct-2002.
17757
17758 * alloc.c (allocate_other_vector):
17759 * lisp.h (allocate_other_vector): Remove.
17760
17761 * window.c (struct save_window_data): Move non-lisp data to the end
17762 and make it `int' rather than Lisp_Object.
17763 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17764 Done wrap/unwrap integer values.
17765 (Fset_window_configuration, compare_window_configurations):
17766 Update use of fields to their new types.
17767
17768 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17769 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17770 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17771 (SET_SCROLL_BAR_X_WINDOW): Remove.
17772 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17773 Access the new x_window field directly.
17774 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17775 Don't wrap/unwrap integers into Lisp_Objects.
17776 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17777 (x_scroll_bar_report_motion):
17778 Don't wrap/unwrap integers into Lisp_Objects.
17779 (x_term_init): Use SDATA.
17780 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17781 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17782 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17783 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17784 * xfns.c (x_set_background_color):
17785 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17786 Access the new x_window field directly.
17787
17788 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17789 (allocate_pseudovector): Make non-static.
17790
17791 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17792 (allocate_pseudovector): Declare.
17793 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17794
177952007-11-15 Andreas Schwab <schwab@suse.de>
17796
17797 * editfns.c (Fformat): Correctly format EMACS_INT values.
17798 Also take precision into account when formatting an integer.
17799
17800 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17801
178022007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17803
17804 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17805 (syms_of_keyboard): Defsubr it.
17806
17807 * data.c (swap_in_global_binding): Fix longstanding bug where
17808 store_symval_forwarding was not called with the right second argument,
17809 thus causing objfwd-ing from being dropped.
17810
178112007-11-14 Juanma Barranquero <lekktu@gmail.com>
17812
17813 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17814 (Fx_display_pixel_height, Fx_display_planes)
17815 (Fx_display_color_cells, Fx_server_max_request_size)
17816 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17817 (Fx_display_visual_class, Fx_display_save_under):
17818 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17819 (Fx_display_pixel_height, Fx_display_planes)
17820 (Fx_display_color_cells, Fx_server_max_request_size)
17821 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17822 (Fx_display_mm_height, Fx_display_mm_width)
17823 (Fx_display_backing_store, Fx_display_visual_class)
17824 (Fw32_select_font, Fx_display_save_under):
17825 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17826 (Fx_display_pixel_height, Fx_display_planes)
17827 (Fx_display_color_cells, Fx_server_max_request_size)
17828 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17829 (Fx_display_save_under): Fix typos in docstrings.
17830
178312007-11-14 Juanma Barranquero <lekktu@gmail.com>
17832
17833 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17834 corresponding to deleted entries; they are an implementation detail.
17835 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17836 Remove variables.
17837 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17838 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17839 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17840 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17841 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17842 (Fw32_define_rgb_color, Fw32_load_color_file)
17843 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17844 Fix typos in docstrings.
17845 (Fx_server_version): Reflow docstring.
17846 (Fw32_shell_execute): Doc fixes.
17847
178482007-11-13 Juanma Barranquero <lekktu@gmail.com>
17849
17850 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17851 if w32_parse_hot_key returned nil.
17852
178532007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17854
17855 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17856
178572007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17858
aac0c6e3
MR
17859 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17860
17861 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17862
17863 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17864 Remove W32_SCROLL_BAR_CLICK_EVENT.
17865
17866 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17867 Add MULTIMEDIA_KEY_EVENT.
17868
17869 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17870 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17871 (make_lispy_event) [WINDOWSNT]: Use it to translate
17872 MULTIMEDIA_KEY_EVENT.
17873
17874 * w32term.h (WM_APPCOMMAND): Define if not already.
17875 (GET_APPCOMMAND_LPARAM): Likewise.
17876
17877 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17878 WM_APPCOMMAND.
17879
17880 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17881 (syms_of_w32fns): Export and initialize it.
17882 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17883
178842007-11-09 Chong Yidong <cyd@stupidchicken.com>
17885
17886 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17887 twice.
17888
17889 * xdisp.c (handle_face_prop): Fix last change.
17890
178912007-11-09 Richard Stallman <rms@gnu.org>
17892
17893 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17894 not just for after-strings and before-strings.
17895 Call face_for_overlay_string and pass the overlay to it.
17896 (handle_display_prop): Determine whether property came from an overlay.
17897 Pass OVERLAY arg to handle_single_display_spec.
17898 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17899 (load_overlay_strings): Fill in it->string_overlays.
17900 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17901
17902 * xfaces.c (face_for_overlay_string): Function renamed from
17903 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17904
17905 * dispextern.h (struct it): New elt string_overlays.
17906 New elt from_overlay, also in stack.
17907 Rearrange a few elements.
17908 (face_for_overlay_string): Decl renamed from
17909 face_at_buffer_position_no_overlays, and add argument.
17910
179112007-11-09 Richard Stallman <rms@gnu.org>
17912
17913 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17914 to get the base face for an overlay string.
17915
17916 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17917
17918 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17919
17920 * xdisp.c (handle_stop): Move some code out of loop.
17921
179222007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17923
17924 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17925 Fix conversion from Lisp object to ATSUFontID.
17926
179272007-11-09 Jason Rumney <jasonr@gnu.org>
17928
17929 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17930
179312007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17932
17933 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17934 Don't assume regions are aligned to page boundary.
17935 (print_load_command_name): Add LC_UUID if defined.
17936
179372007-11-09 Richard Stallman <rms@gnu.org>
17938
17939 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17940
179412007-11-07 Jason Rumney <jasonr@gnu.org>
17942
17943 * s/windows95.h: Remove.
17944
179452007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17946
17947 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17948 abort with a message on unhandled store_type values.
17949
179502007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17951
17952 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17953 Remove HAVE_X11R5 and HAVE_X11R4.
17954
179552007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17956
17957 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17958
179592007-11-01 Johan Bockgård <bojohan@gnu.org>
17960
17961 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17962 Don't set s->stippled_p here, since it has already been set by
17963 x_set_glyph_string_gc from x_draw_glyph_string.
17964
179652007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17966
17967 * sunfns.c: Remove file.
17968
17969 * m/sun386.h:
17970 * m/sun2.h:
17971 * m/sparc.h: Remove Sun windows code.
17972
179732007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17974
17975 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17976 (init_keyboard): Set current_kboard's window-system to nil.
17977 (tty_read_avail_input): Typo.
17978 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17979
179802007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17981
17982 * s/usg5-4.h:
17983 * s/usg5-3.h:
17984 * s/ptx.h:
17985 * m/is386.h:
17986 * m/ibmps2-aix.h:
17987 * Makefile.in: Remove all mentions of X10.
17988
17989 * dispnew.c (syms_of_display): Don't mention version 10.
17990
179912007-10-28 Juanma Barranquero <lekktu@gmail.com>
17992
17993 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17994 ($(BLD)/abbrev.$(O)): Remove.
17995
179962007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17997
17998 Rewrite abbrev.c in Elisp.
17999 * image.c (Qcount): Don't declare as extern.
18000 (syms_of_image): Initialize and staticpro `Qcount'.
18001 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18002 * emacs.c (main): Don't call syms_of_abbrev.
18003 * Makefile.in (obj): Remove abbrev.o.
18004 (abbrev.o): Remove.
18005 * abbrev.c: Remove.
18006
180072007-10-26 Martin Rudalics <rudalics@gmx.at>
18008
18009 * window.c (window_min_size_2): Don't count header-line.
18010
180112007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18012
18013 * frame.h (struct frame): Move all bit fields after the first bit
18014 field to take advantage of the available space. Group all the
18015 chars together to reduce wasted space due to padding.
18016
180172007-10-26 Juanma Barranquero <lekktu@gmail.com>
18018
18019 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18020
18021 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18022 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18023 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18024 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18025 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18026 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18027 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18028 (last_marked, mark_object_loop_halt): Make static.
18029
18030 * frame.c (syms_of_frame) <delete-frame-functions>:
18031 Fix typo in docstring.
18032
180332007-10-25 Juanma Barranquero <lekktu@gmail.com>
18034
18035 * w32.c (init_environment): Fix tiny memory leak.
18036 (w32_get_resource): Remove unused variable `ok'.
18037
180382007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18039
18040 Make `window-system' into a keyboard-local variable (rather than
18041 frame-local as done originally by multi-tty).
18042
18043 * keyboard.h (struct kboard): Add Vwindow_system.
18044 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18045 (mark_kboards): Mark Vwindow_system.
18046
18047 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18048 (init_display): Don't set the obsolete `window-system' frame-param.
18049
18050 * xterm.c (x_term_init):
18051 * w32term.c (w32_create_terminal):
18052 * term.c (init_tty): Set Vwindow_system.
18053 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18054 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18055
18056 * xfns.c (Fx_create_frame, x_create_tip_frame):
18057 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18058 * macfns.c (Fx_create_frame):
18059 Don't set the obsolete `window-system' frame-param.
18060
18061 * frame.h (Qwindow_system): Remove.
18062 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18063 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18064
180652007-10-24 Richard Stallman <rms@gnu.org>
18066
18067 * frame.c (x_figure_window_size): For fullscreen case,
18068 set USPosition | PPosition without clobbering rest of window_prompting.
18069
18070 * keyboard.c (Fcurrent_idle_time): Doc fix.
18071
18072 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18073
180742007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18075
18076 * process.c (unwind_request_sigio): Only define if __ultrix__.
18077
18078 * callproc.c (child_setup): Remove spurious *.
18079
18080 * lisp.h (Fget_text_property): Declare.
18081 (have_menus_p): Declare it here rather than in sys-dep header files.
18082 * macterm.h (have_menus_p):
18083 * msdos.h (have_menus_p):
18084 * xterm.h (have_menus_p): Remove.
18085
18086 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18087 (Fmake_variable_frame_local): Just check the variable's const-ness
18088 rather than checking nil or t.
18089
180902007-10-22 Jason Rumney <jasonr@gnu.org>
18091
18092 * w32fns.c: Include math.h.
18093 (w32_abort): Declaration moved to nt/config.nt.
18094
18095 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18096 (abort): Redefinition moved to nt/config.nt.
18097
18098 * m/windowsnt.h: Remove.
18099
181002007-10-22 Juanma Barranquero <lekktu@gmail.com>
18101
18102 * emacs.c (Fdump_emacs): Fix typo in message.
18103 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18104 <installation-directory>: Reflow docstring.
18105
181062007-10-22 Juri Linkov <juri@jurta.org>
18107
18108 * minibuf.c: Allow minibuffer default to be a list of default values.
18109 With empty input use the first element of this list as returned default.
18110 (string_to_object)
18111 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18112 (read_minibuf): If defalt is cons, set histstring to its car.
18113 (Fread_string): If default_value is cons, set val to its car.
18114 (Fread_buffer): If def is cons, use its car.
18115 (Fcompleting_read): If defalt is cons, set val to its car.
18116
181172007-10-21 Michael Albinus <michael.albinus@gmx.de>
18118
18119 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18120
181212007-10-20 Juanma Barranquero <lekktu@gmail.com>
18122
18123 * doc.c (Fdocumentation): Check for advice in all cases.
18124
181252007-10-19 Chong Yidong <cyd@stupidchicken.com>
18126
18127 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18128
181292007-10-19 Richard Stallman <rms@gnu.org>
18130
18131 * doc.c (Fdocumentation): Check for and handle an advised function.
18132
181332007-10-19 Juanma Barranquero <lekktu@gmail.com>
18134
18135 * process.c (Fset_process_filter): Doc fix.
18136
181372007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18138
18139 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18140 which caused key-translation-map to applied repeatedly (thus breaking
18141 double-mode).
18142
181432007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18144
18145 * xselect.c (x_own_selection, x_handle_selection_clear)
18146 (x_clear_frame_selections):
18147 * w32menu.c (list_of_panes, list_of_items):
18148 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18149 * textprop.c (validate_plist, interval_has_all_properties)
18150 (interval_has_some_properties, interval_has_some_properties_list)
18151 (add_properties, text_property_list):
18152 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18153 * minibuf.c (Fassoc_string):
18154 * macselect.c (x_own_selection, x_clear_frame_selections)
18155 (Fx_disown_selection_internal):
18156 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18157 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18158
181592007-10-17 Chong Yidong <cyd@stupidchicken.com>
18160
18161 * process.c: Link to libs for calling res_init() if available.
18162 (Fmake_network_process): Call res_init() before getaddrinfo or
18163 gethostbyname, if possible.
18164
181652007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18166
18167 * lread.c (read1): Set pvectype for char_tables.
18168
18169 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18170 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18171 Add type checks.
18172 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18173
18174 * alloc.c (free_misc): Use XMISCTYPE.
18175 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18176
181772007-10-17 Glenn Morris <rgm@gnu.org>
18178
18179 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18180 (syms_of_minibuf): Add Qcompletion_ignore_case.
18181 * dired.c (Qcompletion_ignore_case): Change to external.
18182 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18183 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18184 (Fread_file_name): Use it rather than intern'ing.
18185
18186 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18187 (Fread_coding_system): Ignore case of user input.
18188
181892007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18190
18191 * xdisp.c (handle_display_prop): Ignore display specs after
18192 replacing one when string text is being replaced.
18193 (handle_single_display_spec): Pretend as if characters with display
18194 property haven't been consumed only when buffer text is being replaced.
18195
181962007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18197
18198 * xfns.c (Fx_create_frame, Fx_display_list):
18199 * window.c (window_fixed_size_p, enlarge_window)
18200 (shrink_window_lowest_first):
18201 * macterm.c (init_font_name_table):
18202 * macfns.c (Fx_create_frame, Fx_display_list):
18203 * lread.c (close_load_descs):
18204 * keyboard.c (read_char_x_menu_prompt):
18205 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18206 * coding.c (code_convert_region_unwind): Test the type of an object
18207 rather than just !NILP before extracting data from it.
18208
18209 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18210
18211 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18212 (XMISCANY): New macro.
18213 (XMISCTYPE): Use it.
18214 (struct Lisp_Misc_Any): New type.
18215 (union Lisp_Misc): Use it.
18216 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18217 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18218 (find_symbol_value, set_internal, default_value, Fset_default)
18219 (Fmake_variable_buffer_local, Fmake_local_variable)
18220 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18221 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18222 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18223 * alloc.c (allocate_buffer): Set the size and tag.
18224 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18225 Use XMISCANY.
18226 (die): Follow the GNU convention for error messages.
18227 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18228 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18229 tag any more.
18230 (set_buffer_internal_1):
18231 * frame.c (store_frame_param):
18232 * eval.c (specbind):
18233 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18234
18235 * doc.c (Fsnarf_documentation): Simplify.
18236
182372007-10-14 Juanma Barranquero <lekktu@gmail.com>
18238
18239 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18240 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18241
182422007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18243
18244 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18245
182462007-10-14 Juanma Barranquero <lekktu@gmail.com>
18247
18248 * eval.c (do_autoload): Don't save autoloads.
18249
18250 * data.c (Ffset): Save autoload of the function being set.
18251
182522007-10-07 John Paul Wallington <jpw@pobox.com>
18253
18254 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18255 parameter before setting up faces.
18256
182572007-10-13 Eli Zaretskii <eliz@gnu.org>
18258
18259 * ccl.c (Fregister_code_conversion_map):
18260 * keyboard.c (append_tool_bar_item): Reformat last change.
18261
18262 * lisp.h (eabs): Rename from `abs'. All callers changed.
18263
182642007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18265
18266 * buffer.c (add_overlay_mod_hooklist):
18267 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18268 * fontset.c (make_fontset):
18269 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18270 (append_tool_bar_item):
18271 * macmenu.c (grow_menu_items):
18272 * w32menu.c (grow_menu_items):
18273 * xmenu.c (grow_menu_items): Use larger_vector.
18274
182752007-10-13 Eli Zaretskii <eliz@gnu.org>
18276
18277 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18278 selected frame'' on MSDOS).
18279
182802007-10-12 Martin Rudalics <rudalics@gmx.at>
18281
18282 * frame.c (Qexplicit_name): New variable.
18283 (x_report_frame_params): Report it in parameter alist.
18284 (syms_of_frame): Intern and staticpro it.
18285
182862007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18287
18288 * macfns.c (x_create_tip_frame): Set terminal for frame.
18289
182902007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18291
18292 * frame.c (Qenvironment): Remove.
18293 (syms_of_frame) <Qenvironment>: Don't initialize.
18294 (Fdelete_frame): Don't treat the `environment' param specially.
18295 * frame.h (Qenvironment): Don't declare.
18296 * callproc.c (set_initial_environment): Don't set unused frame param.
18297
18298 * frame.c (Fframe_with_environment): Remove.
18299 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18300
18301 * lisp.h (Fframe_with_environment): Don't declare.
18302
183032007-10-10 Juanma Barranquero <lekktu@gmail.com>
18304
18305 * indent.c (indent_tabs_mode, last_known_column)
18306 (last_known_column_modified): Make static.
18307 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18308
183092007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18310
18311 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18312
183132007-10-09 Jason Rumney <jasonr@gnu.org>
18314
18315 * w32term.c (x_set_window_size): Disable code that attempts to tell
18316 Lisp code about a size change before it actually happens.
18317
183182007-10-09 Richard Stallman <rms@gnu.org>
18319
18320 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18321 return HANDLED_RETURN.
18322
183232007-10-08 Martin Rudalics <rudalics@gmx.at>
18324
18325 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18326 when there's an unread command event.
18327
18328 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18329 window autoselection act appropriately when leaving selected frame.
18330 (syms_of_frame): Initialize focus_follows_mouse.
18331 * frame.h (focus_follows_mouse): Extern it.
18332 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18333 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18334 * msdos.c (dos_rawgetc): Likewise.
18335 * w32term.c (w32_read_socket): Likewise.
18336 * xterm.c (handle_one_xevent): Likewise.
18337 * xdisp.c (syms_of_xdisp): In doc-string of
18338 mouse-autoselect-window mention focus-follows-mouse.
18339
183402007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18341
18342 * macterm.c (mac_load_query_font): Fix missing return value.
18343 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18344 Add BLOCK_INPUT.
18345
183462007-10-08 Richard Stallman <rms@gnu.org>
18347
18348 * xdisp.c (get_window_cursor_type): Implement documented behavior
18349 for cursor-in-non-selected-windows = t.
18350
183512007-10-08 Jason Rumney <jasonr@gnu.org>
18352
18353 * w32.c (w32_get_resource): Always close registry keys.
18354
183552007-10-08 Jason Rumney <jasonr@gnu.org>
18356
18357 * makefile.w32-in (LIBS): Add COMCTL32.
18358
18359 * w32fns.c (globals_of_w32fns): Init common controls.
18360
183612007-10-08 Richard Stallman <rms@gnu.org>
18362
18363 * image.c (our_memory_buffer): Rename from omfib_buffer.
18364
183652007-10-08 Richard Stallman <rms@gnu.org>
18366
18367 * buffer.c (Foverlays_at): Doc fix.
18368
183692007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18370
18371 * fns.c (Fplist_put): Preserve uneven tail data.
18372
183732007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18374
18375 * termhooks.h (enum event_kind): Remove trailing comma.
18376
18377 * frame.h (enum): Remove trailing comma.
18378
183792007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18380
18381 * w32proc.c (delete_child): Don't terminate threads of zombies.
18382
183832007-10-08 Martin Rudalics <rudalics@gmx.at>
18384
18385 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18386
18387 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18388 last-repeatable-command.
18389 (init_kboard): Initialize Vlast_repeatable_command.
18390 (command_loop_1): Set it to real_this_command unless that was
18391 bound to an input event.
18392 (mark_kboards): Mark it.
18393
183942007-10-08 Richard Stallman <rms@gnu.org>
18395
18396 * eval.c (condition-case): Doc fix.
18397
183982007-10-08 Masatake YAMATO <jet@gyve.org>
18399
18400 * xfaces.c (tty_supports_face_attributes_p): Fix code
18401 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18402 was copied and not edited.
18403
184042007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18405
18406 Add new `input-decode-map' keymap and use it for terminal
18407 escape sequences.
18408 * keyboard.h (struct kboard): Add Vinput_decode_map.
18409 Remove Vlocal_key_translation_map.
18410 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18411 (init_kboard): Init input-decode-map.
18412 Replace local-key-translation-map back with key-translation-map.
18413 (syms_of_keyboard): Declare input-decode-map.
18414 Remove local-key-translation-map. Update docstrings.
18415 (mark_kboards): Mark Vinput_decode_map.
18416 Don't mark Vlocal_key_translation_map.
18417 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18418 Replace local-key-translation-map back with key-translation-map.
18419 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18420 Bind in input-decode-map rather than function-key-map.
18421
18422 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18423 This was made redundant by the previous introduction of XSETPVECTYPE.
18424
184252007-10-09 Richard Stallman <rms@gnu.org>
18426
18427 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18428
184292007-09-29 Richard Stallman <rms@gnu.org>
18430
18431 * eval.c (internal_condition_case_2, internal_condition_case_1)
18432 (internal_condition_case): Reenable abort if x_catching_errors ()
18433 to see if that really happens and why.
18434
184352007-10-06 Andreas Schwab <schwab@suse.de>
18436
18437 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18438
184392007-10-04 Juanma Barranquero <lekktu@gmail.com>
18440
18441 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18442
184432007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18444
18445 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18446
184472007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18448
18449 * window.h (struct window):
18450 * window.c (struct save_window_data, struct saved_window):
18451 * termhooks.h (struct terminal):
18452 * process.h (struct Lisp_Process):
18453 * frame.h (struct frame):
18454 * buffer.h (struct buffer):
18455 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18456 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18457 The size field of (pseudo)vectors is now unsigned.
18458 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18459
18460 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18461 Turn `count' into an integer.
18462
18463 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18464 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18465 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18466 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18467 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18468
18469 * alloc.c (allocate_pseudovector): New fun.
18470 (ALLOCATE_PSEUDOVECTOR): New macro.
18471 (allocate_window, allocate_terminal, allocate_frame)
18472 (allocate_process): Use it.
18473 (mark_vectorlike): New function.
18474 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18475 (mark_terminals): Use it.
18476 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18477 (Fmake_byte_code): Use XSETPVECTYPE.
18478
18479 * frame.c (Fframe_parameters): Minor simplification.
18480
18481 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18482
18483 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18484
18485 * buffer.c (Fget_buffer_create, init_buffer_once):
18486 * lread.c (defsubr):
18487 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18488
18489 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18490 defined differently in the m/*.h files.
18491 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18492 (XSETPVECTYPE): New macro.
18493 (XSETPSEUDOVECTOR): Use it.
18494
18495 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18496 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18497
18498 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18499 * lread.c (defvar_per_buffer):
18500 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18501
18502 * window.c (candidate_window_p): Only consider as visible frames that
18503 are on the same terminal.
18504
18505 * m/ibms390x.h (MARKBIT): Remove unused macro.
18506
185072007-10-01 Juanma Barranquero <lekktu@gmail.com>
18508
18509 * lread.c (Fload): Fix typo in docstring.
18510
185112007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18512
18513 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18514 of a non-zero value can't yield zero.
18515
185162007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18517
18518 * term.c (term_clear_mouse_face, term_mouse_highlight)
18519 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18520
18521 * print.c (safe_debug_print): Use XHASH.
18522
18523 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18524 Lisp elements such as tags.
18525 (XHASH): New macro.
18526 (EQ): Use it.
18527 (SREF, SSET, STRING_COPYIN): Use SDATA.
18528 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18529
18530 * alloc.c (mark_terminal): Remove left-over declaration.
18531 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18532 (allocate_vectorlike): Remove type argument. Adjust callers.
18533 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18534 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18535
18536 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18537 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18538 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18539 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18540 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18541 Use them.
18542
18543 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18544 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18545 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18546
185472007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18548
18549 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18550 loaded by default.
18551
185522007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18553
18554 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18555 on this tty.
18556 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18557
18558 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18559 Update all users.
18560 (handle_one_term_event): Use Gpm_DrawPointer.
18561 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18562 Signal errors instead of returning nil. Always return nil.
18563 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18564 Make it a noop if gpm-mouse was not activated.
18565 (syms_of_term): Update names.
18566
185672007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18568
18569 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18570 (init_sys_modes): Check that gpm_tty is the current tty.
18571
18572 * alloc.c (allocate_terminal): Set the vector size to only count the
18573 lisp fields. Initialize those to nil.
18574 (mark_object): Don't treat terminals specially.
18575 (mark_terminal): Remove.
18576 (mark_terminals): Use mark_object instead.
18577
18578 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18579 the GC to the beginning.
18580
18581 * indent.h:
18582 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18583
18584 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18585
185862007-09-25 Jason Rumney <jasonr@gnu.org>
18587
18588 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18589
18590 * w32console.c (create_w32cons_output): Remove.
18591
18592 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18593
18594 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18595 (reset_sys_modes): Use reset_terminal_modes_hook.
18596
185972007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18598
18599 * eval.c (do_autoload): Don't output any message.
18600
186012007-09-24 Juri Linkov <juri@jurta.org>
18602
18603 * emacs.c (standard_args): Change priority of "--no-splash"
18604 from 40 to 3. Add "--no-desktop" with the same priority.
18605
186062007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18607
18608 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18609 and optimize the case where they are all 1.
18610
186112007-09-23 Johannes Weiner <hannes@saeurebad.de>
18612
18613 * lisp.h (abs): Define if not defined.
18614 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18615 Don't define `abs', since it's defined in lisp.h.
18616
186172007-09-22 Eli Zaretskii <eliz@gnu.org>
18618
18619 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18620 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18621 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18622 (init_tty): Use DEV_TTY instead of "/dev/tty".
18623 [WINDOWSNT]: No need to protect from NAME arg being null.
18624
186252007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18626
18627 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18628 up the tty state.
18629
186302007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18631
18632 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18633 (gpm_tty): Change its type.
18634 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18635 (gpm_tty): Change its type and initialize it.
18636 (Fterm_open_connection): Check the frame is indeed a tty.
18637 Use the new gpm_tty.
18638 (Fterm_close_connection): Use the new gpm_tty.
18639 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18640 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18641
186422007-09-21 Juanma Barranquero <lekktu@gmail.com>
18643
18644 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18645 underline_color, to draw strike-through.
18646
186472007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18648
18649 * lisp.h (allocate_terminal): Declare.
18650
18651 * window.c (candidate_window_p): Consider frames that are being placed
18652 by the user as somewhere between visible and iconified.
18653 (window_loop): Prefer windows on the current frame.
18654 (Fselect_window): Move the use of select-frame to the beginning so we
18655 can just delegate all the work (it'll call us back anyway).
18656
18657 * frame.c (Qdisplay_environment_variable):
18658 * frame.h (Qdisplay_environment_variable): Delete.
18659
18660 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18661 of the first arg, since that value may be a union.
18662
18663 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18664 parameter rather than Qdisplay_environment_variable. If all else
18665 fails, look for DISPLAY in initial-environment.
18666
186672007-09-21 Glenn Morris <rgm@gnu.org>
18668
18669 * Makefile.in (emacstool): Remove target.
18670 (lisp, shortlisp): Remove termdev.elc.
18671
186722007-09-21 Markus Triska <markus.triska@gmx.at>
18673
18674 * xterm.c (x_delete_display): Compile session management conditionally.
18675
186762007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18677
18678 * callproc.c (getenv_internal_1): New function.
18679 (getenv_internal): Use it.
18680 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18681
18682 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18683 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18684 (Fset_terminal_parameter): Work with dead terminals as well.
18685 (Fmodify_terminal_parameters): Remove.
18686
18687 * terminal.c (get_terminal): Handle terminals.
18688 Make sure the terminal returned is live.
18689 (create_terminal): Use allocate_terminal.
18690 (mark_terminals): Move to alloc.c.
18691 (delete_terminal): Use terminal->name as liveness status.
18692 NULL out fields after freeing their contents.
18693 Don't deallocate the object.
18694 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18695 rather than an int.
18696 (Fterminal_live_p): Accept non-integer arguments.
18697 (Fterminal_list): Return terminal objects rather than an ints.
18698
18699 * alloc.c (enum mem_type): New member for `terminal' objects.
18700 (allocate_terminal): New function.
18701 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18702 Handle terminals.
18703 (mark_terminal): New fun.
18704 (mark_terminals): Move from terminal.c.
18705
18706 * term.c (get_tty_terminal): Don't treat output_initial specially.
18707 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18708 (delete_tty): Use terminal->name as liveness status.
18709
18710 * termhooks.h (struct terminal): Make it into a pseudovector.
18711 Remove `deleted' replaced by checking `name's nullness.
18712
18713 * print.c (print_object): Handle terminals.
18714
18715 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18716 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18717
18718 * frame.c (make_terminal_frame):
18719 * keyboard.c (tty_read_avail_input):
18720 * w32term.c (x_delete_terminal):
18721 * xfns.c (Fx_create_frame, x_create_tip_frame):
18722 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18723
187242007-09-20 Glenn Morris <rgm@gnu.org>
18725
18726 * process.c (Fmake_network_process): Doc fix.
18727
187282007-09-19 Jason Rumney <jasonr@gnu.org>
18729
18730 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18731
187322007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18733
18734 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18735 Fix a C warning regarding variable constness.
18736
18737 * xterm.c (handle_one_xevent): Fix a C warning.
18738
187392007-09-18 Jason Rumney <jasonr@gnu.org>
18740
18741 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18742
187432007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18744
18745 * gtkutil.c (gdpy_def): New variable.
18746 (xg_initialize): Initialize gdpy_def.
18747 (xg_display_close): If no other display exists, set gdpy_def to a
18748 new connection.
18749
187502007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18751
18752 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18753 when we have no file name for the icon.
18754 (xg_tool_bar_expose_callback): Remove.
18755 (xg_create_tool_bar): Don't connect expose signal to
18756 xg_tool_bar_expose_callback.
18757 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18758
187592007-09-16 Andreas Schwab <schwab@suse.de>
18760
18761 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18762 values instead of zapping them.
18763
187642007-09-14 Glenn Morris <rgm@gnu.org>
18765
18766 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18767 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18768 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18769 scope and rename to omfib_buffer for clarity.
18770 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18771
187722007-09-14 Kenichi Handa <handa@m17n.org>
18773
18774 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18775
187762007-09-13 Jason Rumney <jasonr@gnu.org>
18777
18778 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18779
18780 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18781
18782 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18783 (mac_term_init): Call here instead, passing rif.
18784
187852007-09-13 Glenn Morris <rgm@gnu.org>
18786
18787 * s/hpux.h: No longer define `static' as nothing.
18788
187892007-09-13 Johan Bockgård <bojohan@gnu.org>
18790
18791 * callint.c (Fcall_interactively): Remove unused var `fun'.
18792
187932007-09-12 Romain Francoise <romain@orebokech.com>
18794
18795 * window.c (prefer_window_split_horizontally, display_buffer):
18796 Revert 2007-09-08 change.
18797
187982007-09-12 Glenn Morris <rgm@gnu.org>
18799
18800 * alloca.c: Remove file.
18801 * Makefile.in (alloca): Do not undef.
18802 (allocaobj, alloca.o): Remove.
18803 (otherobj): Remove allocaobj.
18804 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18805 * regex.c (C_ALLOCA): Remove all references and code that was only
18806 used when this was defined.
18807 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18808 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18809 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18810
18811 * Makefile.in (SOURCES, unlock, relock): Delete.
18812
18813 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18814 (menu_grab_callback): All uses changed.
18815
18816 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18817 (x_reply_selection_request): All uses changed.
18818
188192007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18820
18821 * lread.c (load_warn_old_style_backquotes): Change message to look
18822 better when it appears in the middle of byte-compiler messages.
18823
188242007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18825
18826 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18827
18828 * xterm.c (x_create_terminal): Add comment.
18829
18830 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18831
188322007-09-10 Richard Stallman <rms@gnu.org>
18833
18834 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18835
188362007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18837
18838 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18839 (DEFUN): Document `intspec', use it instead of `prompt'.
18840
18841 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18842
18843 * data.c (Finteractive_form): If the interactive specification starts
18844 with a `(', use it as a Lisp form.
18845
18846 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18847 name and file modes.
18848
18849 * callint.c (Fcall_interactively): Comment fixes.
18850
188512007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18852
18853 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18854 and compiled functions.
18855
188562007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18857
18858 * window.c (prefer_window_split_horizontally): New variable.
18859 (display_buffer): Consider splitting window horizontally depending
18860 on prefer_window_split_horizontally.
18861
188622007-09-08 Eli Zaretskii <eliz@gnu.org>
18863
18864 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18865
188662007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18867
18868 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18869
18870 * frame.c (x_set_frame_parameters): Check number is positive before
18871 using XFASTINT.
18872
18873 * window.c (freeze_window_start): Don't presume selected_window holds
18874 a window object.
18875 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18876
188772007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18878
18879 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18880
188812007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18882
18883 * window.c (Vsplit_window_preferred_function): New var.
18884 (Fdisplay_buffer): Use it.
18885 (syms_of_window): Export, and initialize it.
18886
188872007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18888
18889 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18890
188912007-09-06 Glenn Morris <rgm@gnu.org>
18892
18893 * gtkutil.c (menu_grab_callback) <cnt>:
18894 * xselect.c (x_reply_selection_request) <cnt>: Move static
18895 variable to file scope.
18896
188972007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18898
18899 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18900 consistent values of selected_frame and selected_window.
18901
189022007-09-04 Jason Rumney <jasonr@gnu.org>
18903
18904 * w32console.c (initialize_w32_display): Zero unused hooks.
18905
189062007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18907
18908 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18909 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18910
189112007-09-04 Jason Rumney <jasonr@gnu.org>
18912
18913 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18914 in w32console.c. Set up input. Remove XXX comments that have been
18915 confirmed as correct.
18916
18917 * s/ms-w32.h (MULTI_KBOARD): Define.
18918
18919 * w32console.c (one_and_only_w32cons): Remove.
18920 (initialize_w32_display): Take terminal argument.
18921
18922 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18923 initialize_w32_display.
18924 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18925
18926 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18927
18928 * keyboard.c (discard_mouse_events): Discard it.
18929 (make_lispy_event): Translate it to a lisp event.
18930 (lispy_wheel_names): Add wheel-left and right events.
18931 (syms_of_keyboard): Enlarge wheel_syms.
18932
18933 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18934 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18935
18936 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18937
18938 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18939 from WM_MOUSEHWHEEL.
18940 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18941
18942 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18943 terminal.
18944
18945 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18946 keyboard for the terminal.
18947
189482007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18949
18950 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18951 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18952 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18953 and resume-tty-function to resume-tty-hook.
18954 (Fsuspend_tty, Fresume_tty): Use new names.
18955
189562007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18957
18958 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18959 if it starts with "n:".
18960
189612007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18962
18963 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18964
189652007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18966
18967 * frame.h:
18968 * frame.c (Qterm_environment_variable): Remove.
18969 (syms_of_frame): Don't init and staticpro it.
18970
18971 * callproc.c (getenv_internal): Remove special case for $TERM.
18972
18973 * callproc.c (Vinitial_environment): New variable.
18974 (set_initial_environment): Initialize it.
18975 (syms_of_callproc): Declare it.
18976 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18977 TERM under which a process runs is never related to the TERM in which
18978 Emacs is running.
18979
189802007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18981
18982 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18983 * s/darwin.h: ... do it here.
18984
189852007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18986
18987 * lisp.h (set_initial_environment): Rename from set_global_environment.
18988
18989 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18990 removed by mistake on the multi-tty branch.
18991
18992 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18993 (Fmodify_frame_parameters): Return a value.
18994
18995 * image.c (png_load): Comment-out var only used in commented-out code.
18996
18997 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18998 before passing it to mark_object.
18999
19000 * xfaces.c (internal_resolve_face_name): Return a value.
19001 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19002
19003 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19004 (x_icon): Comment-out var only used in commented-out code.
19005
190062007-08-29 Romain Francoise <romain@orebokech.com>
19007
19008 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19009 QUIT hasn't been provided.
19010
190112007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19012
19013 * callproc.c (child_setup, getenv_internal): Use the
19014 display-environment-variable and term-environment-variable frame params.
19015 (set_initial_environment): Initialise Vprocess_environment.
19016
19017 * config.in: Disable multi-keyboard support on a mac.
19018
19019 * frame.c (Qterm_environment_variable)
19020 (Qdisplay_environment_variable): New variables.
19021 (syms_of_frame): Intern and staticpro them.
19022 (Fmake_terminal_frame): Disable output method test.
19023
19024 * frame.h: Declare them here.
19025
19026 * macfns.c (x_set_mouse_color): Get rif from the frame.
19027 (x_set_tool_bar_lines): Don't use updating_frame.
19028 (mac_window): Add 2 new parameters for consistency with other systems.
19029 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19030 frame parameters following what is done in X11 and w32. Don't use
19031 FRAME_MAC_DISPLAY_INFO.
19032 (Fx_open_connection, start_hourglass): Remove window-system check.
19033 (x_create_tip_frame): Get the keyboard from the terminal.
19034
19035 * macmenu.c: Reorder includes.
19036 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19037
19038 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19039 terminal parameter.
19040 (x_clear_frame): Add a frame parameter.
19041 (note_mouse_movement): Get rif from the frame.
19042 (mac_term_init): Initialize the terminal.
19043 (mac_initialize): Make static and move terminal initialization ...
19044 (mac_create_terminal): ... to this new function.
19045
19046 * macterm.h (struct mac_display_info): Add terminal.
19047 (mac_initialize): Delete declaration.
19048
19049 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19050
19051 * sysdep.c: Comment out text after #endif.
19052
19053 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19054 is defined. Better initialize ttys in windows. Use terminal
19055 specific mouse_position_hook.
19056
19057 * termhooks.h (union display_info): Add mac_display_info.
19058
19059 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19060 Set the default minibuffer frame, window_system and the rest of the
19061 frame parameters following what is done in X11.
19062
19063 * w32term.c (w32_initialize): Make static.
19064
19065 * xselect.c (x_handle_selection_clear): Only access
19066 terminal->kboard when MULTI_KBOARD is defined.
19067
19068 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19069 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19070
190712007-08-29 Jason Rumney <jasonr@gnu.org>
19072
19073 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19074 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19075
19076 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19077 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19078
19079 * keyboard.c (restore_kboard_configuration): Only define when
19080 MULTI_KBOARD defined.
19081
19082 * makefile.w32-in: Update dependancies from Makefile.in.
19083 (OBJ1): Add terminal.$(O)
19084
19085 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19086 Don't define function body.
19087 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19088
19089 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19090
19091 * w32.c (request_sigio, unrequest_sigio): Remove.
19092
19093 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19094 (w32con_clear_frame, w32con_clear_end_of_line)
19095 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19096 (w32con_delete_glyphs, w32con_set_terminal_window)
19097 (scroll_line, w32_sys_ring_bell): Add frame arg.
19098 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19099 Add terminal arg.
19100 (PICK_FRAME): Remove.
19101 (w32con_write_glyphs): Use frame specific terminal coding.
19102 (one_and_only_w32cons): New global variable.
19103 (initialize_w32_display): Use it for storing hooks.
19104 (create_w32cons_output): New function.
19105
19106 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19107 arg a frame.
19108
19109 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19110 Set window_system.
19111 (x_set_tool_bar_lines): Don't use updating_frame.
19112 (Fx_create_frame): Set terminal and ref count.
19113 (Fx_open_connection): Remove window-system check.
19114
19115 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19116
19117 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19118 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19119 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19120 Add frame arg.
19121 (x_delete_terminal, w32_create_terminal): New functions.
19122 (w32_term_init): Create a terminal.
19123 (w32_initialize): Move terminal specific initialization to
19124 w32_create_terminal.
19125
19126 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19127 (w32_clear_rect, w32_clear_area): Use background from frame.
19128 (w32_display_info): Add terminal.
19129 (w32_sys_ring_bell, x_delete_display): Declare here.
19130
19131 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19132
19133 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19134
191352007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19136
19137 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19138 Fix get_named_tty calls for the controlling tty.
19139
191402007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19141
19142 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19143
191442007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19145
19146 * term.c (tty_insert_glyphs): Add missing first parameter.
19147
191482007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19149
19150 * buffer.c (Fbuffer_list, Fbury_buffer):
19151 Take frame->buried_buffer_list into account.
19152
19153 * cm.c (current_tty): New variable, for cmputc().
19154 (cmputc): Use it.
19155 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19156 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19157 (cmgoto): Add tty parameter. Pass it on to calccost().
19158 Use emacs_tputs() instead of tputs().
19159
19160 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19161 tputs().
19162 (current_tty): New variable, for cmputc().
19163 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19164
19165 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19166 (internal_condition_case, internal_condition_case_1)
19167 (internal_condition_case_2): Don't abort when x_catching_errors.
19168
19169 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19170 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19171 prevent crashes caused by bogus longjmps in read_char.
19172
19173 * keymap.h (Fset_keymap_parent): Add EXFUN.
19174
19175 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19176 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19177 Remove redundant definition.
19178
19179 * macfns.c (x_set_mouse_color, x_make_gc):
19180 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19181
19182 * w32term.c (x_free_frame_resources):
19183 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19184 (w32_initialize): Use the accessor macros for terminal characteristics.
19185
19186 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19187 Use the accessor macros for terminal characteristics.
19188 * msdos.c (internal_terminal_init): Use the accessor macros for
19189 terminal characteristics.
19190 (ScreenVisualBell, internal_terminal_init):
19191 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19192
19193 * termopts.h (no_redraw_on_reenter): Declare.
19194
19195 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19196 (mark_terminals, mark_ttys): Declare.
19197 (Fgarbage_collect): Call them.
19198 (mark_object): Mark buried_buffer_list.
19199
19200 * prefix-args.c: Include stdlib.h for exit.
19201
19202 * syssignal.h: Add comment.
19203
19204 * indent.c: Include stdio.h.
19205
19206 * window.h (Vinitial_window_system): Declare.
19207 (Vwindow_system): Delete declaration.
19208
19209 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19210
19211 * image.c (lookup_image): Don't initialize `c' until the xasserts
19212 have been run.
19213
19214 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19215 FRAME_FOREGROUND_PIXEL.
19216
19217 * print.c (print_preprocess): Don't lose print_depth levels while
19218 iterating.
19219
19220 * widget.c (update_from_various_frame_slots):
19221 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19222
19223 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19224 frames.
19225 (window_internal_height): Remove bogus make_number call.
19226 (init_window_once): Call make_terminal_frame with two zero parameters.
19227
19228 * fileio.c (Fread_file_name): Update comment.
19229
19230 * callint.c (Fcall_interactively):
19231 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19232 Make sure it is correctly unwound.
19233
19234 * xsmfns.c (x_session_close): New function.
19235
19236 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19237 Delete declarations.
19238
19239 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19240 (x_output): Remove background_pixel and foreground_pixel fields.
19241 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19242 (x_delete_device, x_session_close): Declare.
19243
19244 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19245 (read_filtered_event): Call `read_char' with a local
19246 `wrong_kboard_jmpbuf'.
19247
19248 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19249 Don't call single_kboard_state. Use FRAME_RIF.
19250
19251 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19252 systems.
19253
19254 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19255 (Fframe_with_environment, Fset_input_meta_mode)
19256 (Fset_quit_char): EXFUN.
19257 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19258 (init_sys_modes, reset_sys_modes): Update prototypes.
19259 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19260
19261 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19262 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19263 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19264 Delete declarations.
19265 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19266 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19267 New declarations.
19268
19269 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19270 already does that during init_display(). Call syms_of_keymap
19271 before syms_of_keyboard. Call `syms_of_terminal'.
19272 Call set_initial_environment, not set_process_environment.
19273 (shut_down_emacs): Call reset_all_sys_modes() instead of
19274 reset_sys_modes().
19275
19276 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19277 (internal_resolve_face_name, resolve_face_name_error): New functions.
19278 (resolve_face_name): Protect against loops and errors thrown by Fget.
19279 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19280 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19281
19282 * scroll.c: Replace CURTTY() with local variables throughout the
19283 file (where applicable).
19284 (calculate_scrolling, calculate_direct_scrolling)
19285 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19286 characteristics.
19287
19288 * keymap.c (Vfunction_key_map): Remove.
19289 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19290 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19291 (Vkey_translation_map): Remove.
19292 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19293 (Fdescribe_buffer_bindings)
19294 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19295 Update for terminal-local key-translation-map.
19296
19297 * Makefile.in (callproc.o): Update dependencies.
19298 (lisp, shortlisp): Add termdev.elc.
19299 (obj): Add terminal.o.
19300 (terminal.o): Add dependencies.
19301 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19302 (data.o, fns.o): Add termhooks.h dependency.
19303 (SOME_MACHINE_LISP): Add dnd.elc.
19304 (minibuf.o): Fix typo.
19305 Update dependencies.
19306
19307 * data.c (do_symval_forwarding, store_symval_forwarding)
19308 (find_symbol_value): Use the selected frame's keyboard, not
19309 current_kboard.
19310
19311 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19312 Vwindow_system.
19313
19314 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19315 Fmenu_bar_open.
19316 (syms_of_xmenu): Update defsubr.
19317 (mouse_position_for_popup, Fx_popup_menu)
19318 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19319 (set_frame_menubar, free_frame_menubar)
b97439ce 19320 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19321 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19322 an X frame.
19323
19324 * xselect.c (x_own_selection): Abort if not an X frame.
19325 (some_frame_on_display): Check if it is an X frame.
19326 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19327
19328 * coding.c: Include frame.h and termhooks.h.
19329 (terminal_coding, keyboard_coding): Delete.
19330 (Fset_terminal_coding_system_internal)
19331 (Fset_keyboard_coding_system_internal)
19332 (Fkeyboard_coding_system)
19333 (Fterminal_coding_system): Add a terminal parameter.
19334 Get terminal_coding from the terminal.
19335 (init_coding_once): Don't call setup_coding_system here.
19336
19337 * dispextern.h (set_scroll_region, turn_off_insert)
19338 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19339 (tty_clear_end_of_line, tty_setup_colors)
19340 (delete_tty, updating_frame)
19341 (produce_special_glyphs, produce_glyphs, write_glyphs)
19342 (insert_glyphs): Remove.
19343 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19344 (tty_turn_off_highlight, get_tty_size): Add declaration.
19345 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19346
19347 * frame.h (enum output_method): Add output_initial.
19348 (struct x_output): Delete.
19349 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19350 Access foreground_pixel and background_pixel directly from the frame.
19351 (tty_display): Delete.
19352 (struct frame): Add buried_buffer_list, foreground_pixel,
19353 background_pixel and terminal. Delete kboard.
19354 (union output_data): Add tty.
19355 (FRAME_KBOARD): Get the kboard from the terminal.
19356 (FRAME_INITIAL_P): New macro.
19357 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19358 (Qterm_environment_variable, Qdisplay_environment_variable)
19359 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19360 New declarations.
19361
19362 * termchar.h (tty_output, tty_display_info): New structures.
19363 (tty_list): Declare.
19364 (FRAME_TTY, CURTTY): New macros.
19365 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19366 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19367 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19368 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19369
19370 * callproc.c: Include frame.h and termhooks.h, for terminal
19371 parameters.
19372 (add_env): New function.
19373 (child_setup): Use it.
19374 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19375 (getenv_internal): Fix get_terminal_param call.
19376 (Fgetenv_internal, egetenv): Update doc.
19377 (syms_of_callproc): Initialize Vprocess_environment to nil.
19378 Register and initialize them. Remove obsolete defvars. Update doc
19379 strings.
19380 (child_setup): Handle Vlocal_environment_variables.
19381 (getenv_internal): Add terminal parameter.
19382 Handle Vlocal_environment_variables.
19383 (Fgetenv_internal): Add terminal parameter.
19384 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19385 environment in a frame (not terminal) parameter. Update doc strings.
19386 (set_initial_environment): Rename from set_global_environment.
19387 Store Emacs environment in initial frame parameter.
19388
19389 * xdisp.c (redisplay_internal): Update references to
19390 `previous_terminal_frame'.
19391 (display_mode_line, Fformat_mode_line): Replace calls to
19392 `push_frame_kboard' with `push_kboard'.
19393 (get_glyph_string_clip_rects): Add extra parentheses and
19394 braces to prevent compiler warnings.
19395 (calc_pixel_width_or_height): Add xassert to check that the
19396 frame is alive. Don't call `lookup_image' on a termcap frame.
19397 (message2_nolog, message3_nolog, redisplay_internal)
19398 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19399 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19400 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19401 (Fx_display_pixel_width, Fx_display_pixel_height)
19402 (Fx_display_planes, Fx_display_color_cells)
19403 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19404 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19405 (Fx_display_backing_store, Fx_display_visual_class)
19406 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19407 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19408
19409 * xfns.c (x_set_foreground_color x_set_background_color)
19410 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19411 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19412 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19413 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19414 terminal that is being deleted.
19415 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19416 frame parameter, and make sure it overrides any user-supplied setting.
19417 (Fx_close_connection, Fx_synchronize): Unify argument names with
19418 the rest of the DEFUNs.
19419
19420 * dispnew.c (Fsend_string_to_terminal): Update call to
19421 `get_tty_terminal'.
19422 (Fredraw_frame, Fsend_string_to_terminal)
19423 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19424 FRAME_TERMCAP_P and FRAME_TTY.
19425 (window_change_signal): Don't believe width/height values that are
19426 impossibly small.
19427 (Vinitial_window_system): Rename from Vwindow_system.
19428 (termscript, Wcm, rif): Delete.
19429
19430 * termhooks.h (struct terminal): New struct containing the
19431 previously global text display hooks and new members NAME,
19432 DELETED and PARAM_ALIST.
19433 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19434 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19435 (FRAME_RIF): New macros.
19436 (get_terminal_param, get_device): New declarations.
19437 (termscript): Delete declaration.
19438
19439 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19440 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19441 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19442 FRAME_FOREGROUND_PIXEL.
19443 (x_fully_uncatch_errors): Disable definition.
19444 (x_scroll_bar_expose): Fix reference to foreground pixel.
19445 (XTread_socket): Disable loop on all X displays.
19446 (x_delete_terminal): Don't set terminal->deleted and let
19447 delete_terminal delete the frames on the terminal.
19448 (x_delete_display): Doc update to reflect changes in
19449 delete_terminal.
19450 (x_display_info) <terminal>: Move member earlier in the struct.
19451 (deleting_tty): Remove old variable.
19452 (Fsuspend_tty): Call clear_tty_hooks.
19453 (Fresume_tty, init_tty): Call set_tty_hooks.
19454 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19455 errors on X frames.
19456 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19457 (handle_one_xevent): Initialize `f' to NULL.
19458 (x_delete_terminal, x_create_terminal): New functions.
19459 (XTset_terminal_modes, XTreset_terminal_modes)
19460 (XTread_socket, x_connection_closed, x_term_init)
19461 (x_term_init, x_delete_display): Add terminal parameter.
19462 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19463 X connections.
19464
19465 * frame.c: Include termchar.h.
19466 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19467 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19468 (Qdisplay_environment_variable): New vars.
19469 (Fframep): Deal with output_initial.
19470 (Fframe-live-p): Doc fix.
19471 (Fwindow-system): New function.
19472 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19473 (make_terminal_frame): Don't create frames on a terminal that is
19474 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19475 (store_frame_param): Check for found_for_frame before calling XFRAME.
19476 (Fmake_terminal_frame): Handle NULL tty names correctly.
19477 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19478 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19479 frames to refer to a deleted frame in their 'environment parameter.
19480 (Fframe_with_environment): New function.
19481 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19482 (get_future_frame_param): New function.
19483 (Fmake_terminal_frame): Use it.
19484 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19485
19486 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19487 * sysdep.c (reset_sys_modes): Update for renames.
19488
19489 * keyboard.c (tty_read_avail_input): New function.
19490 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19491 (syms_of_keyboard): Defsubr them.
19492 (Fset_input_meta_mode, Fset_quit_char): New functions.
19493 (Fset_input_mode): Split to above functions.
19494 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19495 parameter. Use it in call to `read_char'.
19496 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19497 Set wrong_kboard_jmpbuf correctly in recursive calls.
19498 Use current_kboard to access Vkeyboard_translate_table.
19499 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19500 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19501 Update longjmp invocations. Remember the original current_kboard,
19502 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19503 changes it. Comment out unnecessary calls to
19504 `record_single_kboard_state' and `any_kboard_state'.
19505 Update recursive calls.
19506 (wrong_kboard_jmpbuf): Remove global variable.
19507 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19508 Handle deleted interrupted_kboards correctly; that is a legal
19509 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19510 and read_char calls. Abort if interrupted_kboard died in read_char.
19511 (any_kboard_state, single_kboard_state)
19512 (push_frame_kboard): Remove function.
19513 (pop_kboard): Switch out of single_kboard mode if the kboard has
19514 been deleted. Remove unused variable. Help debugging by not
19515 changing current_kboard unnecessarily. Set current_kboard to the
19516 kboard of the selected frame when the stored kboard object has
19517 been deleted before pop_kboard.
19518 (temporarily_switch_to_single_kboard): Change first parameter to a
19519 frame pointer. Throw an error when caller wants to change kboards
19520 while in single_kboard mode. Don't push_kboard if we weren't in
19521 single kboard state. Don't pop_kboard if we popped into any
19522 kboard state.
19523 (restore_kboard_configuration): Abort if pop_kboard changed the
19524 kboard in single_kboard mode. Call pop_kboard only after setting
19525 up single_kboard mode.
19526 (Frecursive_edit): Switch to single_kboard mode only in nested
19527 command loops.
19528 (cmd_error, command_loop, command_loop_1, timer_check):
19529 Comment out unnecessary call to `any_kboard_state' and
19530 `record_single_kboard_state'.
19531 (delete_kboard): Exit single_kboard mode if we have just deleted
19532 that kboard. Use FRAME_KBOARD.
19533 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19534 `fatal_error_signal'.
19535 (record_single_kboard_state): Don't push_kboard if we weren't in
19536 single kboard state. Don't pop_kboard if we popped into any
19537 kboard state.
19538 (push_frame_kboard): Rename to push_kboard.
19539 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19540 (read_avail_input): Read input from all terminals.
19541 (mark_kboards): Also mark Vkeyboard_translate_table.
19542 (kbd_buffer_store_event_hold): Simplify condition.
19543 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19544 (Vkeyboard_translate_table): Move to struct kboard.
19545 (init_kboard): Initialize Vkeyboard_translate_table.
19546 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19547 Vkeyboard_translate_table. Update doc strings. Update docs of
19548 local-function-key-map and function-key-map.
19549
19550 * terminal.c: New file.
19551
19552 * term.c: Include errno.h.
19553 (Vring_bell_function, device_list, initial_device)
19554 (next_device_id, ring_bell, update_begin, update_end)
19555 (set_terminal_window, cursor_to, raw_cursor_to)
19556 (clear_to_end, clear_frame, clear_end_of_line)
19557 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19558 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19559 (syms_of_term): Move their initialization to terminal.c.
19560 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19561 (Ftty_display_color_cells)
19562 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19563 (clear_tty_hooks, set_tty_hooks)
19564 (init_tty, maybe_fatal): New functions.
19565 (Ftty_type): Return nil if terminal is not on a tty instead of
19566 throwing an error. Doc update.
19567 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19568 Doc update. Initialize new subrs and variables.
19569 (delete_tty): Use terminal->deleted.
19570 (tty_set_terminal_modes): Rename from set_terminal_modes.
19571 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19572 (set_scroll_region): Rename to `tty_set_scroll_region'.
19573 (turn_on_insert): Rename to `tty_turn_on_insert'.
19574 (turn_off_insert): Rename to `tty_turn_off_insert'.
19575 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19576 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19577 (toggle_highligh): Rename to `tty_toggle_highlight'.
19578 (background_highlight): Rename to `tty_background_highlight'.
19579 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19580 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19581 (tty_set_scroll_region, tty_background_highlight)
19582 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19583 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19584 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19585 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19586 Add static modifier.
19587 (tty_reset_terminal_modes, tty_set_terminal_window)
19588 (tty_set_scroll_region, tty_background_highlight)
19589 (tty_highlight_if_desired, tty_cursor_to)
19590 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19591 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19592 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19593 renames.
19594
195952007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19596
19597 * keyboard.c: Qrtl is new.
19598 (parse_tool_bar_item): Handle :rtl keyword.
19599 (syms_of_keyboard): Intern :rtl keyword.
19600
19601 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19602
19603 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19604 so no Lisp code is executed.
19605 (file_for_image, find_rtl_image): New functions.
19606 (xg_get_image_for_pixmap): Use file_for_image.
19607 (update_frame_tool_bar): If direction is RTL, use RTL image if
19608 defined. Use Gtk stock images if defined.
19609
196102007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19611
19612 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19613 for nonexistent or zero-width glyph in composition glyph.
19614
196152007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19616
19617 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19618
19619 * xdisp.c (Finvisible_p): New function.
19620 (syms_of_xdisp): defsubr it.
19621
196222007-08-24 Juanma Barranquero <lekktu@gmail.com>
19623
19624 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19625 Doc fixes.
19626
196272007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19628
19629 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19630
196312007-08-24 Martin Rudalics <rudalics@gmx.at>
19632
19633 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19634 whether decoding has modified buffer contents.
19635
196362007-08-24 Jason Rumney <jasonr@gnu.org>
19637
19638 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19639 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19640 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19641 (init_svg_functions) [HAVE_NTGUI]: New function.
19642 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19643 (svg_load_image): Use them.
19644 (svg_load_image) [HAVE_NTGUI]: Implement background.
19645
196462007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19647
19648 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19649 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19650 (LIBX): Remove @RSVG_LIBS@.
19651 (LIBES): Add $(RSVG_LIBS).
19652
19653 * image.c (svg_load_image): Blend with specified background if exists.
19654 Use IMAGE_BACKGROUND. Add Mac OS Support.
19655
19656 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19657 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19658 Remove macros.
19659 [MAC_OSX] (socket_callback): Do nothing.
19660 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19661 ReceiveNextEvent.
19662 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19663 socket_callback.
19664 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19665
196662007-08-22 Glenn Morris <rgm@gnu.org>
19667
19668 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19669
196702007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19671
19672 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19673
19674 * image.c: Add support for SVG images. Some additional comments
19675 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19676 (svg_image_p): New function to test for SVG image.
19677 (svg_load): New function to load SVG image.
19678 (svg_load_image): New function, helper for svg_load.
19679 (Qsvg): New Lisp_object.
19680 (svg_keyword_index): New enum.
19681 (svg_format): New static `image_keyword' struct.
19682 (svg_type): New static `image_type' struct.
19683 (librsvg/rsvg.h): Include it.
19684
196852007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19686
19687 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19688
196892007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19690
19691 * lread.c (Qold_style_backquotes): New var.
19692 (syms_of_lread): Init and staticpro it.
19693 (load_warn_old_style_backquotes): New fun.
19694 (Fload): Use them to warn about old style backquotes.
19695 (end_of_file_error, Fload): Remove unused vars.
19696
19697 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19698
19699 * lread.c (Vold_style_backquotes): New var.
19700 (syms_of_lread): Init and export it to Elisp.
19701 (read1): Set it when we find an old-style (back)quote.
19702
197032007-08-22 Jason Rumney <jasonr@gnu.org>
19704
19705 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19706
197072007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19708
19709 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19710
197112007-08-19 Richard Stallman <rms@gnu.org>
19712
19713 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19714
197152007-08-19 Andreas Schwab <schwab@suse.de>
19716
19717 * alloc.c (pure): Round PURESIZE up.
19718
197192007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19720
19721 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19722 active frame.
19723
197242007-08-16 Richard Stallman <rms@gnu.org>
19725
19726 * eval.c (Fcommandp): Add parens to clarify.
19727
19728 * minibuf.c (Fall_completions): Use enum for type of table.
19729
19730 * emacs.c (USAGE2): Improve text.
19731
197322007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19733
19734 * term.c (tty_default_color_capabilities): Declare static
19735 variables in file scope, to avoid HPUX compiler problem.
19736
197372007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19738
19739 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19740 to gtk_toolbar_insert.
19741
197422007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19743
19744 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19745
19746 * insdel.c (reset_var_on_error): New fun.
19747 (signal_before_change, signal_after_change):
19748 Use it to reset (after|before)-change-functions to nil in case of error.
19749 Bind inhibit-modification-hooks to t.
19750 Don't bind (after|before)-change-functions to nil while they run.
19751
197522007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19753
19754 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19755 filling pixmap with stippled background.
19756
197572007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19758
19759 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19760 Don't use invisible frame as parent window for repositioning.
19761
197622007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19763
19764 * print.c (new_backquote_output): Rename from old_backquote_output.
19765 (print): Inverse its logic (according to its name) so as to match the
19766 behavior of new_backquote_flag in lread.c.
19767
197682007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19769
19770 * gmalloc.c (posix_memalign): New function.
19771
19772 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19773 ActivateControl/DeactivateControl here.
19774 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19775 frame-notice-user-settings is non-nil.
19776 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19777 for kEventParamFMFontStyle.
19778 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19779 mac_pass_command_to_system and mac_pass_control_to_system here.
19780 (XTread_socket): Call ActivateControl/DeactivateControl here.
19781 (XTread_socket) [TARGET_API_MAC_CARBON]:
19782 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19783 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19784 for window repositioning.
19785
197862007-08-08 Glenn Morris <rgm@gnu.org>
19787
19788 * Replace `iff' in doc-strings and comments.
19789
197902007-08-07 Chong Yidong <cyd@stupidchicken.com>
19791
19792 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19793
197942007-08-07 Martin Rudalics <rudalics@gmx.at>
19795
19796 * fileio.c (Finsert_file_contents): Run format-decode and
19797 after_insert_file_functions on entire buffer when REPLACE is
19798 non-nil and inhibit modification_hooks and point_motion_hooks.
19799 For consistency, run after_insert_file_functions iff something
19800 got inserted. Move signal_after_change and update_compositions
19801 after code running after_insert_file_functions. Make sure that
19802 undo_list doesn't record intermediate steps of the decoding process.
19803
198042007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19805
19806 * emacs.c (main)
19807 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19808 Call malloc_enable_thread on interactive startup.
19809
19810 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19811 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19812 [USE_PTHREAD]: Conditionalize with it.
19813 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19814 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19815 New functions.
19816
198172007-08-06 Chong Yidong <cyd@stupidchicken.com>
19818
19819 * xdisp.c (redisplay_window): When restoring original buffer
19820 position, make sure it is still valid.
19821
19822 * image.c (png_load): Ignore png-supplied background color.
19823
198242007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19825
19826 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19827 Use kCFAbsoluteTimeIntervalSince1970.
19828
19829 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19830 New variable.
19831 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19832 event loop should be quit.
19833 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19834 Quit dialog event loop if quit_dialog_event_loop is set.
19835
19836 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19837 (Selection): New typedef. Use instead of ScrapRef.
19838 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19839 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19840 (mac_clear_selection): Rename from clear_scrap.
19841 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19842 scrap_has_target_type. All uses changed.
19843 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19844 (mac_selection_has_target_p): New functions.
19845 (mac_put_selection_value): Rename from put_scrap_string.
19846 (mac_get_selection_value): Rename from get_scrap_string.
19847 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19848 (put_scrap_private_timestamp, scrap_has_target_type)
19849 (get_scrap_private_timestamp): Remove functions.
19850 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19851 (x_own_selection, x_get_local_selection):
19852 Use mac_valid_selection_value_p.
19853 (x_own_selection): Don't use put_scrap_private_timestamp.
19854 Record OWNERSHIP-INFO into Vselection_alist instead.
19855 (x_get_local_selection): Don't check type if request is local.
19856 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19857 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19858
198592007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19860
19861 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19862 add comment explaining why.
19863
198642007-08-03 Richard Stallman <rms@gnu.org>
19865
19866 * fileio.c (Fvisited_file_modtime): Use make_time.
19867
198682007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19869
19870 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19871 build.
19872
198732007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19874
19875 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19876
198772007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19878
19879 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19880
198812007-07-30 Richard Stallman <rms@gnu.org>
19882
19883 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19884
198852007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19886
19887 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19888
198892007-07-28 Nick Roberts <nickrob@snap.net.nz>
19890
19891 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19892 remote default-directory.
19893
19894 * buffer.c (mode-line-format): Update doc string.
19895
198962007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19897
19898 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19899 scroll bar gap.
19900 (x_scroll_bar_create): Set bar->fringe_extended_p.
19901 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19902 on frame edge. Check fringe background extension. Don't clear
19903 extended fringe background area.
19904
19905 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19906 (w32_fill_area): Enclose multiple statements with do ... while (0).
19907
19908 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19909 Extend fringe background to scroll bar gap.
19910 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19911 Set bar->fringe_extended_p.
19912 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19913 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19914 background extension. Don't clear extended fringe background area.
19915
19916 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19917 New member fringe_extended_p.
19918
199192007-07-25 Glenn Morris <rgm@gnu.org>
19920
19921 * Relicense all FSF files to GPLv3 or later.
19922
19923 * COPYING: Switch to GPLv3.
19924
199252007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19926
19927 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19928
19929 * data.c (Finteractive_form): Check for the presence of an
19930 `interactive-form' symbol property more thoroughly.
19931
19932 * data.c (Finteractive_form): Use an `interactive-form' property if
19933 present, analogous to the function-documentation property.
19934
199352007-07-24 Jason Rumney <jasonr@gnu.org>
19936
19937 * w32fns.c (x_real_positions): Get real position from OS instead of
19938 calculating it.
19939
199402007-07-23 Jason Rumney <jasonr@gnu.org>
19941
19942 * filelock.c (current_lock_owner): Allow for @ sign in username.
19943
199442007-07-22 Nick Roberts <nickrob@snap.net.nz>
19945
19946 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19947 remote default-directory.
19948
19949 * buffer.c (mode-line-format): Describe above case in doc string.
19950
199512007-07-20 Eli Zaretskii <eliz@gnu.org>
19952
19953 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19954 Define if not defined.
19955
199562007-07-18 Jason Rumney <jasonr@gnu.org>
19957
19958 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19959
199602007-07-18 Richard Stallman <rms@gnu.org>
19961
19962 * data.c (Fsetq_default): Doc fix.
19963
19964 * eval.c (Fsetq): Doc fix.
19965
199662007-07-18 Juanma Barranquero <lekktu@gmail.com>
19967
19968 * coding.c (Ffind_operation_coding_system):
19969 * eval.c (For, Fand): Doc fixes.
19970 Reported by Johan Bockgård.
19971
199722007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19973
19974 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19975
19976 * xterm.h: Declare x_ewmh_activate_frame.
19977
19978 * xterm.c (x_ewmh_activate_frame): New function.
19979 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19980
199812007-07-17 Martin Rudalics <rudalics@gmx.at>
19982
19983 * window.c (Fdisplay_buffer): If largest or LRU window is the
19984 only window, split it even if it is not eligible for splitting.
19985 This restores the original behavior broken by the 2007-07-15
19986 change.
19987
199882007-07-17 Glenn Morris <rgm@gnu.org>
19989
19990 * abbrev.c (abbrev_check_chars): New function.
19991 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19992 Call abbrev_check_chars to check abbrev characters are word
19993 constituents. Doc fix.
19994
199952007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19996
19997 * process.c (Fstart_process, Fmake_network_process)
19998 (read_process_output): Fix up last changes.
19999
200002007-07-16 Eli Zaretskii <eliz@gnu.org>
20001
20002 * makefile.w32-in (clean): Don't delete *~.
20003
200042007-07-16 Andreas Schwab <schwab@suse.de>
20005
20006 * window.c (Fdisplay_buffer): Use NILP.
20007 (Fset_window_scroll_bars): Likewise.
20008
200092007-07-15 Martin Rudalics <rudalics@gmx.at>
20010
20011 * window.c (window_min_size_2): New function.
20012 (window_min_size_1, size_window, Fdisplay_buffer)
20013 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20014 windows without mode- or header-lines when window-min-height is
20015 too small.
20016 (size_window): Reset nodelete_p after testing it, following an
20017 earlier note by Kim F. Storm.
20018 (display_buffer): Do not set split_height_threshold to twice the
20019 value of window_min_height to avoid changing the value of a
20020 customizable variable. Rather explicitly check whether the
20021 height of the window that shall be splitted is at least as large
20022 as split_height_threshold.
20023 (Fwindow_full_width_p): New defun.
20024 (syms_of_window): Defsubr it.
20025
20026 * window.h: Add EXFUN for Fwindow_full_width_p.
20027
200282007-07-14 Jason Rumney <jasonr@gnu.org>
20029
20030 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20031
200322007-07-14 Richard Stallman <rms@gnu.org>
20033
20034 * eval.c (maybe_call_debugger): New function.
20035 (find_handler_clause): Use maybe_call_debugger.
20036 Call it when the handler says `debug'.
20037 Eliminate DEBUGGER_VALUE_PTR.
20038 (Fsignal): Eliminate debugger_value.
20039 (Qdebug): New variable.
20040 (syms_of_eval): Initialize it.
20041
200422007-07-14 Juanma Barranquero <lekktu@gmail.com>
20043
20044 * eval.c (Fprogn):
20045 * keyboard.c (Ftrack_mouse):
20046 * print.c (Fwith_output_to_temp_buffer):
20047 * window.c (Fsave_window_excursion): Doc fix.
20048
200492007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20050
20051 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20052
200532007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20054
20055 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20056 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20057 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20058 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20059 Remove unused encoding_carryover.
20060 * process.c: Adjust all functions accordingly.
20061
200622007-07-12 Richard Stallman <rms@gnu.org>
20063
20064 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20065
200662007-07-11 Jason Rumney <jasonr@gnu.org>
20067
20068 * makefile.w32-in (LIBS): Include OLE32.
20069
20070 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20071 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20072
200732007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20074
20075 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20076 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20077 from a Lisp_Object into a bare pointer.
20078 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20079 Adjust the code correspondingly.
20080
20081 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20082
20083 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20084 (term_show_mouse_face): Remove unused var `j'.
20085 (handle_one_term_event): Remove unused vars `i' and `j'.
20086 Don't cast return value of ttyname since it's not necessary.
20087
200882007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20089
20090 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20091 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20092
20093 * fns.c (map_char_table): Use an array of int for `indices' rather than
20094 an array of Lisp_Objects (which are only ever integers anyway).
20095 (Fmap_char_table): Update caller.
20096 * lisp.h: Update prototype.
20097 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20098 * fontset.c (Ffontset_info):
20099 * casetab.c (set_case_table): Update callers.
20100
20101 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20102
20103 * keymap.c (struct accessible_keymaps_data)
20104 (struct where_is_internal_data): New structures.
20105 (accessible_keymaps_1, where_is_internal_1): Use them to change
20106 interface to adhere to the one used by map_keymap.
20107 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20108 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20109
20110 * keymap.h (map_keymap_function_t): More informative prototype.
20111
201122007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20113
20114 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20115 (looking_at_1): Don't change search_regs and last_thing_searched
20116 if `inhibit-changing-match-data' is non-nil.
20117 (string_match_1, search_buffer, set_search_regs): Likewise.
20118 (syms_of_search): Add Lisp level definition for
20119 `inhibit-changing-match-data' and set it to nil.
20120 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20121 start and end of the match, instead of using values in search_regs.
20122
201232007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20124
20125 * minibuf.c (Fcompleting_read): New value `confirm-only'
20126 for `require-match'.
20127
201282007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20129
20130 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20131 part of the 2007-06-27 change to syms_of_fileio.
20132
201332007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20134
20135 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20136 Check WINDOWP before using XWINDOW. Consolidate return statements.
20137
201382007-06-27 Richard Stallman <rms@gnu.org>
20139
20140 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20141
201422007-06-27 Juanma Barranquero <lekktu@gmail.com>
20143
20144 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20145
201462007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20147
20148 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20149 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20150 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20151 (_free_internal, memalign): Use them.
20152 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20153 Initialize to PTHREAD_MUTEX_INITIALIZER.
20154 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20155 (morecore_nolock): Rename from morecore. All uses changed.
20156 Use only nolock versions of internal allocation functions.
20157 (_malloc_internal_nolock, _realloc_internal_nolock)
20158 (_free_internal_nolock): New functions created from
20159 _malloc_internal, _realloc_internal, and _free_internal.
20160 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20161 Copy hook value to automatic variable before its use.
20162 (memalign): Copy hook value to automatic variable before its use.
20163
201642007-06-26 Kenichi Handa <handa@m17n.org>
20165
20166 * coding.c (Ffind_operation_coding_system): Docstring improved.
20167 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20168
201692007-06-25 David Kastrup <dak@gnu.org>
20170
20171 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20172 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20173 cater for additional parameter.
20174
20175 * keymap.h: Adjust number of parameters to `current-active-maps'.
20176
20177 * doc.c (Fsubstitute_command_keys): Adjust call of
20178 `current-active-maps'.
20179
201802007-06-25 David Kastrup <dak@gnu.org>
20181
20182 * callint.c (Fcall_interactively): Make the parsing of interactive
20183 specs somewhat more readable.
20184
201852007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20186
20187 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20188 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20189 if extended background has already been filled.
20190
201912007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20192
20193 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20194 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20195
20196 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20197 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20198 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20199 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20200 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20201 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20202 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20203 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20204 Run timers during dialog popup.
20205 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20206
202072007-06-21 Jason Rumney <jasonr@gnu.org>
20208
20209 * image.c (convert_mono_to_color_image): Swap fore and background.
20210
202112007-06-20 Jason Rumney <jasonr@gnu.org>
20212
20213 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20214 (w32_free_bdf_font): Unmap memory not handle.
20215
202162007-06-20 Sam Steingold <sds@gnu.org>
20217
20218 * gmalloc.c (__morecore): Fix the declaration to comply with the
20219 definition.
20220
202212007-06-20 Juanma Barranquero <lekktu@gmail.com>
20222
20223 * w32term.c (w32_delete_display): Remove leftover declaration.
20224 (w32_define_cursor, w32_initialize): Make static.
20225
20226 * w32.c (_wsa_errlist): Fix typo in error message.
20227 (init_environment): Ignore any environment variable from the
20228 registry having a null value.
20229
202302007-06-20 Glenn Morris <rgm@gnu.org>
20231
20232 * Makefile.in (LIBGIF): Default to -lgif.
20233
202342007-06-17 Jason Rumney <jasonr@gnu.org>
20235
20236 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20237 unicode strings.
20238
202392007-06-16 Juanma Barranquero <lekktu@gmail.com>
20240
20241 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20242 Fix typo in docstring.
20243
202442007-06-16 Eli Zaretskii <eliz@gnu.org>
20245
20246 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20247 and their keybindings.
20248
202492007-06-15 Chong Yidong <cyd@stupidchicken.com>
20250
20251 * composite.c (update_compositions): Fix last fix.
20252
202532007-06-14 Jason Rumney <jasonr@gnu.org>
20254
20255 * w32.c (get_process_times_fn): New function pointer.
20256 (globals_of_w32): Intialize it if present in kernel32.dll.
20257 (w32_get_internal_run_time): New function.
20258
20259 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20260
202612007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20262
20263 * composite.c (update_compositions): Check the validness of
20264 compositions.
20265
202662007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20267
20268 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20269 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20270
20271 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20272 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20273
20274 * macgui.h (USE_MAC_TOOLBAR): New define.
20275
20276 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20277 Return immediately unless popup is activated.
20278
20279 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20280 background to scroll bar gap.
20281 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20282 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20283 scroll bars on frame edge. Check fringe background extension.
20284 Don't clear extended fringe background area.
20285 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20286 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20287 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20288 [USE_MAC_TOOLBAR]: New macros.
20289 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20290 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20291 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20292 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20293 [USE_MAC_TOOLBAR]: New functions.
20294 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20295 manually if previous repositioning has failed.
20296 (mac_handle_keyboard_event): Use precomputed event kind.
20297 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20298 as tool bar item click. Handle mouse movement over tool bar items.
20299
20300 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20301 toolbar_win_gravity.
20302 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20303 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20304 Add externs.
20305
20306 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20307 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20308
203092007-06-14 Chong Yidong <cyd@stupidchicken.com>
20310
20311 * image.c (search_image_cache): Remove unused variable.
20312
203132007-06-13 Chong Yidong <cyd@stupidchicken.com>
20314
20315 * xfns.c, xmenu.c: Link to xaw3d if available.
20316
203172007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20318
20319 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20320 frame_foreground and frame_background.
20321
20322 * image.c (lookup_image): Save frame foreground and background colors.
20323 (search_image_cache): Check if saved and current frame colors match.
20324
203252007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20326
20327 * regex.c (regex_compile): Remove the `regnum' counter.
20328 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20329
203302007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20331
20332 * term.c: Include intervals.h to declare Fget_text_property.
20333
203342007-06-10 Jason Rumney <jasonr@gnu.org>
20335
20336 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20337
203382007-06-08 Juanma Barranquero <lekktu@gmail.com>
20339
20340 * callint.c (Fcall_interactively):
20341 * editfns.c (Fdelete_and_extract_region):
20342 * fileio.c (Fread_file_name):
20343 * fns.c (Fmapconcat):
20344 * keyboard.c (cmd_error_internal):
20345 * keymap.c (Fkey_description):
20346 * lread.c (openp):
20347 * minibuf.c (read_minibuf):
20348 * search.c (wordify):
20349 * sunfns.c (sel_read):
20350 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20351 * xfns.c (x_default_scroll_bar_color_parameter):
20352 * xmenu.c (menu_help_callback):
20353 * xselect.c (Fx_get_atom_name):
20354 * xterm.c (x_term_init): Use empty_unibyte_string.
20355
203562007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20357
20358 * alloc.c (init_strings): Initialize canonical empty strings.
20359 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20360 canonical empty string when the requested size is 0.
20361
20362 * emacs.c (empty_unibyte_string): Rename from empty_string.
20363 (empty_multibyte_string): New canonical empty string.
20364 (syms_of_emacs): Don't initialize empty_string.
20365
20366 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20367 string, if appropriate.
20368 (empty_unibyte_string, empty_multibyte_string): New externs.
20369 (empty_string): Remove extern.
20370
20371 * lread.c (syms_of_lread): Use empty_unibyte_string.
20372
203732007-06-07 Jason Rumney <jasonr@gnu.org>
20374
20375 * s/ms-w32.h: Don't define HAVE_TZNAME.
20376
20377 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20378
203792007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20380
20381 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20382
20383 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20384 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20385
20386 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20387 Don't call next handler.
20388 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20389 Remove argument. Install handler to application.
20390 (set_frame_menubar): Don't change deep_p.
20391 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20392 FRAME_OUTER_TO_INNER_DIFF_Y.
20393 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20394 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20395 [HAVE_DIALOGS]: New macros.
20396 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20397 Use them.
20398 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20399
20400 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20401 init_service_handler. All callers changed. Return OSStatus value.
20402
20403 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20404 All callers changed so as not to call SetPortWindowPort.
20405 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20406 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20407 mac_draw_string_common.
20408 (mac_draw_image_string_qd): Likewise.
20409 (mac_draw_string_common): Use them. Add INLINE.
20410 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20411 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20412 GetGlobalMouse.
20413 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20414 and FRAME_OUTER_TO_INNER_DIFF_Y.
20415 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20416 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20417 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20418 repositioning window to mac_handle_window_event.
20419 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20420 saving window location to mac_handle_window_event
20421 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20422 (install_menu_target_item_handler): Remove argument in extern.
20423 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20424 Also accept command events.
20425 (do_keystroke): New function created from XTread_socket.
20426 (init_command_handler): Remove functions.
20427 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20428 and save window location by kEventWindowShowing and kEventWindowHiding
20429 handlers here. Don't call next handler for window state change and
20430 focus events.
20431 (mac_handle_application_event, mac_handle_keyboard_event)
20432 [TARGET_API_MAC_CARBON]: New functions.
20433 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20434 kEventWindowShowing and kEventWindowHiding events. Move installation
20435 of mouse, font, text input and menu target item handlers to
20436 install_application_handler.
20437 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20438 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20439 New function.
20440 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20441 Register it.
20442 (XTread_socket) [TARGET_API_MAC_CARBON]:
20443 Consolidate SendEventToEventTarget calls.
20444 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20445 Move application activation handler to mac_handle_application_event.
20446 Move keyboard handler to mac_handle_keyboard_event.
20447 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20448 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20449 init_command_handler. Call install_application_handler.
20450
20451 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20452 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20453
204542007-06-07 Glenn Morris <rgm@gnu.org>
20455
20456 * emacs.c (main): Use `emacs-copyright' in --version output.
20457
204582007-06-06 Chong Yidong <cyd@stupidchicken.com>
20459
20460 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20461
204622007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20463
20464 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20465
20466 * macgui.h: Replace WindowPtr with WindowRef.
20467
20468 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20469 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20470 Replace ControlHandle with ControlRef.
20471 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20472
20473 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20474 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20475 Replace ControlHandle with ControlRef.
20476 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20477 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20478
20479 * macterm.h (struct scroll_bar): Rename member control_handle_low
20480 and control_handle_high to control_ref_low and control_ref_high.
20481 All uses changed.
20482 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20483 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20484 respectively. All uses changed.
20485 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20486 (install_window_handler, remove_window_handler): Replace WindowPtr
20487 with WindowRef in externs.
20488
204892007-06-05 Juanma Barranquero <lekktu@gmail.com>
20490
20491 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20492
204932007-06-03 Nick Roberts <nickrob@snap.net.nz>
20494
20495 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20496
20497 * frame.c (Fmouse_position, Fmouse_pixel_position):
20498 Condition on HAVE_GPM too.
20499
20500 * term.c (term_mouse_highlight): Remove unused variables.
20501 (Fterm_open_connection): Set gpm_zerobased to 1.
20502 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20503 Use zero based co-ordinates.
20504 (handle_one_term_event): Report a drag as mouse movement too.
20505
20506 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20507
205082007-06-03 Chong Yidong <cyd@stupidchicken.com>
20509
20510 * image.c (search_image_cache): New function. Require background
20511 color match if background color is unspecified in the image spec.
20512 (uncache_image, lookup_image): Use it.
20513
205142007-06-01 Juanma Barranquero <lekktu@gmail.com>
20515
20516 * window.c (Fshrink_window): Reflow docstring.
20517
205182007-06-02 Chong Yidong <cyd@stupidchicken.com>
20519
20520 * Version 22.1 released.
20521
205222007-06-01 Richard Stallman <rms@gnu.org>
20523
20524 * xfns.c (x_encode_text): Add GCPRO.
20525
205262007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20527
20528 * xfns.c (x_set_name_internal): Save encoded name before
20529 x_encode_text in case string data is relocated.
20530
205312007-05-31 Richard Stallman <rms@gnu.org>
20532
20533 * buffer.c (syms_of_buffer): Doc fix.
20534
205352007-05-30 Nick Roberts <nickrob@snap.net.nz>
20536
20537 * sysdep.c (init_sys_modes): Add rather than replace with
20538 O_NONBLOCK.
20539
20540 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20541 term_mouse_moveto.
20542
20543 * termhooks.h (term_mouse_moveto): New extern.
20544
20545 * term.c (mouse_face_window): Rename...
20546 (Qmouse_face_window): ...to this.
20547 (term_show_mouse_face, term_clear_mouse_face)
20548 (term_mouse_highlight): Use Qmouse_face_window.
20549 (term_mouse_moveto): New function.
20550 (term_mouse_position): Make it work.
20551 (syms_of_term): Uncomment assignment to mouse_position_hook.
20552 Staticpro Qmouse_face_window.
20553
205542007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20555
20556 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20557 around current_column call.
20558
205592007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20560
20561 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20562 * xdisp.c (next_element_from_buffer):
20563 * window.c (delete_window):
20564 * term.c (term_mouse_highlight):
20565 * msdos.c (getdefdir):
20566 * macterm.c (mac_create_bitmap_from_bitmap_data)
20567 (init_font_name_table):
20568 * fns.c (Fsxhash):
20569 * data.c (Fmake_local_variable):
20570 * ccl.c (ccl_driver): Likewise.
20571
205722007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20573
20574 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20575 Call mac_wakeup_from_rne on window size change.
20576
205772007-05-25 Chong Yidong <cyd@stupidchicken.com>
20578
20579 * image.c (uncache_image): Fix typo.
20580
205812007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20582
20583 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20584
205852007-05-22 Richard Stallman <rms@gnu.org>
20586
20587 * xterm.c (x_connection_closed): Remove NO_RETURN.
20588
205892007-05-22 Martin Rudalics <rudalics@gmx.at>
20590
20591 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20592
205932007-05-21 Chong Yidong <cyd@stupidchicken.com>
20594
20595 * image.c (uncache_image): New function.
20596 (Fimage_refresh): New function.
20597
205982007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20599
20600 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20601
206022007-05-20 Nick Roberts <nickrob@snap.net.nz>
20603
20604 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20605 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20606
206072007-05-20 Nick Roberts <nickrob@snap.net.nz>
20608
20609 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20610 conditional on [HAVE_GPM_H].
20611
206122007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20613
20614 * syntax.c (skip_chars): Update syntax-table only after we checked that
20615 the new location is valid.
20616
206172007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20618
20619 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20620 mac_get_window_bounds.
20621
206222007-05-20 Nick Roberts <nickrob@snap.net.nz>
20623
20624 * Makefile.in (LIBGPM): Allow it to be set from configure.
20625 If set then link Emacs with it.
20626
20627 * config.in: Regenerate.
20628
20629 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20630 New externs.
20631
20632 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20633 Include gpm.h.
20634 (handle_one_term_event, term_gpm): New externs.
20635
20636 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20637 and allow it to be interrupted by SIGIO.
20638
20639 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20640 (wait_reading_process_output): Wait on gpm_fd too.
20641 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20642 (add_gpm_wait_descriptor_called_flag): New variable.
20643 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20644
20645 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20646 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20647 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20648 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20649 (make_lispy_event): Add case GPM_CLICK_EVENT.
20650 (read_avail_input): Handle mouse input.
20651
20652 * term.c (write_glyphs_with_face): New function.
20653 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20654 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20655 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20656 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20657 (last_mouse_x, last_mouse_y): New variables.
20658 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20659 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20660 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20661 (Fterm_close_connection): New functions.
20662 (term_init): Initialise mouse_face_window.
20663
206642007-05-19 Chong Yidong <cyd@stupidchicken.com>
20665
20666 * xdisp.c (redisplay_window): If first window line is a
20667 continuation line, recompute the new window start instead of
20668 recentering.
20669
206702007-05-18 Glenn Morris <rgm@gnu.org>
20671
20672 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20673 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20674
206752007-05-17 Glenn Morris <rgm@gnu.org>
20676
20677 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20678
206792007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20680
20681 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20682 dead key repeat and up events.
20683
206842007-05-14 Chong Yidong <cyd@stupidchicken.com>
20685
20686 * image.c (pbm_load): Check image size for monochrome pbm.
20687
206882007-05-13 Chong Yidong <cyd@stupidchicken.com>
20689
20690 * xterm.c (XTread_socket): Revert last change.
20691
206922007-05-12 Chong Yidong <cyd@stupidchicken.com>
20693
20694 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20695
20696 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20697
206982007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20699
20700 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20701 mixup (YAILOM).
20702
207032007-05-07 Andreas Schwab <schwab@suse.de>
20704
20705 * keymap.c (Flookup_key): Fix typo in last change.
20706
207072007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20708
20709 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20710 mapping for unibyte strings.
20711
207122007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20713
20714 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20715 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20716
207172007-04-29 Richard Stallman <rms@gnu.org>
20718
20719 * insdel.c (replace_range): For undo, record insertion first.
20720
207212007-04-29 Andreas Schwab <schwab@suse.de>
20722
20723 * lisp.h (VECSIZE): Use OFFSETOF.
20724
207252007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20726
20727 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20728 disabled lines.
20729
207302007-04-28 Richard Stallman <rms@gnu.org>
20731
20732 * lread.c (read_escape): In a string, \s is always space.
20733
207342007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20735
20736 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20737
20738 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20739 submenu for menu bar items.
20740
20741See ChangeLog.10 for earlier changes.
20742
20743;; Local Variables:
20744;; coding: utf-8
20745;; add-log-time-zone-rule: t
aac0c6e3
MR
20746;; End:
20747
76b6f707 20748 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20749
20750 This file is part of GNU Emacs.
20751
20752 GNU Emacs is free software: you can redistribute it and/or modify
20753 it under the terms of the GNU General Public License as published by
20754 the Free Software Foundation, either version 3 of the License, or
20755 (at your option) any later version.
20756
20757 GNU Emacs is distributed in the hope that it will be useful,
20758 but WITHOUT ANY WARRANTY; without even the implied warranty of
20759 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20760 GNU General Public License for more details.
20761
20762 You should have received a copy of the GNU General Public License
20763 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20764
20765;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40