xsettings.c didn't check font-use-system-font, fix that.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
dfb3c4c6
JD
12009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xsettings.c (something_changedCB, Ffont_get_system_font): Check
4 use_system_font.
5 (syms_of_xsettings): DEFVAR font-use-system-font.
6
9370c1d8
AS
72009-11-17 Andreas Schwab <schwab@linux-m68k.org>
8
25fe851a
AS
9 * xfns.c (x_default_font_parameter): Remove dead assignment.
10
9370c1d8
AS
11 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
12
637fa988
JD
132009-11-17 Jan Djärv <jan.h.d@swipnet.se>
14
a6eb20d8 15 * xftfont.c (xftfont_fix_match): Older versions of fontconfig does
21050de1 16 not have FC_LCD_*. #define them if not there.
a6eb20d8
JD
17
18 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto
19
637fa988
JD
20 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
21
22 * xterm.c (handle_one_xevent): Call xft_settings_event for
23 ClientMessage, PropertyNotify and DestroyNotify.
24 (x_term_init): If we have XFT, get DPI from Xft.dpi.
25 Call xsettings_initialize.
26
27 * xftfont.c (xftfont_fix_match): New function.
28 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
29 Call xftfont_fix_match after XftFontMatch.
30
31 * xfont.c (xfont_driver): Initialize all members.
32
33 * xfns.c (x_default_font_parameter): Try font from Ffont_get_system_font.
34 Do not get font from x_default_parameter if we got one from
35 Ffont_get_system_font.
36 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT (f).
37
38 * w32font.c (w32font_driver): Initialize all members.
39
40 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
41
42 * lisp.h: Declare syms_of_xsettings.
43
44 * keyboard.c (kbd_buffer_get_event, make_lispy_event): Handle
45 CONFIG_CHANGED_EVENT.
46
47 * ftfont.c (ftfont_filter_properties): New function.
48
49 * frame.c (x_set_font): Remove unused variable lval.
50
51 * font.h (struct font_driver): filter_properties is new.
52
53 * font.c (font_put_extra): Don't return if val is nil, it means
54 boolean option is off.
55 (font_parse_fcname): Collect all extra properties in extra_props
56 and call filter_properties for all drivers with extra_props and
57 font as parameter.
58 (font_open_entity): Do not use cache, it does not pick up new fontconfig
59 settings like hinting.
60 (font_load_for_lface): If spec had a name in it, store it in entity.
61
62 * emacs.c (main): Call syms_of_xsettings
63
64 * config.in: HAVE_GCONF is new.
65
66 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
67 xsettings.o is new.
68
5a942932
KH
692009-11-17 Kenichi Handa <handa@m17n.org>
70
71 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
72 back to the default font in case that no suitable font is found.
73
b7c7a4d1
SM
742009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
75
76 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
77 Suggested by Chad Brown <yandros@mit.edu>.
78 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
79
072f1e39
JD
802009-11-16 Jan Djärv <jan.h.d@swipnet.se>
81
82 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
83
5d1e70a2
AS
842009-11-14 Andreas Schwab <schwab@linux-m68k.org>
85
86 * Makefile.in: Ignore errors from mkdir when creating deps
87 directory.
88
a53cfbe5
JD
892009-11-14 Jan Djärv <jan.h.d@swipnet.se>
90
473a99b7
JD
91 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
92 has a parent.
93
a53cfbe5
JD
94 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
95 dependency files in deps/. Include those files into Makefile.
96
97 * config.in: Generated (AUTO_DEPEND).
98
f04bb9b2
MA
992009-11-13 Michael Albinus <michael.albinus@gmx.de>
100
b7c7a4d1 101 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
102 Vdbus_registered_functions_table, because it contains also
103 properties. Fix docstring.
b7c7a4d1 104 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 105
8f11f7ec
SM
1062009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
107
108 * alloc.c (mark_object): Don't reprocess marked strings.
109 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
110 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
111
8a605fe8
KH
1122009-11-13 Kenichi Handa <handa@m17n.org>
113
8f11f7ec 114 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
115 semantics of Vword_combining_categories.
116 (Vword_combining_categories): Describe the slight change of the
117 semantics.
118
241c4680
EZ
1192009-11-13 Eli Zaretskii <eliz@gnu.org>
120
121 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
122
123 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
124
5d58e44c
SM
1252009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
126
127 * xdisp.c (syms_of_xdisp): Fix typo in last change.
128
5e13f9d3
JB
1292009-11-12 Juanma Barranquero <lekktu@gmail.com>
130
131 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
132
cf54c754
DR
1332009-11-11 David Reitter <david.reitter@gmail.com>
134
135 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
136 variables to fix 2009-11-09 change.
137
a4ada374
DN
1382009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
139
91433552
DN
140 * process.c (ifflag_def): Make flag_sym constant.
141 (Fnetwork_interface_info): Use a constant pointer.
142 (ifflag_table):
143 * xfns.c (cursor_bits):
144 * xdisp.c (power_letter):
145 * termcap.c (speeds, esctab):
146 * sysdep.c (baud_convert):
147 * keyboard.c (lispy_accent_codes, modifier_names):
148 * image.c (xbm_format, xpm_format, pbm_format, png_format)
149 (jpeg_format, tiff_format, gif_format, svg_format)
150 (interlace_start, interlace_increment, gs_format):
151 * gtkutil.c (separator_names):
152 * fringe.c (swap_nibble):
153 * fns.c (base64_value_to_char, base64_char_to_value):
154 * fileio.c (make_temp_name_tbl):
155 * coding.c (suffixes): Make constant.
156
f4265f6c
DN
157 * frame.c (make_initial_frame):
158 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
159 build_string.
160 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
161
04420943
DN
162 * s/freebsd.h:
163 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
164
0a5d24ae
DN
165 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
166 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
167
a4ada374
DN
168 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
169 * xterm.c (syms_of_xterm):
170 * xfaces.c (syms_of_xfaces):
171 * xdisp.c (syms_of_xdisp):
172 * lread.c (syms_of_lread):
173 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
174 build_string.
91433552 175
a4ada374
DN
176 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
177
af98fc7f
SM
1782009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
179
180 * fns.c (Fplist_get): Merge the active and the uncommented code.
181
e90292a9
JD
1822009-11-10 Jan Djärv <jan.h.d@swipnet.se>
183
184 * keyboard.h: Declare timer_check.
185
186 * keyboard.c (timer_check_2): New function that does what the old
187 timer_check did.
188 (timer_check): Call timer_check_2 until -1 or a non-zero time is
189 returned, i.e. don't return -1 with timers pending.
190
191 * process.c: Remove extern declaration of timer_check.
192
193 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
194 even if timer_check returned -1.
195
af98fc7f
SM
196 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
197 xg_dialog_data.
e90292a9
JD
198 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
199 the event loop.
200 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
201 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
202 Destroy the dialog after xg_dialog_run.
203
045b83c0
SM
2042009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
205
206 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
207
1fb99a3a
JD
2082009-11-10 Jan Djärv <jan.h.d@swipnet.se>
209
210 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
211
04e452cb
JB
2122009-11-09 Juanma Barranquero <lekktu@gmail.com>
213
214 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
215
ef7417fd
SM
2162009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
217
218 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
219 w32menu.c, and nsmenu.m.
220 Simplify the obsolete case where position is nil.
221 (cleanup_popup_menu): New function, moved from nsmenu.m.
222 (struct skp): Remove slot `notreal'.
223 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
224 adjust callers.
225 (single_menu_item): Adjust call to parse_menu_item.
226 (syms_of_menu): Defsubr x-popup-menu.
227 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
228 (keymap_panes): Don't export any more.
229 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
230 (xmenu_show): Declare.
231 * keyboard.c (parse_menu_item): Remove arg `notreal'.
232 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
233 * keyboard.h (parse_menu_item): Update declaration.
234 * xmenu.c (Fx_popup_menu): Remove.
235 (syms_of_xmenu): Don't defsubr x-popup-menu.
236 * w32menu.c (Fx_popup_menu): Remove.
237 (syms_of_w32menu): Don't defsubr x-popup-menu.
238 * nsmenu.m (cleanup_popup_menu): Remove.
239 (ns_menu_show): Rename from ns_popup_menu and remove all the code
240 moved to menu.c's Fx_popup_menu.
241 (Fx_popup_menu): Remove.
242 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
243 menu_items (it's done in menu.c already).
244
424d6179
SM
2452009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
246
247 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
248 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
249
c0df13a6 2502009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
251
252 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 253 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
254 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
255 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
256
2de9f71c
SM
2572009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
258
259 Let integers use up 2 tags to give them one extra bit and thus double
260 their range.
261 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
262 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
263 New macros.
264 (enum Lisp_Type): Use them. Give explicit values.
265 (Lisp_Type_Limit): Remove.
266 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
267 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
268 Pay attention to USE_2_TAGS_FOR_INTS.
269 (INTEGERP): Use LISP_INT_TAG_P.
270 * fns.c (internal_equal): Simplify the default case.
271 (sxhash): Use case_Lisp_Int.
272 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
273 any more.
274 (Ftype_of): Use case_Lisp_Int.
275 (store_symval_forwarding): Take into account the fact that Ints can
276 now have more than one tag.
277 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
278 buffer_slot_type_mismatch):
279 * xfaces.c (face_attr_equal_p):
280 * print.c (print_object):
281 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
282 Use case_Lisp_Int.
283
323637a2
EZ
2842009-11-06 Eli Zaretskii <eliz@gnu.org>
285
7ac65b38
EZ
286 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
287
323637a2
EZ
288 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
289 warning.
290
e511451f
JD
2912009-11-06 Jan Djärv <jan.h.d@swipnet.se>
292
293 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
294
295 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
296
297 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
298 ButtonPressRelease and MotionNotify (bug#4870).
299
5e2327cf
DN
3002009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
301
5adc433e
DN
302 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
303
d67b4f80
DN
304 * xterm.c (syms_of_xterm):
305 * xselect.c (syms_of_xselect):
306 * xmenu.c (syms_of_xmenu):
307 * xfns.c (syms_of_xfns):
308 * xfaces.c (syms_of_xfaces):
309 * xdisp.c (syms_of_xdisp):
310 * window.c (syms_of_window):
311 * w32fns.c (syms_of_w32fns):
312 * undo.c (syms_of_undo):
313 * textprop.c (syms_of_textprop):
314 * terminal.c (syms_of_terminal):
315 * syntax.c (syms_of_syntax):
316 * sound.c (syms_of_sound):
317 * search.c (syms_of_search):
318 * print.c (syms_of_print):
319 * minibuf.c (syms_of_minibuf):
320 * macros.c (syms_of_macros):
321 * keymap.c (syms_of_keymap, initial_define_key)
322 (initial_define_lispy_key):
323 * keyboard.c (syms_of_keyboard):
324 * insdel.c (syms_of_insdel):
325 * image.c (syms_of_image):
326 * fringe.c (syms_of_fringe):
327 * frame.c (syms_of_frame):
328 * fontset.c (syms_of_fontset):
329 * fns.c (syms_of_fns):
330 * fns.c (syms_of_fns):
331 * fileio.c (syms_of_fileio):
332 * fileio.c (syms_of_fileio):
333 * eval.c (syms_of_eval):
334 * doc.c (syms_of_doc):
335 * dispnew.c (syms_of_display):
336 * dired.c (syms_of_dired):
337 * dbusbind.c (syms_of_dbusbind):
338 * data.c (syms_of_data):
339 * composite.c (syms_of_composite):
340 * coding.c (syms_of_coding):
341 * cmds.c (syms_of_cmds):
342 * charset.c (define_charset_internal, syms_of_character):
343 * ccl.c (syms_of_ccl):
344 * category.c (syms_of_category, init_category_once):
345 * casetab.c (syms_of_casetab):
346 * casefiddle.c (syms_of_casefiddle):
347 * callint.c (syms_of_callint):
348 * bytecode.c (syms_of_bytecode):
349 * buffer.c (keys_of_buffer, syms_of_buffer):
350 * alloc.c (syms_of_alloc):
351 * process.c (syms_of_process, init_process):
352 * lread.c (syms_of_lread, init_obarray):
353 * font.c (build_style_table):
354 * emacs.c (syms_of_emacs, main): Replace calls to intern with
355 intern_c_string, calls to make_pure_string with
356 make_pure_c_string. Use pure_cons instead of Fcons.
357
5e2327cf
DN
358 * process.c (socket_options): Make it const.
359 (set_socket_option, init_process): Use a const pointer.
360
361 * lread.c (intern_c_string): New function.
362 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
363 (defvar_int): Uset it. Make the name const char*.
364
365 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
366 (defvar_int): Update prototypes.
367 (DEFUN, EXFUN): Support for prototypes is now required.
368 (intern_c_string): New prototype.
369 (struct Lisp_Subr): Make symbol_name constant.
370
371 * font.c (struct table_entry): Remove unused member. Make NAMES
372 constant.
373 (weight_table, slant_table, width_table): Make constant.
374
375 * emacs.c (struct standard_args): Make name and longname constant.
376
377 * character.h (DEFSYM): Use intern_c_string.
378
a56eaaef
DN
3792009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
380
381 * alloc.c (make_pure_c_string): New function.
382
383 * eval.c (Fautoload): Purecopy all arguments.
384
f6a07420
KH
3852009-11-05 Kenichi Handa <handa@m17n.org>
386
387 * fileio.c (Finsert_file_contents): Be sure set coding-system of
388 the buffer in case of replace.
389
5d28d4b1
DN
3902009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
391
392 * puresize.h (BASE_PURESIZE): Increase to 1620000.
393
b349d111
SM
3942009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
395
d528b1ce
SM
396 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
397 when applicable (bug#4851).
398
b349d111
SM
399 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
400 (P_): Support for prototypes is now required.
401
c38eb027
CY
4022009-10-31 Chong Yidong <cyd@stupidchicken.com>
403
404 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
405 (Bug#4827).
406
0405f8d9
EZ
4072009-10-30 Eli Zaretskii <eliz@gnu.org>
408
d528b1ce 409 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 410
ca0a881a
DN
4112009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
412
413 * puresize.h (BASE_PURESIZE): Increase to 1470000.
414
d528b1ce
SM
415 * lread.c (Fload): Purecopy the file name when building
416 Vpreloaded_file_list.
ca0a881a 417
47e0e0e4
JR
4182009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
419
420 * w32fns.c (syms_of_w32fns): Change default value of
421 w32-scroll-lock-modifier to nil. (Bug#2827)
422
057bce6f
JB
4232009-10-26 Juanma Barranquero <lekktu@gmail.com>
424
782a943e 425 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 426
242bc74c
AS
4272009-10-26 Andreas Schwab <schwab@redhat.com>
428
429 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
430
522d013a
JB
4312009-10-26 Juanma Barranquero <lekktu@gmail.com>
432
433 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
434 For delta < 0, skip check that only makes sense when the mini-window
435 is going to be enlarged. (Bug#4534)
436
18060980
CY
4372009-10-25 Chong Yidong <cyd@stupidchicken.com>
438
439 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
440 string in menu maps (Bug#4471).
441
fec8f0fe
CY
4422009-10-24 Chong Yidong <cyd@stupidchicken.com>
443
444 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
445 FRAME_NS_VIEW on terminal frames (Bug#4765).
446
10d66ec0
AS
4472009-10-24 Andreas Schwab <schwab@linux-m68k.org>
448
1cae01f7
AS
449 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
450 DBUS_TYPE_UINTnn separately to get proper sign extension.
451
58a12889
AS
452 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
453 can properly handle unsigned types.
d528b1ce 454 (make_uid, make_gid): Remove.
58a12889 455
987c9327
AS
456 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
457 types again.
458
522d013a 459 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
460 (system_process_attributes): Likewise.
461
905a9ed3
DN
4622009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
463
464 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
465
466 * eval.c (Fautoload): Purecopy the filename. Simplify.
467
468 * category.c (Fdefine_category): Purecopy docstring.
469
a599b3e8
AS
4702009-10-23 Andreas Schwab <schwab@linux-m68k.org>
471
7b792fc9
AS
472 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
473
a599b3e8
AS
474 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
475
b35ac83e
CY
4762009-10-23 Chong Yidong <cyd@stupidchicken.com>
477
478 * window.c (Fwindow_edges, Fwindow_pixel_edges)
479 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
480 (Bug#4775).
481
e8903e00
SM
4822009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
483
484 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
485 (init_fileio_once):
486 * lisp.h (init_fileio_once): Remove.
487 * emacs.c (main): Don't call init_fileio_once.
488
8f43cbf3
DN
4892009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
490
491 * puresize.h (BASE_PURESIZE): Increase to 1430000.
492
26898943
AS
4932009-10-21 Andreas Schwab <schwab@linux-m68k.org>
494
495 * doprnt.c (doprnt): Fix overflow check.
496
5c646d5a
JD
4972009-10-21 Jan Djärv <jan.h.d@swipnet.se>
498
3132a7ea
JD
499 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
500
5c646d5a
JD
501 * xterm.h (x_wait_for_event): Declare it.
502
503 * xterm.c (pending_event_wait): New variable.
504 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
505 see pending_event_wait.eventtype.
506 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
507 (x_new_font): Call change_frame_size with new rows/columns before we
508 try to resize the frame.
5c646d5a 509 (x_wait_for_event): New function.
d528b1ce
SM
510 (x_set_window_size_1): Don't change gravity unless change_gravity
511 is set.
5c646d5a
JD
512 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
513 don't change frame size, instead wait for the ConfigureNotify.
514 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
515 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
516 (x_initialize): Initialize pending_event_wait.
517
518 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
519 size.
520
521 * widget.c (EmacsFrameSetValues): Add comment.
522 (EmacsFrameSetCharSize): Just call x_set_window_size.
523
524 * gtkutil.c (xg_frame_set_char_size): Flush events and call
525 x_wait_for_event.
d528b1ce 526 (flush_and_sync): Remove again.
5c646d5a
JD
527 (xg_get_font_name): Suggest monospace if no previous font is known.
528
e9c1637d
SM
5292009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
530
531 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 532 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 533
5a72cccb
YM
5342009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
535
536 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
537 processing pending events when event is filtered for input method.
ab04798f 538 (Bug#3681)
5a72cccb 539
2629aa37
JB
5402009-10-20 Juanma Barranquero <lekktu@gmail.com>
541
542 * fns.c: Add #endif accidentally removed in previous change.
543
c3417a74
DN
5442009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
545
546 * fns.c: Remove code for unsupported system: MAC_OS.
547 * image.c: Likewise. Include setjmp.h.
548
9685cef2
JD
5492009-10-19 Jan Djärv <jan.h.d@swipnet.se>
550
551 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
552 pixel -1 (bug #4742).
553
d7306fe6
DN
5542009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
555
019d2c4c
DN
556 * process.c (create_pty): Remove conditionals for no longer
557 supported systems: UNIPLUS and RTU.
558
ee6bacd4
DN
559 * xterm.c:
560 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
561
d7306fe6
DN
562 * alloc.c: Do not define struct catchtag.
563 * eval.c: Move struct catchtag definition ...
564 * lisp.h: ... here.
565
566 * image.c: Move png.h #include earlier to avoid warnings.
567
568 * xterm.c:
569 * xsmfns.c:
570 * xselect.c:
571 * xrdb.c:
572 * xmenu.c:
573 * xftfont.c:
574 * xfont.c:
575 * xfns.c:
576 * xfaces.c:
577 * xdisp.c:
578 * window.c:
579 * widget.c:
580 * w32xfns.c:
581 * w32uniscribe.c:
582 * w32term.c:
583 * w32select.c:
584 * w32reg.c:
585 * w32proc.c:
586 * w32menu.c:
587 * w32inevt.c:
588 * w32heap.c:
589 * w32font.c:
590 * w32fns.c:
591 * w32console.c:
592 * w32.c:
593 * w16select.c:
594 * vm-limit.c:
595 * unexsol.c:
596 * unexec.c:
597 * unexcw.c:
598 * unexaix.c:
599 * undo.c:
600 * tparam.c:
601 * textprop.c:
602 * terminfo.c:
603 * terminal.c:
604 * termcap.c:
605 * term.c:
606 * syntax.c:
607 * sound.c:
608 * sheap.c:
609 * search.c:
610 * scroll.c:
611 * region-cache.c:
612 * regex.c:
613 * ralloc.c:
614 * process.c:
615 * print.c:
b024548b
DN
616 * nsterm.m:
617 * nsselect.m:
618 * nsmenu.m:
619 * nsimage.m:
620 * nsfont.m:
621 * nsfns.m:
d7306fe6
DN
622 * msdos.c:
623 * minibuf.c:
624 * menu.c:
625 * marker.c:
626 * macros.c:
627 * keymap.c:
628 * keyboard.c:
629 * intervals.c:
630 * insdel.c:
631 * indent.c:
632 * gtkutil.c:
633 * ftxfont.c:
634 * ftfont.c:
635 * fringe.c:
636 * frame.c:
637 * fontset.c:
638 * font.c:
639 * fns.c:
640 * floatfns.c:
641 * filelock.c:
642 * fileio.c:
643 * emacs.c:
644 * editfns.c:
645 * dosfns.c:
646 * doprnt.c:
647 * doc.c:
648 * dispnew.c:
649 * dired.c:
650 * dbusbind.c:
651 * data.c:
652 * composite.c:
653 * coding.c:
654 * cmds.c:
655 * cm.c:
656 * chartab.c:
657 * charset.c:
658 * character.c:
659 * ccl.c:
660 * category.c:
661 * casetab.c:
662 * casefiddle.c:
663 * callproc.c:
664 * callint.c:
665 * bytecode.c:
666 * buffer.c:
667 * atimer.c: Include setjmp.h. (Bug#4643)
668
fd5f21e6
SM
6692009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
670
4c0354d7
SM
671 Remove leftover table unibyte_to_multibyte_table.
672 * character.c (unibyte_to_multibyte_table): Remove.
673 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
674 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
675 * character.h (UNIBYTE_TO_CHAR): New macro.
676 (MAKE_CHAR_MULTIBYTE): Use it.
677 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
678 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
679 (message_dolog, set_message_1):
680 * search.c (Freplace_match):
681 * editfns.c (Fcompare_buffer_substrings):
682 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
683 (concat):
684 * insdel.c (copy_text, count_size_as_multibyte):
685 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
686 * term.c (produce_glyphs):
687 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
688 * regex.c (RE_CHAR_TO_MULTIBYTE):
689 * cmds.c (internal_self_insert):
690 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
691
fd5f21e6
SM
692 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
693
4418646e
DN
6942009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
695
696 * puresize.h (BASE_PURESIZE): Increase to 1310000.
697
35f5c1d2
JB
6982009-10-16 Juanma Barranquero <lekktu@gmail.com>
699
700 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
701
a0cd8f6b
AR
7022009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
703
704 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
705 still needed under Tiger.
706
707 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
708
709 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
710 __Apple__.
711
712 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
713
01a8d3fa
KH
7142009-10-15 Kenichi Handa <handa@m17n.org>
715
716 * print.c (print_object): Escape a symbol like "2E10" too.
717
bf6c75c9 7182009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
719
720 Cleanups and changes for 64-bit compile under Snow Leopard.
721 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
722
723 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
724
c5959062 725 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
726 (ns_findfonts, nsfont_list_family): Use long format in printf, and
727 cast argument.
728 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 729 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
730
731 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
732
733 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
734 where appropriate.
735
736 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
737 where appropriate.
6e4780c5
JB
738 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
739 Use stringWithUTF8String.
bf6c75c9
AR
740 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
741
6e4780c5
JB
742 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
743 Add formal protocol mention to inheritance.
bf6c75c9
AR
744 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
745
6e4780c5
JB
746 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
747 Fix printf format.
bf6c75c9
AR
748 (ns_query_color): Use CGFloat where appropriate.
749 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
750 (EmacsScroller-mouseDown:) Use long format in printf, and cast
751 argument.
752
3d87f118
AR
753 * config.in (NS_HAVE_NSINTEGER): Drop.
754
a95c8102
AR
755 * dbusbind.c (dbus-method-return-internal)
756 (dbus-method-error-internal): Use long format in printf, and cast
757 argument.
758
759 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
760 in printf, and cast argument.
761
6873acca 762 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
763 cast argument.
764
9ec6f100
GM
7652009-10-11 Glenn Morris <rgm@gnu.org>
766
767 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
768
5be883cd
JD
7692009-10-08 Jan Djärv <jan.h.d@swipnet.se>
770
771 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
772 menu bar with a small width so it doesn't enlarge the frame.
773
d7a39b51
JB
7742009-10-08 Juanma Barranquero <lekktu@gmail.com>
775
776 * fontset.c (Fset_fontset_font): Fix typos in error messages.
777
0c2b6f8e
GM
7782009-10-06 Glenn Morris <rgm@gnu.org>
779
780 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
781 SOME_MACHINE_LISP (this enters indirectly via DOC).
782
e02131a2
EZ
7832009-10-05 Eli Zaretskii <eliz@gnu.org>
784
785 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
786
b4744254
EZ
7872009-10-04 Eli Zaretskii <eliz@gnu.org>
788
789 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
790 Doc fix.
791
dbf64827
JB
7922009-10-03 Martin Rudalics <rudalics@gmx.at>
793
794 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
795
e9a0aef8
MA
7962009-10-02 Michael Albinus <michael.albinus@gmx.de>
797
d528b1ce 798 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
799 used anymore outside fileio.c.
800
801 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
802
64eb2b56
JB
8032009-10-01 Juanma Barranquero <lekktu@gmail.com>
804
805 * lisp.h (Qdelete_directory_internal):
806 Declare, instead of Qdelete_directory.
807
808 * w32fns.c (Fsystem_move_file_to_trash): Use it.
809
9d28c33e
SM
8102009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
811
812 * eval.c (Fcalled_interactively_p): Add `kind' argument.
813
9d8f3bd9
MA
8142009-10-01 Michael Albinus <michael.albinus@gmx.de>
815
9d28c33e 816 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
817 Fdelete_directory. It is not a command anymore. It has no file
818 name handler.
819
9694740b
SM
8202009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
821
822 * xdisp.c (get_next_display_element): Use an enum in last change.
823
748e162f
KH
8242009-09-28 Kenichi Handa <handa@m17n.org>
825
9694740b 826 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
827 unibyte_display_via_language_environment in handling
828 Vnobreak_char_display.
829
17efd58d
AR
8302009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
831
832 * nsterm.h (ns_app_name): New extern variable.
833
834 * nsterm.m (ns_app_name): New variable.
835 (ns_term_init): Set and use it.
836 (ns_term_shutdown): Use it.
837
838 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
839 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
840
841 * nsfns.m (ns_set_name_iconic, ns_set_name)
842 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
843 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
844
9694740b
SM
845 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
846 Remove double-casting in client_data comparison.
31c2d412 847
3208cb35
YM
8482009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
849
850 * keyboard.c (make_lispy_event): Remember last wheel direction.
851 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
852
b7d552d6
GM
8532009-09-26 Glenn Morris <rgm@gnu.org>
854
855 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
856 internal.elc. Add term/pc-win.elc.
857 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
858 term/x-win.elc.
859 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
860 term/w32-win.elc.
861 (NS_SUPPORT): New.
862 (lisp): Add NS_SUPPORT.
863 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
864
4ff670a8
DR
8652009-09-25 David Reitter <david.reitter@gmail.com>
866
867 * nsmenu.m (EmacsMenu-clear): Recognize application menu
868 on Mac OS X 10.6+ (bug#4513).
869
feabfb6c
JB
8702009-09-24 Juanma Barranquero <lekktu@gmail.com>
871
872 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
873 some parts of Emacs code (like font selection) don't grok them.
874 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 875
de59072a
AS
8762009-09-24 Andreas Schwab <schwab@redhat.com>
877
878 * coding.c (decode_coding_iso_2022): Fix operator precedence.
879
a489517b
JB
8802009-09-24 Juanma Barranquero <lekktu@gmail.com>
881
882 * dired.c (Fdirectory_files): Fix typo in docstring.
883
0592970c
AR
8842009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
885
886 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
887 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
888 (EmacsScroller-setPosition:portion:whole:): Remove -display call
889 under GNUstep.
890 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
891
892 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
893 glyph advancement.
894
48e8a88b
AR
8952009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
896
897 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 898 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
899
900 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
901 deleted (bug #4492).
902
e14f0a78
AR
903 * nsfont.m (Vns_reg_to_script): New lisp variable.
904 (syms_of_nsfont): Declare it.
905 (ns_registry_to_script): New function.
906 (ns_get_req_script): Call it.
907 (ns_findfonts): Don't give up on non-unicode registry.
908
909 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
910
5b650faa
SM
9112009-09-20 Tom Tromey <tromey@redhat.com>
912
913 * eval.c (find_handler_clause): Make stack-trace-on-error work in
914 batch mode (bug#4228).
915
a489517b 9162009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
917
918 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 919 carefully. (Bug #4339)
0bae4e09 920
fcfe06f3
CY
9212009-09-18 Chong Yidong <cyd@stupidchicken.com>
922
d798ba87 923 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 924
31642728
AR
9252009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
926
927 * emacs.c (inhibit_x_resources): Update doc string for NS.
928 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 929 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
930
931 * nsterm.h (ns_no_defaults): Remove.
932
933 * nsterm.m (ns_no_defaults): Remove.
934 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
935 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
936 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
937 don't update the NSWindow itself.
938 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 939 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
940
941 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
942 ns_use_qd_smoothing.
943
944 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
945 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 946 (x-close-connection): Drop PSFlush() under OS X.
a489517b 947 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 948
8686ac71
JB
9492009-09-17 Juanma Barranquero <lekktu@gmail.com>
950
951 * emacs.c (inhibit_x_resources): New variable.
952 (main) [HAVE_NS]: Don't process --quick command line option.
953 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
954
955 * lisp.h (inhibit_x_resources): Declare it extern.
956
957 * w32reg.c (x_get_string_resource):
958 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
959
e227ba05
EZ
9602009-09-17 Eli Zaretskii <eliz@gnu.org>
961
362654a6
JB
962 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
963 Add lisp/term/internal.elc.
e227ba05 964
742d40e8
SM
9652009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
966
967 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
968 (bug#4461).
969
005bd5a2
DN
9702009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
971
972 * puresize.h (BASE_PURESIZE): Increase to 1290000.
973
974 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
975 (OBJECTS_MACHINE): Remove, unused.
976
f9af9719
SM
9772009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
978
979 * frame.c (x_get_resource_string): Remove unused.
980
0307c7d2
JD
9812009-09-15 Jan Djärv <jan.h.d@swipnet.se>
982
983 * xterm.c (x_new_font): Call change_frame_size before calling
984 x_set_window_size, in case frame size won't change.
985
986 * frame.c (x_set_font): Remove dead code.
987
428b13d6
SM
9882009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
989
990 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
991
5766c380
SM
9922009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
993
994 * lread.c (Fload): Don't output a message after loading an obsolete
995 package any more (done in Lisp now).
996
2fd0161b
CY
9972009-09-12 Chong Yidong <cyd@stupidchicken.com>
998
999 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1000
bc5e75b6
SM
10012009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1002
1003 * keymap.c (Fwhere_is_internal): Use nconc2.
1004
c31c985e
AM
10052009-09-11 Alan Mackenzie <acm@muc.de>
1006
1007 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1008 batch mode.
1009
78012bd2
AS
10102009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1011
1012 * xdisp.c (display_mode_element): Detect cycles.
1013
9d889332
SM
10142009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1015
1016 * keymap.c (where_is_internal): Don't erroneously return nil right after
1017 filling the cache.
1018 (where_is_internal_1): Fix up typo.
1019
7ab5d780
GM
10202009-09-11 Glenn Morris <rgm@gnu.org>
1021
1022 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1023 share a common doc-string.
1024
5238a749
SM
10252009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1026
66d77eda
SM
1027 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1028 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1029
5238a749
SM
1030 * keymap.c (QCadvertised_binding): New constant.
1031 (syms_of_keymap): Initialize it.
1032 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1033 if applicable.
1034
19f48442
SM
10352009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1036
50d4ba39
SM
1037 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1038 (parse_menu_item): Streamline since bindings are recomputed all the
1039 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1040 more and don't support lmenu's menu-alias any more either.
1041
a88a5372
SM
1042 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1043 (where_is_internal): Strip it down to only traverse the keymaps.
1044 Move the cache handling from Fwhere_is_internal to here.
1045 (Fwhere_is_internal): Move the handling of remapping and the choice of
1046 the best binding from where_is_internal to here.
1047 Unify the cached/noncached paths, so remapping is also handled
1048 correctly when the cache is used, and so the cache can be used to
1049 speed up remap-handling when applicable.
1050 Give preference to non-remapped bindings.
1051 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1052 non-remapped bindings.
1053 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1054 command remapping.
1055
19f48442
SM
1056 * xdisp.c (display_mode_element): Move list length limit from 50 to
1057 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1058
599498c3 10592009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1060
1061 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1062
f9b7b5ac
SM
10632009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1064
a53af587
JB
1065 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1066 (Bug#4334)
1067
f9b7b5ac
SM
1068 * keymap.c (where_is_internal): Filter out shadowed remappings.
1069 Assume that where_is_internal returns unshadowed bindings to simplify
1070 the code and get rid of the gotos. Use ASIZE.
1071
04f4b72d
JD
10722009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1073
4da146f2
JD
1074 * xterm.c (x_focus_changed): If we get a focusout and pointer
1075 is invisible, make it visible.
1076
04f4b72d
JD
1077 * xterm.h: Remove condition for declaration of
1078 x_*_window_to_frame.
1079
7cef7ce3
SM
10802009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1081
1082 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1083 initial terminal as well.
1084
a54fa5b7
JD
10852009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1086
1087 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1088 x_menubar_window_to_frame.
a54fa5b7
JD
1089
1090 * xterm.c: Remove declarations also in xterm.h
1091 (XTmouse_position): Do not return valid positions
1092 for clicks in the menubar and the toolbar for Gtk+.
1093
1094 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1095 if the widget for the event has the same top level as a frame,
1096 return the frame.
1097 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1098 internal windows, bug #4122.
1099 (x_non_menubar_window_to_frame): Remove.
1100
5a021dd0
GM
11012009-09-02 Glenn Morris <rgm@gnu.org>
1102
1103 * buffer.c (default-major-mode): Move most of the doc from here...
1104 (major-mode): ... to here.
1105
548fe2f3
NR
11062009-08-30 Nick Roberts <nickrob@snap.net.nz>
1107
1108 * process.c (wait_reading_process_output): Keep the descriptor
1109 when pty is used by a non-child process, e.g., in I/O buffer of
1110 GDB this allows inferior to be restarted.
1111
e0840eef
EZ
11122009-08-29 Eli Zaretskii <eliz@gnu.org>
1113
1114 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1115 both branches into one.
1116
82e98df4
SM
11172009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1118
1119 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1120 (main): Use enable-multibyte-characters rather than
1121 default-enable-multibyte-characters. Output a warning message when
1122 running a unibyte session.
1123
890617cb
YM
11242009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1125
1126 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1127 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1128 (copy_data_segment): Also copy __program_vars section.
1129 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1130 (dump_it) [LC_DYLD_INFO]: Use it.
1131
1132 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1133
e7adeadc
EZ
11342009-08-28 Eli Zaretskii <eliz@gnu.org>
1135
1136 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1137 $(SRC)/buildobj.h.
1138 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1139 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1140 $(SRC)/buildobj.h.
1141 (clean): Add buildobj.h.
1142
3ed8bbdc
TZ
11432009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1144
1145 * print.c (print_object): Set escapeflag to 1 when printing
1146 hashtable keys and values.
1147
155a6764
SM
11482009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1149
1150 * lread.c (read_integer): Use doubles (and potentially return a float
1151 number) as we do in string-to-number.
1152 (read1): Use strtol to read integers, signal errors on strtol's
1153 overflow and use floats if strtol's output is too large for
1154 Elisp integers.
1155
877610de
EZ
11562009-08-27 Eli Zaretskii <eliz@gnu.org>
1157
1158 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1159 (make-buildobj-SH): Fix last change.
1160 (SRC): Move to before where it's first used.
1161
ef73e7be
KH
11622009-08-27 Kenichi Handa <handa@m17n.org>
1163
550c8289
KH
1164 * process.c (send_process): Use encode_coding_object instead of
1165 encode_coding_string to perform eol-conversion even if the string
1166 is unibyte.
1167
60afa08d
KH
1168 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1169 character.
1170
ef73e7be 1171 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1172 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1173
7b3a82d7
DN
11742009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1175
5654bf63
DN
1176 * callproc.c (Fcall_process): Remove always true #if.
1177
7b3a82d7
DN
1178 * lisp.h: Replace #if 0 code for checking with text pointing to
1179 the --enable-checking configure flag.
1180
1181 * emacs.c (main): Mention the --enable-profiling configure flag
1182 instead of using CFLAGS.
1183
878bde49
KR
11842009-08-26 Ken Raeburn <raeburn@raeburn.org>
1185
1186 * Makefile.in (buildobj.h): New target.
1187 (doc.o): Depend on it.
1188 (temacs${EXEEXT}): Don't generate buildobj.lst.
1189 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1190 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1191 ($(BLD)/doc.$(O)): Depend on it.
1192 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1193 provided by Eli Zaretskii.)
1194 ($(TEMACS)): Don't generate buildobj.lst.
1195 * doc.c: Include buildobj.h.
1196 (buildobj): New static variable.
1197 (Fsnarf_documentation): Use it, instead of opening and reading
1198 buildobj.lst.
1199
1574224c
MA
12002009-08-25 Michael Albinus <michael.albinus@gmx.de>
1201
1202 * dbusbind.c (Fdbus_call_method)
1203 (Fdbus_call_method_asynchronously): Use English numeric format for
1204 timeout values in doc string.
1205
d9da2f45
KH
12062009-08-25 Kenichi Handa <handa@m17n.org>
1207
ef73e7be
KH
1208 * alloc.c (mark_char_table): New function.
1209 (mark_object): Use mark_char_table for a char-table.
1210
d9da2f45
KH
1211 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1212 (CHAR_TABLE_REF): Use it.
1213
c8edcc01
KR
12142009-08-23 Ken Raeburn <raeburn@raeburn.org>
1215
1216 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1217 before invoking the newly build emacs to check for load-path
1218 shadowing.
1219
7763401b
GM
12202009-08-22 Glenn Morris <rgm@gnu.org>
1221
1222 * Makefile.in (bootstrap_exe): New variable.
1223 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1224 Use ${bootstrap_exe}.
1225
729eadda
EZ
12262009-08-22 Eli Zaretskii <eliz@gnu.org>
1227
1228 * coding.h (encode_coding_string): Don't encode unibyte strings.
1229 (Bug#4047)
1230
eb4c6ace
MA
12312009-08-22 Michael Albinus <michael.albinus@gmx.de>
1232
1233 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1234
1235 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1236 intended as hotfix only.
1237 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1238
36e34d1b
AR
12392009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1240
1241 * nsterm.m (ns_get_color): Update documentation properly for last
1242 change, and clean up loose ends in the code left by it. Fix
1243 longstanding bug with 16-bit hex parsing, and add support for
1244 yet another X11 format (rgb:r/g/b) for compatibility.
1245 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1246 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1247
f983eb8a
SM
12482009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1249
1250 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1251
3f56d3c6
MA
12522009-08-20 Michael Albinus <michael.albinus@gmx.de>
1253
1254 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1255 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1256 (xd_initialize, xd_pending_messages): Check, whether
1257 $DBUS_SESSION_BUS_ADDRESS is set.
1258
fb641d68
YM
12592009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1260
1261 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1262
1263 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1264
cf59a374
GM
12652009-08-20 Glenn Morris <rgm@gnu.org>
1266
1267 * emacs.c (system-type): Doc fix.
1268
1373f3be
SM
12692009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1270
1271 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1272 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1273
058ed861
MA
12742009-08-18 Michael Albinus <michael.albinus@gmx.de>
1275
1373f3be
SM
1276 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1277 New functions.
058ed861
MA
1278 (xd_initialize): Revert change from 2009-08-16.
1279
563a866e 12802009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1281
1282 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1283 font-group vector, return nil.
5fc05db0 1284
e42bdf01
CY
12852009-08-17 Chong Yidong <cyd@stupidchicken.com>
1286
1287 * process.c (status_notify): Don't perform redisplay.
1288 (Fdelete_process, list_processes_1, process_send_signal):
1289 Expliticly perform redisplay.
1290 (wait_reading_process_output): Always check process status, but
1291 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1292
4230ab74
KR
12932009-08-17 Ken Raeburn <raeburn@raeburn.org>
1294
1373f3be 1295 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1296 (XFLOAT_INIT): New macro for storing a float value.
1297 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1298 * fns.c (sxhash): Copy out the value of a float in order to
1299 examine its bytes.
1300 * dbusbind.c (xd_append_arg): Likewise.
1301
4230ab74
KR
1302 * emacs.c (main): Don't call syms_of_data twice.
1303
a0645cdd
MA
13042009-08-16 Michael Albinus <michael.albinus@gmx.de>
1305
1306 * dbusbind.c (xd_initialize): Add connection file descriptor to
1307 input_wait_mask, in order to let select() detect, whether a new
1308 message has been arrived.
ca4f31ea 1309 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1310
485db0ba
MA
13112009-08-15 Michael Albinus <michael.albinus@gmx.de>
1312
1373f3be
SM
1313 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1314 New functions.
485db0ba
MA
1315
1316 * lisp.h (xd_pending_messages): Declare.
1317
1318 * keyboard.c (readable_events): Call xd_pending_messages.
1319
b5b98ff4
CY
13202009-08-15 Chong Yidong <cyd@stupidchicken.com>
1321
1373f3be 1322 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1323
f8354c6e
CY
1324 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1325
b5b98ff4
CY
1326 * buffer.c (set_buffer_internal_1)
1327 (swap_out_buffer_local_variables): Check for unbound local
1328 variables (Bug#4138).
1329
8b9fc636
EZ
13302009-08-14 Eli Zaretskii <eliz@gnu.org>
1331
1332 * process.c (create_pty): Fix last change.
1333
ce959360
CY
13342009-08-13 Chong Yidong <cyd@stupidchicken.com>
1335
1336 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1337 (xbm_load_image): Caller changed.
64b807c9 1338 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1339
c7baf7e9
NR
13402009-08-13 Nick Roberts <nickrob@snap.net.nz>
1341
1342 * process.c (create_pty): New function.
1343 (Fstart_process): Use it to allow Emacs to just associate a pty
1344 with the buffer. See associated change in gdb-mi.el.
1345 (list_processes_1): Deal with no program name.
1346 (start_process_unwind): Use pid == -2 to mean no process.
1347
1ac9108a
SM
13482009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1349
1350 * cmds.c (nonundocount): New global variable.
1351 (keys_of_cmds): Initialize it.
1352 (Fself_insert_command): Use it to combine upto 20 sequential chars
1353 into a single undo entry, just like the Qself_insert_command code in
1354 keyboard.c does.
1355 Call frame_make_pointer_invisible, also like the Qself_insert_command
1356 code in keyboard.c does.
1357 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1358 than its own local replacement for it.
1359
e267324c
KR
13602009-08-10 Ken Raeburn <raeburn@raeburn.org>
1361
1ac9108a 1362 * fns.c (concat): Don't re-set string length to its current value.
77437343 1363
1ac9108a
SM
1364 * coding.h (decode_coding_string, encode_coding_string):
1365 Use SBYTES macro.
f0bed503 1366
1ac9108a 1367 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1368 (doprnt): Merge with doprnt1, discarding lispstrings code.
1369 * lisp.h (doprnt_lisp): Don't declare.
1370
416e006d
JL
13712009-08-07 Juri Linkov <juri@jurta.org>
1372
1373 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1374
6f7d5780
DN
13752009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1376
1377 * print.c (syms_of_print): Undo previous change.
1378
f19a0f5b
TZ
13792009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1380
1381 * lread.c (read1, syms_of_lread): Read hashtables back from the
1382 readable format.
1383
1384 * print.c (print_preprocess, print_object): Print hashtables fully
1385 and readably.
1386 (syms_of_print): Provide 'hashtable-print-readable.
1387
b9173dc2
AR
13882009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1389
1390 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1391 no family set.
1392 (nsfont_open): Handle case when entity has no family.
1393
1586503c
AR
13942009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1395
1396 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1397 element, not a list, for match case.
1398
087048cd
KH
13992009-07-28 Kenichi Handa <handa@m17n.org>
1400
1401 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1402 rigidly.
1403
1404 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1405 font_parse_xlfd. Check font properties more rigidly.
1406
780c2506
DN
14072009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1408
31fd7c5c
JB
1409 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1410 bsd-common.h.
780c2506 1411
a8c0cc18
KH
14122009-07-27 Kenichi Handa <handa@m17n.org>
1413
1414 * xfaces.c (face_with_height): Call font_clear_prop.
1415
4fbe2306
CY
14162009-07-26 Chong Yidong <cyd@stupidchicken.com>
1417
111d9af3
CY
1418 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1419
1420 * xterm.c (x_term_init): Use Qx.
1421
4fbe2306
CY
1422 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1423
1ac9108a 1424 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1425 (ns_get_color): Revert 2009-07-16 change.
1426
beb0b7f9
EZ
14272009-07-25 Eli Zaretskii <eliz@gnu.org>
1428
1429 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1430 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1431
2baf5e76
KR
14322009-07-25 Ken Raeburn <raeburn@raeburn.org>
1433
1ac9108a
SM
1434 * coding.h (decode_coding_string, encode_coding_string):
1435 Use SCHARS macro.
8890e5f5 1436
2baf5e76 1437 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1438 (load_depth): Delete.
2baf5e76
KR
1439 (Qload_in_progress): New variable.
1440 (load_unwind): Don't reference load_depth or load_in_progress.
1441 (Fload): Likewise; specbind Qload_in_progress instead.
1442 (init_lread): Don't initialize load_depth.
1443 (syms_of_lread): Initialize and protect Qload_in_progress.
1444
1395c6f5
AR
14452009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1446
1447 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1448
4e2f36cf
AR
14492009-07-23 Yavor Doganov <yavor@gnu.org>
1450
1451 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1452
5dd9a6f7
AR
14532009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1454
1455 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1456 Bugs 3792, 3720, 2402.
1457 (ns_lookup_indexed_color): Check for bad index.
1458 (ns_index_color): Init unused slot to 0.
1459 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1460 Bug 3714, possibly 3082.
5dd9a6f7 1461
c902b920
JR
14622009-07-22 Jason Rumney <jasonr@gnu.org>
1463
1ac9108a
SM
1464 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1465 Position IME window at cursor (Bug#2570).
c902b920
JR
1466 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1467 (globals_of_w32fns): Dynamically load functions required above.
1468
1469 * w32term.c (w32_draw_window_cursor): Send message to reposition
1470 any IME window.
1471
090101cf
CY
14722009-07-21 Chong Yidong <cyd@stupidchicken.com>
1473
1474 * fileio.c: Revert 2009-07-16 changes.
1475 (Vauto_save_include_big_deletions): New variable.
1476 (Fdo_auto_save): Disable auto-save only if
1477 auto-save-include-big-deletions is nil.
1478
e6583e3d
CY
14792009-07-21 Chong Yidong <cyd@stupidchicken.com>
1480
1481 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1482 the overflowed pixels into account (Bug#3879).
1483
ece435a5
KR
14842009-07-21 Ken Raeburn <raeburn@raeburn.org>
1485
1486 * lread.c (load_depth): New variable.
1487 (Fload, load_unwind, init_lread): Set it to the load recursion
1488 depth; set load_in_progress as a simple boolean based on the
1489 current load_depth. (Bug#3892)
1490
40b2d973
AR
14912009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1492
1493 * nsfont.m (ns_has_attribute): Remove.
1494 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1495
10be7e0d
JL
14962009-07-18 Juri Linkov <juri@jurta.org>
1497
1498 * process.c (Fset_process_query_on_exit_flag): Mention killing
1499 a buffer in docstring.
1500
fa055055
KH
15012009-07-17 Kenichi Handa <handa@m17n.org>
1502
1503 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1504
042f7b69
YM
15052009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1506
1507 * nsfns.m (Fns_set_alpha): Remove function.
1508 (syms_of_nsfns): Don't defsubr it.
1509
1510 * nsterm.m (ns_get_color): Remove incompatible color formats.
1511 (ns_color_to_lisp): Generate #rrggbb color format string.
1512
4be941e3
RS
15132009-07-16 Richard Stallman <rms@gnu.org>
1514
1515 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1516 (Fset_buffer_auto_saved): Handle save_length = -2.
1517
4e6b227d
CY
15182009-07-16 Chong Yidong <cyd@stupidchicken.com>
1519
1520 * xterm.c (Qx_gtk_map_stock): New var.
1521
1522 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1523 of calling intern each time.
1524
a1856973
YM
15252009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1526
1527 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1528 does tiling.
1529
1530 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1531
497e54d8
KH
15322009-07-14 Kenichi Handa <handa@m17n.org>
1533
72d36834
KH
1534 * font.c (font_vconcat_entity_vectors): New function.
1535 (struct font_sort_data): New member font_driver_preference.
1536 (font_compare): Check font_driver_preference.
1537 (font_sort_entities): The format of the first argument changed.
1538 (font_delete_unmatched): Likewise.
1539 (font_list_entities): The return type changed.
1540 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1541 (font_find_for_lface): Adjuste for the above changes.
1542 Don't suppress the checking of C even if the repertory supports it.
1543 (Flist_fonts): Adjust for the above changes.
72d36834 1544
1ac9108a
SM
1545 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1546 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1547 Reject a font who has adstyle property that is different from a
1548 langname derived from registry property.
1ac9108a 1549 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1550
b6046155
EZ
15512009-07-13 Eli Zaretskii <eliz@gnu.org>
1552
1553 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1554 local copy of dirfilename.
1555
fb6b6049
KH
15562009-07-13 Kenichi Handa <handa@m17n.org>
1557
e2402a5e
KH
1558 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1559 against max_char.
1560
fb6b6049
KH
1561 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1562 calling XSYMBOL (sym).
1563
65156807
EZ
15642009-07-11 Eli Zaretskii <eliz@gnu.org>
1565
1ac9108a
SM
1566 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1567 New function.
1568 (directory_files_internal) [WINDOWSNT]:
1569 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1570 the filesystem of the directory is fast or slow.
1571
1572 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1573 file name.
1574 (is_slow_fs): New function.
1575 (stat): Use it to determine whether to issue more system calls to
1576 get accurate file attributes, when w32-get-true-file-attributes is
1577 `local'.
1578
e0ab5fcf
JD
15792009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1580
1581 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1582 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1583 parameter font-parameter as default to the font dialog.
1584
784ceded
KH
15852009-07-10 Kenichi Handa <handa@m17n.org>
1586
1587 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1588
fb8edc0b
EZ
15892009-07-09 Eli Zaretskii <eliz@gnu.org>
1590
1ac9108a 1591 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1592
fb8edc0b
EZ
1593 * w32.c (stat): Treat UNC file names as residing on remote
1594 drives. (Bug#3542)
1595
635c75b1
KH
15962009-07-09 Kenichi Handa <handa@m17n.org>
1597
1598 * fontset.c (fontset_find_font): Fix previous change.
1599
c1d5ce94
MA
16002009-07-08 Michael Albinus <michael.albinus@gmx.de>
1601
1602 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1603 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1604 error flag.
1605
edb61b39
KH
16062009-07-08 Kenichi Handa <handa@m17n.org>
1607
374bf7e4
KH
1608 * fontset.c (fontset_find_font): Fix the logic of handling
1609 charset_matched.
1610 (font_for_char): Delete unused var.
1611 (generate_ascii_font_name): Delete it.
1612
edb61b39
KH
1613 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1614
1615 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1616 (encode_coding_sjis): Fix the code range check.
1617
0f3f018c
CY
16182009-07-07 Chong Yidong <cyd@stupidchicken.com>
1619
1620 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1621 (Fexpand_file_name): Copy string data properly (Bug#3772).
1622
fcaf6f3a
JD
16232009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1624
1625 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1626 first MapNotify.
1627
6809ca75
KH
16282009-07-07 Kenichi Handa <handa@m17n.org>
1629
1630 * character.h (unibyte_has_multibyte_table): Delete extern.
1631 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1632
1633 * charset.c (Fset_charset_priority): Update charset_unibyte.
1634 (syms_of_charset): Initialize charset_unibyte.
1635
1636 * character.c (unibyte_has_multibyte_table): Delete it.
1637 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1638 charset_unibyte.
1639 (multibyte_char_to_unibyte_safe): Likewise.
1640 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1641
1ac9108a 1642 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1643 (x_produce_glyphs): Likewise.
1644
1645 * .gdbinit (xcharset): Fix the treating $arg0.
1646
ad9e2d54
EZ
16472009-07-04 Eli Zaretskii <eliz@gnu.org>
1648
1649 Emulation of `getloadavg' on MS-Windows.
1650 * w32.c: Include float.h
1651 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1652 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1653 (get_native_system_info, get_system_times): New functions.
1654 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1655 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1656 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1657 g_b_init_get_system_times, and num_of_processors.
1658
0a3472c7
JR
16592009-07-03 Jason Rumney <jasonr@gnu.org>
1660
1661 * w32term.c (w32_initialize): Use standard types.
1662
80904120
EZ
16632009-07-03 Eli Zaretskii <eliz@gnu.org>
1664
1665 * dired.c (Ffile_attributes): Decode user and group names by the
1666 locale's encoding. (Bug#3443)
1667
6978862d
DN
16682009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1669
f8d23104
DN
1670 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1671 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1672
1673 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1674
1675 * term.c (init_tty): Remove spurious #ifdef.
1676
6978862d
DN
1677 * m/mips.h: Mention this file is also used for netbsd.
1678 * m/pmax.h: Remove file.
1679
e044e4fc
JD
16802009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1681
1682 * xterm.h (struct x_display_info): Add invisible_cursor.
1683 (struct x_output): Add current_cursor.
1684
1685 * xterm.c (XTtoggle_invisible_pointer): New function.
1686 (x_define_frame_cursor): Don't define cursor if invisible or the
1687 same as before. Set current_cursor.
1688 (x_create_terminal): Set toggle_invisible_pointer_hook.
1689
1690 * xfns.c (make_invisible_cursor): New function.
1691 (x_set_mouse_color): Call make_invisible_cursor.
1692 Set current_cursor.
1693 (x_window): Set current_cursor.
1694
1695 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1696
1697 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1698 inserting a character.
1699 (read_avail_input): Call frame_make_pointer_visible.
1700
1701 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1702 (frame_make_pointer_invisible, frame_make_pointer_visible):
1703 New functions.
e044e4fc
JD
1704 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1705
1706 * frame.h: Declare frame_make_pointer_invisible and
1707 frame_make_pointer_visible.
1708 (struct frame): Add pointer_invisible.
1709
574c8efa
JD
17102009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1711
7b507248
JD
1712 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1713 frame isn't visible.
1714 (xg_frame_resized): If width/height is -1, get size of window
1715 from X server.
1716
1717 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1718 for MapNotify.
1719
835bdaa7 1720 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1721 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1722 (flush_and_sync): Reintroduce.
574c8efa 1723
3f1c6666 17242009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1725
31fd7c5c 1726 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1727
1728 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1729 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1730
1731 * frame.h: Declare Qsticky.
1732
cad9ef74
JD
1733 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1734
1735 * nsfns.m (ns_frame_parm_handlers): Ditto.
1736
1737 * frame.c: Declare Qsticky.
1738 (frame_parms): Add sticky.
1739
1740 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1741
1742 * xterm.h: Declare x_set_sticky.
1743
1744 * xterm.c (x_set_sticky): New function.
1745
69b16610
JD
1746 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1747 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1748 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1749
1750 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1751
1752 * frame.c: Qmaximized is new.
1753 (x_set_frame_parameters): Do not handle fullscreen specially.
1754 Only set width and height if explicitly set.
1755 (x_set_fullscreen): Handle Qmaximized.
1756 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1757 (syms_of_frame): Initialize Qmaximized.
1758
1ac9108a
SM
1759 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1760 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1761
1762 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1763 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1764 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1765 set gravity to NorthWestGravity when USE_GTK.
1766 (set_wm_state): New function.
31fd7c5c 1767 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1768 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1769 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1770 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1771 to x_real_positions and x_fullscreen_adjust.
1772
1773 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1774 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1775 flush_and_sync.
1776 (xg_height_changed): New function.
1777 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1778 and gtk_window_set_policy. Set frame gravity after parsing the
1779 geometry string.
3f1c6666
JD
1780 (xg_update_frame_menubar, free_frame_menubar)
1781 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1782 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1783 Remove calls to xg_frame_set_char_size.
1784
fd503d99
KH
17852009-07-01 Kenichi Handa <handa@m17n.org>
1786
1787 * keyboard.c (decode_keyboard_code): New function.
1788 (tty_read_avail_input): Decode the input bytes if necessary.
1789
1ac9108a
SM
1790 * coding.c (setup_coding_system):
1791 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1792 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1793 use Qno_conversion.
1794
24ed93fb
YM
17952009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1796
1797 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1798
99061dfc
CY
17992009-06-30 Chong Yidong <cyd@stupidchicken.com>
1800
1ac9108a 1801 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1802
ff90fbde
JR
18032009-06-30 Jason Rumney <jasonr@gnu.org>
1804
1805 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1806 is already loaded.
1807 Set user model ID if supported (bug#1849).
1808
5f445726
JM
18092009-06-29 Jim Meyering <meyering@redhat.com>
1810
1811 Remove useless if-before-xfree test.
1812 * nsfont.m (nsfont_close): Remove useless test.
1813 * term.c (delete_tty): Likewise.
1814 * w32.c (system_process_attributes): Likewise.
1815 * w32font.c (w32font_close): Likewise.
1816 * xfaces.c (x_free_gc): Likewise.
1817 * xselect.c (buffer): Likewise.
1818
b9607587
AS
18192009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1820
1821 * process.c (send_process): Keep decoded string in a local
1822 variable and protect it from GC. (Bug#3521)
1823
89ba96f4
EZ
18242009-06-28 Eli Zaretskii <eliz@gnu.org>
1825
1826 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1827 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1828
098a1589
CY
18292009-06-28 Chong Yidong <cyd@stupidchicken.com>
1830
485422be
CY
1831 * xdisp.c (start_display, handle_face_prop)
1832 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1833 (redisplay_window, try_window_id, produce_image_glyph):
1834 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1835
098a1589
CY
1836 * xterm.c (x_update_window_begin, x_new_focus_frame)
1837 (x_scroll_bar_handle_click, handle_one_xevent)
1838 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1839 (x_make_frame_visible, x_make_frame_invisible)
1840 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1841 code chunks that are now obsolete.
1842
78c38319
MA
18432009-06-28 Michael Albinus <michael.albinus@gmx.de>
1844
1845 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1846 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1847 for hours, when optimzation is enabled.
1848 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1849 (xd_read_message): Make them static.
1850
4189ed40
CY
18512009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1852
1853 * term.c (turn_on_face): Allow simultaneously bold and dim
1854 terminal faces (Bug#3530).
1855
cd9b5e16
CY
18562009-06-27 Chong Yidong <cyd@stupidchicken.com>
1857
4e23bedb
CY
1858 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1859
cd9b5e16
CY
1860 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1861 truncation glyphs (Bug#3686).
1862
07cc3c35
GM
18632009-06-27 Glenn Morris <rgm@gnu.org>
1864
1865 * m/pmax.h: Restore file, with only netbsd portions.
1866
31fd7c5c 18672009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1868
cd9b5e16 1869 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1870
42d4a64f
KH
18712009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1872
1873 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1874 the arg FORCE_SYMBOL.
1875
930fe55b 18762009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1877
1878 * fontset.c (fontset_find_font): When a usable rfont_def is found
1879 in a fallback font-group, make it the first element of the group.
1880
57ebc3fd
CY
18812009-06-24 Chong Yidong <cyd@stupidchicken.com>
1882
1883 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1884
f084f942
KH
18852009-06-24 Kenichi Handa <handa@m17n.org>
1886
1887 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1888 set for C.
1889 (fontset_font): Record the availability of a font for C both in
1890 the realized fontsets of the current one and the default one.
1891
2f686c87
DN
18922009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1893
1894 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1895 conditional, it is always defined on AIX.
1896
666e158e
MB
18972009-06-23 Miles Bader <miles@gnu.org>
1898
1899 * window.c (Vrecenter_redisplay): New variable.
1900 (syms_of_window): Initialize it.
1901 (Qtty): New extern declaration.
1902 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1903
c6da7cd2
JM
19042009-06-23 Jim Meyering <meyering@redhat.com>
1905
1ac9108a
SM
1906 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1907 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 1908 pointer dereferences are guaranteed to be valid.
c6da7cd2 1909
678dca3d
KH
19102009-06-23 Kenichi Handa <handa@m17n.org>
1911
74d75424
KH
1912 * emacs.c (main): Call init_font ().
1913
1914 * font.h (Vfont_log): Extern it.
1915 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1916
1917 * font.c (font_sort_entities, font_list_entities)
1918 (font_matching_entity, font_open_entity)
1919 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1920 (Vfont_log): Delete static.
1921 (font_log_env_checked): Delete this variable.
1922 (font_add_log): Don't check font_log_env_checked.
1923 (font_deferred_log): Check Vfont_log.
1924 (init_font): New function.
1925
678dca3d
KH
1926 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1927
1928 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1929
1930 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1931
1932 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1933
1934 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1935 (face_for_char): Don't call font_deferred_log here.
1936 (font_for_char): Likewise.
1937
8a668709
CY
19382009-06-22 Chong Yidong <cyd@stupidchicken.com>
1939
9a01ee33
CY
1940 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1941 rather than its background_width for drawing the overline and
1942 underline (Bug#489).
1943
1944 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1945 rather than its background_width for drawing the overline and
1946 underline (Bug#489).
ec7c9926
CY
1947 (xg_default_icon_file): New variable.
1948 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1949 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1950
8a668709
CY
1951 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1952 (load_overlay_strings): Remove externs.
1953 (fast_find_position): Function deleted.
1954 (mouse_face_from_buffer_pos): New function, based on
1955 fast_find_position. Correctly handle before-strings,
1956 display-strings, and after-strings (Bug#1220).
1957 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1958
4d4c02d8
CY
19592009-06-21 Chong Yidong <cyd@stupidchicken.com>
1960
1ac9108a 1961 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
1962 (move_it_in_display_line_to, move_it_in_display_line_to)
1963 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1964
70243478
CY
19652009-06-21 Chong Yidong <cyd@stupidchicken.com>
1966
1967 * Branch for 23.1.
1968
13087e59
JR
19692009-06-21 Jason Rumney <jasonr@gnu.org>
1970
1971 * w32term.c (keyboard_codepage): New static variable.
1972 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1973 (w32_read_socket) [WM_CHAR]: Use it to decode character
1974 input (bug#3237).
1975 (w32_initialize): Initialize it.
1976 (codepage_for_locale): New function.
1977
4735b74e
KR
19782009-06-20 Ken Raeburn <raeburn@raeburn.org>
1979
1980 * process.c (status_message): Pass Faset index argument as a lisp
1981 object, so as to work with USE_LISP_UNION_TYPE.
1982
0e727afa
YM
19832009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1984
1985 * coding.c (Ffind_coding_systems_region_internal):
1986 Cache checked characters.
1987
cf299835
KH
19882009-06-18 Kenichi Handa <handa@m17n.org>
1989
1ac9108a 1990 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 1991
90f20d94
AS
19922009-06-18 Andreas Schwab <aschwab@redhat.com>
1993
1994 * xdisp.c (redisplay_internal): Check that the frame is still
1995 live after redisplay of its windows.
1996 (redisplay_windows): Check that the window is still live.
1997
7f1faf1c
KH
19982009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1999
2000 * coding.c (detect_coding_utf_16): Fix previous change.
2001
cc13543e
KH
20022009-06-16 Kenichi Handa <handa@m17n.org>
2003
2004 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2005 UTF-16 by checking the dispersion of Eth and Oth bytes.
2006
977b85f4
AS
20072009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2008
2009 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2010
66bd43d1
KH
20112009-06-15 Kenichi Handa <handa@m17n.org>
2012
2013 * process.c (status_message): Fix previous change. Be sure to
2014 decode a localized string.
2015
cb5ca9c5
YM
20162009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2017
2018 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2019 add comment explaining why.
2020
ec7709ba 20212009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2022
ec7709ba 2023 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2024
4b7f335c
AR
20252009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2026
2027 * nsfont.m (ns_attribute_value): Remove.
2028 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2029 (ns_has_attribute): Shrink the normal range.
2030 (ns_findfonts): Don't worry about requested spec in determining
2031 need for synthItal.
e41820ee 2032 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2033
73b26103
SZ
20342009-06-14 Seiji Zenitani <zenitani@mac.com>
2035
2036 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2037
5753e4da
KH
20382009-06-11 Kenichi Handa <handa@m17n.org>
2039
2040 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2041 overhang for the static composition case.
2042
3561b671
KH
20432009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2044
5753e4da
KH
2045 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2046 overhang for the automatic composition case.
2047
3561b671
KH
2048 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2049 composition case.
2050
852bbd41
CY
20512009-06-10 Chong Yidong <cyd@stupidchicken.com>
2052
2053 * xdisp.c (get_next_display_element): When handling wrap-prefix
2054 and line-prefix, treat \n as a control character (bug#3502).
2055
9903d1e6
KH
20562009-06-10 Kenichi Handa <handa@m17n.org>
2057
2058 * font.c (font_parse_family_registry): Fix for one-char foundry.
2059 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2060
0bcbaaaa
CY
20612009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2062
2063 * process.c (status_message): Fix handling of multibyte signal
2064 string (Bug#3499).
2065
40aa3f13
JM
20662009-06-09 Jim Meyering <meyering@redhat.com>
2067
1f80c7e2
CY
2068 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2069 color name is missing.
40aa3f13 2070
72d51285
KH
20712009-06-09 Kenichi Handa <handa@m17n.org>
2072
2073 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2074 FROM-CODE and TO-CODE are codepoints of CHARSET.
2075
c1d04d84
AR
20762009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2077
2078 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2079
20802009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2081
2082 Changes to support :script/:lang/:otf in NS font driver.
2083 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2084 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2085 indicate not part of font driver interface, and change callers.
2086 (ns_get_family): Remove pointless null check.
2087 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2088 ns_spec_to_descriptor, ns_descriptor_to_entity.
2089 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2090 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2091 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2092 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2093 (ns_get_req_script, ns_accumulate_script_ranges)
2094 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2095 New functions.
2096 (nsfont_list, nsfont_match): Use ns_findfonts.
2097 (nsfont_open): Use font descriptor instead of traits.
2098 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2099 (dump_glyphstring): Rename to ns_dump_glyphstring.
2100
c7eb9816
AR
2101 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2102
c1d04d84
AR
2103 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2104
2105 * fontset.c (fontset_from_font): Remove NS-specific code.
2106
ec7709ba 21072009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2108
2109 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2110 nonactive windows.
2111
31fd7c5c 21122009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2113
1ac9108a 2114 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2115
68852c13 21162009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2117
2118 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2119
6756cd1d
CY
21202009-06-07 Chong Yidong <cyd@stupidchicken.com>
2121
2122 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2123 account for the overflowing of newlines into the last glyph on the
2124 display line (Bug#3482).
2125
28bf482a
DR
21262009-06-05 David Reitter <david.reitter@gmail.com>
2127
ec7709ba
JB
2128 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2129 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2130 Fns_selection_exists_p, Fns_selection_owner_p.
2131
fdb55376
JR
21322009-06-03 Jason Rumney <jasonr@gnu.org>
2133
2134 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2135 available. (Bug#3379)
2136
05129fbe
KH
21372009-05-29 Kenichi Handa <handa@m17n.org>
2138
1ac9108a
SM
2139 * coding.c (get_translation_table):
2140 Check Venable_character_translation.
05129fbe 2141
ec7709ba 21422009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2143
ec7709ba
JB
2144 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2145 (x_make_frame_visible): Move frame to front rather than calling
15891144 2146 ns_raise_frame().
ec7709ba 2147 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2148 isn't key window.
ec7709ba 2149 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2150 drawRect may be called by NSView even if the frame is hidden.
2151
ec7709ba
JB
2152 * nsfns.m (Fx_create_frame): Follow other ports in
2153 determining visibility; default to t. Ensure async_visible is set.
15891144 2154
21f73755
EZ
21552009-05-23 Eli Zaretskii <eliz@gnu.org>
2156
2157 * dired.c (Ffile_attributes): Doc fix.
2158
34001e41
CY
21592009-05-22 Chong Yidong <cyd@stupidchicken.com>
2160
2161 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2162
46306a17
SM
21632009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2164
2165 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2166 and xfont_scratch_props.
2167 (syms_of_xfont): Do it here instead.
2168 (xfont_find_ccl_program): Delete, unused.
2169 (xfont_open): Delete unused var `i'.
2170
ef6e0694
KH
21712009-05-21 Kenichi Handa <handa@m17n.org>
2172
2173 * fontset.c (Qlatin): Don't make it static.
2174
46306a17
SM
2175 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2176 New functions.
ef6e0694
KH
2177 (xfont_scripts_cache, xfont_scratch_props): New variables.
2178 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2179 (xfont_list_pattern): Argument changed. Callers changed.
2180 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2181 (xfont_list): Don't reject a font spec with :script property.
2182 (xfont_has_char): Fix setting of encoding.
2183 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2184 xfont_scratch_props.
2185
21862009-05-19 Kenichi Handa <handa@m17n.org>
2187
46306a17 2188 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2189 Callers changed.
2190
21912009-05-18 Kenichi Handa <handa@m17n.org>
2192
2193 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2194
ac71ced7
SM
21952009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2196
2197 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2198 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2199
1c6d1051
YM
22002009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2201
2202 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2203 (x_delete_terminal): Dissociate resource database from display and
2204 then call XrmDestroyDatabase before closing display.
2205
9b9b779c
AR
22062009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2207
2208 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2209 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2210 whether selected frame is viable before raising it (based on patch
2211 by David Reitter), and improve commentary.
2212 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2213
cccd42d5
KH
22142009-05-15 Kenichi Handa <handa@m17n.org>
2215
2216 * font.c (Ffont_spec): Check arguments.
2217
337fbd17
CY
22182009-05-14 Chong Yidong <cyd@stupidchicken.com>
2219
2220 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2221 weight when testing attributes (Bug#3282).
2222
47a6002f
JD
22232009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2224
2225 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2226 what we expect to get in the next ConfigureNotify event.
2227
9cb363db
YM
2228 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2229 before Xft one (Bug#1696).
2230
b9126609
CY
22312009-05-07 David Reitter <david.reitter@gmail.com>
2232
2233 * nsfns.m (Fx_display_planes): Compute bitplanes using
2234 NSBitsPerPixelFromDepth (Bug#3207).
2235
27a69fd9
CY
22362009-05-10 Chong Yidong <cyd@stupidchicken.com>
2237
2238 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2239
00f37552
TTN
22402009-05-10 Ulrich Mueller <ulm@gentoo.org>
2241
2242 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2243
2d82a920
DR
22442009-05-07 David Reitter <david.reitter@gmail.com>
2245
ec7709ba
JB
2246 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2247 Respect mouse face background.
2d82a920 2248
46b0d52d
DR
22492009-05-07 David Reitter <david.reitter@gmail.com>
2250
ec7709ba
JB
2251 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2252 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2253 in ns_update_begin and ns_update_end.
2254
ce1b23bb
SM
22552009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2256
5996e1b7
SM
2257 * nsfns.m (ns_get_screen): Rewrite.
2258 Don't presume selected-frame is of type `ns'.
2259
ba98e3a0
SM
2260 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2261 all drivers.
2262
ce1b23bb
SM
2263 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2264
bcda200f
YM
22652009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2266
2267 * keyboard.h (add_user_signal): Fix typo in extern.
2268
2269 * lisp.h (add_user_signal): Remove extern.
2270
2271 * unexelf.c (unexec): Consider a section to precede the .bss section
2272 if its addresses overlap that of .bss.
2273 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2274 instead of dumping process.
2275
864660a2
SM
22762009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2277
2278 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2279
50da4e56
SM
22802009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2281
2282 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2283
51520a1a
DN
22842009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2285
2286 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2287 any statements.
2288
409ea3a1
AS
22892009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2290
59c4c60f
AS
2291 * process.c (read_process_output): Make sure the current buffer is
2292 always restored.
2293
409ea3a1
AS
2294 * coding.c (record_conversion_result): Don't modify
2295 Vlast_code_conversion_error for successful result.
2296 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2297
56f00ed2
KH
22982009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2299
2300 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2301 (load_charset_map): Remove unnecessary code.
56f00ed2 2302
4491c9d2
DR
23032009-04-30 David Reitter <david.reitter@gmail.com>
2304
35f5b128 2305 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2306 through f24.
2307
6970f632
CY
23082009-04-30 Chong Yidong <cyd@stupidchicken.com>
2309
2310 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2311
2312 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2313 face_at_buffer_position.
2314 (face_before_or_after_it_pos, get_next_display_element)
2315 (note_mouse_highlight): Update face_at_buffer_position call.
2316
2317 * term.c (term_mouse_highlight):
2318 * msdos.c (IT_note_mouse_highlight):
2319 * fontset.c (Finternal_char_font):
35f5b128 2320 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2321
2322 * dispextern.h (face_at_buffer_position): Update prototype.
2323
0c616f63
KH
23242009-04-30 Kenichi Handa <handa@m17n.org>
2325
35f5b128 2326 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2327
ad3aaf33
AS
23282009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2329
2330 * callproc.c (Fcall_process): Fix GC protection. Make sure
2331 current buffer is always restored.
2332
c3c963a0
YM
23332009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2334
2335 * atimer.c (init_atimer): Also clear stopped_atimers.
2336
2337 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2338
7e3386cb
YM
2339 * process.c (create_process): Clean up merger residues of
2340 2008-07-17 change.
2341
91f68422
CY
23422009-04-29 Ulrich Mueller <ulm@gentoo.org>
2343
2344 * lread.c (Vread_circle): New variable.
2345 (read1): Disable recursive read if Vread_circle is nil.
2346
24b34550
KH
23472009-04-29 Kenichi Handa <handa@m17n.org>
2348
2349 * fontset.h (set_default_ascii_font): Delete extern.
2350
2351 * fontset.c (set_default_ascii_font): Delete this unused function.
2352
2353 * frame.c (x_set_font): When ARG is a font-object, check if the
2354 font-object matches with the ASCII font-spec of the frame's
9c358bda 2355 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2356
77bf07e1
AS
23572009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2358
2359 * fns.c (Flocale_info): Protect vector from GC during decoding.
2360
2361 * process.c (Fstart_process): Protect argv strings from GC during
2362 encoding.
2363
2c55aacf
AS
23642009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2365
2366 * sysdep.c: Include <ctype.h>.
2367
b892d3c9
DR
23682009-04-27 David Reitter <david.reitter@gmail.com>
2369
35f5b128 2370 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2371 Remove commented-out code.
2372
9d0644c4
JB
23732009-04-26 Johan Bockgård <bojohan@gnu.org>
2374
2375 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2376
b7053016
JR
23772009-04-25 Jason Rumney <jasonr@gnu.org>
2378
2379 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2380
4e8231f3
YM
23812009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2382
2383 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2384 Swap bytes in short integer if fringe bitmap width > 8.
2385
493dcf2c
KH
23862009-04-23 Kenichi Handa <handa@m17n.org>
2387
2388 * xfaces.c (Fx_list_fonts): If a font size is specified in
2389 PATTERN, set it in returned scalable fonts.
2390
401e9e57
CY
23912009-04-22 Chong Yidong <cyd@stupidchicken.com>
2392
708e05dc
CY
2393 * keyboard.c (Fset_input_meta_mode): Doc fix.
2394
2395 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2396
1ac9108a 2397 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2398
2399 * coding.c (Fterminal_coding_system): Doc fix.
2400
2401 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2402 (Fx_display_pixel_height, Fx_display_planes)
2403 (Fx_display_color_cells, Fx_server_max_request_size)
2404 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2405 (Fx_display_mm_height, Fx_display_mm_width)
2406 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2407 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2408 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2409 (check_x_display_info): Handle terminal objects instead of
2410 terminal ids.
2411
401e9e57
CY
2412 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2413 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2414 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2415 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2416
df80c7f0
KH
24172009-04-21 Kenichi Handa <handa@m17n.org>
2418
5a8f12af 2419 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2420 (font_score): Check AVGWIDTH too.
908567ef 2421
df80c7f0
KH
2422 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2423 worst case.
1ac9108a
SM
2424 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2425 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2426
705af33f
JR
24272009-04-19 Jason Rumney <jasonr@gnu.org>
2428
2429 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2430 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2431
2432 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2433 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2434 get_phys_cursor_geometry.
2435
b71ac3dd 2436 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2437 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2438 using get_phys_cursor_geometry.
2439
2440 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2441 correctly calculated.
2442
dc2933eb
JD
24432009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2444
1ac9108a
SM
2445 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2446 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2447 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2448 is deprecated.
2449
973e7849
AS
24502009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2451
2452 * font.c (font_put_frame_data): Use xfree instead of free.
2453
314d66f4
JB
24542009-04-17 Juanma Barranquero <lekktu@gmail.com>
2455
2456 * w32font.c (Qja, Qko): Remove declarations.
2457 (syms_of_w32font): Don't DEFSYM them.
2458
cf702558
CY
24592009-04-17 Chong Yidong <cyd@stupidchicken.com>
2460
2461 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2462
2463 * font.h (Qja, Qko): Extern them.
2464
2465 * ftfont.c (Qja, Qko): Remove declarations.
2466
2467 * xfont.c (Qja, Qko): Remove declarations.
2468
b50504f5
KH
24692009-04-17 Kenichi Handa <handa@m17n.org>
2470
bde25748
KH
2471 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2472 string from a vector to handle Latin-1 characters correctly.
2473
b50504f5
KH
2474 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2475 entity even if the cache hits.
2476
f4646fff
AS
24772009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2478
2479 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2480 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2481
e7deaab0
AS
2482 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2483 * lisp.h: Adjust prototypes.
2484
0a0e7d49
CY
24852009-04-16 Chong Yidong <cyd@stupidchicken.com>
2486
2487 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2488 change (Bug#3003).
2489
3c908a57
KH
24902009-04-16 Kenichi Handa <handa@m17n.org>
2491
1ac9108a 2492 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2493
2494 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2495 adstyle.
2496
2497 * ftfont.c (Qja, Qko): Don't make them static.
2498 (enum ftfont_cache_for): New enum.
2499 (fc_charset_table): Undo the previous change.
2500 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2501 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2502 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2503 non-scarable font, try to get AVERAGE_WIDTH.
2504 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2505 Change ft_face_cache from a list of a hash-table. Don't check
2506 `ja' and `ko' adstyle here.
2507 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2508 FTFONT_CACHE_FOR_CHARET.
2509 (ftfont_get_charset): Undo the previous change.
1ac9108a 2510 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2511 (ftfont_close): Likewise.
2512 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2513
2514 * font.c (font_sort_entites): Change the meaning of the arg
2515 BEST-ONLY. Don't optimize for VEC of lenght 1.
2516 (font_select_entity): Just return the value of font_sort_entites.
2517
2518 * xfaces.c (merge_face_vectors): Reflect font properties in
2519 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2520 font_clear_prop if a face attribute doesn't change.
2521
3c908a57
KH
2522 * charset.h (charset_ksc5601): Extern it.
2523
2524 * charset.c (charset_ksc5601): New variable.
2525 (Fdefine_charset_internal): Set charset_ksc5601.
2526 (init_charset_once): Initialize charset_ksc5601 to -1.
2527
d65859c3
DN
25282009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2529
2530 * fileio.c (history_delete_duplicates): Remove unused declaration.
2531
2532 * callint.c (history_delete_duplicates): New declaration.
2533 (Fcall_interactively): Remove command history duplicates when
2534 history_delete_duplicates is true.
2535
3ba010e5
EZ
25362009-04-14 Eli Zaretskii <eliz@gnu.org>
2537
2538 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2539
06f19b91
KH
25402009-04-14 Kenichi Handa <handa@m17n.org>
2541
2542 * font.c (Ffont_info): Fix docstring. Fix the second element of
2543 the returned value (bug#2949).
2544
2cce8bfc
CY
25452009-04-14 Chong Yidong <cyd@stupidchicken.com>
2546
2547 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2548
d156542d
KH
25492009-04-14 Kenichi Handa <handa@m17n.org>
2550
2551 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2552 encoding charset is ascii_compatible.
2553
2554 * charset.c (Fdefine_charset_internal): Make charset
2555 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2556 code_offset is 0, and covers all ASCII characters.
2557
86fa089e
SM
25582009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2559
2560 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2561 (ns_string_to_pasteboard_internal):
2562 * nsmenu.m (process_dialog):
2563 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2564 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2565 * lisp.h (Fx_load_color_file): Declare.
2566
a8a3728b
KH
25672009-04-13 Kenichi Handa <handa@m17n.org>
2568
1ac9108a 2569 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2570 (font_select_entity): Suppress the code to optimize for the same
2571 kind of fonts.
2572 (font_load_for_lface): Get a font that supports at least ASCII
2573 characters.
2574
2575 * ftfont.c (Qja, Qko): New variables.
2576 (fc_charset_table): Delete uniquifier data for iso8859-1.
2577 (ftfont_get_latin1_charset): New function.
2578 (get_adstyle_property): New function.
2579 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2580 bitmap fonts.
2581 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2582 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2583 `ko' or `ja'.
2584 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2585 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2586 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2587 property.
2588 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2589 (syms_of_ftfont): DEFSYM Qja and Qko.
2590
483670b5
KH
25912009-04-09 Kenichi Handa <handa@m17n.org>
2592
12b55765
KH
2593 * charset.c (map_charset_chars): For a charset of `superset'
2594 method, fix calculation of code range.
2595
483670b5
KH
2596 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2597 from the list of extra properties.
2598 (font_clear_prop): Be sure to delete `:name' font property.
2599
57d3b93b
KH
26002009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2601
b4b2c2ca
YM
2602 * dispnew.c (redraw_overlapping_rows): Fix detection of
2603 overlapping for topmost and bottommost rows.
2604
1ac9108a 2605 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2606
472c3609
JR
26072009-04-06 Jason Rumney <jasonr@gnu.org>
2608
2609 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2610
ab193662
KH
26112009-04-06 Kenichi Handa <handa@m17n.org>
2612
2613 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2614
2615 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2616
0c26f026
KH
26172009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2618
2619 * ftfont.c (ftfont_open): Fix checking of the return value of
2620 FT_Load_Char. Fix setting font->underline_thickness.
2621
e173bbce
CY
26222009-04-04 Chong Yidong <cyd@stupidchicken.com>
2623
2624 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2625 (Fterminal_parameters, Fterminal_parameter)
2626 (Fset_terminal_parameter): In doc string, refer to terminal
2627 objects rather than terminal ids.
2628
693a2698
EZ
26292009-04-04 Eli Zaretskii <eliz@gnu.org>
2630
2631 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2632 ret_lim_data. (Bug#2867)
2633
d5221487
CY
26342009-04-03 Chong Yidong <cyd@stupidchicken.com>
2635
2636 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2637 so they don't get wider than the window, matching 2006-01-23
2638 change to the partner function in xdisp.c (Bug#2800).
2639
223509a3
KH
26402009-04-03 Kenichi Handa <handa@m17n.org>
2641
2642 * print.c (print_object): Make each lowest sub_char_table start a
2643 new line (Bug#2866).
2644
74fcd0b1
KH
26452009-04-02 Kenichi Handa <handa@m17n.org>
2646
2647 * fontset.c (fontset_font): Record no-font when a fontset
2648 explicitly tells not to try another font-specs.
2649
c542407d
SM
26502009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2651
2652 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2653
e3869731
KH
26542009-03-30 Kenichi Handa <handa@m17n.org>
2655
d8d2f142
KH
2656 * fontset.c (fontset_from_font): Specify only registry in a
2657 font-spec for all characters supported by that registry.
2658
e3869731
KH
2659 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2660 even if HAVE_M17N_FLT is not defined.
2661
5da5f805
CY
26622009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2663
2664 * ftfont.c: Conditionalize prototyping and use of
2665 ftfont_variation_glyphs.
2666
ab226c50
SM
26672009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2668
9628fed7
SM
2669 * frame.c (delete_frame): Work around compiler bug.
2670
2671 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2672 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2673 Some more EMACS_INT.
2674 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2675
2676 * xdisp.c (dump_glyph): Fix typo.
2677
ae19ba7c
SM
2678 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2679 (adjust_markers_gap_motion, adjust_markers_for_delete)
2680 (adjust_markers_for_insert, adjust_point)
2681 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2682 (make_gap, copy_text, count_size_as_multibyte, insert)
2683 (insert_and_inherit, insert_before_markers)
2684 (insert_before_markers_and_inherit, insert_1)
2685 (count_combining_before, count_combining_after, insert_1_both)
2686 (insert_from_string, insert_from_string_before_markers)
2687 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2688 (insert_from_buffer_1, adjust_after_replace)
2689 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2690 (replace_range_2, del_range, del_range_1, del_range_byte)
2691 (del_range_both, del_range_2, modify_region)
2692 (prepare_to_modify_buffer, signal_before_change)
2693 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2694 for buffer positions and sizes.
2695 * lisp.h: Adjust prototypes accordingly.
2696
2697 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2698 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2699 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2700
ab226c50
SM
2701 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2702
46dfb8fb
JD
27032009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2704
2705 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2706 lines and columns so we keep the same pixel height and width.
2707
2708 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2709 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2710 (x_handle_net_wm_state): New function to update frame parameter
2711 fullscreen.
2712 (x_term_init): Initialize atoms for _NET_WM_STATE.
2713
2714 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2715
d347e494
SM
27162009-03-27 Kevin Ryde <user42@zip.com.au>
2717
2718 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2719 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2720 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2721 (Fgpm_mouse_stop): Pass that new parameter.
2722 * termhooks.h (close_gpm): Adjust prototype.
2723
84db11d6
SM
27242009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2725
c95a5008
SM
2726 * lisp.h (Fx_focus_frame): Declare.
2727
84db11d6
SM
2728 * callint.c (Fcall_interactively): For '^' just delegate the work to
2729 handle-shift-selection.
2730 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2731
0a1958d6
CY
27322009-03-24 Chong Yidong <cyd@stupidchicken.com>
2733
0bfdff23
CY
2734 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2735
0a1958d6
CY
2736 * data.c (Qinteractive_form): New variable.
2737 (Finteractive_form): Use it.
2738
2739 * eval.c (Fcommandp): Use Qinteractive_form.
2740
58aec0d6
JR
27412009-03-24 Jason Rumney <jasonr@gnu.org>
2742
2743 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2744 Calculate total size precisely. Decode environment variables
2745 before substituting. (Bug#38)
2746
553dd618
KH
27472009-03-24 Kenichi Handa <handa@m17n.org>
2748
2749 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2750 encoding (Bug#2722).
553dd618 2751
c39ea606
JD
27522009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2753
2754 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2755 that gdpy is set.
2756
bc9b2b5e
AM
27572009-03-22 Alan Mackenzie <acm@muc.de>
2758
2759 * callint.c (Finteractive): Clarify the doc string - even
2760 promptless elements need \n separators.
2761
9f995a76
JR
27622009-03-22 Jason Rumney <jasonr@gnu.org>
2763
2764 * w32term.c (syms_of_w32term): Doc fix for
2765 x-use-underline-position-properties.
2766
22749e9a
EZ
27672009-03-21 Eli Zaretskii <eliz@gnu.org>
2768
2769 * w32.c (getpwuid): Change argument type to unsigned.
2770 (struct w32_id): Change type of `rid' member to unsigned.
2771 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2772 argument ID to unsigned. All callers changed.
2773 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2774
e00553bf
EZ
27752009-03-20 Eli Zaretskii <eliz@gnu.org>
2776
2777 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2778 negative, produce a float value.
2779
2780 * dired.c (make_uid, make_gid): New functions.
2781 (Ffile_attributes): Use them to avoid negative UID and GID.
2782
f761d6b6
JB
27832009-03-20 Juanma Barranquero <lekktu@gmail.com>
2784
2785 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2786 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2787 Fix typos in docstrings.
2788
d507f8d7
KH
27892009-03-19 Kenichi Handa <handa@m17n.org>
2790
2791 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2792 changed, use font_load_for_lface to get a new font object.
2793 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2794
2795 * frame.c (x_set_font): Handle the case that ARG is a cons.
2796
c68845e0
GM
27972009-03-19 Glenn Morris <rgm@gnu.org>
2798
2799 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2800
bfa49dd1
CY
28012009-03-19 Chong Yidong <cyd@stupidchicken.com>
2802
2803 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2804
8458d4c1
KH
28052009-03-19 Kenichi Handa <handa@m17n.org>
2806
2807 * charset.c (load_charset_map_from_file): When a mapfile can't be
2808 loaded, signal an error.
2809
78e7d1fe
EZ
28102009-03-18 Eli Zaretskii <eliz@gnu.org>
2811
2812 * dired.c (Ffile_attributes): Make sure UID and GID are always
2813 positive, even if the value is too large for a positive EMACS_INT.
2814 Doc fix.
2815
2816 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2817
5da9fdfa
YM
28182009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2819
2820 * xmenu.c (xdialog_show): Move Fredisplay call ...
2821 (Fx_popup_dialog): ... here.
2822
7519c40d
SM
28232009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2824
2825 * dired.c (file_name_completion): Disable the first optimization just
2826 installed, since it is not implemented correctly.
2827
2cd298e2
SM
28282009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2829
2830 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2831 only if the entry can affect bestmatch.
2cd298e2
SM
2832 Stop the search early, as Ftry_completion already does.
2833
48d37adf
CY
28342009-03-17 Chong Yidong <cyd@stupidchicken.com>
2835
e10c9c93 2836 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2837
9286b16a
CY
28382009-03-15 Chong Yidong <cyd@stupidchicken.com>
2839
2840 * keyboard.c (parse_menu_item): Don't display remappings as menu
2841 equivalent bindings (Bug#788).
2842
f7b146dc
JR
28432009-03-15 Jason Rumney <jasonr@gnu.org>
2844
2845 * w32term.h (WM_EMACS_PAINT): New message.
2846 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2847 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2848 before passing to lisp thread. (Bug#950)
2849
f761d6b6 28502009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2851
d93f9575
CY
2852 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2853 variable as it was never reset.
2854 (ns_term_init): Remove initialization of Lisp-settable defaults
2855 and ns_expand_space.
2856 (-setPanelFromDefaultValues): Remove ns_expand_space.
2857 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2858 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2859 i.e. no additional spacing, similar to Carbon port.
2860
d93f9575
CY
2861 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2862 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2863
305018ec
JD
28642009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2865
2866 * sound.c (alsa_configure): Remove call to deprecated
2867 snd_pcm_sw_params_set_xfer_align.
2868
f761d6b6 28692009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2870
2871 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2872 after clicking in a detached tool bar.
2873 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2874
46e722a9
SM
28752009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2876
348db3dd
SM
2877 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2878 int/Lisp_Object mixup).
46e722a9 2879
a3d16f39
KH
28802009-03-13 Kenichi Handa <handa@m17n.org>
2881
2882 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2883 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2884 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2885 (set_fontset_font): Change ARG to a vector. Handle range_list in
2886 ARG correctly.
2887 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2888 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2889 the above change.
2890 (fontset_from_font): Fix previous change.
fe24f56a 2891 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2892 entry. If FONTSET is the default fontset, don't set the extra
2893 slot of the returning char-table.
2894
b066e6b6
JB
28952009-03-12 Juanma Barranquero <lekktu@gmail.com>
2896
2897 * nsfns.m (Fx_close_connection): Doc fix.
2898 (Fns_do_applescript): Reflow docstring.
2899 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2900 (Fx_display_pixel_width, Fx_display_pixel_height)
2901 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2902 Fix typos in docstrings.
2903 (Fns_set_alpha): Fix typos in error messages.
2904
d472514e 29052009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 2906
d472514e 2907 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
2908 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2909 were used for such events.
2910
d472514e
JB
2911 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2912 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 2913
d472514e 2914 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
2915 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2916
fb930676
KH
29172009-03-11 Kenichi Handa <handa@m17n.org>
2918
ff85581a
KH
2919 * font.h (font_open_by_spec): Extern it.
2920
c50b7e98
KH
2921 * font.c (font_open_by_spec): New function.
2922 (font_open_by_name): Use font_open_by_spec.
2923
fb930676
KH
2924 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2925 fontset of the frame.
2926
2927 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2928 modify the default font of frames that use this fontset.
2929 (num_auto_fontsets): New variable.
2930 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2931 name. Be sure to set FONTSET_ASCII to the correct font name.
2932 (update_auto_fontset_alist): New function.
2933
df4e8455
JB
29342009-03-11 Juanma Barranquero <lekktu@gmail.com>
2935
2936 * makefile.w32-in: Update dependencies.
2937
0a375797
AR
29382009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2939
2940 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2941
61313fa3
SM
29422009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2943
2944 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2945
b55103fb
CY
29462009-03-10 Chong Yidong <cyd@stupidchicken.com>
2947
2948 * lread.c (Feval_buffer): Doc fix.
2949
dde2559c
KH
29502009-03-09 Kenichi Handa <handa@m17n.org>
2951
2952 * charset.c (Qfile_name_handler_alist): Extern it.
2953 (load_charset_map_from_file): Temporarily bind
2954 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2955
df4e8455 29562009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2957
47f588bb
GM
2958 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2959 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2960
4ddf94bd
AR
29612009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2962
4c9bdfc2
AR
2963 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2964 (x_set_window_size): Change back to calculated method of setting
2965 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
2966 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2967 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2968
fe41ae9e
AR
2969 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2970
4c9bdfc2
AR
2971 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2972 accelerator in parens under GNUstep.
2973
825d0875
KH
29742009-03-06 Kenichi Handa <handa@m17n.org>
2975
2976 These changes are to detect incorrect composition sequence without
f3b3be74 2977 looking ahead the source. (Bug#2370)
825d0875
KH
2978
2979 * coding.h: Include "composite.h".
2980 (enum compisition_state): New enum.
2981 (struct compisition_status): New struct.
2982 (struct iso_2022_spec): New member cmp_status.
2983 (struct emacs_mule_spec): New struct.
2984 (struct coding_system): New members ctext_extended_segment_len and
2985 embedded_utf_8. Change the union member
2986 spec.emacs_mule_full_support to spec.emacs_mule.
2987
2988 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2989 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 2990 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
2991 (ADD_COMPOSITION_DATA): New arg nbytes.
2992 (emacs_mule_char): New arg cmp_status.
2993 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2994 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2995 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2996 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2997 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2998 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2999 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3000 (EMACS_MULE_COMPOSITION_END): New macro.
3001 (emacs_mule_finish_composition): New function.
3002 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3003 (decode_coding_emacs_mule): Avoid long looking ahead while
3004 handling composition.
3005 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3006 (ENCODE_COMPOSITION_RULE): New macro.
3007 (finish_composition): New function.
3008 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3009 (DECODE_COMPOSITION_START): New implementation.
3010 (DECODE_COMPOSITION_END): Likewise.
3011 (STORE_COMPOSITION_RULE): New macro.
3012 (decode_coding_iso_2022): Avoid long looking ahead while handling
3013 composition, CTEXT extended segment, and embedded UTF-8.
3014 (setup_coding_system): For a coding of type iso-2022, reset
3015 CODING_ISO_EXTSEGMENT_LEN (coding) and
3016 CODING_ISO_EMBEDDED_UTF_8 (coding).
3017 (get_translation): Delete arguments last_block, from_nchars,
3018 to_nchars. Callers changed.
3019 (produce_chars): Don't modify charbuf. Adjusted for the change of
3020 get_translation.
98a326f7 3021 (produce_composition): Adjust for the new annotation sequence.
825d0875 3022 (handle_composition_annotation): Likewise.
98a326f7 3023 (consume_chars): Adjust for the change of get_translation.
825d0875 3024
ccbc4452
AR
30252009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3026
4ddf94bd 3027 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3028
988a7ddb
KH
30292009-03-05 Kenichi Handa <handa@m17n.org>
3030
3031 * font.c (font_select_entity): New function.
3032 (font_find_for_lface): Use font_select_entity to select a font.
3033
3034 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3035 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3036 font with C restriction.
3037
98a326f7 30382009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3039
be1bce46 3040 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3041
10ea2b82
JR
30422009-03-04 Jason Rumney <jasonr@gnu.org>
3043
2c93b248 3044 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3045 characters that have already been read. (Bug#2569)
2c93b248 3046
10ea2b82
JR
3047 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3048 Log an error message if check_image_size failed.
3049 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3050 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3051
71a0c011
EZ
30522009-03-02 Eli Zaretskii <eliz@gnu.org>
3053
3054 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3055 when decoding process output.
3056
2f63bba8
RS
30572009-03-01 Richard M Stallman <rms@gnu.org>
3058
3059 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3060
3061 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3062
0a9564cb
EZ
30632009-02-28 Eli Zaretskii <eliz@gnu.org>
3064
3065 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3066 (decode_coding_emacs_mule, decode_coding_iso_2022)
3067 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3068 (decode_coding_raw_text, decode_coding_charset)
3069 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3070 Honor inhibit-eol-conversion. (Bug #2186)
3071
449148b3
JR
30722009-02-28 Jason Rumney <jasonr@gnu.org>
3073
3074 * coding.c (detect_coding_charset): If not checking latin extra,
3075 fail on characters between 0x80 and 0xA0. (Bug#2354)
3076
a4aee864
EZ
30772009-02-28 Eli Zaretskii <eliz@gnu.org>
3078
3079 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3080 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3081
d88bee5a
GM
30822009-02-27 Glenn Morris <rgm@gnu.org>
3083
3084 * callint.c (Finteractive): Doc fix.
3085
a808f22d
KH
30862009-02-27 Kenichi Handa <handa@m17n.org>
3087
3088 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3089
caf8d60c
CY
30902009-02-27 Chong Yidong <cyd@stupidchicken.com>
3091
3092 * font.c (font_style_to_value): Set value for unknown symbols to
3093 100 instead of 255.
b61137ea
CY
3094 (weight_table, slant_table, width_table): Treat "unspecified" as
3095 the default value.
caf8d60c 3096
1a0de25c
JB
30972009-02-26 Juanma Barranquero <lekktu@gmail.com>
3098
3099 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3100
8fc45744
JB
31012009-02-25 Juanma Barranquero <lekktu@gmail.com>
3102
107bd7d1
JB
3103 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3104 error as soon as a recursive load is detected.
8fc45744 3105
f097e223
AR
31062009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3107
3108 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3109 before caching.
3110
8810a12f
KH
31112009-02-24 Kenichi Handa <handa@m17n.org>
3112
3113 * fontset.c (fontset_find_font): Fix the condition for checking
3114 unavailable font.
3115
2c7d1565
GM
31162009-02-24 Glenn Morris <rgm@gnu.org>
3117
3118 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3119 whitespace that confuses documentation.
3120
a20878b6
MB
31212009-02-23 Miles Bader <miles@gnu.org>
3122
3123 * process.c (Flist_system_processes, Fprocess_attributes)
3124 (syms_of_process): Rename `system-process-attributes' to
3125 `process-attributes'.
3126
b3b58c01
AS
31272009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3128
1b3b981b
AS
3129 * coding.h (struct coding_system): Make safe_charsets a pointer to
3130 unsigned char.
3131 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3132 being 255.
3133 (SAFE_CHARSET_P): Likewise.
3134 (setup_iso_safe_charsets): Properly setup safe_charsets.
3135 (Fdefine_coding_system_internal): Likewise.
3136 (setup_coding_system): Likewise. Remove unneeded casts.
3137 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3138 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3139 unneeded casts.
3140
b3b58c01
AS
3141 * insdel.c (del_range_2): Don't modify gap contents when called
3142 from decode_coding_object. (Bug#1809)
3143
0b6f228c
CY
31442009-02-21 Chong Yidong <cyd@stupidchicken.com>
3145
3146 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3147 Qfont_object.
3148 (Ftype_of): Recognize font objects.
3149
3150 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3151
3152 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3153 moved to data.c.
3154
52f8870b
AR
31552009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3156
3157 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3158 async_iconified. Based on a patch by Christian Lynbech
3159 <christian.lynbech@tieto.com>.
3160 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3161
7087d5e9
GM
31622009-02-20 Glenn Morris <rgm@gnu.org>
3163
3164 * syntax.c (Fskip_chars_forward): Fix doc typo.
3165
41d2ceef
CY
31662009-02-20 Chong Yidong <cyd@stupidchicken.com>
3167
3168 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3169
1a3b7ca6
CY
31702009-02-19 Chong Yidong <cyd@stupidchicken.com>
3171
3172 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3173
73cce38d
KH
31742009-02-19 Kenichi Handa <handa@m17n.org>
3175
3176 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3177 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3178
a51092ee
DN
31792009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3180
3181 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3182
c423ecca
KH
31832009-02-18 Kenichi Handa <handa@m17n.org>
3184
3185 * font.c (font_check_otf_features): Fix handling of `nil' element.
3186 (Ffont_spec): Describe :lang and :otf in the docstring.
3187
4c1958f4
AS
31882009-02-16 Andreas Schwab <schwab@suse.de>
3189
3190 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3191 string.
3192
5704f39a
KH
31932009-02-16 Kenichi Handa <handa@m17n.org>
3194
3195 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3196 (Bug#1723)
5704f39a 3197
8f0085aa
CY
31982009-02-14 Chong Yidong <cyd@stupidchicken.com>
3199
a057d86a 3200 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3201
3202 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3203 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3204
aff01dd9
EZ
32052009-02-14 Eli Zaretskii <eliz@gnu.org>
3206
3207 * msdos.c (MAX_SCREEN_BUF): New macro.
3208 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3209 Encode the entire run of glyphs sharing the same face, instead of
3210 doing that one glyph at a time (fixes a bug with displaying
3211 double-size characters).
3212
ba301db3
AR
32132009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3214
3215 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3216
3217 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3218 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3219 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3220
3221 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3222 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3223
51d861de
SM
32242009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3225
3226 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3227 invisible areas.
3228
7fed8996
JR
32292009-02-12 Jason Rumney <jasonr@gnu.org>
3230
631ea4fb
JR
3231 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3232 (add_font_entity_to_list): Call check_face_name even when family
3233 is unspecified.
3234
cb4a3e42
JR
3235 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3236 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3237 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3238
7fed8996 3239 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3240 raster fonts. (Bug#2219)
7fed8996 3241
895416e3
KH
32422009-02-12 Kenichi Handa <handa@m17n.org>
3243
3244 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3245 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3246 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3247 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3248 (find_automatic_composition): While looking forward and backward,
3249 check static composition. Fix where to stop looking forward.
3250 (composition_adjust_point): Fix checking of static composition.
3251 (Fcomposition_get_gstring): Pay attention to
1dacf998 3252 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3253
3254 * lisp.h (fast_looking_at): Extern it.
3255
3256 * search.c (fast_looking_at): New function.
3257
51d861de 3258 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3259 <struct glyph>.u.cmp.to.
3260 (append_composite_glyph): Likewise.
3261
51d861de 3262 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3263 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3264 composition.
51d861de 3265 (append_composite_glyph): Adjust for the change of
895416e3
KH
3266 <strcut glyph>.u.cmp.to.
3267
8510724d
JB
32682009-02-11 Juanma Barranquero <lekktu@gmail.com>
3269
3270 * casetab.c (init_casetab_once):
3271 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3272 * font.c (font_update_lface):
3273 * fontset.c (Fnew_fontset):
3274 * ftfont.c (ftfont_drive_otf):
3275 * xfont.c (xfont_open):
3276 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3277
294fa707
SM
32782009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3279
3280 * fileio.c (Fwrite_region): !NILP -> CONSP.
3281
b5bfebec
AS
32822009-02-10 Andreas Schwab <schwab@suse.de>
3283
3284 * process.c (send_process): Properly relocate pointer into data
adab88bd 3285 when using encoded data. (Bug#2272)
b5bfebec 3286
cb84a2be
KH
32872009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3288
3289 * coding.c (detect_coding_charset): Fix previous change.
3290
89e09428
JR
32912009-02-08 Jason Rumney <jasonr@gnu.org>
3292
3293 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3294 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3295
4470a277
AS
32962009-02-07 Andreas Schwab <schwab@suse.de>
3297
3298 * unexelf.c (unexec): Fix error message.
3299
3175b12a
AR
33002009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3301
3302 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3303 when modal window is active. (Bug #2152)
3175b12a
AR
3304 (applicationShouldTerminate:): Remove now-unneeded while loop
3305 around NSRunAlertPanel.
3306
3307 * nsmenu.m (popupSession): New file-global variable.
3308 (pop_down_menu): End the popupSession before closing dialog.
3309 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3310 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3311 don't query NSApp for events (just sleep instead).
3312
8434d0b8
EZ
33132009-02-07 Eli Zaretskii <eliz@gnu.org>
3314
51d861de
SM
3315 * coding.c (syms_of_coding) <translation-table-for-input>:
3316 Modify doc string to discourage use for character code unification.
8434d0b8 3317
aa82edfd
CY
33182009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3319
3320 * atimer.c (run_timers): Update pending_atimers.
3321
2d283c7c
CY
33222009-02-06 Chong Yidong <cyd@stupidchicken.com>
3323
eb306cab
CY
3324 * image.c (svg_load_image): Fix last change.
3325
2d283c7c
CY
3326 * xfns.c (Fx_create_frame): Signal an error if no font is
3327 found (Bug#2147).
3328
4d8e170e
JB
33292009-02-05 Juanma Barranquero <lekktu@gmail.com>
3330
3331 * character.c (syms_of_character) <script-representative-chars>:
3332 Fix typo in docstring.
3333
c96169a0
AR
33342009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3335
3336 * nsmenu.m (pop_down_menu): New function.
3337 (ns_popup_dialog): Call it on unwind.
3338 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3339 call timer_check() (Bug#2154).
3340 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3341 handling_signal is set.
3342 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3343
31fd7c5c 3344 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3345
3346 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3347
3348 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3349
51d861de
SM
3350 * keyboard.c (poll_for_input_1, handle_async_input):
3351 Set handling_signal under HAVE_NS.
c96169a0 3352
aacd8ba1
GM
33532009-02-04 Glenn Morris <rgm@gnu.org>
3354
3355 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3356
4cb75c4b
KH
33572009-02-04 Kenichi Handa <handa@m17n.org>
3358
3359 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3360
3361 * charset.c (Fchar_charset): New optional arg restriction.
3362
3363 * coding.h (coding_system_charset_list): Extern it.
3364
3365 * coding.c (coding_system_charset_list): New function.
3366
3367 * composite.c: Include coding.h and termhooks.h.
3368 (composition_gstring_p): Fix for the terminal case.
3369 (composition_gstring_width): Likewise.
3370 (fill_gstring_body): Likewise.
3371 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3372 the frame.
3373 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3374 is within a composition.
867d4bb3 3375 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3376
3377 * term.c (encode_terminal_code): Fix handling of composition.
3378 (produce_composite_glyph): For static composition, get pixel_width
3379 from struct composition.
3380
826ba17e
AS
33812009-02-02 Andreas Schwab <schwab@suse.de>
3382
3383 * unexelf.c (unexec): Handle unaligned bss offset.
3384
8ad093db
AR
33852009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3386
3387 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3388 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3389
8ad093db
AR
3390 * keyboard.c (handle_interrupt): Don't call
3391 quit_throw_to_read_char() under NS.
d0a76a6e 3392
8ad093db
AR
3393 * blockinput.h: Remove NS-specific code.
3394
4d18a7a2
DN
33952009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3396
db878925
DN
3397 * dispnew.c (window_change_signal): Don't try to get the size of a
3398 suspended tty frame.
3399 * term.c (Fresume_tty): Resize if the size has changed while the
3400 tty was suspended.
3401
4d18a7a2
DN
3402 * alloc.c (mark_stack): Properly conditionalize previous change.
3403
8984df7c
JB
34042009-01-30 Juanma Barranquero <lekktu@gmail.com>
3405
3406 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3407 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3408 Remove; this code is not used on Windows.
3409
75f4f1ac
EZ
34102009-01-30 Eli Zaretskii <eliz@gnu.org>
3411
3412 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3413 EOLs that also has stray ^M characters.
3414
07a1e794
JB
34152009-01-30 Juanma Barranquero <lekktu@gmail.com>
3416
3417 * atimer.c (run_timers, alarm_signal_handler):
3418 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3419 * w32inevt.c (w32_console_read_socket):
3420 * w32term.c (w32_read_socket):
3421 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3422
a8b11cc9
CY
34232009-01-30 Chong Yidong <cyd@stupidchicken.com>
3424
3425 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3426 Initialize it as a relative filename pattern.
3427 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3428 (Fcall_process_region): Simplify temp file creation using
3429 temporary-file-directory.
3430
c279587b
EZ
34312009-01-29 Eli Zaretskii <eliz@gnu.org>
3432
3433 * msdos.c: Rename pending_signals to msdos_pending_signals.
3434 (sig_suspender, sigprocmask): Adjust.
3435
a8fe3242
CY
34362009-01-29 Chong Yidong <cyd@stupidchicken.com>
3437
3438 * keyboard.c (pending_signals): New var.
3439 (poll_for_input, input_available_signal, init_keyboard): Set it.
3440 (process_pending_signals): New function.
3441
3442 * lisp.h (QUIT): Check pending_signals instead of
3443 interrupt_input_pending. Use process_pending_signals.
3444
51d861de 3445 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3446
51d861de 3447 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3448
3449 * sysdep.c (emacs_write): Use process_pending_signals.
3450
3451 * xterm.c (XTread_socket): Update pending_signals.
3452
3453 * w32term.c (w32_read_socket): Update pending_signals.
3454
3455 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3456
6570a1c4
KH
34572009-01-29 Kenichi Handa <handa@m17n.org>
3458
3459 * xftfont.c (xftfont_has_char): New function.
3460 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3461
d72a4afa
AR
34622009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3463
3464 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3465 under GNUstep.
3466 (ns_query_color): New declaration.
3467
3468 * nsterm.m (ns_confirm_quit): New variable.
3469 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3470 (EmacsApp-applicationShouldTerminate:): Use it.
3471 (EmacsPrefsController): Let user set it.
3472 (ns_query_color): New function.
3473 (ns_defined_color): Use it.
3474 (ns_initialize): Drop.
3475 (ns_term_init): Add two lines from ns_initialize(), and set
3476 input_interrupt_mode to nil.
3477
3478 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3479 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3480
9fe78804
KH
34812009-01-28 Kenichi Handa <handa@m17n.org>
3482
3483 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3484 (fontset_get_font_group): Remember that no font-group is specified
3485 for C.
9fe78804 3486
fa57de36
CY
34872009-01-27 Chong Yidong <cyd@stupidchicken.com>
3488
930600e9
CY
3489 * fns.c (concat): Check for string overflow (bug#1787).
3490
fa57de36
CY
3491 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3492 Quadruple undo limits (bug#1501).
3493
7179ce7b
KH
34942009-01-27 Kenichi Handa <handa@m17n.org>
3495
3496 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3497 directly use GT_Get_Char_index.
3498
3499 * xftfont.c (struct xftfont_info): New member `index'.
3500
3501 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3502 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3503
5be8fcc0
CY
35042009-01-26 Kenichi Handa <handa@m17n.org>
3505
3506 * fontset.c (fontset_find_font): Fix handling of non-cons return
3507 value of fontset_get_font_group.
3508 (fontset_font): Revert last change.
3509
19ae3e61
JR
35102009-01-26 Jason Rumney <jasonr@gnu.org>
3511
3512 * w32font.c (w32font_list_internal): Return quickly if registry is
3513 unknown. Simplify final return.
3514 (add_font_entity_to_list): Break complex logic down into more
3515 manageable chunks. Move unknown registry check to
3516 w32font_list_internal.
3517
8612b71a
AR
35182009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3519
3520 Changes to remove Feval calls from GUI under NS.
3521
d8038940
JB
3522 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3523 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3524 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3525
3526 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3527 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3528 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3529 instead of NON_ASCII_KEYSTROKE_EVENT.
3530 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3531 (EmacsApp-applicationShouldTerminate:): Query user.
3532 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3533 instead of Feval.
3534
3535 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3536
3537 * keyboard.c (kbd_buffer_get_event): Check for it.
3538 (keys_of_keyboard): Define lispy keys for
3539 ns-put/unput-working-text.
3540
3541 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3542 versions.
3543 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3544
6288ae55
CY
35452009-01-25 Chong Yidong <cyd@stupidchicken.com>
3546
3547 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3548 setting current_buffer directly. (Bug#2044)
6288ae55 3549
289e7f8f
CY
35502009-01-24 Chong Yidong <cyd@stupidchicken.com>
3551
5ce87308 3552 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3553 any work. (Bug#1952, bug#1990).
5ce87308 3554
64cc3cf6 3555 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3556
b3243e6f
AR
35572009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3558
3559 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3560 (ns_no_defaults): New declaration.
3561 (main): Use it.
e0d2e69a 3562
d900b2af 3563 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3564
d900b2af 3565 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3566
d900b2af
AR
3567 * nsterm.m (ns_no_defaults): New variable.
3568 (ns_initialize): Don't read defaults when ns_no_defaults.
3569 (EmacsView-readSelectionFromPasteboard:)
3570 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3571 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3572 (ns_dumpglyphs_stretch): New function.
3573 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3574 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3575
e0d2e69a
AR
3576 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3577
3ac71f5d
CY
35782009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3579
3580 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3581 call for Sparc64.
3582
3fe53a83
AR
35832009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3584
3585 * nsfns.m:
3586 * nsgui.h:
3587 * nsmenu.m:
3588 * nsselect.m:
3589 * nsterm.h:
3590 * nsterm.m: Remove '23' comments that indicated code added during
3591 update from emacs-20 -> emacs-23.
3592
10f87c6f 35932009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3594
3595 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3596 ns_alternate_modifier. (Bug#1217)
a3b53a85 3597
c7cef62d
AR
3598 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3599 Display all shortcuts, including those w/o super modifier.
3600
575fb8bd
AR
3601 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3602
918b848b
CY
36032009-01-22 Chong Yidong <cyd@stupidchicken.com>
3604
3605 * fileio.c (Vwrite_region_post_annotation_function)
3606 (Vwrite_region_annotation_buffers): New vars.
3607 (build_annotations_unwind): Just reset
3608 Vwrite_region_annotation_buffers.
3609 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3610 Call write-region-post-annotation-function.
3611 (build_annotations): Add to Vwrite_region_annotation_buffers if
3612 buffer changes.
3613
a39e2539
AR
36142009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3615
3616 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3617 Tiger.
51d861de
SM
3618 * nsfns.m (ns_do_applescript):
3619 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3620
35ed44db
AR
36212009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3622
3623 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3624
cbe0b5bf
AR
36252009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3626
3627 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3628
6049d3a0
AR
3629 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3630
3631 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3632 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3633 handle Ctrl-tab. (Bug#1841)
3634 (ns_get_color): Use unsigned long long for scanned hex string value.
3635 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3636 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3637 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3638 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3639 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3640 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3641 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3642
d3810c21 3643 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3644 DPI. (Bug#1316)
d3810c21
AR
3645 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3646 values in onTiger section.
4c7077c3 3647
e301e634
CY
36482009-01-19 Chong Yidong <cyd@stupidchicken.com>
3649
7f82490b
CY
3650 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3651 Check return value of font_spec_from_name.
64cc3cf6 3652 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3653
3654 * font.c (font_spec_from_name): Return Qnil if font name could not
3655 be parsed.
3656 (font_parse_name): Treat a `?' character as part of an XLFD.
3657
e301e634
CY
3658 * fns.c (Fsubstring): Doc fix.
3659
1c0db158
KH
36602009-01-19 Kenichi Handa <handa@m17n.org>
3661
51d861de 3662 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3663 (ftfont_list): Likewise.
3664
acf20901
JB
36652009-01-18 Juanma Barranquero <lekktu@gmail.com>
3666
fff4e459
JB
3667 * dbusbind.c (Fdbus_register_signal):
3668 * process.c (conv_sockaddr_to_lisp):
3669 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3670
acf20901
JB
3671 * callproc.c (Fgetenv_internal): Doc fix.
3672
e7abcdfb
CY
36732009-01-16 Chong Yidong <cyd@stupidchicken.com>
3674
3675 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3676 it is not even used.
3677
b60861e6
GM
36782009-01-16 Glenn Morris <rgm@gnu.org>
3679
3680 * font.c (Ffont_variation_glyphs): Silence compiler.
3681
8db52afe
JB
36822009-01-15 Juanma Barranquero <lekktu@gmail.com>
3683
3684 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3685 Reported by David Robinow <drobinow@gmail.com>.
3686
4cddb209
KH
36872009-01-15 Kenichi Handa <handa@m17n.org>
3688
51d861de 3689 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3690
f247f67b
JR
36912009-01-14 Jason Rumney <jasonr@gnu.org>
3692
3693 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3694 never a fontset. (Bug#1562)
f247f67b 3695
f56a4450
KH
36962009-01-14 Kenichi Handa <handa@m17n.org>
3697
3698 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3699 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3700
4e99855e
CY
37012009-01-13 Chong Yidong <cyd@stupidchicken.com>
3702
3703 * font.c (font_clear_prop): If clearing the family, clear the font
3704 width index too.
3705
fff4e459 3706 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3707
24f01470
JB
37082009-01-12 Juanma Barranquero <lekktu@gmail.com>
3709
3710 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3711 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3712 functions, use sizeof.
3713
a41240a3
MR
37142009-01-12 Martin Rudalics <rudalics@gmx.at>
3715
3716 * keyboard.c (read_char): Fix case where last_nonmenu_event
3717 returned a bad value with submenus. (Bug#447)
3718
944636b8
CY
37192009-01-12 Chong Yidong <cyd@stupidchicken.com>
3720
3721 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3722 family, clear the font width index too.
3723
0dad7c6f
JR
37242009-01-11 Jason Rumney <jasonr@gnu.org>
3725
3726 * keyboard.c (cmd_error_internal): Exit when errors occur before
3727 frame creation and not in daemon mode. (Bug#1836)
3728
7c2363af
CY
37292009-01-10 Chong Yidong <cyd@stupidchicken.com>
3730
3731 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3732 of a display vector, backtrack.
3733 (try_window_reusing_current_matrix): Check glyph type before
3734 referencing charpos member.
3735
97b1b294
EZ
37362009-01-10 Eli Zaretskii <eliz@gnu.org>
3737
3738 Fix Bug #876:
3739
3740 * coding.c (inhibit_null_byte_detection): New variable.
3741 (detect_coding, detect_coding_system): Don't pay attention to null
3742 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3743 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3744 <inhibit-iso-escape-detection>: Doc fix.
3745
4624b6e3
JR
37462009-01-09 Jason Rumney <jasonr@gnu.org>
3747
3748 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3749 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3750 Only report Unicode Plane 2 fonts as unicode-sip.
3751
323b840c
CY
37522009-01-09 Chong Yidong <cyd@stupidchicken.com>
3753
51d861de
SM
3754 * xfaces.c (Fx_font_family_list): Delete function.
3755 Move compatibility version to faces.el.
323b840c 3756
51d861de 3757 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3758
eba7400d
MR
37592009-01-09 Martin Rudalics <rudalics@gmx.at>
3760
3761 * frame.c (x_set_frame_parameters): Remember requested value for
3762 fullscreen before it's reset by the parameter handler.
3763
4b09796d
GM
37642009-01-09 Glenn Morris <rgm@gnu.org>
3765
3766 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3767 (last_command_event): ... and update all users.
4b09796d
GM
3768 (last_input_char): For clarity, rename to...
3769 (last_input_event): ... and update all users.
3770 (last-command-char, last-input-char): Move to subr.el as aliases.
3771 * cmds.c, commands.h: Update for last_command_char rename.
3772
14ccea62
CY
37732009-01-08 Chong Yidong <cyd@stupidchicken.com>
3774
51d861de 3775 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3776
5f004711
JR
37772009-01-08 Jason Rumney <jasonr@gnu.org>
3778
3779 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3780 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3781 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3782 Don't declare.
fff4e459 3783 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3784 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3785
b71f6f73
KH
37862009-01-07 Kenichi Handa <handa@m17n.org>
3787
50b06221 3788 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3789 remember the coding system used for decoding in
50b06221
KH
3790 coding_system (Bug#1039).
3791
b71f6f73 3792 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3793 breaking the loop. (Bug#870)
b71f6f73
KH
3794 (decode_coding_utf_16, decode_coding_emacs_mule)
3795 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3796 (decode_coding_charset): Likewise.
3797
56f668f7
MR
37982009-01-05 Martin Rudalics <rudalics@gmx.at>
3799
3800 * frame.c (x_set_frame_parameters): Make sure height (width) get
3801 applied when fullwidth (fullheight) is set. (Bug#1522)
3802
5da9424d
JB
38032009-01-04 Juanma Barranquero <lekktu@gmail.com>
3804
3805 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3806 (utc_base): Declare as ULONGLONG, not long double.
3807 (convert_time_raw): Delete.
3808 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3809 (initialize_utc_base): New function.
3810 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3811 (convert_from_time_t): Use initialize_utc_base; compute result with
3812 64-bit arithmetic.
3813 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3814
c4605e09
EZ
38152009-01-03 Eli Zaretskii <eliz@gnu.org>
3816
9acef61c 3817 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3818 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3819 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3820 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3821 [!subprocesses]: Define.
3822 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3823 (Flist_system_processes, Fsystem_process_attributes)
3824 [!subprocesses]: Call list_system_processes and
3825 system_process_attributes instead of returning Qnil.
3826
9acef61c
JB
3827 * dosfns.c (system_process_attributes, list_system_processes):
3828 New functions.
c4605e09
EZ
3829
3830 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3831
3832 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3833 Don't use the default (no-op) implementation.
3834
8b7d0a16
JR
38352009-01-03 Jason Rumney <jasonr@gnu.org>
3836
a6d46bc1
JR
3837 * keyboard.c (parse_modifiers_uncached): Wheel events are
3838 clicks (bug#687).
3839
8b7d0a16
JR
3840 * w32term.c (x_query_colors, x_query_color): New functions.
3841
3842 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3843 (svg_load_image): Cast returned pointers from dynamically loaded
3844 functions. Eliminate W32 specific code.
3845
bfe11752
DN
38462009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3847
89e2438a
DN
3848 * nsfns.m (x_set_foreground_color, x_set_background_color)
3849 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3850 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3851 x_ prefix instead of ns_. Update references.
3852 (syms_of_nsfns): Add a FIXME comment.
3853
3854 * nsterm.m (x_set_cursor_type): New prototype.
3855 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3856
bfe11752
DN
3857 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3858 for Solaris instead of incorrectly providing Qutime and Qcutime.
3859
031da700
EZ
38602009-01-02 Eli Zaretskii <eliz@gnu.org>
3861
3862 * w32.c (process_times): Compute sum of utime and stime.
3863 (system_process_attributes): Add Qtime to the alist.
3864
3865 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3866 and add them to the alist.
3867
3868 * process.c (top level) <Qtime, Qctime>: New variables.
3869 (syms_of_process): staticpro them.
3870 (Fsystem_process_attributes): Add their documentation to the doc
3871 string.
3872
3873 * process.h: Declare Qtime and Qctime.
3874
df23bf08
JR
38752009-01-02 Jason Rumney <jasonr@gnu.org>
3876
9acef61c 3877 * image.c (Qgobject): New symbol.
df23bf08
JR
3878 (syms_of_image): Initialize it.
3879 (init_svg_functions): Load some functions from gobject library.
3880
5bbdf7aa
DN
38812009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3882
3883 * frame.c (make_terminal_frame): Remove redundant code and useless
3884 block.
3885
63136da6
AS
38862009-01-01 Andreas Schwab <schwab@suse.de>
3887
3888 * process.c (conv_sockaddr_to_lisp): Add workaround for
3889 getsockname bug on BSD.
3890
9ef69046
CY
38912009-01-01 Chong Yidong <cyd@stupidchicken.com>
3892
d6fafbe0
CY
3893 * xfns.c (x_create_tip_frame): Set border width of the X window.
3894
51d861de 3895 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3896
f9c34147
JR
38972009-01-01 Jason Rumney <jasonr@gnu.org>
3898
9acef61c 3899 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
3900 Don't block input, as per earlier xterm.c changes.
3901
f5497e45
AR
39022008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3903
3904 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3905 (ns_appkit_version_int): New function.
3906 (x-server-version): Use ns_appkit_version_int and follow 21+
3907 convention of returning 3 integers.
3908
c19cab20
KH
39092008-12-30 Kenichi Handa <handa@m17n.org>
3910
3911 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3912 (CHAR_SURROGATE_PAIR_P): New macro.
3913
3914 * font.h (struct font_driver): New member get_variation_glyphs.
3915
9acef61c 3916 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
3917 (Ffont_variation_glyphs): New function.
3918 (syms_of_font): Defsubr it.
3919
3920 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3921 ftfont_variation_glyphs.
3922 (setup_otf_gstring): New function.
3923 (ftfont_drive_otf): Use it.
3924 (ftfont_shape_by_flt): Handle variation selector.
3925 (ftfont_variation_glyphs): New function.
3926
28cd591f
MR
39272008-12-30 Martin Rudalics <rudalics@gmx.at>
3928
3929 * frame.c (Vemacs_iconified): Remove.
3930
7f714baf
JR
39312008-12-30 Jason Rumney <jasonr@gnu.org>
3932
3933 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3934 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3935
9d2d22ab
CY
39362008-12-30 Chong Yidong <cyd@stupidchicken.com>
3937
3938 * indent.c (Fvertical_motion): Don't advance iterator if we have
3939 reseated to the desired position.
3940
3941 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3942 checking for pos match.
3943
545312c2
KH
39442008-12-30 Kenichi Handa <handa@m17n.org>
3945
1ede3eb6
KH
3946 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3947 just get the low 8-bit of the code.
3948
545312c2
KH
3949 * font.c (font_intern_prop): Validate str as multibyte.
3950
bd7bbf29
DN
39512008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3952
31e0750e
DN
3953 * dispextern.h (struct face): Move lface and hash from the middle
3954 of bitfields.
3955
bd7bbf29
DN
3956 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3957
b5672e7c
DN
39582008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3959
3960 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3961 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3962 instead of intervals.h.
3963
d704470f
AS
39642008-12-26 Andreas Schwab <schwab@suse.de>
3965
3966 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3967 cons.
3968
54b33868
MR
39692008-12-26 Martin Rudalics <rudalics@gmx.at>
3970
3971 * textprop.c (Qminibuffer_prompt): New variable.
3972 (syms_of_textprop): Initialize it.
3973 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3974 in minibuffer-prompt face. (Bug#1662)
3975
40b615d6
JR
39762008-12-25 Jason Rumney <jasonr@gnu.org>
3977
3978 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3979
baae5c2d
JR
39802008-12-24 Jason Rumney <jasonr@gnu.org>
3981
3982 * ralloc.c (r_alloc_reset_variable): New function.
3983
3984 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 3985 record of what points where. (Bug#716)
baae5c2d 3986
a9051c88
DN
39872008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3988
3989 * minibuf.c (read_minibuf): Follow the non-interactive case when
3990 running as a daemon, before detaching.
3991
8b146312
AS
39922008-12-22 Andreas Schwab <schwab@suse.de>
3993
3994 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3995 * gtkutil.c (free_widget_value): Use xfree instead of free.
3996
56f2de10
MR
39972008-12-22 Martin Rudalics <rudalics@gmx.at>
3998
3999 * frame.c (delete_frame): New function derived from
4000 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4001 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4002 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4003 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4004 * frame.h: Extern delete_frame.
4005 * window.c (window_loop):
4006 * terminal.c (delete_terminal):
4007 * xterm.c (x_connection_closed):
4008 * xfns.c (Fx_hide_tip):
9acef61c 4009 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4010
1fc200d6
JR
40112008-12-21 Jason Rumney <jasonr@gnu.org>
4012
4013 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4014 when character maps to .notdef character.
4015
5e252df2
SM
40162008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4017
4018 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4019
99b72cc4
JR
40202008-12-20 Jason Rumney <jasonr@gnu.org>
4021
4022 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4023 a graphical frame on Windows. (Bug#1325)
99b72cc4 4024
acc49a52
JD
40252008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4026
4027 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4028
6ea15123
CY
40292008-12-20 Chong Yidong <cyd@stupidchicken.com>
4030
4031 * minibuf.c (Fread_buffer): Doc fix.
4032
b2dab6c8
JR
40332008-12-20 Jason Rumney <jasonr@gnu.org>
4034
54ea0c87 4035 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4036 server name in UNC paths. (Bug#719)
54ea0c87 4037
b2dab6c8 4038 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4039 charbuf. (Bug#1035)
b2dab6c8 4040
6d1921be
DN
40412008-12-19 Daniel Engeler <engeler@gmail.com>
4042
4043 * sysdep.c (serial_configure): Fix typo.
4044
53934c98
DN
40452008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4046
4047 * sysdep.c: Include alloca.h.
f4f634e8
DN
4048 (system_process_attributes): Add implementation for Solaris.
4049
4050 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4051
06e111a6
DN
40522008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4053
4054 Reorganize implementation of Flist_system_processes and
4055 Fsystem_process_attributes. No functional changes.
4056 * process.c: Don't #include pwd.h, grp.h and limits.h.
4057 (Flist_system_processes): Just call list_system_processes.
4058 (Fsystem_process_attributes): Just call system_process_attributes.
4059 (procfs_list_system_processes, time_from_jiffies)
4060 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4061 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4062
4063 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4064 (list_system_processes): Rename from
4065 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4066 Provide a do nothing implementation.
4067 (system_process_attributes): Rename from
4068 procfs_list_system_processes.
4069 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4070 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4071
4072 * w32.c (list_system_processes): Rename from
4073 w32_list_system_processes.
4074 (system_process_attributes): Rename from
4075 w32_system_process_attributes.
4076
4077 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4078
4079 * process.h (w32_list_system_processes)
4080 (w32_system_process_attributes): Remove.
362654a6
JB
4081 (list_system_processes, system_process_attributes):
4082 New prototypes.
06e111a6 4083
6a705b23
KH
40842008-12-19 Kenichi Handa <handa@m17n.org>
4085
4086 * xfont.c (xfont_decode_coding_xlfd): New function.
4087 (xfont_encode_coding_xlfd): New function.
4088 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4089 (xfont_list): Decode and encode XLFD by iso-8859-1.
4090 (xfont_match): Likewise.
4091 (xfont_list_family): Likewise.
4092 (xfont_open): Likewise.
4093
d66c0241 4094 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4095 names are utf-8.
4096
d66c0241 4097 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4098 names are utf-8.
4099
5a130941
JD
41002008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4101
4102 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4103 changed.
bfd20325
JD
4104 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4105 clicked on a detached tool bar button.
5a130941 4106
fd95644b
DN
41072008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4108
4109 * emacs.c (main): Print and error and exit when no data is read
4110 from the pipe.
4111
e6eee6ae
JR
41122008-12-17 Jason Rumney <jasonr@gnu.org>
4113
4114 * w32font.c (w32font_has_char): Always return -1.
4115
a35dd56b
KH
41162008-12-16 Kenichi Handa <handa@m17n.org>
4117
4118 * font.c (font_open_entity): Fix previous change.
4119
0e3635c2
DN
41202008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4121
4122 * process.c: Include <limits.h>.
4123
d4835507 41242008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4125
4126 * font.c (font_update_drivers): Fix mistake in reconstructing the
4127 driver list.
4128
41292008-12-16 Chong Yidong <cyd@stupidchicken.com>
4130
4131 * font.c (font_clear_cache): Fix format of font cache data.
4132
e2cbc401
CY
41332008-12-15 Chong Yidong <cyd@stupidchicken.com>
4134
4135 * xftfont.c (xftfont_open): Free Xft font pattern if
4136 XftFontOpenPattern fails.
4137
4138 * xterm.c (x_free_frame_resources): Remove extraneous call to
4139 free_frame_faces.
4140
b131d535
CY
41412008-12-13 Chong Yidong <cyd@stupidchicken.com>
4142
4143 * xterm.c (x_delete_display): Move xim_close_dpy call to
4144 x_delete_terminal.
4145 (x_delete_terminal): Call xim_close_dpy.
4146
e6df5336
JR
41472008-12-13 Jason Rumney <jasonr@gnu.org>
4148
4149 * w32font.c (intern_font_name): New function.
4150 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4151 (w32font_open_internal, Fx_select_font): Decode font name.
4152 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4153
4154 * w32font.h (intern_font_name): Declare new function.
4155
4156 * w32uniscribe.c (add_opentype_font_name_to_list):
4157 Use intern_font_name.
4158
20d68145
CY
41592008-12-13 Chong Yidong <cyd@stupidchicken.com>
4160
9f2554de
CY
4161 * frame.c (Fdelete_frame): Call free_font_driver_list.
4162
3d9bec9a
CY
4163 * font.c (free_font_driver_list): Implement missing function.
4164
20d68145
CY
4165 * w32term.c (w32_term_init): Don't initialize the image cache
4166 here; it will be done in init_frame_faces.
4167
4168 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4169 (struct x_display_info): Remove unused member null_pixel. New
4170 member xim_callback_data.
4171
4172 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4173 (xim_initialize): Save pointer to callback function data.
4174 (xim_close_dpy): Free callback function data. Call XCloseIM,
4175 reverting 2008-11-04 change by David Smith.
4176 (x_term_init): Don't initialize the image cache here; it will be
4177 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4178 (x_delete_display): Free x_dnd_atoms member.
4179
96f9306b
KH
41802008-12-13 Kenichi Handa <handa@m17n.org>
4181
6dec9044
JB
4182 * font.c (font_rescale_ratio): Moved from xfaces.c.
4183 Argument type changed. Handle a font-spec too.
96f9306b 4184 (font_score): Check Vface_font_rescale_alist.
6dec9044 4185 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4186
4187 * xfaces.c (font_rescale_ratio): Moved to font.c.
4188
8d5b4964
CY
41892008-12-13 Chong Yidong <cyd@stupidchicken.com>
4190
4191 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4192
e6df5336
JR
41932008-12-12 Jason Rumney <jasonr@gnu.org>
4194
4195 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4196 Vwindow_system_version to the real w32 major version.
4197
97c6058a
DN
41982008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4199
4200 * term.c (init_tty): Move setting the terminal name before the
4201 potential user: maybe_fatal.
4202
ec4e88d7
CY
42032008-12-11 Chong Yidong <cyd@stupidchicken.com>
4204
d4835507
JB
4205 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4206 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4207
b4233ec9
JR
42082008-12-11 Jason Rumney <jasonr@gnu.org>
4209
8ec71e23 4210 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4211 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4212
b4233ec9 4213 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4214 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4215
011a0143
JB
42162008-12-11 Juanma Barranquero <lekktu@gmail.com>
4217
4218 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4219
3c309f34
JB
42202008-12-11 Juanma Barranquero <lekktu@gmail.com>
4221
4222 * process.c (Fsystem_process_attributes, syms_of_process):
4223 Fix typo in name of Ssystem_process_attributes.
4224 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4225
fedc6ab5
JB
42262008-12-11 Juanma Barranquero <lekktu@gmail.com>
4227
4228 * syntax.c (Fmodify_syntax_entry): Doc fix.
4229
ba3de0e8
JB
42302008-12-10 Juanma Barranquero <lekktu@gmail.com>
4231
4232 * font.c (Ffont_spec): Move usage to end of docstring.
4233
174f1c74
JR
42342008-12-10 Jason Rumney <jasonr@gnu.org>
4235
4236 * w32font.c (Qcham): New symbol.
4237 (font_supported_scripts): Add cham, and comments for other new
4238 scripts in bitfield from OpenType spec.
9d32f818
JR
4239 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4240 contain characters beyond the bmp.
174f1c74 4241
7b649478
KH
42422008-12-10 Kenichi Handa <handa@m17n.org>
4243
4244 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4245 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4246 Qunicode_sip.
4247
2133e2d1
JB
42482008-12-10 Juanma Barranquero <lekktu@gmail.com>
4249
4250 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4251 (Fcoding_system_put): Use QCdefault_char.
4252 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4253
9af886ee
CY
42542008-12-09 Chong Yidong <cyd@stupidchicken.com>
4255
74d819eb
CY
4256 * xftfont.c (syms_of_xftfont): Fix typo.
4257
4ccfa1c0 4258 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4259
7c19d3ae
DN
42602008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4261
4262 * emacs.c (main): Close daemon_pipe on exec.
4263
567826bb
CY
42642008-12-08 Chong Yidong <cyd@stupidchicken.com>
4265
4266 * termchar.h (struct tty): New members termcap_term_buffer and
4267 termcap_strings_buffer.
4268
4269 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4270 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4271 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4272 All callers changed.
4273 (init_tty): Store termcap data and string buffers in new struct
4274 tty members termcap_term_buffer and termcap_strings_buffer.
4275 (delete_tty): Free them.
4ccfa1c0 4276 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4277
aa96c42b
SZ
42782008-12-07 Seiji Zenitani <zenitani@mac.com>
4279
4280 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4281 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4282
b7e1d896
CY
42832008-12-06 Chong Yidong <cyd@stupidchicken.com>
4284
4285 * coding.c (make_conversion_work_buffer): Disable buffer
4286 modification hooks in the work buffer.
4287
b5ec91a5
EZ
42882008-12-05 Eli Zaretskii <eliz@gnu.org>
4289
4290 * process.c (procfs_system_process_attributes): If `nread' has a
4291 negative value, assign zero to it.
4292
a5d2a52b
CY
42932008-12-05 Chong Yidong <cyd@stupidchicken.com>
4294
68c5540b 4295 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4296
7bf1bb21
KH
42972008-12-05 Kenichi Handa <handa@m17n.org>
4298
4299 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4300 second character is a combining character.
4301
2fdc7d00
EZ
43022008-12-05 Eli Zaretskii <eliz@gnu.org>
4303
4304 * process.c (procfs_system_process_attributes): Don't use cmd,
4305 cmdsize, and q without initializing them first.
4306
bf6bfba8
JR
43072008-12-04 Jason Rumney <jasonr@gnu.org>
4308
4309 * w32font.c (w32font_draw): Initialize orig_clip before getting
4310 it, and delete it when finished.
4311
a3b1a468
DN
43122008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4313
4314 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4315 case when running as a daemon before detaching.
4316
8b8be8eb
JB
43172008-12-03 Juanma Barranquero <lekktu@gmail.com>
4318
805f2638 4319 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4320
b1bde622
KH
43212008-12-03 Kenichi Handa <handa@m17n.org>
4322
e500c47d
KH
4323 * font.c (font_at): Set `multibyte' at first.
4324
ca516334
KH
4325 * coding.c (decode_coding_charset): Check type of an element of
4326 vector VALIDS.
7bf1bb21 4327 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4328
4ccfa1c0 4329 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4330 (font_for_char): Likewise.
4331
1e5ecd37
CY
43322008-12-03 Chong Yidong <cyd@stupidchicken.com>
4333
d5b01609 4334 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4335 (font_update_lface): Handle fonts with corrupted size specs,
4336 i.e. non-int and non-float.
d5b01609 4337
11e3a6e4 4338 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4339 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4340 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4341
ab06788b
CY
4342 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4343
1e5ecd37 4344 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4345 underline_minimum_offset for underline position.
1e5ecd37 4346
63c125ab
DN
43472008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4348
4349 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4350
4351 * character.c (c_string_width): Specify the type for LEN.
4352
3a8406e1
KH
43532008-12-03 Kenichi Handa <handa@m17n.org>
4354
4ccfa1c0 4355 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4356 (decode_coding_utf_8): Likewise.
4ccfa1c0 4357 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4358 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4359
651df7d9
CY
43602008-12-02 Chong Yidong <cyd@stupidchicken.com>
4361
4362 * keyboard.c (make_lispy_position): Only use PT if the selected
4363 window is current.
4364
1f625c6c
AS
43652008-12-02 Andreas Schwab <schwab@suse.de>
4366
f7741ce9
AS
4367 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4368
1f625c6c
AS
4369 * doprnt.c (doprnt1): Fix size of charbuf.
4370
92bc2678
CY
43712008-12-02 Chong Yidong <cyd@stupidchicken.com>
4372
4373 * keyboard.c (timer_check): Revert last change.
4374
93b9e8cc
JB
43752008-12-02 Juanma Barranquero <lekktu@gmail.com>
4376
4377 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4378
fd7a37d5
JB
43792008-12-01 Juanma Barranquero <lekktu@gmail.com>
4380
4381 * makefile.w32-in: Update dependencies.
4382 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4383
c115043b
AS
43842008-12-01 Andreas Schwab <schwab@suse.de>
4385
4386 * font.c (register_font_driver): Use xmalloc.
4387 (font_put_frame_data): Likewise.
4388
f5668d2a
CY
43892008-12-01 Chong Yidong <cyd@stupidchicken.com>
4390
860d96be
CY
4391 * xfaces.c (realize_x_face): Make abort condition clearer.
4392
f5668d2a
CY
4393 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4394
379c17e7
CY
43952008-11-30 Chong Yidong <cyd@stupidchicken.com>
4396
4397 * keyboard.c (timer_check): After a timer runs, ensure that the
4398 selected window's buffer is current.
4399
35f36d65
JB
44002008-11-30 Juanma Barranquero <lekktu@gmail.com>
4401
f952c61c
JB
4402 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4403 It was accidentally restored by the Unicode merge.
4404
35f36d65
JB
4405 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4406
b23077df
JB
44072008-11-29 Juanma Barranquero <lekktu@gmail.com>
4408
4409 * w32proc.c: Include "coding.h".
4410 (Fw32_short_file_name): Encode filename passed to Windows API.
4411 (Fw32_long_file_name): Encode filename passed to Windows API and
4412 decode back the result. (Bug#1433)
4413
b8ebe9dd
KH
44142008-11-29 Kenichi Handa <handa@m17n.org>
4415
8cc53f96
KH
4416 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4417 not before accessing it.
4418
b8ebe9dd
KH
4419 * charset.c (Fdefine_charset_internal): After calculating
4420 min_char, max_char, and fastmap, copy the charset structure again.
4421 (encode_char): Fix the previous change.
4422
59bc82c0
SZ
44232008-11-28 Seiji Zenitani <zenitani@mac.com>
4424
4425 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4426
4427 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4428
4429 * nsterm.m (x_set_frame_alpha): New function.
4430
32247e3d
EZ
44312008-11-27 Eli Zaretskii <eliz@gnu.org>
4432
4433 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4434
b003e5ff
JB
44352008-11-27 Juanma Barranquero <lekktu@gmail.com>
4436
4437 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4438 pointer to check_face_name.
4439
708550f5
KH
44402008-11-27 Kenichi Handa <handa@m17n.org>
4441
4442 * category.h (SET_CATEGORY_SET): Call set_category_set.
4443 (set_category_set): Extern it.
4444
4445 * category.c (hash_get_category_set): New function.
4446 (Fmodify_category_entry): Adjusted for the change of
4447 char_table_ref_and_range. Call hash_get_category_set to get a
4448 category set to store in the table.
4449
4450 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4451 Funify_charset.
4452
2ae37cf0 4453 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4454 (DECODE_CHAR): Check if the decoder vector is ready.
4455 (ENCODE_CHAR): Check if the encoder char-table is ready.
4456 (maybe_unify_char): Extern it.
4457
4458 * charset.c (Vchar_unified_charset_table): Delete it.
4459 (inhibit_load_charset_map): New variable.
4460 (temp_charset_work): New variable.
4461 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4462 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4463 New macros.
4464 (load_charset_map): Meaning of control_flag changed. If
4465 inhibit_load_charset_map is nonzero, setup a table in
4466 temp_charset_work.
4467 (load_charset): New argument control_flag.
4468 (map_charset_for_dump): New function.
4469 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4470 map_charset_for_dump.
4471 (Fdefine_charset_internal): If the charset method is MAP, load
4472 mapping tables by calling load_charset.
4473 (Funify_charset): Don't load a mapping table but directly set
4474 Vchar_unify_table.
4475 (maybe_unify_char): New function.
4476 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4477 Handle the case of inhibit_load_charset_map being nonzero.
4478 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4479 Handle the case of inhibit_load_charset_map being nonzero.
4480 (Fclear_charset_maps): Just free temp_charset_work.
4481 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4482 variable.
4483
4484 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4485 change of char_table_ref_and_range.
4486 (char_table_ref_and_range): Change the meaning of argument FROM
4487 and TO. Now the caller must provide initial values for *FROM
4488 and *TO.
4489
4490 * fontset.c (fontset_add): Adjusted for the change of
4491 char_table_ref_and_range.
4492 (fontset_get_font_group): Likewise.
4493 (Ffontset_info): Likewise.
4494
4495 * keymap.c (describe_vector): Adjusted for the change of
4496 char_table_ref_and_range. For char-table, put boundary between
4497 non-ASCII and 8-bit characters.
4498
4499 * print.c (print_object): For bool-vector, delete unnecessary
4500 check of ASCII_BYTE_P.
4501
9196133b
JR
45022008-11-26 Jason Rumney <jasonr@gnu.org>
4503
4504 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4505 leading in font height. (Bug#879)
9196133b 4506
9f688acf
GM
45072008-11-26 Glenn Morris <rgm@gnu.org>
4508
4509 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4510 redefinition with ifdef. (Bug#1383)
4511
90d19aff
AR
45122008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4513
4514 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4515
4ccfa1c0 45162008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4517
4518 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4519 New EmacsView methods.
4520 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4521 Fixes bug #1048,1357,1414.
4522
45232008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4524
4525 Fix bug #1362.
4526 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4527 is not an indexed color.
4528 * nsterm.m (free_indexed_color): Add argument checking.
4529 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4530
e7d5ecb3
CY
45312008-11-24 Chong Yidong <cyd@stupidchicken.com>
4532
4533 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4534 Document confirm-after-completion value for
4535 minibuffer-completion-confirm.
4536
c285743c
JR
45372008-11-24 Jason Rumney <jasonr@gnu.org>
4538
4539 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4540 warning.
4541
b0857706
JR
45422008-11-23 Jason Rumney <jasonr@gnu.org>
4543
4544 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4545 restored before returning.
4546
4547 * w32font.c (check_face_name): New function.
4548 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4549 fonts. (Bug#642)
b0857706 4550
ee50ff07
MR
45512008-11-22 Martin Rudalics <rudalics@gmx.at>
4552
4553 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4554 confirm-nonexistent-file-or-buffer in doc-string.
4555
b8ff72fa
SM
45562008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4557
4558 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4559 Fix copy/paste typo. Add checks.
4560
cee53ed4
KH
45612008-11-21 Kenichi Handa <handa@m17n.org>
4562
4563 * coding.c (detect_coding_iso_2022): Reject invalid composition
4564 sequence.
4565 (DECODE_COMPOSITION_START): If the current source is the last
4566 block, and the current composition doesn't end, regard this
4567 sequence as invalid.
4568 (decode_coding_iso_2022): Handle invalid composition sequence.
4569
f6ef1e65
MR
45702008-11-20 Martin Rudalics <rudalics@gmx.at>
4571
4572 * window.c (coordinates_in_window): Don't return
4573 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4574 line when the window is not the rightmost one. (Bug#1372)
4575
e08b1705
MR
45762008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4577
4578 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4579
ad98e89f
EZ
45802008-11-15 Eli Zaretskii <eliz@gnu.org>
4581
4582 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4583 and bright_bg if noninteractive is non-zero.
4584
fb098a4b
CY
45852008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4586
4587 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4588 x_draw_glyph_string_background.
4589
4590 * w32term.c (x_draw_glyph_string): Likewise.
4591
ce952b6e
CY
45922008-11-15 Chong Yidong <cyd@stupidchicken.com>
4593
4594 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4595 the next glyph string once past the overhang width.
4596
4597 * nsterm.m (ns_draw_glyph_string): Likewise.
4598
4599 * w32term.c (x_draw_glyph_string): Likewise.
4600
26ea7079
CY
46012008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4602
4603 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4604 double file close.
4605
1c33c906
MR
46062008-11-14 Martin Rudalics <rudalics@gmx.at>
4607
4608 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4609 dedicated status of window before attempting to display another
4610 buffer in it.
4611
8fc29035
JB
46122008-11-14 Juanma Barranquero <lekktu@gmail.com>
4613
4614 * msdos.c (Fmsdos_long_file_names):
4615 (syms_of_msdos) <dos-unsupported-char-glyph>:
4616 * dosfns.c (Fint86): Fix typos in docstrings.
4617
55fb4286
EZ
46182008-11-14 Eli Zaretskii <eliz@gnu.org>
4619
4620 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4621
3fda0315
KY
46222008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4623
4624 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4625
7e849c17
CY
46262008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4627
4628 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4629
4630 * frame.h: Negative alpha means "don't touch".
4631
4632 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4633
4634 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4635
b9fd67bd
DN
46362008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4637
4638 * hftctl.c:
4639 * chpdef.h:
4640 * acldef.h: Remove files used only for systems no longer supported.
4641
4642 * Makefile.in: Fix .o alphabetical ordering.
4643 (hftctl.o): Remove dependency, file removed.
4644 (keymap.o, print.o): Depend on charset.h.
4645
d5998e03
KH
46462008-11-10 Kenichi Handa <handa@m17n.org>
4647
2ae37cf0 4648 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4649
be70e183
CY
46502008-11-08 Chong Yidong <cyd@stupidchicken.com>
4651
4652 * dired.c (file_name_completion): If completion_ignore_case is
4653 enabled, ignore case when checking completion-regexp-list.
4654
7cf94eac
EZ
46552008-11-08 Eli Zaretskii <eliz@gnu.org>
4656
4657 * vm-limit.c (get_lim_data): Fix last change.
4658
ee107a89
KH
46592008-11-08 Kenichi Handa <handa@m17n.org>
4660
4661 * character.c (Fget_byte): New function.
4662 (syms_of_character): Defsubr Fget_byte.
4663
5fd15622
CY
46642008-11-07 Chong Yidong <cyd@stupidchicken.com>
4665
4666 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4667 cursor position is valid after scrolling.
4668
13d62fad
JB
46692008-11-06 Juanma Barranquero <lekktu@gmail.com>
4670
4671 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4672
a1dd2936
GM
46732008-11-06 Glenn Morris <rgm@gnu.org>
4674
4675 * xterm.c (handle_one_xevent): Don't let popup menus cause
4676 mouse-autoselect-window related window switching. (Bug#1261)
4677
860cd236
CY
46782008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4679
4680 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4681
653a3150
AS
46822008-11-04 Andreas Schwab <schwab@suse.de>
4683
4684 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4685
870f5cac
CY
46862008-11-03 Chong Yidong <cyd@stupidchicken.com>
4687
4688 * xfns.c (Fx_wm_set_size_hint): New function.
4689
1e02f3cb
MR
46902008-11-03 Martin Rudalics <rudalics@gmx.at>
4691
4692 * textprop.c (Fprevious_single_char_property_change): Return 0
4693 when there's no change in a string. (Bug#1301)
4694
e630dfc6
MR
46952008-11-02 Martin Rudalics <rudalics@gmx.at>
4696
4697 * frame.c (do_switch_frame): New argument NORECORD passed to
4698 Fselect_window.
4699 (Fselect_frame): New argument NORECORD passed to
4700 do_switch_frame.
4701 (Fset_frame_selected_window): New argument NORECORD passed to
4702 Fselect_frame.
4703 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4704 in call of do_switch_frame.
4705 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4706 Handle NORECORD argument in call of Fselect_frame.
4707 * lisp.h (do_switch_frame, Fselect_frame)
4708 (Fset_frame_selected_window): Adjust declarations.
4709 * window.c (select_frame_norecord): New function.
4710 (run_window_configuration_change_hook): Use it and call
4711 Fselect_frame with NORECORD set.
4712 (Fselect_window): Pass NORECORD to Fselect_frame.
4713 (Fset_window_configuration): Handle NORECORD argument in call of
4714 do_switch_frame.
4715 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4716 Fset_frame_selected_window.
4717 * keyboard.c (command_loop_1): Handle NORECORD in call of
4718 Fselect_frame (currently ifdefd).
4719
9020b223
GM
47202008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4721
4722 * emacs.c (USAGE2): Untabify.
4723
793ffee8
SM
47242008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4725
4726 * composite.c (fill_gstring_header): Fix copy/paste typo.
4727
ab6d1131
MR
47282008-10-31 Martin Rudalics <rudalics@gmx.at>
4729
4730 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4731 (Fother_window): Rename argument and rewrite doc-string.
4732 (select_window_norecord): Fix return value. (Bug#1276)
4733
601a9cf1
JB
47342008-10-30 Juanma Barranquero <lekktu@gmail.com>
4735
4736 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4737 new frames overriding foreground for tooltips. Based on similar patch
4738 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4739
813b0652
CY
47402008-10-29 Chong Yidong <cyd@stupidchicken.com>
4741
4742 * emacs.c (Fdaemon_initialized): Initialize nfd.
4743
4414f58f
MR
47442008-10-29 Martin Rudalics <rudalics@gmx.at>
4745
4746 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4747 (Fwindow_text_height): Clarify doc-strings.
4748 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4749 doc-string of window-scroll-functions.
4750
ecdcaa09
RS
47512008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4752
4753 * category.c (syms_of_category): Fix typo in docstring.
4754
23fe745a
JB
47552008-10-28 Juanma Barranquero <lekktu@gmail.com>
4756
4757 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4758 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4759 Fix typos in docstrings.
4760
ff808935
DN
47612008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4762
4763 * emacs.c (daemon_pipe): Make non-static.
4764 (IS_DAEMON): Move definition ...
4765 * lisp.h (IS_DAEMON): ... here.
4766 (daemon_pipe): Declare.
4767 (is_daemon): Remove.
4768 * dispnew.c (init_display): Use IS_DAEMON.
4769
fc012771
SM
47702008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4771
4772 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4773 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4774
4775 * emacs.c (is_daemon): Remove.
4776 (main): Don't set is_daemon.
4777 (IS_DAEMON): New macro.
4778 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4779 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4780 parent exits.
4781 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4782
d8bdbe6f
CY
47832008-10-27 Chong Yidong <cyd@stupidchicken.com>
4784
d1a072bf
CY
4785 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4786 over-sized glyph, draw it with the default glyph width.
4787
e2e325aa
CY
4788 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4789 glyph, draw it with the default glyph width.
4790
4791 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4792 glyph, draw it with the default glyph width.
4793
d8bdbe6f
CY
4794 * xdisp.c (try_scrolling): When computing the distance from the
4795 scroll margin to PT, try moving some distance past the window
4796 bottom before giving up.
4797
7bfac547
MR
47982008-10-27 Martin Rudalics <rudalics@gmx.at>
4799
4800 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4801 (Fset_window_buffer): Explain in doc-string that a window can be
4802 "strongly" dedicated to its buffer.
4803
4ff029f6
DN
48042008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4805
4806 * emacs.c (daemon_name): New variable.
4807 (main): Deal with --daemon=SERVER_NAME.
4808 (Fdaemonp): Return a name if one was passed to --daemon.
4809
5790ef40
DN
48102008-10-26 Romain Francoise <romain@orebokech.com>
4811
f9bd0df9 4812 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4813 (main): Create a pipe before forking, make the parent exit only after
4814 the child has closed its end of the pipe. Move closing the
4815 descriptors ...
4816 (Fdaemon_initialized): ... here. New function.
4817
f5385255
SM
48182008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4819
4d632321
SM
4820 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4821 the previous unoptimized table.
4822
f5385255
SM
4823 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4824 the distinction between non-nil and non-t value of `dedicated'.
4825
6c56a0f3
CY
48262008-10-25 Chong Yidong <cyd@stupidchicken.com>
4827
4828 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4829 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4830
fec89261
MR
48312008-10-25 Martin Rudalics <rudalics@gmx.at>
4832
4833 * window.c (Fget_buffer_window, Fdelete_windows_on)
4834 (Freplace_buffer_in_windows): Make buffer argument optional and
4835 rename to buffer_or_name.
4836
34fcddd0
CY
48372008-10-24 Chong Yidong <cyd@stupidchicken.com>
4838
f5385255
SM
4839 * xdisp.c (handle_single_display_spec, handle_display_prop):
4840 Undo 2005-05-16 change.
34fcddd0
CY
4841 (handle_stop): Pop iterator if it's loaded with an empty string.
4842 (get_overlay_strings_1): Don't save iterator if it's loaded with
4843 an empty string (bug#1201).
4844
064766f2
KH
48452008-10-24 Kenichi Handa <handa@m17n.org>
4846
4847 * ftfont.c (ftfont_otf_features): Fix previous change.
4848 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4849 calling ftfont_otf_features.
4850
f9bd0df9 48512008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4852
4853 * font.c (font_match_p): Fix for the case that a vector of
4854 characters is in script-representative-chars.
4855
1dae9197
MA
48562008-10-24 Michael Albinus <michael.albinus@gmx.de>
4857
4858 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4859 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4860 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4861 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4862 macro. (Bug#1186).
4863
f9bd0df9 48642008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4865
4866 * s/sol2-10.h: New file.
4867
878a4584
JB
48682008-10-23 Juanma Barranquero <lekktu@gmail.com>
4869
4870 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4871 poor beast has survived 9+ years and the jump from xterm.c!).
4872
cd265ca6
MR
48732008-10-23 Martin Rudalics <rudalics@gmx.at>
4874
4875 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4876 Reword doc-string.
f5385255 4877 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4878
472a4dc9
JB
48792008-10-23 Juanma Barranquero <lekktu@gmail.com>
4880
4881 * character.c (syms_of_character) <script-representative-chars>:
4882 <unicode-category-table>: Doc fixes.
4883
159bd5a2
NF
48842008-10-23 Noah Friedman <friedman@splode.com>
4885
4886 * coding.c (make_conversion_work_buffer): Check that
4887 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4888 Fget_buffer_create.
4889
49f9c344
KH
48902008-10-23 Kenichi Handa <handa@m17n.org>
4891
4892 * font.c (font_add_log): Check the values of extra properties.
4893
12bb3111
MR
48942008-10-22 Martin Rudalics <rudalics@gmx.at>
4895
4896 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4897 Reword doc-string.
4898 (Fset_window_parameter): Use NILP.
4899 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 4900 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 4901
bbeb4e99
JB
49022008-10-22 Juanma Barranquero <lekktu@gmail.com>
4903
4904 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4905
49062008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
4907
4908 * nsfns.m (ns_appkit_version): New function.
4909 (x-server-version): Use it.
4910 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4911 (x-server-vendor): Don't check_ns().
4912
4913 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4914
a9b555d3
JB
49152008-10-22 Juanma Barranquero <lekktu@gmail.com>
4916
4917 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4918 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4919
4626499f
KH
49202008-10-22 Kenichi Handa <handa@m17n.org>
4921
e3681952
KH
4922 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4923 scripts.
4924
4626499f
KH
4925 * category.c (word_boundary_p): Check scripts instead of charset.
4926 Handle nil value in word-separating-categories and
4927 word-combining-categories.
4928 (syms_of_category): Fix docstrings of word-separating-categories
4929 and word-combining-categories.
4930
1560f91a
EZ
49312008-10-21 Eli Zaretskii <eliz@gnu.org>
4932
4933 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4934 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4935
f4668441
MR
49362008-10-21 Martin Rudalics <rudalics@gmx.at>
4937
4938 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4939 Rename arg "buffer" to "buffer_or_name".
4940 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4941 it optional.
4942 (no_switch_window): Remove since the return value is not used.
a9b555d3 4943 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4944 Consider window as dedicated when Fwindow_dedicated_p returns a
4945 non-nil value.
4946 * lisp.h: Remove prototype for no_switch_window.
4947
fd75ddb2
JD
49482008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4949
4950 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4951 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4952
07295713
KH
49532008-10-21 Kenichi Handa <handa@m17n.org>
4954
4955 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4956 check Vlatin_extra_code_table.
4957
712adc82
EZ
49582008-10-20 Eli Zaretskii <eliz@gnu.org>
4959
4960 * fileio.c (Fset_file_modes): Doc fix.
4961
f549eb0b
MA
49622008-10-19 Michael Albinus <michael.albinus@gmx.de>
4963
4964 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4965 in arrays.
4966
aac0c6e3
MR
49672008-10-19 Martin Rudalics <rudalics@gmx.at>
4968
4969 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4970 Mention kill-buffer in doc-string.
4971 (Fset_window_buffer): Reinsert tem check removed in last commit.
4972 (Fenlarge_window, Fshrink_window): Have argument names and
4973 doc-string follow Elisp manual more closely.
4974
49752008-10-18 Eli Zaretskii <eliz@gnu.org>
4976
4977 * fileio.c (Fset_file_modes): Doc fix.
4978
49792008-10-18 Martin Rudalics <rudalics@gmx.at>
4980
4981 * window.c (Fwindow_width, Fset_window_start)
4982 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
4983 (Fdelete_windows_on, Freplace_buffer_in_windows):
4984 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
4985 (Fwindow_dedicated_p): Make window argument optional.
4986 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4987 (Fset_window_buffer): Respect any non-nil dedicated value for
4988 window. Rename "buffer" argument to "buffer_or_name".
4989
49902008-10-18 Ulrich Mueller <ulm@gentoo.org>
4991
4992 * m/sh3.h: New file, machine description for SuperH.
4993
49942008-10-17 Martin Rudalics <rudalics@gmx.at>
4995
4996 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4997
49982008-10-17 Kenichi Handa <handa@m17n.org>
4999
5000 * ftfont.c (ftfont_otf_features): Fix indexing
5001 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5002
50032008-10-16 Magnus Henoch <mange@freemail.hu>
5004
5005 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5006 (Fdbus_call_method_asynchronously): Ditto.
5007 This change makes C-h f display the argument list.
5008
50092008-10-16 Chong Yidong <cyd@stupidchicken.com>
5010
5011 * fileio.c (Fexpand_file_name): Doc fix.
5012
5013 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5014 of :foreground and :background equivalent to unspecified (20.x
5015 compatibility).
5016
50172008-10-15 Eli Zaretskii <eliz@gnu.org>
5018
5019 * buffer.c (syms_of_buffer): Doc fix.
5020
50212008-10-14 Kenichi Handa <handa@m17n.org>
5022
5023 * font.c (font_clear_prop): When clearing font width, clear the
5024 average width field too.
5025
50262008-10-12 Andreas Schwab <schwab@suse.de>
5027
5028 * ftfont.c (ftfont_shape_by_flt): Make static.
5029 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5030
5031 * font.c: Don't include <m17n-flt.h>.
5032
50332008-10-10 Eli Zaretskii <eliz@gnu.org>
5034
5035 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5036
50372008-10-09 Eli Zaretskii <eliz@gnu.org>
5038
5039 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5040 away code.
5041
50422008-10-09 Chong Yidong <cyd@stupidchicken.com>
5043
5044 * dispnew.c (update_text_area): Avoid looping due to large glyph
5045 overhangs (bug#1070).
5046
50472008-10-09 Kenichi Handa <handa@m17n.org>
5048
5049 * fontset.c (face_for_char): If face->fontset is negative, just
5050 return ascii_face.
5051
f5385255
SM
5052 * font.c (font_delete_unmatched): Fix previous change.
5053 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5054
50552008-10-09 Martin Rudalics <rudalics@gmx.at>
5056
5057 * frame.c (Fraise_frame): On text-only terminals select frame in
5058 order to make it visible. (Bug#1061)
5059
50602008-10-08 Chong Yidong <cyd@stupidchicken.com>
5061
5062 * fontset.c (fontset_find_font): Check frame validity.
5063
50642008-10-07 Chong Yidong <cyd@stupidchicken.com>
5065
a9b555d3 5066 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5067 (xg_display_close): Allow Emacs to close all displays (bug#985).
5068
50692008-10-06 Andreas Schwab <schwab@suse.de>
5070
f5385255 5071 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5072
50732008-10-06 Chong Yidong <cyd@stupidchicken.com>
5074
f5385255 5075 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5076
a9b555d3 5077 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5078
5079 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5080 during initialization.
5081
50822008-10-04 Eli Zaretskii <eliz@gnu.org>
5083
5084 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5085 whole thing on MSDOS frames as well as on a TTY.
5086
5087 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5088 well as for TTY.
5089 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5090 well as on a TTY.
5091
5092 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5093 as well as for TTY.
5094
5095 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5096
5097 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5098 MSDOS frames as well.
5099
51002008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5101
5102 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5103 correct arguments.
b71ac3dd 5104 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5105
51062008-10-03 Glenn Morris <rgm@gnu.org>
5107
5108 * emacs.c (USAGE1): Add --daemon.
5109
51102008-10-02 Eli Zaretskii <eliz@gnu.org>
5111
5112 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5113 100, so it's in percents as advertised.
5114
51152008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5116
5117 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5118 (ns_output.current_cursor, ns_output.desired_cursor)
5119 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5120 (FRAME_NEW_CURSOR_COLOR): Remove.
5121
5122 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5123 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5124 enumeration (HOLLOW_BOX_CURSOR, etc.).
5125
5126 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5127 (draw_window_cursor): Simplify code.
f5385255
SM
5128 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5129 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5130 updates manually.
a9b555d3
JB
5131 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5132 Use core Emacs cursor types.
aac0c6e3 5133
b8ff72fa 5134 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5135
51362008-10-02 Martin Rudalics <rudalics@gmx.at>
5137
5138 * process.c (Faccept_process_output): Fix doc-string.
5139
51402008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5141
5142 * gmalloc.c (__sbrk): Also define for uClibc.
5143
5144 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5145 for uClibc.
5146
51472008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5148
5149 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5150 styles.
5151 (nsfont_open): Reenable the cache.
5152
51532008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5154
5155 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5156 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5157
51582008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5159
5160 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5161 a suspended terminal.
5162
51632008-09-30 Michael Albinus <michael.albinus@gmx.de>
5164
5165 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5166
51672008-09-30 Eli Zaretskii <eliz@gnu.org>
5168
5169 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5170
51712008-09-30 Chong Yidong <cyd@stupidchicken.com>
5172
5173 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5174 in a continued line coincides with a line beginning.
5175
51762008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5177
5178 * nsfont.m (nsfont_trait_distance): Fix bug.
5179 (nsfont_list): Return a list rather than a vector (syncs with Handa
5180 changes of 2008-05-14).
5181 (nsfont_open): Improve logging.
5182
51832008-09-29 Andreas Schwab <schwab@suse.de>
5184
5185 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5186
51872008-09-28 Martin Rudalics <rudalics@gmx.at>
5188
5189 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5190 name as char-resolve-modifiers.
5191 Reported by: Markus Triska <markus.triska@gmx.at>
5192
51932008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5194
5195 * dispnew.c (init_display): Return earlier when running as a daemon.
5196
51972008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5198
5199 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5200
52012008-09-27 Eli Zaretskii <eliz@gnu.org>
5202
5203 * composite.c (Fcomposition_get_gstring)
5204 (Fcompose_region_internal, Fcompose_string_internal)
5205 (Ffind_composition_internal): Doc fix.
5206 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5207 (syms_of_composite) <auto-composition-function>: Doc fix.
5208 (syms_of_composite) <composition-function-table>: Doc fix.
5209
52102008-09-25 Chong Yidong <cyd@stupidchicken.com>
5211
5212 * search.c (wordify): New argument for lax word-ends.
5213 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5214
52152008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5216
5217 * lisp.h (is_daemon): Declare.
5218 * dispnew.c (init_display): Do not try to initialize the terminal
5219 when running as a daemon.
5220
52212008-09-22 Chong Yidong <cyd@stupidchicken.com>
5222
5223 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5224 x_display_pixel_height.
5225
52262008-09-22 Martin Rudalics <rudalics@gmx.at>
5227
5228 * undo.c (record_point): Don't call Fundo_boundary for first
5229 change. (Bug#731)
5230
52312008-09-22 Juanma Barranquero <lekktu@gmail.com>
5232
5233 * emacs.c (Fdaemonp): Doc fix.
5234
52352008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5236
5237 * emacs.c (main): Place #ifdef in the proper place.
5238
52392008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5240
5241 * emacs.c (standard_args): Add --daemon.
5242 (main): Disconnect from the terminal when --daemon is passed.
5243 (is_daemon): New variable.
5244 (Fdaemonp): New function.
5245 (syms_of_emacs): Defsubr it.
5246
52472008-09-20 Chong Yidong <cyd@stupidchicken.com>
5248
5249 * xdisp.c (get_next_display_element): Handle string display
5250 correctly when checking for the end of a box run.
5251
52522008-09-20 Glenn Morris <rgm@gnu.org>
5253
5254 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5255 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5256 (Frename_file): Avoid copying to trash if a rename involves
5257 a delete. (Bug#964).
5258
52592008-09-20 Eli Zaretskii <eliz@gnu.org>
5260
5261 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5262 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5263 frames as well as termcap frames.
5264 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5265 get_named_tty.
5266
52672008-09-19 Eli Zaretskii <eliz@gnu.org>
5268
5269 * process.c (procfs_system_process_attributes): Fix cmdline in
5270 case /proc/PID/cmdline is empty.
5271
5272 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5273 x_display_pixel_height.
5274
52752008-09-19 Juanma Barranquero <lekktu@gmail.com>
5276
5277 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5278
5279 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5280 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5281
52822008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5283
5284 * dispextern.h (struct it): Move line_wrap away from the middle of
5285 bitfields. Move voffset in struct iterator_stack_entry after the
5286 bitfields. Move tab_width near after another short.
5287
52882008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5289
5290 * frame.h (struct frame): Move alpha from the middle of bitfields.
5291
5292 * window.h (struct window): Move frozen_window_start_p after the
5293 rest of the bitfields to reduce padding.
5294
52952008-09-18 Chong Yidong <cyd@stupidchicken.com>
5296
5297 * xterm.h (x_display_info): Remove `height' and `width' members.
5298
5299 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5300
5301 * w32term.h (w32_display_info): Remove `height', `width',
5302 `height_in', and `width_in' members.
5303
b8ff72fa
SM
5304 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5305 New functions.
aac0c6e3
MR
5306 (x_calc_absolute_position): Use them.
5307 (x_term_init): Omit removed `height' and `width' members.
5308
b8ff72fa
SM
5309 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5310 New functions.
aac0c6e3
MR
5311 (w32_read_socket, x_calc_absolute_position): Use them.
5312 (w32_initialize_display_info, w32_term_init): Omit removed members
5313 of w32_display_info.
5314
b8ff72fa
SM
5315 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5316 New functions.
5317 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5318
b8ff72fa
SM
5319 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5320 New functions.
aac0c6e3
MR
5321 (x_calc_absolute_position): Use them.
5322 (x_term_init): Omit removed `height' and `width' members.
5323
5324 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5325 (compute_tip_xy):
5326 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5327 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5328 x_display_pixel_width.
5329
53302008-09-18 Kenichi Handa <handa@m17n.org>
5331
5332 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5333 (composition_compute_stop_pos): Fix handling of static composition.
5334 (Fcomposition_get_gstring): Check FROM and TO at first.
5335
53362008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5337
46e722a9 5338 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5339 mixup (YAILOM).
5340
53412008-09-17 Chong Yidong <cyd@stupidchicken.com>
5342
5343 * indent.c (Fvertical_motion): Use position reported by iterator
5344 instead of PT for determining screen motion (bug#943).
5345
53462008-09-17 Romain Francoise <romain@orebokech.com>
5347
5348 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5349
53502008-09-17 Kenichi Handa <handa@m17n.org>
5351
5352 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5353
5354 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5355 if necessary.
5356
53572008-09-16 Kenichi Handa <handa@m17n.org>
5358
5359 * coding.c (make_conversion_work_buffer): Avoid calling
5360 Fget_buffer_create if it is not necessary.
5361
53622008-09-15 Martin Rudalics <rudalics@gmx.at>
5363
5364 * window.c (Fselect_window): Don't update window_select_count and
5365 use_time when norecord is not nil.
5366
53672008-09-14 Kenichi Handa <handa@m17n.org>
5368
5369 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5370 specpdl_ptr.
5371
53722008-09-12 Kenichi Handa <handa@m17n.org>
5373
5374 * indent.c (scan_for_column): Don't handle automatic composition
5375 if the current buffer is not associated with a window.
5376
5377 * composite.c (composition_reseat_it): If the current buffer is
5378 not associated with a window, ignore the automatic composition.
5379 (find_automatic_composition): Likewise.
5380
53812008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5382
5383 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5384 (Fgpm_mouse_stop): Use it.
5385 * termhooks.h (close_gpm): Declare.
5386 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5387 connection if Gpm_GetEvent fails.
5388
5389 * window.c (set_window_buffer): Always preserve current-buffer.
5390
53912008-09-12 Glenn Morris <rgm@gnu.org>
5392
5393 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5394
53952008-09-11 Glenn Morris <rgm@gnu.org>
5396
5397 * charset.c (charset-map-path): Doc fix.
5398
53992008-09-10 Kenichi Handa <handa@m17n.org>
5400
5401 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5402
5403 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5404 compose a grapheme cluster with the preceding base glyph.
5405
5406 * composite.c (composition_compute_stop_pos): Fix previous change.
5407 Reset cmp_it->id to -1 at first.
5408
54092008-09-10 Glenn Morris <rgm@gnu.org>
5410
5411 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5412
54132008-09-09 Chong Yidong <cyd@stupidchicken.com>
5414
5415 * keyboard.c (read_key_sequence): Reapply translation maps when
5416 switching keyboards.
5417
54182008-09-09 Kenichi Handa <handa@m17n.org>
5419
5420 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5421 characters.
5422
5423 * composite.c (FORWARD_CHAR): Fix calculation
5424 of (POSITION).pos_byte.
5425 (composition_compute_stop_pos): Limit the search of composition to
5426 at most 500 characters ahead. If we reach the limit or find a
5427 newline, set cmp_it->ch to -2 and return 0.
5428 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5429
54302008-09-08 Kenichi Handa <handa@m17n.org>
5431
5432 * indent.c (Fvertical_motion): Be sure to set
5433 it_overshoot_expected if it.cmp_it.id is non-negative.
5434
54352008-09-07 Andreas Schwab <schwab@suse.de>
5436
5437 * callproc.c (Fcall_process): Don't hold references to string data
5438 across garbage collection. Move initialisation of new_argv down
5439 to avoid compiler bug.
5440
54412008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5442
5443 * process.c (Fsystem_process_attributes): Doc fix.
5444
54452008-09-07 Chong Yidong <cyd@stupidchicken.com>
5446
5447 * callproc.c (Fcall_process): Canonicalize current directory name.
5448
5449 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5450 iterator advances to the next line if the current line ends in a
5451 continued tab.
5452
54532008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5454
5455 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5456 member to point to cmp_from.
5457
5458 * xdisp.c: Doc fix for references to gidx data member.
5459
54602008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5461
5462 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5463
54642008-09-07 Kenichi Handa <handa@m17n.org>
5465
5466 * composite.c (FORWARD_CHAR): Check STOP after
5467 incrementing (POSITION).pos.
5468
54692008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5470
5471 * process.c (Fsystem_process_attributes): Doc fix.
5472
54732008-09-06 Chong Yidong <cyd@stupidchicken.com>
5474
5475 * keyboard.c (Ftop_level): Doc fix.
5476
54772008-09-06 Eli Zaretskii <eliz@gnu.org>
5478
5479 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5480 minibuffer, don't let lower part of menu invade the echo area.
5481
5482 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5483 "char *q" to access menu text and advance through it. Revert the
5484 change that displayed ">" instead of ASCII character 0x10.
5485
54862008-09-05 Eli Zaretskii <eliz@gnu.org>
5487
5488 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5489 toggle boxes and radio buttons on MS-DOS as well.
5490
54912008-09-05 Kenichi Handa <handa@m17n.org>
5492
5493 * composite.c (autocmp_chars): Check lookback count.
5494 (composition_compute_stop_pos): Set cmp_it->lookback.
5495 (composition_reseat_it): Check lookback count.
5496 (struct position_record): New struct.
5497 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5498 (find_automatic_composition): New function.
5499 (composition_adjust_point): Use find_automatic_composition.
5500
5501 * dispextern.h (struct composition_it): New member lookback.
5502
55032008-09-02 Chong Yidong <cyd@stupidchicken.com>
5504
5505 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5506 if moving by a single line.
5507
55082008-09-02 Andreas Schwab <schwab@suse.de>
5509
5510 * xterm.c (x_delete_display): Fix merge error.
5511
5512 * fileio.c (Fexpand_file_name): Remove unused variables.
5513
55142008-09-02 Eli Zaretskii <eliz@gnu.org>
5515
5516 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5517 storage on all platforms, not just on DOS_NT.
5518
55192008-09-02 Jason Rumney <jasonr@gnu.org>
5520
b8ff72fa
SM
5521 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5522 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5523
55242008-09-01 Chong Yidong <cyd@stupidchicken.com>
5525
5526 * xfaces.c (Finternal_set_alternative_font_family_alist)
5527 (Finternal_set_alternative_font_registry_alist): Properly copy
5528 entire alist structure.
5529
55302008-09-01 Kenichi Handa <handa@m17n.org>
5531
d66c0241 5532 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5533 representative chars of the script is a vector.
d66c0241
JB
5534 (ftfont_list): Handle the case where the representative chars of
5535 the script is a vector.
aac0c6e3
MR
5536
5537 * character.c (syms_of_character): Docstring of
5538 script-representative-chars fixed.
5539
55402008-08-31 Eli Zaretskii <eliz@gnu.org>
5541
5542 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5543 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5544 the menu. Allocate larger buffer for `text', to account for
5545 possible ^C characters.
5546
55472008-08-31 Martin Rudalics <rudalics@gmx.at>
5548
5549 * xdisp.c (prepare_menu_bars): Don't call
5550 Vwindow_size_change_functions with arg Qt.
5551
55522008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5553
5554 * font.h (font_range):
5555 * fileio.c (report_file_error):
46e722a9
SM
5556 * composite.c (composition_update_it): Yet another int/Lisp_Object
5557 mixup (YAILOM).
aac0c6e3
MR
5558
55592008-08-30 Glenn Morris <rgm@gnu.org>
5560
5561 * data.c (Fmake_variable_frame_local): Doc fix.
5562
5563 * frame.c (Fmodify_frame_parameters): Doc fix.
5564
55652008-08-30 Eli Zaretskii <eliz@gnu.org>
5566
5567 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5568 needed by GetTokenInformation.
5569 (w32_system_process_attributes): Check return values of all system
5570 APIs.
5571
5572 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5573 only when the state changes.
5574 (IT_update_begin, IT_update_end): Add termscript trace.
5575
5576 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5577 clipboard is unavailable. Set dst to NULL if it doesn't point to
5578 malloc'ed data.
5579 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5580 passing random values to xfree.
5581
5582 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5583 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5584
55852008-08-29 Jason Rumney <jasonr@gnu.org>
5586
5587 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5588
55892008-08-29 Eli Zaretskii <eliz@gnu.org>
5590
5591 * composite.c (fill_gstring_body): Avoid compiler warnings.
5592
5593 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5594 LGLYPH_SET_CODE to avoid compiler warnings.
5595
2ae37cf0 5596 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5597
5598 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5599
5600 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5601 LGLYPH_SET_CODE.
5602
56032008-08-29 Kenichi Handa <handa@m17n.org>
5604
5605 * fileio.c (report_file_error): Don't downcase the first character
5606 of errstring if it is still unibyte.
5607
56082008-08-29 Kenichi Handa <handa@m17n.org>
5609
5610 These changes are to re-implement the automatic composition so
5611 that it doesn't use text properties.
5612
5613 * Makefile.in (ftfont.o): Depend on composite.h.
5614 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5615
5616 * character.h (Vunicode_category_table): Extern it.
5617
5618 * character.c (Vunicode_category_table): New variable.
5619 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5620
5621 * chartab.c (optimize_sub_char_table): Perform more greedy
5622 optimization.
5623
b8ff72fa
SM
5624 * composite.h (enum composition_method):
5625 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5626 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5627 (Vcomposition_function_table): Extern it.
5628 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5629 (composition_gstring_put_cache, composition_gstring_from_id)
5630 (composition_gstring_p, composition_gstring_width)
5631 (composition_compute_stop_pos, composition_reseat_it)
5632 (composition_update_it, composition_adjust_point): Extern them.
5633 (Fcomposition_get_gstring): EXFUN it.
5634
d66c0241 5635 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5636 (Vcomposition_function_table)
5637 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5638 (gstring_hash_table, gstring_work, gstring_work_headers):
5639 New variables.
aac0c6e3
MR
5640 (gstring_lookup_cache, composition_gstring_put_cache)
5641 (composition_gstring_from_id, composition_gstring_p)
5642 (composition_gstring_width, fill_gstring_header)
5643 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5644 (composition_reseat_it, composition_update_it)
b8ff72fa 5645 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5646 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5647 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5648 Defsubr compostion_get_gstring.
5649
5650 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5651 cmp_id.
5652 (struct glyph_string): Delete the member gidx. New members
5653 cmp_id, cmp_from, and cmp_to.
5654 (enum it_method): Delete GET_FROM_COMPOSITION.
5655 (struct composition_it): New struct.
5656 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5657 Delete c, len, cmp_id, cmp_len in u.comp.
5658
5659 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5660 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5661 (enum lglyph_indices): Likewise.
b8ff72fa 5662 (font_range): Adjust extern.
aac0c6e3
MR
5663 (font_fill_lglyph_metrics): Extern it.
5664
5665 * font.c (QCf): New variable.
5666 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5667 (font_prepare_composition): Delete this function.
5668 (font_range): Type and arguments changed.
5669 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5670 (font_fill_lglyph_metrics): New function.
b8ff72fa 5671 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5672 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5673 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5674 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5675
5676 * fontset.h (font_for_char): Extern it.
5677
5678 * fontset.c (font_for_char): New function.
5679
5680 * ftfont.c: Include composite.h.
5681 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5682 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5683
5684 * indent.c: Include composite.h and dispextern.h.
5685 (check_composition): Delete this function.
5686 (scan_for_column): Handle composition by
5687 composition_compute_stop_pos, composition_reseat_it, and
5688 composition_update_it.
5689 (compute_motion): Likewise.
5690 (Fvertical_motion): Fix checking of composition.
5691
5692 * keyboard.c (adjust_point_for_property): Check composition by
5693 composition_adjust_point.
5694
b8ff72fa 5695 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5696 struct glyph_string.
5697
b8ff72fa
SM
5698 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5699 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5700 struct glyph.
5701 (produce_composite_glyph): Likewise.
5702
b8ff72fa
SM
5703 * w32term.c (x_draw_composite_glyph_string_foreground):
5704 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5705 (x_draw_glyph_string): Likewise.
5706
5707 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5708 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5709
5710 * xdisp.c: Include font.h.
5711 (it_props): Delete the entry for Qauto_composed.
5712 (init_iterator): Initialize it->cmp_it.id to -1.
5713 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5714 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5715 (handle_auto_composed_prop): Delete it.
5716 (handle_composition_prop): Handle only static composition.
5717 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5718 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5719 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5720 (pop_it): Likewise.
5721 (get_next_element): Delete next_element_from_composition.
5722 (CHAR_COMPOSED_P): New macro.
5723 (get_next_display_element): For automatic composition, get a face
5724 from the font in the glyph-string.
5725 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5726 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5727 (next_element_from_string): Check if the character at the current
5728 position is composed by CHAR_COMPOSED_P.
5729 (next_element_from_buffer): Likewise.
d66c0241
JB
5730 (next_element_from_composition): Adjust for the change of struct it.
5731 Update it->cmp_it.
b8ff72fa
SM
5732 (dump_glyph): Adjust for the change of struct glyph.
5733 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5734 it and struct glyph. Don't handle automatic composition here.
5735 (fill_gstring_glyph_string): New function.
5736 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5737 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5738 (BUILD_GSTRING_GLYPH_STRING): New macro.
5739 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5740 automatic composition.
b8ff72fa 5741 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5742 struct glyph.
b8ff72fa 5743 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5744
b8ff72fa 5745 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5746 the change of struct glyph_string.
5747 (x_draw_glyph_string): Likewise.
5748
57492008-08-29 Glenn Morris <rgm@gnu.org>
5750
5751 * buffer.c (word-wrap): Doc fix.
5752 * xdisp.c (truncate-partial-width-windows): Doc fix.
5753 Increase default to 50.
5754
57552008-08-29 Chong Yidong <cyd@stupidchicken.com>
5756
5757 * xdisp.c (update_tool_bar_unwind): New function.
5758 (update_tool_bar): Temporarily set selected frame before building
5759 tool-bar items.
5760
57612008-08-28 Michael Albinus <michael.albinus@gmx.de>
5762
5763 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5764 snprintf, respectively.
5765 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5766
57672008-08-28 Chong Yidong <cyd@stupidchicken.com>
5768
5769 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5770 LDFLAGS to GNUstep CC invocation.
5771
57722008-08-27 Chong Yidong <cyd@stupidchicken.com>
5773
5774 * indent.c (Fvertical_motion): Revert last change. Handle the
5775 general case where we are moving forward, and PT spans multiple
5776 screen lines.
5777
5778 * eval.c (find_handler_clause): Temporarily increase
5779 max-lisp-eval-depth while printing the backtrace buffer, to
5780 guarantee that help-mode code can run.
5781
57822008-08-27 Eli Zaretskii <eliz@gnu.org>
5783
5784 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5785 colors under -rv.
5786 (IT_set_frame_parameters): Don't swap foreground and background
5787 colors if `(reverse . t)' is present in the frame properties.
5788 (internal_terminal_init): Call init_frame_faces only for the
5789 initial frame.
5790
57912008-08-27 Andreas Schwab <schwab@suse.de>
5792
5793 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5794
57952008-08-27 Andreas Schwab <schwab@suse.de>
5796
5797 * search.c (search_buffer): Set char_base to zero only at the end.
5798
57992008-08-27 Kenichi Handa <handa@m17n.org>
5800
b8ff72fa 5801 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5802
58032008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5804
5805 * xterm.c (x_term_init): Temporarily hide the partially
5806 initialized terminal while calling vendor-specific-keysyms.
5807
58082008-08-26 Eli Zaretskii <eliz@gnu.org>
5809
5810 * msdos.c (internal_terminal_init): Most initializations done only
5811 once, especially initial_screen_colors[] and termscript open.
5812
58132008-08-26 Chong Yidong <cyd@stupidchicken.com>
5814
5815 * eval.c (Fcondition_case): Doc fix.
5816
5817 * widgetprv.h (EmacsFramePart): Change font member to the new font
5818 struct.
5819
5820 * widget.c: Include character.h and font.h for XSETFONT.
5821 (setup_frame_gcs): Compute X font id from font struct, just once.
5822
58232008-08-26 Eli Zaretskii <eliz@gnu.org>
5824
5825 * term.c (get_named_tty): Fix last change.
5826
58272008-08-26 Chong Yidong <cyd@stupidchicken.com>
5828
5829 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5830 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5831
58322008-08-25 Eli Zaretskii <eliz@gnu.org>
5833
5834 * frame.c (do_switch_frame): Mark previously displayed frame as
5835 obscured for FRAME_MSDOS_P frames as well.
5836
58372008-08-24 Eli Zaretskii <eliz@gnu.org>
5838
5839 * frame.c (make_terminal_frame): Initialize f->terminal,
5840 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5841 Set the top frame to newly created frame.
5842 (Fmake_terminal_frame): Reuse the_only_display_info.
5843
5844 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5845 estimating available memory.
5846
b97439ce 58472008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5848
5849 * nsterm.m (ns_draw_window_cursor): Don't call
5850 NSDisableScreenUpdates and NSEnableScreenUpdates on
5851 non-NS_IMPL_COCOA systems.
5852
58532008-08-23 Andreas Schwab <schwab@suse.de>
5854
5855 * process.c (procfs_system_process_attributes): Fix use of
5856 uninitialized variables.
5857
58582008-08-23 Eli Zaretskii <eliz@gnu.org>
5859
5860 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5861
5862 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5863 calling tty-set-up-initial-frame-faces.
5864
b8ff72fa
SM
5865 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5866 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5867
5868 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5869 addition to output_termcap.
5870
5871 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5872
5873 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5874 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5875 highlight.
5876
5877 * process.c [!subprocesses]: Define QCname.
5878 (syms_of_process): Intern and staticpro it.
5879
5880 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5881 Adjust for changes in encoding/decoding routines.
5882 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5883 encode_coding and decode_coding.
5884
b8ff72fa 5885 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5886
5887 * dosfns.c: Include frame.h before termhooks.h.
5888 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5889 variable termscript.
5890
5891 * s/msdos.h (USER_FULL_NAME): Define.
5892 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5893
5894 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5895 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5896 pw->pw_gecos.
5897
5898 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5899 SELECTED_FRAME as additional (1st) argument.
5900 (tty_read_avail_input): Handle output_msdos_raw in
5901 addition to output_termcap.
5902
5903 * msdos.c: Include frame.h before termhooks.h.
5904 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5905 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5906 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5907 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5908 (IT_set_terminal_modes, IT_reset_terminal_modes)
5909 (IT_set_frame_parameters): Use tty->termscript instead of a global
5910 variable termscript.
5911 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5912 global variable terminal_coding. Don't refer to
5913 Vnonascii_translation_table.
5914 (internal_terminal_init): Set Vwindow_system in current_kboard.
5915 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5916 Announce date and time of session start, if termscript is open.
5917 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5918 term.c:init_tty). Open termscript only of not already open.
5919 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5920 here instead of dos_ttraw. Don't initialize display if this is an
5921 initial tty. Don't set FRAME_FONT.
5922 (Vwindow_system_version): Bump to 23.
5923 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5924 is available, set up mouse_position_hook.
5925 (dos_ttraw, IT_set_terminal_modes): If called with initial
5926 terminal, do nothing.
5927 (IT_set_frame_parameters): Handle the Qtty_type frame
5928 parameter by calling internal_terminal_init.
5929 (dos_set_window_size, show_mouse_face)
5930 (clear_mouse_face, IT_note_mode_line_highlight)
5931 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5932 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5933 (initialize_msdos_display): New function.
5934 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5935 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5936 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5937 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5938 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5939 (request_sigio, unrequest_sigio): Don't define, now defined on
5940 sysdep.c.
5941 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5942
5943 * term.c [MSDOS]: Include msdos.h.
5944 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5945 conditional to DOS_NT. Allow only one call to this function in a
5946 session. Don't allocate a new struct tty_display_info; instead,
5947 reuse the_only_display_info. Call get_tty_size to get screen
5948 dimensions. Call init_baud_rate to set bad_rate.
5949 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5950 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5951 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5952 (get_tty_terminal, get_named_tty, Ftty_type)
5953 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5954 output_termcap.
b8ff72fa
SM
5955 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5956 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5957 only when subprocesses are supported.
aac0c6e3
MR
5958
5959 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5960 f->output_data.x.
5961 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5962 terminal devices.
5963
5582fbc7 5964 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
5965 x_output.
5966 (FRAME_FONT): Use output_data.tty.
5967 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
5968 (struct x_display_info): Rename from display_info. Update all users in
5969 msdos.c.
aac0c6e3 5970 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 5971 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
5972 (dos_ttraw): Update prototype.
5973
5974 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5975 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5976
59772008-08-23 Jason Rumney <jasonr@gnu.org>
5978
5979 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5980 (fn_TIFFSetDirectory): New library function used.
5981 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5982 (tiff_load): Use :index to select among multiple images. Set count
5983 property when multiple images exist.
5984 (gif_format): Use :index, not :image.
5985
59862008-08-23 Chong Yidong <cyd@stupidchicken.com>
5987
5988 * xdisp.c (try_scrolling): Check INT_MAX instead of
5989 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5990 to obtain INT_MAX.
5991
59922008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5993
5994 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5995
59962008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5997
5998 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5999 GNUstep library location.
6000
60012008-08-21 Chong Yidong <cyd@stupidchicken.com>
6002
6003 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6004 before using it.
6005
6006 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6007
60082008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6009
6010 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6011 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6012 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6013 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6014 (EmacsApp-cursor_blink_handler): Remove declaration.
6015 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6016 match 01 Feb 2008 changes in xterm.c.
6017 (ns_read_socket): Add cast to avoid warning.
6018 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6019 GNUstep.
6020
60212008-08-20 Chong Yidong <cyd@stupidchicken.com>
6022
6023 * xselect.c (x_get_foreign_selection): Return nil if desired
6024 selection could not be obtained, instead of signalling an error.
6025
60262008-08-20 David Reitter <david.reitter@gmail.com>
6027
6028 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6029 * nsterm.m: Remove ns-specific code for cursor blinking.
6030 (ns_draw_window_cursor): Clear cursor properly rather than
6031 redrawing the area. Respect width of bar cursors.
6032 These changes enable the use of generic blink-cursor-mode and
6033 generic cursor types in NS and support smooth cursor movements (do
6034 not blink off after command).
6035 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6036 Nextstep, too.
6037
60382008-08-19 Kenichi Handa <handa@m17n.org>
6039
6040 * font.c (Vfont_log_deferred): New variable.
6041 (font_add_log): Check Vfont_log_deferred.
6042 (font_deferred_log): New function.
6043
6044 * font.h (font_deferred_log): Extern it.
6045
6046 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6047 for sorting.
6048 (face_for_char): Use deferred log.
6049
60502008-08-18 Kenichi Handa <handa@m17n.org>
6051
6052 * fontset.c (face_for_char): Add font log.
6053
6054 * font.c (font_add_log): Add the font properties :script, :lang,
6055 and :otf in the log.
6056
60572008-08-17 Chong Yidong <cyd@stupidchicken.com>
6058
6059 * xdisp.c: Remove dead code.
6060 (handle_invisible_prop, next_overlay_string): Defer call to
6061 setup_for_ellipsis.
6062 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6063
60642008-08-15 Chong Yidong <cyd@stupidchicken.com>
6065
6066 * xfaces.c (lookup_derived_face): Properly handle possible zero
6067 return value of get_lface_attributes.
6068 (merge_faces): Don't tell lookup_derived_face to signal an error
6069 if face is not found.
6070
6071 * dired.c (Fdirectory_files): Doc fix.
6072
6073 * process.c (make_process): Initialize kill_without_query struct
6074 member.
6075
60762008-08-15 Eli Zaretskii <eliz@gnu.org>
6077
6078 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6079 Alternative calculation of totphys for Visual Studio 6.
6080
6081 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6082
6083 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6084 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6085 All users changed.
6086 (stat): Only root directory passed to GetDriveType. Allow RAM
6087 disk as well as local fixed disk when w32-get-true-file-attributes
6088 is set to `local'.
6089 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6090 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6091 (w32_cached_id, w32_add_to_cache): New functions.
6092 (get_name_and_id): Look account names in the cache before calling
6093 lookup_account_sid.
6094 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6095 New initialization flags.
6096 (globals_of_w32): Initialize them to zero.
6097 (w32_system_process_attributes): Use w32_cached_id and
6098 w32_add_to_cache.
6099
61002008-08-14 Lawrence Mitchell <wence@gmx.li>
6101
6102 * lread.c (Fread_char, Fread_char_exclusive): If no character
6103 event is read before timeout is reached, return nil, rather than
6104 converting to a number.
6105
61062008-08-14 Chong Yidong <cyd@stupidchicken.com>
6107
6108 * fns.c (use_dialog_box): Doc fix.
6109
6110 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6111 on OS X.
6112
61132008-08-13 Chong Yidong <cyd@stupidchicken.com>
6114
6115 * frame.c (Qns_parse_geometry): New var.
6116 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6117
61182008-08-11 Chong Yidong <cyd@stupidchicken.com>
6119
6120 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6121 space character in calculating tabs.
6122
61232008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6124
6125 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6126
61272008-08-10 Glenn Morris <rgm@gnu.org>
6128
6129 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6130 silence gcc "limited range of data type" warnings in some
6131 make_fixnum_or_float calls.
6132
61332008-08-09 Eli Zaretskii <eliz@gnu.org>
6134
6135 * w32.c (w32_system_process_attributes): If the process does not
6136 exist, return nil.
6137
6138 * w32.c: Include thelp32.h, psapi.h and coding.h.
6139 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6140 declarations.
6141 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6142 (Process32Next_Proc): New typedefs.
6143 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6144 (g_b_init_process32_next, g_b_init_open_thread_token)
6145 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6146 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6147 (g_b_init_get_process_working_set_size)
6148 (g_b_init_global_memory_status_ex): New static variables.
6149 (globals_of_w32): Initialize them.
6150 (create_toolhelp32_snapshot, process32_first, process32_next)
6151 (open_thread_token, impersonate_self, revert_to_self)
6152 (get_process_memory_info, get_process_working_set_size)
6153 (global_memory_status, global_memory_status_ex): New wrapper
6154 functions.
6155 (w32_list_system_processes, w32_system_process_attributes)
6156 (enable_privilege, restore_privilege, ltime, process_times):
6157 New functions.
6158 (convert_time_raw): New function.
6159 (convert_time): Remove conversion of FILETIME into time in 100
6160 nsec units, call convert_time_raw instead.
6161
6162 * process.h (w32_list_system_processes, w32_system_process_attributes):
6163 Add prototypes.
6164 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6165 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6166 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6167 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6168
6169 * process.c (Fsystem_process_attributes): Doc fix.
6170
61712008-08-08 Chong Yidong <cyd@stupidchicken.com>
6172
6173 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6174 a continued multi-char glyph; if so, advance to the actual glyph.
6175
61762008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6177
6178 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6179
6180 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6181 (.m.o): Use it.
6182 * config.in: Regenerate.
6183
61842008-08-07 Chong Yidong <cyd@stupidchicken.com>
6185
6186 * xdisp.c (redisplay_window): Revert last change.
6187 (try_window): Check bottom scroll margin too.
6188
61892008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6190
6191 * config.in: Regenerate.
6192
6193 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6194 -list-load-path-shadows'.
6195 (nsgui.h): Reduce number of things depending on it.
6196
61972008-08-06 Chong Yidong <cyd@stupidchicken.com>
6198
6199 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6200 instead of window-end which does the wrong thing at eob.
6201 (try_cursor_movement): Minor optimization.
6202 (redisplay_window): If scroll margin is defined, don't assume
6203 window doesn't need scrolling.
6204
62052008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6206
6207 * config.in: Regenerate.
6208
6209 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6210 (mostlyclean): Don't delete *.d under NS.
6211
6212 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6213
62142008-08-06 Kenichi Handa <handa@m17n.org>
6215
6216 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6217
62182008-08-06 Andreas Schwab <schwab@suse.de>
6219
6220 * config.in: Regenerate.
6221
62222008-08-05 Chong Yidong <cyd@stupidchicken.com>
6223
6224 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6225 forcing a window start.
6226
6227 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6228 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6229
62302008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6231
6232 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6233 argument.
6234
62352008-08-05 Juanma Barranquero <lekktu@gmail.com>
6236
6237 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6238 <scroll-down-aggressively, before-change-functions>:
6239 <after-change-functions>: Reflow docstrings.
6240
62412008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6242 Ken Raeburn <raeburn@gnu.org>
6243
6244 Dock menu customization, based on a patch by Ken Raeburn, plus some
6245 other fixes.
6246 * nsmenu.m (dockMenu): New variable.
6247 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6248
6249 * nsterm.h (dockMenu): Declare.
6250
6251 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6252 (ns_term_init): Initialize dockMenu.
6253 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6254 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6255 left.
6256
6257 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6258
62592008-08-04 Chong Yidong <cyd@stupidchicken.com>
6260
6261 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6262
6263 * config.in: Regenerate.
6264
62652008-08-04 Seiji Zenitani <zenitani@mac.com>
6266
6267 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6268
62692008-08-04 Chong Yidong <cyd@stupidchicken.com>
6270
6271 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6272
62732008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6274
6275 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6276
6277 * keyboard.h: Comment an #endif.
6278
6279 * lisp.h (have_menus_p): Adjust comment.
6280
6281 * menu.c (find_and_return_menu_selection): Fix comparison with
6282 client_data.
6283
6284 * nsmenu.m (popup_activated_flag): New variable.
6285 (popup_activated): New function.
6286 (menu-or-popup-active-p): New exported lisp definition.
6287 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6288 when popup done.
6289 (ns_popup_dialog): Set popup_activated_flag.
6290
6291 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6292 version for GNUstep (handled by conditional typedef in nsterm.m).
6293 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6294 in rgb.txt).
6295
6296 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6297
6298 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6299
6300 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6301
6302 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6303 shortcircuit if popup_activated like GTK and X toolkit.
6304
6305 * m/inter386.h: Change DARWIN to DARWIN_OS.
6306
6307 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6308 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6309 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6310 comment on NO_SOCK_SIGIO.
6311
63122008-08-03 Chong Yidong <cyd@stupidchicken.com>
6313
6314 * nsterm.m (windowDidResize): Remove stopModal call.
6315
63162008-08-03 Andreas Schwab <schwab@suse.de>
6317
6318 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6319 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6320
63212008-08-02 Chong Yidong <cyd@stupidchicken.com>
6322
6323 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6324 Don't use uninitialized pointer variable when using getrlimit.
6325
63262008-08-02 Jason Rumney <jasonr@gnu.org>
6327
6328 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6329
63302008-08-02 Eli Zaretskii <eliz@gnu.org>
6331
6332 * alloc.c (NSTATICS): Bump to 0x640.
6333
6334 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6335
6336 * lisp.h: Add prototype for directory_files_internal.
6337
6338 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6339 New functions.
6340 (syms_of_process): Defsubr them. Add initializations for various
6341 Q* symbols used in procfs_system_process_attributes.
6342 (procfs_list_system_processes, procfs_system_process_attributes)
6343 [HAVE_PROCFS]: New functions.
6344 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6345 (procfs_get_total_memory): New functions.
6346
63472008-08-01 Juanma Barranquero <lekktu@gmail.com>
6348
6349 * xfaces.c (Fx_load_color_file): Fix previous change;
6350 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6351
63522008-08-01 Michael Albinus <michael.albinus@gmx.de>
6353
6354 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6355
63562008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6357
6358 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6359
63602008-08-01 Chong Yidong <cyd@stupidchicken.com>
6361
6362 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6363
6364 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6365 define NSApplicationDelegateReplySuccess.
6366 (EmacsView -converstationIdentifier): Use long instead of
6367 NSInteger for GNUstep, since it doesn't have NSInteger.
6368
6369 * xmenu.c: Revert last change.
6370
6371 * keyboard.h: Fix last change.
6372
63732008-08-01 Juanma Barranquero <lekktu@gmail.com>
6374
6375 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6376 on Windows.
6377
63782008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6379
6380 Warning clearing and clean-up in NS port.
6381 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6382 Add prototypes.
6383 * nsgui.h (FACE_DEFAULT): Remove, unused.
6384 (XGCValues): Change colors to unsigned long.
6385 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6386 nsterm.m.
6387 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6388 (ns_list_fonts): Remove, unused.
6389 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6390 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6391 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6392 (nsfont_draw): Compare face colors to 0, not nil.
6393 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6394 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6395 (-addSubmenuWithTitle:): Use NSMenuItem class.
6396 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6397 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6398 (ns_clip_to_row): Make gc arg a BOOL.
6399 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6400 ns_clip_to_row() call.
6401 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6402 used). Cast FRAME_FONT assignments.
6403 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6404 (ns_string_to_lispmod): Change arg to const char.
6405 (ns_term_init): Use NSMenuItem class.
6406 (EmacsApp -openFile:): Move to different section of file.
6407 (EmacsApp -application:openFiles:): Don't return a value, call
6408 -replyToOpenOrPrint:.
6409 (EmacsView -keyDown:): Fix up cast.
6410 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6411 (EmacsView -menuDown:): Cast tag in call to
6412 find_and_call_menu_selection().
6413 (ns_list_fonts): Remove, unused.
6414 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6415 (ns_fontname_to_xlfd): Make static.
6416 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6417 Remove prototypes (now in keyboard.h).
6418 (next_menubar_widget_id): Remove, unused.
6419 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6420 Remove prototypes (now in keyboard.h).
6421 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6422
64232008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6424
6425 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6426 (floatfns.o): Depend on syssignal.h.
6427 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6428
6429 * systty.h: Fix previous change that removed BSD_TERMIOS.
6430 Add comments to #ifdefs.
6431
64322008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6433
6434 * w32fns.c (w32-load-color-file): Remove.
6435 (x-open-connection): Use renamed Fx_load_color_file.
6436 * xfaces.c (x-load-color-file): Add.
6437 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6438 Emacs.clr.
6439 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6440
64412008-07-31 Michael Albinus <michael.albinus@gmx.de>
6442
6443 * dbusbind.c (Fdbus_call_method_asynchronously)
6444 (Fdbus_method_error_internal): New defuns.
6445 (xd_read_message): Handle also reply messages.
6446 (Vdbus_registered_functions_table): Extend docstring.
6447
64482008-07-31 Juanma Barranquero <lekktu@gmail.com>
6449
6450 * keyboard.c (gobble_input): Fix previous change.
6451
64522008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6453
6454 * bitmaps/README:
6455 * xfns.c:
6456 * termcap.c:
6457 * term.c:
6458 * syswait.h:
6459 * systty.h:
6460 * systime.h:
6461 * syssignal.h:
6462 * sysdep.c:
6463 * process.h:
6464 * process.c:
6465 * print.c:
6466 * ndir.h:
6467 * lread.c:
6468 * keyboard.c:
6469 * getpagesize.h:
6470 * floatfns.c:
6471 * fileio.c:
6472 * emacs.c:
6473 * doc.c:
6474 * dispnew.c:
6475 * dired.c:
6476 * data.c:
6477 * callproc.c:
6478 * buffer.c:
6479 * README:
6480 * Makefile.in:
6481 * s/template.h:
6482 * s/msdos.h:
6483 * m/vax.h: Remove VMS support.
6484 * s/vms.h:
6485 * vlimit.h:
6486 * uaf.h:
6487 * temacs.opt:
6488 * param.h:
6489 * ioctl.h: Remove file.
6490
64912008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6492
6493 * s/ms-w32.h (MULTI_KBOARD): Remove.
6494 * xterm.c:
6495 * xselect.c:
6496 * xfns.c:
6497 * window.c:
6498 * w32term.c:
6499 * w32fns.c:
6500 * terminal.c:
6501 * termhooks.h:
6502 * term.c:
6503 * sysdep.c:
6504 * keyboard.h:
6505 * keyboard.c:
6506 * frame.h:
6507 * frame.c:
6508 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6509 * config.in: Regenerate.
6510
65112008-07-30 Jason Rumney <jasonr@gnu.org>
6512
6513 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6514
6515 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6516 (w32font_open_internal): Get unicode version of textmetrics.
6517 Don't enable or disable glyph indices here.
6518 (w32font_open): Disable use of glyph indices.
6519
6520 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6521
65222008-07-30 Chong Yidong <cyd@stupidchicken.com>
6523
6524 * minibuf.c (Vread_buffer_function): Doc fix.
6525
65262008-07-30 John Paul Wallington <jpw@pobox.com>
6527
6528 * minibuf.c (read_buffer_completion_ignore_case): New var.
6529 (Fread_buffer): Use it.
6530
65312008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6532
6533 * systty.h (sensemode): Remove empty #if. Remove reference to
6534 BSD_TERMIOS, unused.
6535
6536 * sysdep.c: Remove reference to DGUX.
6537 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6538
6539 * config.in: Regenerate.
6540
65412008-07-30 Jason Rumney <jasonr@gnu.org>
6542
6543 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6544
65452008-07-29 Jason Rumney <jasonr@gnu.org>
6546
6547 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6548 is populated.
6549 (uniscribe_encode_char): Always use uniscribe.
6550 Avoid using context if cache is populated.
6551
65522008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6553
6554 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6555 open menu.
6556
6557 * gtkutil.c (menu_nav_ended): Remove.
6558 (create_menus): Remove signal connect for menu_nav_ended.
6559
65602008-07-28 Chong Yidong <cyd@stupidchicken.com>
6561
6562 * xdisp.c (redisplay_window): Check return value of
6563 compute_window_start_on_continuation_line before forcing a window
6564 start.
6565
65662008-07-28 Jason Rumney <jasonr@gnu.org>
6567
6568 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6569
6570 * w32term.c (w32_enable_unicode_output, cleartype_active):
6571 Remove obsolete display options.
6572 (x_draw_glyph_string_background): Don't use old cleartype_active
6573 workaround.
6574 (w32_initialize): Remove cleartype_active initialization.
6575 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6576
65772008-07-28 Andreas Schwab <schwab@suse.de>
6578
6579 * lisp.h (init_weak_hash_tables, syms_of_font)
6580 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6581 (remove_hash_entry): Don't declare.
6582 * eval.c (maybe_call_debugger): Make static and move before use.
6583 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6584 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6585 * xterm.h (x_set_frame_alpha): Declare.
6586
65872008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6588
6589 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6590 (create_menus): Connect selection-done to menu_nav_ended.
6591
65922008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6593
6594 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6595 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6596 parameter with read of 'alpha' one.
6597 (Qns_frame_parameter): Remove.
5582fbc7 6598 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6599 (next-selection-coding-system, Vselection_coding_system)
6600 (Vnext_selection_coding_system): Drop.
6601
66022008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6603
6604 * nsfns.m (do-applescript, do_applescript): Rename to
6605 ns-do-applescript, ns_do_applescript, and move within file.
6606
66072008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6608
6609 Remove support for Mac Carbon.
6610 * mactoolbox.c:
6611 * macterm.h:
6612 * macterm.c:
6613 * macselect.c:
6614 * macmenu.c:
6615 * macgui.h:
6616 * macfns.c:
6617 * mac.c: Remove file.
6618 * s/darwin.h:
6619 * m/intel386.h:
6620 * xfaces.c:
6621 * xdisp.c:
6622 * window.c:
6623 * tparam.c:
6624 * termhooks.h:
6625 * termcap.c:
6626 * term.c:
6627 * syssignal.h:
6628 * sysselect.h:
6629 * sysdep.c:
6630 * process.c:
6631 * lread.c:
6632 * lisp.h:
6633 * keyboard.c:
6634 * image.c:
6635 * fringe.c:
6636 * frame.h:
6637 * frame.c:
6638 * fontset.c:
6639 * font.h:
6640 * font.c:
6641 * fns.c:
6642 * fileio.c:
6643 * emacs.c:
6644 * dispnew.c:
6645 * dispextern.h:
6646 * config.in:
6647 * atimer.c:
2ae37cf0 6648 * Makefile.in: Remove code for Carbon.
aac0c6e3 6649
f0131492 66502008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6651
6652 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6653
66542008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6655
6656 * macterm.h (kCGBitmapByteOrder32Host): New define for
6657 non-universal SDKs.
6658
6659 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6660 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6661
6662 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6663 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6664
66652008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6666
6667 * w32inevt.c: Include dispextern.h.
6668
66692008-07-26 Andreas Schwab <schwab@suse.de>
6670
6671 * print.c (print_object): Fix off-by-one in last change.
6672
66732008-07-25 Juanma Barranquero <lekktu@gmail.com>
6674
6675 * term.c (syms_of_term): Don't initialize default_orig_pair,
6676 default_set_foreground and default_set_background on Windows.
6677
66782008-07-25 Jason Rumney <jasonr@gnu.org>
6679
6680 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6681 ScriptItemize. Clean up return value checking. Remove unused
6682 variables.
6683 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6684 shaping engine.
6685
6686 * w32font.c (w32font_has_char): Handle the case where we can't
6687 determine the script for a character.
6688
66892008-07-25 Chong Yidong <cyd@stupidchicken.com>
6690
6691 * term.c (syms_of_term): Initialize default_orig_pair,
6692 default_set_foreground, and default_set_background.
6693
6694 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6695 clash (bug#86).
6696 (getloadavg): Callers changed.
6697
6698 * image.c (svg_load_image): Fix last change.
6699 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6700 image size is valid. Use g_object_unref instead of deprecated
6701 rsvg_handle_free to free rsvg handle.
6702 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6703
67042008-07-25 Jason Rumney <jasonr@gnu.org>
6705
6706 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6707 surrogates before looking up glyph index.
6708 (w32font_text_extents): Encode as surrogates if falling back to
6709 functions that need UTF-16 wide chars.
6710
6711 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6712 BMP as surrogates before looking up glyph index.
6713
67142008-07-25 Chong Yidong <cyd@stupidchicken.com>
6715
6716 * image.c (svg_load_image): Check for failure in return value of
6717 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6718
67192008-07-25 Jason Rumney <jasonr@gnu.org>
6720
6721 * w32font.c (Fx_select_font): Reverse sense of second arg.
6722
67232008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6724
6725 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6726 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6727
6728 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6729 (PURESIZE): Use it.
6730
67312008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6732
6733 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6734 * m/alpha.h (TEXT_END):
6735 * m/ibmrs6000.h (TEXT_END):
6736 * m/macppc.h (TEXT_END):
6737 * s/darwin.h (TEXT_END):
6738 * s/msdos.h (TEXT_END): Remove, unused.
6739 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6740 * s/cygwin.h: Remove comment.
6741
6742 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6743 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6744 * m/intel386.h (DOT_GLOBAL_START):
6745 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6746 (USG): Remove, file not used on USG platforms.
6747
6748 * Makefile.in (HAVE_X11): Remove empty #else.
6749
67502008-07-24 Andreas Schwab <schwab@suse.de>
6751
6752 * fileio.c (Finsert_file_contents): Properly adjust undo list
6753 after format conversion.
6754
67552008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6756
6757 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6758 (menu_nav_ended): Remove.
6759 (create_menus): Remove signal connect for menu_nav_ended.
6760 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6761 create_menus.
6762 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6763
67642008-07-23 Jason Rumney <jasonr@gnu.org>
6765
6766 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6767 with opened font.
6768 (w32font_open): Set font type to gdi.
6769
6770 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6771
67722008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6773
6774 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6775 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6776 defines it.
6777 * unexec.c (ADDR_CORRECT): Define unconditionally.
6778
6779 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6780
6781 * unexec.c: Remove code depending on !COFF and USG, the file is
6782 not used for such systems.
6783
6784 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6785 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6786 (LD_SWITCH_SYSTEM_1): Remove, update users.
6787
6788 * s/darwin.h (DATA_END):
6789 * m/intel386.h (DATA_END):
6790 * m/ibmrs6000.h (DATA_END):
6791 * m/alpha.h (DATA_END): Remove, unused.
6792
6793 * config.in: Regenerate.
6794 * s/ms-w32.h (subprocesses): Define unconditionally.
6795 * s/template.h (subprocesses): Update comment.
6796 * s/vms.h (subprocesses):
6797 * s/usg5-4.h (subprocesses):
6798 * s/hpux10-20.h (subprocesses):
6799 * s/gnu-linux.h (subprocesses):
6800 * s/cygwin.h (subprocesses):
6801 * s/bsd-common.h (subprocesses):
6802 * s/aix4-2.h (subprocesses):
6803 * s/darwin.h (subprocesses): Do not define, defined by default now.
6804
6805 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6806 Remove all references.
6807 (temacs): Add GNUstep specific ld flags.
6808
6809 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6810 similarly to what X does.
6811
68122008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6813
6814 * nsfns.m (x-list-fonts): Remove.
6815 (syms_of_nsfns): Drop the x-list-fonts declaration.
6816 * nsterm.m: Get rid of remaining "//" comments.
6817
68182008-07-22 Chong Yidong <cyd@stupidchicken.com>
6819
6820 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6821
6822 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6823 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6824 (Fns_own_selection_internal, Fx_disown_selection_internal)
6825 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6826
6827 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6828 ... */' style of docstrings. Doc fixes.
6829
68302008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6831
6832 * terminfo.c (UP, BC, PC): Undo previous change.
6833
6834 * nsfns.m: Rename ns prefixed functions/variables to the
6835 corresponding x versions. Update references.
6836
68372008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6838
6839 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6840
68412008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6842
6843 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6844 Remove forwarding functions.
6845 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6846 non-static.
6847 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6848 non-static.
6849 (ns_frame_parm_handlers): Use the new names.
6850 (syms_of_nsfns): Move to the end of file.
6851
6852 * nsterm.m (syms_of_nsterm): Move to the end of file.
6853
6854 * dispnew.c (init_display): Remove code for X10.
6855
68562008-07-22 Jason Rumney <jasonr@gnu.org>
6857
6858 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6859 bare drive.
6860
68612008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6862
6863 * nsterm.m (syms_of_nsterm): Remove debugging println.
6864
68652008-07-22 David Reitter <david.reitter@gmail.com>
6866
6867 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6868 Carbon implementation of the same functionality: execute arbitrary
6869 AppleScript code.
6870
68712008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6872
6873 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6874 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6875 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6876 (Fx_display_mm_height, Fx_display_mm_width)
6877 (Fx_display_backing_store, Fx_display_visual_class)
6878 (Fx_display_save_under, Fx_open_connection)
6879 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6880 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6881 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6882 (Fx_display_pixel_width, Fx_display_pixel_height)
6883 (Fx_display_usable_bounds, Fx_display_planes)
6884 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6885 ... */' style of docstrings.
6886
68872008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6888
6889 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6890 on this platform.
6891 (mips):
6892 * m/iris4d.h (mips): Do not define.
6893 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6894
6895 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6896
6897 * image.c:
6898 * nsfns.m:
6899 * nsselect.m:
6900 * nsterm.h:
6901 * nsterm.m: Rename ns prefixed functions/variables to the
6902 corresponding x versions. Update references.
6903
6904 * m/ibms390x.h (NO_REMAP): Do not undefine.
6905
6906 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6907
69082008-07-21 Chong Yidong <cyd@stupidchicken.com>
6909
6910 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6911 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6912 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6913 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6914 (Fns_display_mm_height, Fns_display_mm_width)
6915 (Fns_display_backing_store, Fns_display_visual_class)
6916 (Fns_display_save_under, Fns_open_connection)
6917 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6918 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6919 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6920 (Fns_display_pixel_width, Fns_display_pixel_height)
6921 (Fns_display_usable_bounds, Fx_display_planes)
6922 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6923
69242008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6925
6926 * print.c (print_object): Check print_depth before searching for
6927 circularities.
6928
69292008-07-21 Michael Albinus <michael.albinus@gmx.de>
6930
6931 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6932 only sprintf.
6933
69342008-07-21 Kenichi Handa <handa@m17n.org>
6935
6936 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6937
69382008-07-20 Andreas Schwab <schwab@suse.de>
6939
6940 * syntax.c (find_start_pos, find_start_value)
6941 (find_start_value_byte, find_start_begv, find_defun_start)
6942 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6943
69442008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6945
6946 * s/sol2-3.h: Insert contents of s/sol2.h.
6947 (LD_SWITCH_SYSTEM): Remove redundant definition.
6948 * s/sol2.h: Remove, unused.
6949
69502008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6951
6952 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6953
69542008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6955
6956 * Makefile.in (ns_appdir): Fix typo in find command.
6957
69582008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6959
6960 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6961
6962 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6963 added not supported anymore.
6964
6965 * s/usg5-4-2.h (LIBS_SYSTEM):
6966 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6967
6968 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6969 * s/lynxos.h (GETPGRP_NO_ARG):
6970 * s/hpux10-20.h (NO_SIOCTL_H):
6971 * s/gnu.h (GETPGRP_NO_ARG):
6972 * s/gnu-linux.h (NO_SIOCTL_H):
6973 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6974 * s/cygwin.h (GETPGRP_NO_ARG):
6975 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6976 (C_DEBUG_SWITCH): Remove duplicate definition.
6977
6978 * m/ibms390.h: Remove boilerplate comments.
6979
6980 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6981
6982 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6983 (wait_reading_process_output): Remove code for SunOS, platform not
6984 supported anymore. Use SOLARIS2 instead of sun.
6985
69862008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6987
6988 * font.c (font_open_by_name): Under NS, default lface height to zero.
6989 (font_open_for_lface): Under NS, set size based on frame fontsize.
6990 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6991 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6992
69932008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6994
6995 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6996 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6997 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6998 YES/NO.
6999 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7000 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7001 * Makefile.in (clean): Clear out build destination dir.
7002
70032008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7004
7005 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7006 xterm, xselect.
7007 * lisp.h: Remove declaration of hash_remove.
7008 * nsgui.h: Remove redefinitions of hash_remove.
7009 * fns.c (hash_remove): Rename to hash_remove_from_table.
7010
70112008-07-19 Seiji Zenitani <zenitani@mac.com>
7012
7013 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7014 strdup() the family UTF8String before modifying it.
7015
70162008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7017
7018 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7019 NS_FACE_BACKGROUND with 0 instead of nil.
7020 * nsfont.m (nsfont_draw): Same.
7021
70222008-07-19 Chong Yidong <cyd@stupidchicken.com>
7023
7024 * nsfns.m (ns_set_background_color): Fix crash.
7025
70262008-07-18 Chong Yidong <cyd@stupidchicken.com>
7027
7028 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7029
70302008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7031
7032 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7033
70342008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7035
7036 * gtkutil.c: Include <config.h> instead of "config.h".
7037
7038 * lisp.h (Foverlay_buffer): Add EXFUN.
7039
7040 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7041 child process to complete child_setup. Undo 2005-09-21 change.
7042
7043 * s/darwin.h: Mention setsid after vfork.
7044
70452008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7046
7047 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7048 Depend on macgui.h.
7049
7050 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7051 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7052
7053 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7054 and f19.
7055 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7056
7057 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7058 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7059 Remove enumerators.
7060
7061 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7062 Check if FACE_FROM_ID returns NULL.
7063
70642008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7065
7066 * w32inevt.c (change_frame_size): Remove extern declaration.
7067 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7068 change_frame_size.
7069
70702008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7071
7072 * getloadavg.c: Revert last change (2008-07-15).
7073
70742008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7075
7076 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7077 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7078 from configure.
7079
70802008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7081
7082 * s/sol2.h:
7083 * s/sol2-4.h: Reorganize conditionals.
7084
7085 * ecrt0.c: Remove code depending on m68000, not used anymore.
7086
7087 * fns.c (hash_remove): Make static.
7088 * lisp.h (hash_remove): Don't prototype.
7089
7090 * m/ibmrs6000.h:
7091 * m/ibms390x.h:
7092 * m/macppc.h: Remove boilerplate comments.
7093
7094 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7095 Solaris, which does not need them.
7096
7097 * m/vax.h: Remove comments about unsupported systems.
7098
7099 * s/darwin.h: Reorganize ifdefs.
7100
71012008-07-17 Andreas Schwab <schwab@suse.de>
7102
7103 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7104
71052008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7106
7107 Use SDATA. Follow coding convention of placing operators at
7108 beginning of next line rather than end of previous line, and placing
7109 spaces around infix operators.
7110
7111 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7112 in case it was defined already.
7113 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7114 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7115 ns_default.
7116 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7117 Lisp_Objects.
7118 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7119 (ns_defined_color, ns_color_to_lisp): Declare.
7120 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7121 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7122 it's accepted even with USE_LISP_UNION_TYPE.
7123 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7124 (update_frame_tool_bar): Remove apparently obsolete tests for
7125 non-integerness of f->tool_bar_lines.
7126 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7127 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7128 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7129 (nsfont_open): Don't confuse NULL for Qnil.
7130 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7131 * menu.h (find_and_call_menu_selection):
7132 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7133 (find_and_return_menu_selection): Always return something.
7134 * frame.h: Include dispextern.h for Display_Info.
7135 (display_x_get_resource): Declare.
7136
71372008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7138
7139 * syntax.c: Remove stdio.h include accidentally introduced in
7140 Emacs.app commit.
7141 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7142 NS_IMPL_COCOA.
7143 * keyboard.c (handle_async_input, input_available_signal): Remove
7144 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7145
71462008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7147
7148 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7149 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7150 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7151 Use SDATA.
7152
7153 * keymap.c: Remove all NS-specific code.
7154 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7155 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7156 where_is_preferred_modifier, return a different value depending on how
7157 preferred is the binding.
7158 (where_is_internal): Adjust accordingly.
7159 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7160 Adjust to new preferred_sequence_p.
7161 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7162 * keyboard.c (parse_solitary_modifier): Not static any more.
7163 * keyboard.h (parse_solitary_modifier): Declare.
7164
71652008-07-16 Andreas Schwab <schwab@suse.de>
7166
7167 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7168 of easymenu.
7169
71702008-07-16 Chong Yidong <cyd@stupidchicken.com>
7171
7172 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7173 that we don't move off the line.
7174
71752008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7176
7177 * keyboard.c (Qsuper): Remove.
7178 (parse_menu_item): Don't call where_is_internal specially for NS.
7179
71802008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7181
7182 * s/gnu-linux.h: Remove boilerplate comments.
7183
7184 * m/alpha.h (__ELF__): Consolidate conditions.
7185
7186 * m/m68k.h (linux): Use GNU_LINUX instead.
7187 Remove boilerplate comments.
7188
7189 * m/intel386.h: Undo refactoring from previous change.
7190 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7191 too, remove dead code.
7192 (linux): Use GNU_LINUX instead.
7193
71942008-07-16 Jason Rumney <jasonr@gnu.org>
7195
7196 * w32gui.h: Repeat 26 June changes lost by last change.
7197
71982008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7199
7200 * systty.h: Remove code for Aix on 386, unsupported platform.
7201
7202 * s/ms-w32.h: Remove boilerplate comments.
7203 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7204
7205 * s/gnu-linux.h (TERM): Remove support.
7206 (HAVE_SYSVIPC): Remove, unused.
7207 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7208 for this system.
7209
7210 * process.c: Remove support for IRIS, unused.
7211 Remove support for TERM, not relevant anymore.
7212
7213 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7214 used with the definition.
7215
7216 * s/aix4-2.h (static): Do not undef.
7217
7218 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7219 only used on Aix.
7220 (HAVE_SYSVIPC): Remove, unused.
7221
7222 * m/hp800.h (CANNOT_DUMP): Do not undef.
7223
7224 * m/alpha.h: Fix comment.
7225
7226 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7227 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7228 used by this configuration.
7229 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7230 * unexec.c: Remove code depending on HPUX and
7231 USG_SHARED_LIBRARIES, not used with this file. Remove code
7232 depending on IRIS, unused. Remove if 0-ed code.
7233
7234 * s/template.h: Remove comments about static.
7235
7236 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7237 Remove if 0-ed code.
7238 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7239 were the same as the default.
7240 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7241 Remove boilerplate comments.
7242 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7243 (HAVE_SYSVIPC): Remove, unused.
7244 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7245
7246 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7247 Remove boilerplate comments.
7248 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7249 Remove boilerplate comments.
7250 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7251 Remove boilerplate comments.
7252 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7253
7254 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7255 USG systems which do not use DATA_SEG_BITS.
7256 Refactor code. Remove boilerplate comments.
7257
7258 * m/ibms390.h:
7259 * m/m68k.h:
7260 * s/bsd-common.h:
7261 * s/cygwin.h:
7262 * s/darwin.h:
7263 * s/freebsd.h:
7264 * s/gnu.h:
7265 * s/msdos.h: Remove boilerplate comments.
7266
7267 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7268 do not use this file.
aac0c6e3
MR
7269 (IRIS_4D): Remove, unused.
7270
7271 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7272 do not use this file.
aac0c6e3
MR
7273 (SIGN_EXTEND_CHAR):
7274 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7275 * unexmips.c: Remove file, unused.
7276
7277 * editfns.c (Fuser_full_name): Replace the only use of
7278 USER_FULL_NAME with its value.
7279 * config.in: Regenerate.
7280
72812008-07-16 David Reitter <david.reitter@gmail.com>
7282
7283 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7284 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7285
72862008-07-16 Glenn Morris <rgm@gnu.org>
7287
7288 * emacs.c (system-type): Doc fix.
7289
72902008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7291
7292 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7293 If the cache doesn't work, let's fix it, rather than work around it.
7294
72952008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7296
7297 * Makefile.in: Correct additions for nsfont.o in last commit.
7298 * nsfont.m: New file (forgot last commit).
7299
73002008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7301
7302 * callproc.c (set_initial_environment): Initialize
7303 Vprocess_environment under CANNOT_DUMP (fixes crash when
7304 batch-compiling for bootstrap).
7305
73062008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7307 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7308
7309 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7310 fix crash due to different init order.
7311
73122008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7313
7314 Changes and additions for NeXTstep windowing system (Cocoa and
7315 GNUstep) support.
7316
7317 * Makefile.in:
7318 * config.in: Support defines and build commands for NS port.
7319 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7320 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7321 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7322 windowing.
7323 (struct face): Add synth_ital field.
7324 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7325 (init_display): Initialize Vinitial_window_system to "ns" when so
7326 compiled.
7327 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7328 (display_arg): Use under NS.
7329 (main): Under NS, allocate autorelease pool and handle command line
7330 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7331 (standard_args): Add NS-specific args.
7332 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7333 * font.c (DEFAULT_ENCODING): New variable.
7334 (font_find_for_lface): Use it.
7335 (syms_of_font): Load syms_of_nsfont under NS.
7336 * font.h: Declare nsfont_driver when compiled under NS.
7337 * fontset.c: When compiling under NS, include nsterm.h.
7338 (fontset_from_font): Autoconstruct fontset under NS.
7339 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7340 symbol, document and use it.
7341 (do_switch_frame): When for_deletion under Cocoa, add
7342 Fraise_frame(Qnil).
7343 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7344 (x_get_arg): Allow "yes" and "no" as boolean values.
7345 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7346 Qright under Cocoa.
7347 (focus-follows-mouse): Default to 0 under NS.
7348 * frame.h (enum output_method): Add output_ns.
7349 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7350 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7351 (FRAME_WINDOW_P): NS-specific definition.
7352 * fringe.c (max_used_fringe_bitmap): Make public.
7353 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7354 (getloadavg): Use NeXT code under descendant OS's.
7355 * image.c (includes and header section, x_create_bitmap_from_data)
7356 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7357 (image_background_transparent, x_clear_image_1)
7358 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7359 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7360 (x_to_xcolors, x_from_xcolors, x_disable_image)
7361 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7362 other GUIs, including XPM support using code originally written for
7363 Carbon GUI.
7364 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7365 using NS API.
7366 (image_ascent): Use font metrics macros instead of direct struct field
7367 access.
7368 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7369 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7370 Also, handle NS as GTK for menu bar purposes.
7371 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7372 toolkit where they differ.
7373 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7374 use cachelist, still needed under NS.
7375 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7376 (struct widget_value): Define it here for menu.c.
7377 * keymap.c (includes): Include modifier internals.
7378 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7379 NS.
7380 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7381 support for preferring sequences using certain modifiers, specified by
7382 the FIRSTONLY argument.
7383 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7384 under NS GNUstep implementation.
7385 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7386 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7387 * menu.c: Include nsterm.h under NS.
7388 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7389 (free_menubar_widget_tree_value, update_submenu_strings)
7390 (find_and_call_menu_selection): Treat NS as X and NT.
7391 (find_and_return_menu_selection): New function, used for popup menus.
7392 * nsgui.h:
7393 * nsterm.h:
7394 * nsfns.m:
7395 * nsimage.m:
7396 * nsmenu.m:
7397 * nsselect.m:
7398 * nsterm.m: New files.
7399 * process.c (wait_reading_process_output): Under NS, call ns_select()
7400 instead of plain select().
7401 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7402 beginning of buffer.
7403 * sysselect.h (init_process): Rename when compiling under Cocoa to
7404 avoid name conflict.
7405 * termhooks.h (display_info): Add ns_display_info to union.
7406 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7407 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7408 COCOA environment.
7409 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7410 unexec() signature. (Note, this will dump, but the resulting file
7411 crashes; unexosx is used instead; keeping around for reference and
7412 possible aid in getting dump working under GNUstep.)
7413 * w32gui.h (button_type, widget_value): Remove definitions (now in
7414 keyboard.h).
7415 * window.c: Include nsterm.h when compiling under NS.
7416 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7417 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7418 other GUI windowing systems.
7419 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7420 GTK.
7421 (x_consider_frame_title): Under NS, set icon type and frame
7422 modified-state indicator; use ns_set_name_as_filename() when using
7423 formatted title.
7424 (update_window_cursor): Make public when compiling under NS.
7425 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7426 (hourglass_atimer, Vhourglass_delay
7427 * xfaces.c (header section, init_frame_faces, clear_font_table)
7428 (defined_color, unload_color, x_face_list_fonts)
7429 (prepare_face_for_display): Add NS support parallel to other GUIs.
7430 Emulate GCs like other non-X GUIs.
7431 (split_font_name): Don't lowercase font name under NS.
7432 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7433 under NS.
7434 * s/darwin.h: Add support for compilation under NS.
7435
74362008-07-15 Jason Rumney <jasonr@gnu.org>
7437
7438 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7439 (w32_show_hourglass): Rename from show_hourglass.
7440 (w32_hide_hourglass): Rename from hide_hourglass.
7441 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7442 (Vhourglass_delay): Declare extern.
7443 (hourglass_started): Remove.
7444
7445 * xdisp.c (Vhourglass_delay): Remove static.
7446 (hourglass_started, start_hourglass, cancel_hourglass):
7447 Don't include these versions on WINDOWSNT.
7448
74492008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7450
7451 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7452 variables (formerly in xfns.c).
7453 (show_hourglass, hide_hourglass): New prototypes (same).
7454 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7455 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7456 in xfns.c).
7457 (syms_of_xdisp): Declare/initialize display-hourglass,
7458 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7459 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7460 formerly in xfns.c.
7461 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7462 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7463 (start_hourglass, cancel_hourglass): Remove.
7464 (show_hourglass, hide_hourglass): Remove prototypes and static
7465 modifiers.
7466 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7467 hourglass_atimer, hourglass_shown_p declaration/initialization.
7468 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7469 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7470 (start_hourglass, cancel_hourglass): Remove.
7471 (show_hourglass, hide_hourglass): Remove prototypes and static
7472 modifiers.
7473 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7474 hourglass_atimer, hourglass_shown_p declaration/initialization.
7475 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7476 (DEFAULT_HOURGLASS_DELAY): Remove.
7477 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7478 hourglass_shown_p declaration/initialization.
7479
74802008-07-14 Jason Rumney <jasonr@gnu.org>
7481
7482 * w32fns.c (w32_get_arg): Remove wrapper function.
7483 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7484 directly.
7485 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7486
74872008-07-14 Kenichi Handa <handa@m17n.org>
7488
7489 * xfont.c (xfont_open): Add workaround for X's bug.
7490
74912008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7492
7493 * fontset.c: Include <stdio.h> unconditionally.
7494
74952008-07-13 Michael Albinus <michael.albinus@gmx.de>
7496
7497 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7498 for filtering.
7499
75002008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7501
7502 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7503
7504 * m/macppc.h:
7505 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7506
7507 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7508 (SPECIAL_EMACS_INT):
7509 * m/ia64.h (SPECIAL_EMACS_INT):
7510 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7511 * s/gnu.h (NLIST_STRUCT):
7512 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7513 * s/gnu-linux.h (LINUX):
7514 * s/msdos.h (HAVE_FACES):
7515 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7516
7517 * systty.h:
7518 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7519 anymore.
7520
75212008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7522
7523 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7524 always defined as int.
7525
7526 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7527 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7528 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7529 * s/freebsd.h (HAVE_WAIT_HEADER):
7530 * s/bsd-common.h (HAVE_UNION_WAIT):
7531 * s/aix4-2.h (HAVE_WAIT_HEADER):
7532 * m/mips.h (HAVE_UNION_WAIT):
7533 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7534 (COFF, static): Do not define, they are undefined later in the file.
7535
7536 * process.c (update_status): Don't use a union.
7537 (status_convert):
7538 (sigchld_handler): Use int instead of WAITTYPE.
7539
75402008-07-12 Chong Yidong <cyd@stupidchicken.com>
7541
7542 * indent.c (Fvertical_motion): Restore hscroll before moving to
7543 goal column.
7544
75452008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7546
7547 * lisp.h: Remove left over code.
7548
75492008-07-11 Andreas Schwab <schwab@suse.de>
7550
7551 * lisp.h: Fix logic in last change.
7552
7553 * menu.h: New file.
7554 * menu.c: Include it.
7555 * xmenu.c: Likewise.
7556 * Makefile.in: Update dependencies.
7557
75582008-07-11 Kenichi Handa <handa@m17n.org>
7559
7560 * fontset.c (fontset_from_font): Cancel the previous change.
7561
75622008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7563
7564 * lisp.h:
7565 * w32heap.c:
7566 * emacs.c:
7567 * alloc.c: Replace all references of NO_UNION_TYPE with
7568 USE_LISP_UNION_TYPE.
7569
7570 * m/xtensa.h (NO_UNION_TYPE):
7571 * m/vax.h (NO_UNION_TYPE):
7572 * m/template.h (NO_UNION_TYPE):
7573 * m/sparc.h (NO_UNION_TYPE):
7574 * m/mips.h (NO_UNION_TYPE):
7575 * m/macppc.h (NO_UNION_TYPE):
7576 * m/m68k.h (NO_UNION_TYPE):
7577 * m/iris4d.h (NO_UNION_TYPE):
7578 * m/intel386.h (NO_UNION_TYPE):
7579 * m/ibms390x.h (NO_UNION_TYPE):
7580 * m/ibms390.h (NO_UNION_TYPE):
7581 * m/ibmrs6000.h (NO_UNION_TYPE):
7582 * m/ia64.h (NO_UNION_TYPE):
7583 * m/hp800.h (NO_UNION_TYPE):
7584 * m/arm.h (NO_UNION_TYPE):
7585 * m/amdx86-64.h (NO_UNION_TYPE):
7586 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7587 defining it the same.
7588
75892008-07-10 Chong Yidong <cyd@stupidchicken.com>
7590
7591 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7592
75932008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7594
7595 * fileio.c:
7596 * sysdep.c
7597 * systty.h:
7598 * m/ibmrs6000.h:
7599 * m/iris4d.h:
7600 * s/aix4-2.h:
7601 * s/freebsd.h:
7602 * s/gnu-linux.h:
7603 * s/hpux10-20.h:
7604 * s/hpux11.h:
7605 * s/netbsd.h:
7606 * s/sol2-3.h:
7607 * s/sol2-4.h:
7608 * s/sol2.h:
7609 * s/usg5-4.h:
7610 * s/vms.h: Remove references to unused variables.
7611
76122008-07-10 Andreas Schwab <schwab@suse.de>
7613
7614 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7615 pattern before matching the generic family.
7616
76172008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7618
7619 * unexec.c:
7620 * s/vms.h:
7621 * s/usg5-4-2.h:
7622 * s/sol2-5.h:
7623 * s/freebsd.h:
7624 * s/darwin.h: Remove dead code.
7625
7626 * m/template.h:
7627 * m/sparc.h:
7628 * m/mips.h:
7629 * m/m68k.h:
7630 * m/iris4d.h:
7631 * m/intel386.h:
7632 * m/ibms390x.h:
7633 * m/ibms390.h:
7634 * m/ia64.h:
7635 * m/hp800.h:
7636 * m/arm.h:
7637 * m/amdx86-64.h: Remove dead code and references to unused
7638 and compiler defined symbols.
7639
7640 * unexmips.c:
7641 * unexelf.c: Remove references to desupported systems.
7642
7643 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7644
7645 * m/powermac.h: Remove boilerplate comments.
7646 (NO_REMAP): Remove unused definition.
7647
7648 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7649 define them.
7650
76512008-07-10 Kenichi Handa <handa@m17n.org>
7652
7653 * xfont.c (xfont_open): Log the reason of failure.
7654
76552008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7656
7657 * fontset.c (fontset_get_font_group):
7658 * font.c (font_check_otf): Specify argument types.
7659
76602008-07-09 Kenichi Handa <handa@m17n.org>
7661
7662 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7663 non-ASCII char is found.
7664
7665 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7666 (reorder_font_vector): Change the arg preferred_family to font.
7667 Prefer the spec matching with font.
7668 (fontset_get_font_group): New function.
7669 (fontset_find_font): Change the format of an element of a realized
7670 fontset. Use fontset_get_font_group.
7671 (fontset_font): Try the current fontset, the default fontset, the
7672 fallbacks of the current fontset, and the fallbacks of the default
7673 fontset in this order.
7674 (face_for_char): Delete the shortcut to use the current font.
7675 (fontset_from_font): Don't set fonts for Latin in the fontset.
7676
7677 * font.h (font_make_object, font_match_p): Adjust prototypes.
7678
7679 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7680
7681 * font.c (font_make_object): New arg entity and pixelsize.
7682 (font_check_otf_features, font_check_otf): New functions.
7683 (font_match_p): Check :lang, :script, and :otf properties.
7684
7685 * xfont.c (xfont_open): Adjust it for the change of
7686 font_make_object.
7687 (xfont_text_extents): Fix initial setting of metrics.
7688
7689 * ftfont.c (struct ftfont_info): New member index, delete member
7690 fc_charset_idx. Make the member order compatible with struct
7691 xftfont_info.
7692 (fc_charset_table): Change charset names to registry names.
7693 (ftfont_pattern_entity): Delete the args registry and
7694 fc_charset_idx. Change the value of :font-entity property
7695 to (FONTNAME . INDEX). Always set :registry property to
7696 `iso10646-1'.
7697 (struct ftfont_cache_data): New struct.
7698 (ftfont_lookup_cache): New arg for_face.
7699 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7700 (ftfont_driver): Set the member otf_capability.
7701 (ftfont_get_charset): Adjust it for the change of
7702 fc_charset_table.
7703 (OTF_TAG_SYM): New macro.
7704 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7705 for the change of fc_charset_table.
7706 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7707 ftfont_pattern_entity. Add FC_INDEX to objset.
7708 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7709 and ftfont_pattern_entity.
7710 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7711 font_make_object, struct ftfont_info.
7712 (ftfont_has_char): Use ftfont_get_fc_charset.
7713 (ftfont_otf_features, ftfont_otf_capability): New functions.
7714 (ftfont_shape): Use ftfont_get_otf.
7715 (ftfont_text_extents): Fix initial setting of metrics.
7716
7717 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7718 member order compatible with struct ftfont_info.
7719 (xftfont_open): Add FC_CHARSET to the pattern. Set
7720 xftfont_info->ft_size. Don't unlock the face. Check BDF
7721 properties if appropriate.
7722 (xftfont_close): Unlock the face.
7723 (xftfont_anchor_point, xftfont_shape): Deleted.
7724 (syms_of_xftfont): Don't set members anchor_point and shape of
7725 xftfont_driver.
7726
7727 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7728 font_make_object.
7729
7730 * w32font.c (w32font_open): Adjust it for the change of
7731 font_make_object.
7732 (w32font_open_internal): Don't set properties of font_object here.
7733
77342008-07-08 Chong Yidong <cyd@stupidchicken.com>
7735
7736 * macfns.c (x_create_tip_frame):
7737 * w32fns.c (x_create_tip_frame):
7738 * xfns.c (x_create_tip_frame): Pass parameter argument to
7739 face-set-after-frame-default.
7740
7741 * xfaces.c (Finternal_merge_in_global_face): Save merged
7742 attributes for the default face back into the face vector.
7743
77442008-07-08 Andreas Schwab <schwab@suse.de>
7745
7746 * fontset.h: Declare fontset_from_font. Don't declare
7747 new_fontset_from_font and fontset_from_font_name.
7748 * xterm.c: Include "fontset.h".
7749 * Makefile.in (xterm.o): Update dependencies.
7750
77512008-07-08 Glenn Morris <rgm@gnu.org>
7752
7753 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7754 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7755
77562008-07-07 Chong Yidong <cyd@stupidchicken.com>
7757
7758 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7759 (x_set_frame_parameters): Don't bind it.
7760
77612008-07-07 Juanma Barranquero <lekktu@gmail.com>
7762
7763 * w32fns.c (map_w32_filename): Declare extern.
7764
77652008-07-07 Jason Rumney <jasonr@gnu.org>
7766
7767 * w32term.c (WS_EX_LAYERED): Define if not already.
7768
77692008-07-06 Chong Yidong <cyd@stupidchicken.com>
7770
7771 * xfaces.c (set_font_frame_param): Don't try to set the font
7772 parameter if it is still unspecified in the lface.
7773
77742008-07-05 Chong Yidong <cyd@stupidchicken.com>
7775
7776 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7777 face if it didn't already exist.
7778
7779 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7780
77812008-07-05 Andreas Schwab <schwab@suse.de>
7782
7783 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7784
77852008-07-05 Chong Yidong <cyd@stupidchicken.com>
7786
7787 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7788 word-wrapping.
7789 (IT_DISPLAYING_WHITESPACE): New macro.
7790 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7791 when word-wrapping. Simplify word-wrapping logic. Use correct
7792 pixel positions when saving copies of the iterator.
7793 (display_line): Use proper wrap point if the last character on a
7794 line was preceded by whitespace.
7795
77962008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7797
7798 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7799
78002008-07-04 Kenichi Handa <handa@m17n.org>
7801
7802 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7803
7804 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7805
78062008-07-02 Jason Rumney <jasonr@gnu.org>
7807
7808 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7809 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7810
7811 * xdisp.c (next_element_from_display_vector): Move assignment out
7812 of if statement.
7813
78142008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7815
7816 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7817
7818 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7819 (syms_of_fileio): Initialize and export them.
7820 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7821
7822 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7823 (Fsystem_move_file_to_trash): New function.
7824 (syms_of_w32fns): Export it to lisp.
7825
78262008-07-01 Jason Rumney <jasonr@gnu.org>
7827
7828 * w32font.c (w32font_text_extents): Don't count overhang as part
7829 of width.
7830
78312008-06-30 Miles Bader <miles@gnu.org>
7832
7833 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7834 Add `avoid_cursor_p' field.
7835
7836 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7837 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7838 (append_glyph, append_composite_glyph, produce_image_glyph)
7839 (append_stretch_glyph): Initialize avoid_cursor_p.
7840 (get_it_property): Rename from `get_line_height_property'.
7841 (x_produce_glyphs): Use get_it_property.
7842 (handle_line_prefix, push_display_prop): New functions.
7843 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7844 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7845 New variables.
7846 (syms_of_xdisp): Initialize them.
7847
78482008-06-30 Kenichi Handa <handa@m17n.org>
7849
7850 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7851 XftDefaultSubstitute (they are called in XftFontMatch).
7852 (xftfont_open): Fix args to ftfont_font_format.
7853
7854 * ftfont.c (fc_charset_table): New member lang.
7855 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7856 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7857 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7858 (ftfont_open): Fix args to ftfont_font_format.
7859 (ftfont_font_format): New arg filename.
7860
78612008-06-30 Chong Yidong <cyd@stupidchicken.com>
7862
7863 * xfaces.c (Finternal_merge_in_global_face): If default face was
7864 modified, realize it again. Update the font face attribute.
7865
78662008-06-29 Jason Rumney <jasonr@gnu.org>
7867
7868 * w32term.c (x_set_frame_alpha): Fix logic.
7869
78702008-06-29 Kenichi Handa <handa@m17n.org>
7871
7872 * fontset.c (Finternal_char_font): Return font-object instead of
7873 font-name.
7874
7875 * composite.c (get_composition_id): Fix the width calculation for TAB.
7876
78772008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7878
7879 * indent.c (Fvertical_motion): Properly handle float column arg.
7880
78812008-06-28 Jason Rumney <jasonr@gnu.org>
7882
7883 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7884 (pfnSetLayeredWindowAttributes): New function pointer.
7885 (w32_initialize): Initialize it when supported.
7886 (x_set_frame_alpha): New function.
7887
7888 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7889 (w32_frame_parm_handlers): Set alpha handler.
7890
7891 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7892
78932008-06-27 Jason Rumney <jasonr@gnu.org>
7894
7895 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7896 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7897 (w32_to_x_charset, x_to_w32_charset)
7898 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7899 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7900 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7901 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7902 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7903 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7904 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7905 (Qw32_charset_unicode): Remove.
7906 (syms_of_w32fns): Update for above changes.
7907
7908 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7909 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7910 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7911 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7912 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7913 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7914 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7915 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7916 (syms_of_w32font): Update for above changes.
7917
79182008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7919
7920 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7921 removed #if.
7922 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7923
79242008-06-26 Juanma Barranquero <lekktu@gmail.com>
7925 Eli Zaretskii <eliz@gnu.org>
7926
7927 * makefile.w32-in (LOCAL_FLAGS):
7928 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7929
7930 * sysdep.c (_spawnlp, _getpid):
7931 Declare with explicit _cdecl instead of _CRTAPI1.
7932
7933 * editfns.c (Fget_internal_run_time):
7934 Check for WINDOWSNT with #ifdef, not #if.
7935
79362008-06-26 Jason Rumney <jasonr@gnu.org>
7937
7938 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7939
7940 * w32term.c (x_draw_glyph_string_foreground)
7941 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7942 Use FONT_HANDLE macro.
7943 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7944
7945 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7946 (uniscribe_encode_char): Use FONT_HANDLE macro.
7947
7948 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7949 (w32font_text_extents): Use precast w32_font.
7950 (w32font_close): Free cached metrics.
7951 (w32font_open_internal): Allocate space for name on stack.
7952
79532008-06-26 Chong Yidong <cyd@stupidchicken.com>
7954
7955 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7956
79572008-06-26 Jason Rumney <jasonr@gnu.org>
7958
7959 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7960 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7961
79622008-06-26 Juanma Barranquero <lekktu@gmail.com>
7963
7964 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7965
79662008-06-26 Jason Rumney <jasonr@gnu.org>
7967
7968 * w32bdf.c, w32bdf.h: Remove obsolete files.
7969
7970 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7971
7972 * w32gui.h: Don't include w32bdf.h.
7973 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7974 Remove obsolete font support.
7975
7976 * w32font.h (struct w32font_info): Remove compat_w32_font.
7977 Add hfont member.
7978 (FONT_COMPAT): Remove obsolete macro.
7979
7980 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7981 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7982 (w32font_open_internal): Remove compat code. Set new hfont member.
7983 (Fx_select_font): Use new hfont member.
7984
7985 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7986 (uniscribe_encode_char): Use new hfont member.
7987
7988 * w32term.c (x_draw_glyph_string_foreground)
7989 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7990 (x_draw_glyph_string): Use metrics in w32font_info.
7991
79922008-06-26 Kenichi Handa <handa@m17n.org>
7993
7994 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7995
79962008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7997
7998 * unexnext.c:
7999 * m/ews4800.h:
8000 * m/hp9000s300.h:
8001 * m/ibm370aix.h:
8002 * m/mips-siemens.h:
8003 * m/ncr386.h:
8004 * m/next.h:
8005 * m/pmax.h:
8006 * m/powerpcle.h:
8007 * m/tandem-s2.h:
8008 * s/386bsd.h:
8009 * s/bsd386.h:
8010 * s/bsd4-1.h:
8011 * s/bsd4-2.h:
8012 * s/bsdos2-1.h:
8013 * s/bsdos2.h:
8014 * s/bsdos3.h:
8015 * s/bsdos4.h:
8016 * s/nextstep.h:
8017 * s/ultrix4-3.h:
8018 * s/usg5-0.h:
8019 * s/usg5-2-2.h:
8020 * s/usg5-2.h:
8021 * s/usg5-4-3.h:
8022 * s/ux4800.h:
8023 * s/uxpds.h:
8024 * s/uxpv.h: Remove support for obsolete systems.
8025 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8026 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8027 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8028 Remove, insert contents in s/aix4-2.h.
8029 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8030 * s/bsd4-3.h: Rename to ...
8031 * s/bsd-common.h: ... this.
8032 * data.c:
8033 * doc.c:
8034 * ecrt0.c:
8035 * emacs.c:
8036 * fileio.c:
8037 * floatfns.c:
8038 * keyboard.c:
8039 * mem-limits.h:
8040 * print.c:
8041 * process.c:
8042 * sysdep.c:
8043 * syssignal.h:
8044 * systty.h:
8045 * syswait.h:
8046 * term.c:
8047 * unexec.c:
8048 * unexelf.c:
8049 * unexhp9k800.c:
8050 * m/hp800.h:
8051 * m/ibmrs6000.h:
8052 * m/mips.h:
8053 * m/vax.h:
8054 * s/darwin.h:
8055 * s/freebsd.h:
8056 * s/gnu.h:
8057 * s/ms-w32.h:
8058 * s/msdos.h:
8059 * s/netbsd.h:
8060 * s/template.h: Remove references to obsolete variables.
8061
8062 * Makefile.in: Add dependencies for all unexec files.
8063 (admindir): Remove unused variable.
8064 (UNEXEC_SRC): Remove references.
8065
80662008-06-25 Chong Yidong <cyd@stupidchicken.com>
8067
8068 * xfns.c (x_default_font_parameter): If Xft is available, first
8069 try Monospace-12 for the default font.
8070
80712008-06-25 Jason Rumney <jasonr@gnu.org>
8072
8073 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8074
80752008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8076
8077 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8078
8079 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8080
80812008-06-25 Juanma Barranquero <lekktu@gmail.com>
8082
8083 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8084 <scroll-conservatively>: Fix typo in docstring.
8085
8086 * xselect.c (Fx_send_client_event): Doc fix.
8087
80882008-06-25 Kenichi Handa <handa@m17n.org>
8089
8090 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8091
8092 * font.c (font_parse_fcname): Remove unused variables.
8093 (font_sort_entites): Delete the arg SPEC. Caller changed.
8094 Fix for the case of ! best_only.
8095 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8096
8097 * lisp.h (Fstring_to_unibyte): EXFUN it.
8098
8099 * character.h (str_to_unibyte): Extern it.
8100
8101 * character.c (str_to_unibyte): New function.
8102
8103 * fns.c (Fstring_to_unibyte): New function.
8104 (syms_of_fns): Defsubr it.
8105
81062008-06-24 Kenichi Handa <handa@m17n.org>
8107
8108 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8109 DPI too.
8110 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8111
81122008-06-24 Andreas Schwab <schwab@suse.de>
8113
8114 * Makefile.in (${lispsource}loaddefs.el): Rename from
8115 ../lisp/loaddefs.el.
8116 (bootstrap-clean): Do what distclean does but don't remove
8117 Makefile.
8118 (distclean): Depend on bootstrap-clean and remove Makefile.
8119
81202008-06-24 Chong Yidong <cyd@stupidchicken.com>
8121
8122 * buffer.h (struct buffer): New member word_wrap.
8123
8124 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8125 word-wrap.
8126 (init_buffer_once): Initialize them.
8127
8128 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8129 line_wrap enum possessing three possible values.
8130
8131 * termopts.h: Replace truncate_partial_width_windows with
8132 Vtruncate_partial_width_windows.
8133
8134 * dispnew.c (direct_output_for_insert): Avoid direct output when
8135 inserting a space with word wrap on.
8136
8137 * indent.c (compute_motion): Obey integer values of
8138 truncate-partial-width-windows.
8139
8140 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8141 replacing truncate_partial_width_windows.
8142 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8143 truncate only if the window width is below that integer.
8144 (start_display, resize_mini_window, produce_stretch_glyph)
8145 (display_string, move_it_in_display_line_to): Use line_wrap.
8146 (back_to_previous_visible_line_start, reseat_1): Reset
8147 string_from_display_prop_p.
8148 (display_line): Extend default face to end of line when wrapping.
8149
81502008-06-24 Kim F. Storm <storm@cua.dk>
8151
8152 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8153 to wrap continued lines at word boundaries.
8154
81552008-06-24 Jason Rumney <jasonr@gnu.org>
8156
8157 * font.c (Ffont_face_attributes): Multiply pixel size before point
8158 conversion to avoid multiplying rounding error.
8159
81602008-06-23 Jason Rumney <jasonr@gnu.org>
8161
8162 * w32term.c (x_draw_glyph_string_background)
8163 (x_draw_glyph_string): Remove old bdf font code.
8164
8165 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8166
81672008-06-22 Kenichi Handa <handa@m17n.org>
8168
8169 * font.c (font_find_for_lface): Try the adstyle specified in
8170 the property of LFACE_FONT of LFACE (if any).
8171
81722008-06-21 Seiji Zenitani <zenitani@mac.com>
8173 Ryo Yoshitake <ryo@shiftmode.net>
8174
8175 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8176
81772008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8178
8179 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8180 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8181 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8182 (witness-emacs): Remove.
8183 (lisp, shortlisp): Move loaddefs.el earlier.
8184 (mostlyclean): Forget about witness-emacs.
8185
81862008-06-22 Glenn Morris <rgm@gnu.org>
8187
8188 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8189 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8190
81912008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8192
8193 * Makefile.in (PRECOMP): Remove.
8194 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8195 (witness-emacs): Run `compile-first'.
8196 (.el.elc): Use the new compile-onefile target.
8197
81982008-06-21 Kenichi Handa <handa@m17n.org>
8199
8200 * xftfont.c (xftfont_open): Handle QCembolden only when
8201 FC_EMBOLDEN is defined.
8202
82032008-06-21 Andreas Schwab <schwab@suse.de>
8204
8205 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8206 (.el.elc): Likewise.
8207
82082008-06-21 Miles Bader <miles@gnu.org>
8209
8210 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8211 build dir, not the lisp source dir.
8212
82132008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8214
8215 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8216 (bootstrapclean): Remove.
8217 (.el.elc): New rule.
8218 (PRECOMP): New var.
8219 (../lisp/subdirs.el): Remove.
8220 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8221 (witness-emacs): New target.
8222 (mostlyclean): Remove witness-emacs as well.
8223 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8224 Add witness-emacs dependency.
8225
82262008-06-20 Chong Yidong <cyd@stupidchicken.com>
8227
8228 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8229 defined by the font.
8230
82312008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8232
8233 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8234 (bootstrap-clean): New target that keeps TAGS around.
8235 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8236 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8237
82382008-06-20 Jason Rumney <jasonr@gnu.org>
8239
8240 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8241 Remove obsolete font code.
8242
8243 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8244 to determine language support.
8245
82462008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8247
8248 * sysdep.c (cfsetspeed): New fun extracted from the code.
8249 (cfmakeraw): Move before first use.
8250
82512008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8252
8253 * sysdep.c (cfmakeraw): Provide fallback implementation.
8254 (serial_configure): Provide fallback implementation of cfsetspeed.
8255
82562008-06-20 Kenichi Handa <handa@m17n.org>
8257
8258 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8259 the pattern.
8260
8261 * fontset.c (fontset_from_font): Copy font_spec before changing
8262 the elements.
8263
8264 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8265
82662008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8267
8268 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8269 for explicit `font' parameters.
8270
8271 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8272
82732008-06-19 Kenichi Handa <handa@m17n.org>
8274
8275 * frame.c: Include <ctype.h>.
8276 (x_set_font_backend): Allow spacing characters in the X resource
8277 for FontBackend.
8278
82792008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8280
8281 * w32fns.c, xfns.c (Qfont_param): New var.
8282 (syms_of_w32fns): Initialize it.
8283 (x_default_font_parameter): Record explicit `font' into
8284 `font-parameter'.
8285
82862008-06-18 Kenichi Handa <handa@m17n.org>
8287
8288 * font.c (font_parse_xlfd): Fix previous change.
8289 (font_parse_fcname): Don't use :fc-unknown-spec.
8290 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8291 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8292 (font_add_log): Prepend the driver name to the resulting fonts.
8293
8294 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8295 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8296 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8297
8298 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8299 (QCembolden): New variables.
8300 (syms_of_xftfont): DEFSYM them.
8301 (xftfont_open): Call XftFontMatch. Don't trust the result of
8302 XftTextExtents8 if the pixel_size is less than 5.
8303
83042008-06-18 Andreas Schwab <schwab@suse.de>
8305
8306 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8307 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8308
83092008-06-18 Jason Rumney <jasonr@gnu.org>
8310
8311 * w32font.c (w32font_list, w32font_match): Add logging.
8312
8313 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8314
83152008-06-17 Chong Yidong <cyd@stupidchicken.com>
8316
8317 * font.c (font_parse_fcname): Store divider characters for
8318 unknown-spec list. For known key symbols, intern using correct
8319 symbol name.
8320
83212008-06-17 Kenichi Handa <handa@m17n.org>
8322
8323 * xfaces.c (realize_default_face): If the frame is not on window
8324 system, set the fontset of face to nil.
8325
83262008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8327
8328 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8329
83302008-06-16 Juanma Barranquero <lekktu@gmail.com>
8331
8332 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8333 (build_font_name_from_vector): Delete externs.
8334
8335 * xfaces.c (struct font_name): Don't declare.
8336
83372008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8338
8339 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8340
83412008-06-16 Chong Yidong <cyd@stupidchicken.com>
8342
8343 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8344
83452008-06-16 Juanma Barranquero <lekktu@gmail.com>
8346
8347 * font.c (Ffont_spec): Fix usage in docstring.
8348 (Ffont_face_attributes): Doc fix.
8349
83502008-06-16 Andreas Schwab <schwab@suse.de>
8351
8352 * font.c (Ffont_face_attributes): Fix definition.
8353
83542008-06-16 Jason Rumney <jasonr@gnu.org>
8355
8356 * font.h (font_style_symbolic_from_value): Remove.
8357
8358 * font.c (font_style_symbolic_from_value): Remove.
8359 (font_style_symbolic): Revert to pre 2008-06-13 version.
8360
8361 * w32font.c (w32_to_fc_weight): New function.
8362 (w32font_full_name, logfont_to_fcname): Use it.
8363
83642008-06-16 Kenichi Handa <handa@m17n.org>
8365
8366 * font.c (font_check_object): Delete it.
8367 (font_clear_cache): Check if a font-object is alive.
8368 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8369 font-object to nil.
8370 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8371 (font_at): Don't call font_check_object.
8372 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8373
83742008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8375
8376 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8377
83782008-06-16 Chong Yidong <cyd@stupidchicken.com>
8379
8380 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8381
83822008-06-15 Chong Yidong <cyd@stupidchicken.com>
8383
8384 * font.c (font_parse_fcname): Only one decimal point.
8385 (font_unparse_fcname): Handle data in family and foundry indices
8386 as symbols, not strings.
8387 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8388
8389 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8390
8391 * font.h (font_unparse_gtkname): Add prototype.
8392
83932008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8394
8395 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8396
83972008-06-15 Andreas Schwab <schwab@suse.de>
8398
8399 * font.c (font_update_drivers): Fix crash when no drivers match.
8400
84012008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8402
8403 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8404 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8405
84062008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8407
8408 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8409
84102008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8411
8412 * process.c (Fserial_process_configure, Fprocess_send_eof):
8413 Use EQ to compare Lisp_Objects.
8414
84152008-06-13 Jason Rumney <jasonr@gnu.org>
8416
8417 * w32fns.c (Fw32_select_font): Remove old font API function.
8418
8419 * w32font.c (logfont_to_fcname): New function.
8420 (Fx_select_font): New font dialog function compatible with
8421 GTK/fontconfig version.
8422
8423 * font.c (font_style_symbolic_from_value): New function.
8424 (font_style_symbolic): Use it.
8425
8426 * font.h (font_style_symbolic_from_value): Declare new function.
8427
84282008-06-13 Juanma Barranquero <lekktu@gmail.com>
8429
8430 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8431 <font-width-table>: Fix typos in docstrings.
8432
84332008-06-13 Daniel Engeler <engeler@gmail.com>
8434
8435 These changes add serial port access.
8436 * process.c: Add HAVE_SERIAL.
8437 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8438 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8439 (list_processes_1, select_wrapper, Fstop_process)
8440 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8441 (status_notify): Modify to handle serial processes.
8442 [HAVE_SERIAL] (Fserial_process_configure)
8443 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8444 New functions.
8445 * process.h (struct Lisp_Process): Add `type'.
8446 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8447 New functions.
8448 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8449 serial ports.
b71ac3dd 8450 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8451 * w32.h: Add FILE_SERIAL.
8452 (struct _child_process): Add ovl_read, ovl_write.
8453
84542008-06-13 Kenichi Handa <handa@m17n.org>
8455
8456 * dispextern.h (enum lface_attribute_index): New member
8457 LFACE_FOUNDRY_INDEX.
8458
8459 * font.c (font_score): Delete arg alternate_families. Check only
8460 weight, slant, width, and size. Ignore the difference of alias
8461 style symbols.
8462 (font_sort_entites): Adjust for the above change. Reflect the
8463 order of font-driver to scores.
8464 (font_list_entities): Don't check alternate_familes here.
8465 (font_clear_prop): Handle foundry.
8466 (font_update_lface): Don't parse "foundry-family" form here.
8467 Handle FONT_FOUNDRY_INDEX.
8468 (font_find_for_lface): Likewise. Handle alternate families here.
8469 If registry is nil, try iso8859-1 and ascii-0.
8470 (font_open_for_lface): Pay attention to size in ENTITY.
8471 (font_open_by_name): Simplify by calling font_load_for_lface.
8472 (free_font_driver_list): Delete it.
8473 (font_update_drivers): Preserve the order of backends.
8474 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8475 of font_score and font_sort_entites.
8476 (font_update_sort_order): Likewise.
8477
8478 * xfaces.c (LFACE_FOUNDRY): New macro.
8479 (check_lface_attrs): Check foundry.
8480 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8481 (merge_face_vectors): Check foundry.
8482 (merge_face_ref): Likewise.
8483 (Finternal_set_lisp_face_attribute): Likewise.
8484 (x_update_menu_appearance): Likewise.
8485 (Finternal_get_lisp_face_attribute): Likewise.
8486 (lface_hash): Likewise.
8487 (lface_same_font_attributes_p): Likewise.
8488 (x_supports_face_attributes_p): Likewise.
8489 (tty_supports_face_attributes_p): Likewise.
8490 (Finternal_set_alternative_font_family_alist): Intern strings.
8491 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8492 (realize_default_face): Set LFACE_FOUNDRY (lface).
8493
8494 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8495 font-driver at first.
8496
8497 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8498
84992008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8500
8501 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8502
85032008-06-12 Jim Meyering <meyering@redhat.com>
8504
8505 Make unexec_free handle NULL the same way free does.
8506 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8507
85082008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8509
8510 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8511 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8512 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8513 (WEAK_ALIAS): Simplify.
8514 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8515 when searching a unibyte buffer.
8516
85172008-06-12 Chong Yidong <cyd@stupidchicken.com>
8518
8519 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8520
85212008-06-12 Juanma Barranquero <lekktu@gmail.com>
8522
8523 * w32font.c: Include ctype.h.
8524
85252008-06-11 Jason Rumney <jasonr@gnu.org>
8526
8527 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8528 misreported as space.
8529 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8530 as aliases for registry iso10646-1.
8531
85322008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8533
8534 * buffer.c (clone_per_buffer_values): Skip `name'.
8535
85362008-06-11 Chong Yidong <cyd@stupidchicken.com>
8537
8538 * font.c (font_parse_fcname): Fix last change; accept decimal
8539 points in font size.
8540
85412008-06-10 Jason Rumney <jasonr@gnu.org>
8542
8543 * w32uniscribe.c (add_opentype_font_name_to_list):
8544 Skip non unicode fonts.
8545
85462008-06-10 Chong Yidong <cyd@stupidchicken.com>
8547
8548 * xfns.c (Fx_font_dialog): New function.
8549
8550 * gtkutil.c (xg_dialog_response_cb): Rename from
8551 xg_file_response_callback.
8552 (pop_down_dialog): Rename from pop_down_file_dialog.
8553 (xg_get_file_name): Callers changed.
8554 (xg_get_font_name): New function.
8555
8556 * gtkutil.h (xg_get_font_name): Insert prototype.
8557
85582008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8559
8560 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8561 x_underline_minimum_display_offset.
8562 (syms_of_xdisp): Declare it here rather than in xterm.c.
8563 * dispextern.h (underline_minimum_offset): Declare it.
8564 * w32term.c (x_draw_glyph_string): Use it.
8565 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8566 (syms_of_xterm): Don't declare it any more.
8567 (x_draw_glyph_string): Adjust to the new name.
8568
85692008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8570
8571 * xterm.c (x_underline_minimum_display_offset): New var.
8572 (x_draw_glyph_string): Use it.
8573 (syms_of_xterm): Declare it.
8574
85752008-06-10 Chong Yidong <cyd@stupidchicken.com>
8576
8577 * font.c (font_parse_fcname): Accept GTK-style font names too.
8578
85792008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8580
8581 * dired.c (file_name_completion): Don't return t if the match is exact
8582 but with different capitalization.
8583 * minibuf.c (Ftry_completion): Simplify.
8584
8585 * window.c (Vwindow_point_insertion_type): New var.
8586 (set_window_buffer): Use it.
8587 (syms_of_window): Init and export it to Lisp.
8588
85892008-06-10 Kenichi Handa <handa@m17n.org>
8590
8591 * font.h (font_intern_prop): Prototype adjusted.
8592
8593 * font.c (font_intern_prop): New arg force_symbol.
8594 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8595 Adjust for the change of font_intern_prop.
8596
8597 * ftfont.c (ftfont_pattern_entity):
8598 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8599 (w32_registry):
8600 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8601 the change of font_intern_prop.
8602
86032008-06-09 Juanma Barranquero <lekktu@gmail.com>
8604
8605 * w32menu.c (digest_single_submenu): Declare extern.
8606
86072008-06-09 Jason Rumney <jasonr@gnu.org>
8608
8609 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8610
8611 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8612 (parse_single_submenu): Remove.
8613 (digest_single_submenu): Remove.
8614 (syms_of_w32menu): Don't initialise variables that have moved
8615 to menu.c.
8616 (set_frame_menubar): Sync with version in xmenu.c.
8617 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8618
8619 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8620 Make static again.
8621
86222008-06-09 Jason Rumney <jasonr@gnu.org>
8623
8624 Changes to w32 files related to the move of common menu code
8625 to menu.c on 2008-06-08 by Chong Yidong.
8626
8627 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8628 defs to w32gui.h.
8629 (single_keymap_panes, push_menu_item, push_menu_pane):
8630 Make globally visible.
8631
8632 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8633 (local_free, malloc_widget_value, free_widget_value)
8634 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8635 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8636 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8637 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8638 (menu_items, menu_items_allocated, menu_items_used)
8639 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8640 (init_menu_items, finish_menu_items, discard_menu_items)
8641 (grow_menu_items, push_submenu_start, push_submenu_end)
8642 (push_left_right_boundary, push_menu_pane, push_menu_item)
8643 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8644 (free_menubar_widget_tree_value, parse_single_submenu)
8645 (update_submenu_strings): Remove functions.
8646 (xmalloc_widget_value): Remove and declare extern.
8647
8648 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8649 (OBJ1): Build it.
8650
8651 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8652 (local_heap, local_alloc, local_free, malloc_widget_value)
8653 (free_widget_value): Define here.
8654
86552008-06-09 Kenichi Handa <handa@m17n.org>
8656
8657 * font.h (Qascii_0): Extern it.
8658
8659 * font.c (Qascii_0): New variable.
8660 (syms_of_font): DEFSYM it.
8661 (font_open_by_name): If the registry "iso8859-1" fails, try also
8662 "ascii-0".
8663
8664 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8665
86662008-06-08 Kenichi Handa <handa@m17n.org>
8667
8668 * .gdbinit (xfont): New command.
8669
86702008-06-08 Andreas Schwab <schwab@suse.de>
8671
8672 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8673 * Makefile.in (menu.o): Update dependencies.
8674
8675 * Makefile.in (obj): Always add menu.o.
8676 * emacs.c (main): Always call syms_of_menu.
8677 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8678
86792008-06-08 Chong Yidong <cyd@stupidchicken.com>
8680
8681 * Makefile.in: Compile menu.c.
8682
8683 * lisp.h: Declare syms_of_menu.
8684
8685 * emacs.c (main): Call syms_of_menu.
8686
8687 * keyboard.h: Relocate platform-independent menu definitions from
8688 xmenu.c.
8689
8690 * menu.c: New file. Relocate platform-independent menu
8691 definitions from xmenu.c. Suggested by Adrian Robert.
8692
8693 * xmenu.c: Remove platform-independent menu definitions.
8694 (menu_items menu_items_inuse, menu_items_allocated)
8695 (menu_items_used, menu_items_n_panes)
8696 (menu_items_submenu_depth): Move to keyboard.h.
8697 (init_menu_items, finish_menu_items, unuse_menu_items)
8698 (discard_menu_items, restore_menu_items, save_menu_items)
8699 (grow_menu_items, push_submenu_start, push_submenu_end)
8700 (push_left_right_boundary, push_menu_pane, push_menu_item)
8701 (keymap_panes, single_keymap_panes, single_menu_item)
8702 (list_of_panes, list_of_items, find_and_call_menu_selection)
8703 (xmalloc_widget_value, free_menubar_widget_value_tree)
8704 (parse_single_submenu, digest_single_submenu)
8705 (update_submenu_strings): Move to menu.c.
8706
87072008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8708
8709 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8710
87112008-06-06 Miles Bader <miles@gnu.org>
8712
8713 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8714 face, not frame default.
8715
87162008-06-05 Martin Rudalics <rudalics@gmx.at>
8717
8718 * window.c (pop_up_windows, pop_up_frames)
8719 (display_buffer_reuse_frames, Vpop_up_frame_function)
8720 (Vdisplay_buffer_function, Veven_window_heights)
8721 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8722 (Vspecial_display_function, Vsame_window_buffer_names)
8723 (Vsame_window_regexps, split_height_threshold)
8724 (Vsplit_window_preferred_function): Move those vars to window.el.
8725 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8726 (Fdisplay_buffer): Move those functions to window.el.
8727 (syms_of_window): Remove corresponding declarations.
8728 (display_buffer): New function.
8729 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8730 * dispnew.c (Flast_nonminibuf_frame): New function.
8731 * buffer.c (Fpop_to_buffer): Move to window.el.
8732
87332008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8734
8735 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8736
87372008-06-05 Kenichi Handa <handa@m17n.org>
8738
8739 * coding.c (detect_coding): Fix previous change.
8740 (detect_coding_system): Likewise.
8741
87422008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8743
8744 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8745
8746 * keymap.c (Vminibuffer_local_filename_must_match_map):
8747 Rename from Vminibuffer_local_must_match_filename_map.
8748 (syms_of_keymap):
8749 * minibuf.c (Fcompleting_read): Adjust accordingly.
8750 * commands.h: Rename declaration as well.
8751
87522008-06-05 Kenichi Handa <handa@m17n.org>
8753
8754 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8755 family name.
8756 (Ffont_put): Likewise.
8757
8758 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8759 current font-spec.
8760
8761 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8762 is unspecified.
8763
8764 * xfaces.c (realize_x_face): If the font-related face attributes
8765 are the same as those of default face, realize a new fontset from
8766 default->fontset.
8767 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8768
87692008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8770
8771 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8772 (move_it_in_display_line): New wrapper.
8773
8774 * window.c (window_scroll_pixel_based_preserve_x)
8775 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8776 (window_scroll_pixel_based, window_scroll_line_based):
8777 Use them to preserve column positions.
8778 (syms_of_window): Initialize them.
8779
8780 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8781 (HPOS . VPOS) pair.
8782
8783 * dispextern.h (move_it_in_display_line): Declare.
8784
87852008-06-05 Juanma Barranquero <lekktu@gmail.com>
8786
8787 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8788 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8789 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8790
87912008-06-04 Juanma Barranquero <lekktu@gmail.com>
8792
8793 * window.c (Fset_window_parameter): Doc fix.
8794 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8795
87962008-06-04 Joakim Verona <joakim@verona.se>
8797
8798 * window.h (struct window): Add new member window_parameters.
8799
8800 * window.c (Fwindow_parameters, Fwindow_parameter)
8801 (Fset_window_parameter): New defuns.
8802 (syms_of_window): Defsubr the new defuns.
8803 (make_window): Initialize window_parameters to nil.
8804
88052008-06-04 John Paul Wallington <jpw@pobox.com>
8806
8807 * eval.c (Fdefmacro): Doc fix.
8808
88092008-06-04 Kenichi Handa <handa@m17n.org>
8810
8811 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8812 Be sure to call setup_coding_system when we find a proper coding system.
8813 (detect_coding_system): Fix handling of coding->head_ascii.
8814
88152008-06-03 Andreas Schwab <schwab@suse.de>
8816
8817 * font.c (font_prop_validate_spacing): Fix last change.
8818
88192008-06-03 Kenichi Handa <handa@m17n.org>
8820
8821 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8822 (font_parse_fcname): Fix handling of unknown key.
8823
8824 * xfont.c (xfont_list): Try an alias.
8825
8826 * charset.c (char_charset): Return NULL if the arg charset_list is
8827 specified and C doesn't belong to any of them.
8828
88292008-06-02 Chip Coldwell <coldwell@redhat.com>
8830
8831 * font.c (font_pixel_size): Don't take cdr of an integer.
8832
88332008-06-02 Jim Meyering <meyering@redhat.com>
8834
8835 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8836 * alloc.c (xfree): Return right away for a NULL arg.
8837 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8838 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8839 * mac.c (create_apple_event_from_event_ref): Likewise.
8840 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8841 Likewise.
8842 * doprnt.c (doprnt1): Likewise.
8843 * frame.c (frame): Likewise.
8844 * keyboard.c (wipe_kboard): Likewise.
8845 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8846 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8847 * term.c (tty_default_color_capabilities, maybe_fatal)
8848 (delete_tty): Likewise.
8849 * w16select.c (string): Likewise.
8850 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8851 * w32bdf.c (w32_free_bdf_font): Likewise.
8852 * w32fns.c (w32_unload_font): Likewise.
8853 * w32font.c (w32font_close): Likewise.
8854 * window.c (size_window): Likewise.
8855 * xselect.c (receive_incremental_selection): Likewise.
8856 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8857 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8858 * w32.c (stat): Likewise.
8859
8860 Remove useless if-before-free tests.
8861 * editfns.c (Fset_time_zone_rule): Likewise.
8862 * lread.c (nosuffix): Likewise.
8863 * ralloc.c (get_bloc): Likewise.
8864 * regex.c (reg_free): Likewise.
8865 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8866 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8867 * xsmfns.c (smc_save_yourself_CB): Likewise.
8868
88692008-06-02 Kenichi Handa <handa@m17n.org>
8870
8871 * font.c (font_find_for_lface): Handle float font size.
8872 (font_open_for_lface): Likewise.
8873
8874 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8875 comparing the properties.
8876
88772008-06-01 Jason Rumney <jasonr@gnu.org>
8878
8879 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8880 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8881 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8882 Don't add empty script list.
8883 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8884
88852008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8886
8887 * Makefile.in (dot, dotdot): Remove, update users.
8888 ".." has been used elsewhere in the file for a long time.
8889 (LIBXT_STATIC): Remove conditional based on unused variable.
8890
88912008-06-01 Miles Bader <miles@gnu.org>
8892
8893 * xfaces.c (Vface_remapping_alist): New variable.
8894 (syms_of_xfaces): Initialize it.
8895 (enum named_merge_point_kind): New type.
8896 (struct named_merge_point): Add `named_merge_point_kind' field.
8897 (push_named_merge_point): Make cycle detection respect different
8898 named-merge-point kinds.
8899 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8900 Remove face-name alias resolution.
8901 (lface_from_face_name): New definition using
8902 `lface_from_face_name_no_resolve'.
8903 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8904 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8905 (get_lface_attributes): New definition that layers face-remapping on
8906 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8907 (lookup_basic_face): New function.
8908 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8909 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8910 `get_lface_attributes'.
8911 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8912 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8913 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8914
8915 * xdisp.c (init_iterator): Pass base_face_id through
8916 `lookup_basic_face' when we actually use it as a face-id.
8917 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8918 DEFAULT_FACE_ID.
8919
8920 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8921 lookup the initial face-id.
8922
8923 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8924
89252008-06-01 Juanma Barranquero <lekktu@gmail.com>
8926
8927 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8928 (Fremove_text_properties): Fix typos in docstrings.
8929
89302008-05-31 Kenichi Handa <handa@m17n.org>
8931
8932 * font.c (font_list_entities): Fix the car part of data to be
8933 stored in the cache.
8934
8935 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8936
89372008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8938
8939 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8940 Add a `test' argument so another predicate than `equal' can be used.
8941 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8942 (map_char_table): Remove unused vars `c' and `i'.
8943 * lisp.h (Foptimize_char_table): Adjust declaration.
8944 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8945
89462008-05-30 Kenichi Handa <handa@m17n.org>
8947
8948 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8949 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8950 defined.
8951
89522008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8953
8954 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8955 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8956 frame-local settings for the same variable.
8957
89582008-05-30 Kenichi Handa <handa@m17n.org>
8959
8960 * fontset.c (Ffont_info): Move to font.c.
8961 (syms_of_fontset): Delete defsubr of Sfont_info.
8962
8963 * font.c (font_style_to_value, font_score): Delete casting of the
8964 args to xstcasecmp.
8965 (register_font_driver): Increment num_font_drivers only when
8966 registering the driver globally.
8967 (Ffont_info): Move from fontset.c. Handle a font object too.
8968 (syms_of_font): Defsubr Sfont_info.
8969
89702008-05-29 Kenichi Handa <handa@m17n.org>
8971
8972 * coding.h (enum define_coding_utf8_arg_index): New enum.
8973 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8974 coding_attr_utf_bom.
8975 (enum utf_bom_type): Rename from utf_16_bom_type.
8976 (struct utf_16_spec): Adjust for the above change.
8977 (struct coding_system): Add utf_8_bom in `spec' union.
8978
8979 * coding.c (CODING_UTF_8_BOM): New macro.
8980 (enum coding_category): Delete coding_category_utf_8, add
8981 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8982 coding_category_utf_8_sig.
8983 (CATEGORY_MASK_UTF_8): Delete it.
8984 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8985 (CATEGORY_MASK_UTF_8_SIG): New macros.
8986 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8987 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8988 CATEGORY_MASK_UTF_8_SIG.
8989 (CATEGORY_MASK_UTF_8): New macro.
8990 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8991 (detect_coding_utf_8): Check BOM.
8992 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8993 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8994 (encode_coding_utf_16): Likewise.
8995 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8996 (detect_coding, detect_coding_system): Handle utf-8-auto.
8997 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8998 (syms_of_coding): Fix setting up of Vcoding_category_table.
8999
90002008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9001
9002 * process.c (Faccept_process_output): If `millisec' is non-nil,
9003 `seconds' default to 0.
9004 (wait_reading_process_output): Also return non-nil if we read output
9005 from a non-running process.
9006
90072008-05-29 Jason Rumney <jasonr@gnu.org>
9008
9009 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9010 `raster' specified.
9011 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9012 in the uniscribe backend, but disallow any font that has no
9013 unicode subrange support.
9014
90152008-05-29 Juanma Barranquero <lekktu@gmail.com>
9016
9017 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9018 Fix typos in docstrings.
9019
90202008-05-29 Kenichi Handa <handa@m17n.org>
9021
9022 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9023 (Fx_family_fonts): Set frame correctly.
9024
90252008-05-28 Jason Rumney <jasonr@gnu.org>
9026
9027 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9028
90292008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9030
9031 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9032 calling build_annotations.
9033
90342008-05-28 Juanma Barranquero <lekktu@gmail.com>
9035
9036 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9037 (Fencode_coding_string):
9038 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9039 <latin-extra-code-table>: Fix typos in docstrings.
9040 (syms_of_coding) <coding-system-alist>: Doc fix.
9041 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9042
90432008-05-28 Kenichi Handa <handa@m17n.org>
9044
9045 * fontset.c (Ffont_info): Don't call font_close_object.
9046
9047 * font.c (font_parse_family_registry): Use Ffont_put to validate
9048 foundry and family.
9049 (font_delete_unmatched): Don't check spacing.
9050 (font_list_entities): Add spacing to the spec to list fonts.
9051
9052 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9053 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9054
9055 * coding.c (encode_coding_raw_text): Fix previous change.
9056 (encode_coding_object): When the dst_object is a buffer and is
9057 different from src_object, move gap to PT.
9058
90592008-05-27 Chong Yidong <cyd@stupidchicken.com>
9060
9061 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9062
90632008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9064
9065 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9066 all branches. Compute it differently.
9067
9068 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9069
90702008-05-27 Juanma Barranquero <lekktu@gmail.com>
9071
9072 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9073 into "else if () ... else ...".
9074
90752008-05-27 Jason Rumney <jasonr@gnu.org>
9076
9077 * w32font.c (w32font_open_internal): Determine if glyph indices
9078 are likely to work here.
9079
90802008-05-27 Chong Yidong <cyd@stupidchicken.com>
9081
9082 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9083 draw overlap glyphs with appropriate highlighting.
9084
90852008-05-27 Kenichi Handa <handa@m17n.org>
9086
9087 * xfont.c (xfont_open): Fix calculation of font->average_width.
9088
90892008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9090
9091 * casefiddle.c (casify_object): Try to guess better whether the
9092 argument is a byte or a char.
9093
90942008-05-26 Andreas Schwab <schwab@suse.de>
9095
9096 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9097 Always send multiples of format size.
9098
9099 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9100
91012008-05-26 Jason Rumney <jasonr@gnu.org>
9102
9103 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9104 (compute_metrics): Don't set failure if we just cleared the cache.
9105 (w32_weight_table): Remove unused variable.
9106 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9107 backwards compatibility.
9108
91092008-05-25 Kenichi Handa <handa@m17n.org>
9110
9111 * w32term.c (x_draw_glyph_string):
9112 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9113
9114 * xfaces.c: Delete unused function prototypes.
9115 (xstrlwr, font_frame): Delete them.
9116 (clear_face_cache): Delete unused variable.
9117
9118 * xftfont.c (xftfont_open): Delete unused variable.
9119 If underline_thickness is not 1, adjust underline_position.
9120
9121 * ftxfont.c (ftxfont_open): Delete unused variable.
9122
9123 * fontset.c (face_for_char): Optimize for the case of no charset
9124 property.
9125
9126 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9127 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9128 (otf_open, font_otf_capability, generate_otf_features)
9129 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9130 Comment out by surrounding "#if 0" and "#endif" for the moment.
9131 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9132 (syms_of_font): Codes for accessing above commented out.
9133
91342008-05-24 Eli Zaretskii <eliz@gnu.org>
9135
9136 * w32proc.c: Include dispextern.h.
9137
9138 * w32.c: Include dispextern.h.
9139
91402008-05-23 Juanma Barranquero <lekktu@gmail.com>
9141
9142 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9143 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9144 Fix typos in docstrings.
9145
91462008-05-23 Jason Rumney <jasonr@gnu.org>
9147
9148 * xsmfns.c: Remove includes that are already included by config.h.
9149
91502008-05-23 Kenichi Handa <handa@m17n.org>
9151
9152 * charset.c (Qemacs, charset_emacs): New variables.
9153 (char_charset): Fix for non-Unicode characters.
9154 (syms_of_charset): Define charset_emacs.
9155
9156 * w32term.c (x_draw_glyph_string): Be sure to update
9157 s->underline_thickness and s->underline_position. Be sure to draw
9158 underline within the current line area.
9159
9160 * xterm.c (x_draw_glyph_string): Be sure to update
9161 s->underline_thickness and s->underline_position. Be sure to draw
9162 underline within the current line area.
9163
9164 * fontset.c: Delete unused variables and add casting for char *
9165 throughout the file.
9166 (fontset_font): Try the fallback fonts of the current fontset
9167 before consulting the default fontset.
9168
9169 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9170
9171 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9172
91732008-05-22 Jason Rumney <jasonr@gnu.org>
9174
9175 * font.c: Don't include strings.h.
9176
9177 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9178
9179 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9180 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9181 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9182 to call xstrcasecmp.
9183
9184 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9185
9186 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9187
9188 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9189
9190 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9191
91922008-05-22 Kenichi Handa <handa@m17n.org>
9193
9194 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9195
9196 * font.c (font_prop_validate_style): Adjust for the format
9197 change of font_style_table.
9198
9199 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9200 two args.
9201
9202 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9203 two args.
9204
92052008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9206
9207 * minibuf.c (keys_of_minibuf): Delete.
9208 * lisp.h (keys_of_minibuf): Delete.
9209 * emacs.c (main): Don't call keys_of_minibuf.
9210
92112008-05-22 Kenichi Handa <handa@m17n.org>
9212
9213 * ftfont.c (ftfont_resolve_generic_family): Rename from
9214 ftfont_list_generic_family. Return a single family for each
9215 generic family.
9216 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9217 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9218 Call font_add_log.
9219 (ftfont_match): Call font_add_log.
9220
9221 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9222 (FONT_DEBUG): Define it.
9223 (font_add_log): Extern it.
9224 (font_assert): Rename from xassert.
9225
9226 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9227 (xfont_list_family): Call font_add_log.
9228 (xfont_match): Likewise.
9229 (memq_no_quit): Delete.
9230
9231 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9232 call of Ffont_xlfd_name.
9233
9234 * xfaces.c (struct table_entry, slant_table, weight_table)
9235 (swidth_table): Move to font.c.
9236
9237 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9238 xassert are changed to font_assert. Delete many unused variables.
9239 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9240 New variables.
9241 (struct table_entry): Move from xfaces.c and modified.
9242 (weight_table, slant_table, width_table): Move from xfaces.c and
9243 contents adjusted for the change of struct table_entry.
9244 (font_style_to_value, font_style_symbolic): Adjust for the
9245 format change of font_style_table.
9246 (font_parse_family_registry): Don't overwrite existing foundry and
9247 family of font_spec.
9248 (font_score): Fix calculation of diff for sizes.
9249 (font_sort_entites): Call font_add_log.
9250 (font_delete_unmatched): Return a newly created list.
9251 (font_list_entities): Fix previous change. Call font_add_log.
9252 (font_matching_entity, font_open_entity, font_close_entity):
9253 Call font_add_log.
9254 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9255 (Finternal_set_font_style_table): Delete.
9256 (BUILD_STYLE_TABLE): New macro.
9257 (build_style_table): New function.
9258 (Vfont_log, font_log_env_checked): New variables.
9259 (font_add_log): New function.
9260 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9261 Declare Lisp variables "font-weight-table", "font-slant-table",
9262 "font-width-table", and "font-log". Initialize font_style_table.
9263
92642008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9265
9266 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9267
92682008-05-21 Seiji Zenitani <zenitani@mac.com>
9269 Ryo Yoshitake <ryo@shiftmode.net>
9270
9271 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9272 (Vframe_alpha_lower_limit): New variable.
9273 (x_set_alpha): New function.
9274
9275 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9276
9277 * xfns.c (x-create-frame, Qalpha):
9278 Initialize the frame parameter `alpha'.
9279 * xterm.c (OPAQUE, OPACITY): New.
9280 (x_set_frame_alpha): New function.
9281 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9282
9283 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9284 * w32fns.c (w32_frame_parm_handlers): Likewise.
9285
92862008-05-20 Jason Rumney <jasonr@gnu.org>
9287
9288 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9289 truetype fonts to opentype list.
9290
92912008-05-20 Juanma Barranquero <lekktu@gmail.com>
9292
9293 * fontset.c (Ffontset_info): Doc fix.
9294 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9295 <ignore-relative-composition>: Fix typos in docstrings.
9296
9297 * font.c (syms-of-font) <font-encoding-alist>:
9298 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9299 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9300 (Ffont_otf_alternates): Doc fixes.
9301
93022008-05-20 Kenichi Handa <handa@m17n.org>
9303
9304 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9305 font.h through out the file.
9306 (FONT_DRIVERS): Rename from FONTOBJ.
9307 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9308 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9309
9310 * emacs.c (main): Call syms_of_font unconditionally.
9311
9312 * font.h (find_font_encoding): Extern it.
9313
9314 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9315 fontset.c.
9316 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9317 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9318 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9319 only when HAVE_WINDOW_SYSTEM is defined.
9320 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9321 when HAVE_WINDOW_SYSTEM is defined.
9322
9323 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9324 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9325
9326 * xfaces.c: Include font.h unconditionally.
9327 (merge_face_ref, merge_face_vectors)
9328 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9329
93302008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9331
9332 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9333 indirect_variable.
9334 * eval.c (lisp_indirect_variable): New fun.
9335 (Fuser_variable_p): Use it.
9336
93372008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9338
9339 * lisp.h (indirect_variable):
9340 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9341 Use Lisp_Symbol pointers rather than Lisp_Object.
9342 Adjust callers.
9343 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9344 To this end, change calling-convention.
9345
9346 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9347 if some non-hidden buffers are selected by string&pred.
9348
93492008-05-19 Chong Yidong <cyd@stupidchicken.com>
9350
9351 * process.c (wait_reading_process_output): Always check status
9352 when in batch mode.
9353
93542008-05-19 Kenichi Handa <handa@m17n.org>
9355
9356 * font.c (font_list_entities): Fix handling of cache.
9357 (font_matching_entity): Likewise.
9358
9359 * ftfont.c (cs_iso8859_1): Delete.
9360 (ft_face_cache): New variable.
9361 (struct ftfont_info): New member fc_charset_idx.
9362 (ftfont_build_basic_charsets): Delete.
9363 (fc_charset_table): New variable.
9364 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9365 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9366 Callers changed.
9367 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9368 (ftfont_spec_pattern): New argument fc_charset_idx.
9369 Check registry more rigidly. Change callers.
9370 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9371 change of :font-entity property of the font.
9372
9373 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9374 property of the font.
9375
93762008-05-18 Juanma Barranquero <lekktu@gmail.com>
9377
9378 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9379 (Funencodable_char_position, Fcheck_coding_systems_region)
9380 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9381 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9382 (Ffind_operation_coding_system, Fset_coding_system_priority)
9383 (Fcoding_system_eol_type): Doc fixes.
9384
93852008-05-17 Glenn Morris <rgm@gnu.org>
9386
9387 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9388
93892008-05-16 Eli Zaretskii <eliz@gnu.org>
9390
9391 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9392 and st_gid.
9393
9394 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9395 HAVE_WINDOW_SYSTEM is not defined.
9396
9397 * xfaces.c (merge_face_ref, merge_face_vectors)
9398 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9399 HAVE_WINDOW_SYSTEM is defined.
9400 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9401
94022008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9403
9404 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9405
94062008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9407
9408 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9409
94102008-05-15 Kenichi Handa <handa@m17n.org>
9411
9412 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9413 preference.
9414
94152008-05-15 Glenn Morris <rgm@gnu.org>
9416
9417 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9418
94192008-05-15 Chong Yidong <cyd@stupidchicken.com>
9420
9421 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9422 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9423
9424 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9425
94262008-05-15 Kenichi Handa <handa@m17n.org>
9427
9428 * ftfont.c (ftfont_list): Downcase family name to check generic
9429 families.
9430
9431 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9432 font-spec for QCfont value.
9433
9434 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9435 buffer. Check the return value of it.
9436
94372008-05-14 Jason Rumney <jasonr@gnu.org>
9438
9439 * w32term.c (w32_get_glyph_overhangs): Remove.
9440 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9441
94422008-05-14 Kenichi Handa <handa@m17n.org>
9443
9444 * font.c (font_prop_validate): Make nil a valid value.
9445 (font_clear_cache): Check if the cached vector of entities is nil
9446 or not.
9447
94482008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9449
9450 * emacs.c (main_thread): Conditionalize on
9451 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9452 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9453
9454 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9455 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9456 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9457
94582008-05-14 Kenichi Handa <handa@m17n.org>
9459
9460 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9461 has no corresponding coding system.
9462
94632008-05-14 Jason Rumney <jasonr@gnu.org>
9464
9465 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9466
9467 * w32font.h (w32font_open_internal): Update declaration.
9468
9469 * w32font.c (w32font_open_internal): Change last argument from
9470 w32font_info struct to font object. Fill in font object from
9471 font_entity. Get Outline metrics if possible. Use them to
9472 calculate underline position and thickness. Use xlfd name as name
9473 property. Don't set codepage.
9474 (w32font_open): Pass font_object to w32font_open_internal. Don't
9475 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9476 (w32font_draw): Use s->font.
9477 (clear_cached_metrics): Don't clear non-existent blocks.
9478
9479 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9480 font was not found.
9481 (x_draw_glyph_string): Use underline position and thickness from font.
9482
9483 * w32uniscribe.c (uniscribe_open): Pass font_object to
9484 w32font_open_internal.
9485
94862008-05-14 Kenichi Handa <handa@m17n.org>
9487
9488 These changes are to delete all legacy font-handling codes, and
9489 make Emacs use only font-backends.
9490
9491 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9492 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9493
9494 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9495
9496 * charset.h (Vcharset_non_preferred_head)
9497 (Vcurrent_iso639_language): Extern them.
9498
9499 * charset.c (Vcharset_non_preferred_head): New variable.
9500 (Vcurrent_iso639_language): New variable.
9501 (syms_of_charset): Declare it as a Lisp variable.
9502 (char_charset): Don't check non preferred charsets. As a last
9503 resort, return charset_unicode.
9504 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9505
9506 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9507 conditionals. Don't check enable_font_backend. Delete all codes
9508 used only when USE_FONT_BACKEND is not defined.
9509
9510 * dispextern.h (struct glyph_string): Change type of `font' to
9511 `struct font *'.
9512 (struct glyph_string): New member underline_position and
9513 underline_thickness.
9514 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9515 (struct face): Change type of `font' to `struct font *'. Remove
9516 members `font_name', `font_info_id'.
9517 (per_char_metric, encode_char): Delete externs.
9518 (calc_pixel_width_or_height): Adjust the prototype.
9519
9520 * emacs.c (enable_font_backend): Delete extern.
9521 (main): Don't set enable_font_backend. Don't check the command
9522 line argument "-disable-font-backend".
9523
9524 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9525 (enum font_property_index): New members FONT_DPI_INDEX,
9526 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9527 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9528 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9529 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9530 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9531 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9532 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9533 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9534 (struct font_spec, struct font_entity): New structs.
9535 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9536 (struct font): Many members from old "struct font_info" moved to
9537 here. Members font and entity deleted.
9538 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9539 the new font-related objects.
9540 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9541 (CHECK_FONT_GET_OBJECT): Likewise.
9542 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9543 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9544 (struct font_driver): New members case_sensitive anc check. Type
9545 of the member list and open changed.
9546 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9547 (font_symbolic_width, font_find_object, font_get_spec)
9548 (font_set_lface_from_name): Delete extern.
9549 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9550
9551 * font.c: Include <strings.h>.
9552 (enable_font_backend): Delete it.
9553 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9554 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9555 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9556 (null_string): Delete it.
9557 (null_vector): Make it static.
9558 (font_family_alist): Delete it.
9559 (Qnormal): Extern it.
9560 (QCextra, QClanguage): Delete it.
9561 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9562 (font_make_spec, font_make_entity, font_make_object)
9563 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9564 the string. Callers changed.
9565 (font_pixel_size): Adjusted for the format change of font-related
9566 objects.
9567 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9568 (font_style_to_value, font_style_symbolic): New function.
9569 (build_font_family_alist): Delete it.
9570 (font_registry_charsets): Use Fassoc_string instead of
9571 assq_no_quit.
9572 (font_prop_validate_symbol): Don't return null_string.
9573 (font_prop_validate_style): Adjusted for the change of
9574 style-related values in a font vector.
9575 (font_property_table): Delete entries for QClanguage and
9576 QCantialias, add entries for QCavgwidth.
9577 (get_font_prop_index): Delete the 2nd argument FROM.
9578 (font_prop_validate): Arguments changed.
9579 (font_put_extra): Adjusted for the change of font-related objects.
9580 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9581 (font_parse_fcname, font_unparse_fcname)
9582 (font_prepare_composition): Likewise.
9583 (font_parse_family_registry): Renamed from font_merge_old_spec.
9584 (otf_open): Delete the 1st arg entity.
9585 (font_otf_capability): Adjusted for the above change.
9586 (font_score): New arg alternate_families. Adjusted for the change
9587 of font-related objects.
9588 (font_sort_entites): New arg best_only.
9589 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9590 Delete them.
9591 (font_match_p): Check alternate families.
9592 (font_find_object): Delete it.
9593 (font_check_object): New function.
9594 (font_clear_cache): Adjusted for the change of font-related objects.
9595 (font_delete_unmatched): New arg.
9596 (font_list_entities): Call font_driver->list with a spec that
9597 doesn't specify style-related properties.
9598 (font_matching_entity): Arguments changed. Caller changed.
9599 (font_open_entity): Adjusted for the change of font-related objects.
9600 (font_close_object, font_has_char, font_encode_char)
9601 (font_get_name, font_get_spec): Likewise.
9602 (font_spec_from_name, font_clear_prop, font_update_lface):
9603 New functions.
9604 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9605 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9606 (font_at): Adjusted for the change of font-related objects.
9607 (font_range): New function.
9608 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9609 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9610 (Fcopy_font_spec, Fmerge_font_spec): New function.
9611 (Ffont_family_list): Renamed from list-families.
9612 (Finternal_set_font_style_table): Arguments changed.
9613 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9614 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9615 change of font-related objects.
9616 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9617
9618 * fontset.h (struct font_info): Delete it. Most members go to
9619 struct font.
9620 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9621 (enum FONT_SPEC_INDEX): Delete it.
9622 (font_info, list_fonts_func, load_font_func, query_font_func)
9623 (set_frame_fontset_func, find_ccl_program_func)
9624 (get_font_repertory_func, new_fontset_from_font_name): Delete
9625 externs.
9626 (fontset_from_font_name): Extern it.
9627 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9628 (FONT_INFO_FROM_FACE): Deleted.
9629 (face_for_font): Adjust prototype.
9630
9631 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9632 conditionals. Don't check enable_font_backend. Delete all codes
9633 used only when USE_FONT_BACKEND is not defined.
9634 (get_font_info_func, list_font_func, load_font_func)
9635 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9636 (get_font_repertory_func): Delete them.
9637 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9638 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9639 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9640 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9641 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9642 (fontset_compare_rfontdef): New function.
9643 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9644 rfont-defs by qsort. Adjusted for the change of font-group vector.
9645 (load_font_get_repertory): Deleted.
9646 (fontset_find_font): Use new macros to ref/set elements of
9647 font-def and rfont-def.
9648 (fontset_font): Fix the timing of remembering that no font for C.
9649 (free_face_fontset): Do nothing if the face has no fontset.
9650 (face_suitable_for_char_p): Use new macros to ref/set elements of
9651 rfont-def.
9652 (face_for_char): Likewise. Call face_for_char with font_object.
9653 (fs_load_font): Delete. Delete #pragma surrounding it.
9654 (fs_query_fontset): Use strcasecmp instead of strcmp.
9655 (generate_ascii_font_name): Adjusted for the format change of
9656 font-spec.
9657 (Fset_fontset_font): Likewise. Use new macros to set elements of
9658 font-def.
9659 (Fnew_fontset): Use font_unparse_xlfd to generate
9660 FONTSET_ASCII (fontset).
9661 (new_fontset_from_font_name): Deleted.
9662 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9663 a fontset is already created for the font. FIx updating of
9664 Vfontset_alias_alist.
9665 (fontset_ascii_font): Deleted.
9666 (Ffont_info): Adjusted for the format change of font-spec.
9667 (Finternal_char_font): Likewise.
9668 (Ffontset_info): Likewise.
9669 (syms_of_fontset): Don't check load_font_func.
9670
9671 * fns.c (internal_equal): Handle PREV_FONT.
9672
9673 * frame.h: Delete USE_FONT_BACKEND conditional.
9674
9675 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9676 conditionals. Don't check enable_font_backend. Delete all codes
9677 used only when USE_FONT_BACKEND is not defined.
9678 (x_set_font): Call x_new_font, not x_new_fontset2.
9679 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9680 already set for the frame.
9681
9682 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9683 a font-entity by font_make_entity. Use font_intern_prop instead
9684 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9685 font property. If a font is scalable, set avgwidth property to 0.
9686 Set font-entity property by font_put_extra.
9687 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9688 (ffont_driver): Adjusted for the change of struct font_driver.
9689 (ftfont_spec_pattern): New function.
9690 (ftfont_list): Return a list, not vector.
9691 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9692 (ftfont_list_family): Don't downcase names.
9693 (ftfont_free_entity): Deleted.
9694 (ftfont_open): Return a font-object. Adjusted for the change of
9695 struct font. Get underline_thickness and underline_position from
9696 font property. Don't update dpyinfo->smallest_font_height and
9697 dpyinfo->smallest_char_width.
9698 (ftfont_close): Don't free `struct font'.
9699 (ftfont_has_char): Adjusted for the format change of font-entity.
9700 (ftfont_encode_char, ftfont_text_extents): Likewise.
9701
9702 * ftxfont.c (ftxfont_list): Return a list, not vector.
9703 (ftxfont_open): Return a font-object. Adjusted for the change of
9704 struct font. Get underline_thickness and underline_position from
9705 font property. Don't update dpyinfo->smallest_font_height and
9706 dpyinfo->smallest_char_width.
9707 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9708 (ftxfont_draw): Adjusted for the change of struct font.
9709
9710 * image.c (image_ascent): Don't include "charset.h". Include
9711 "character.h" and "font.h".
9712
9713 * lisp.h (enum pvec_type): New member PREV_FONT.
9714 (Fassoc_string): EXFUN it.
9715
9716 * print.c: Include font.h.
9717 (print_object): Handle font-related objects.
9718
9719 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9720 conditionals. Don't check enable_font_backend. Delete all codes
9721 used only when USE_FONT_BACKEND is not defined.
9722 (handle_auto_composed_prop): Do nothing if it->f is not on a
9723 window system. Check how many following characters can be
9724 displayed by the same font.
9725 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9726 'struct font *'.
9727 (get_char_face_and_encoding): Assign the whole encoding task to
9728 the `encode-char' method of a font driver.
9729 (fill_composite_glyph_string): Adjusted for the change of `struct
9730 face' and `struct glyph_string'.
9731 (fill_glyph_string): Likewise.
9732 (get_per_char_metric): Arguments changed.
9733 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9734 and `struct glyph_string'.
9735 (produce_stretch_glyph, calc_line_height_property)
9736 (x_produce_glyphs): Likewise.
9737
9738 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9739 conditionals. Don't check enable_font_backend. Delete all codes
9740 used only when USE_FONT_BACKEND is not defined. Use
9741 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9742 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9743 (Qp): Extern them.
9744 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9745 Deleted.
9746 (struct font_name): Deleted.
9747 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9748 (compare_fonts_by_sort_order): New function.
9749 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9750 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9751 Deleted.
9752 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9753 compare_fonts_by_sort_order.
9754 (Fx_font_family_list): Call Ffont_family_list.
9755 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9756 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9757 (face_symbolic_slant, face_symbolic_swidth)
9758 (split_font_name_into_vector, build_font_name_from_vector)
9759 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9760 (font_rescale_ratio, split_font_name, build_font_name)
9761 (free_font_names, sort_fonts, x_face_list_fonts)
9762 (face_font_available_p, sorted_font_list, cmp_font_names)
9763 (font_list_1, concat_font_list, font_list, remove_duplicates):
9764 Deleted.
9765 (Fx_list_fonts): Use Ffont_list.
9766 (LFACE_AVGWIDTH): Deleted.
9767 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9768 by FONTP.
9769 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9770 (set_lface_from_font_name): Delete it.
9771 (set_lface_from_font): Renamed from
9772 set_lface_from_font_and_fontset. Caller changed. Don't set
9773 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9774 for face.
9775 (merge_face_vectors): Copy font-spec if necessary.
9776 Clear properties of the font-spec if necessary.
9777 (merge_face_ref): Clear properties of the font-spec if necessary.
9778 (Finternal_set_lisp_face_attribute): Likewise.
9779 (set_font_frame_param): Use font_load_for_lface to load a
9780 font-object, and call Fmodify_frame_parameters with it.
9781 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9782 font name by Ffont_xlfd_name.
9783 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9784 QCslant, and QCwidth.
9785 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9786 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9787 Compare fonts by EQ.
9788 (lookup_non_ascii_face): Deleted.
9789 (face_for_font): The 2nd argument changed.
9790 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9791 Check atomic font properties by case insensitive.
9792 (realize_non_ascii_face): Set face->overstrike correctly.
9793 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9794 (dump_realized_face): Get font name from
9795 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9796
9797 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9798 conditionals. Don't check enable_font_backend. Delete all codes
9799 used only when USE_FONT_BACKEND is not defined.
9800 (xic_create_xfontset): Original code deleted and renamed from
9801 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9802 (x_make_gc): Don't set GCFont in GCs.
9803 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9804 opened by "fixed".
9805 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9806 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9807 get_font_repertory_func.
9808
9809 * xfont.c: Include <stdlib.h> and "ccl.h".
9810 (struct xfont_info): New structure.
9811 (xfont_query_font): Deleted.
9812 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9813 moved from xterm.c.
9814 (xfont_driver): Adjusted for the change of struct font_driver.
9815 (compare_font_names): New function.
9816 (xfont_list_pattern): Sort font names case insensitively. Make
9817 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9818 (xfont_list): Return a list, not vector.
9819 (xfont_match): If the font doesn't have QCname property, generate
9820 a name from the other font properties.
9821 (xfont_open): Return a font-object. Adjusted for the change of
9822 struct font. Get underline_thickness and underline_position from
9823 font property. Don't update dpyinfo->smallest_font_height and
9824 dpyinfo->smallest_char_width.
9825 (xfont_close): Don't free struct font.
9826 (xfont_prepare_face): Adjusted for the change of struct font.
9827 (xfont_done_face): Deleted.
9828 (xfont_has_char): Adjusted for the change of struct font.
9829 (xfont_encode_char, xfont_draw): Likewise.
9830 (xfont_check): New function.
9831
9832 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9833 callback function.
9834 (xftfont_match): Adjusted for the format change of font-entity.
9835 (xftfont_open): Adjusted for the format change of font-entity and
9836 font-object. Adjusted for the change of struct font. Return a
9837 font-object. Don't update dpyinfo->smallest_font_height and
9838 dpyinfo->smallest_char_width.
9839 (xftfont_close): Block input while calling XftFontClose.
9840 (xftfont_prepare_face): Don't block input while calling
9841 xftfont_get_colors. Adjusted for the change of struct font.
9842 (xftfont_shape): Return value of error case fixed.
9843
9844 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9845
9846 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9847 conditionals.
9848 (FONT_WIDTH): Return (f)->max_width.
9849 (struct x_display_info): Delete member `font'.
9850 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9851 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9852 (struct x_output): Change type of `font' to `struct font *'.
9853
9854 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9855 conditionals. Don't check enable_font_backend. Delete all codes
9856 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9857 (x_per_char_metric, x_encode_char): Deleted.
9858 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9859 (x_compute_glyph_string_overhangs): Adjusted for the change of
9860 `struct face'.
9861 (x_draw_glyph_string_foreground)
9862 (x_draw_composite_glyph_string_foreground): Likewise.
9863 (x_draw_glyph_string): Likewise. Use font->underline_position and
9864 font->underline_thickness.
9865 (x_new_font): Renamed from x_new_fontset2.
9866 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9867 (x_check_font): Call `check' method of a font driver.
9868 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9869 (x_query_font, x_get_font_repertory): Deleted.
9870 (x_find_ccl_program): Renamed and moved to xfont.c.
9871 (x_redisplay_interface): Adjusted for the change of `struct
9872 redisplay_interface'.
9873
9874 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9875 conditionals. Don't check enable_font_backend. Delete all codes
9876 used only when USE_FONT_BACKEND is not defined. Surround non-used
9877 code by "#ifdef OLD_FONT" and "endif".
9878 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9879
9880 * w32font.h (struct w32font_info): New member.
9881 (FONT_COMPAT): New macro.
9882 (w32font_open_internal): Prototype adjusted.
9883
9884 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9885 OLD_FONT" and "endif".
9886
9887 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9888 conditionals. Don't check enable_font_backend. Delete all codes
9889 used only when USE_FONT_BACKEND is not defined.
9890 (w32font_open): Return a font-object. Make a font-object by
9891 font_make_object. Adjusted for the change of struct w32font_info.
9892 (w32font_close): Don't free struct font. Adjusted for the change
9893 of struct w32font_info.
9894 (w32font_encode_char, w32font_text_extents, w32font_draw):
9895 Adjusted for the change of struct w32font_info.
9896 (w32font_draw): Likewise.
9897 (w32font_list_internal): Return a list, not vector.
9898 (w32font_open_internal): Change the 4th arg to font-object.
9899 Adjusted for the change of struct w32font_info and font-object format.
9900 (add_font_name_to_list): Don't downcase names.
9901 (w32_enumfont_pattern_entity): Make a font-entity by
9902 font_make_entity. Adjusted for the format change of font-entity.
9903 Use FONT_SET_STYLE to set a style-related font property. If a
9904 font is scalable, set avgwidth property to 0. Set font-entity
9905 property by font_put_extra.
9906 (font_matches_spec): Adjusted for the format change of font-entity.
9907 (w32_weight_table, w32_decode_weight): New variables.
9908 (w32_encode_weight): New function.
9909 (fill_in_logfont): Adjusted for the format change of font-spec.
9910 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9911 weight value.
9912 (w32font_driver): Adjusted for the change of struct font_driver.
9913
9914 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9915 conditionals. Don't check enable_font_backend. Surround non-used
9916 code by "#ifdef OLD_FONT" and "endif".
9917 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9918 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9919
9920 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9921 conditionals. Don't check enable_font_backend. Delete all codes
9922 used only when USE_FONT_BACKEND is not defined. Surround non-used
9923 code by "#ifdef OLD_FONT" and "endif".
9924
9925 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9926 (uniscribe_open): Return value changed to font-object.
9927 Adjusted for the format change of font-object.
9928 (uniscribe_otf_capability): Adjusted for the change of struct font.
9929 (add_opentype_font_name_to_list): Don't downcase names.
9930 (uniscribe_font_driver): Adjusted for the change of struct
9931 font_driver.
9932
99332008-05-13 Chong Yidong <cyd@stupidchicken.com>
9934
9935 * dispnew.c (update_frame_1): Check if tty output is still valid
9936 before flushing it.
9937
99382008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9939
9940 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9941 to Gtk+ menus.
9942
99432008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9944
9945 * dired.c (file_name_completion): Tweak the code so as to always do it
9946 in a single pass. Tighten the scope of some variables.
9947
9948 * dired.c (Qdefault_directory): New var.
9949 (file_name_completion): Use it instead of Fexpand_file_name.
9950 (syms_of_dired): Initialize it.
9951
99522008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9953
9954 * fileio.c (double_dollars): Remove dead code.
9955
99562008-05-10 Eli Zaretskii <eliz@gnu.org>
9957
9958 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9959 Mention w32-get-true-file-attributes in doc string.
9960
9961 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9962
99632008-05-09 Glenn Morris <rgm@gnu.org>
9964
9965 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9966 2008-04-23.
9967
99682008-05-09 Eli Zaretskii <eliz@gnu.org>
9969
9970 Support for reporting owner and group of each file on MS-Windows:
9971 * dired.c (stat_uname, stat_gname): New functions, with special
9972 implementation for w32.
9973 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9974
9975 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9976 (dflt_group_name): New static variable.
9977 (dflt_group): Rename from the_group.
9978 (init_user_info): Init dflt_group fields. Get user's group name
9979 from LookupAccountSid.
9980 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9981 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9982 New initialization states.
9983 (globals_of_w32): Initialize them to zero. Initialize the default
9984 group name to "None".
9985 (GetFileSecurity_Name): New global var, the name of the function
9986 to call for GetFileSecurity.
9987 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9988 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9989 (get_file_security, get_security_descriptor_owner)
9990 (get_security_descriptor_group, is_valid_sid)
9991 (get_file_security_desc, get_rid, get_name_and_id)
9992 (get_file_owner_and_group): New functions.
9993 (stat): Use get_file_security_desc and get_file_owner_and_group to
9994 report the owner and primary group of each file. Don't ignore the
9995 high 32 bits of file's size, now that st_size is 64-bit wide.
9996 Fix test when to get true file attributes.
9997 (init_user_info): Use get_rid instead of equivalent inline code.
9998 (fstat): Don't ignore the high 32 bits of file's size.
9999
100002008-05-09 Chong Yidong <cyd@stupidchicken.com>
10001
10002 * image.c (png_load): Use correct bit-depth for setting background
10003 color.
10004
100052008-05-08 Eli Zaretskii <eliz@gnu.org>
10006
10007 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10008 epa-hook.elc.
10009
100102008-05-08 Juanma Barranquero <lekktu@gmail.com>
10011
10012 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10013
100142008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10015
10016 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10017 because the original parameters are in pure storage now.
10018 (mac_window): Remove unused params. Update callers.
10019
100202008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10021
10022 * lread.c (substitute_object_recurse): Use lower-level primitives.
10023 Don't signal errors when traversing sub-char-tables.
10024 Don't loop over all the possible characters when traversing char-tables.
10025
10026 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10027 just like we do in print.c.
10028
100292008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10030
10031 * minibuf.c (Ftry_completion): Remove code left over from when we used
10032 scmp instead of Fcompare_strings.
10033
100342008-05-04 Juanma Barranquero <lekktu@gmail.com>
10035
10036 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10037
100382008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10039
10040 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10041 Create bitmap context in native byte order.
10042
10043 * macterm.c (XDrawLine)
10044 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10045 context in native byte order.
10046
100472008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10048
10049 * config.in: Regenerate.
10050
10051 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10052 New definitions for Image I/O support.
10053 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10054 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10055 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10056 (mac_data_provider_release_data, image_load_image_io)
10057 [USE_MAC_IMAGE_IO]: New functions.
10058 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10059 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10060 (init_image_func_pointer) [MAC_OSX]: Remove function.
10061 (image_load_quartz2d) [MAC_OSX]: Check availability of
10062 CGImageCreateWithPNGDataProvider at compile time.
10063 Use lowercase `false' for boolean constant.
10064 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10065 Use image_load_image_io.
10066 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10067 Don't check MyCGImageCreateWithPNGDataProvider.
10068 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10069 Don't call init_image_func_pointer.
10070
10071 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10072
10073 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10074 Make variable non-static.
10075 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10076 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10077
10078 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10079 (RED_FROM_ULONG): Mask off higher bits.
10080 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10081
10082 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10083 Include AvailabilityMacros.h.
10084 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10085 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10086
100872008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10088
10089 * chartab.c (Fset_char_table_range): If range is t, really set all
10090 chars to that value.
10091
100922008-05-03 Eli Zaretskii <eliz@gnu.org>
10093
10094 * dired.c (Ffile_attributes): Don't allow the device number become
10095 negative.
10096
100972008-05-02 Daiki Ueno <ueno@unixuser.org>
10098
10099 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10100
101012008-05-02 Juri Linkov <juri@jurta.org>
10102
10103 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10104 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10105 DEFAULT argument as a list of default values in docstrings.
10106
101072008-05-01 Chong Yidong <cyd@stupidchicken.com>
10108
10109 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10110
101112008-05-01 Martin Rudalics <rudalics@gmx.at>
10112
10113 * dispnew.c (change_frame_size_1): Preserve small windows when
10114 shrinking frames by calling set_window_height|width with third
10115 arg 2.
10116
10117 * window.h (struct window): Replace field too_small_ok by field
10118 resize_proportionally.
10119
10120 * window.c (make_window): Initialize resize_proportionally.
10121 (enlarge_window): Temporarily set resize_proportionally to make
10122 sure that shrink_windows does scale the window proportionally.
10123 (shrink_windows): When window has resize_proportionally set try
10124 to shrink it proportionally by stealing from other windows.
10125 (struct saved_window, Fset_window_configuration)
10126 (compare_window_configurations): Handle resize_proportionally.
10127 (WINDOW_TOTAL_SIZE): New macro.
10128 (window_min_size, shrink_windows, size_window): Use it.
10129 (check_min_window_sizes): Remove. Invalid values of
10130 window-min-height|width are handled by window_min_size_2 now.
10131 (size_window, Fsplit_window, enlarge_window)
10132 (adjust_window_trailing_edge, grow_mini_window): Don't call
10133 check_min_window_sizes.
10134 (window_min_size_2, window_min_size_1, window_min_size):
10135 New argument safe_p for retrieving "safe" minimum sizes.
10136 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10137 (adjust_window_trailing_edge, grow_mini_window):
10138 Adjust arguments of window_min_size... functions.
10139 (shrink_windows): Argument min_size removed. New argument
10140 safe_p allows shrinking windows to their safe minimum sizes.
10141 Calculate minimum size and decide whether a window shall be
10142 deleted for each window individually.
10143 (size_window): When nodelete_p equals 2, tell shrink_windows to
10144 delete windows only if their new minimum size is no more safe.
10145 (shrink_window_lowest_first): Call window_min_size_1 to make
10146 sure to preserve modeline of bottom-most window when resizing
10147 the minibuffer.
10148 (Fset_window_configuration, Fcurrent_window_configuration)
10149 (compare_window_configurations): Do not handle
10150 window-min-height|width any more.
10151 (syms_of_window): Clarify window-min-height|width doc-strings.
10152
101532008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10154
10155 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10156 some more. Copy some of the code from Ftry_completions.
10157 Remove special case code that dates back to initial revision when the
10158 slash was only added when necessary and that can't trigger nowadays.
10159
101602008-04-27 Kenichi Handa <handa@m17n.org>
10161
10162 * font.c (font_prop_validate): Signal `error' instead of `font'.
10163
101642008-04-29 Jason Rumney <jasonr@gnu.org>
10165
10166 * w32fns.c (Fw32_battery_status): New defun.
10167 (syms_of_w32fns): Defsubr it.
10168
101692008-04-28 Andreas Schwab <schwab@suse.de>
10170
10171 * dired.c (file_name_completion): Fix another mixing of encoded
10172 and decoded names.
10173
101742008-04-28 Juanma Barranquero <lekktu@gmail.com>
10175
10176 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10177
101782008-04-27 Juanma Barranquero <lekktu@gmail.com>
10179
10180 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10181
101822008-04-27 Andreas Schwab <schwab@suse.de>
10183
10184 * dired.c (file_name_completion): Fix inappropriate mixing of
10185 encoded and decoded names.
10186
10187 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10188
10189 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10190
101912008-04-26 Eli Zaretskii <eliz@gnu.org>
10192
10193 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10194 2008-03-31, it's not needed anymore with `struct stat' definition
10195 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10196 for the same reasons.
10197
101982008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10199
10200 * m/sparc.h: Additional redefinitions for GNU/Linux.
10201
102022008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10203
10204 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10205 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10206 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10207 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10208 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10209 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10210 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10211 Likewise.
10212
10213 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10214 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10215 (mac_ax_number_of_characters): Add externs.
10216 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10217 [USE_MAC_TSM]: Likewise.
10218 (mac_handle_text_input_event) [MAC_OSX]:
10219 Handle kEventTextInputOffsetToPos for no active input area case.
10220 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10221 (mac_handle_document_access_event)
10222 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10223 (install_application_handler) [MAC_OSX]: Register handlers for
10224 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10225 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10226 Register mac_handle_document_access_event.
10227
10228 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10229 Make functions non-static.
10230
102312008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10232
10233 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10234 (read_file_name_completion_ignore_case, insert_default_directory)
10235 (Qdefault_directory): Move to minibuffer.el.
10236 (Fread_file_name): Call the new `read-file-name' instead.
10237
102382008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10239
10240 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10241 Make function non-static.
10242 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10243 Remove function.
10244 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10245 Move to mactoolbox.c.
10246 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10247
10248 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10249 (mac_rect_make): New macro.
10250
10251 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10252 instead of float.
10253 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10254 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10255 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10256 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10257 CGRectMake.
10258 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10259 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10260 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10261 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10262 instead of WindowRef in argument type.
10263 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10264 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10265 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10266 instead of DISPLAY. All uses changed.
10267 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10268 (x_calc_absolute_position): Simplify so as not to use
10269 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10270
10271 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10272 instead of WindowRef in argument type.
10273 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10274 [TARGET_API_MAC_CARBON]: Remove externs.
10275 (create_apple_event, mac_event_parameters_to_lisp)
10276 [TARGET_API_MAC_CARBON]: Add externs.
10277
10278 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10279 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10280 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10281 is clicked.
10282 (x_activate_menubar): Remove extern for saved_menu_event_location.
10283 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10284 Move from mac.c.
10285
102862008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10287
10288 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10289 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10290
102912008-04-23 Jason Rumney <jasonr@gnu.org>
10292
10293 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10294 attributes only for local files.
10295
10296 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10297 default to Qlocal.
10298
102992008-04-22 Juri Linkov <juri@jurta.org>
10300
10301 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10302 read-buffer-to-switch instead of using the letter "B".
10303
103042008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10305
10306 * fileio.c (Qdefault_directory): New variable.
10307 (Fread_file_name): Use it to pass `dir' to the completion functions.
10308
103092008-04-20 Chong Yidong <cyd@stupidchicken.com>
10310
10311 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10312
103132008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10314
10315 * keyboard.c (Vpre_help_message): Remove.
10316 (show_help_echo): Remove default C code.
10317
10318 * dired.c (directory_files_internal, file_name_completion):
10319 Only call ENCODE_FILE if the string is indeed decoded.
10320
103212008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10322
10323 * Makefile.in (TOOLKIT_DEFINES): Remove.
10324 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10325
103262008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10327
10328 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10329 (mactoolbox.o): New target.
10330
10331 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10332 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10333
10334 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10335 Use mac_set_frame_window_background instead of XSetWindowBackground.
10336 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10337 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10338 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10339 instead of SetWindowTitleWithCFString.
10340 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10341 Move function to mactoolbox.c.
10342 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10343 Use mac_set_window_modified instead of SetWindowModified.
10344 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10345 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10346 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10347 FrontNonFloatingWindow. Use mac_activate_window instead of
10348 ActivateWindow. Use mac_active_non_floating_window instead of
10349 ActiveNonFloatingWindow.
10350 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10351 Use mac_show_hourglass and mac_hide_hourglass.
10352 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10353 instead of GetGlobalMouse.
10354 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10355 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10356 Use mac_bring_window_to_front instead of BringToFront.
10357 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10358 mactoolbox.c.
10359 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10360 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10361 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10362 mactoolbox.c.
10363
10364 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10365 (XtPointer): Move typedef from macmenu.c.
10366 (enum button_type): Move enum from macmenu.c.
10367 (widget_value): Move typedef from macmenu.c.
10368 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10369 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10370 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10371 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10372 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10373 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10374 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10375 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10376 (Selection): Move typedef from macselect.c.
10377 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10378 macterm.c.
10379 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10380 (mac_is_window_collapsed, mac_bring_window_to_front)
10381 (mac_send_window_behind, mac_hide_window, mac_show_window)
10382 (mac_collapse_window, mac_front_non_floating_window)
10383 (mac_active_non_floating_window, mac_activate_window)
10384 (mac_move_window_structure, mac_move_window, mac_size_window)
10385 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10386
10387 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10388 (enum mac_menu_kind): Move enum to mactoolbox.c.
10389 (min_menu_id): Move variable to mactoolbox.c.
10390 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10391 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10392 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10393 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10394 [TARGET_API_MAC_CARBON]: Likewise.
10395 (XtPointer): Move typedef to macgui.h.
10396 (enum button_type): Move enum to macgui.h.
10397 (widget_value): Move typedef to macgui.h.
10398 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10399 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10400 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10401 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10402 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10403 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10404 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10405 (popup_activated_flag): Make variable non-static.
10406 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10407 (add_menu_item, fill_menu, dispose_menus):
10408 Move functions to mactoolbox.c.
10409 (restore_show_help_function, menu_target_item_handler)
10410 (install_menu_target_item_handler, mac_handle_dialog_event)
10411 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10412 [TARGET_API_MAC_CARBON]: Likewise.
10413 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10414 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10415 (find_and_call_menu_selection, name_is_separator): Make function
10416 non-static.
10417 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10418 to mactoolbox.c.
10419 (set_frame_menubar): Don't call install_menu_quit_handler.
10420 (menu_item_selection): New variable.
10421 (mac_menu_show): Use create_and_show_popup_menu.
10422 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10423 selection but set variable menu_item_selection. All uses changed.
10424 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10425 Call install_menu_quit_handler. Move to mactoolbox.c.
10426
10427 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10428 (Selection): Move typedef to macgui.h.
10429 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10430 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10431 Make variables non-static.
10432 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10433 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10434 Make functions non-static.
10435 (Vmac_service_selection) [MAC_OSX]: Likewise.
10436 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10437 (mac_valid_selection_target_p, mac_clear_selection)
10438 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10439 (mac_put_selection_value, mac_selection_has_target_p)
10440 (mac_get_selection_value, mac_get_selection_target_list)
10441 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10442 Move functions to mactoolbox.c.
10443 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10444 Likewise.
10445 (copy_scrap_flavor_data, mac_handle_service_event)
10446 (install_service_handler) [MAC_OSX]: Likewise.
10447 (syms_of_macselect) <Vmac_dnd_known_types>:
10448 Use mac_dnd_default_known_types.
10449
10450 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10451 Move to mactoolbox.c.
10452 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10453 (Fx_selection_owner_p): Add EXFUN.
10454 (install_window_handler, remove_window_handler, XSetWindowBackground):
10455 Remove externs.
10456 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10457 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10458 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10459 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10460 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10461 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10462 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10463 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10464 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10465 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10466 (mac_valid_selection_target_p, mac_clear_selection)
10467 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10468 (mac_put_selection_value, mac_selection_has_target_p)
10469 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10470 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10471 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10472 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10473 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10474 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10475 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10476 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10477 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10478
10479 * mactoolbox.c: New file.
10480
104812008-04-18 Jason Rumney <jasonr@gnu.org>
10482
10483 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10484
104852008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10486
10487 * character.c (Fmultibyte_char_to_unibyte):
10488 Return latin1 chars unchanged.
10489
10490 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10491 relocated if it points to `name'.
10492
104932008-04-17 Kenichi Handa <handa@m17n.org>
10494
10495 * data.c (Faset): Allow setting a multibyte character in an
10496 ASCII-only unibyte string.
10497
10498 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10499
105002008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10501
10502 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10503 done in config.h.
10504
105052008-04-16 Juanma Barranquero <lekktu@gmail.com>
10506
10507 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10508 (Fchar_direction): Add usage in the docstring.
10509
105102008-04-15 Chong Yidong <cyd@stupidchicken.com>
10511
10512 * keyboard.c (read_key_sequence): Remove always-true checks.
10513
105142008-04-14 Jason Rumney <jasonr@gnu.org>
10515
10516 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10517 compatibility struct, for better underline positioning.
10518
105192008-04-13 David Hansen <david.hansen@gmx.net>
10520
10521 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10522 string.
10523
105242008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10525
10526 * m/hp800.h (XUINT, XSET): Remove.
10527
105282008-04-12 Juanma Barranquero <lekktu@gmail.com>
10529
10530 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10531 previous change.
10532
105332008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10534
10535 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10536 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10537
105382008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10539
10540 * keymap.h (map_keymap_canonical): Declare.
10541 * xmenu.c (single_keymap_panes): Use it.
10542
105432008-04-11 Glenn Morris <rgm@gnu.org>
10544
10545 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10546 set the target's value to that of the alias.
10547
105482008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10549
10550 * term.c (set_tty_color_mode): Left over typo.
10551
105522008-04-10 Michael Albinus <michael.albinus@gmx.de>
10553
10554 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10555 only after check for file name handler functions. Signal, when
10556 native functionality is not supported.
10557 (syms_of_fileio): Declare it unconditionally.
10558
105592008-04-10 Jason Rumney <jasonr@gnu.org>
10560
10561 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10562 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10563
10564 * w32.c (logon_network_drive): Also logon to remote drives that
10565 are mapped to drive letters.
10566
105672008-04-10 Glenn Morris <rgm@gnu.org>
10568
10569 * xdisp.c (truncate-partial-width-windows): Doc fix.
10570
105712008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10572
10573 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10574 Move functions to minibuffer.el.
10575 (syms_of_fileio): Don't declare them.
10576
105772008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10578
10579 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10580 (syms_of_minibuf): Remove its initialization.
10581
10582 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10583
105842008-04-09 Juanma Barranquero <lekktu@gmail.com>
10585
10586 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10587
105882008-04-09 Jason Rumney <jasonr@gnu.org>
10589
10590 * makefile.w32-in (distclean): Delete makefile too.
10591 (maintainer-clean): New target.
10592
10593 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10594
10595 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10596 for new font backend and composite cases.
10597
105982008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10599
10600 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10601 Most of the code moved to run_timers.
10602 (do_pending_atimers): Call run_timers.
10603 (run_timers): New function.
10604
10605 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10606 run atimers.
10607
10608 * process.c (wait_reading_process_output): The same as above.
10609
106102008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10611
10612 * minibuf.c (last_exact_completion): Remove variable.
10613 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10614 (complete_and_exit_1, complete_and_exit_2)
10615 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10616 (Fdisplay_completion_list, display_completion_list_1)
10617 (Fminibuffer_completion_help, Fself_insert_and_exit)
10618 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10619 minibuffer.el.
10620 (syms_of_minibuf): Remove corresponding initializations.
10621
10622 * keyboard.c (Qdeactivate_mark): New var.
10623 (command_loop_1): Use it to call `deactivate-mark'.
10624 (syms_of_keyboard): Initialize it.
10625
10626 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10627 to another frame.
10628 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10629 Don't call set_tty_color_mode.
10630 (store_frame_param): Reset previous_frame rather than call
10631 set_tty_color_mode.
10632 * term.c (set_tty_color_mode): Rewrite.
10633 * dispextern.h (set_tty_color_mode): New type.
10634 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10635
106362008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10637
10638 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10639 for generic chars, which do not exist any more in emacs-unicode.
10640
106412008-04-08 Michael Albinus <michael.albinus@gmx.de>
10642
10643 * coding.c (detect_coding_emacs_mule)
10644 (Ffind_operation_coding_system): Fix typo.
10645
106462008-04-08 Jason Rumney <jasonr@gnu.org>
10647
10648 * w32uniscribe.c (SNAME): Extract only symbol name.
10649
10650 * w32font.h (struct w32_metric_cache): New struct.
10651 (w32font_info): Use it.
10652 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10653 (CACHE_BLOCKSIZE): New constants.
10654
10655 * w32font.c (Qja, Qko, Qzh): New symbols.
10656 (syms_of_w32font): Initialise them.
10657 (font_matches_spec): Use them to filter by language.
10658 (recompute_cached_metrics): Remove function.
10659 (compute_metrics, clear_cached_metrics): New functions.
10660 (w32font_encode_char): Use them to manage metric cache.
10661 (w32font_text_extents): Cache metrics for all glyphs on demand.
10662 Delay converting glyph indices to WORD until needed.
10663 (w32font_open_internal): Initialize metric cache to empty.
10664 (registry_to_w32_charset): Charset should always be a symbol.
10665 (fill_in_logfont, list_all_matching_fonts): Family should
10666 always be a symbol.
10667
106682008-04-06 Jason Rumney <jasonr@gnu.org>
10669
10670 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10671 Give up if glyph indices not supported. Use uniscribe obtained
10672 ABC widths for individual metrics. Map glyph clusters back to
10673 characters using fClusterStart flag. Return number of glyphs
10674 produced, not chars processed.
10675 (uniscribe_shape): Map char at FROM to current glyph.
10676
106772008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10678
10679 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10680 Use SetMenuItemHierarchicalMenu.
10681
106822008-04-05 Jason Rumney <jasonr@gnu.org>
10683
10684 * image.c (pbm_load): Allow color values up to 65535.
10685 Throw an error if max_color_idx is outside the supported range.
10686 Report an error when image size is invalid.
10687 Read two bytes at a time when raw images have max_color_idx above 255.
10688
106892008-04-05 Eli Zaretskii <eliz@gnu.org>
10690
10691 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10692 cFileName a file name that includes `?' characters, use the 8+3
10693 alias in cAlternateFileName instead.
10694
106952008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10696
10697 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10698 append "CCL: Quitted" when the CCL program is quitted.
10699 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10700
10701 * ccl.h (struct ccl_program): New member quit_silently.
10702
107032008-04-05 Chong Yidong <cyd@stupidchicken.com>
10704
10705 * search.c (compile_pattern_1): Treat non-nil and non-string of
10706 search-spaces-regexp as nil.
10707
10708 * minibuf.c (Fassoc_string): Tweak docstring.
10709
107102008-04-05 Eli Zaretskii <eliz@gnu.org>
10711
10712 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10713 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10714 2008-03-14 to force inode be positive.
10715
10716 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10717 _S_* ones, since we now use our own sys/stat.h.
10718 (stat, fstat): Don't mangle the inode number.
10719 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10720
107212008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10722
10723 * frame.h (struct frame): Give one more bit to `visible' since we use
10724 values larger than 1 to indicate obscured frames on ttys.
10725
10726 * keymap.c (Qkeymap_canonicalize): New var.
10727 (Fmap_keymap_internal): New fun.
10728 (describe_map): Use keymap-canonicalize.
10729
10730 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10731 (Fundo_boundary): Set them.
10732 (syms_of_undo): Initialize them.
10733 (record_point): Use them instead of last_point_position*.
10734 (last_undo_buffer): Change type.
10735
107362008-04-04 Jason Rumney <jasonr@gnu.org>
10737
10738 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10739 (recompute_cached_metrics): Don't set ascent and descent per char.
10740
10741 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10742 (uniscribe_check_otf): Add GC protection before consing.
10743 Rearrange loop for counting features.
10744
107452008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10746
10747 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10748 buffer with byte-size of source buffer.
10749
107502008-04-03 Chong Yidong <cyd@stupidchicken.com>
10751
10752 * callint.c (Fcall_interactively): Handle temporary region even
10753 when shift-select-mode is off.
10754
107552008-04-03 Jason Rumney <jasonr@gnu.org>
10756
10757 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10758
107592008-04-03 Kenichi Handa <handa@m17n.org>
10760
10761 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10762 (CATEGORY_MASK_UTF_16): Likewise.
10763 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10764 binary file.
10765 (detect_coding): Add null-byte detection for a binary file.
10766 (detect_coding_system): Likewise.
10767
107682008-04-03 Jason Rumney <jasonr@gnu.org>
10769
10770 * w32uniscribe.c: New file.
10771
10772 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10773
10774 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10775
10776 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10777 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10778 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10779 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10780 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10781 (Qphonetic): New symbols.
10782 (syms_of_w32font): Initialize them.
10783 (font_supported_scripts): Use them.
10784 (w32font_list_family): List all charsets.
10785 (w32font_text_extents, recompute_cached_metrics): Fix metric
10786 calculations.
10787 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10788 Give opentype fonts their own format.
10789 (font_matches_spec): New arguments backend and logfont.
10790 Handle :otf spec for uniscribe backend.
10791 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10792 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10793
10794 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10795 font backend.
10796 (globals_of_w32fns): Initialize uniscribe font backend.
10797
10798 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10799 dependencies.
10800 (w32uniscribe.$(O)): New file to build.
10801 (FONT_OBJ): Include w32uniscribe.$(O).
10802 (LIBS): Add uniscribe libraries.
10803
10804 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10805
108062008-04-02 Chong Yidong <cyd@stupidchicken.com>
10807
10808 * callint.c (Vshift_select_mode): New var.
10809 (Finteractive): Document new ^ spec.
10810 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10811 is present.
10812
10813 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10814 (command_loop_1): Avoid running the direct display versions of
10815 forward-char and backward-char if shift-selection may occur.
10816 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10817 shift-translation takes place.
10818
10819 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10820 avoid clobbering by define-minor-mode.
10821
10822 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10823 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10824
10825 * syntax.c (Fforward_word): Add ^ interactive spec.
10826
10827 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10828 (Fscroll_right): Add ^ interactive spec.
10829
108302008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10831
10832 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10833
10834 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10835
10836 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10837
108382008-03-31 Juri Linkov <juri@jurta.org>
10839
10840 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10841
108422008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10843
10844 * gtkutil.c (xg_set_geometry): Fix indentation.
10845 (xg_resize_outer_widget): Remove.
10846 (x_wm_size_hint_off): Fix indentation.
10847 (xg_frame_set_char_size): Call flush_and_sync after
10848 gtk_window_resize.
10849 (x_wm_set_size_hint): Pass NULL as geometry window to
10850 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10851 Add menu bar and tool bar height to base height.
10852 (xg_update_frame_menubar, free_frame_menubar)
10853 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10854 (update_frame_tool_bar, free_frame_tool_bar):
10855 Change xg_resize_outer_widget to xg_frame_set_char_size.
10856
108572008-03-30 Michael Albinus <michael.albinus@gmx.de>
10858
10859 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10860 (Fdbus_call_method): New parameter TIMEOUT.
10861 (dbus-send-signal): Optimize UNGCPRO call.
10862
108632008-03-29 Juri Linkov <juri@jurta.org>
10864
10865 * window.c (Fdisplay_buffer): Move call to
10866 Vsplit_window_preferred_function out of conditions that check
10867 if window is eligible for vertical splitting.
10868 When Vsplit_window_preferred_function is non-nil, call it and use
10869 its non-nil return value as window. Otherwise, continue doing
10870 vertical splitting using Fsplit_window with arg horflag=nil.
10871 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10872 default value from `split-window' to nil.
10873
108742008-03-29 Juri Linkov <juri@jurta.org>
10875
10876 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10877 for interactive code letters 'b' and 'B'.
10878
108792008-03-29 Eli Zaretskii <eliz@gnu.org>
10880
10881 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10882 multibyte string.
10883
108842008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10885
10886 * keyboard.c (pending_funcalls): New var.
10887 (timer_check): Run it.
10888 (syms_of_keyboard): Initialize it.
10889 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10890 (Vdelete_terminal_functions): New vars.
10891 (syms_of_terminal): Initialize them.
10892 (Fdelete_terminal): Run delete-terminal-functions.
10893 * xdisp.c (safe_eval): Rewrite.
10894 (safe_call2): New fun.
10895 * frame.c (Qdelete_frame_functions): New var.
10896 (syms_of_frame): Initialize it.
10897 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10898 * lisp.h (safe_call2, pending_funcalls): Declare.
10899
109002008-03-28 Andreas Schwab <schwab@suse.de>
10901
10902 * indent.c (Fmove_to_column): Move declaration before statements.
10903
109042008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10905
10906 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10907 (struct frame): Use bit fields for boolean vars.
10908
10909 * process.c (server_accept_connection): Simplify naming.
10910 (emacs_get_tty_pgrp): Use SDATA.
10911
10912 * coding.c (decode_coding_object): Fix last change.
10913
109142008-03-27 Jason Rumney <jasonr@gnu.org>
10915
10916 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10917
109182008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10919
10920 * charset.c (Fdefine_charset_internal): Change the way of
10921 registering charsets in Vcharset_order_list.
10922 (syms_of_charset): Make the charset `eight-bit' supplementary.
10923
109242008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10925
10926 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10927 operations, to avoid having the difference between pointers
10928 overflow.
10929
109302008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10931
10932 * indent.c (check_display_width): New fun.
10933 (scan_for_column): Use it.
10934
10935 * data.c (syms_of_data): Mark most-positive-fixnum and
10936 most-negative-fixnum as constants.
10937
10938 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10939
10940 * indent.c (scan_for_column): Extract from current_column_1.
10941 Merge with the same code from Fmove_to_column.
10942 (current_column_1, Fmove_to_column): Use it.
10943
109442008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10945
10946 * keymap.c (map_keymap_internal): New fun.
10947 (map_keymap): Use it.
10948 (Fmap_keymap_internal): New fun.
10949 (Fmap_keymap): Remove left-out test from before make_save_value.
10950
10951 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10952
10953 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10954 Use XCAR/XCDR.
10955
10956 * process.h (struct Lisp_Process): Remove filter_multibyte.
10957 * process.c (QCfilter_multibyte): Remove.
10958 (setup_process_coding_systems): Don't use filter_multibyte.
10959 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10960 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10961 (Fset_process_filter_multibyte): Change the coding-system to
10962 approximate the previous behavior.
10963 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10964 coding-system.
10965
10966 * coding.c (decode_coding_object): When not decoding into a buffer,
10967 obey the coding system's preference of (uni|multi)byte.
10968
109692008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10970
10971 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10972 every char is changed and has a different byte-length.
10973 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10974 Fix int -> EMACS_INT.
10975
109762008-03-23 David Hansen <david.hansen@gmx.net>
10977
10978 * dbusbind.c (xd_read_message): Remove extra copying of message
10979 strings. Check for NULL `interface' or `member'.
10980
109812008-03-22 Eli Zaretskii <eliz@gnu.org>
10982
10983 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10984 cFileName a file name that includes `?' characters, use the 8+3
10985 alias in cAlternateFileName instead.
10986
109872008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10988
10989 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10990
109912008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10992
10993 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10994 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10995 work on current_buffer only instead (that was already the case
10996 for some of the code anyway).
10997 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10998 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10999 (SET_PT, SET_PT_BOTH): Adjust.
11000 * intervals.h (set_point, temp_set_point, set_point_both)
11001 (temp_set_point_both): Remove redundant declarations.
11002
110032008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11004
11005 * fileio.c (Finsert_file_contents):
11006 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11007 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11008 when buffer != current_buffer anyway.
11009
110102008-03-20 Andreas Schwab <schwab@suse.de>
11011
11012 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11013 as default.
11014
110152008-03-19 Jason Rumney <jasonr@gnu.org>
11016
11017 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11018 (syms_of_w32fns): Initialize them.
11019 (HOURGLASS_ID): New constant.
11020 (x_window_to_frame): Don't check hourglass_window.
11021 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11022 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11023 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11024 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11025 Only change the cursor if hourglass is not active.
11026 (Fx_create_frame): Initialize frame's current_cursor.
11027 (hourglass_atimer): Remove.
11028 (hourglass_started): New function.
11029 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11030 (show_hourglass): Adapt to w32, changing argument to frame.
11031
11032 * w32term.h (struct w32_output): Remove hourglass_window.
11033 Add current_cursor.
11034
11035 * eval.c (call_debugger, Fsignal):
11036 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11037 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11038 (Fexecute_extended_command, cancel_hourglass_unwind):
11039 * minibuf.c (read_minibuf):
11040 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11041
110422008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11043
11044 * window.c (run_funs): New fun.
11045 (run_window_configuration_change_hook): Use it to run the buffer-local
11046 and the global part of the hook.
11047
11048 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11049 (unwind_format_mode_line): Restore selected window.
11050 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11051
110522008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11053
11054 * editfns.c (Fchar_equal): Check they are valid characters.
11055
11056 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11057
110582008-03-17 Andreas Schwab <schwab@suse.de>
11059
11060 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11061 against a charset.
11062
11063 * lisp.h (Fbuffer_list): Declare.
11064
110652008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11066
aac0c6e3
MR
11067 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11068 handlebox_widget is != 0.
11069
110702008-03-16 Juri Linkov <juri@jurta.org>
11071
11072 * callint.c (Fcall_interactively): For interactive code letters
11073 'b' and 'B' put the buffer list into the list of default "future"
11074 values of the minibuffer.
11075
110762008-03-16 Andreas Schwab <schwab@suse.de>
11077
11078 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11079 modifiers.
11080
11081 * regex.c (re_match_2_internal): Correct matching of a charset
11082 against latin-1 characters.
11083
110842008-03-16 Kenichi Handa <handa@m17n.org>
11085
11086 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11087 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11088 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11089 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11090 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11091 CHAR_STRING_ADVANCE.
11092 (produce_chars): Fix for the case that the source and the
11093 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11094 instead of CHAR_STRING_ADVANCE.
11095 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11096 STRING_CHAR_ADVANCE.
11097
110982008-03-15 Andreas Schwab <schwab@suse.de>
11099
11100 * regex.c (re_match_2_internal): Correct matching of eight bit
11101 characters in unibyte strings.
11102
111032008-03-15 Martin Rudalics <rudalics@gmx.at>
11104
11105 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11106 at end of range when it coincides with the end of the buffer.
11107
111082008-03-14 Eli Zaretskii <eliz@gnu.org>
11109
11110 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11111
11112 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11113
111142008-03-14 Jason Rumney <jasonr@gnu.org>
11115
11116 * editfns.c (initial_tz): New variable.
11117 (syms_of_editfns): Initialize it.
11118 (Fset_time_zone_rule): Set it when first called.
11119 Use it when TZSTRING is nil.
11120
11121 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11122 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11123 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11124 (globals_of_w32fns): Initialize them.
11125 (compute_tip_xy): Use them to position tooltips.
11126
111272008-03-14 Glenn Morris <rgm@gnu.org>
11128
11129 * emacs.c (main): Revert previous change.
11130 (standard_args): Revert -internal-script back to -scriptload,
11131 and remove the long-option form.
11132
111332008-03-13 Glenn Morris <rgm@gnu.org>
11134
11135 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11136 Remove option -enable-font-backend.
11137
111382008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11139
11140 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11141
111422008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11143
11144 * xterm.c (x_connection_closed): For GTK: If this is the last
11145 terminal just exit without closing the display.
11146
111472008-03-11 Jason Rumney <jasonr@gnu.org>
11148
11149 * w32font.c (w32font_full_name): Use floor to round.
11150
f0131492 111512008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11152
11153 * sound.c (alsa_configure): Declare vol at beginning of block.
11154
11155 * fontset.c (Ffontset_info): Remove extra semicolon.
11156
111572008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11158
11159 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11160 size of resulting string.
11161
111622008-03-10 Jason Rumney <jasonr@gnu.org>
11163
11164 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11165
111662008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11167
11168 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11169 Don't pretend as if characters with display property haven't been
11170 consumed for string-replacing-string case.
11171
111722008-03-08 Kim F. Storm <storm@cua.dk>
11173
11174 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11175 (get_next_display_element, next_element_from_string)
11176 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11177
111782008-03-08 Andreas Schwab <schwab@suse.de>
11179
11180 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11181
111822008-03-06 Jason Rumney <jasonr@gnu.org>
11183
11184 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11185 when charset not specified. Only translate ANSI to unicode when
11186 font_type is truetype.
11187 (w32font_coverage_ok): New function.
11188 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11189
111902008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11191
11192 * lread.c (Fread_char): Resolve modifiers.
11193 (Fread_char_exclusive): Likewise.
11194
11195 * character.c (char_resolve_modifier_mask): New function.
11196 (char_string): Use char_resolve_modifier_mask.
11197 (Fchar_resolve_modifiers): New function.
11198 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11199 function.
11200
112012008-03-04 Jason Rumney <jasonr@gnu.org>
11202
11203 * makefile.w32-in: Always include w32font.c in the build.
11204 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11205
112062008-03-04 Andreas Schwab <schwab@suse.de>
11207
11208 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11209 (versionclean): Likewise.
11210
112112008-03-04 Juanma Barranquero <lekktu@gmail.com>
11212
11213 * .cvsignore: Add oo.
11214
112152008-03-03 Andreas Schwab <schwab@suse.de>
11216
11217 * coding.c (decode_coding_object): Inhibit gap shrinking while
11218 decoding in place.
11219
112202008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11221
11222 * w32term.c: Remove unused include "gnu.h".
11223 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11224
11225 * gnu.h: Rename to ...
11226 * emacs-icon.h: ... this.
11227 * xterm.c: Use emacs-icon.h instead of gnu.h.
11228 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11229
112302008-03-03 Juanma Barranquero <lekktu@gmail.com>
11231
11232 * w32font.c: Include math.h.
11233
112342008-03-03 Jason Rumney <jasonr@gnu.org>
11235
11236 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11237 Compute options separately.
11238 (w32font_open_internal): Set glyph_idx before caching metrics.
11239
11240 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11241 Define if system headers don't.
11242 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11243 (w32font_encode_char): Don't declare here.
11244
11245 * w32font.c (Quniscribe, QCformat): New symbols.
11246 (syms_of_w32font): Define them.
11247 (w32font_has_char): Indicate uncertainty.
11248 (w32font_encode_char): Encode as glyph point. Make static.
11249 (recompute_cached_metrics): New function.
11250 (w32font_open_internal): Use it. Set font to use glyph points
11251 initially. Set format based on type of font.
11252 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11253 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11254 on it. Set format based on information available here.
11255 (add_font_entity_to_list): Identify backend based on opentype_only.
11256
112572008-03-02 Andreas Schwab <schwab@suse.de>
11258
11259 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11260
11261 * coding.c (decode_coding_big5, produce_chars):
11262 Fix typos in last change.
11263
112642008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11265
11266 * gnu.h: New icon.
11267
112682008-03-02 Kenichi Handa <handa@m17n.org>
11269
11270 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11271 `dos', don't decode '\r' if that is the last in the source.
11272 (decode_coding_utf_16, decode_coding_emacs_mule)
11273 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11274 (decode_coding_raw_text, decode_coding_charset): Likewise.
11275 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11276
112772008-03-01 Jason Rumney <jasonr@gnu.org>
11278
11279 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11280
112812008-03-01 Kim F. Storm <storm@cua.dk>
11282
11283 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11284
112852008-03-01 Jason Rumney <jasonr@gnu.org>
11286
11287 * w32font.c (w32font_full_name): New function.
11288 (w32font_open_internal): Use it.
11289
112902008-03-01 Kim F. Storm <storm@cua.dk>
11291
11292 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11293
112942008-03-01 Jason Rumney <jasonr@gnu.org>
11295
11296 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11297
112982008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11299
11300 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11301 xg_frame_resized when the event is for the edit widget.
11302
11303 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11304
11305 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11306 set_char_size.
11307 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11308 operations on widgets here. Just set frame size if needed.
11309 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11310 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11311 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11312 the whole frame.
11313 (xg_create_tool_bar): Move attachment of the tool bar to
11314 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11315 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11316
113172008-03-01 Jason Rumney <jasonr@gnu.org>
11318
11319 * w32fns.c (w32_msg_pump): Disable debug code.
11320
113212008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11322
11323 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11324
113252008-02-29 Chong Yidong <cyd@stupidchicken.com>
11326
11327 * xdisp.c (next_overlay_string): Don't set
11328 overlay_strings_at_end_processed_p if we're currently reading from
11329 a display string.
11330
113312008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11332
11333 * xdisp.c (get_overlay_strings_1): Fix typo.
11334
113352008-02-29 Chong Yidong <cyd@stupidchicken.com>
11336
11337 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11338
113392008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11340
11341 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11342
11343 * xdisp.c (display_mode_element): Cancel the previous change.
11344 (decode_mode_spec): Likewise.
11345 (handle_auto_composed_prop): Don't make composition if it->string
11346 is a string.
11347
113482008-02-27 Kim F. Storm <storm@cua.dk>
11349
11350 * lisp.h (GLYPH): Change type from int to struct with separate char
11351 and face_id members.
11352 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11353 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11354 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11355 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11356 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11357 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11358 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11359 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11360 handle new Lisp glyph code encoding, either an integer or a cons.
11361
11362 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11363 (GLYPH_ALIAS): Delete.
11364 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11365 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11366 (GLYPH_FROM_CHAR): Replace macro by ...
11367 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11368
11369 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11370 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11371 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11372 (GLYPH_INVALID_P): New macro.
11373 (spec_glyph_lookup_face): Update prototype.
11374
11375 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11376 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11377 new glyph code encoding.
11378 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11379 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11380
11381 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11382 Adapt to new glyph type and new glyph code encoding.
11383
11384 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11385
11386 * indent.c (current_column, current_column_1, Fmove_to_column)
11387 (compute_motion): Adapt to new glyph code encoding.
11388
11389 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11390
113912008-02-27 Chong Yidong <cyd@stupidchicken.com>
11392
11393 * process.c (wait_reading_process_output): Check for window
11394 changes caused by timers.
11395 Suggested by Johan Bockgård.
11396
113972008-02-27 Glenn Morris <rgm@gnu.org>
11398
11399 * emacs.c (USAGE1): Add `--disable-font-backend'.
11400
114012008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11402
11403 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11404 is made to the buffer.
11405
114062008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11407
11408 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11409 (face_at_string_position):
11410 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11411 (face_at_string_position):
11412 * xdisp.c (display_string, next_overlay_change):
11413 * buffer.h (overlays_at):
11414 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11415 Update callers.
11416
114172008-02-26 Chong Yidong <cyd@stupidchicken.com>
11418
11419 * editfns.c (Fformat): Doc fix.
11420
114212008-02-26 Juanma Barranquero <lekktu@gmail.com>
11422
11423 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11424 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11425 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11426
114272008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11428
11429 * buffer.c (Fbuffer_swap_text): New function.
11430 (syms_of_buffer): Defsubr it.
11431
114322008-02-25 Chong Yidong <cyd@stupidchicken.com>
11433
11434 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11435
114362008-02-25 Jason Rumney <jasonr@gnu.org>
11437
11438 * w32font.c (w32font_draw): Draw one character at a time when padding.
11439
114402008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11441
11442 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11443 Handle a nil arg. Use run_window_configuration_change_hook.
11444 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11445 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11446 Use run_window_configuration_change_hook.
11447
114482008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11449
11450 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11451 1-pixel width.
11452
114532008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11454
11455 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11456 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11457 if the glyph in the font is zero pixel with.
11458
11459 * dispextern.h (struct glyph_string): New member padding_p.
11460
11461 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11462
11463 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11464
11465 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11466
11467 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11468
11469 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11470
114712008-02-25 Jason Rumney <jasonr@gnu.org>
11472
11473 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11474
114752008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11476
11477 Allow fine-grained image-cache flushing.
11478 * dispextern.h (struct image): Add `dependencies' field.
11479 (clear_image_caches): Change arg to Lisp_Object.
11480 * image.c (make_image): Initialize `dependencies' field.
11481 (clear_image_cache): Change arg to allow fine-grained flushing.
11482 Perform the flush even if image-cache-eviction-delay is nil.
11483 (clear_image_caches): Change arg to Lisp_Object.
11484 (Fclear_image_cache): Expand meaning of the argument.
11485 (mark_image): Mark `dependencies' field.
11486 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11487 (lface_hash): Use XHASH rather than XFASTINT.
11488 (face_at_buffer_position): Fix int -> EMACS_INT position.
11489 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11490 (select_frame_for_redisplay): Remove code duplication.
11491 (redisplay_internal): Adapt arg to call to clear_image_caches.
11492
114932008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11494
11495 * s/vms4-0.h:
11496 * s/vms4-2.h:
11497 * s/vms4-4.h:
11498 * s/vms5-5.h: Remove, unused.
11499
11500 * s/irix5-2.h:
11501 * s/irix6-0.h:
11502 * s/riscos5.h:
11503 * s/mach-bsd4-3.h:
11504 * m/mips4.h: Remove files for obsolete systems.
11505
11506 * Makefile.in:
11507 * filelock.c:
11508 * unexmips.c:
11509 * m/hp9000s300.h:
11510 * m/iris4d.h:
11511 * s/aix3-1.h:
11512 * s/hpux.h:
11513 * s/msdos.h:
11514 * s/usg5-0.h:
11515 * s/usg5-2-2.h:
11516 * s/usg5-2.h:
11517 * s/usg5-3.h: Remove references to obsolete variables.
11518
11519 * s/irix5-0.h: Remove, move all the contents ...
11520 * s/irix6-5.h: ... here. Simplify.
11521 * config.in: Regenerate.
11522
115232008-02-24 Jason Rumney <jasonr@gnu.org>
11524
11525 * w32term.c (x_draw_glyph_string_background): Clear the background
11526 manually when cleartype is in use.
11527 (x_draw_glyph_string_foreground): Draw text transparently when
11528 cleartype is in use.
11529
11530 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11531 a font into it unless we have to.
11532
115332008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11534
11535 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11536 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11537
aac0c6e3
MR
115382008-02-18 Jason Rumney <jasonr@gnu.org>
11539
11540 * w32fns.c (Fw32_shell_execute): Encode parameters.
11541
115422008-02-09 Eli Zaretskii <eliz@gnu.org>
11543
11544 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11545
115462008-02-05 Juanma Barranquero <lekktu@gmail.com>
11547
11548 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11549
115502008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11551
11552 * xterm.c (x_set_offset): Don't change the gravity if
11553 CHANGE_GRAVITY is -1.
11554
115552008-02-23 Chong Yidong <cyd@stupidchicken.com>
11556
11557 * fileio.c (auto_save_error_occurred): New var.
11558 (auto_save_error): Set it.
11559 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11560 error occurred.
11561
115622008-02-23 Eli Zaretskii <eliz@gnu.org>
11563
11564 * w32.c (globals_of_w32): Add initializations for
11565 g_b_init_get_sid_sub_authority and
11566 g_b_init_get_sid_sub_authority_count.
11567
115682008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11569
11570 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11571 (font_parse_xlfd): Use them for sanity check.
11572 (Finternal_set_font_style_table): Make sure the table is bijective.
11573
11574 Consolidate the image_cache to the terminal struct.
11575 * termhooks.h (P_): Remove redundant def.
11576 (struct terminal): New field `image_cache'.
11577 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11578 of FRAME_X_IMAGE_CACHE.
11579 * xterm.h (struct x_display_info): Remove image_cache field.
11580 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11581 * w32term.h (struct w32_display_info): Remove image_cache field.
11582 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11583 * macterm.h (struct mac_display_info): Remove image_cache field.
11584 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11585 * xterm.c (x_term_init):
11586 * w32term.c (w32_term_init):
11587 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11588 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11589 Remove declarations.
11590 (clear_image_caches, mark_image_cache): New declarations.
11591 * xfaces.c (clear_face_cache):
11592 * xdisp.c (redisplay_internal): Use clear_image_caches.
11593 * image.c (clear_image_cache): Don't check that a frame is on
11594 a window-system before checking if it shares the same cache.
11595 (clear_image_caches): New function.
11596 (Fclear_image_cache): Use it.
11597 (mark_image): Move from allo.c.
11598 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11599 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11600 (mark_object): Don't call mark_image_cache for frames.
11601 (mark_terminals): Call mark_image_cache.
11602
11603 * lisp.h (Fdelete_terminal): Declare.
11604
11605 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11606 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11607 wrong_type_argument.
11608
116092008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11610
11611 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11612 malayalam.el, and tamil.el. Add sinhala.el.
11613
116142008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11615
11616 * xterm.c (x_connection_closed): Consolidate identical tests.
11617 (x_delete_terminal): Don't crash if called via x_connection_closed.
11618
116192008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11620
11621 * xdisp.c (decode_mode_spec): New arg string.
11622 (display_mode_element): Adjust for the above change.
11623
116242008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11625
11626 * callint.c (Fcall_interactively): Use AREF.
11627
116282008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11629
11630 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11631
116322008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11633
11634 * xfns.c (Fx_show_tip): Set string to " " if empty.
11635
116362008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11637
11638 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11639 with Qt.
11640
116412008-02-17 Kenichi Handa <handa@m17n.org>
11642
11643 * ftfont.c (ftfont_shape): Return Lispy number.
11644
11645 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11646 for GCs.
11647 (Finternal_set_font_selection_order): Call font_update_sort_order
11648 only when enable_font_backend is set.
11649 (realize_x_face): Set face->font_info to that of default face only
11650 when enable_font_backend is set.
11651
11652 * xdisp.c (handle_composition_prop): Set it->c to the fist
11653 character of the composed region.
11654 (fill_composite_glyph_string): Set base_face->font_info to
11655 s->font_info. Get a face for ascii from base_face->ascii_face.
11656 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11657 with a face already decided.
11658 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11659 non-negative.
11660 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11661 call font_prepare_composition unconditionally.
11662
11663 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11664
11665 * xterm.h (struct x_display_info): New member font.
11666
11667 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11668 (x_set_mouse_face_gc, x_new_font): Likewise.
11669 (x_term_init): Setup display_info->font.
11670 (x_delete_terminal): Free display_info->font.
11671
11672 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11673
11674 * ftxfont.c (ftxfont_default_fid): Delete it.
11675 (ftxfont_open): Set xfont->fid to 0.
11676 (ftxfont_end_for_frame): Clear data specific to the frame and the
11677 font-driver.
11678
11679 * xftfont.c (xftfont_default_fid): Delete it.
11680 (xftfont_open): Set xfont->fid to 0.
11681
11682 * fontset.c (FONTSET_OBJLIST): New macro.
11683 (fontset_find_font): Update font-object list of the fontset.
11684 (free_realized_fontset): New function.
11685 (free_face_fontset): Call free_realized_fontset.
11686 (Ffont_info): Call font_close_object only when enable_font_backend
11687 is set.
11688
11689 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11690 [HAVE_NTGUI]: Include w32term.h.
11691 [MAC_OS]: Include macterm.ch.
11692 (font_otf_ValueRecord): Use make_number.
11693 (font_finish_cache): Fix handling of reference count.
11694 (font_clear_cache): Update num_fonts.
11695 (font_open_entity): Update smallest_char_width and
11696 smallest_font_height of the frame.
11697 (font_close_object): Update num_fonts.
11698 (Fclear_font_cache): Fix finding the target cache data.
11699
117002008-02-16 Glenn Morris <rgm@gnu.org>
11701
11702 * fontset.c (Finternal_char_font): Fix compilation warning.
11703
117042008-02-16 Eli Zaretskii <eliz@gnu.org>
11705
11706 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11707 instead of char arrays. Enlarge the size of array passed to
11708 get_token_information.
11709
11710 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11711 warnings.
11712
117132008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11714
11715 * .gdbinit: Don't set `args', it breaks gdb --args.
11716
117172008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11718
11719 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11720 within a narrowed buffer.
11721
117222008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11723
11724 * coding.c (decode_coding_object, encode_coding_object):
11725 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11726
117272008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11728
11729 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11730 hardcoding 1.
11731 (detect_coding_system):
11732 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11733 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11734 * insdel.c (insert_from_gap):
11735 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11736 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11737 (string_to_multibyte):
11738 * character.c (chars_in_text, multibyte_chars_in_text):
11739 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11740
11741 * character.h (FETCH_STRING_CHAR_ADVANCE)
11742 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11743 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11744 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11745
11746 * casefiddle.c (casify_region): Only call after-change and composition
11747 functions on the part of the region that was changed.
11748
11749 * keyboard.c (read_avail_input):
11750 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11751
117522008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11753
11754 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11755 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11756
117572008-02-11 Juanma Barranquero <lekktu@gmail.com>
11758
11759 * w32menu.c (push_submenu_start, push_submenu_end)
11760 (push_left_right_boundary, push_menu_pane, push_menu_item):
11761 * keyboard.c (read_key_sequence): Don't pass args with side effects
11762 to AREF, it fails when compiling with -DENABLE_CHECKING.
11763
117642008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11765
11766 * Makefile.in (${lispsource}international/charprop.el):
11767 Delete this target.
11768
11769 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11770 emacs-unicode-2.
11771
117722008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11773
11774 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11775
117762008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11777
11778 * frame.c (Qnoelisp): New symbol.
11779 (syms_of_frame): Initialize it.
11780 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11781 harmless Elisp code, from a strong `force' from x_connection_closed.
11782 * frame.h (Qnoelisp): Declare.
11783 * xterm.c (x_connection_closed): Pass `noelisp'.
11784
11785 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11786 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11787 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11788 rather than `int' for the type of `type'.
11789
117902008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11791
11792 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11793
11794 * Makefile.in (GNUC): Remove support for gcc-1.x.
11795
117962008-02-10 Richard Stallman <rms@gnu.org>
11797
11798 * lisp.h (ASET): Use AREF, not ASLOT.
11799
118002008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11801
11802 * lisp.h (ASET): Check bounds.
11803
118042008-02-10 Glenn Morris <rgm@gnu.org>
11805
11806 * buffer.c (mode-name): Doc fix.
11807
118082008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11809
11810 * Makefile.in:
11811 * emacs.c:
11812 * gmalloc.c:
11813 * keyboard.c:
11814 * lisp.h:
11815 * m/ibm370aix.h:
11816 * process.c:
11817 * regex.c:
11818 * s/hpux.h:
11819 * sysdep.c:
11820 * sysselect.h:
11821 * systty.h:
11822 * unexec.c:
11823 * w32term.c:
11824 * xsmfns.c:
11825 * xterm.c: Remove code that deals with obsolete variables.
11826
11827 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11828
11829 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11830 nothing else needs it anymore.
11831
118322008-02-09 Eli Zaretskii <eliz@gnu.org>
11833
11834 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11835 instead of unibyte_char_to_multibyte.
11836
118372008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11838
11839 * s/gnu-linux.h: Remove commented out code.
11840
11841 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11842
11843 * Makefile.in: Update what RMS says about using autoconf.
11844 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11845 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11846 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11847 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11848
118492008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11850
11851 * keymap.c (Fkey_description): Move side effect outside of macro call.
11852
11853 * xfaces.c (Finternal_make_lisp_face):
11854 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11855
11856 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11857 (syms_of_fontset): Use ASET.
11858
11859 * fns.c (concat): Move side effect outside of macro call.
11860 (hash_clear): Use ASET.
11861
118622008-02-08 Richard Stallman <rms@gnu.org>
11863
11864 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11865 If FORCE, and frame has a surrogate minibuffer for another frame,
11866 delete the other frame first.
11867
118682008-02-07 Timo Savola <timo.savola@iki.fi>
11869
11870 * xterm.c (x_detect_focus_change): Handle embed client message.
11871 (handle_one_xevent): Ditto.
11872 (handle_one_xevent): If embedded and we get a button press/release,
11873 request focus.
11874 (xembed_set_info, xembed_send_message): New functions.
11875 (x_make_frame_visible): Call xembed_set_info if embedded.
11876 (x_make_frame_invisible): Call xembed_set_info if embedded.
11877 (x_term_init): Initialize Xatom_XEMBED.
11878 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11879 (x_iconify_frame): Ditto.
11880
11881 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11882 (enum xembed_info, enum xembed_message, enum xembed_focus)
11883 (enum xembed_modifier, enum xembed_accelerator): New.
11884 (xembed_set_info, xembed_send_message): Declare.
11885 (FRAME_X_EMBEDDED_P): New.
11886
11887 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11888 gtk_plug_new.
11889
11890 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11891 window ID of a frame.
11892 (x_window): Reparent frame if embedded.
11893 (Fx_create_frame): Don't set border width if embedded.
11894
11895 * emacs.c (USAGE3): Add --parent-id.
11896 (standard_args): Ditto.
11897
118982008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11899
11900 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11901
119022008-02-07 Jim Meyering <meyering@redhat.com>
11903
11904 Use "do...while (0)", not "if (1)...else" in macro definitions.
11905 The latter provokes a warning from gcc about the empty else, when
11906 followed by ";". Also, without that trailing semicolon, it would
11907 silently swallow up any following statement.
11908 * syntax.h (SETUP_SYNTAX_TABLE)
11909 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11910 * buffer.h (DECODE_POSITION): Likewise.
11911 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11912 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11913 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11914 (FETCH_CHAR_ADVANCE): Likewise.
11915 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11916
119172008-02-07 Jim Meyering <meyering@redhat.com>
11918
11919 * lread.c [lint]: Don't include <sys/inode.h>.
11920
119212008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11922
11923 * xselect.c (x_handle_dnd_message):
11924 * xmenu.c (digest_single_submenu, xmenu_show):
11925 * xdisp.c (with_echo_area_buffer_unwind_data)
11926 (format_mode_line_unwind_data, unwind_format_mode_line)
11927 (display_menu_bar):
11928 * eval.c (Ffetch_bytecode):
11929 * doc.c (store_function_docstring):
11930 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11931 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11932 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11933
119342008-02-07 Kenichi Handa <handa@m17n.org>
11935
11936 * ftxfont.c (ftxfont_open): Don't set
11937 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11938
11939 * ftfont.c (ftfont_open): Fix previous change.
11940
119412008-02-06 Jason Rumney <jasonr@gnu.org>
11942
11943 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11944 Use cached metrics for ASCII characters.
11945 (w32font_open_internal): Don't set font's owning_frame.
11946 Cache metrics for ASCII characters.
11947
11948 * w32font.h (struct w32font_info): Add ascii_metrics.
11949 Remove owning_frame.
11950
119512008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11952
11953 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11954 to negative value.
11955
11956 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11957
11958 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11959
11960 * charset.c (syms_of_charset): Set QCtest and Qeq.
11961
119622008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11963
11964 * process.c (Fstart_process):
11965 * callproc.c (Fcall_process): Handle the case where
11966 Funhandled_file_name_directory returns nil.
11967
11968 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11969 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11970 * font.c (check_gstring): Use them and AREF to access the vector before
11971 we know it's really a gstring.
11972 (Ffont_shape_text): Fix typo.
46e722a9 11973 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
11974
11975 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11976 Declare.
11977
11978 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11979
119802008-02-05 Jason Rumney <jasonr@gnu.org>
11981
11982 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11983 Set smallest_font_height and smallest_char_width in display info.
11984
119852008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11986
11987 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11988
119892008-02-05 Miles Bader <miles@gnu.org>
11990
11991 * xfaces.c (get_lface_attributes, merge_named_face)
11992 (lookup_named_face, lookup_derived_face, realize_named_face):
11993 Revert 2008-02-01 change by cyd@stupidchicken.com.
11994
119952008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11996
11997 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11998 fallback fonts.
11999 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12000
120012008-02-04 Jason Rumney <jasonr@gnu.org>
12002
12003 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12004 set full_name.
12005 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12006
120072008-02-03 Jason Rumney <jasonr@gnu.org>
12008
12009 * makefile.w32-in (OBJ1): Include font.o here.
12010 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12011
120122008-02-02 Jason Rumney <jasonr@gnu.org>
12013
12014 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12015
120162008-02-01 Jason Rumney <jasonr@gnu.org>
12017
12018 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12019
12020 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12021
120222008-02-01 Andreas Schwab <schwab@suse.de>
12023
12024 * Makefile.in (shortlisp, lisp): Update for rename of
12025 ../lisp/language/myanmar.el.
12026
120272008-02-01 Chong Yidong <cyd@stupidchicken.com>
12028
12029 * xfaces.c (get_lface_attributes): Delete function.
12030 (merge_named_face, lookup_named_face, lookup_derived_face)
12031 (realize_named_face): Call lface_from_face_name directly, and use
12032 the fact that merge_face_vectors does not alter its FROM argument.
12033
120342008-02-01 Jason Rumney <jasonr@gnu.org>
12035
12036 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12037 input in the default locale. Handle non-Unicode multibyte input.
12038
120392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12040
12041 * fontset.c (reorder_font_vector): Exclude nil elements from the
12042 font group. Don't try multiple fonts.
12043 (fontset_font): Adjust for the above change.
12044 (Finternal_char_font): Return nil if the found font doesn't
12045 contain the character ch.
12046
12047 * Makefile.in (lisp, shortlisp): Add cham.el.
12048
120492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12050
12051 * font.h (FONTP): Make it return 1 also for a font-object.
12052
12053 * .gdbinit (xfontset): New function.
12054
12055 * font.c (font_find_for_lface): Check if the character C is
12056 supported or not only for the first font.
12057
12058 * fontset.c (reorder_font_vector): Fix typo.
12059 (fontset_find_font): Don't add a font-spec specifying a script.
12060 Use 0 (not Qt) for the indication of empty font-group. Change the
12061 format of RFONT-DEF. Return Qt if no font in the font-group
12062 support the character.
12063 (fontset_font): Adjust for the above change. If no font was
12064 found the character, remember that.
12065 (face_for_char): Adjust for the change of RFONT-DEF.
12066 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12067 no font for the target.
12068 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12069
120702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12071
12072 * font.c (font_load_for_face): Handle the case that the font in
12073 face->lface is a string.
12074
120752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12076
12077 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12078
120792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12080
12081 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12082 Fix previous change. If the frame is not on a window system,
12083 signal an error.
12084
120852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12086
12087 * coding.c (decode_coding_object, encode_coding_object): Adjust
12088 marker positions after conversion.
12089
12090 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12091
120922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12093
12094 * font.c (font_find_for_lface): Fix the handling of the return
12095 value of font_has_char.
12096 (Ffont_shape_text): Fix previous change.
12097
12098 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12099 (fontset_ref_and_range): Delete it.
12100 (fontset_find_font): Call char_table_ref_and_range instead of
12101 FONTSET_REF_AND_RANGE.
12102 (make_fontset): Don't setup font groups of Latin here.
12103 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12104 (new_fontset_from_font): Make the specified font the default for
12105 all Latin characters.
12106
121072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12108
12109 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12110 is on a window system before accessing the fontset of the frame.
12111
121122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12113
12114 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12115
12116 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12117 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12118
12119 * font.c (Ffont_shape_text): If the font driver doesn't have a
12120 shaper function, make zero-width glyphs to have at least one-pixel
12121 width. Fix setting of `to' field of glyphs.
12122
121232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12124
12125 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12126 glyphs.
12127
12128 * font.h (struct font_driver): Improve docstring of member `shape'.
12129
121302008-02-01 Kenichi Handa <handa@m17n.org>
12131
12132 * composite.c (syms_of_composite): Fix docstring of
12133 auto-composition-function.
12134
12135 * font.h (LGLYPH_SIZE): New macro.
12136
12137 * font.c (Ffont_fill_gstring): Stop filling when a character not
12138 supported by the font is found.
12139 (Ffont_shape_text): When a shape callback function returns nil,
12140 try at most two more times with larger gstring.
12141 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12142
12143 * xdisp.c (handle_auto_composed_prop): Change the argument to
12144 auto-composition-function.
12145
12146 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12147 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12148 Lispy glyph and store it in the lgstring.
12149
12150 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12151
12152 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12153
121542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12155
12156 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12157
12158 * fontset.c (Vfont_encoding_charset_alist): New variable.
12159 (syms_of_fontset): DEFVAR it.
12160 (reorder_font_vector, fontset_find_font): Optimize for the case of
12161 no need of reordering.
12162 (face_for_char): Map the charset property by
12163 Vfont_encoding_charset_alist.
12164
121652008-02-01 Jason Rumney <jasonr@gnu.org>
12166
12167 * w32font.c (logfonts_match): Don't check adstyle here.
12168 (font_matches_spec): Check here against physical font instead.
12169 (add_font_entity_to_list): Avoid some substitutions.
12170
12171 * font.c (font_parse_fcname): Default weight and slant to normal.
12172 (font_score): Prefer normal fonts if weight or slant unspecified.
12173 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12174 match freetype scores.
12175
121762008-02-01 Jason Rumney <jasonr@gnu.org>
12177
12178 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12179 font, as it may have been deleted.
12180 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12181 most common hyphenless variation.
12182 (logfonts_match): Check generic family.
12183 (font_matches_spec): Don't check generic family here.
12184 (fill_in_logfont): Set generic family based on adstyle.
12185
12186 * w32font.h (w32font_get_cache): Update declaration.
12187
121882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12189
12190 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12191
12192 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12193 If none of the new drivers are available, call font_update_drivers
12194 with the old drivers.
12195
12196 * w32font.c (w32font_get_cache): Adjust the argument type.
12197
12198 * xfont.c (xfont_get_cache): Adjust the argument type.
12199
12200 * font.h (struct font_driver): Change argument type of get_cache.
12201
12202 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12203
12204 * font.c (Ffont_get): Fix arguments to Fassoc.
12205 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12206 (font_clear_cache): New function.
12207 (font_list_entities, font_matching_entity): Use font_get_cache.
12208 (font_update_drivers): Call font_clear_cache when finishing a driver.
12209
12210 * fontset.c (fontset_find_font): Fix previous change.
12211
122122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12213
12214 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12215 dpyinfo->font_table.
12216 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12217 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12218
12219 * font.c (font_at): Handle the case that the arg C is negative.
12220 Handle the unibyte case.
12221 (Ffont_at): Call font_at with the arg C -1.
12222
12223 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12224 the position here, and call font_at with the arg C -1.
12225 Don't check the range of the existing composition at the point.
12226
122272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12228
12229 * fontset.c (fontset_add): New args charset_id and family.
12230 Change caller.
12231 (load_font_get_repertory, fontset_find_font): Assume that
12232 font_spec is always a font-spec object.
12233 (Fset_fontset_font): Always store a font-spec object in a fontset.
12234
12235 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12236 instead of get_property_and_range.
12237
122382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12239
12240 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12241 (xftfont_open): Don't keep locking face.
12242 (xftfont_close): Don't unlock face.
12243 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12244
12245 * fontset.c (fontset_find_font): Don't prefer a font of
12246 supplementary charset.
12247
122482008-02-01 Kenichi Handa <handa@m17n.org>
12249
12250 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12251 script, langsys_tag to langsys, new member script.
12252 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12253 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12254 listing to the script specified in that property. Fix arg to
12255 OTF_check_features.
12256
122572008-02-01 Jason Rumney <jasonr@gnu.org>
12258
12259 * w32font.h: New file.
12260
12261 * w32font.c: Include it.
12262 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12263 (w32font_open): Set owning_frame.
12264 (w32font_text_extents): Use owning_frame.
12265 (struct font_callback_data): Add opentype_only field.
12266 (add_font_entity_to_list): Use it to filter fonts.
12267 Don't check against full name.
12268 (w32font_list_internal): New function.
12269 (w32font_list): Use it.
12270 (w32font_match_internal): New function.
12271 (w32font_match): Use it.
12272 (w32font_open_internal): New function.
12273 (w32font_open): Use it.
12274 (w32font_get_cache, w32font_close, w32font_has_char)
12275 (w32font_encode_char, w32font_text_extents, w32font_draw):
12276 Make non-static.
12277
12278 * makefile.w32-in (w32font.o): Depend on w32font.h.
12279
122802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12281
12282 * charset.c (Fdefine_charset_internal): Record a supplementary
12283 charset at the tail of Vcharset_order_list.
12284
12285 * font.c (Ffont_shape_text): Fix the return value.
12286
12287 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12288
12289 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12290
122912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12292
12293 * ftfont.c (struct OpenTypeSpec): New struct.
12294 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12295 (ftfont_get_open_type_spec): New function.
12296 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12297
12298 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12299
123002008-02-01 Jason Rumney <jasonr@gnu.org>
12301
12302 * w32font.c (add_font_entity_to_list): Compare only the beginning
12303 of full name.
12304
123052008-02-01 Kenichi Handa <handa@m17n.org>
12306
12307 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12308 Never return HANDLED_RECOMPUTE_PROPS.
12309
123102008-02-01 Kenichi Handa <handa@m17n.org>
12311
12312 * font.c (font_gstring_produce): Delete it.
12313
12314 * composite.h (COMPOSITION_METHOD):
12315 Handle COMPOSITION_WITH_GLYPH_STRING.
12316
123172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12318
12319 * xfont.c (Qx): Delete.
12320 (syms_of_xfont): Don't initialize Qx.
12321
12322 * composite.h (enum composition_method):
12323 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12324
123252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12326
12327 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12328 (choose_face_font): Accept new form of font-spec.
12329
12330 * frame.h (font_driver_list): Declare it unconditionally.
12331 (struct frame): Define members font_driver_list and font_data_list
12332 unconditionally.
12333
12334 * fontset.c: Include "font.h" unconditionally.
12335 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12336 (Fset_fontset_font): Accept a font-spec object.
12337
12338 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12339 PIXEL_SIZE part a wild card.
12340
12341 * dispextern.h (struct glyph_string): Define members clip and
12342 num_clips unconditionally.
12343 (struct face): Define members font_info and extra unconditionally.
12344
12345 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12346 ftfont_info only when HAVE_LIBOTF is defined.
12347
123482008-02-01 Andreas Schwab <schwab@suse.de>
12349
12350 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12351 and end.
12352
123532008-02-01 Jason Rumney <jasonr@gnu.org>
12354
12355 * w32font.c (w32font_driver): Add new fields.
12356
123572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12358
12359 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12360 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12361 (LIBES): Add @M17N_FLT_CFLAGS@.
12362
12363 * composite.c (compose_text): Don't treat the new style
12364 composition specially.
12365
12366 * emacs.c (main): Call syms_of_font unconditionally.
12367
12368 * font.h (FONT_ENTITY_NOT_LOADABLE)
12369 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12370 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12371 (struct font_driver): New member shape.
12372 (font_registry_charsets): Extern it.
12373 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12374 (font_otf_capability, font_drive_otf): Delete their externs.
12375
12376 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12377 (font_charset_alist, font_registry_charsets): Move from xfont.c
12378 and rename.
12379 (font_prop_validate_otf): New function.
12380 (font_property_table): Register it for QCotf.
12381 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12382 (font_drive_otf): Delete.
12383 (font_prepare_composition): New arg F. Adjust for the change of
12384 lispy gstring.
12385 (font_find_for_lface): New arg C.
12386 (font_load_for_face): Adjust for the change of font_find_for_lface.
12387 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12388 lispy gstring.
12389 (Ffont_shape_text): New function.
12390 (Fopen_font): If the font size is not given, use 12-pixel.
12391 (Ffont_at): New arg STRING.
12392 (syms_of_font): Initalize font_charset_alist.
12393 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12394 conditionally.
12395
12396 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12397 fonts of the same font-spec. Change the format of RFONT-DEF.
12398 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12399 Adjust for the change of RFONT-DEF.
12400 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12401
12402 * ftfont.h: New file.
12403
12404 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12405 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12406 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12407 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12408 font_otf_capability and font_drive_otf, set ftfont_shape.
12409 (ftfont_list): Adjust for the change of :otf property value.
12410 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12411 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12412 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12413 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12414 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12415 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12416
12417 * w32term.c (x_draw_composite_glyph_string_foreground):
12418 Adjust for the change of lispy gstring.
12419
12420 * xdisp.c (handle_composition_prop): Adjust for the change of
12421 lispy gstring. Call a function for auto-composition with the
12422 third arg it->window.
12423 (fill_composite_glyph_string): Adjust for the change of lispy string.
12424 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12425
12426 * xfaces.c (set_font_frame_param): Adjust for the change of
12427 font_find_for_lface.
12428
12429 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12430 (xfont_registry_charsets): Likewise. Change caller.
12431 (syms_of_xfont): Don't handle x_font_charset_alist.
12432
12433 * xftfont.c: Include "ftfont.h".
12434 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12435 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12436 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12437 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12438 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12439 Set xftfont_driver.shape to xftfont_shape.
12440
12441 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12442 the change of lispy gstring.
12443
124442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12445
12446 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12447
124482008-02-01 Jason Rumney <jasonr@gnu.org>
12449
12450 * w32font.c (w32font_draw): Fill background manually.
12451
124522008-02-01 Jason Rumney <jasonr@gnu.org>
12453
12454 * font.c (Qfontp): Remove unused symbol.
12455 (QCantialias): New symbol.
12456 (syms_of_font): Define it.
12457 (font_property_table): Set a validator for QCantialias.
12458
12459 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12460 Define if not already.
12461 (QCfamily): Share with xfaces.c.
12462 (Qstandard, Qsubpixel, Qnatural): New symbols.
12463 (syms_of_w32font): Define them. Don't define QCfamily here.
12464 (w32_antialias_type, lispy_antialias_type): New functions.
12465 (w32_enumfont_pattern_entity): New arg requested_font.
12466 Set antialias parameter if non-default was requested.
12467 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12468
124692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12470
12471 * lread.c (read1): Undo the previous change.
12472
124732008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12474
12475 * frame.c (Fdelete_frame): Call font_update_drivers only when
12476 USE_FONT_BACKEND is defined.
12477
124782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12479
12480 * font.h (struct font_bitmap): New member bits_per_pixel.
12481 (struct font_driver): New members start_for_frame and end_for_frame.
12482 (struct font_data_list): New struct.
12483 (font_put_frame_data, font_get_frame_data): Extern them.
12484
12485 * frame.h (struct frame): New member font_data_list.
12486
12487 * font.c (font_update_drivers): Call driver->start_for_frame and
12488 driver->end_for_frame at proper timings.
12489 (font_put_frame_data, font_get_frame_data): New functions.
12490 (Ffont_spec): Add usage in the docstring.
12491
12492 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12493 (Fdelete_frame): Call font_update_drivers.
12494
12495 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12496 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12497 (xftfont_get_xft_draw): New function.
12498 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12499 (xftfont_end_for_frame): New function.
12500 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12501
12502 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12503 Change argument. Cache GCs in the per-frame data.
12504 (struct ftxfont_frame_data): New struct.
12505 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12506 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12507 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12508 (ftxfont_end_for_frame): New function.
12509 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12510
12511 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12512
125132008-02-01 Kenichi Handa <handa@m17n.org>
12514
12515 * xselect.c (Vselection_coding_system)
12516 (Vnext_selection_coding_system): Delete them.
12517 (syms_of_xselect): Don't declare selection-coding-system and
12518 next-selection-coding-system. They are declared in select.el.
12519
125202008-02-01 Jason Rumney <jasonr@gnu.org>
12521
12522 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12523
12524 * w32fns.c: Include imm.h.
12525 (get_composition_string_fn, get_ime_context_fn): New optional
12526 system functions.
12527 (globals_of_w32fns): Load them from imm32.dll.
12528 (ignore_ime_char): New flag.
12529 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12530 WM_IME_ENDCOMPOSITION messages.
12531
12532 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12533 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12534
125352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12536
12537 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12538 (READCHAR_REPORT_MULTIBYTE): New macro.
12539 (readchar): New 2nd arg MULTIBYTE.
12540 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12541 Make symbol's name multibyte according to the multibyteness of the
12542 source.
12543
125442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12545
12546 * xfaces.c (face_for_overlay_string): Call lookup_face with
12547 correct arguments (fix of synching with the trunk).
12548
125492008-02-01 Kenichi Handa <handa@m17n.org>
12550
12551 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12552 (font_prop_validate_non_neg, font_prop_validate_spacing):
12553 Delete argument prop_index.
12554 (font_property_table): Change arguments to validater. Change Callers.
12555 (font_lispy_object): Delete.
12556 (font_at): Use font_find_object instead fo font_lispy_object.
12557
125582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12559
12560 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12561 and file names.
12562
125632008-02-01 Jason Rumney <jasonr@gnu.org>
12564
12565 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12566 (font_matches_spec): Remove debug output.
12567 (add_font_entity_to_list): Avoid using substituted fonts.
12568
125692008-02-01 Jason Rumney <jasonr@gnu.org>
12570
12571 * doc.c (Fsnarf_documentation):
12572 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12573
125742008-02-01 Miles Bader <miles@gnu.org>
12575
12576 * dispextern.h (struct glyph_row): Only define "clip" field if
12577 HAVE_WINDOW_SYSTEM is defined.
12578
125792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12580
12581 Fix up multi-tty merge.
12582
12583 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12584 and indentation.
12585
12586 * xfaces.c (free_realized_face, clear_face_gcs):
12587 Include font_done_for_face in the input_blocked section, just in case.
12588
12589 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12590 (get_char_face_and_encoding): Undo last change and remove the *other*
12591 duplicate definition (i.e. keep the one that's better scoped and that
12592 includes code for the font-backend).
12593
12594 * terminal.c (create_terminal): Default keyboard_coding to
12595 `no-conversion' and terminal_coding to `undecided'.
12596
12597 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12598
12599 * fontset.c (free_realized_fontsets): Check that the table entry does
12600 contain a fontset before trying to compare it to `base'.
12601
12602 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12603 syms_of_charset, and syms_of_coding earlier because init_window_once
12604 now needs Vcoding_system_hash_table to be setup.
12605
12606 * coding.h (default_buffer_file_coding): Remove.
12607
12608 * coding.c (default_buffer_file_coding): Remove.
12609 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12610 than ->symbol, and use the terminal-local coding system.
12611 (syms_of_coding): Don't setup the coding-systems that are not
12612 terminal-local.
12613 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12614
12615 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12616 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12617
12618 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12619 in chartab.c and were re-added here by mistake.
12620 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12621
12622 * doc.c (Fsnarf_documentation):
12623 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12624 src to etc.
12625
12626 * ChangeLog.10: Add mistakenly removed entry.
12627
126282008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12629
12630 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12631
126322008-02-01 Miles Bader <miles@gnu.org>
12633
12634 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12635 Add extra args to FACE_FOR_CHAR.
12636
126372008-02-01 Kenichi Handa <handa@m17n.org>
12638
12639 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12640 in sequence.
12641
12642 * chartab.c (map_sub_char_table, map_char_table): If the range
12643 contains just one character, call the function with that character
12644 even if the depth is not 3.
12645
126462008-02-01 Jason Rumney <jasonr@gnu.org>
12647
12648 * w32font.c (w32font_text_extents): Calculate metrics for the
12649 whole string.
12650
126512008-02-01 Jason Rumney <jasonr@gnu.org>
12652
12653 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12654
126552008-02-01 Jason Rumney <jasonr@gnu.org>
12656
12657 * w32term.c (x_set_glyph_string_clipping): Use
12658 get_glyph_string_clip_rects.
12659 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12660 Adjust for the change of struct glyph_string.
12661
12662 * w32font.c (w32font_draw): Do clipping here.
12663
126642008-02-01 Kenichi Handa <handa@m17n.org>
12665
12666 * xftfont.c (xftfont_draw): Adjust for the change of struct
12667 glyph_string.
12668
12669 * xterm.c (x_set_glyph_string_clipping): Use
12670 get_glyph_string_clip_rects.
12671 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12672 Adjust for the change of struct glyph_string.
12673
12674 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12675 the resulting clip(s}.
12676 (expose_overlaps): Add arg r. Change callers. Set it to
12677 row->clip temporarily.
12678 (expose_window): Redraw rows overlapping the exposed area.
12679
12680 * dispextern.h (struct glyph_row): New member clip.
12681 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12682 clip_height, new member clip, and num_clips.
12683
126842008-02-01 Kenichi Handa <handa@m17n.org>
12685
12686 * data.c (Fchar_or_string_p): Fix docstring.
12687
126882008-02-01 Kenichi Handa <handa@m17n.org>
12689
12690 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12691 create a temporary XftDraw object.
12692
126932008-02-01 Kenichi Handa <handa@m17n.org>
12694
12695 * font.c (Ffontp): Fix docstring.
12696
12697 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12698 strong evidence of ISO-2022.
12699
127002008-02-01 Kenichi Handa <handa@m17n.org>
12701
12702 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12703 SYNTAX_ENTRY_FOLLOW_PARENT.
12704
127052008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12706
12707 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12708 its type.
12709 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12710 Update to the new type of weak_hash_tables and next_weak.
12711
12712 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12713 a plain C pointer to Lisp_Hash_Table.
12714
12715 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12716 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12717 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12718 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12719 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12720 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12721 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12722 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12723 (GC_EQ): Remove since they've been identical to their non-GC_
12724 alter-egos ever since the markbit was eradicated.
12725
12726 * alloc.c:
12727 * buffer.c:
12728 * buffer.h:
12729 * data.c:
12730 * fileio.c:
12731 * filelock.c:
12732 * fns.c:
12733 * frame.h:
12734 * lisp.h:
12735 * macterm.c:
12736 * print.c:
12737 * process.c:
12738 * w32fns.c:
12739 * w32menu.c:
12740 * w32term.c:
12741 * xfns.c:
12742 * xmenu.c:
12743 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12744
127452008-02-01 Kenichi Handa <handa@m17n.org>
12746
12747 * chartab.c (map_sub_char_table): Make it work for the top-level
12748 char-table. Fix handling of parent char-table.
12749 (map_char_table): Adjust for the above change.
12750
127512008-02-01 Jason Rumney <jasonr@gnu.org>
12752
12753 * w32font.c (Qgdi): Rename from Qw32.
12754
127552008-02-01 Jason Rumney <jasonr@gnu.org>
12756
12757 * w32bdf.c (get_quoted_string): Make function static.
12758
127592008-02-01 Kenichi Handa <handa@m17n.org>
12760
12761 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12762 bigger ascent and descent than those of the font, use them as
12763 font's ascent and descent.
12764
127652008-02-01 Kenichi Handa <handa@m17n.org>
12766
12767 * Makefile.in (${lispsource}international/charprop.el): Move this
12768 target within "#ifdef HAVE_UNIDATA" and "#endif".
12769
127702008-02-01 Kenichi Handa <handa@m17n.org>
12771
12772 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12773 (shortlisp): Add ../lisp/language/tai-viet.el.
12774
127752008-02-01 Ulrich Mueller <ulm@gentoo.org>
12776
12777 * Makefile.in (${lispsource}international/charprop.el): Depend on
12778 temacs${EXEEXT}.
12779
127802008-02-01 Jason Rumney <jasonr@gnu.org>
12781
12782 * w32font.c (w32font_close): Delete the GDI font object.
12783
12784 * w32menu.c: Include character.h.
12785
12786 * w32proc.c: Likewise.
12787
12788 * w32select.c: Likewise.
12789
12790 * makefile.w32-in (w32proc.o): Depend on character.h.
12791
127922008-02-01 Jason Rumney <jasonr@gnu.org>
12793
12794 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12795
12796 * w32menu.c (syms_of_w32menu): Likewise.
12797
12798 * w32proc.c (syms_of_ntproc): Likewise.
12799
12800 * w32select.c (syms_of_w32select): Likewise.
12801
12802 * w32term.c (syms_of_w32term): Likewise.
12803
128042008-02-01 Jason Rumney <jasonr@gnu.org>
12805
12806 * w32font.c (w32font_draw): Delete brush after using it.
12807
128082008-02-01 Jason Rumney <jasonr@gnu.org>
12809
12810 * w32font.c (w32font_open): Don't set font_idx.
12811 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12812 to font settings.
12813 (w32font_draw): Fill background explicitly.
12814
128152008-02-01 Jason Rumney <jasonr@gnu.org>
12816
12817 * w32term.c (w32_initialize): Don't call w32font_initialize.
12818
12819 * w32font.c (w32font_info): Remove subranges.
12820 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12821 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12822 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12823 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12824 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12825 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12826 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12827 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12828 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12829 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12830 New symbols.
12831 (font_callback_data): New struct.
12832 (w32font_list, w32font_match): Use it.
12833 (w32font_open): Don't populate subranges.
12834 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12835 (w32font_encode_char): Always return unicode code-point as-is.
12836 (w32font_text_extents): Supply a transformation matrix to
12837 GetGlyphOutline. Never look up by glyph index. Avoid looping
12838 twice. Use unicode version of GetTexExtentPoint32 instead of
12839 glyph index version.
12840 (set_fonts_frame): Remove.
12841 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12842 set frame parameter. Use backward compatible fake foundries.
12843 Save generic family in extra slot under QCfamily. Make width slot
12844 constant. Save QCspacing value. Save list of scripts instead of
12845 binary subranges.
12846 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12847 (add_font_entity_to_list): Use font_callback_data struct. Filter
12848 unwanted fonts.
12849 (add_one_font_entity_to_list): Use font_callback_data struct.
12850 (w32_registry): Default to iso10646_1.
12851 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12852 string font registries. Don't fill in font name if it is a generic
12853 family name, fill family instead. Use spacing, family and script
12854 extra info to fill pitch, family and charset fields.
12855 (list_all_matching_fonts): Use font_callback_data struct.
12856 (unicode_range_for_char): Remove.
12857 (font_supported_scripts): New function.
12858 (w32font_initialize): Remove.
12859 (syms_of_w32font): Update which symbols are defined.
12860
128612008-02-01 Jason Rumney <jasonr@gnu.org>
12862
12863 * font.c (font_pixel_size): Reverse assq_no_quit args.
12864
12865 * w32term.h (FONT_WIDTH): Report max width, not average.
12866 (FONT_MAX_WIDTH): Remove.
12867 (FONT_AVG_WIDTH): New macro.
12868
12869 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12870 redefinition of FONT_WIDTH.
12871
12872 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12873 (w32_cache_char_metrics): Use FONT_WIDTH.
12874
12875 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12876
128772008-02-01 Jason Rumney <jasonr@gnu.org>
12878
12879 * w32font.c (w32font_open): Make lfHeight negative.
12880
12881 * w32fns.c (x_default_font_parameter): Use new style font name.
12882 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12883
128842008-02-01 Jason Rumney <jasonr@gnu.org>
12885
12886 * w32font.c (QCsubranges): New symbol.
12887 (w32font_open, w32font_has_char): Get subranges from subproperty
12888 of extra.
12889 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12890 (syms_of_w32font): Define :subranges symbol.
12891
12892 * font.c (font_put_extra): Expose externally.
12893
12894 * font.h (font_put_extra): Move declaration from font.c.
12895
12896 * font.c (Ffont_get): Use font driver to determine otf capability.
12897 (adjust_anchor): Check if driver defines anchor_point before using.
12898
12899 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12900 (w32font_draw): Use options.
12901 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12902 Fix detection of truetype fonts.
12903 (registry_to_w32_charset): Handle charsets other than iso8859-1
12904 expressed as lisp symbols.
12905 (w32_registry): Express charset as lisp symbol.
12906 (fill_in_logfont): Reverse pixel and point height logic.
12907 Don't set width here. Set quality to default.
12908
12909 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12910 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12911
12912 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12913 Remove redundant loop and allocation.
12914
12915 * makefile.w32-in (font.o, w32font.o): New objects.
12916 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12917 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12918
12919 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12920 STORE_XCHARB a valid l-value.
12921
12922 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12923 calculations for non-Truetype fonts.
12924 (x_draw_glyph_string): Sync with xterm.c.
12925 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12926 Remove redundant code.
12927 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12928
12929 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12930 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12931
12932 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12933 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12934
12935 * w32font.c: New file for w32 font backend.
12936
129372008-02-01 Kenichi Handa <handa@m17n.org>
12938
12939 * term.c: Don't include "buffer.h" twice.
12940
129412008-02-01 Kenichi Handa <handa@m17n.org>
12942
12943 * character.c (Funibyte_string): New function.
12944 (syms_of_character): Defsubr it.
12945
129462008-02-01 Jason Rumney <jasonr@gnu.org>
12947
12948 * w32term.c [USE_FONT_BACKEND]:
12949 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12950 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12951 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12952 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12953 (x_free_frame_resources): Sync with xterm.c.
12954
129552008-02-01 Andreas Schwab <schwab@suse.de>
12956
12957 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12958 char-table size.
12959
129602008-02-01 Kenichi Handa <handa@m17n.org>
12961
12962 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12963
129642008-02-01 Kenichi Handa <handa@m17n.org>
12965
12966 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12967 font_otf_gpos, add font_drive_otf.
12968
12969 * fontset.c (fontset_find_font): Pay attention to font size
12970 specified for a font.
12971 (reorder_font_vector): Check contents of font_def.
12972
12973 * font.c (struct otf_list): Delete it.
12974 (otf_list): Make it a lisp variable.
12975 (otf_open): Use lispy otf_list.
12976 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12977 (check_otf_features): New function.
12978 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12979 New functions.
12980 (font_drive_otf): New function merging font_otf_gsub and
12981 font_otf_gpos.
12982 (font_open_for_lface): New arg spec. Change argument order.
12983 (font_load_for_face): Adjust for the change of font_open_for_lface.
12984 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12985 Ffont_otf_gpos.
12986 (syms_of_font): Staticpro otf_list. Delete defsubr of
12987 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12988
12989 * xfaces.c (set_font_frame_param): Adjust for the change of
12990 font_open_for_lface.
12991
12992 * font.h (font_open_for_lface): Adjust prototype.
12993 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12994 member otf_drive.
12995 (font_otf_gsub, font_otf_gpos): Delete externs.
12996 (font_drive_otf): Extern it.
12997
129982008-02-01 Kenichi Handa <handa@m17n.org>
12999
13000 * font.c (font_at): If the window W is not on a window system,
13001 return Qnil.
13002
13003 * coding.c (produce_chars, encode_coding): Don't call
13004 insert_from_gap if no characters to produce.
13005
130062008-02-01 Kenichi Handa <handa@m17n.org>
13007
13008 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13009 Fclear_face_cache.
13010
13011 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13012
130132008-02-01 Miles Bader <miles@gnu.org>
13014
13015 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13016 Parse "--disable-font-backend" option.
13017 (standard_args): Add "--disable-font-backend" option.
13018
130192008-02-01 Kenichi Handa <handa@m17n.org>
13020
13021 * fontset.c (fontset_find_font): New function.
13022 (fontset_font): Use fontset_find_font.
13023 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13024 Register the specified font for all Latin characters.
13025 (new_fontset_from_font): Register the specified font for all Latin
13026 characters.
13027 (dump_fontset): For a realized fontset, include the base fontset
13028 name in the returned vector.
13029
130302008-02-01 Kenichi Handa <handa@m17n.org>
13031
13032 * character.h (CHAR_STRING): Cast C to unsigned on calling
13033 char_string.
13034
13035 * character.c (char_string): Type of arg C changed to unsigned.
13036 Signal an error if C is an invalid character code.
13037
13038 * editfns.c (general_insert_function, Fchar_to_string):
13039 Use CHARACTERP, not INTEGERP.
13040
130412008-02-01 Kenichi Handa <handa@m17n.org>
13042
13043 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13044 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13045
13046 * regex.c (analyse_first): Fix for multibyte characters in "case
13047 charset:" and "case categoryspec:".
13048
130492008-02-01 Andreas Schwab <schwab@suse.de>
13050
13051 * Makefile.in (LIBES): Move standard libraries to the end.
13052
130532008-02-01 Kenichi Handa <handa@m17n.org>
13054
13055 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13056 nonzero, don't shrink the buffer nextb.
13057
13058 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13059
13060 * coding.c (coding_alloc_by_making_gap): New arg offset.
13061 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13062 offset.
13063 (decode_coding_iso_2022): Update coding->safe_charsets.
13064 (decode_coding_gap): Temporarily set
13065 current_buffer->text->inhibit_shrinking to 1.
13066
130672008-02-01 Kenichi Handa <handa@m17n.org>
13068
13069 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13070 indexing into elements of s->cmp and s->char2b.
13071
130722008-02-01 Juanma Barranquero <lekktu@gmail.com>
13073
13074 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13075
130762008-02-01 Kenichi Handa <handa@m17n.org>
13077
13078 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13079 target_multibyte instead of multibyte.
13080 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13081 (bcmp_translate): Change the argument name from multibyte to
13082 target_multibyte.
13083
130842008-02-01 Kenichi Handa <handa@m17n.org>
13085
13086 These changes are to compile a regexp into a pattern that can be
13087 used both for multibyte and unibyte targets.
13088
13089 * Makefile.in (search.o): Depend on charset.h.
13090
13091 * character.c (multibyte_char_to_unibyte_safe): New function.
13092
13093 * search.c: Include "charset.h".
13094 (compile_pattern_1): Delete argument multibyte. Don't set
13095 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13096 (compile_pattern): Don't compare cp->buf.target_multibyte.
13097 Compare cp->buf.charset_unibyte.
13098 (compile_pattern): Set cp->buf.target_multibyte.
13099
13100 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13101
13102 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13103
13104 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13105 multibyte. Change callers.
13106 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13107 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13108 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13109 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13110 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13111 (regex_compile): Make the compiled pattern usable both for
13112 multibyte and unibyte targets.
13113 (analyse_first): Make the fastmap usable both for multibyte and
13114 unibyte targets.
13115 (TRANSLATE_VIA_MULTIBYTE): Delete.
13116 (re_match_2_internal): Pay attention to the case that the
13117 multibyteness of bufp and target may be different.
13118
131192008-02-01 Kenichi Handa <handa@m17n.org>
13120
13121 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13122 empty box occupy at least one column width.
13123
131242008-02-01 Miles Bader <miles@gnu.org>
13125
13126 * Makefile.in: Remove redundant HAVE_XFT clause.
13127
131282008-02-01 Kenichi Handa <handa@m17n.org>
13129
13130 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13131
131322008-02-01 Kenichi Handa <handa@m17n.org>
13133
13134 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13135 being nil.
13136
131372008-02-01 Kenichi Handa <handa@m17n.org>
13138
13139 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13140
131412008-02-01 Kenichi Handa <handa@m17n.org>
13142
13143 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13144
131452008-02-01 Kenichi Handa <handa@m17n.org>
13146
13147 * search.c (simple_search): Fix previous change.
13148
131492008-02-01 Kenichi Handa <handa@m17n.org>
13150
13151 * xftfont.c (ftfont_font_format): Extern declaration.
13152
13153 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13154
13155 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13156 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13157
13158 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13159 (ftfont_font_format): Fix previous change.
13160
13161 * font.h (Ffont_xlfd_name): EXFUN it.
13162
13163 * font.c (font_parse_xlfd): Fix the array size of `f'.
13164 (register_font_driver): Use EQ to compare driver->type.
13165
13166 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13167 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13168 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13169
131702008-02-01 Kenichi Handa <handa@m17n.org>
13171
13172 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13173 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13174
131752008-02-01 Kenichi Handa <handa@m17n.org>
13176
13177 * xfont.c (xfont_open): Set font->format.
13178
13179 * xftfont.c (xftfont_open): Set font->format.
13180
13181 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13182 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13183 (ftfont_open): Set font->format.
13184 (ftfont_font_format): New function.
13185
13186 * font.h (struct font): New member format.
13187
13188 * font.c (Qopentype): New variable.
13189 (syms_of_font): Defsym it.
13190 (Fquery_font): Change the format of the last element of the return
13191 value.
13192
131932008-02-01 Kenichi Handa <handa@m17n.org>
13194
13195 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13196 last resort.
13197
131982008-02-01 Kenichi Handa <handa@m17n.org>
13199
13200 * coding.c (detect_coding_charset): Fix detection of multi-byte
13201 charset.
13202
132032008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13204
13205 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13206
132072008-02-01 Kenichi Handa <handa@m17n.org>
13208
13209 * xdisp.c (get_next_display_element): Set it->face_id for the
13210 first component of a composition.
13211 (x_produce_glyphs): Check if the font is changed or not for composition.
13212
132132008-02-01 Kenichi Handa <handa@m17n.org>
13214
13215 * fontset.c (Qlatin): New variable.
13216 (syms_of_fontset): Define it as a lisp symbol.
13217 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13218
132192008-02-01 Kenichi Handa <handa@m17n.org>
13220
13221 * font.c (font_unparse_fcname): Pay attention to the case that
13222 some of font property is a null string.
13223
132242008-02-01 Kenichi Handa <handa@m17n.org>
13225
13226 * term.c: Include "composite.h".
13227 (encode_terminal_code): Output all components of composition.
13228 Check the size of encode_terminal_src.
13229 (produce_glyphs): For composition, call produce_composite_glyph.
13230 (append_composite_glyph, produce_composite_glyph): New functions.
13231
13232 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13233 is not found, get font_info from the current ascii face.
13234
132352008-02-01 Kenichi Handa <handa@m17n.org>
13236
13237 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13238 buffer-file-name to Qnil before calling insert_from_buffer.
13239
13240 * font.c (font_unparse_fcname): Pay attention to the case that
13241 foundry is a null string.
13242
132432008-02-01 Kenichi Handa <handa@m17n.org>
13244
13245 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13246
13247 * font.c (Qunicode_sip): New variable.
13248 (syms_of_font): Declare it as a Lisp symbol.
13249
13250 * font.h (Qunicode_sip): Extern it.
13251
132522008-02-01 Kenichi Handa <handa@m17n.org>
13253
13254 * composite.c (get_composition_id): Pay attention to TAB component.
13255
13256 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13257 TAB. Adjust for the change of s->char2b which always points to
13258 the first element of allocated memory.
13259
13260 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13261
13262 * xdisp.c (handle_composition_prop): Set it->c to the first
13263 non-TAB component.
13264 (fill_composite_glyph_string): Change argument.
13265 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13266 (x_produce_glyphs): Fix handling of left/right padding.
13267
132682008-02-01 Kenichi Handa <handa@m17n.org>
13269
13270 * coding.c (detect_coding_system): Fix for handling off
13271 inhibit_iso_escape_detection. Fix for the case that no coding
13272 system is defined for a specific coding category.
13273
132742008-02-01 Kenichi Handa <handa@m17n.org>
13275
13276 * font.c (font_matching_entity): Delete unused local var.
13277
13278 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13279 opening a font.
13280
13281 * fileio.c (Finsert_file_contents): On recovering a file, assume
13282 Unix-like eol.
13283 (choose_write_coding_system): On auto-saving a file, force
13284 Unix-like eol.
13285
13286 * coding.c (setup_coding_system): Fix setting of
13287 coding->common_flags based on eol_type.
13288 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13289 inherit from it.
13290
132912008-02-01 Kenichi Handa <handa@m17n.org>
13292
13293 * alloc.c (NSTATICS): Increas to 0x600.
13294
132952008-02-01 Kenichi Handa <handa@m17n.org>
13296
13297 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13298 (ftfont_list): Don't check :name property.
13299 (ftfont_match): New function.
13300 (ftfont_pattern_entity): If the pattern doesn't contain
13301 FC_SPACING, don't assume FC_MONO.
13302
13303 * font.h (struct font_driver): New member `match'.
13304 (font_update_drivers): Adjust prototype.
13305
13306 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13307 property of FONT.
13308 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13309 them unconditionally.
13310 (font_matching_entity): New function.
13311 (font_open_by_name): Try font_matching_entity if exact match is
13312 not found.
13313 (font_update_drivers): Delete the arg FONT. Return a list of
13314 actually used backends. Don't free faces, font caches here.
13315 Don't store data in frame parameters. Don't call x_set_font.
13316 (Ffont_spec): Store :name property as is.
13317 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13318 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13319 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13320 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13321 Call font->driver->otf_gsub instead of font_otf_gsub.
13322
13323 * frame.c (x_set_font_backend): Do more works that were done in
13324 font_update_drivers before.
13325
13326 * xfont.c (xfont_match): New function.
13327 (xfont_driver): Set xfont_driver.match to xfont_match.
13328 (xfont_draw): Set font in GC if necessary.
13329
13330 * ftxfont.c (ftxfont_match): New function.
13331 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13332
13333 * xftfont.c (xftfont_match): New function.
13334 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13335
133362008-02-01 Kenichi Handa <handa@m17n.org>
13337
13338 * font.h (struct font): New member scalable.
13339 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13340 (font_otf_gsub): Adjust prototype.
13341
13342 * font.c (font_otf_capability): Fix handling of the default langsys.
13343 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13344 Check the contents of SPEC.
13345 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13346 (check_gstring): New function.
13347 (REPLACEMENT_CHARACTER): New macro.
13348 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13349 glyph codes of GSTRING.
13350 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13351 (font_prepare_composition): Set cmp->glyph_len.
13352 (font_open_entity): Set font->scalable.
13353 (Ffont_get): Handle :otf property.
13354 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13355 functions.
13356 (Fquery_font): Use font->font.full_name.
13357 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13358 Sfont_otf_alternates.
13359
13360 * ftfont.c (ftfont_open): Set font->font.full_name and
13361 font->font.name properly. Fix calculation of font->font.height
13362 and font->min_width.
13363
13364 * ftxfont.c (ftxfont_create_gcs): New function.
13365 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13366 (ftxfont_draw_backgrond): Fix filling region.
13367 (ftxfont_default_fid): New function.
13368 (ftxfont_open): Set xfont->fid to the return value of
13369 ftxfont_default_fid.
13370 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13371 (ftxfont_done_face): Free only GCs that are created by
13372 ftxfont_create_gcs.
13373 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13374
13375 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13376 Clip to src->width, etc (not src->clip_XXX).
13377
13378 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13379 FontBackend frame parameter.
13380
133812008-02-01 Kenichi Handa <handa@m17n.org>
13382
13383 * font.h (struct font_driver_list): New member `on'.
13384 (Fclear_font_cache): EXFUN it.
13385 (font_update_drivers): Extern it.
13386
13387 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13388 (font_list_entities): Check driver_list->on.
13389 (register_font_driver): Initalize `on' member to 0.
13390 (font_update_drivers): New function.
13391 (Fclear_font_cache): Check driver_list->on.
13392
13393 * frame.h (Qfont_backend): Extern it.
13394 (x_set_font_backend): Extern it.
13395
13396 * frame.c (Qfont_backend): New variable.
13397 (frame_parms): New element for font-backend.
13398 (x_set_font_backend): New function.
13399
13400 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13401 FontBackend frame parameter.
13402 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13403 x_set_font_backend.
13404
13405 * xfont.c (xfont_list): Don't try listing by :name property if the
13406 name is not for XLFD.
13407
134082008-02-01 Kenichi Handa <handa@m17n.org>
13409
13410 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13411 (LGLYPH_SET_TO): New macros.
13412 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13413 element of G is vector or not.
13414 (font_at): Extern it.
13415
13416 * font.c: Include window.h.
13417 (font_lispy_object): New function.
13418 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13419 end of valid glyph.
13420 (font_close_object): Fix getting (struct font *).
13421 (font_at): New function.
13422 (Ffont_get): If FONT is a font-object, get entity from it.
13423 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13424 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13425 range check.
13426 (Ffont_at): New function.
13427 (syms_of_font): Defsubr Sfont_at.
13428
13429 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13430 before the entry for Qcomposition.
13431 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13432 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13433 the font in gstring.
13434 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13435 LGLYPH_FORM (g) to detect the end of valid glyph.
13436 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13437 we are composing with gstring.
13438
13439 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13440 Check if adjustment is vector or not.
13441
13442 * Makefile.in (font.o): Make it depends on window.h.
13443
134442008-02-01 Kenichi Handa <handa@m17n.org>
13445
13446 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13447 adjustment is vector or not.
13448
134492008-02-01 Miles Bader <miles@gnu.org>
13450
13451 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13452
134532008-02-01 Kenichi Handa <handa@m17n.org>
13454
13455 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13456 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13457 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13458
13459 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13460 (DEVICE_DELTA): Fix typo.
13461 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13462 LGLYPH format.
13463
13464 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13465 the change of LGLYPH format.
13466
134672008-02-01 Kenichi Handa <handa@m17n.org>
13468
13469 * ftfont.c (ftfont_list): Fix typo.
13470 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13471
134722008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13473
13474 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13475
13476 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13477 xftface_info is non-NULL.
13478
134792008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13480
13481 * ftfont.c (ftfont_list): Move misplaced #endif.
13482
134832008-02-01 Kenichi Handa <handa@m17n.org>
13484
13485 * ftfont.c (ftfont_list): Pay attention to the case that
13486 FC_CAPABILITY is not defined.
13487
134882008-02-01 Kenichi Handa <handa@m17n.org>
13489
13490 * xftfont.c (xftfont_open): Set charset related members to -1.
13491
13492 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13493 QCname.
13494 (ftfont_open): Set charset related members to -1.
13495
13496 * fontset.c (Votf_script_alist): New variable.
13497 (syms_of_fontset): Initialize it.
13498 (fontset_font): Delete unused variable.
13499
13500 * fontset.h (Votf_script_alist): Extern it.
13501
13502 * font.c (font_find_for_lface): Optimize code.
13503
13504 * font.h (font_close_object, font_merge_old_spec): Extern them.
13505
135062008-02-01 Kenichi Handa <handa@m17n.org>
13507
13508 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13509 (syms_of_font): Initialize them.
13510 (font_pixel_size): Allow float value in dpi.
13511 (font_prop_validate_type): Delete.
13512 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13513 Change caller.
13514 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13515 (font_prop_validate_extra): Delete.
13516 (font_prop_validate_spacing): New function.
13517 (font_property_table): Add elements for all known properties.
13518 (get_font_prop_index): Rename from check_font_prop_name. New
13519 argument FROM. Change caller.
13520 (font_prop_validate): Validate all known properties.
13521 (font_put_extra): Delete argument force. Change caller.
13522 (font_expand_wildcards): Make it static. Fix the way of shrinking
13523 the possible range.
13524 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13525 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13526 Change caller.
13527 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13528 (font_parse_fcname): Delete argument merge. Fix parsing of point
13529 size. Don't validate properties values here. Change caller.
13530 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13531 (font_open_by_name): Delete unused variable.
13532 (Ffont_spec): Likewise. Validate property values.
13533 (Ffont_match_p): New function.
13534
13535 * font.h (QCscalable): Extern it.
13536 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13537
13538 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13539
13540 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13541 (xfont_list_pattern): New function.
13542 (xfont_list): Use xfont_list_pattern.
13543
135442008-02-01 Kenichi Handa <handa@m17n.org>
13545
13546 * font.h (Flist_fonts): EXFUN it.
13547
135482008-02-01 Jason Rumney <jasonr@gnu.org>
13549
13550 * w32term.c (w32_initialize): Add back smoothing_type and
13551 smoothing_enabled definitions.
13552
135532008-02-01 Kenichi Handa <handa@m17n.org>
13554
13555 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13556 s->face->font on determining underline position.
13557
135582008-02-01 Kenichi Handa <handa@m17n.org>
13559
13560 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13561 (font_has_char): Accept font-object too.
13562 (font_find_for_lface): Try at first with a size specified in face.
13563
135642008-02-01 Kenichi Handa <handa@m17n.org>
13565
13566 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13567 font_open_by_name.
13568
135692008-02-01 Kenichi Handa <handa@m17n.org>
13570
13571 * font.h (QCspacing, QCdpi): Extern them.
13572 (enum font_spacing): New enum.
13573 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13574
13575 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13576 (QCspacing, QCdpi): New variables.
13577 (syms_of_font): Initialize them.
13578 (font_pixel_size): New function.
13579 (font_put_extra): New function.
13580 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13581 in FONT_EXTRA.
13582 (font_parse_fcname): Handle enumerated values (e.g. bold).
13583 Fix handling font size. Add QCname property that contains only
13584 unknown properties.
13585 (font_score): Change argument. Change caller. Pay attention to
13586 FONT_PIXEL_SIZE_QUANTUM.
13587 (font_sort_entites, font_list_entities, font_find_for_lface)
13588 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13589 (Ffont_spec): Add QCname property that contains only unknown properties.
13590
13591 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13592 include weight in listing pattern, instead check weight of each
13593 listed font. Don't include scalable in pattern. Pay attention to
13594 FONT_PIXEL_SIZE_QUANTUM.
13595
135962008-02-01 Kenichi Handa <handa@m17n.org>
13597
13598 * font.c (font_parse_fcname): Fix parsing of point-size.
13599 (font_unparse_fcname): Produce symbolic names for style properties.
13600 (font_list_entities): Handle float size correctly.
13601 (font_open_by_name): Prefer `normal' property values if the name
13602 doesn't specify them.
13603
13604 * fontset.c (Finternal_char_font): Use font_get_name, not
13605 Ffont_xlfd_name.
13606
13607 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13608 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13609 pattern. Don't force scalable.
13610
13611 * xftfont.c (xftfont_open): For generating a name, start from
13612 96-byte buffer.
13613
136142008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13615
13616 * frame.h (x_new_fontset2): Fix prototype.
13617
136182008-02-01 Kenichi Handa <handa@m17n.org>
13619
13620 * font.h (struct font_driver): Delete member parse_name.
13621 (font_match_p, font_get_spec, font_parse_fcname)
13622 (font_unparse_fcname): Extern them.
13623 (font_get_name): Adjust prototype.
13624
13625 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13626 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13627 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13628 unnecessary checks for weight, slant, and swidth.
13629 (font_parse_fcname): New function.
13630 (font_unparse_fcname): New function.
13631 (font_parse_name): New function.
13632 (font_match_p): New function.
13633 (font_get_name): Change return value to Lisp string.
13634 (font_get_spec): New function.
13635 (Qunspecified, Qignore_defface): Don't extern them.
13636 (font_find_for_lface): Assume that LFACE is fully specified.
13637 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13638 object, use it for FACE.
13639 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13640 driver->parse_name.
13641 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13642
13643 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13644 prototype.
13645
13646 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13647 argument F. Don't call Fnew_fontset. Instead, directly call
13648 make_fontset.
13649
13650 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13651
13652 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13653 of x_new_fontset2.
13654
13655 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13656 (Qsans__serif): New variables.
13657 (ftfont_generic_family_list): New variable.
13658 (syms_of_ftfont): Initialize the above variables.
13659 (ftfont_pattern_entity): Delete argument NAME.
13660 (ftfont_list_generic_family): New function.
13661 (ftfont_parse_name): Delete this function.
13662 (ftfont_list): Try generic family only when FcFontList found no font.
13663 (ftfont_list_family): Fix args to FcObjectSetBuild.
13664
13665 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13666 object in attrs[LFACE_FONT_INDEX].
13667 (set_lface_from_font_name): Cancel all changes for font-backend.
13668 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13669 function.
13670 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13671 font object in QCfont attribute.
13672 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13673 (realize_default_face) [USE_FONT_BACKEND]: Call
13674 set_lface_from_font_and_fontset.
13675
13676 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13677 "fixed", and signal error here if no suitable font was found.
13678
13679 * xfont.c (xfont_parse_name): Delete this function.
13680
13681 * xftfont.c (xftfont_open): Change coding style of error
13682 handling. Generate fontconfig's fontname pattern.
13683
13684 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13685 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13686
13687 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13688 Both args FONTSET and FONT_OBJECT must be existing ones.
13689
136902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13691
13692 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13693
136942008-02-01 Kenichi Handa <handa@m17n.org>
13695
13696 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13697
13698 * font.h (struct font): Fix typo.
13699
13700 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13701 XLFD_XXX_INDEX.
13702 (enum xlfd_field_mask): New enum.
13703 (intern_font_field): Changed argument. Change caller. If digits
13704 are followed by non-digits, return a symbol.
13705 (font_expand_wildcards): New function.
13706 (font_parse_xlfd): Fix wildcard handling.
13707 (Ffont_spec): If :name is specified, reflect the info in the other
13708 properties.
13709
13710 * ftfont.c (ftfont_pattern_entity): Fix typo.
13711 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13712 locale.
13713
137142008-02-01 Kenichi Handa <handa@m17n.org>
13715
13716 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13717
13718 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13719 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13720 registry doesn't specify encoding part.
13721 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13722 (font_open_by_name): At first try parsing the name.
13723 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13724 as Lisp symbols.
13725
13726 * fontset.c (reorder_font_vector): Pay attention to the case that
13727 the 3rd element of font_def is nil.
13728 (fontset_font): For the default fontset, append one more fontset
13729 elements for a script-based font specification. Don't add script
13730 attribute on finding a font.
13731 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13732 font name.
13733 (fontset_ascii_font): If a font can't be opened, return nil.
13734
13735 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13736 (ftfont_pattern_entity): New function.
13737 (ftfont_get_cache): Assume that freetype_font_cache is already
13738 initialized.
13739 (ftfont_list): Handle the case that a file is specified in font
13740 name. Use ftfont_pattern_entity to generate entities.
13741 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13742 (syms_of_ftfont): Initialize freetype_font_cache.
13743
13744 * xftfont.c (xftfont_open): Make the font name fontconfig's
13745 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13746 (xftfont_close): Free font->font.name if not NULL.
13747
13748 * xfont.c (xfont_list): If script is specified for a font, return
13749 null_vector.
13750 (xfont_list_family): Declare argument type.
13751
13752 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13753 name, set LFACE_FONT (lface) to nil.
13754
13755 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13756 return Qnil.
13757
137582008-02-01 Kenichi Handa <handa@m17n.org>
13759
13760 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13761 (standard_args): Add "-enable-font-backend".
13762
137632008-02-01 Kenichi Handa <handa@m17n.org>
13764
13765 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13766 (struct xftdraw_list, xftdraw_list): Delete them.
13767 (register_xftdraw, check_xftdraw): Delete them.
13768 (xftfont_prepare_face): Don't call register_xftdraw.
13769 (xftfont_done_face): Don't call check_xftdraw.
13770 (xftfont_draw): Get background color only when with_background is
13771 nonzero.
13772
13773 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13774
137752008-02-01 Kenichi Handa <handa@m17n.org>
13776
13777 These changes are for the new font handling codes.
13778
13779 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13780 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13781 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13782 (FONTSRC, FONTOBJ): New variables.
13783 (obj): Add $(FONTOBJ).
13784 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13785 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13786 @LIBOTF_LIBS@.
13787 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13788 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13789
13790 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13791
13792 * character.h (Vscript_representative_chars): Extern it.
13793
13794 * character.c (Vscript_representative_chars): New variable.
13795 (syms_of_character): Declare it as a Lisp variable.
13796
13797 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13798 enable_font_backend is nonzero, accept the composition method
13799 COMPOSITION_WITH_GLYPH_STRING.
13800
13801 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13802 enumeration COMPOSITION_WITH_GLYPH_STRING.
13803
13804 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13805 members clip_x, clip_y, clip_width, and clip_height.
13806 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13807
13808 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13809 --enable-font-backend. Call syms_of_font.
13810
13811 * fns.c (assoc_no_quit): New function.
13812
13813 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13814 (face_for_font, new_fontset_from_font)
13815 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13816
13817 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13818 (fontset_font, fontset_ascii, face_for_char)
13819 (make_fontset_for_ascii_face, Ffont_info)
13820 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13821 is nonzero, use font-backend mechanism.
13822 (find_font_encoding): Make it non-static.
13823 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13824 New functions.
13825
13826 * frame.h (struct frame): New members resx and resy.
13827 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13828 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13829
13830 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13831 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13832
13833 * lisp.h (assoc_no_quit): Extern it.
13834
13835 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13836 Through out the file, use FONT_INFO_FROM_FACE instead of
13837 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13838 rif->per_char_metric.
13839 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13840 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13841 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13842 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13843 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13844 nonzero, use font-backend mechanism.
13845 (get_per_char_metric): New function.
13846
13847 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13848 (set_lface_from_font_name)
13849 (set_font_frame_param, free_realized_face)
13850 (prepare_face_for_display, clear_face_gcs)
13851 (Finternal_set_font_selection_order, realize_x_face)
13852 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13853 font-backend mechanism.
13854 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13855 (load_face_font) [USE_FONT_BACKEND]: Abort.
13856 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13857 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13858
13859 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13860 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13861 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13862 nonzero, register all available font drivers. Call
13863 x_default_font_parameter for deciding a font.
13864 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13865
13866 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13867 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13868 (x_set_glyph_string_clipping_exactly)
13869 (x_compute_glyph_string_overhangs)
13870 (x_draw_glyph_string_foreground)
13871 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13872 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13873 enable_font_backend is nonzero, use font-backend mechanism.
13874 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13875
138762008-02-01 Kenichi Handa <handa@m17n.org>
13877
13878 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13879 system_eol_type.
13880 (syms_of_coding): Initialize system_eol_type.
13881
13882 * process.c (Fset_process_coding_system): Inherit system's eol
13883 format if necessary.
13884
138852008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13886
13887 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13888
138892008-02-01 Kenichi Handa <handa@m17n.org>
13890
13891 * coding.c (decode_eol): Pay attention to buffer relocation in
13892 del_range_2.
13893 (decode_coding): Call decode_eol before restoring undo_list.
13894
138952008-02-01 Kenichi Handa <handa@m17n.org>
13896
13897 * charset.c (Fdefine_charset_internal): Fix setting of
13898 emacs_mule_bytes.
13899
139002008-02-01 Kenichi Handa <handa@m17n.org>
13901
13902 * keyboard.c (read_char): Check if C is a character or not before
13903 looking up Vkeyboard_translate_table.
13904
139052008-02-01 Kenichi Handa <handa@m17n.org>
13906
13907 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13908 condition to terminate the loop.
13909
139102008-02-01 Kenichi Handa <handa@m17n.org>
13911
13912 * coding.c (produce_composition): Compare charbuf[i] instead of
13913 args[i] against 0.
13914 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13915
139162008-02-01 Kenichi Handa <handa@m17n.org>
13917
13918 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13919 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13920 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13921 detect_coding.
13922 (emacs_mule_char): Handle old style (Emacs 20) component character
13923 of a composition.
13924 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13925 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13926 composition rule.
13927 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13928
139292008-02-01 Kenichi Handa <handa@m17n.org>
13930
13931 * coding.c (encode_coding_ccl): Allocate destination dynamically
13932 when necessary.
13933
139342008-02-01 Kenichi Handa <handa@m17n.org>
13935
13936 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13937 the loop. When quitted, show a proper error message.
13938
139392008-02-01 Kenichi Handa <handa@m17n.org>
13940
13941 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13942 src->clip_head and src->clip_tail temporarily instead of src->hl.
13943
13944 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13945 character sequence.
13946 (Fccl_execute_on_string): Use ASET, not XSET.
13947
139482008-02-01 Kenichi Handa <handa@m17n.org>
13949
13950 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13951
139522008-02-01 Kenichi Handa <handa@m17n.org>
13953
13954 * coding.c (decode_coding): Fix the condition of terminating the
13955 decoding loop.
13956
139572008-02-01 Kenichi Handa <handa@m17n.org>
13958
13959 * data.c (Faset): On setting a character bigger than 255 in a
13960 unibyte string, signal an error instead of make the string multibyte.
13961
139622008-02-01 Kenichi Handa <handa@m17n.org>
13963
13964 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13965 made by a mapping table.
13966
139672008-02-01 Kenichi Handa <handa@m17n.org>
13968
13969 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13970 not.
13971 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13972 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13973
13974 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13975 s->face is NULL or not.
13976
139772008-02-01 Kenichi Handa <handa@m17n.org>
13978
13979 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13980 (x_draw_glyph_string): Fix drawing of right_overhang and
13981 left_overhang around/on cursor.
13982
13983 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13984
139852008-02-01 Kenichi Handa <handa@m17n.org>
13986
13987 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13988
139892008-02-01 Kenichi Handa <handa@m17n.org>
13990
13991 * coding.c (Fdefine_coding_system_internal)
13992 (Fdefine_coding_system_alias): Avoid a duplicated element in
13993 Vcoding_system_alist.
13994
139952008-02-01 Kenichi Handa <handa@m17n.org>
13996
13997 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13998
13999 * coding.c (Qcoding_system_define_form): New variable.
14000 (syms_of_coding): Intern and staticpro it.
14001 (Fcoding_system_p): Check Qcoding_system_define_form.
14002 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14003
14004 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14005 Fcoding_system_p.
14006 (CHECK_CODING_SYSTEM): If ID is not available, call
14007 Fcheck_coding_system.
14008 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14009 Try also Fcheck_coding_system.
14010
140112008-02-01 Kenichi Handa <handa@m17n.org>
14012
14013 * coding.c (code_conversion_restore): GCPRO arg.
14014
140152008-02-01 Kenichi Handa <handa@m17n.org>
14016
14017 * character.c (lisp_string_width): Check multibyteness of STRING.
14018
140192008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14020
14021 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14022 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14023 (decode_mac_font_name): Use decode_coding_c_string instead of
14024 decode_coding.
14025 (x_load_font): Initialize fontp->fontset to -1. Set
14026 fontp->encoding_type.
14027
140282008-02-01 Kenichi Handa <handa@m17n.org>
14029
14030 * search.c (search_buffer): Give up BM search on case-fold-search
14031 if one of a target character has a case-equivalence of different
14032 byte length even if that target charcter is an ASCII.
14033 (simple_search): Fix calculation of byte length of matched text.
14034 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14035
140362008-02-01 Kenichi Handa <handa@m17n.org>
14037
14038 * coding.c (decode_coding): Fix handling of invalid bytes.
14039
140402008-02-01 Kenichi Handa <handa@m17n.org>
14041
14042 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14043 Unicode characters.
14044
140452008-02-01 Kenichi Handa <handa@m17n.org>
14046
14047 * coding.c (encode_coding_object): If a pre-write-conversion
14048 function makes a new buffer, kill it.
14049
140502008-02-01 Kenichi Handa <handa@m17n.org>
14051
14052 * coding.c (QCascii_compatible_p): New variable.
14053 (syms_of_coding): Initialize it.
14054 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14055 calling string_char.
14056 (record_conversion_result): Add `default:' case.
14057 (coding_charset_list): Delete unused variable `coding_type'.
14058 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14059 property in the plist of the coding system.
14060 (Fcoding_system_put): Check QCascii_compatible_p.
14061
140622008-02-01 Miles Bader <miles@gnu.org>
14063
14064 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14065 removed calculation of frame `f', as it's now used.
14066
140672008-02-01 Kenichi Handa <handa@m17n.org>
14068
14069 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14070 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14071 (UNIDATA): New variable.
14072 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14073 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14074 $(RUN_TEMACS) unconditionally.
14075
140762008-02-01 Kenichi Handa <handa@m17n.org>
14077
14078 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14079 (admindir): New variable.
14080 ($(lispsource)international/charprop.el): New target.
14081
140822008-02-01 Miles Bader <miles@gnu.org>
14083
14084 * character.c (chars-in-region): Remove obsolete function.
14085 (syms_of_character): Remove its initialization.
14086
140872008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14088
14089 * w32select.c (validate_coding_system)
14090 (setup_windows_coding_system): New functions.
14091 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14092 setup_windows_coding_system.
14093 (setup_config, Fw32_get_clipboard_data): Use
14094 validate_coding_system.
14095 (Fx_selection_exists): Move call to setup_config to a place
14096 where signals are allowed.
14097
14098 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14099 (Fcheck_coding_system): Add declarations.
14100
141012008-02-01 Kenichi Handa <handa@m17n.org>
14102
14103 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14104
141052008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14106
14107 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14108 string as the second argument for x_new_fontset.
14109
141102008-02-01 Kenichi Handa <handa@m17n.org>
14111
14112 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14113 (encode_coding_object): Use safe_call instead of call2.
14114
141152008-02-01 Kenichi Handa <handa@m17n.org>
14116
14117 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14118
14119 * Makefile.in (lisp): Include charprop.el.
14120
141212008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14122
14123 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14124 Not sure if it's unnecessary.
14125
141262008-02-01 Steven Tamm <steventamm@mac.com>
14127
14128 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14129 some possibly unnecessary fontset checking code that crashed
14130 when creating a new frame.
14131
141322008-02-01 Kenichi Handa <handa@m17n.org>
14133
14134 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14135 lookup_face.
14136
14137 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14138
14139 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14140
141412008-02-01 Kenichi Handa <handa@m17n.org>
14142
14143 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14144 (coding_charset_list): New function.
14145
14146 * coding.h (coding_charset_list): Extern it.
14147
141482008-02-01 Kenichi Handa <handa@m17n.org>
14149
14150 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14151 concatenation of family and registry.
14152
141532008-02-01 Kenichi Handa <handa@m17n.org>
14154
14155 * character.h (BYTE8_STRING): Fix typo.
14156
14157 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14158 string to multibyte (sync to HEAD).
14159
14160 * casefiddle.c (casify_region): Handle changes in byte-length
14161 using replace_range_2 (sync to HEAD).
14162
141632008-02-01 Andreas Schwab <schwab@suse.de>
14164
14165 * chartab.c (map_char_table): GCPRO table and arg.
14166
141672008-02-01 Kenichi Handa <handa@m17n.org>
14168
14169 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14170 already at limit.
14171
141722008-02-01 Kenichi Handa <handa@m17n.org>
14173
14174 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14175 instead of fast_c_string_match_ignore_case.
14176 (find_font_encoding): Change argument to Lisp_Object. Use
14177 fast_string_match_ignore_case instead of
14178 fast_c_string_match_ignore_case. Change caller.
14179
141802008-02-01 Kenichi Handa <handa@m17n.org>
14181
14182 * xdisp.c (get_next_display_element): In unibyte case, decide to
14183 display in octal form by checking a character by
14184 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14185
14186 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14187
14188 * character.c (unibyte_has_multibyte_table): New variable.
14189
14190 * character.h (unibyte_has_multibyte_table): Extern it.
14191 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14192
141932008-02-01 Kenichi Handa <handa@m17n.org>
14194
14195 * coding.c (encode_coding_iso_2022): Fix handling of charset
14196 annotation.
14197
141982008-02-01 Kenichi Handa <handa@m17n.org>
14199
14200 * coding.c (setup_coding_system): If coding_system is nil, use
14201 Qundecided.
14202 (Fterminal_coding_system): Return nil if terminal coding system is
14203 `undecided'.
14204 (syms_of_coding): Define coding-system `undecided' here. Setup
14205 terminal_coding as `undecided'.
14206
142072008-02-01 Kenichi Handa <handa@m17n.org>
14208
14209 * xdisp.c (message_dolog, set_message_1): Call
14210 unibyte_char_to_multibyte with arg type int.
14211
14212 * lread.c (read1): Fix reading of a char-table.
14213
14214 * print.c (print_object): Include sub char-table in circularities
14215 detection.
14216
142172008-02-01 Kenichi Handa <handa@m17n.org>
14218
14219 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14220 Append the found sequences in car of ARGS instead of prepending.
14221
142222008-02-01 Kenichi Handa <handa@m17n.org>
14223
14224 * fileio.c (report_file_error): Make a unibyte string from
14225 strerror (errorno).
14226 (Fsubstitute_in_file_name): Fix the arg to
14227 unibyte_char_to_multibyte. It is evaluated twice.
14228
142292008-02-01 Kenichi Handa <handa@m17n.org>
14230
14231 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14232
142332008-02-01 Kenichi Handa <handa@m17n.org>
14234
14235 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14236 BOM is not found.
14237 (detect_coding, detect_coding_system): Optimization for ISO-2022
14238 when no 8-bit data is found.
14239
142402008-02-01 Jason Rumney <jasonr@gnu.org>
14241
14242 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14243
142442008-02-01 Kenichi Handa <handa@m17n.org>
14245
14246 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14247 CHARS.
14248
142492008-02-01 Steven Tamm <steventamm@mac.com>
14250
14251 * macterm.c (mac_encode_char): Add charset argument and update
14252 to use encoding_type.
14253 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14254 switch to pure fontset.
14255 (decode_mac_font_name): Temporarily remove decoding.
14256 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14257 (x_load_font): Temporarily remove encoding.
14258
142592008-02-01 Kenichi Handa <handa@m17n.org>
14260
14261 * xfaces.c (Fface_font): If frame is not on a window system,
14262 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14263 refer to face->font.
14264 (split_font_name_into_vector, build_font_name_from_vector)
14265 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14266 when HAVE_WINDOW_SYSTEM is defined.
14267
142682008-02-01 Kenichi Handa <handa@m17n.org>
14269
14270 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14271 (x_produce_glyphs): Fix setting of members of cmp in case
14272 cmp->glyph_len is zero.
14273
14274 * fontset.c (Fset_fontset_font): Fix docstring.
14275 (Ffontset_info): Make it backward compatible. New arg ALL.
14276
142772008-02-01 Kim F. Storm <storm@cua.dk>
14278
14279 * process.c (read_process_output): Grow decoding_buf when needed;
14280 this could cause a crash in allocate_string and compact_small_strings.
14281
142822008-02-01 Kenichi Handa <handa@m17n.org>
14283
14284 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14285
142862008-02-01 Kenichi Handa <handa@m17n.org>
14287
14288 * coding.c (setup_coding_system): Set coding->common_flags
14289 correctly for raw-text.
14290 (consume_chars): On encoding unibyte text by raw-text, don't check
14291 multibyte form.
14292 (encode_coding): On encoding by raw-text, never use translation tables.
14293
14294 * fileio.c (e_write): Short cut for the case of no encoding.
14295
142962008-02-01 Kenichi Handa <handa@m17n.org>
14297
14298 * coding.c (detect_coding, detect_coding_system): Delete unused
14299 variables.
14300
143012008-02-01 Kenichi Handa <handa@m17n.org>
14302
14303 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14304 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14305
143062008-02-01 Kenichi Handa <handa@m17n.org>
14307
14308 * coding.c (Ffind_coding_systems_region_internal): Include
14309 raw-text and no-conversion in the result.
14310
143112008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14314 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14315 FONT_DEF.
14316 (font_def_arg, add_arg, from_arg, to_arg): New args.
14317 (set_fontset_font): Change argument.
14318 (Fset_fontset_font): Fix for the case that TARGET is a script
14319 name and charset name.
14320 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14321
143222008-02-01 Kenichi Handa <handa@m17n.org>
14323
14324 * fontset.c (fontset_font): Rename from fontset_face. Change return
14325 value.
14326 (face_suitable_for_char_p, face_for_char): Adjust for the change
14327 of fontset_font.
14328 (make_fontset_for_ascii_face): Fix setting of the fontset element
14329 for ASCII.
14330 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14331 to get a font name.
14332 (Ffontset_info): Adjust for the change of fontset_font.
14333
14334 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14335
14336 * character.h (LEADING_CODE_LATIN_1_MIN)
14337 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14338
143392008-02-01 Kenichi Handa <handa@m17n.org>
14340
14341 * editfns.c (check_translation): New function.
14342 (Ftranslate_region_internal): Handle M:N mapping.
14343
143442008-02-01 Kenichi Handa <handa@m17n.org>
14345
14346 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14347
143482008-02-01 Kenichi Handa <handa@m17n.org>
14349
14350 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14351 goto invalid_code.
14352 (decode_coding_iso_2022): Fix handling of invalid designation.
14353
14354 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14355 after calling code_conversion_save.
14356
143572008-02-01 Kenichi Handa <handa@m17n.org>
14358
14359 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14360
14361 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14362
14363 * fontset.c: Include "intervals.h".
14364 (fontset_face): Fix comparing of Lisp_Objects.
14365 (free_face_fontset, new_fontset_from_font_name): Fix
14366 Lisp_Object/int mixup.
14367
14368 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14369
14370 * coding.c: Add many prototypes for static functions.
14371 (get_translation_table): Allow max_lookup to be NULL.
14372 (decode_coding, Ffind_coding_systems_region_internal)
14373 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14374 get_translation_table with max_lookup NULL.
14375
143762008-02-01 Kenichi Handa <handa@m17n.org>
14377
14378 * coding.c (get_translation_table): Declare it as Lisp_Object.
14379 (LOOKUP_TRANSLATION_TABLE): New macro.
14380 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14381 instead of CHAR_TABLE_REF.
14382
143832008-02-01 Kenichi Handa <handa@m17n.org>
14384
14385 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14386 annotation data format.
14387 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14388 Change arguments FROM and TO to single argument NCHARS. Change caller.
14389 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14390 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14391 (decode_coding_ccl, decode_coding_charset): Pay attention to
14392 coding->charbuf_used.
14393 (get_translation): New function.
14394 (produce_chars): New arguments translation_table and last_block.
14395 Translate characters here. Return number of carryover chars.
14396 Change caller.
14397 (produce_composition): New argument pos. Change caller.
14398 Adjust for the change of annotation data format.
14399 (produce_charset, produce_annotation): Likewise.
14400 (decode_coding, encode_coding): Don't call translate_chars.
14401 (consume_chars): New arg translation_table. Change caller.
14402 (translate_chars): Delete.
14403 (syms_of_coding): Make translation-table's number of extra slots 2.
14404
144052008-02-01 Kenichi Handa <handa@m17n.org>
14406
14407 * search.c (simple_search): Fix setting this_pos_byte in backward
14408 search.
14409
14410 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14411 byte sequence.
14412 (detect_coding_ccl): Fix setting of the variable valids.
14413
144142008-02-01 Kenichi Handa <handa@m17n.org>
14415
14416 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14417
14418 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14419
14420 * editfns.c (Ftranslate_region_internal): Rename from
14421 Ftranslate_region. Accept a char-table in TABLE.
14422 (syms_of_editfns): Defsubr Stranslate_region_internal.
14423
14424 * xfaces.c (set_lface_from_font_name): If a font is specified for
14425 a frame, generate a fontset from the font.
14426 (build_scalable_font_name): If the scalable font is requested for
14427 a specific size, don't change that size.
14428 (try_font_list): Try a scalable font also in the case that a
14429 pattern string is specified.
14430
144312008-02-01 Kenichi Handa <handa@m17n.org>
14432
14433 * xfaces.c (Fface_font): New optional arg CHARACTER.
14434
144352008-02-01 Kenichi Handa <handa@m17n.org>
14436
14437 * charset.h (CHARSET_OFFSET): New macro.
14438
144392008-02-01 Kenichi Handa <handa@m17n.org>
14440
14441 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14442
14443 * fontset.c (fontset_face): Handle the case that repertory is a
14444 char-table.
14445 (find_font_encoding): Return nil for unknown encoding.
14446 (Fset_fontset_font): Ignore a font of unknown encoding.
14447
144482008-02-01 Kenichi Handa <handa@m17n.org>
14449
14450 * keymap.c (describe_vector): Handle default value of a char table.
14451
14452 * fontset.c (fontset_face): Handle fallback fonts correctly.
14453 (Ffontset_info): Return infomation about fallback fonts.
14454
144552008-02-01 Kenichi Handa <handa@m17n.org>
14456
14457 * fontset.c (FONTSET_DEFAULT): New macro.
14458 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14459 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14460 the case that it is nil.
14461 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14462 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14463
14464 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14465 subset or superset.
14466
144672008-02-01 Kenichi Handa <handa@m17n.org>
14468
14469 * emacs.c (main): Call init_charset after syms_of_XXX.
14470
14471 * charset.c (Vcharset_map_directory): Delete.
14472 (Vcharset_map_path): New variable.
14473 (load_charset_map_from_file): Use Vcharset_map_path instead.
14474 (init_charset): Initialize Vcharset_map_path.
14475 (syms_of_charset): Delete declaration of "charset-map-directory",
14476 add declaration of "charset-map-path".
14477
144782008-02-01 Kenichi Handa <handa@m17n.org>
14479
14480 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14481 ASCII only string.
14482
14483 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14484
14485 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14486 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14487
144882008-02-01 Kenichi Handa <handa@m17n.org>
14489
14490 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14491
14492 * coding.c (QCmnemonic, QCdefalut_char)
14493 (QCdecode_translation_table, QCencode_translation_table)
14494 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14495 (get_translation_table): Return a list of translation tables if
14496 necessary.
14497 (decode_coding): Call get_translation_table with ENCODEP 0.
14498 (char_encodable_p): If translation_table is non-nil, always call
14499 translate_char.
14500 (Fdefine_coding_system_internal): Accept list of translation
14501 tables as :encode-translation-table and :decode-translation-table.
14502 (Fcoding_system_put): New function.
14503 (syms_of_coding): Declare new symbols. Defsubr
14504 Scoding_system_put.
14505 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14506 typically JISX0212.
14507
14508 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14509 when the charset is superset type.
14510
14511 * character.c (translate_char): Accept list of translation tables.
14512
145132008-02-01 Kenichi Handa <handa@m17n.org>
14514
14515 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14516 (CODING_ATTR_TRANS_TBL): New macro.
14517
14518 * coding.c (get_translation_table): New function.
14519 (translate_chars): Fix the bug of skipping annotation data.
14520 (decode_coding, encode_coding): Utilize get_translation_table.
14521 (char_encodable_p, Funencodable_char_position): Translate char if
14522 necessary.
14523 (Ffind_coding_systems_region_internal)
14524 (Fcheck_coding_systems_region): Setup translation table for encode
14525 in a coding system attribute vector in advance.
14526 (Fdefine_coding_system_internal): Allow a symbol as translation
14527 table. For shift-jis type coding system, allow 4th charset.
14528
145292008-02-01 Kenichi Handa <handa@m17n.org>
14530
14531 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14532
14533 * xdisp.c (get_next_display_element): Pass -1 as POS to
14534 FACE_FOR_CHAR if displaying a C-string.
14535
145362008-02-01 Kenichi Handa <handa@m17n.org>
14537
14538 * composite.c (get_composition_id): Handle xoff and yoff in a
14539 composition rule.
14540
14541 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14542 (struct composition): New member lbearing and rbearing.
14543
14544 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14545 (x_get_glyph_overhangs): Handle a composition glyph.
14546 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14547
14548 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14549 composition glyph.
14550
145512008-02-01 Kenichi Handa <handa@m17n.org>
14552
14553 * print.c: Include charset.h.
14554 (Vprint_charset_text_property): New variable.
14555 (Qdefault): Extern it.
14556 (PRINT_STRING_NON_CHARSET_FOUND)
14557 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14558 (print_check_string_result): New variable.
14559 (print_check_string_charset_prop): New function.
14560 (print_prune_charset_plist): New variable.
14561 (print_prune_string_charset): New function.
14562 (print_object): Call print_prune_string_charset if
14563 Vprint_charset_text_property is not t.
14564 (print_interval): Print nothing if interval->plist is nil.
14565 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14566 variable. Init and staticpro print_prune_charset_plist.
14567
145682008-02-01 Kenichi Handa <handa@m17n.org>
14569
14570 * fontset.c (new_fontset_from_font_name): Use the specified font
14571 for all characters in the new fontset.
14572
14573 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14574 OBJECT args.
14575
14576 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14577 OBJECT args for composition too.
14578
14579 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14580 OBJECT args.
14581
145822008-02-01 Kenichi Handa <handa@m17n.org>
14583
14584 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14585
14586 * fontset.c (reorder_font_vector): Adjust for the change of
14587 FONT_DEF format.
14588 (fontset_face): New arg id. Change caller.
14589 (face_for_char): New args pos and object.
14590 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14591 (fs_query_fontset): Check NAME by Fassoc too.
14592 (Fset_fontset_font): Allow non-XLFD font name.
14593 (Ffontset_info): Adjust for the change of FONT_DEF format.
14594
14595 * fontset.h (face_for_char): Adjust prototype.
14596
14597 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14598 (append_space, extend_face_to_end_of_line)
14599 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14600 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14601
14602 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14603 POS and OBJECT args.
14604
14605 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14606 POS and OBJECT args.
14607
146082008-02-01 Jason Rumney <jasonr@gnu.org>
14609
14610 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14611 of GlobalAlloc'ed memory.
14612
146132008-02-01 Kenichi Handa <handa@m17n.org>
14614
14615 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14616
14617 * charset.h (charset_table_used): Delete extern.
14618
14619 * charset.c (charset_table_used): Make it static.
14620 (map_charset_chars): Fix args to c_function with.
14621
14622 * chartab.c (map_sub_char_table_for_charset): Fix args to
14623 c_function with.
14624
14625 * coding.h (enum coding_result_code): Delete
14626 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14627
14628 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14629 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14630 (Vlast_code_conversion_error): New variables.
14631 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14632 (ONE_MORE_BYTE): Record error if any instead of signaling an
14633 error. If non-ASCII multibyte char is found, return the negative
14634 value of the code. All callers changed to check it.
14635 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14636 (record_conversion_result): New function. Change all codes setting
14637 coding->result to call this function.
14638 (detect_coding_utf_8, decode_coding_utf_8)
14639 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14640 Don't use the local variable incomplete.
14641 (emacs_mule_char): Change the second arg to `const'.
14642 (decode_coding): Fix of flushing out unprocessed data.
14643 (make_conversion_work_buffer): Fix making of a work buffer.
14644 (decode_coding_object): Return coding->dst_object.
14645
14646 * fontset.c (set_fontset_font): Fix args.
14647
14648 * lisp.h (CHARACTERBITS): Define as 22.
14649
14650 * process.c (send_process): Be sure to set coding->src_multibyte.
14651
14652 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14653
146542008-02-01 Kenichi Handa <handa@m17n.org>
14655
14656 * xdisp.c (handle_auto_composed_prop): Give limit to
14657 Fnext_single_char_property_change.
14658
146592008-02-01 Kenichi Handa <handa@m17n.org>
14660
14661 * composite.c (syms_of_composite): Don't make the composition hash
14662 table weak.
14663
14664 * fontset.c (Fset_fontset_font): Fix docstring.
14665
14666 * lisp.h (detect_coding_system): Adjust prototype.
14667
14668 * fileio.c (kill_workbuf_unwind): Delete this function.
14669 (Finsert_file_contents): Adjust the call of detect_coding_system.
14670 Get conversion_buffer by code_conversion_save. Use the macro
14671 CODING_MAY_REQUIRE_DECODING. After decoding, update
14672 coding_system.
14673
14674 * coding.h (make_conversion_work_buffer): Delete extern.
14675 (code_conversion_save): Extern it.
14676
14677 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14678 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14679 (decode_coding_utf_8): Don't do eol converion.
14680 (detect_coding_utf_16): Check coding->src_chars, not
14681 coding->src_bytes. Add heuristics for those that have no signature.
14682 (decode_coding_emacs_mule, decode_coding_iso_2022)
14683 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14684 Don't do eol converion.
14685 (adjust_coding_eol_type): Return a new coding system.
14686 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14687 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14688 each change.
14689 (decode_coding): Pay attention to undo_list. Do eol conversion for
14690 all types of coding-systems (if necessary).
14691 (Vcode_conversion_work_buf_list): Delete it.
14692 (Vcode_conversion_reused_workbuf): Rename from
14693 Vcode_conversion_reused_work_buf.
14694 (Vcode_conversion_workbuf_name): New variable.
14695 (reused_workbuf_in_use): New variable.
14696 (make_conversion_work_buffer): Delete the arg DEPTH.
14697 (code_conversion_restore): Change argument to cons.
14698 (code_conversion_save): Delete the argument BUFFER. Change callers.
14699 (detect_coding_system): New argument src_chars. Change callers.
14700 Fix for utf-16 detection.
14701 (init_coding_once): Don't use ISO_carriage_return.
14702 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14703 reused_workbuf_in_use.
14704
147052008-02-01 Kenichi Handa <handa@m17n.org>
14706
14707 * keymap.c (store_in_keymap): Pay attention to the case that idx
14708 is a cons specifying a character range.
14709
147102008-02-01 Kenichi Handa <handa@m17n.org>
14711
14712 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14713 HANDLED_RECOMPUTE_PROPS.
14714
14715 * coding.c (Fdefine_coding_system_internal): Fix checking of
14716 ascii compatibility.
14717
147182008-02-01 Kenichi Handa <handa@m17n.org>
14719
14720 * charset.c (find_charsets_in_text): Delete unused locale variable.
14721 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14722
14723 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14724 Resync charset_list to Vemacs_mule_charset_list.
14725
14726 * keymap.c (store_in_keymap): Pay attention to the case that idx
14727 is a cons specifying a character range.
14728
147292008-02-01 Kenichi Handa <handa@m17n.org>
14730
14731 * composite.c (update_compositions): Bind inhibit-read-only, etc
14732 to t before calling remove-list-of-text-properties.
14733
14734 * print.c (print_object): Always print ASCII chars as is.
14735
147362008-02-01 Kenichi Handa <handa@m17n.org>
14737
14738 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14739
14740 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14741 is a char table.
14742
147432008-02-01 Kenichi Handa <handa@m17n.org>
14744
14745 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14746
147472008-02-01 Kenichi Handa <handa@m17n.org>
14748
14749 * xfaces.c (set_lface_from_font_name): Fix for the case that
14750 FONTNAME is not fontset name.
14751
147522008-02-01 Kenichi Handa <handa@m17n.org>
14753
14754 * fns.c (base64_encode_1): Fix previous change.
14755
147562008-02-01 Kenichi Handa <handa@m17n.org>
14757
14758 * fontset.c (set_fontset_font): New function.
14759 (Fset_fontset_font): If a font is specified for a charset, use
14760 map_charset_chars to store the font spec in a fontset.
14761
147622008-02-01 Kenichi Handa <handa@m17n.org>
14763
14764 * fontset.c (fontset_face): Create a fallback fontset on demand.
14765 (make_fontset): Don't create a fallback fontset here.
14766 (free_face_fontset): Free a fallback fontset (if any) too.
14767 (n_auto_fontsets): Delete this variable.
14768 (auto_fontset_alist): New variable.
14769 (new_fontset_from_font_name): Check auto_fontset_alist.
14770 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14771 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14772 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14773 Defsubr Sfontset_list_all.
14774
147752008-02-01 Kenichi Handa <handa@m17n.org>
14776
14777 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14778
147792008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14782
147832008-02-01 Kenichi Handa <handa@m17n.org>
14784
14785 * editfns.c (Fgoto_char): Fix docstring.
14786
147872008-02-01 Kenichi Handa <handa@m17n.org>
14788
14789 * insdel.c (insert_from_gap): Adjust intervals correctly.
14790
147912008-02-01 Jason Rumney <jasonr@gnu.org>
14792
14793 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14794 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14795 (w32_initialize): Try to load it.
14796 (x_get_font_repertory): Use it if available.
14797 (w32_encode_char): Add shortcut for unicode output.
14798
14799 * w32fns.c (w32_load_system_font): Default charset to -1.
14800 (x_to_w32_charset): Match all fonts for unicode.
14801 (w32_to_x_charset): New parameter matching. Don't return partial
14802 or wildcard charsets.
14803 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14804 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14805 (w32_to_x_font): Match charset to real charset.
14806 (enum_font_cb2): Always list unicode versions.
14807
14808 * makefile.w32-in (temacs): Increase EMHEAP.
14809
148102008-02-01 Jason Rumney <jasonr@gnu.org>
14811
14812 * w32term.c (w32_encode_char): New charset parameter.
14813 font_info.encoding becomes encoding_type.
14814 (x_get_font_repertory): New function. Warning: stub only!
14815 (x_new_font): Return quickly if font already set.
14816 (x_new_fontset): fontsetname parameter is Lisp_Object.
14817 Use new fs_query_fontset. Try new_fontset_from_font_name.
14818 Use fontset_name for return value.
14819
14820 * w32term.h: Declare x_get_font_repertory.
14821
14822 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14823 place of find_charset_in_text. Use encode_coding_object in place
14824 of encode_coding.
14825 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14826 decode_coding.
14827
14828 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14829 of x_new_fontset.
14830 (w32_load_system_font): Initialize charset as unicode.
14831 font_info.encoding becomes encoding_type.
14832 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14833 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14834 (syms_of_w32fns): Set get_font_repertory_func.
14835
14836 * w32console.c: Include character.h. Use terminal_encode_buffer
14837 from term.c.
14838 (write_glyphs): Use new version of encode_terminal_code. Use
14839 encode_coding_object in place of encode_coding.
14840
14841 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14842 encoding becomes encoding_type.
14843
14844 * term.c (terminal_encode_buffer): Make externally visible.
14845
14846 * makefile.w32-in: Add character.h dependancies.
14847 (character.o, chartab.o): New targets.
14848
148492008-02-01 Kenichi Handa <handa@m17n.org>
14850
14851 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14852 CODING_ID_EOL_TYPE.
14853
148542008-02-01 Andreas Schwab <schwab@suse.de>
14855
14856 * coding.c (produce_chars): Revert last change.
14857
148582008-02-01 Kenichi Handa <handa@m17n.org>
14859
14860 * charset.h (charset_unicode): Extern it.
14861
14862 * charset.c (string_xstring_p): Check by (C >= 0x100).
14863 (find_charsets_in_text): Change format of the arc CHARSETS. New
14864 arg MULTIBYTE.
14865 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14866 change of find_charsets_in_text.
14867 (Fsplit_char): Fix doc. Never return unknown.
14868
14869 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14870
14871 * coding.c (Fdefine_coding_system_alias): Update
14872 Vcoding_system_list.
14873
14874 * fontset.c (load_font_get_repertory): Pay attention to the case
14875 that ENCODING of a font is specified by a char-table.
14876
14877 * xterm.c (x_get_font_repertory): Handle the case that the
14878 encoding of font is other than Unicode.
14879
148802008-02-01 Kenichi Handa <handa@m17n.org>
14881
14882 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14883 if a character is encodable by the terminal coding system. If
14884 not, produces proper number of `?'s. Update
14885 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14886 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14887
148882008-02-01 Kenichi Handa <handa@m17n.org>
14889
14890 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14891 variables.
14892 (encode_terminal_code): Change argument. Encode multiple
14893 characters at once. Store the result of encoding in
14894 terminal_encode_buffer.
14895 (write_glyphs, insert_glyphs): Adjust for the change of
14896 encode_terminal_code.
14897 (term_init): Initialize terminal_encode_buffer and
14898 terminal_encode_buf_size.
14899
14900 * coding.c (consume_chars): If coding->src_object is nil, don't
14901 check annotation.
14902
149032008-02-01 Kenichi Handa <handa@m17n.org>
14904
14905 * character.c (char_string): Use ASCII_CHAR_P instead of
14906 SINGLE_BYTE_CHAR_P.
14907
149082008-02-01 Kenichi Handa <handa@m17n.org>
14909
14910 * xdisp.c (handle_auto_composed_prop): Check if the last
14911 characters of auto-composed region is newly composed with the
14912 following characters.
14913 (handle_composition_prop): Fix checking of point being inside
14914 composition.
14915
149162008-02-01 Kenichi Handa <handa@m17n.org>
14917
14918 * fns.c (concat): Don't change multibyteness of the result by
14919 concatenating an 8-bit character.
14920
14921 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14922 multibyteness of the result when newelt is an 8-bit character.
14923
149242008-02-01 Dave Love <fx@gnu.org>
14925
14926 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14927 EMACS_INT.
14928
14929 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14930
14931 * xfaces.c (face_numeric_value): Declare dim size_t.
14932 (Finternal_lisp_face_equal_p): Remove unused f.
14933
14934 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14935 (MATRIX_ROW): Remove unused vars.
14936 (draw_glyphs, x_insert_glyphs, fast_find_position)
14937 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14938 byte/char counts.
14939
14940 * regex.c (regex_compile): Remove unused var.
14941
14942 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14943
14944 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14945 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14946
14947 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14948
14949 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14950
14951 * fileio.c (Fwrite_region): Remove unused var.
14952
14953 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14954 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14955
14956 * composite.c (Fremove_list_of_text_properties): Declare.
14957
14958 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14959 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14960 (coding_inherit_eol_type): Remove unused attrs.
14961 (detect_coding): Cast arg of detect_eol.
14962
14963 * charset.c (syms_of_charset): Remove unused var p.
14964 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14965 byte/char counts.
14966
14967 * casetab.c (set_case_table): Remove unused var.
14968
14969 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14970 unused vars.
14971
149722008-02-01 Dave Love <fx@gnu.org>
14973
14974 * xterm.c (x_bitmap_mask): Declare.
14975
149762008-02-01 Dave Love <fx@gnu.org>
14977
14978 * xterm.c (x_term_init): Fix type error.
14979
14980 * lisp.h: Add Funibyte_char_to_multibyte.
14981
14982 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14983 (Fset_coding_system_priority): Doc fix.
14984
14985 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14986
14987 * indent.c (check_composition): Make start and end EMACS_INT.
14988
14989 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14990
14991 * xdisp.c (handle_composition_prop, check_point_in_composition):
14992 Make buffer positions EMACS_INT.
14993
14994 * composite.c (find_composition, run_composition_function)
14995 (update_compositions, Ffind_composition_internal): Make buffer
14996 positions EMACS_INT.
14997
14998 * composite.h (find_composition, update_compositions): Make
14999 position args EMACS_INT.
15000
15001 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15002
15003 * intervals.c (get_property_and_range):
15004 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15005
15006 * unexalpha.c: Don't include varargs.h.
15007
150082008-02-01 Dave Love <fx@gnu.org>
15009
15010 * coding.h (ENCODE_UTF_8): New.
15011
15012 * Makefile.in (gtkutil.o): Depend on coding.h.
15013
15014 * coding.c (Fset_coding_system_priority): Doc fix.
15015
150162008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15019 the case of auto saving.
15020
150212008-02-01 Andreas Schwab <schwab@suse.de>
15022
15023 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15024 `range' from GC.
15025
150262008-02-01 Kenichi Handa <handa@m17n.org>
15027
15028 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15029
150302008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * fileio.c (choose_write_coding_system): Return a decided coding system.
15033 (Fwrite_region): Set Vlast_coding_system_used to the return value
15034 of choose_write_coding_system.
15035
150362008-02-01 Kenichi Handa <handa@m17n.org>
15037
15038 * charset.c (Fset_charset_priority): Pay attention to duplicated
15039 arguments.
15040
15041 * coding.c (QCcategory): New variable.
15042 (syms_of_coding): Defsym it. Set all elements of
15043 Vcoding_category_table and their symbol values.
15044 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15045 coding-category-XXX, and coding-category-list.
15046 (Fdefine_coding_system_internal): Add category in the plist.
15047
150482008-02-01 Kenichi Handa <handa@m17n.org>
15049
15050 * callproc.c (Fcall_process): Handle carryover correctly.
15051
15052 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15053 (raw_text_coding_system): Check NILP (coding_system).
15054 (coding_inherit_eol_type): Check NILP (coding_system) and
15055 NILP (parent).
15056 (consume_chars): Fix for the case of raw-text.
15057
15058 * process.c (read_process_output): Handle carryover correctly.
15059
150602008-02-01 Dave Love <fx@gnu.org>
15061
15062 * regex.c (re_search_2): Fix last change.
15063
150642008-02-01 Kenichi Handa <handa@m17n.org>
15065
15066 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15067 target_multibyte. Even in a unibyte case, return a converted
15068 multibyte char.
15069 (GET_CHAR_AFTER): New macro.
15070 (PATFETCH): Translate via multibyte char.
15071 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15072 (SETUP_MULTIBYTE_RANGE): New macro.
15073 (regex_compile): Setup compiled code so that its multibyteness
15074 matches that of a target. Fix the handling of "[X-YZ]" using
15075 SETUP_MULTIBYTE_RANGE.
15076 (analyse_first) <charset>: For filling fastmap for all multibyte
15077 characters, don't check by BASE_LEADING_CODE_P.
15078 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15079 the same as RE_MULTIBYTE_P (bufp) now.
15080 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15081 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15082 (TRANSLATE_VIA_MULTIBYTE): New macro.
15083 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15084 It is the same as RE_MULTIBYTE_P (bufp) now.
15085 <exactn>: Translate via multibyte.
15086 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15087 translate it.
15088 <charset, charset_not>: Fetch a character by
15089 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15090 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15091 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15092 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15093 by GET_CHAR_AFTER.
15094 (bcmp_translate): Likewise.
15095
15096 * search.c (compile_pattern): Check the member target_multibyte,
15097 not the member multibyte of buf.
15098
15099 * lread.c (read1): While reading a string, set force_singlebyte
15100 and force_multibyte correctly.
15101
15102 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15103 up of unibyte_to_multibyte_table.
15104
151052008-02-01 Kenichi Handa <handa@m17n.org>
15106
15107 * coding.c (setup_coding_system): If coding has
15108 post-read-conversion or pre-write-conversion, set
15109 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15110 respectively.
15111 (decode_coding_gap): Run post-read-conversion if any.
15112
15113 * fileio.c (Finsert_file_contents): Even if we read into a
15114 unibyte buffer, check if we must decode the result or not.
15115
151162008-02-01 Kenichi Handa <handa@m17n.org>
15117
15118 * coding.c (make_conversion_work_buffer): Change the work buffer
15119 name to the same one as that of Emacs 21.
15120
151212008-02-01 Kenichi Handa <handa@m17n.org>
15122
15123 * coding.h (make_conversion_work_buffer): Adjust prototype.
15124 (code_conversion_restore): Don't extern it.
15125
15126 * coding.c (detected_mask): Delete unused variable.
15127 (decode_coding_iso_2022): Pay attention to the byte sequence of
15128 CTEXT extended segment, and retain those bytes as is.
15129 (decode_coding_ccl): Delete unused variable `valids'.
15130 (setup_coding_system): Delete unused variable `category'.
15131 (consume_chars): Delete unused variable `category'. Make it work
15132 for non-multibyte case.
15133 (make_conversion_work_buffer): Change argument.
15134 (saved_coding): Delete unused variable.
15135 (code_conversion_restore): Don't check saved_coding->destination.
15136 (code_conversion_save): New function.
15137 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15138 instead of record_unwind_protect.
15139 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15140 (detect_coding_system): Delete unused variable `mask'.
15141 (Fdefine_coding_system_internal): Delete unused variable id.
15142
15143 * fileio.c (kill_workbuf_unwind): New function.
15144 (Finsert_file_contents): On replacing, call
15145 make_conversion_work_buffer with correct args, and call
15146 record_unwind_protect with the first arg kill_workbuf_unwind.
15147
15148 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15149
151502008-02-01 Kenichi Handa <handa@m17n.org>
15151
15152 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15153 (fontset_add): Fix for the case that TO is less than TO1.
15154 (Ffontset_info): Don't use fallback fontset on checking the
15155 default fontset.
15156 (dump_fontset): New function for debugging.
15157
15158 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15159 coding_type is Qcharset.
15160
151612008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15164 (map_char_table): Don't inherit the value from the parent on
15165 initializing VAL. Adjust for the above change.
15166
151672008-02-01 Kenichi Handa <handa@m17n.org>
15168
15169 * coding.c (Qsignature, Qendian): Delete these variables.
15170 (syms_of_coding): Don't initialize them.
15171 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15172 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15173 detect_info->found.
15174 (decode_coding_utf_16): Don't detect BOM here.
15175 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15176 is NOT utf_16_without_bom.
15177 (setup_coding_system): For a coding system of type utf-16, check
15178 if the attribute :endian is Qbig or not (not nil or not), and set
15179 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15180 (detect_coding): If coding type is utf-16 and BOM detection is
15181 required, detect it.
15182 (Fdefine_coding_system_internal): For a coding system of type
15183 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15184
151852008-02-01 Kenichi Handa <handa@m17n.org>
15186
15187 * coding.c (coding_set_source): Fix for the case that the current
15188 buffer is different from coding->src_object.
15189 (decode_coding_object): Don't use the conversion work buffer if
15190 DST_OBJECT is a buffer.
15191
151922008-02-01 Dave Love <fx@gnu.org>
15193
15194 * lread.c (read_emacs_mule_char) [len==2]: Index
15195 emacs_mule_charset correctly.
15196
151972008-02-01 Dave Love <fx@gnu.org>
15198
15199 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15200 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15201 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15202 treated specially.)
15203 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15204 (detected_mask): Remove Big5 bits.
15205
152062008-02-01 Kenichi Handa <handa@m17n.org>
15207
15208 The following changes are to make the font rescaling facility
15209 compatible with Emacs 21.
15210
15211 * xfaces.c (Vface_font_rescale_alist): Rename from
15212 Vface_resizing_fonts.
15213 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15214 (font_rescale_ratio): Rename from font_resizing_ratio.
15215 (split_font_name): Set font->rescale_ratio.
15216 (better_font_p): Pay attention to font->rescale_ratio.
15217 (build_scalable_font_name): Likewise. Change RESX, and RESY
15218 fields.
15219 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15220
152212008-02-01 Kenichi Handa <handa@m17n.org>
15222
15223 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15224 (Qutf_16_le): Remove these variables.
15225 (syms_of_coding): Don't DEFSYM them.
15226 (decode_coding_utf_16): Fix handling of BOM.
15227 (encode_coding_utf_16): Fix handling of BOM.
15228
152292008-02-01 Kenichi Handa <handa@m17n.org>
15230
15231 * fileio.c (Finsert_file_contents): On replacing, before decoding
15232 the file into the work buffer, set point of the work buffer to the end.
15233
152342008-02-01 Dave Love <fx@gnu.org>
15235
15236 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15237
152382008-02-01 Dave Love <fx@gnu.org>
15239
15240 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15241 and fix C types.
15242
152432008-02-01 Kenichi Handa <handa@m17n.org>
15244
15245 * xdisp.c (SKIP_GLYPHS): New macro.
15246 (set_cursor_from_row): Pay attention to string display properties.
15247
15248 * category.c (copy_category_entry): Fix for the case that RANGE
15249 is an integer.
15250
15251 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15252
15253 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15254
152552008-02-01 Kenichi Handa <handa@m17n.org>
15256
15257 * charset.c (Fcharset_id_internal): New function.
15258 (syms_of_charset): Defsubr it.
15259
15260 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15261 with the last arg charset_list acquired from coding.
15262 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15263 the attribute coding_attr_ccl_valids.
15264
15265 * coding.h (enum define_coding_ccl_arg_index): Set the first
15266 member coding_arg_ccl_decoder to coding_arg_max.
15267
15268 * ccl.h (ccl_driver): Adjust prototype.
15269
15270 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15271 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15272 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15273 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15274 last arg Qnil.
15275
152762008-02-01 Kenichi Handa <handa@m17n.org>
15277
15278 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15279 call encode_char.
15280
15281 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15282
152832008-02-01 Dave Love <fx@gnu.org>
15284
15285 * composite.c (syms_of_composite): Make composition_hash_table weak.
15286
152872008-02-01 Kenichi Handa <handa@m17n.org>
15288
15289 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15290 (font_name_registry): Don't extern them.
15291 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15292
15293 * fontset.h (Qfontset): Don't extern it.
15294 (new_fontset_from_font_name): Extern it.
15295
15296 * fontset.c: Give 8 extra slots to fontset objects.
15297 (Qfontset_info): New variable.
15298 (syms_of_fontset): Defsym it.
15299 (FONTSET_FALLBACK): New macro.
15300 (fontset_face): Try also the default fontset.
15301 (make_fontset): Realize a fallback fontset from the default fontset.
15302 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15303 using split_font_name_into_vector and build_font_name_from_vector.
15304 (Fset_fontset_font): Access the elements of font_spec by enum
15305 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15306 name by using split_font_name_into_vector.
15307 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15308 generate a proper font name from the fontset name. Update
15309 Vfontset_alias_alist.
15310 (n_auto_fontsets): New variable.
15311 (new_fontset_from_font_name): New function.
15312 (Ffont_info): Store the information about fonts generated from the
15313 default fontset in the first extra slot of the returned char-table.
15314
15315 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15316 (font_name_registry): Delete function.
15317 (split_font_name_into_vector): New function.
15318 (build_font_name_from_vector): New function.
15319 (font_list): The argument REGISTRY is now a list of registry names.
15320 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15321 specifies an explicit font name, return the name as is. Make a
15322 list of registy names.
15323
15324 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15325 of x_new_fontset.
15326 (Fx_create_frame): Don't call x_new_fontset here. Just use
15327 x_list_fonts to check the existence of fonts.
15328
15329 * xterm.h (x_new_fontset): Adjust prototype.
15330
15331 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15332 string. Use new_fontset_from_font_name to create a fontset from a
15333 font name.
15334
153352008-02-01 Kenichi Handa <handa@m17n.org>
15336
15337 * syntax.c (Vfind_word_boundary_function_table): New name for
15338 Vnext_word_boundary_function_table.
15339 (find-word-boundary-function-table): New name for
15340 next-word-boundary-function-table.
15341
153422008-02-01 Dave Love <fx@gnu.org>
15343
15344 * Makefile.in: Fix some dependencies.
15345
15346 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15347 set it to nil before returning.
15348
15349 * composite.c (update_compositions): Fix type error.
15350
15351 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15352
153532008-02-01 Kenichi Handa <handa@m17n.org>
15354
15355 * xterm.c (x_new_font): Optimize for the case that the font is
15356 already set for the frame.
15357
153582008-02-01 Kenichi Handa <handa@m17n.org>
15359
15360 * chartab.c (char_table_ascii): Check if the char table contents
15361 is sub-char-table or not.
15362 (char_table_set, char_table_set_range): Fix argument to
15363 char_table_ascii.
15364
15365 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15366 (detect_coding_utf_8, detect_coding_utf_16)
15367 (detect_coding_emacs_mule, detect_coding_iso_2022)
15368 (detect_coding_sjis, detect_coding_big5)
15369 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15370 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15371 sequence is valid in this coding system. Change callers.
15372 (MAX_ANNOTATION_LENGTH): New macro.
15373 (ADD_ANNOTATION_DATA): New macro.
15374 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15375 ADD_ANNOTATION_DATA. Change the format of annotation data.
15376 (ADD_CHARSET_DATA): New macro.
15377 (emacs_mule_char): New argument ID. Change callers.
15378 (decode_coding_emacs_mule, decode_coding_iso_2022)
15379 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15380 Produce charset annotation data in coding->charbuf.
15381 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15382 to charset annotation data in coding->charbuf.
15383 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15384 coding->common_flags if the coding system is iso-2022 based and
15385 uses designation.
15386 (produce_composition): Adjust for the new annotation data format.
15387 (produce_charset): New function.
15388 (produce_annotation): Handle charset annotation.
15389 (handle_composition_annotation, handle_charset_annotation): New
15390 functions.
15391 (consume_chars): Handle charset annotation. Utilize the above two
15392 functions.
15393 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15394 buffer, get the deleted text as a string and set
15395 coding->src_object to that string.
15396 (detect_coding, detect_coding_system): Use the new struct
15397 coding_detection_info.
15398
15399 * coding.h (struct coding_detection_info): New structure.
15400 (struct coding_system): Adjust prototype of the member `detector'.
15401 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15402
154032008-02-01 Kenichi Handa <handa@m17n.org>
15404
15405 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15406
154072008-02-01 Dave Love <fx@gnu.org>
15408
15409 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15410 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15411 to new local and nullify apropos_accumulate before returning.
15412 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15413
154142008-02-01 Kenichi Handa <handa@m17n.org>
15415
15416 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15417 correctly.
e3eea1fc 15418
aac0c6e3
MR
154192008-02-01 Dave Love <fx@gnu.org>
15420
15421 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15422
154232008-02-01 Kenichi Handa <handa@m17n.org>
15424
15425 The following changes are to make character composition happen
15426 automatically on displaying.
15427
15428 * Makefile.in (lisp, shortlisp): Add composite.elc.
15429
15430 * composite.h (Qauto_composed, Vauto_composition_function)
15431 (Qauto_composition_function): Extern them.
15432
15433 * composite.c (Vcomposition_function_table)
15434 (Qcomposition_function_table): Delete variables.
15435 (Qauto_composed, Vauto_composition_function)
15436 (Qauto_composition_function): New variables.
15437 (run_composition_function): Don't call
15438 compose-chars-after-function.
15439 (update_compositions): Clear `auto-composed' text property.
15440 (compose_chars_in_text): Delete this function.
15441 (syms_of_composite): Staticpro Qauto_composed and
15442 Qauto_composition_function. Declare Vauto_composition_function as
15443 a Lisp variable.
15444
15445 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15446
15447 * xdisp.c (it_props): Add an entry for Qauto_composed.
15448 (handle_auto_composed_prop): New function.
15449
15450 * xselect.c (selection_data_to_lisp_data): Don't call
15451 compose_chars_in_text.
15452
154532008-02-01 Dave Love <fx@gnu.org>
15454
15455 * keyboard.c (read_char): Modify checking around use of
15456 Vkeyboard_translate_table.
15457
15458 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15459 and fix C types.
15460
154612008-02-01 Kenichi Handa <handa@m17n.org>
15462
15463 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15464 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15465 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15466 the case that the last byte is '\r' correctly.
15467 (decode_coding): Flush out the unprocessed data correctly.
15468 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15469
154702008-02-01 Dave Love <fx@gnu.org>
15471
15472 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15473 Add XK_ISO... case.
15474 (xaw_scroll_callback): Revert last change.
15475
154762008-02-01 Kenichi Handa <handa@m17n.org>
15477
15478 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15479
154802008-02-01 Kenichi Handa <handa@m17n.org>
15481
15482 * xfaces.c (Vface_resizing_fonts): New variable.
15483 (struct font_name): New member `resizing_ratio'.
15484 (font_resizing_ratio): New function.
15485 (split_font_name): Set font->resizing_ratio.
15486 (better_font_p): Pay attention to font->resizing_ratio.
15487 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15488 RESX, and RESY fields.
15489 (try_alternative_families): Try scalable fonts if
15490 Vscalable_fonts_allowed is not Qt.
15491 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15492
154932008-02-01 Dave Love <fx@gnu.org>
15494
15495 * xterm.c (xaw_scroll_callback): Cast correctly.
15496
154972008-02-01 Dave Love <fx@gnu.org>
15498
15499 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15500 (lispy_kana_keys): Comment out.
15501 (make_lispy_event) [XK_kana_A]: Comment out.
15502
15503 * xterm.c (xaw_scroll_callback): Cast call_data.
15504 (XTread_socket): Deal with ASCII keysyms.
15505 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15506
155072008-02-01 Dave Love <fx@gnu.org>
15508
15509 * xterm.c (Vx_keysym_table): New.
15510 (syms_of_xterm): Initialize it.
15511 (XTread_socket): Use it.
15512 From head: Eliminate incorrect optimization that tried to avoid
15513 decoding the output of X*LookupString.
15514 (x_get_font_repertory): Delete charset declaration.
15515
155162008-02-01 Kenichi Handa <handa@m17n.org>
15517
15518 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15519 return 0.
15520 (Fdefine_coding_system_internal): Setup
15521 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15522
155232008-02-01 Dave Love <fx@gnu.org>
15524
15525 * coding.c (Fcheck_coding_system): Doc fix.
15526
15527 * editfns.c (Finsert_byte): Return a proper value.
15528
155292008-02-01 Kenichi Handa <handa@m17n.org>
15530
15531 * coding.c (decode_coding): Fix args to translate_chars. Pay
15532 attention to Vstandard_translation_table_for_decode.
15533 (encode_coding): Fix args to translate_chars. Pay attention to
15534 Vstandard_translation_table_for_encode.
15535
15536 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15537 SINGLE_BYTE_CHAR_P.
15538
15539 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15540 not by SINGLE_BYTE_CHAR_P.
15541
15542 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15543 SINGLE_BYTE_CHAR_P.
15544
15545 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15546 SINGLE_BYTE_CHAR_P.
15547
15548 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15549 by SINGLE_BYTE_CHAR_P.
15550
15551 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15552 SINGLE_BYTE_CHAR_P.
15553
155542008-02-01 Dave Love <fx@gnu.org>
15555
15556 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15557
155582008-02-01 Dave Love <fx@gnu.org>
15559
15560 * fns.c (Flanginfo): Fix typo.
15561
15562 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15563
155642008-02-01 Kenichi Handa <handa@m17n.org>
15565
15566 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15567 (detect_coding_emacs_mule, detect_coding_iso_2022)
15568 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15569 incomplete byte sequence. Don't update *mask when correctly detected.
15570 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15571 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15572 (detect_coding, detect_coding_system): Adjust for the changes above.
15573
155742008-02-01 Kenichi Handa <handa@m17n.org>
15575
15576 * character.c (char_string): Rename from
15577 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15578 (string_char): Rename from string_char.
15579
15580 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15581 if C is greater than MAX_3_BYTE_CHAR.
15582 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15583 string_char instead of string_char_with_unification.
15584
155852008-02-01 Dave Love <fx@gnu.org>
15586
15587 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15588
155892008-02-01 Kenichi Handa <handa@m17n.org>
15590
15591 * keymap.c (push_key_description): Pay attention to force_multibyte.
15592
15593 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15594
155952008-02-01 Dave Love <fx@gnu.org>
15596
15597 * charset.c (define_charset_internal): Rename `supprementary'.
15598
15599 * Makefile.in (lisp, shortlisp): Remove latin-N.
15600
156012008-02-01 Dave Love <fx@gnu.org>
15602
15603 * xfns.c (x_window, x_window): Use use_xim.
15604
15605 * xterm.c (use_xim): Initialize.
15606 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15607 (x_term_init): Maybe set use_xim.
15608
15609 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15610
156112008-02-01 Kenichi Handa <handa@m17n.org>
15612
15613 * search.c (search_buffer): Fix case-fold-search of multibyte
15614 characters.
15615 (boyer_moore): Rename the last argument to char_high_bits.
15616
156172008-02-01 Kenichi Handa <handa@m17n.org>
15618
15619 * xdisp.c (display_string): Fix for the case of zero width glyph.
15620
15621 * xfns.c (x_set_font): Change the error message of the case that
15622 x_new_fontset returns Qt.
15623
15624 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15625 (Finternal_set_lisp_face_attribute): Use signal_error for the
15626 error of invalid fontset.
15627
15628 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15629 fontset, return Qt.
15630
156312008-02-01 Dave Love <fx@gnu.org>
15632
15633 * unexelf.c (unexec): Make .got handling not SGI-specific.
15634
15635 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15636
15637 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15638
15639 * keyboard.c (read_key_sequence): Fix type error.
15640
15641 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15642 type error.
15643
15644 * fontset.c (fontset_add): Return Lisp_Object.
15645
156462008-02-01 Dave Love <fx@gnu.org>
15647
15648 * charset.h (charset_ordered_list_tick): Declare extern.
15649
156502008-02-01 Kenichi Handa <handa@m17n.org>
15651
15652 The following changes (and some of 2008-02-01 changes of mine) are
15653 for handling syntax, category, and case conversion for unibyte
15654 characters by converting them to multibyte on the fly. With these
15655 changes, we don't have to setup syntax and case tables for unibyte
15656 characters in each language environment.
15657
15658 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15659 multibyte if necessary.
15660
15661 * bytecode.c (Fbyte_code): Likewise.
15662
15663 * character.h (LEADING_CODE_LATIN_1_MIN)
15664 (LEADING_CODE_LATIN_1_MAX): New macros.
15665 (unibyte_to_multibyte_table): Extern it.
15666 (unibyte_char_to_multibyte): New macro.
15667 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15668 (CHAR_LEADING_CODE): New macro.
15669 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15670
15671 * character.c (unibyte_to_multibyte_table): New variable.
15672 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15673 (multibyte_char_to_unibyte): If C is an eight-bit character,
15674 convert it to the corresponding byte value.
15675
15676 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15677 not 1, signals an error. Update the elements of
15678 unibyte_to_multibyte_table.
15679 (init_charset_once): Initialize unibyte_to_multibyte_table.
15680 (syms_of_charset): Define the charset `iso-8859-1'.
15681
15682 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15683 as is without converting it to unibyte. In a unibyte buffer,
15684 convert C to multibyte before checking the syntax.
15685
15686 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15687
15688 * minibuf.c (Fminibuffer_complete_word): Use the macro
15689 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15690
15691 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15692
15693 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15694 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15695 that is zero, convert an eight-bit char to multibyte.
15696 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15697 non-emacs case.
15698 (PATFETCH): Convert an eight-bit char to multibyte.
15699 (HANDLE_UNIBYTE_RANGE): New macro.
15700 (regex_compile): Setup the compiled pattern for multibyte chars
15701 even if the given regex string is unibyte. Use PATFETCH_RAW
15702 instead of PATFETCH in many places. To handle `charset'
15703 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15704 only for ASCII chars.
15705 (analyse_first) <exactn>: Simplify because the compiled pattern
15706 is multibyte.
15707 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15708 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15709 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15710 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15711 multibyte always 1.
15712 (re_search_2): In emacs, set the locale variable multibyte to 1,
15713 otherwise to 0. New local variable target_multibyte. Check it
15714 to decide the multibyteness of STR1 and STR2. If
15715 target_multibyte is zero, convert unibyte chars to multibyte
15716 before translating and checking fastmap.
15717 (TARGET_CHAR_AND_LENGTH): New macro.
15718 (re_match_2_internal): In emacs, set the locale variable multibyte
15719 to 1, otherwise to 0. New local variable target_multibyte. Check
15720 it to decide the multibyteness of STR1 and STR2. Use
15721 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15722 <charset, charset_not>: If multibyte is nonzero, check fastmap
15723 only for ASCII chars. Call bcmp_translate with
15724 target_multibyte, not with multibyte.
15725 <begline>: Declare the local variable C as `unsigned'.
15726 (bcmp_translate): Change the last arg name to target_multibyte.
15727
15728 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15729 the regexp pattern and the matching target. Set cp->buf.multibyte
15730 to the multibyteness of the regexp pattern. Set
15731 cp->but.target_multibyte to the multibyteness of the matching target.
15732 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15733 FETCH_STRING_CHAR_ADVANCE.
15734 (Freplace_match): Convert unibyte chars to multibyte.
15735
15736 * syntax.c (char_quoted, back_comment, scan_words)
15737 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15738 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15739 unibyte chars to multibyte.
15740 (skip_chars): Delete the arg syntaxp, and move the code for
15741 handling syntaxes to skip_syntaxes. Change callers.
15742 Fix the case that the multibyteness of STRING and the current
15743 buffer doesn't match.
15744 (skip_syntaxes): New function.
15745 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15746 SINGLE_BYTE_CHAR_P.
15747
157482008-02-01 Kenichi Handa <handa@m17n.org>
15749
15750 * xfaces.c (QCfontset): New variable.
15751 (LFACE_FONTSET): New macro.
15752 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15753 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15754 (Finternal_set_lisp_face_attribute)
15755 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15756 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15757 check also LFACE_FONTSET_INDEX.
15758 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15759 attrs[LFACE_FONT_INDEX].
15760 (syms_of_xfaces): Intern and staticpro QCfontset.
15761
15762 * dispextern.h (enum lface_attribute_index): New member
15763 LFACE_FONTSET_INDEX.
15764
15765 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15766
157672008-02-01 Kenichi Handa <handa@m17n.org>
15768
15769 * coding.c (coding_set_destination): Fix coding->destination for
15770 the case converting a region.
15771 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15772 (encode_coding_object): Fix coding->dst_pos and
15773 coding->dst_pos_byte for the case converting a region.
15774
15775 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15776
15777 * character.h (BYTE8_STRING): New macro.
15778
15779 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15780
157812008-02-01 Kenichi Handa <handa@m17n.org>
15782
15783 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15784 characters by octal form.
15785
15786 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15787
15788 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15789 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15790 _fetch_multibyte_char_len.
15791 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15792
15793 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15794
15795 * casefiddle.c (casify_object): Simplify. Handle the case that
15796 the case conversion change the byte length.
15797 (casify_region): Likewise.
15798
15799 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15800
15801 * character.c (_fetch_multibyte_char_len): Delete this variable.
15802 (syms_of_character): Setup Vprintable_chars.
15803
15804 * editfns.c (Fchar_equal): Fix for the unibyte case.
15805 (Finsert_byte): New function.
15806 (syms_of_editfns): Defsubr it.
15807
15808 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15809 of direct code 0x3ffff.
15810
15811 * search.c (Freplace_match): Fix for the unibyte case.
15812
158132008-02-01 Kenichi Handa <handa@m17n.org>
15814
15815 * lread.c (safe_to_load_p): Fix the logic.
15816
15817 * syntax.c (scan_words): Don't treat characters belonging to
15818 different scripts as constituting a word.
15819
15820 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15821
15822 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15823
15824 * emacs.c (main): In the case of --unibyte, instead of aborting on
15825 finding non-empty buffer, make it unibyte.
15826
158272008-02-01 Kenichi Handa <handa@m17n.org>
15828
15829 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15830 to create a fontset.
15831
158322008-02-01 Dave Love <fx@gnu.org>
15833
15834 * character.c (Funibyte_char_to_multibyte): Doc fix.
15835
15836 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15837
158382008-02-01 Kenichi Handa <handa@m17n.org>
15839
15840 * fontset.c (fontset_add): Make the type `int'.
15841 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15842
15843 * character.c (unibyte_char_to_multibyte)
15844 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15845 charset_unibyte, not charset_primary.
15846
15847 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15848
15849 * charset.c (charset_unibyte): Rename from charset_primary.
15850 (Funibyte_charset): Rename from Fprimary_charset.
15851 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15852 (syms_of_charset): Adjust for the above changes.
15853
15854 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15855 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15856 it->multibyte_p is zero.
15857
15858 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15859 Delete extern.
15860
158612008-02-01 Kenichi Handa <handa@m17n.org>
15862
15863 * coding.c (Fdefine_coding_system_internal): Fix category setting
15864 for a coding system of type iso-2022.
15865
158662008-02-01 Kenichi Handa <handa@m17n.org>
15867
15868 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15869
158702008-02-01 Kenichi Handa <handa@m17n.org>
15871
15872 * syntax.c (Vnext_word_boundary_function_table): New variable.
15873 (next-word-boundary-function-table): Declare it as a Lisp variable
15874 in syms_of_syntax.
15875 (scan_words): Call functions in Vnext_word_boundary_function_table
15876 if any.
15877
15878 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15879
15880 * fontset.c (fs_load_font): If fontp->charset is not negative,
15881 return fontp without setting its members.
15882
158832008-02-01 Dave Love <fx@gnu.org>
15884
15885 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15886
15887 * m/sparc.h (HAVE_ALLOCA): Delete.
15888
15889 * s/irix6-5.h: Don't include strings.h.
15890 (bcopy, bzero, bcmp): Don't undef.
15891
15892 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15893
15894 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15895 (TIOCSIGSEND): Don't test IRIX6.
15896 (bcopy, bzero, bcmp): Define conditionally.
15897
158982008-02-01 Kenichi Handa <handa@m17n.org>
15899
15900 * buffer.c (Qas, Qmake, Qto): New variables.
15901 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15902 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15903
15904 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15905 we are inserting a process output into a multibyte buffer.
15906
15907 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15908 multibyte_char_to_unibyte.
15909
15910 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15911 by the primary charset, make it eight-bit char.
15912 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15913
15914 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15915 (charset_8_bit__control, charset_8_bit_graphic)
15916 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15917 (define_charset_internal): New function.
15918 (syms_of_charset): Call define_charset_internal for pre-defined
15919 charsets.
15920
15921 * charset.h (charset_8_bit): Extern it.
15922
15923 * coding.c (make_conversion_work_buffer): Adjust for the change
15924 of Fset_buffer_multibyte.
15925 (encode_coding_raw_text): Increment p0 in the loop.
15926
15927 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15928
15929 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15930 for the change of Fset_buffer_multibyte.
15931
15932 * fns.c (Fstring_to_multibyte): New function.
15933 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15934
159352008-02-01 Dave Love <fx@gnu.org>
15936
15937 * xfns.c (x_put_x_image): Declare args.
15938
15939 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15940 (try_font_list): Declare an arg.
15941
15942 * xdisp.c (message2_nolog, set_message): Declare an arg.
15943
15944 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15945
15946 * syntax.c (scan_sexps_forward): Declare an arg.
15947
15948 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15949 Declare an arg.
15950
15951 * lisp.h (Fnew_fontset): Declare.
15952
15953 * keymap.c (push_key_description): Call CHARACTERP correctly.
15954
15955 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15956 (face_for_char): Delete unused vars.
15957 (Fset_fontset_font): Doc fix. Delete unused vars.
15958
15959 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15960
15961 * composite.c (update_compositions): Declare arg.
15962
15963 * cm.c (calccost, cmgoto): Declare args.
15964
15965 * charset.c: Remove `emacs' conditional. Doc fixes.
15966 (map_char_table_for_charset): Declare.
15967
15968 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15969
15970 * ccl.c: Remove `emacs' conditional.
15971
159722008-02-01 Kenichi Handa <handa@m17n.org>
15973
15974 The following changes are to allow specifying multiple font
15975 patterns for a character range (specified by script or charset).
15976
15977 * Makefile.in (abbrev.o): Depend on syntax.h.
15978 (xfaces.o): Depend on charset.h.
15979
15980 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15981 SINGLE_BYTE_CHAR_P.
15982
15983 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15984
15985 * character.h (Vchar_script_table): Extern it.
15986
15987 * character.c (Vscript_alist): Delete.
15988 (Vchar_script_table, Qchar_script_table): New variable.
15989 (syms_of_character): Declare Vchar_script_table as a lisp variable
15990 and initialize it.
15991
15992 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15993 have property char-table-extra-slots, make no extra slot.
15994
15995 * dispextern.h (struct face): Delete member `charset'.
15996 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15997 SINGLE_BYTE_CHAR_P.
15998 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15999 Add prototypes.
16000 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16001 (generate_ascii_font_name): Rename from generate_ascii_font.
16002
16003 * fontset.h (get_font_repertory_func): New prototype.
16004 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16005 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16006
16007 * fontset.c (Qprepend, Qappend): New variables.
16008 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16009 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16010 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16011 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16012 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16013 (load_font_get_repertory): New functions.
16014 (fontset_set): Delete.
16015 (fontset_face): New arg FACE. Return face ID, not face.
16016 Complete re-write to handle new fontset structure. Change caller.
16017 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16018 (face_for_char): Don't call lookup_face.
16019 (make_fontset_for_ascii_face): New arg FACE.
16020 (fs_load_font): New arg CHARSET_ID. Don't check
16021 Vfont_encoding_alist here.
16022 (find_font_encoding): New function.
16023 (list_fontsets): Use STRINGP, not ! NILP.
16024 (accumulate_script_ranges): New function.
16025 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16026 re-written to handle new fontset structure.
16027 (Ffontset_font): Return a copy of element.
16028 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16029 docstring of font-encoding-alist.
16030
16031 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16032 (Fset_fotset_font): Fix arguments to 5.
16033
16034 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16035
16036 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16037 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16038 (highlight_trailing_whitespace): Adjust for the change of
16039 lookup_named_face.
16040
16041 * xfaces.c: Include charset.h.
16042 (load_face_font): Delete argument C. Change caller.
16043 (generate_ascii_font_name): Rename from generate_ascii_font.
16044 (font_name_registry): New function.
16045 (cache_face): Store ascii faces before non-ascii faces in buckets.
16046 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16047 Lookup only ascii faces.
16048 (lookup_non_ascii_face): New function.
16049 (lookup_named_face): Delete argument C. Change caller.
16050 (lookup_derived_face): Delete argument C. Change caller.
16051 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16052 a string, just call font_list with it.
16053 (choose_face_font): Delete arguments FACE and C. New arg
16054 FONT_SPEC. Change caller.
16055 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16056 Change caller.
16057 (realize_non_ascii_face): New function.
16058 (realize_x_face): Call load_face_font here.
16059 (realize_tty_face): Delete argument C. Change caller.
16060 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16061 get a face ID.
16062 (dump_realized_face): Don't print charset of FACE.
16063
16064 * xfns.c (x_set_font): Always call x_new_fontset and
16065 store_frame_parameter.
16066 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16067 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16068
16069 * xterm.h (x_get_font_repertory): Extern it.
16070
16071 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16072 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16073 it->multibyte_p is zero.
16074 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16075 (x_new_fontset): If FONTSETNAME doesn't match any existing
16076 fontsets, create a new one.
16077 (x_get_font_repertory): New function.
16078
160792008-02-01 Kenichi Handa <handa@m17n.org>
16080
16081 * coding.c (Ffind_coding_systems_region_internal): Detect an
16082 ASCII only string correctly.
16083
16084 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16085 version is 0.
16086
160872008-02-01 Kenichi Handa <handa@m17n.org>
16088
16089 * lread.c: Include "coding.h".
16090 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16091 (load_each_byte, unread_char): New variables.
16092 (readchar_backlog): Delete.
16093 (readchar): Return a character unless load_each_byte is nonzero.
16094 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16095 cons. If unread_char is not -1, simply return it.
16096 (unreadchar): Handle the case that readcharfun is
16097 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16098 (read_multibyte): Delete.
16099 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16100 (read_emacs_mule_char): New functions.
16101 (Fload): Even if the file doesn't have the extension ".elc", if
16102 safe_to_load_p returns a positive version number, assume that the
16103 file contains bytecompiled code. If the version is less than 22,
16104 load the file while decoding multibyte sequences by emacs-mule.
16105 (readevalloop): Don't use readchar_backlog.
16106 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16107 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16108 (read_escape): Delete the arg BYTEREP.
16109 (read1): Set load_each_byte to 1 temporarily while handling
16110 #@NUMBER. Don't call read_multibyte.
16111 (read_vector): Call Fread with a cons. If readcharfun is
16112 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16113 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16114 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16115 and Qload_force_doc_strings.
16116
161172008-02-01 Kenichi Handa <handa@m17n.org>
16118
16119 * xdisp.c (face_before_or_after_it_pos): Call
16120 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16121
161222008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * character.h (TRAILING_CODE_P): New macro.
16125 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16126 (string_char_with_unification): Fix prototype.
16127 (Vscript_alist): Extern it.
16128
16129 * character.c (Vscript_alist): New variable.
16130 (string_char_with_unification, str_as_unibyte)
16131 (string_escape_byte8): Add `const' to local variables.
16132 (syms_of_character): Declare script-alist as a Lisp variable.
16133
16134 * charset.h (Vcharset_ordered_list): Extern it.
16135 (charset_ordered_list_tick): Extern it.
16136 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16137 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16138 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16139 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16140 (Funify_charset): Adjust for the change of Funify_charset.
16141
16142 * charset.c (charset_ordered_list_tick): New variable.
16143 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16144 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16145 deunify intead of unify a charset.
16146 (string_xstring_p): Add `const' to local variables.
16147 (find_charsets_in_text): Add `const' to arguments and local variables.
16148 (encode_char): Adjust for the change of Funify_charset. Fix
16149 detecting of invalid code.
16150 (Fset_charset_priority): Increment charset_ordered_list_tick.
16151 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16152 and TO_CODE.
16153
16154 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16155 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16156 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16157 (decode_coding_ccl, consume_chars)
16158 (Ffind_coding_systems_region_internal)
16159 (Fcheck_coding_systems_region): Add `const' to local variables.
16160
16161 * print.c (print_object): Use octal form for printing the
16162 contents of a bool vector.
16163
161642008-02-01 Dave Love <fx@gnu.org>
16165
16166 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16167 <version == 20>: Refuse to load.
16168
161692008-02-01 Dave Love <fx@gnu.org>
16170
16171 * fns.c: Move coding.h.
16172 (Qcodeset, Qdays, Qmonths): New.
16173 (concat): Use CHARACTERP instead of INTEGERP.
16174 (Flocale_codeset): Delete.
16175 (Flanginfo): New function.
16176 (syms_of_fns): Change accordingly.
16177
16178 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16179
161802008-02-01 Dave Love <fx@gnu.org>
16181
16182 * casetab.c (init_casetab_once, init_casetab_once): Fix
16183 CHAR_TABLE_SET call.
16184
16185 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16186
16187 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16188
16189 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16190 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16191 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16192
16193 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16194
16195 * coding.c (ENCODE_DESIGNATION, decode_eol)
16196 (make_conversion_work_buffer, code_conversion_restore)
16197 (Fdefine_coding_system_internal): Convert Lisp types.
16198 (code_conversion_restore): Use EQ, not ==.
16199 (Fencode_coding_string): Fix code_convert_string call.
16200
16201 * coding.h (code_convert_region): Fix prototype.
16202
16203 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16204
16205 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16206 (Ffontset_info): Convert Lisp types.
16207
16208 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16209
16210 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16211
16212 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16213
16214 * chartab.c: Include "...h", not <...h> in some cases.
16215
16216 * callproc.c (Fcall_process): Remove unused variables.
16217
162182008-02-01 Dave Love <fx@gnu.org>
16219
16220 * coding.c (Fset_coding_system_priority): Allow null arg list.
16221
162222008-02-01 Dave Love <fx@gnu.org>
16223
16224 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16225 (Fself_insert_and_exit): Use CHARACTERP.
16226
16227 * callproc.c (Fcall_process): Remove unused vars.
16228
16229 * xterm.c (XTread_socket): Add extra dead keysyms.
16230
16231 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16232
16233 * dispextern.h: Remove prototypes for redraw_frame,
16234 redraw_garbaged_frames.
16235
16236 * cmds.c (Fself_insert_command): Use CHARACTERP.
16237
16238 * chartab.c (make_sub_char_table): Remove unused var.
16239 (Fset_char_table_default, Fmap_char_table): Doc fix.
16240
16241 * keymap.c (access_keymap): Remove generic char code.
16242 (push_key_description): Use CHARACTERP.
16243
162442008-02-01 Dave Love <fx@gnu.org>
16245
16246 * charset.c: Doc fixes.
16247 (Funify_charset): Extra checking.
16248
162492008-02-01 Dave Love <fx@gnu.org>
16250
16251 * lread.c: Remove some unused variables.
16252 (safe_to_load_p): If safe, return the magic number version byte.
16253 (Fload): Maybe use load-with-code-conversion.
16254
162552008-02-01 Kenichi Handa <handa@m17n.org>
16256
16257 * category.c (Fmodify_category_entry): Don't modify the contents
16258 of category_set for characters out of the range. Avoid
16259 unnecessary modification.
16260
16261 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16262 Vchar_unify_table. The default value of the table is now nil.
16263
16264 * character.c (syms_of_character): Setup Vchar_width_table for
16265 eight-bit-control and raw-byte chars.
16266
16267 * charset.h (enum define_charset_arg_index): Delete
16268 charset_arg_parents and add charset_arg_subset and
16269 charset_arg_superset.
16270 (enum charset_attr_index): Delete charset_parents and add
16271 charset_subset and charset_superset.
16272 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16273 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16274 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16275 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16276 (CHARSET_SUPERSET): New macros.
16277 (charset_work): Extern it.
16278 (ENCODE_CHAR): Use charset_work.
16279 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16280 (map_charset_chars): Extern it.
16281
16282 * charset.c (load_charset_map): Set the default value of encoder
16283 and deunifier char-tables to nil.
16284 (map_charset_chars): Change argument. Change callers. Use
16285 map_char_table_for_charset instead of map_char_table.
16286 (Fmap_charset_chars): New optional args from_code and to_code.
16287 (Fdefine_charset_internal): Adjust for the change of
16288 `define-charset' (:parents -> :subset or :superset).
16289 (charset_work): New variable.
16290 (encode_char, syms_of_charset): Adjust for the change of
16291 Fdefine_charset_internal.
16292 (Ffind_charset_string): Setup the vector `charsets' correctly.
16293
16294 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16295 the previous change.
16296 (char_table_ref_and_range): Adjust for the above change.
16297 (map_sub_char_table_for_charset): New function.
16298 (map_char_table_for_charset): New function.
16299
16300 * keymap.c (describe_vector): Handle a char-table directly here.
16301 (describe_char_table): Delete.
16302
16303 * lisp.h (map_charset_chars): Delete.
16304
163052008-02-01 Dave Love <fx@gnu.org>
16306
16307 * fns.c (count_combining): Comment out (unused).
16308 (Flocale_codeset): New.
16309 (syms_of_fns): Defsubr it.
16310
16311 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16312 (size_t): Remove.
16313
163142008-02-01 Dave Love <fx@gnu.org>
16315
16316 * Makefile.in (chartab.o): Depend on charset.h.
16317
163182008-02-01 Kenichi Handa <handa@m17n.org>
16319
16320 * character.c (syms_of_character): Set the default value of
16321 Vprintable_chars to Qnil.
16322
163232008-02-01 Dave Love <fx@gnu.org>
16324
16325 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16326
163272008-02-01 Kenichi Handa <handa@m17n.org>
16328
16329 * charset.c (load_charset_map): Handle the case that from < to
16330 correctly.
16331
16332 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16333 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16334 Pay attention to raw-8-bit chars.
16335
163362008-02-01 Kenichi Handa <handa@m17n.org>
16337
16338 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16339 It is not bytecompiled now.
16340
16341 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16342 (charset_jisx0208): New variables.
16343 (Fdefine_charset_internal): Setup them if appropriate.
16344 (init_charset_once): Initialize them to -1.
16345
16346 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16347 (charset_jisx0208): Extern them.
16348
16349 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16350 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16351 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16352 (setup_iso_safe_charsets): Fix arguments to Fassq.
16353 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16354 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16355 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16356 (encode_coding_iso_2022): Change the 1st arg to
16357 ENCODE_ISO_CHARACTER to a variable.
16358
163592008-02-01 Kenichi Handa <handa@m17n.org>
16360
16361 * charset.h (enum define_charset_arg_index): New enums
16362 charset_arg_min_code and charset_arg_max_code.
16363 (struct charset): New member char_index_offset.
16364
16365 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16366 Take charset->char_index_offset into account.
16367 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16368 args[charset_arg_max_code]. Setup charset.char_index_offset.
16369 (syms_of_charset): Fix args to Fdefine_charset_internal.
16370
163712008-02-01 Dave Love <fx@gnu.org>
16372
16373 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16374
163752008-02-01 Dave Love <fx@gnu.org>
16376
16377 * coding.c: Doc fixes.
16378 (Fcoding_system_aliases): Fix return value.
16379 (Qmac): Remove (duplicated) definition.
16380
163812008-02-01 Dave Love <fx@gnu.org>
16382
362654a6
JB
16383 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16384 New functions.
aac0c6e3
MR
16385
16386 * character.c (Fstring): Doc fix.
16387
16388 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16389
362654a6 16390 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16391 (font-encoding-alist): Doc fix.
16392
163932008-02-01 Dave Love <fx@gnu.org>
16394
16395 * term.c (costs_set): Declare static, non-initialized for pcc.
16396 (encode_terminal_code): Remove unused var.
16397
16398 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16399 for K&R.
16400
16401 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16402
16403 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16404 (suffixes): Move out of make_subsidiaries for K&R.
16405
16406 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16407
16408 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16409
164102008-02-01 Dave Love <fx@gnu.org>
16411
16412 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16413
16414 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16415
164162008-02-01 Yong Lu <lyongu@asia-infonet.com>
16417
16418 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16419
16420 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16421
164222008-02-01 Kenichi Handa <handa@m17n.org>
16423
16424 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16425 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16426
164272008-02-01 Kenichi Handa <handa@m17n.org>
16428
16429 * coding.c (decode_coding_charset): Adjust for the change of
16430 Fdefine_coding_system_internal.
16431 (Fdefine_coding_system_internal): For a coding system of
16432 `charset' type, store a list of charset IDs in
16433 `charset_attr_charset_valids' element of coding attributes.
16434
164352008-02-01 Kenichi Handa <handa@m17n.org>
16436
16437 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16438 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16439 caller. Handle 2-byte and 3-byte charsets correctly.
16440 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16441 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16442 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16443 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16444 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16445 sequence.
16446 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16447 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16448 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16449 and alt&rule composition.
16450 (decode_coding_iso_2022): Handle composition correctly.
16451 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16452
16453 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16454 re-defining a charset. If the charset has :emacs-mule-id, setup
16455 emacs_mule_bytes.
16456 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16457
164582008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16461 (encode_coding_big5, encode_coding_charset): If coding requires safe
16462 encoding, produce a character specified by
16463 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16464
164652008-02-01 Dave Love <fx@gnu.org>
16466
16467 * xterm.c (XSetIMValues): Declare.
16468
16469 * process.c: Conditionally include sys/wait.h, pty.h.
16470
16471 * print.c (print_object): Fix print format for 64-bit systems.
16472
16473 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16474
16475 * buffer.c (emacs_strerror): Declare.
16476
16477 * fontset.c (Fclear_face_cache): Declare.
16478 (accumulate_font_info): Comment-out (unused).
16479 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16480 variables.
16481
16482 * character.h (string_escape_byte8): Declare.
16483
16484 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16485 unused vars.
16486 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16487 (Fmap_charset_chars): Doc fix.
16488
16489 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16490 (Fset_coding_system_priority, Fset_coding_system_priority)
16491 (Fdefine_coding_system_internal): Doc fix.
16492
164932008-02-01 Dave Love <fx@gnu.org>
16494
16495 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16496
164972008-02-01 Kenichi Handa <handa@m17n.org>
16498
16499 * character.c (string_escape_byte8): Make multibyte string with
16500 correct size.
16501
16502 * charset.c (Fmake_char): Delete unnecessary code.
16503
165042008-02-01 Kenichi Handa <handa@m17n.org>
16505
16506 * xfns.c (x_encode_text): Allocate coding.destination here, and
16507 call encode_coding_object with dst_object Qnil.
16508
16509 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16510 multibyte form correctly.
16511
16512 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16513 against Vfont_encoding_alist.
16514
16515 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16516 handling of charset list.
16517 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16518 (decode_coding_object): Move point to coding->dst_pos before
16519 calling post-read-conversion function.
16520 (encode_coding_object): Give correct arguments to
16521 pre-write-conversion. Ignore the return value of
16522 pre-write-conversion function. Pay attention to the case that
16523 pre-write-conversion changes the current buffer. If dst_object is
16524 Qt, even if coding->src_bytes is zero, allocate at least one byte
16525 to coding->destination.
16526
16527 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16528
16529 * charset.c (Fmake_char): Make it more backward compatible.
16530 (Fmap_charset_chars): Fix docstring.
16531
165322008-02-01 Dave Love <fx@gnu.org>
16533
16534 * coding.c: Doc fixes.
16535 (Fdefine_coding_system_alias): Use names, not symbols, in
16536 coding-system-alist.
16537
165382008-02-01 Kenichi Handa <handa@m17n.org>
16539
16540 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16541 of calling free_realized_face.
16542
165432008-02-01 Yong Lu <lyongu@asia-infonet.com>
16544
16545 * charset.c (read_hex): Don't treat SPC as a comment starter.
16546 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16547 (Fdecode_char): Fix typo.
16548
165492008-02-01 Kenichi Handa <handa@m17n.org>
16550
16551 * charset.h (struct charset): New member `code_space_mask'.
16552
16553 * coding.c (coding_set_source): Delete the local variable beg_byte.
16554 (encode_coding_charset, Fdefine_coding_system_internal):
16555 Delete the local variable charset.
16556 (Fdefine_coding_system_internal): Setup
16557 attrs[coding_attr_charset_valids] correctly.
16558
16559 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16560 member to check if CODE is valid or not.
16561 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16562 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16563 is within the range of charset->min_code and carset->max_code.
16564
165652008-02-01 Dave Love <fx@gnu.org>
16566
16567 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16568
16569 * dispextern.h (generate_ascii_font): Fix return type.
16570
16571 * xfaces.c (generate_ascii_font): Fix arg declaration.
16572
16573 * coding.c (coding_inherit_eol_type)
16574 (Fset_terminal_coding_system_internal)
16575 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16576
165772008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16580 multiple charsets correctly.
16581
165822008-02-01 Kenichi Handa <handa@m17n.org>
16583
16584 * search.c (boyer_moore): Fix handling of multibyte character
16585 translation.
16586
16587 * xdisp.c (display_mode_element): When the variable `elt' is
16588 changed, update `this' and `lisp_string'.
16589
165902008-02-01 Kenichi Handa <handa@m17n.org>
16591
16592 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16593
16594 * callproc.c (Fcall_process): Be sure to give the current buffer
16595 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16596
16597 * charset.c (struct charset_map_entries): New struct.
16598 (load_charset_map): Rename from parse_charset_map. New args
16599 entries and n_entries. Change caller.
16600 (load_charset_map_from_file): Rename from load_charset_map.
16601 Change caller. New arg control_flag. Call load_charset_map at
16602 the tail.
16603 (load_charset_map_from_vector): New function.
16604 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16605 (encode_char): If the charset is compact, change a character index
16606 to a code point.
16607
16608 * coding.c (coding_alloc_by_making_gap): Check the case that the
16609 source and destination are the same correctly.
16610 (decode_coding_raw_text): Set coding->consumed_char and
16611 coding->consumed to 0.
16612 (produce_chars): If coding->chars_at_source is nonzero, update
16613 coding->consumed_char and coding->consumed before calling
16614 alloc_destination.
16615 (Fdefine_coding_system_alias): Register ALIAS in
16616 Vcoding_system_alist.
16617 (syms_of_coding): Define `no-conversion' coding system at the tail.
16618
16619 * fileio.c (Finsert_file_contents): Set coding_system instead of
16620 val. If the current buffer is multibyte, always call
16621 decode_coding_gap.
16622
16623 * xfaces.c (try_font_list): Give higher priority to fontset's
16624 family than face's family.
16625
166262008-02-01 Kenichi Handa <handa@m17n.org>
16627
16628 * callproc.c (Fcall_process): Be sure to give the current buffer
16629 to decode_coding_c_string.
16630
16631 * xfaces.c (try_font_list): Give a family specified in a fontset
16632 higher priority than a family specified in a face.
16633
166342008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16637 Fix arguments to insert_from_buffer.
16638
16639 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16640
166412008-02-01 Kenichi Handa <handa@m17n.org>
16642
16643 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16644 (decode_coding_gap): Set coding->dst_multibyte correctly.
16645
166462008-02-01 Kenichi Handa <handa@m17n.org>
16647
16648 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16649 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16650 (encode_coding_utf_16): Substitute coding->default_char for
16651 non-Unicode characters.
16652 (decode_coding): Don't call record_insert here.
16653 (setup_coding_system): Initialize `surrogate' of
16654 coding->spec.utf_16 to 0.
16655 (EMIT_ONE_BYTE): Fix for multibyte case.
16656
16657 * insdel.c (insert_from_gap): Call record_insert.
16658
166592008-02-01 Kenichi Handa <handa@m17n.org>
16660
16661 * casefiddle.c (casify_region): Fix multibyte case.
16662
16663 * character.c (c_string_width): Add return type `int'.
16664 (char_string_with_unification): Delete arg ADVANCED.
16665
16666 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16667 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16668 (CHAR_STRING_ADVANCE): Make it do-while statement.
16669
16670 * chartab.c (sub_char_table_set_range): Optimize for the case
16671 DEPTH == 3. Add workaround code for a GCC optimization bug.
16672
16673 * charset.c (parse_charset_map): Remove an unused variable.
16674
16675 * coding.c: Delete unused variables.
16676
16677 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16678 earlier. If inserted is zero and the coding system doesn't
16679 require flushing, don't call decode_coding_gap.
16680
16681 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16682
166832008-02-01 Kenichi Handa <handa@m17n.org>
16684
16685 The following changes are for using Unicode as an internal
16686 character model, and use UTF-8 format for buffer/string
16687 representation.
16688
16689 * .gdbinit (xchartable): Adjust for the change of char table structure.
16690 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16691
16692 * Makefile.in (obj): Add character.o and chartab.o.
16693 (lisp, shortlisp): Remove utf-8.elc.
16694 (*.o): For many files, change dependency on charset.h to
16695 character.h, and add dependency on character.h.
16696 (character.o, chartab.o): New targets.
16697
16698 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16699 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16700 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16701 of "charset.h".
16702
16703 * dired.c, filelock.c: Include "character.h".
16704
16705 * alloc.c: Include "character.h" instead of "charset.h".
16706 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16707 (syms_of_alloc): Remove defsubr for Smake_char_table.
16708
16709 * buffer.c: Include "character.h" instead of "charset.h", don't
16710 include "coding.h".
16711 (Fset_buffer_multibyte): Adjust for UTF-8.
16712
16713 * buffer.h: EXFUN Fbuffer_live_p.
16714
16715 * callproc.c: Include "character.h" instead of "charset.h".
16716 (Fcall_process): Big change for the new code-conversion APIs.
16717
16718 * casetab.c: Include "character.h" instead of "charset.h".
16719 (set_canon, set_identity, shuffle): Adjust for the new
16720 map_char_table spec.
16721 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16722 accessing the char table structure.
16723
16724 * chartab.c: New file that implements char table.
16725
16726 * category.c: Include "character.h".
16727 (copy_category_entry): New function.
16728 (copy_category_table): Call map_char_table and copy_category_entry.
16729 (Fmake_category_table): Initialize all top-level slots.
16730 (char_category_set): New function.
16731 (modify_lower_category_set): Delete.
16732 (Fmodify_category_entry): Call char_table_ref_and_range.
16733
16734 * category.h (CATEGORY_SET): Just call char_category_set.
16735
16736 * ccl.c: Include "character.h".
16737 (Qccl, Qcclp): New variables.
16738 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16739 it's less than 256.
16740 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16741 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16742 and DST type.
16743 (ccl_driver): Change types of argument, adjust code accordingly.
16744 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16745 ccl_driver.
16746 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16747
16748 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16749 New members src_multibyte, dst_multibyte, consumed, and produced.
16750 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16751 (CODING_SPEC_CCL_PROGRAM): New macro.
16752 (ccl_driver): Update prototype.
16753 (Qccl, Qcclp, Fccl_program_p): Extern them.
16754 (CHECK_CCL_PROGRAM): New macro.
16755
16756 * character.c, character.h, chartab.c: New files.
16757
16758 * charset.c: Mostly re-written. Move character and multibyte sequence
16759 handling codes to character.c.
16760
16761 * charset.h: Mostly re-written. Move character and multibyte sequence
16762 handling codes to character.h.
16763
16764 * coding.c, coding.h: Mostly re-written.
16765
16766 * composite.c: Include "character.h" instead of "charset.h".
16767 (CHAR_WIDTH): Move to character.h.
16768 (HASH_KEY, HASH_VALUE): Delete.
16769
16770 * composite.h (enum composition_method): Change order of enumeration
16771 symbols.
16772
16773 * data.c: Include "character.h" instead of "charset.h".
16774 (Faref): Call CHAR_TABLE_REF for a char table.
16775 (Faset): Call CHAR_TABLE_SET for a char table.
16776
16777 * dispextern.h (free_realized_face, check_face_attribytes)
16778 (generate_ascii_font): Extern them.
16779 (free_realized_multibyte_face): Delete extern.
16780
16781 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16782 table structure.
16783
16784 * editfns.c: Include "character.h" instead of "charset.h".
16785 (Fchar_to_string): Always call CHAR_STRING.
16786
16787 * emacs.c (main): Call init_charset_once, init_charset,
16788 syms_of_chartab, and syms_of_character.
16789
16790 * fileio.c: Include "character.h" instead of "charset.h".
16791 (Finsert_file_contents): Big change for the new code-conversion API.
16792 (choose_write_coding_system, Fwrite_region): Likewise.
16793 (build_annotations_2): Delete.
16794 (e_write): Big change for the new code-conversion API.
16795
16796 * fns.c: Include "character.h" instead of "charset.h".
16797 (copy_sub_char_table): Move to chartab.c.
16798 (Fcopy_sequence): Call copy_char_table for a char table.
16799 (concat): Delete codes calling count_multibyte.
16800 (string_char_to_byte, string_byte_to_char): Adjust for the new
16801 multibyte form.
16802 (internal_equal): Adjust for the change of char table structure.
16803 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16804 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16805 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16806 (char_table_translate, optimize_sub_char_table)
16807 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16808 chartab.c.
16809 (char_table_ref_and_index): Delete.
16810 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16811 (Fmd5): Call preferred_coding_system instead of accessing
16812 Vcoding_category_list. Adjust for the new code-conversion API.
16813 (syms_of_fns): Move defsubr for char table related functions to
16814 chartab.c.
16815
16816 * fontset.c: Mostly re-written.
16817
16818 * fontset.h (struct font_info): Change type of the member encoding_type.
16819 (enum FONT_SPEC_INDEX): New enum.
16820 (fontset_font_pattern, fs_load_font): Update prototype.
16821 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16822
16823 * indent.c: Include "character.h" instead of "charset.h".
16824 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16825
16826 * insdel.c: Include "character.h" instead of "charset.h".
16827 (copy_text): Don't refer to Vnonascii_translation_table.
16828 (insert_from_gap): New function.
16829
16830 * keyboard.c: Include "character.h" instead of "charset.h".
16831 (command_loop_1): Never call direct_output_forward_char before
16832 a non-ASCII character.
16833 (read_char): If Vkeyboard_translate_table is a char table, always
16834 translate a character.
16835
16836 * keymap.c: Include "character.h".
16837 (store_in_keymap): Handle the case that IDX is a cons.
16838 (Fdefine_key): Handle the case that KEY is a cons and the car part
16839 is also a cons (range).
16840 (push_key_description): Adjust for the new character code.
16841 (describe_vector): Call describe_char_table for a char table.
16842 (describe_char_table): New function.
16843
16844 * keymap.h (describe_char_table): Extern it.
16845
16846 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16847 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16848 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16849 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16850 Delete.
16851 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16852 structure.
16853 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16854 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16855 (CHARTAB_SIZE_BITS_3): New macros.
16856 (chartab_size): Extern it.
16857 (struct Lisp_Char_Table): Re-design.
16858 (struct Lisp_Sub_Char_Table): New structure.
16859 (HASH_KEY, HASH_VALUE): Move from fns.c.
16860 (CHARACTERBITS): Define as 22.
16861 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16862 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16863 (GC_SUB_CHAR_TABLE_P): New macro.
16864 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16865 (code_convert_string_norecord): Deleted extern.
16866 (init_character_once, syms_of_character, init_charset)
16867 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16868
16869 * lread.c: Include "character.h".
16870 (read_multibyte): New arg NBYTES.
16871 (read_escape): Change the meaning of returned *BYTEREP.
16872 (to_multibyte): Delete.
16873 (read1): Adjust the handling of char table and string.
16874
16875 * print.c: Include "character.h" instead of "charset.h".
16876 (print_string): Convert 8-bit raw bytes to octal form by
16877 string_escape_byte8.
16878 (print_object): Adjust for the new multibyte form. Print 8-bit
16879 raw bytes always in octal form. Handle sub char table correctly.
16880
16881 * process.c: Include "character.h" instead of "charset.h".
16882 (read_process_output, send_process): Adjust for the new
16883 code-conversion API.
16884
16885 * puresize.h (BASE_PURESIZE): Increase.
16886
16887 * regex.c: Include "character.h" instead of "charset.h".
16888 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16889 (regex_compile): Accept a range whose starting and ending
16890 character have different leading bytes.
16891 (analyse_first): Adjust for the above change.
16892
16893 * search.c: Include "character.h" instead of "charset.h".
16894 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16895 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16896
16897 * syntax.c: Include "character.h" instead of "charset.h".
16898 (syntax_parent_lookup): Delete.
16899 (Fmodify_syntax_entry): Accept a cons as CHAR.
16900 (skip_chars): Adjust for the new multibyte form.
16901 (init_syntax_once): Call char_table_set_range instead of directly
16902 accessing the structure of a char table.
16903
16904 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16905 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16906 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16907 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16908
16909 * term.c: Include "buffer.h" and "character.h".
16910 (encode_terminal_code, write_glyphs): Adjust for the new
16911 code-conversion API.
16912 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16913
16914 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16915
16916 * xdisp.c: Include "character.h".
16917 (get_next_display_element): Adjust for the new multibyte form.
16918 (disp_char_vector): Adjust for the new char table structure.
16919 (decode_mode_spec_coding): Adjust for the new structure of
16920 coding system.
16921 (decode_mode_spec): Adjust for the new code-conversion API.
16922
16923 * xfaces.c: Include "character.h" instead of "charset.h".
16924 (load_face_font): Adjust for the change of choose_face_font and
16925 FS_LOAD_FONT.
16926 (generate_ascii_font): New function.
16927 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16928 (set_font_frame_param): Adjust for the change of choose_face_font.
16929 (free_realized_face): Make it public.
16930 (free_realized_faces_for_fontset): Rename from
16931 free_realized_multibyte_face. Free also faces realized for ASCII.
16932 (choose_face_font): Change arguments. Adjust for the change of
16933 fontset_font_pattern and FS_LOAD_FONT.
16934
16935 * xfns.c: Include "character.h".
16936 (x_encode_text): Adjust for the new code-conversion API.
16937
16938 * xselect.c: Don't include "charset.h".
16939 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16940
16941 * xterm.c: Include "character.h".
16942 (x_encode_char): New argument CHARSET. Change caller.
16943 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16944 Call ENCODE_CHAR instead of SPLIT_CHAR.
16945 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16946 CHAR_WIDTH instead of CHARSET_WIDTH.
16947 (XTread_socket): Adjust for the new code-conversion API.
16948 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16949 (x_load_font): Adjust for the change of struct font.
16950
169512008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16952
16953 * xfaces.c (face_at_buffer_position): Remove unused vars.
16954
169552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16956
16957 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16958 Fix overflow checking.
16959
169602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16961
16962 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16963 Cancel previous change.
16964
169652008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16966
16967 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16968 ccl->eight_bit_control. Fix check for buffer overflow.
16969 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16970 (ccl_driver): Initialize extra_bytes to 0.
16971
169722008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16973
16974 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16975 return it ORed with ctrl_modifier.
16976
169772008-01-29 Miles Bader <miles@gnu.org>
16978
16979 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16980
169812008-01-28 Jason Rumney <jasonr@gnu.org>
16982
16983 * w32.c (stat): Don't double check for networked drive.
16984
169852008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16986
16987 * window.c (run_window_configuration_change_hook): New function.
16988 Code extracted from set_window_buffer. Set the selected frame.
16989 (set_window_buffer): Use it.
16990 * window.h (run_window_configuration_change_hook): Declare.
16991 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16992
16993 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16994
169952008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16996
16997 * Makefile.in: Remove references to unused macros.
16998
169992008-01-26 Eli Zaretskii <eliz@gnu.org>
17000
17001 * w32.c (g_b_init_get_sid_sub_authority)
17002 (g_b_init_get_sid_sub_authority_count): New static variables.
17003 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17004 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17005 (init_user_info): Use them to retrieve uid and gid.
17006 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17007 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17008 st_uid and st_gid of the file.
17009
170102008-01-26 Jason Rumney <jasonr@gnu.org>
17011
17012 * w32.c (logon_network_drive): New function.
17013 (stat): Use it.
17014
170152008-01-26 Chong Yidong <cyd@stupidchicken.com>
17016
17017 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17018 invisible text covered with an ellipsis.
17019
170202008-01-25 Richard Stallman <rms@gnu.org>
17021
17022 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17023 jump back to beginning. Move some other initializations after that.
17024 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17025 New variables.
17026 (syms_of_xdisp): Init them.
17027
17028 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17029
17030 * buffer.c (reset_buffer_local_variables):
17031 Implement `permanent-local-hook'.
17032 (Qpermanent_local_hook): New variable.
17033 (syms_of_buffer): Init and staticpro it.
17034
170352008-01-25 Michael Albinus <michael.albinus@gmx.de>
17036
17037 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17038
170392008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17040
17041 * fns.c (Fclrhash): Return TABLE.
17042
170432008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17044
17045 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17046 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17047 is set even without positional changes.
17048 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17049
17050 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17051
170522008-01-23 Jason Rumney <jasonr@gnu.org>
17053
17054 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17055
17056 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17057 the unicode range available in MULE by locale-coding-system.
17058 Improve dbcs lead byte detection. Set event timestamp and modifiers
17059 earlier.
17060
170612008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17062
17063 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17064 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17065 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17066 when used on child processes.
17067
170682008-01-21 Michael Albinus <michael.albinus@gmx.de>
17069
17070 * dbusbind.c (Fdbus_method_return_internal): Rename from
17071 Fdbus_method_return.
17072 (Fdbus_unregister_object): Move to dbus.el.
17073 (Fdbus_call_method, Fdbus_method_return_internal)
17074 (Fdbus_send_signal): Improve debug messages.
17075
170762008-01-20 Martin Rudalics <rudalics@gmx.at>
17077
17078 * undo.c (undo_inhibit_record_point): New variable.
17079 (syms_of_undo): Initialize it.
17080 (record_point): Don't record point when undo_inhibit_record_point
17081 is set.
17082
170832008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17084
17085 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17086
17087 * xdisp.c (Qauto_hscroll_mode): New var.
17088 (syms_of_xdisp): Initialize it.
17089 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17090 window's buffer.
17091 (hscroll_windows): Don't check automatic_hscrolling_p here.
17092
17093 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17094 vscroll if we're setting window-buffer to the value it already has.
17095
170962008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17097
17098 * m/intel386.h: Remove references to XENIX.
17099
171002008-01-17 Andreas Schwab <schwab@suse.de>
17101
17102 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17103 instead of HAVE_X86_64_LIB64_DIR.
17104 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17105
171062008-01-17 Glenn Morris <rgm@gnu.org>
17107
17108 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17109 to HAVE_X86_64_LIB64_DIR.
17110
171112008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17112
17113 * s/irix3-3.h:
17114 * s/irix4-0.h:
17115 * s/386-ix.h:
17116 * s/domain.h:
17117 * s/hpux9-x11r4.h:
17118 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17119
17120 * sysdep.c: Remove code containing references to symbols defined
17121 by unsupported systems.
17122
171232008-01-16 Glenn Morris <rgm@gnu.org>
17124
17125 * coding.c (select-safe-coding-system-function): Doc fix.
17126
171272008-01-15 Glenn Morris <rgm@gnu.org>
17128
17129 * config.in: Revert 2008-01-13 change: this is a generated file.
17130
171312008-01-13 Tom Tromey <tromey@redhat.com>
17132
17133 * lisp.h: Fix typo.
17134
171352008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17136
17137 * m/sequent-ptx.h:
17138 * m/sequent.h:
17139 * s/ptx.h:
17140 * s/ptx4-2.h:
17141 * s/ptx4.h: Remove files for systems no longer supported.
17142
17143 * callproc.c (Fcall_process): Fix previous change.
17144
171452008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17146
17147 * unexsunos4.c: Remove file, system not supported anymore.
17148
17149 * m/mips.h:
17150 * m/intel386.h:
17151 * callproc.c:
17152 * config.in:
17153 * ecrt0.c:
17154 * emacs.c:
17155 * fileio.c:
17156 * frame.c:
17157 * getpagesize.h:
17158 * keyboard.c:
17159 * lread.c:
17160 * process.c:
17161 * puresize.h:
17162 * sysdep.c:
17163 * systty.h:
17164 * syswait.h:
17165 * unexec.c:
17166 * xdisp.c:
17167 * alloc.c: Remove code containing references to symbols defined by
17168 unsupported systems.
17169
171702008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17171
17172 * coding.c (detect_coding_mask): Fix previous change.
17173
171742008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17175
17176 * coding.c (detect_coding_iso2022): New arg
17177 latin_extra_code_state. Allow Latin extra codes only
17178 when *latin_extra_code_state is nonzero.
17179 (detect_coding_mask): If there is a NULL byte, detect the encoding
17180 as UTF-16 or binary. If Latin extra codes exist, detect the
17181 encoding as ISO-2022 only when there's no other proper encoding is
17182 found.
17183
171842008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17185
17186 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17187 #ifdef MAC_OS.
17188
171892008-01-08 Richard Stallman <rms@gnu.org>
17190
17191 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17192
171932008-01-06 Nick Roberts <nickrob@snap.net.nz>
17194
17195 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17196 menu bar in parentheses.
17197
171982008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17199
17200 * m/7300.h:
17201 * m/acorn.h:
17202 * m/alliant-2800.h:
17203 * m/alliant.h:
17204 * m/alliant1.h:
17205 * m/alliant4.h:
17206 * m/altos.h:
17207 * m/amdahl.h:
17208 * m/apollo.h:
17209 * m/att3b.h:
17210 * m/aviion-intel.h:
17211 * m/aviion.h:
17212 * m/celerity.h:
17213 * m/clipper.h:
17214 * m/cnvrgnt.h:
17215 * m/convex.h:
17216 * m/cydra5.h:
17217 * m/delta88k.h:
17218 * m/dpx2.h:
17219 * m/dual.h:
17220 * m/elxsi.h:
17221 * m/f301.h:
17222 * m/gould-np1.h:
17223 * m/gould.h:
17224 * m/i860.h:
17225 * m/ibmps2-aix.h:
17226 * m/ibmrt-aix.h:
17227 * m/ibmrt.h:
17228 * m/irist.h:
17229 * m/is386.h:
17230 * m/isi-ov.h:
17231 * m/mega68.h:
17232 * m/mg1.h:
17233 * m/news-r6.h:
17234 * m/news-risc.h:
17235 * m/news.h:
17236 * m/nh3000.h:
17237 * m/nh4000.h:
17238 * m/ns16000.h:
17239 * m/ns32000.h:
17240 * m/nu.h:
17241 * m/orion.h:
17242 * m/orion105.h:
17243 * m/paragon.h:
17244 * m/pfa50.h:
17245 * m/plexus.h:
17246 * m/pyramid.h:
17247 * m/pyrmips.h:
17248 * m/sh3el.h:
17249 * m/sps7.h:
17250 * m/sr2k.h:
17251 * m/stride.h:
17252 * m/sun1.h:
17253 * m/sun2.h:
17254 * m/sun3-68881.h:
17255 * m/sun3-fpa.h:
17256 * m/sun3-soft.h:
17257 * m/sun3.h:
17258 * m/sun386.h:
17259 * m/symmetry.h:
17260 * m/tad68k.h:
17261 * m/tahoe.h:
17262 * m/targon31.h:
17263 * m/tek4300.h:
17264 * m/tekxd88.h:
17265 * m/tower32.h:
17266 * m/tower32v3.h:
17267 * m/ustation.h:
17268 * m/wicat.h:
17269 * m/xps100.h:
17270 * s/cxux.h:
17271 * s/cxux7.h:
17272 * s/dgux.h:
17273 * s/dgux4.h:
17274 * s/dgux5-4-3.h:
17275 * s/dgux5-4r2.h:
17276 * s/esix.h:
17277 * s/esix5r4.h:
17278 * s/hiuxmpp.h:
17279 * s/hiuxwe2.h:
17280 * s/iris3-5.h:
17281 * s/iris3-6.h:
17282 * s/isc2-2.h:
17283 * s/isc3-0.h:
17284 * s/isc4-0.h:
17285 * s/isc4-1.h:
17286 * s/newsos5.h:
17287 * s/newsos6.h:
17288 * s/osf1.h:
17289 * s/osf5-0.h:
17290 * s/riscix1-1.h:
17291 * s/riscix12.h:
17292 * s/sco4.h:
17293 * s/sco5.h:
17294 * s/sunos4-0.h:
17295 * s/sunos4-1.h:
17296 * s/sunos413.h:
17297 * s/sunos4shr.h:
17298 * s/umax.h:
17299 * s/unipl5-2.h:
17300 * s/xenix.h:
17301 * cxux-crt0.s:
17302 * unexapollo.c:
17303 * unexconvex.c:
17304 * unexenix.c:
17305 * unexsni.c: Remove files for systems no longer supported.
17306
17307 * m/intel386.h: Remove references to unsupported systems.
17308
17309 * w32.c (get_emacs_configuration): Remove reference to i860.
17310
17311 * sysdep.c: Remove dead code.
17312
173132008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17314
17315 * s/rtu.h:
17316 * m/masscomp.h: Remove files. Platform is obsolete.
17317
173182008-01-04 Michael Albinus <michael.albinus@gmx.de>
17319
17320 * dbusbind.c (Fdbus_method_return): New function.
17321 (xd_read_message): Add the serial number to the event.
17322 (Fdbus_register_method): Activate the function.
17323
173242008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17325
17326 * keyboard.c (read_key_sequence): Fix typo.
17327
173282008-01-03 Michael Albinus <michael.albinus@gmx.de>
17329
17330 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17331 (xd_signature, xd_append_arg): Handle element type detection for
17332 empty arrays.
17333 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17334 SDATA () calls; this must be solved more general.
17335 (Fdbus_register_signal): Use SBYTES instead of strlen.
17336
173372008-01-03 Magnus Henoch <magnus@zemdatav>
17338
17339 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17340 unsigned int for byte values (necessary for big-endian platform).
17341 (Fdbus_call_method): Handle the case of no returned arguments.
17342
173432007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17344
17345 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17346
173472007-12-31 Magnus Henoch <mange@freemail.hu>
17348
17349 * dbusbind.c (xd_signature): Signature of variant is just "v".
17350
173512007-12-30 Michael Albinus <michael.albinus@gmx.de>
17352
17353 * dbusbind.c: Fix several errors and compiler warnings.
17354 Reported by Tom Tromey <tromey@redhat.com>.
17355 (XD_ERROR, XD_DEBUG_MESSAGE)
17356 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17357 (xd_append_arg): Part for basic D-Bus types rewritten.
17358 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17359 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17360 appropriate.
17361 (xd_read_message): Return Qnil. Don't signal an error; it is not
17362 useful during event reading.
17363 (Fdbus_register_signal): Signal an error if the check for
17364 FUNCTIONP fails.
17365 (Fdbus_register_method): New function. The implementation is not
17366 complete, the call of the function signals an error therefore.
17367 (Fdbus_unregister_object): New function, renamed from
17368 Fdbus_unregister_signal. The initial check signals an error, if
17369 the object is not well formed.
17370
173712007-12-30 Richard Stallman <rms@gnu.org>
17372
17373 * textprop.c (get_char_property_and_overlay):
17374 Signal error if POSITION is out of range in a buffer.
17375
173762007-12-29 Martin Rudalics <rudalics@gmx.at>
17377
17378 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17379 because the original parameters are in pure storage now.
17380
173812007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17382
17383 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17384
173852007-12-22 Eli Zaretskii <eliz@gnu.org>
17386
17387 * callint.c (syms_of_callint) <command-history>: Add reference to
17388 history-length in the doc string.
17389
173902007-12-17 Jason Rumney <jasonr@gnu.org>
17391
17392 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17393 before passing as wParam.
17394
173952007-12-22 Michael Albinus <michael.albinus@gmx.de>
17396
17397 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17398 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17399 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17400 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17401 as number.
17402 (Fdbus_call_method): Fix docstring.
17403
174042007-12-21 Michael Albinus <michael.albinus@gmx.de>
17405
17406 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17407 New macros.
17408 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17409 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17410 Simplify.
17411 (xd_signature): New function.
17412 (xd_append_arg): Compute also signatures. Major rewrite.
17413 (xd_retrieve_arg): Make debug messages friendly.
17414 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17415 Check for signatures of arguments.
17416
174172007-12-19 Michael Albinus <michael.albinus@gmx.de>
17418
17419 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17420 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17421 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17422 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17423 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17424 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17425 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17426 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17427 (xd_retrieve_value): Remove. Functionality included in ...
17428 (xd_append_arg): New function.
17429 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17430
174312007-12-16 Michael Albinus <michael.albinus@gmx.de>
17432
17433 * dbusbind.c (top): Include <stdio.h>.
17434 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17435 dbus_message_new_method_call and dbus_message_new_signal.
17436 (Fdbus_register_signal): Rename unique_name to uname.
17437 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17438 non-existing unique name. Fix typos in matching rule. Return an
17439 object which is useful in Fdbus_unregister_signal.
17440 (Fdbus_unregister_signal): Reimplementation, in order to remove
17441 only the corresponding entry.
17442 (Vdbus_registered_functions_table): Change the order of entries.
17443 Apply these changes in xd_read_message and Fdbus_register_signal.
17444
174452007-12-16 Andreas Schwab <schwab@suse.de>
17446
17447 * fileio.c (Finsert_file_contents): Fix overflow check to not
17448 depend on undefined integer overflow.
17449
174502007-12-14 Jason Rumney <jasonr@gnu.org>
17451
17452 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17453 for characters above 127.
17454
174552007-12-13 Jason Rumney <jasonr@gnu.org>
17456
17457 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17458 before dereferencing array.
17459 (lookup_vk_code): Remove zero comparison.
17460
174612007-12-14 Michael Albinus <michael.albinus@gmx.de>
17462
17463 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17464 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17465 Use `unsigned int' instead of `uint'.
17466 (xd_read_message, Fdbus_register_signal): Split expressions into
17467 multiple lines before operators "&&" and "||", according to the
17468 GNU Coding Standards.
17469
174702007-12-14 Eli Zaretskii <eliz@gnu.org>
17471
17472 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17473
174742007-12-12 Juri Linkov <juri@jurta.org>
17475
17476 * buffer.c (Frename_buffer): In interactive spec replace
17477 `read-buffer' with `read-string' that uses `buffer-name-history'
17478 as history, and the current buffer's name as default.
17479
174802007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17481
17482 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17483 manipulating the backtrace manually.
17484 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17485 (struct backtrace, backtrace_list): Remove.
17486 (command_loop_1): Remove dead var `no_direct'.
17487
17488 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17489 preserve non-built-in buffer-local variables.
17490 (Fkill_all_local_variables): Don't re-create&re-set permanent
17491 buffer-local variables.
17492
174932007-12-09 Juri Linkov <juri@jurta.org>
17494
17495 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17496 Lisp code that uses `read-buffer' with current buffer as default.
17497
174982007-12-08 Michael Albinus <michael.albinus@gmx.de>
17499
17500 * dbusbind.c (xd_read_message): Generate an event for every
17501 registered handler. There might be several handlers registered
17502 for the same signal.
17503 (Fdbus_register_signal): Don't overwrite a registration for the
17504 same signal. Add a new registration if handlers are different.
17505 (Vdbus_registered_functions_table): Rework doc string.
17506
175072007-12-07 Michael Albinus <michael.albinus@gmx.de>
17508
17509 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17510 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17511 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17512 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17513 Unify argument lists.
17514 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17515 arguments and hash table keys. Use unique name for service.
17516 (Fdbus_unregister_signal): Remove checks.
17517 (Vdbus_registered_functions_table): Fix doc string.
17518
175192007-12-05 Magnus Henoch <mange@freemail.hu>
17520
17521 * process.c (make_process): Initialize pty_flag to 0.
17522
175232007-12-05 Jason Rumney <jasonr@gnu.org>
17524
17525 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17526 specified XBMs.
17527
175282007-12-05 Richard Stallman <rms@gnu.org>
17529
17530 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17531
175322007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17533
17534 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17535 New variable.
17536 (mac_try_close_socket) [MAC_OSX]: New function.
17537 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17538 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17539
17540 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17541 Use mac_try_close_socket.
17542
175432007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17544
17545 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17546 reloc_base.
17547 (copy_dysymtab): Compute relocation base here.
17548 (rebase_reloc_address) [__ppc64__]: New function.
17549 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17550 changed.
17551
175522007-12-05 Jason Rumney <jasonr@gnu.org>
17553
17554 * w32proc.c (sys_spawnve): Quote args with wildcards.
17555
175562007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17557
17558 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17559 __objc_* sections.
17560 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17561
175622007-12-05 Michael Albinus <michael.albinus@gmx.de>
17563
17564 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17565 Move check for Vdbus_registered_functions_table to
17566 xd_read_queued_messages.
17567 (xd_read_queued_messages): Protect xd_read_message calls by
17568 internal_condition_case_1.
17569
175702007-12-04 Michael Albinus <michael.albinus@gmx.de>
17571
17572 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17573 Qdbus_system_bus and Qdbus_session_bus, respectively.
17574 (Vdbus_intern_symbols): Remove.
17575 (Vdbus_registered_functions_table): New hash table.
17576 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17577 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17578 Rewrite in order to manage registered functions by hash table
17579 Vdbus_registered_functions_table.
17580
175812007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17582
17583 * xterm.c: Update URL to Window Manager Specification in comment.
17584
175852007-12-02 Michael Albinus <michael.albinus@gmx.de>
17586
17587 * config.in (HAVE_DBUS): Add.
17588
17589 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17590 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17591 (obj): Add $(DBUS_OBJ).
17592 (LIBES): Add $(DBUS_LIBS).
17593 (dbusbind.o): New target.
17594
17595 * dbusbind.c: New file.
17596
17597 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17598
17599 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17600 (Qdbus_event): New Lisp symbol.
17601 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17602 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17603 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17604
17605 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17606
176072007-12-01 Richard Stallman <rms@gnu.org>
17608
17609 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17610
176112007-11-30 Jason Rumney <jasonr@gnu.org>
17612
17613 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17614 (w32con_reset_terminal_modes): Clear screen buffer.
17615 (w32_face_attributes): Don't use color indexes that are out of range.
17616 Only reverse the default colors.
17617
17618 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17619 WINDOWSNT.
17620
17621 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17622
176232007-11-29 Jason Rumney <jasonr@gnu.org>
17624
17625 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17626 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17627 if the terminal colors are initialized.
17628 (unspecified_fg, unspecified_bg): Remove unused declarations.
17629
176302007-11-29 Andreas Schwab <schwab@suse.de>
17631
17632 * keyboard.c (apply_modifiers): Fix typo.
17633
176342007-11-29 Richard Stallman <rms@gnu.org>
17635
17636 * keymap.c (Fcurrent_local_map): Doc fix.
17637
176382007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17639
17640 * s/gnu-kfreebsd.h: New file.
17641
176422007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17643
17644 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17645 Don't cast redundantly.
17646
17647 * keyboard.c (KEY_TO_CHAR): New macro.
17648 (parse_modifiers, apply_modifiers): Accept integer arguments.
17649 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17650 for chars and symbol keys.
17651 After doing such remapping, apply function-key-map again.
17652
176532007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17654
17655 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17656 compiled anymore.
17657
176582007-11-26 Andreas Schwab <schwab@suse.de>
17659
17660 * process.c (list_processes_1): Fix indentation level of the
17661 command column.
17662
176632007-11-23 Andreas Schwab <schwab@suse.de>
17664
17665 * editfns.c (Fformat): Handle %c specially since it requires the
17666 argument to be of type int.
17667
176682007-11-23 Markus Triska <markus.triska@gmx.at>
17669
17670 * emacs.c (main): Call init_editfns before init_process, since
17671 init_process sets Vprocess_connection_type depending on OS release.
17672
176732007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17674
17675 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17676 (find_symbol_value): Use do_symval_forwarding.
17677
17678 * data.c (set_internal): Set the value in the `cons-cell' (for
17679 Buffer_Local_values) not only for frame-local variables.
17680
176812007-11-22 Andreas Schwab <schwab@suse.de>
17682
17683 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17684 values to sprintf.
17685 * keymap.c (Fsingle_key_description): Likewise.
17686 * print.c (print_object): Likewise.
17687
176882007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17689
17690 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17691 file for image is nil.
17692
176932007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17694
17695 * term.c: Include stdarg.h.
17696 (fatal): Implement using varargs.
17697 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17698
176992007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17700
17701 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17702 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17703 Update call to buffer_slot_type_mismatch.
17704 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17705 (buffer_slot_type_mismatch): Update.
17706 * buffer.c (buffer_local_types): Remove.
17707 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17708 (defvar_per_buffer): Set the type in the buffer_objfwd.
17709
177102007-11-21 Jason Rumney <jasonr@gnu.org>
17711
17712 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17713 CreateFileMapping returns NULL on failure.
17714
177152007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17716
17717 * search.c (Fset_match_data): Remove the `evaporate' feature.
17718 (unwind_set_match_data): Don't use the `evaporate' feature.
17719
177202007-11-21 Jason Rumney <jasonr@gnu.org>
17721
17722 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17723
17724 * w32console.c (w32con_write_glyphs): Remove unused variables.
17725
177262007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17727
17728 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17729
17730 * s/darwin.h (MULTI_KBOARD): Remove.
17731
17732 * macfns.c (x_create_tip_frame, Fx_create_frame)
17733 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17734
177352007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17736
17737 * buffer.c (Fbuffer_local_value): Remove redundant test.
17738 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17739 than in `current-buffer' to match the comment.
17740 Do the swap using swap_in_global_binding.
17741
17742 * data.c (store_symval_forwarding, set_internal):
17743 * eval.c (specbind): Remove dead code.
17744
17745 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17746 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17747 Since we do not want to see internal Lisp_*fwd objects here.
17748
177492007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17750
17751 * sysdep.c (init_system_name): Use getaddrinfo if available.
17752
17753 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17754 (x_scroll_bar_note_movement): start, end, with, height in struct
17755 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17756
177572007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17758
17759 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17760
177612007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17762
17763 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17764 This undoes Richard's change of 14-Oct-2002.
17765
17766 * alloc.c (allocate_other_vector):
17767 * lisp.h (allocate_other_vector): Remove.
17768
17769 * window.c (struct save_window_data): Move non-lisp data to the end
17770 and make it `int' rather than Lisp_Object.
17771 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17772 Done wrap/unwrap integer values.
17773 (Fset_window_configuration, compare_window_configurations):
17774 Update use of fields to their new types.
17775
17776 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17777 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17778 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17779 (SET_SCROLL_BAR_X_WINDOW): Remove.
17780 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17781 Access the new x_window field directly.
17782 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17783 Don't wrap/unwrap integers into Lisp_Objects.
17784 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17785 (x_scroll_bar_report_motion):
17786 Don't wrap/unwrap integers into Lisp_Objects.
17787 (x_term_init): Use SDATA.
17788 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17789 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17790 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17791 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17792 * xfns.c (x_set_background_color):
17793 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17794 Access the new x_window field directly.
17795
17796 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17797 (allocate_pseudovector): Make non-static.
17798
17799 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17800 (allocate_pseudovector): Declare.
17801 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17802
178032007-11-15 Andreas Schwab <schwab@suse.de>
17804
17805 * editfns.c (Fformat): Correctly format EMACS_INT values.
17806 Also take precision into account when formatting an integer.
17807
17808 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17809
178102007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17811
17812 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17813 (syms_of_keyboard): Defsubr it.
17814
17815 * data.c (swap_in_global_binding): Fix longstanding bug where
17816 store_symval_forwarding was not called with the right second argument,
17817 thus causing objfwd-ing from being dropped.
17818
178192007-11-14 Juanma Barranquero <lekktu@gmail.com>
17820
17821 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17822 (Fx_display_pixel_height, Fx_display_planes)
17823 (Fx_display_color_cells, Fx_server_max_request_size)
17824 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17825 (Fx_display_visual_class, Fx_display_save_under):
17826 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17827 (Fx_display_pixel_height, Fx_display_planes)
17828 (Fx_display_color_cells, Fx_server_max_request_size)
17829 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17830 (Fx_display_mm_height, Fx_display_mm_width)
17831 (Fx_display_backing_store, Fx_display_visual_class)
17832 (Fw32_select_font, Fx_display_save_under):
17833 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17834 (Fx_display_pixel_height, Fx_display_planes)
17835 (Fx_display_color_cells, Fx_server_max_request_size)
17836 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17837 (Fx_display_save_under): Fix typos in docstrings.
17838
178392007-11-14 Juanma Barranquero <lekktu@gmail.com>
17840
17841 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17842 corresponding to deleted entries; they are an implementation detail.
17843 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17844 Remove variables.
17845 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17846 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17847 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17848 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17849 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17850 (Fw32_define_rgb_color, Fw32_load_color_file)
17851 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17852 Fix typos in docstrings.
17853 (Fx_server_version): Reflow docstring.
17854 (Fw32_shell_execute): Doc fixes.
17855
178562007-11-13 Juanma Barranquero <lekktu@gmail.com>
17857
17858 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17859 if w32_parse_hot_key returned nil.
17860
178612007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17862
17863 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17864
178652007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17866
aac0c6e3
MR
17867 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17868
17869 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17870
17871 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17872 Remove W32_SCROLL_BAR_CLICK_EVENT.
17873
17874 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17875 Add MULTIMEDIA_KEY_EVENT.
17876
17877 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17878 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17879 (make_lispy_event) [WINDOWSNT]: Use it to translate
17880 MULTIMEDIA_KEY_EVENT.
17881
17882 * w32term.h (WM_APPCOMMAND): Define if not already.
17883 (GET_APPCOMMAND_LPARAM): Likewise.
17884
17885 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17886 WM_APPCOMMAND.
17887
17888 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17889 (syms_of_w32fns): Export and initialize it.
17890 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17891
178922007-11-09 Chong Yidong <cyd@stupidchicken.com>
17893
17894 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17895 twice.
17896
17897 * xdisp.c (handle_face_prop): Fix last change.
17898
178992007-11-09 Richard Stallman <rms@gnu.org>
17900
17901 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17902 not just for after-strings and before-strings.
17903 Call face_for_overlay_string and pass the overlay to it.
17904 (handle_display_prop): Determine whether property came from an overlay.
17905 Pass OVERLAY arg to handle_single_display_spec.
17906 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17907 (load_overlay_strings): Fill in it->string_overlays.
17908 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17909
17910 * xfaces.c (face_for_overlay_string): Function renamed from
17911 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17912
17913 * dispextern.h (struct it): New elt string_overlays.
17914 New elt from_overlay, also in stack.
17915 Rearrange a few elements.
17916 (face_for_overlay_string): Decl renamed from
17917 face_at_buffer_position_no_overlays, and add argument.
17918
179192007-11-09 Richard Stallman <rms@gnu.org>
17920
17921 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17922 to get the base face for an overlay string.
17923
17924 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17925
17926 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17927
17928 * xdisp.c (handle_stop): Move some code out of loop.
17929
179302007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17931
17932 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17933 Fix conversion from Lisp object to ATSUFontID.
17934
179352007-11-09 Jason Rumney <jasonr@gnu.org>
17936
17937 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17938
179392007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17940
17941 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17942 Don't assume regions are aligned to page boundary.
17943 (print_load_command_name): Add LC_UUID if defined.
17944
179452007-11-09 Richard Stallman <rms@gnu.org>
17946
17947 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17948
179492007-11-07 Jason Rumney <jasonr@gnu.org>
17950
17951 * s/windows95.h: Remove.
17952
179532007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17954
17955 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17956 abort with a message on unhandled store_type values.
17957
179582007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17959
17960 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17961 Remove HAVE_X11R5 and HAVE_X11R4.
17962
179632007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17964
17965 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17966
179672007-11-01 Johan Bockgård <bojohan@gnu.org>
17968
17969 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17970 Don't set s->stippled_p here, since it has already been set by
17971 x_set_glyph_string_gc from x_draw_glyph_string.
17972
179732007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17974
17975 * sunfns.c: Remove file.
17976
17977 * m/sun386.h:
17978 * m/sun2.h:
17979 * m/sparc.h: Remove Sun windows code.
17980
179812007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17982
17983 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17984 (init_keyboard): Set current_kboard's window-system to nil.
17985 (tty_read_avail_input): Typo.
17986 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17987
179882007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17989
17990 * s/usg5-4.h:
17991 * s/usg5-3.h:
17992 * s/ptx.h:
17993 * m/is386.h:
17994 * m/ibmps2-aix.h:
17995 * Makefile.in: Remove all mentions of X10.
17996
17997 * dispnew.c (syms_of_display): Don't mention version 10.
17998
179992007-10-28 Juanma Barranquero <lekktu@gmail.com>
18000
18001 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18002 ($(BLD)/abbrev.$(O)): Remove.
18003
180042007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18005
18006 Rewrite abbrev.c in Elisp.
18007 * image.c (Qcount): Don't declare as extern.
18008 (syms_of_image): Initialize and staticpro `Qcount'.
18009 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18010 * emacs.c (main): Don't call syms_of_abbrev.
18011 * Makefile.in (obj): Remove abbrev.o.
18012 (abbrev.o): Remove.
18013 * abbrev.c: Remove.
18014
180152007-10-26 Martin Rudalics <rudalics@gmx.at>
18016
18017 * window.c (window_min_size_2): Don't count header-line.
18018
180192007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18020
18021 * frame.h (struct frame): Move all bit fields after the first bit
18022 field to take advantage of the available space. Group all the
18023 chars together to reduce wasted space due to padding.
18024
180252007-10-26 Juanma Barranquero <lekktu@gmail.com>
18026
18027 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18028
18029 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18030 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18031 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18032 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18033 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18034 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18035 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18036 (last_marked, mark_object_loop_halt): Make static.
18037
18038 * frame.c (syms_of_frame) <delete-frame-functions>:
18039 Fix typo in docstring.
18040
180412007-10-25 Juanma Barranquero <lekktu@gmail.com>
18042
18043 * w32.c (init_environment): Fix tiny memory leak.
18044 (w32_get_resource): Remove unused variable `ok'.
18045
180462007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18047
18048 Make `window-system' into a keyboard-local variable (rather than
18049 frame-local as done originally by multi-tty).
18050
18051 * keyboard.h (struct kboard): Add Vwindow_system.
18052 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18053 (mark_kboards): Mark Vwindow_system.
18054
18055 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18056 (init_display): Don't set the obsolete `window-system' frame-param.
18057
18058 * xterm.c (x_term_init):
18059 * w32term.c (w32_create_terminal):
18060 * term.c (init_tty): Set Vwindow_system.
18061 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18062 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18063
18064 * xfns.c (Fx_create_frame, x_create_tip_frame):
18065 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18066 * macfns.c (Fx_create_frame):
18067 Don't set the obsolete `window-system' frame-param.
18068
18069 * frame.h (Qwindow_system): Remove.
18070 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18071 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18072
180732007-10-24 Richard Stallman <rms@gnu.org>
18074
18075 * frame.c (x_figure_window_size): For fullscreen case,
18076 set USPosition | PPosition without clobbering rest of window_prompting.
18077
18078 * keyboard.c (Fcurrent_idle_time): Doc fix.
18079
18080 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18081
180822007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18083
18084 * process.c (unwind_request_sigio): Only define if __ultrix__.
18085
18086 * callproc.c (child_setup): Remove spurious *.
18087
18088 * lisp.h (Fget_text_property): Declare.
18089 (have_menus_p): Declare it here rather than in sys-dep header files.
18090 * macterm.h (have_menus_p):
18091 * msdos.h (have_menus_p):
18092 * xterm.h (have_menus_p): Remove.
18093
18094 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18095 (Fmake_variable_frame_local): Just check the variable's const-ness
18096 rather than checking nil or t.
18097
180982007-10-22 Jason Rumney <jasonr@gnu.org>
18099
18100 * w32fns.c: Include math.h.
18101 (w32_abort): Declaration moved to nt/config.nt.
18102
18103 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18104 (abort): Redefinition moved to nt/config.nt.
18105
18106 * m/windowsnt.h: Remove.
18107
181082007-10-22 Juanma Barranquero <lekktu@gmail.com>
18109
18110 * emacs.c (Fdump_emacs): Fix typo in message.
18111 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18112 <installation-directory>: Reflow docstring.
18113
181142007-10-22 Juri Linkov <juri@jurta.org>
18115
18116 * minibuf.c: Allow minibuffer default to be a list of default values.
18117 With empty input use the first element of this list as returned default.
18118 (string_to_object)
18119 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18120 (read_minibuf): If defalt is cons, set histstring to its car.
18121 (Fread_string): If default_value is cons, set val to its car.
18122 (Fread_buffer): If def is cons, use its car.
18123 (Fcompleting_read): If defalt is cons, set val to its car.
18124
181252007-10-21 Michael Albinus <michael.albinus@gmx.de>
18126
18127 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18128
181292007-10-20 Juanma Barranquero <lekktu@gmail.com>
18130
18131 * doc.c (Fdocumentation): Check for advice in all cases.
18132
181332007-10-19 Chong Yidong <cyd@stupidchicken.com>
18134
18135 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18136
181372007-10-19 Richard Stallman <rms@gnu.org>
18138
18139 * doc.c (Fdocumentation): Check for and handle an advised function.
18140
181412007-10-19 Juanma Barranquero <lekktu@gmail.com>
18142
18143 * process.c (Fset_process_filter): Doc fix.
18144
181452007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18146
18147 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18148 which caused key-translation-map to applied repeatedly (thus breaking
18149 double-mode).
18150
181512007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18152
18153 * xselect.c (x_own_selection, x_handle_selection_clear)
18154 (x_clear_frame_selections):
18155 * w32menu.c (list_of_panes, list_of_items):
18156 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18157 * textprop.c (validate_plist, interval_has_all_properties)
18158 (interval_has_some_properties, interval_has_some_properties_list)
18159 (add_properties, text_property_list):
18160 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18161 * minibuf.c (Fassoc_string):
18162 * macselect.c (x_own_selection, x_clear_frame_selections)
18163 (Fx_disown_selection_internal):
18164 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18165 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18166
181672007-10-17 Chong Yidong <cyd@stupidchicken.com>
18168
18169 * process.c: Link to libs for calling res_init() if available.
18170 (Fmake_network_process): Call res_init() before getaddrinfo or
18171 gethostbyname, if possible.
18172
181732007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18174
18175 * lread.c (read1): Set pvectype for char_tables.
18176
18177 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18178 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18179 Add type checks.
18180 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18181
18182 * alloc.c (free_misc): Use XMISCTYPE.
18183 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18184
181852007-10-17 Glenn Morris <rgm@gnu.org>
18186
18187 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18188 (syms_of_minibuf): Add Qcompletion_ignore_case.
18189 * dired.c (Qcompletion_ignore_case): Change to external.
18190 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18191 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18192 (Fread_file_name): Use it rather than intern'ing.
18193
18194 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18195 (Fread_coding_system): Ignore case of user input.
18196
181972007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18198
18199 * xdisp.c (handle_display_prop): Ignore display specs after
18200 replacing one when string text is being replaced.
18201 (handle_single_display_spec): Pretend as if characters with display
18202 property haven't been consumed only when buffer text is being replaced.
18203
182042007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18205
18206 * xfns.c (Fx_create_frame, Fx_display_list):
18207 * window.c (window_fixed_size_p, enlarge_window)
18208 (shrink_window_lowest_first):
18209 * macterm.c (init_font_name_table):
18210 * macfns.c (Fx_create_frame, Fx_display_list):
18211 * lread.c (close_load_descs):
18212 * keyboard.c (read_char_x_menu_prompt):
18213 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18214 * coding.c (code_convert_region_unwind): Test the type of an object
18215 rather than just !NILP before extracting data from it.
18216
18217 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18218
18219 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18220 (XMISCANY): New macro.
18221 (XMISCTYPE): Use it.
18222 (struct Lisp_Misc_Any): New type.
18223 (union Lisp_Misc): Use it.
18224 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18225 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18226 (find_symbol_value, set_internal, default_value, Fset_default)
18227 (Fmake_variable_buffer_local, Fmake_local_variable)
18228 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18229 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18230 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18231 * alloc.c (allocate_buffer): Set the size and tag.
18232 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18233 Use XMISCANY.
18234 (die): Follow the GNU convention for error messages.
18235 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18236 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18237 tag any more.
18238 (set_buffer_internal_1):
18239 * frame.c (store_frame_param):
18240 * eval.c (specbind):
18241 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18242
18243 * doc.c (Fsnarf_documentation): Simplify.
18244
182452007-10-14 Juanma Barranquero <lekktu@gmail.com>
18246
18247 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18248 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18249
182502007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18251
18252 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18253
182542007-10-14 Juanma Barranquero <lekktu@gmail.com>
18255
18256 * eval.c (do_autoload): Don't save autoloads.
18257
18258 * data.c (Ffset): Save autoload of the function being set.
18259
182602007-10-07 John Paul Wallington <jpw@pobox.com>
18261
18262 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18263 parameter before setting up faces.
18264
182652007-10-13 Eli Zaretskii <eliz@gnu.org>
18266
18267 * ccl.c (Fregister_code_conversion_map):
18268 * keyboard.c (append_tool_bar_item): Reformat last change.
18269
18270 * lisp.h (eabs): Rename from `abs'. All callers changed.
18271
182722007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18273
18274 * buffer.c (add_overlay_mod_hooklist):
18275 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18276 * fontset.c (make_fontset):
18277 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18278 (append_tool_bar_item):
18279 * macmenu.c (grow_menu_items):
18280 * w32menu.c (grow_menu_items):
18281 * xmenu.c (grow_menu_items): Use larger_vector.
18282
182832007-10-13 Eli Zaretskii <eliz@gnu.org>
18284
18285 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18286 selected frame'' on MSDOS).
18287
182882007-10-12 Martin Rudalics <rudalics@gmx.at>
18289
18290 * frame.c (Qexplicit_name): New variable.
18291 (x_report_frame_params): Report it in parameter alist.
18292 (syms_of_frame): Intern and staticpro it.
18293
182942007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18295
18296 * macfns.c (x_create_tip_frame): Set terminal for frame.
18297
182982007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18299
18300 * frame.c (Qenvironment): Remove.
18301 (syms_of_frame) <Qenvironment>: Don't initialize.
18302 (Fdelete_frame): Don't treat the `environment' param specially.
18303 * frame.h (Qenvironment): Don't declare.
18304 * callproc.c (set_initial_environment): Don't set unused frame param.
18305
18306 * frame.c (Fframe_with_environment): Remove.
18307 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18308
18309 * lisp.h (Fframe_with_environment): Don't declare.
18310
183112007-10-10 Juanma Barranquero <lekktu@gmail.com>
18312
18313 * indent.c (indent_tabs_mode, last_known_column)
18314 (last_known_column_modified): Make static.
18315 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18316
183172007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18318
18319 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18320
183212007-10-09 Jason Rumney <jasonr@gnu.org>
18322
18323 * w32term.c (x_set_window_size): Disable code that attempts to tell
18324 Lisp code about a size change before it actually happens.
18325
183262007-10-09 Richard Stallman <rms@gnu.org>
18327
18328 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18329 return HANDLED_RETURN.
18330
183312007-10-08 Martin Rudalics <rudalics@gmx.at>
18332
18333 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18334 when there's an unread command event.
18335
18336 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18337 window autoselection act appropriately when leaving selected frame.
18338 (syms_of_frame): Initialize focus_follows_mouse.
18339 * frame.h (focus_follows_mouse): Extern it.
18340 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18341 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18342 * msdos.c (dos_rawgetc): Likewise.
18343 * w32term.c (w32_read_socket): Likewise.
18344 * xterm.c (handle_one_xevent): Likewise.
18345 * xdisp.c (syms_of_xdisp): In doc-string of
18346 mouse-autoselect-window mention focus-follows-mouse.
18347
183482007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18349
18350 * macterm.c (mac_load_query_font): Fix missing return value.
18351 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18352 Add BLOCK_INPUT.
18353
183542007-10-08 Richard Stallman <rms@gnu.org>
18355
18356 * xdisp.c (get_window_cursor_type): Implement documented behavior
18357 for cursor-in-non-selected-windows = t.
18358
183592007-10-08 Jason Rumney <jasonr@gnu.org>
18360
18361 * w32.c (w32_get_resource): Always close registry keys.
18362
183632007-10-08 Jason Rumney <jasonr@gnu.org>
18364
18365 * makefile.w32-in (LIBS): Add COMCTL32.
18366
18367 * w32fns.c (globals_of_w32fns): Init common controls.
18368
183692007-10-08 Richard Stallman <rms@gnu.org>
18370
18371 * image.c (our_memory_buffer): Rename from omfib_buffer.
18372
183732007-10-08 Richard Stallman <rms@gnu.org>
18374
18375 * buffer.c (Foverlays_at): Doc fix.
18376
183772007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18378
18379 * fns.c (Fplist_put): Preserve uneven tail data.
18380
183812007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18382
18383 * termhooks.h (enum event_kind): Remove trailing comma.
18384
18385 * frame.h (enum): Remove trailing comma.
18386
183872007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18388
18389 * w32proc.c (delete_child): Don't terminate threads of zombies.
18390
183912007-10-08 Martin Rudalics <rudalics@gmx.at>
18392
18393 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18394
18395 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18396 last-repeatable-command.
18397 (init_kboard): Initialize Vlast_repeatable_command.
18398 (command_loop_1): Set it to real_this_command unless that was
18399 bound to an input event.
18400 (mark_kboards): Mark it.
18401
184022007-10-08 Richard Stallman <rms@gnu.org>
18403
18404 * eval.c (condition-case): Doc fix.
18405
184062007-10-08 Masatake YAMATO <jet@gyve.org>
18407
18408 * xfaces.c (tty_supports_face_attributes_p): Fix code
18409 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18410 was copied and not edited.
18411
184122007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18413
18414 Add new `input-decode-map' keymap and use it for terminal
18415 escape sequences.
18416 * keyboard.h (struct kboard): Add Vinput_decode_map.
18417 Remove Vlocal_key_translation_map.
18418 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18419 (init_kboard): Init input-decode-map.
18420 Replace local-key-translation-map back with key-translation-map.
18421 (syms_of_keyboard): Declare input-decode-map.
18422 Remove local-key-translation-map. Update docstrings.
18423 (mark_kboards): Mark Vinput_decode_map.
18424 Don't mark Vlocal_key_translation_map.
18425 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18426 Replace local-key-translation-map back with key-translation-map.
18427 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18428 Bind in input-decode-map rather than function-key-map.
18429
18430 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18431 This was made redundant by the previous introduction of XSETPVECTYPE.
18432
184332007-10-09 Richard Stallman <rms@gnu.org>
18434
18435 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18436
184372007-09-29 Richard Stallman <rms@gnu.org>
18438
18439 * eval.c (internal_condition_case_2, internal_condition_case_1)
18440 (internal_condition_case): Reenable abort if x_catching_errors ()
18441 to see if that really happens and why.
18442
184432007-10-06 Andreas Schwab <schwab@suse.de>
18444
18445 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18446
184472007-10-04 Juanma Barranquero <lekktu@gmail.com>
18448
18449 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18450
184512007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18452
18453 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18454
184552007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18456
18457 * window.h (struct window):
18458 * window.c (struct save_window_data, struct saved_window):
18459 * termhooks.h (struct terminal):
18460 * process.h (struct Lisp_Process):
18461 * frame.h (struct frame):
18462 * buffer.h (struct buffer):
18463 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18464 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18465 The size field of (pseudo)vectors is now unsigned.
18466 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18467
18468 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18469 Turn `count' into an integer.
18470
18471 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18472 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18473 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18474 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18475 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18476
18477 * alloc.c (allocate_pseudovector): New fun.
18478 (ALLOCATE_PSEUDOVECTOR): New macro.
18479 (allocate_window, allocate_terminal, allocate_frame)
18480 (allocate_process): Use it.
18481 (mark_vectorlike): New function.
18482 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18483 (mark_terminals): Use it.
18484 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18485 (Fmake_byte_code): Use XSETPVECTYPE.
18486
18487 * frame.c (Fframe_parameters): Minor simplification.
18488
18489 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18490
18491 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18492
18493 * buffer.c (Fget_buffer_create, init_buffer_once):
18494 * lread.c (defsubr):
18495 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18496
18497 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18498 defined differently in the m/*.h files.
18499 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18500 (XSETPVECTYPE): New macro.
18501 (XSETPSEUDOVECTOR): Use it.
18502
18503 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18504 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18505
18506 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18507 * lread.c (defvar_per_buffer):
18508 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18509
18510 * window.c (candidate_window_p): Only consider as visible frames that
18511 are on the same terminal.
18512
18513 * m/ibms390x.h (MARKBIT): Remove unused macro.
18514
185152007-10-01 Juanma Barranquero <lekktu@gmail.com>
18516
18517 * lread.c (Fload): Fix typo in docstring.
18518
185192007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18520
18521 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18522 of a non-zero value can't yield zero.
18523
185242007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18525
18526 * term.c (term_clear_mouse_face, term_mouse_highlight)
18527 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18528
18529 * print.c (safe_debug_print): Use XHASH.
18530
18531 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18532 Lisp elements such as tags.
18533 (XHASH): New macro.
18534 (EQ): Use it.
18535 (SREF, SSET, STRING_COPYIN): Use SDATA.
18536 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18537
18538 * alloc.c (mark_terminal): Remove left-over declaration.
18539 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18540 (allocate_vectorlike): Remove type argument. Adjust callers.
18541 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18542 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18543
18544 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18545 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18546 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18547 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18548 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18549 Use them.
18550
18551 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18552 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18553 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18554
185552007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18556
18557 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18558 loaded by default.
18559
185602007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18561
18562 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18563 on this tty.
18564 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18565
18566 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18567 Update all users.
18568 (handle_one_term_event): Use Gpm_DrawPointer.
18569 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18570 Signal errors instead of returning nil. Always return nil.
18571 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18572 Make it a noop if gpm-mouse was not activated.
18573 (syms_of_term): Update names.
18574
185752007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18576
18577 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18578 (init_sys_modes): Check that gpm_tty is the current tty.
18579
18580 * alloc.c (allocate_terminal): Set the vector size to only count the
18581 lisp fields. Initialize those to nil.
18582 (mark_object): Don't treat terminals specially.
18583 (mark_terminal): Remove.
18584 (mark_terminals): Use mark_object instead.
18585
18586 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18587 the GC to the beginning.
18588
18589 * indent.h:
18590 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18591
18592 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18593
185942007-09-25 Jason Rumney <jasonr@gnu.org>
18595
18596 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18597
18598 * w32console.c (create_w32cons_output): Remove.
18599
18600 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18601
18602 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18603 (reset_sys_modes): Use reset_terminal_modes_hook.
18604
186052007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18606
18607 * eval.c (do_autoload): Don't output any message.
18608
186092007-09-24 Juri Linkov <juri@jurta.org>
18610
18611 * emacs.c (standard_args): Change priority of "--no-splash"
18612 from 40 to 3. Add "--no-desktop" with the same priority.
18613
186142007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18615
18616 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18617 and optimize the case where they are all 1.
18618
186192007-09-23 Johannes Weiner <hannes@saeurebad.de>
18620
18621 * lisp.h (abs): Define if not defined.
18622 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18623 Don't define `abs', since it's defined in lisp.h.
18624
186252007-09-22 Eli Zaretskii <eliz@gnu.org>
18626
18627 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18628 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18629 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18630 (init_tty): Use DEV_TTY instead of "/dev/tty".
18631 [WINDOWSNT]: No need to protect from NAME arg being null.
18632
186332007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18634
18635 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18636 up the tty state.
18637
186382007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18639
18640 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18641 (gpm_tty): Change its type.
18642 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18643 (gpm_tty): Change its type and initialize it.
18644 (Fterm_open_connection): Check the frame is indeed a tty.
18645 Use the new gpm_tty.
18646 (Fterm_close_connection): Use the new gpm_tty.
18647 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18648 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18649
186502007-09-21 Juanma Barranquero <lekktu@gmail.com>
18651
18652 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18653 underline_color, to draw strike-through.
18654
186552007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18656
18657 * lisp.h (allocate_terminal): Declare.
18658
18659 * window.c (candidate_window_p): Consider frames that are being placed
18660 by the user as somewhere between visible and iconified.
18661 (window_loop): Prefer windows on the current frame.
18662 (Fselect_window): Move the use of select-frame to the beginning so we
18663 can just delegate all the work (it'll call us back anyway).
18664
18665 * frame.c (Qdisplay_environment_variable):
18666 * frame.h (Qdisplay_environment_variable): Delete.
18667
18668 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18669 of the first arg, since that value may be a union.
18670
18671 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18672 parameter rather than Qdisplay_environment_variable. If all else
18673 fails, look for DISPLAY in initial-environment.
18674
186752007-09-21 Glenn Morris <rgm@gnu.org>
18676
18677 * Makefile.in (emacstool): Remove target.
18678 (lisp, shortlisp): Remove termdev.elc.
18679
186802007-09-21 Markus Triska <markus.triska@gmx.at>
18681
18682 * xterm.c (x_delete_display): Compile session management conditionally.
18683
186842007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18685
18686 * callproc.c (getenv_internal_1): New function.
18687 (getenv_internal): Use it.
18688 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18689
18690 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18691 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18692 (Fset_terminal_parameter): Work with dead terminals as well.
18693 (Fmodify_terminal_parameters): Remove.
18694
18695 * terminal.c (get_terminal): Handle terminals.
18696 Make sure the terminal returned is live.
18697 (create_terminal): Use allocate_terminal.
18698 (mark_terminals): Move to alloc.c.
18699 (delete_terminal): Use terminal->name as liveness status.
18700 NULL out fields after freeing their contents.
18701 Don't deallocate the object.
18702 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18703 rather than an int.
18704 (Fterminal_live_p): Accept non-integer arguments.
18705 (Fterminal_list): Return terminal objects rather than an ints.
18706
18707 * alloc.c (enum mem_type): New member for `terminal' objects.
18708 (allocate_terminal): New function.
18709 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18710 Handle terminals.
18711 (mark_terminal): New fun.
18712 (mark_terminals): Move from terminal.c.
18713
18714 * term.c (get_tty_terminal): Don't treat output_initial specially.
18715 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18716 (delete_tty): Use terminal->name as liveness status.
18717
18718 * termhooks.h (struct terminal): Make it into a pseudovector.
18719 Remove `deleted' replaced by checking `name's nullness.
18720
18721 * print.c (print_object): Handle terminals.
18722
18723 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18724 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18725
18726 * frame.c (make_terminal_frame):
18727 * keyboard.c (tty_read_avail_input):
18728 * w32term.c (x_delete_terminal):
18729 * xfns.c (Fx_create_frame, x_create_tip_frame):
18730 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18731
187322007-09-20 Glenn Morris <rgm@gnu.org>
18733
18734 * process.c (Fmake_network_process): Doc fix.
18735
187362007-09-19 Jason Rumney <jasonr@gnu.org>
18737
18738 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18739
187402007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18741
18742 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18743 Fix a C warning regarding variable constness.
18744
18745 * xterm.c (handle_one_xevent): Fix a C warning.
18746
187472007-09-18 Jason Rumney <jasonr@gnu.org>
18748
18749 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18750
187512007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18752
18753 * gtkutil.c (gdpy_def): New variable.
18754 (xg_initialize): Initialize gdpy_def.
18755 (xg_display_close): If no other display exists, set gdpy_def to a
18756 new connection.
18757
187582007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18759
18760 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18761 when we have no file name for the icon.
18762 (xg_tool_bar_expose_callback): Remove.
18763 (xg_create_tool_bar): Don't connect expose signal to
18764 xg_tool_bar_expose_callback.
18765 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18766
187672007-09-16 Andreas Schwab <schwab@suse.de>
18768
18769 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18770 values instead of zapping them.
18771
187722007-09-14 Glenn Morris <rgm@gnu.org>
18773
18774 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18775 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18776 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18777 scope and rename to omfib_buffer for clarity.
18778 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18779
187802007-09-14 Kenichi Handa <handa@m17n.org>
18781
18782 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18783
187842007-09-13 Jason Rumney <jasonr@gnu.org>
18785
18786 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18787
18788 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18789
18790 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18791 (mac_term_init): Call here instead, passing rif.
18792
187932007-09-13 Glenn Morris <rgm@gnu.org>
18794
18795 * s/hpux.h: No longer define `static' as nothing.
18796
187972007-09-13 Johan Bockgård <bojohan@gnu.org>
18798
18799 * callint.c (Fcall_interactively): Remove unused var `fun'.
18800
188012007-09-12 Romain Francoise <romain@orebokech.com>
18802
18803 * window.c (prefer_window_split_horizontally, display_buffer):
18804 Revert 2007-09-08 change.
18805
188062007-09-12 Glenn Morris <rgm@gnu.org>
18807
18808 * alloca.c: Remove file.
18809 * Makefile.in (alloca): Do not undef.
18810 (allocaobj, alloca.o): Remove.
18811 (otherobj): Remove allocaobj.
18812 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18813 * regex.c (C_ALLOCA): Remove all references and code that was only
18814 used when this was defined.
18815 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18816 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18817 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18818
18819 * Makefile.in (SOURCES, unlock, relock): Delete.
18820
18821 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18822 (menu_grab_callback): All uses changed.
18823
18824 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18825 (x_reply_selection_request): All uses changed.
18826
188272007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18828
18829 * lread.c (load_warn_old_style_backquotes): Change message to look
18830 better when it appears in the middle of byte-compiler messages.
18831
188322007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18833
18834 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18835
18836 * xterm.c (x_create_terminal): Add comment.
18837
18838 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18839
188402007-09-10 Richard Stallman <rms@gnu.org>
18841
18842 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18843
188442007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18845
18846 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18847 (DEFUN): Document `intspec', use it instead of `prompt'.
18848
18849 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18850
18851 * data.c (Finteractive_form): If the interactive specification starts
18852 with a `(', use it as a Lisp form.
18853
18854 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18855 name and file modes.
18856
18857 * callint.c (Fcall_interactively): Comment fixes.
18858
188592007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18860
18861 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18862 and compiled functions.
18863
188642007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18865
18866 * window.c (prefer_window_split_horizontally): New variable.
18867 (display_buffer): Consider splitting window horizontally depending
18868 on prefer_window_split_horizontally.
18869
188702007-09-08 Eli Zaretskii <eliz@gnu.org>
18871
18872 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18873
188742007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18875
18876 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18877
18878 * frame.c (x_set_frame_parameters): Check number is positive before
18879 using XFASTINT.
18880
18881 * window.c (freeze_window_start): Don't presume selected_window holds
18882 a window object.
18883 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18884
188852007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18886
18887 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18888
188892007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18890
18891 * window.c (Vsplit_window_preferred_function): New var.
18892 (Fdisplay_buffer): Use it.
18893 (syms_of_window): Export, and initialize it.
18894
188952007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18896
18897 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18898
188992007-09-06 Glenn Morris <rgm@gnu.org>
18900
18901 * gtkutil.c (menu_grab_callback) <cnt>:
18902 * xselect.c (x_reply_selection_request) <cnt>: Move static
18903 variable to file scope.
18904
189052007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18906
18907 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18908 consistent values of selected_frame and selected_window.
18909
189102007-09-04 Jason Rumney <jasonr@gnu.org>
18911
18912 * w32console.c (initialize_w32_display): Zero unused hooks.
18913
189142007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18915
18916 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18917 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18918
189192007-09-04 Jason Rumney <jasonr@gnu.org>
18920
18921 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18922 in w32console.c. Set up input. Remove XXX comments that have been
18923 confirmed as correct.
18924
18925 * s/ms-w32.h (MULTI_KBOARD): Define.
18926
18927 * w32console.c (one_and_only_w32cons): Remove.
18928 (initialize_w32_display): Take terminal argument.
18929
18930 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18931 initialize_w32_display.
18932 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18933
18934 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18935
18936 * keyboard.c (discard_mouse_events): Discard it.
18937 (make_lispy_event): Translate it to a lisp event.
18938 (lispy_wheel_names): Add wheel-left and right events.
18939 (syms_of_keyboard): Enlarge wheel_syms.
18940
18941 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18942 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18943
18944 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18945
18946 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18947 from WM_MOUSEHWHEEL.
18948 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18949
18950 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18951 terminal.
18952
18953 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18954 keyboard for the terminal.
18955
189562007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18957
18958 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18959 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18960 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18961 and resume-tty-function to resume-tty-hook.
18962 (Fsuspend_tty, Fresume_tty): Use new names.
18963
189642007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18965
18966 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18967 if it starts with "n:".
18968
189692007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18970
18971 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18972
189732007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18974
18975 * frame.h:
18976 * frame.c (Qterm_environment_variable): Remove.
18977 (syms_of_frame): Don't init and staticpro it.
18978
18979 * callproc.c (getenv_internal): Remove special case for $TERM.
18980
18981 * callproc.c (Vinitial_environment): New variable.
18982 (set_initial_environment): Initialize it.
18983 (syms_of_callproc): Declare it.
18984 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18985 TERM under which a process runs is never related to the TERM in which
18986 Emacs is running.
18987
189882007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18989
18990 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18991 * s/darwin.h: ... do it here.
18992
189932007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18994
18995 * lisp.h (set_initial_environment): Rename from set_global_environment.
18996
18997 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18998 removed by mistake on the multi-tty branch.
18999
19000 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19001 (Fmodify_frame_parameters): Return a value.
19002
19003 * image.c (png_load): Comment-out var only used in commented-out code.
19004
19005 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19006 before passing it to mark_object.
19007
19008 * xfaces.c (internal_resolve_face_name): Return a value.
19009 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19010
19011 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19012 (x_icon): Comment-out var only used in commented-out code.
19013
190142007-08-29 Romain Francoise <romain@orebokech.com>
19015
19016 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19017 QUIT hasn't been provided.
19018
190192007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19020
19021 * callproc.c (child_setup, getenv_internal): Use the
19022 display-environment-variable and term-environment-variable frame params.
19023 (set_initial_environment): Initialise Vprocess_environment.
19024
19025 * config.in: Disable multi-keyboard support on a mac.
19026
19027 * frame.c (Qterm_environment_variable)
19028 (Qdisplay_environment_variable): New variables.
19029 (syms_of_frame): Intern and staticpro them.
19030 (Fmake_terminal_frame): Disable output method test.
19031
19032 * frame.h: Declare them here.
19033
19034 * macfns.c (x_set_mouse_color): Get rif from the frame.
19035 (x_set_tool_bar_lines): Don't use updating_frame.
19036 (mac_window): Add 2 new parameters for consistency with other systems.
19037 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19038 frame parameters following what is done in X11 and w32. Don't use
19039 FRAME_MAC_DISPLAY_INFO.
19040 (Fx_open_connection, start_hourglass): Remove window-system check.
19041 (x_create_tip_frame): Get the keyboard from the terminal.
19042
19043 * macmenu.c: Reorder includes.
19044 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19045
19046 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19047 terminal parameter.
19048 (x_clear_frame): Add a frame parameter.
19049 (note_mouse_movement): Get rif from the frame.
19050 (mac_term_init): Initialize the terminal.
19051 (mac_initialize): Make static and move terminal initialization ...
19052 (mac_create_terminal): ... to this new function.
19053
19054 * macterm.h (struct mac_display_info): Add terminal.
19055 (mac_initialize): Delete declaration.
19056
19057 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19058
19059 * sysdep.c: Comment out text after #endif.
19060
19061 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19062 is defined. Better initialize ttys in windows. Use terminal
19063 specific mouse_position_hook.
19064
19065 * termhooks.h (union display_info): Add mac_display_info.
19066
19067 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19068 Set the default minibuffer frame, window_system and the rest of the
19069 frame parameters following what is done in X11.
19070
19071 * w32term.c (w32_initialize): Make static.
19072
19073 * xselect.c (x_handle_selection_clear): Only access
19074 terminal->kboard when MULTI_KBOARD is defined.
19075
19076 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19077 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19078
190792007-08-29 Jason Rumney <jasonr@gnu.org>
19080
19081 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19082 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19083
19084 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19085 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19086
19087 * keyboard.c (restore_kboard_configuration): Only define when
19088 MULTI_KBOARD defined.
19089
19090 * makefile.w32-in: Update dependancies from Makefile.in.
19091 (OBJ1): Add terminal.$(O)
19092
19093 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19094 Don't define function body.
19095 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19096
19097 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19098
19099 * w32.c (request_sigio, unrequest_sigio): Remove.
19100
19101 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19102 (w32con_clear_frame, w32con_clear_end_of_line)
19103 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19104 (w32con_delete_glyphs, w32con_set_terminal_window)
19105 (scroll_line, w32_sys_ring_bell): Add frame arg.
19106 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19107 Add terminal arg.
19108 (PICK_FRAME): Remove.
19109 (w32con_write_glyphs): Use frame specific terminal coding.
19110 (one_and_only_w32cons): New global variable.
19111 (initialize_w32_display): Use it for storing hooks.
19112 (create_w32cons_output): New function.
19113
19114 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19115 arg a frame.
19116
19117 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19118 Set window_system.
19119 (x_set_tool_bar_lines): Don't use updating_frame.
19120 (Fx_create_frame): Set terminal and ref count.
19121 (Fx_open_connection): Remove window-system check.
19122
19123 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19124
19125 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19126 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19127 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19128 Add frame arg.
19129 (x_delete_terminal, w32_create_terminal): New functions.
19130 (w32_term_init): Create a terminal.
19131 (w32_initialize): Move terminal specific initialization to
19132 w32_create_terminal.
19133
19134 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19135 (w32_clear_rect, w32_clear_area): Use background from frame.
19136 (w32_display_info): Add terminal.
19137 (w32_sys_ring_bell, x_delete_display): Declare here.
19138
19139 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19140
19141 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19142
191432007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19144
19145 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19146 Fix get_named_tty calls for the controlling tty.
19147
191482007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19149
19150 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19151
191522007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19153
19154 * term.c (tty_insert_glyphs): Add missing first parameter.
19155
191562007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19157
19158 * buffer.c (Fbuffer_list, Fbury_buffer):
19159 Take frame->buried_buffer_list into account.
19160
19161 * cm.c (current_tty): New variable, for cmputc().
19162 (cmputc): Use it.
19163 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19164 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19165 (cmgoto): Add tty parameter. Pass it on to calccost().
19166 Use emacs_tputs() instead of tputs().
19167
19168 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19169 tputs().
19170 (current_tty): New variable, for cmputc().
19171 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19172
19173 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19174 (internal_condition_case, internal_condition_case_1)
19175 (internal_condition_case_2): Don't abort when x_catching_errors.
19176
19177 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19178 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19179 prevent crashes caused by bogus longjmps in read_char.
19180
19181 * keymap.h (Fset_keymap_parent): Add EXFUN.
19182
19183 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19184 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19185 Remove redundant definition.
19186
19187 * macfns.c (x_set_mouse_color, x_make_gc):
19188 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19189
19190 * w32term.c (x_free_frame_resources):
19191 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19192 (w32_initialize): Use the accessor macros for terminal characteristics.
19193
19194 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19195 Use the accessor macros for terminal characteristics.
19196 * msdos.c (internal_terminal_init): Use the accessor macros for
19197 terminal characteristics.
19198 (ScreenVisualBell, internal_terminal_init):
19199 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19200
19201 * termopts.h (no_redraw_on_reenter): Declare.
19202
19203 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19204 (mark_terminals, mark_ttys): Declare.
19205 (Fgarbage_collect): Call them.
19206 (mark_object): Mark buried_buffer_list.
19207
19208 * prefix-args.c: Include stdlib.h for exit.
19209
19210 * syssignal.h: Add comment.
19211
19212 * indent.c: Include stdio.h.
19213
19214 * window.h (Vinitial_window_system): Declare.
19215 (Vwindow_system): Delete declaration.
19216
19217 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19218
19219 * image.c (lookup_image): Don't initialize `c' until the xasserts
19220 have been run.
19221
19222 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19223 FRAME_FOREGROUND_PIXEL.
19224
19225 * print.c (print_preprocess): Don't lose print_depth levels while
19226 iterating.
19227
19228 * widget.c (update_from_various_frame_slots):
19229 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19230
19231 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19232 frames.
19233 (window_internal_height): Remove bogus make_number call.
19234 (init_window_once): Call make_terminal_frame with two zero parameters.
19235
19236 * fileio.c (Fread_file_name): Update comment.
19237
19238 * callint.c (Fcall_interactively):
19239 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19240 Make sure it is correctly unwound.
19241
19242 * xsmfns.c (x_session_close): New function.
19243
19244 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19245 Delete declarations.
19246
19247 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19248 (x_output): Remove background_pixel and foreground_pixel fields.
19249 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19250 (x_delete_device, x_session_close): Declare.
19251
19252 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19253 (read_filtered_event): Call `read_char' with a local
19254 `wrong_kboard_jmpbuf'.
19255
19256 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19257 Don't call single_kboard_state. Use FRAME_RIF.
19258
19259 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19260 systems.
19261
19262 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19263 (Fframe_with_environment, Fset_input_meta_mode)
19264 (Fset_quit_char): EXFUN.
19265 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19266 (init_sys_modes, reset_sys_modes): Update prototypes.
19267 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19268
19269 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19270 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19271 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19272 Delete declarations.
19273 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19274 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19275 New declarations.
19276
19277 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19278 already does that during init_display(). Call syms_of_keymap
19279 before syms_of_keyboard. Call `syms_of_terminal'.
19280 Call set_initial_environment, not set_process_environment.
19281 (shut_down_emacs): Call reset_all_sys_modes() instead of
19282 reset_sys_modes().
19283
19284 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19285 (internal_resolve_face_name, resolve_face_name_error): New functions.
19286 (resolve_face_name): Protect against loops and errors thrown by Fget.
19287 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19288 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19289
19290 * scroll.c: Replace CURTTY() with local variables throughout the
19291 file (where applicable).
19292 (calculate_scrolling, calculate_direct_scrolling)
19293 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19294 characteristics.
19295
19296 * keymap.c (Vfunction_key_map): Remove.
19297 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19298 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19299 (Vkey_translation_map): Remove.
19300 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19301 (Fdescribe_buffer_bindings)
19302 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19303 Update for terminal-local key-translation-map.
19304
19305 * Makefile.in (callproc.o): Update dependencies.
19306 (lisp, shortlisp): Add termdev.elc.
19307 (obj): Add terminal.o.
19308 (terminal.o): Add dependencies.
19309 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19310 (data.o, fns.o): Add termhooks.h dependency.
19311 (SOME_MACHINE_LISP): Add dnd.elc.
19312 (minibuf.o): Fix typo.
19313 Update dependencies.
19314
19315 * data.c (do_symval_forwarding, store_symval_forwarding)
19316 (find_symbol_value): Use the selected frame's keyboard, not
19317 current_kboard.
19318
19319 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19320 Vwindow_system.
19321
19322 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19323 Fmenu_bar_open.
19324 (syms_of_xmenu): Update defsubr.
19325 (mouse_position_for_popup, Fx_popup_menu)
19326 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19327 (set_frame_menubar, free_frame_menubar)
b97439ce 19328 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19329 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19330 an X frame.
19331
19332 * xselect.c (x_own_selection): Abort if not an X frame.
19333 (some_frame_on_display): Check if it is an X frame.
19334 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19335
19336 * coding.c: Include frame.h and termhooks.h.
19337 (terminal_coding, keyboard_coding): Delete.
19338 (Fset_terminal_coding_system_internal)
19339 (Fset_keyboard_coding_system_internal)
19340 (Fkeyboard_coding_system)
19341 (Fterminal_coding_system): Add a terminal parameter.
19342 Get terminal_coding from the terminal.
19343 (init_coding_once): Don't call setup_coding_system here.
19344
19345 * dispextern.h (set_scroll_region, turn_off_insert)
19346 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19347 (tty_clear_end_of_line, tty_setup_colors)
19348 (delete_tty, updating_frame)
19349 (produce_special_glyphs, produce_glyphs, write_glyphs)
19350 (insert_glyphs): Remove.
19351 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19352 (tty_turn_off_highlight, get_tty_size): Add declaration.
19353 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19354
19355 * frame.h (enum output_method): Add output_initial.
19356 (struct x_output): Delete.
19357 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19358 Access foreground_pixel and background_pixel directly from the frame.
19359 (tty_display): Delete.
19360 (struct frame): Add buried_buffer_list, foreground_pixel,
19361 background_pixel and terminal. Delete kboard.
19362 (union output_data): Add tty.
19363 (FRAME_KBOARD): Get the kboard from the terminal.
19364 (FRAME_INITIAL_P): New macro.
19365 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19366 (Qterm_environment_variable, Qdisplay_environment_variable)
19367 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19368 New declarations.
19369
19370 * termchar.h (tty_output, tty_display_info): New structures.
19371 (tty_list): Declare.
19372 (FRAME_TTY, CURTTY): New macros.
19373 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19374 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19375 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19376 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19377
19378 * callproc.c: Include frame.h and termhooks.h, for terminal
19379 parameters.
19380 (add_env): New function.
19381 (child_setup): Use it.
19382 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19383 (getenv_internal): Fix get_terminal_param call.
19384 (Fgetenv_internal, egetenv): Update doc.
19385 (syms_of_callproc): Initialize Vprocess_environment to nil.
19386 Register and initialize them. Remove obsolete defvars. Update doc
19387 strings.
19388 (child_setup): Handle Vlocal_environment_variables.
19389 (getenv_internal): Add terminal parameter.
19390 Handle Vlocal_environment_variables.
19391 (Fgetenv_internal): Add terminal parameter.
19392 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19393 environment in a frame (not terminal) parameter. Update doc strings.
19394 (set_initial_environment): Rename from set_global_environment.
19395 Store Emacs environment in initial frame parameter.
19396
19397 * xdisp.c (redisplay_internal): Update references to
19398 `previous_terminal_frame'.
19399 (display_mode_line, Fformat_mode_line): Replace calls to
19400 `push_frame_kboard' with `push_kboard'.
19401 (get_glyph_string_clip_rects): Add extra parentheses and
19402 braces to prevent compiler warnings.
19403 (calc_pixel_width_or_height): Add xassert to check that the
19404 frame is alive. Don't call `lookup_image' on a termcap frame.
19405 (message2_nolog, message3_nolog, redisplay_internal)
19406 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19407 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19408 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19409 (Fx_display_pixel_width, Fx_display_pixel_height)
19410 (Fx_display_planes, Fx_display_color_cells)
19411 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19412 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19413 (Fx_display_backing_store, Fx_display_visual_class)
19414 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19415 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19416
19417 * xfns.c (x_set_foreground_color x_set_background_color)
19418 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19419 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19420 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19421 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19422 terminal that is being deleted.
19423 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19424 frame parameter, and make sure it overrides any user-supplied setting.
19425 (Fx_close_connection, Fx_synchronize): Unify argument names with
19426 the rest of the DEFUNs.
19427
19428 * dispnew.c (Fsend_string_to_terminal): Update call to
19429 `get_tty_terminal'.
19430 (Fredraw_frame, Fsend_string_to_terminal)
19431 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19432 FRAME_TERMCAP_P and FRAME_TTY.
19433 (window_change_signal): Don't believe width/height values that are
19434 impossibly small.
19435 (Vinitial_window_system): Rename from Vwindow_system.
19436 (termscript, Wcm, rif): Delete.
19437
19438 * termhooks.h (struct terminal): New struct containing the
19439 previously global text display hooks and new members NAME,
19440 DELETED and PARAM_ALIST.
19441 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19442 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19443 (FRAME_RIF): New macros.
19444 (get_terminal_param, get_device): New declarations.
19445 (termscript): Delete declaration.
19446
19447 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19448 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19449 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19450 FRAME_FOREGROUND_PIXEL.
19451 (x_fully_uncatch_errors): Disable definition.
19452 (x_scroll_bar_expose): Fix reference to foreground pixel.
19453 (XTread_socket): Disable loop on all X displays.
19454 (x_delete_terminal): Don't set terminal->deleted and let
19455 delete_terminal delete the frames on the terminal.
19456 (x_delete_display): Doc update to reflect changes in
19457 delete_terminal.
19458 (x_display_info) <terminal>: Move member earlier in the struct.
19459 (deleting_tty): Remove old variable.
19460 (Fsuspend_tty): Call clear_tty_hooks.
19461 (Fresume_tty, init_tty): Call set_tty_hooks.
19462 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19463 errors on X frames.
19464 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19465 (handle_one_xevent): Initialize `f' to NULL.
19466 (x_delete_terminal, x_create_terminal): New functions.
19467 (XTset_terminal_modes, XTreset_terminal_modes)
19468 (XTread_socket, x_connection_closed, x_term_init)
19469 (x_term_init, x_delete_display): Add terminal parameter.
19470 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19471 X connections.
19472
19473 * frame.c: Include termchar.h.
19474 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19475 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19476 (Qdisplay_environment_variable): New vars.
19477 (Fframep): Deal with output_initial.
19478 (Fframe-live-p): Doc fix.
19479 (Fwindow-system): New function.
19480 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19481 (make_terminal_frame): Don't create frames on a terminal that is
19482 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19483 (store_frame_param): Check for found_for_frame before calling XFRAME.
19484 (Fmake_terminal_frame): Handle NULL tty names correctly.
19485 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19486 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19487 frames to refer to a deleted frame in their 'environment parameter.
19488 (Fframe_with_environment): New function.
19489 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19490 (get_future_frame_param): New function.
19491 (Fmake_terminal_frame): Use it.
19492 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19493
19494 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19495 * sysdep.c (reset_sys_modes): Update for renames.
19496
19497 * keyboard.c (tty_read_avail_input): New function.
19498 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19499 (syms_of_keyboard): Defsubr them.
19500 (Fset_input_meta_mode, Fset_quit_char): New functions.
19501 (Fset_input_mode): Split to above functions.
19502 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19503 parameter. Use it in call to `read_char'.
19504 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19505 Set wrong_kboard_jmpbuf correctly in recursive calls.
19506 Use current_kboard to access Vkeyboard_translate_table.
19507 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19508 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19509 Update longjmp invocations. Remember the original current_kboard,
19510 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19511 changes it. Comment out unnecessary calls to
19512 `record_single_kboard_state' and `any_kboard_state'.
19513 Update recursive calls.
19514 (wrong_kboard_jmpbuf): Remove global variable.
19515 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19516 Handle deleted interrupted_kboards correctly; that is a legal
19517 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19518 and read_char calls. Abort if interrupted_kboard died in read_char.
19519 (any_kboard_state, single_kboard_state)
19520 (push_frame_kboard): Remove function.
19521 (pop_kboard): Switch out of single_kboard mode if the kboard has
19522 been deleted. Remove unused variable. Help debugging by not
19523 changing current_kboard unnecessarily. Set current_kboard to the
19524 kboard of the selected frame when the stored kboard object has
19525 been deleted before pop_kboard.
19526 (temporarily_switch_to_single_kboard): Change first parameter to a
19527 frame pointer. Throw an error when caller wants to change kboards
19528 while in single_kboard mode. Don't push_kboard if we weren't in
19529 single kboard state. Don't pop_kboard if we popped into any
19530 kboard state.
19531 (restore_kboard_configuration): Abort if pop_kboard changed the
19532 kboard in single_kboard mode. Call pop_kboard only after setting
19533 up single_kboard mode.
19534 (Frecursive_edit): Switch to single_kboard mode only in nested
19535 command loops.
19536 (cmd_error, command_loop, command_loop_1, timer_check):
19537 Comment out unnecessary call to `any_kboard_state' and
19538 `record_single_kboard_state'.
19539 (delete_kboard): Exit single_kboard mode if we have just deleted
19540 that kboard. Use FRAME_KBOARD.
19541 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19542 `fatal_error_signal'.
19543 (record_single_kboard_state): Don't push_kboard if we weren't in
19544 single kboard state. Don't pop_kboard if we popped into any
19545 kboard state.
19546 (push_frame_kboard): Rename to push_kboard.
19547 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19548 (read_avail_input): Read input from all terminals.
19549 (mark_kboards): Also mark Vkeyboard_translate_table.
19550 (kbd_buffer_store_event_hold): Simplify condition.
19551 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19552 (Vkeyboard_translate_table): Move to struct kboard.
19553 (init_kboard): Initialize Vkeyboard_translate_table.
19554 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19555 Vkeyboard_translate_table. Update doc strings. Update docs of
19556 local-function-key-map and function-key-map.
19557
19558 * terminal.c: New file.
19559
19560 * term.c: Include errno.h.
19561 (Vring_bell_function, device_list, initial_device)
19562 (next_device_id, ring_bell, update_begin, update_end)
19563 (set_terminal_window, cursor_to, raw_cursor_to)
19564 (clear_to_end, clear_frame, clear_end_of_line)
19565 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19566 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19567 (syms_of_term): Move their initialization to terminal.c.
19568 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19569 (Ftty_display_color_cells)
19570 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19571 (clear_tty_hooks, set_tty_hooks)
19572 (init_tty, maybe_fatal): New functions.
19573 (Ftty_type): Return nil if terminal is not on a tty instead of
19574 throwing an error. Doc update.
19575 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19576 Doc update. Initialize new subrs and variables.
19577 (delete_tty): Use terminal->deleted.
19578 (tty_set_terminal_modes): Rename from set_terminal_modes.
19579 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19580 (set_scroll_region): Rename to `tty_set_scroll_region'.
19581 (turn_on_insert): Rename to `tty_turn_on_insert'.
19582 (turn_off_insert): Rename to `tty_turn_off_insert'.
19583 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19584 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19585 (toggle_highligh): Rename to `tty_toggle_highlight'.
19586 (background_highlight): Rename to `tty_background_highlight'.
19587 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19588 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19589 (tty_set_scroll_region, tty_background_highlight)
19590 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19591 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19592 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19593 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19594 Add static modifier.
19595 (tty_reset_terminal_modes, tty_set_terminal_window)
19596 (tty_set_scroll_region, tty_background_highlight)
19597 (tty_highlight_if_desired, tty_cursor_to)
19598 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19599 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19600 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19601 renames.
19602
196032007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19604
19605 * keyboard.c: Qrtl is new.
19606 (parse_tool_bar_item): Handle :rtl keyword.
19607 (syms_of_keyboard): Intern :rtl keyword.
19608
19609 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19610
19611 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19612 so no Lisp code is executed.
19613 (file_for_image, find_rtl_image): New functions.
19614 (xg_get_image_for_pixmap): Use file_for_image.
19615 (update_frame_tool_bar): If direction is RTL, use RTL image if
19616 defined. Use Gtk stock images if defined.
19617
196182007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19619
19620 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19621 for nonexistent or zero-width glyph in composition glyph.
19622
196232007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19624
19625 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19626
19627 * xdisp.c (Finvisible_p): New function.
19628 (syms_of_xdisp): defsubr it.
19629
196302007-08-24 Juanma Barranquero <lekktu@gmail.com>
19631
19632 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19633 Doc fixes.
19634
196352007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19636
19637 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19638
196392007-08-24 Martin Rudalics <rudalics@gmx.at>
19640
19641 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19642 whether decoding has modified buffer contents.
19643
196442007-08-24 Jason Rumney <jasonr@gnu.org>
19645
19646 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19647 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19648 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19649 (init_svg_functions) [HAVE_NTGUI]: New function.
19650 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19651 (svg_load_image): Use them.
19652 (svg_load_image) [HAVE_NTGUI]: Implement background.
19653
196542007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19655
19656 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19657 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19658 (LIBX): Remove @RSVG_LIBS@.
19659 (LIBES): Add $(RSVG_LIBS).
19660
19661 * image.c (svg_load_image): Blend with specified background if exists.
19662 Use IMAGE_BACKGROUND. Add Mac OS Support.
19663
19664 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19665 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19666 Remove macros.
19667 [MAC_OSX] (socket_callback): Do nothing.
19668 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19669 ReceiveNextEvent.
19670 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19671 socket_callback.
19672 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19673
196742007-08-22 Glenn Morris <rgm@gnu.org>
19675
19676 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19677
196782007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19679
19680 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19681
19682 * image.c: Add support for SVG images. Some additional comments
19683 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19684 (svg_image_p): New function to test for SVG image.
19685 (svg_load): New function to load SVG image.
19686 (svg_load_image): New function, helper for svg_load.
19687 (Qsvg): New Lisp_object.
19688 (svg_keyword_index): New enum.
19689 (svg_format): New static `image_keyword' struct.
19690 (svg_type): New static `image_type' struct.
19691 (librsvg/rsvg.h): Include it.
19692
196932007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19694
19695 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19696
196972007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19698
19699 * lread.c (Qold_style_backquotes): New var.
19700 (syms_of_lread): Init and staticpro it.
19701 (load_warn_old_style_backquotes): New fun.
19702 (Fload): Use them to warn about old style backquotes.
19703 (end_of_file_error, Fload): Remove unused vars.
19704
19705 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19706
19707 * lread.c (Vold_style_backquotes): New var.
19708 (syms_of_lread): Init and export it to Elisp.
19709 (read1): Set it when we find an old-style (back)quote.
19710
197112007-08-22 Jason Rumney <jasonr@gnu.org>
19712
19713 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19714
197152007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19716
19717 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19718
197192007-08-19 Richard Stallman <rms@gnu.org>
19720
19721 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19722
197232007-08-19 Andreas Schwab <schwab@suse.de>
19724
19725 * alloc.c (pure): Round PURESIZE up.
19726
197272007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19728
19729 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19730 active frame.
19731
197322007-08-16 Richard Stallman <rms@gnu.org>
19733
19734 * eval.c (Fcommandp): Add parens to clarify.
19735
19736 * minibuf.c (Fall_completions): Use enum for type of table.
19737
19738 * emacs.c (USAGE2): Improve text.
19739
197402007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19741
19742 * term.c (tty_default_color_capabilities): Declare static
19743 variables in file scope, to avoid HPUX compiler problem.
19744
197452007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19746
19747 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19748 to gtk_toolbar_insert.
19749
197502007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19751
19752 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19753
19754 * insdel.c (reset_var_on_error): New fun.
19755 (signal_before_change, signal_after_change):
19756 Use it to reset (after|before)-change-functions to nil in case of error.
19757 Bind inhibit-modification-hooks to t.
19758 Don't bind (after|before)-change-functions to nil while they run.
19759
197602007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19761
19762 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19763 filling pixmap with stippled background.
19764
197652007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19766
19767 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19768 Don't use invisible frame as parent window for repositioning.
19769
197702007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19771
19772 * print.c (new_backquote_output): Rename from old_backquote_output.
19773 (print): Inverse its logic (according to its name) so as to match the
19774 behavior of new_backquote_flag in lread.c.
19775
197762007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19777
19778 * gmalloc.c (posix_memalign): New function.
19779
19780 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19781 ActivateControl/DeactivateControl here.
19782 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19783 frame-notice-user-settings is non-nil.
19784 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19785 for kEventParamFMFontStyle.
19786 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19787 mac_pass_command_to_system and mac_pass_control_to_system here.
19788 (XTread_socket): Call ActivateControl/DeactivateControl here.
19789 (XTread_socket) [TARGET_API_MAC_CARBON]:
19790 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19791 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19792 for window repositioning.
19793
197942007-08-08 Glenn Morris <rgm@gnu.org>
19795
19796 * Replace `iff' in doc-strings and comments.
19797
197982007-08-07 Chong Yidong <cyd@stupidchicken.com>
19799
19800 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19801
198022007-08-07 Martin Rudalics <rudalics@gmx.at>
19803
19804 * fileio.c (Finsert_file_contents): Run format-decode and
19805 after_insert_file_functions on entire buffer when REPLACE is
19806 non-nil and inhibit modification_hooks and point_motion_hooks.
19807 For consistency, run after_insert_file_functions iff something
19808 got inserted. Move signal_after_change and update_compositions
19809 after code running after_insert_file_functions. Make sure that
19810 undo_list doesn't record intermediate steps of the decoding process.
19811
198122007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19813
19814 * emacs.c (main)
19815 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19816 Call malloc_enable_thread on interactive startup.
19817
19818 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19819 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19820 [USE_PTHREAD]: Conditionalize with it.
19821 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19822 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19823 New functions.
19824
198252007-08-06 Chong Yidong <cyd@stupidchicken.com>
19826
19827 * xdisp.c (redisplay_window): When restoring original buffer
19828 position, make sure it is still valid.
19829
19830 * image.c (png_load): Ignore png-supplied background color.
19831
198322007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19833
19834 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19835 Use kCFAbsoluteTimeIntervalSince1970.
19836
19837 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19838 New variable.
19839 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19840 event loop should be quit.
19841 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19842 Quit dialog event loop if quit_dialog_event_loop is set.
19843
19844 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19845 (Selection): New typedef. Use instead of ScrapRef.
19846 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19847 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19848 (mac_clear_selection): Rename from clear_scrap.
19849 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19850 scrap_has_target_type. All uses changed.
19851 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19852 (mac_selection_has_target_p): New functions.
19853 (mac_put_selection_value): Rename from put_scrap_string.
19854 (mac_get_selection_value): Rename from get_scrap_string.
19855 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19856 (put_scrap_private_timestamp, scrap_has_target_type)
19857 (get_scrap_private_timestamp): Remove functions.
19858 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19859 (x_own_selection, x_get_local_selection):
19860 Use mac_valid_selection_value_p.
19861 (x_own_selection): Don't use put_scrap_private_timestamp.
19862 Record OWNERSHIP-INFO into Vselection_alist instead.
19863 (x_get_local_selection): Don't check type if request is local.
19864 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19865 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19866
198672007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19868
19869 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19870 add comment explaining why.
19871
198722007-08-03 Richard Stallman <rms@gnu.org>
19873
19874 * fileio.c (Fvisited_file_modtime): Use make_time.
19875
198762007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19877
19878 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19879 build.
19880
198812007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19882
19883 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19884
198852007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19886
19887 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19888
198892007-07-30 Richard Stallman <rms@gnu.org>
19890
19891 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19892
198932007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19894
19895 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19896
198972007-07-28 Nick Roberts <nickrob@snap.net.nz>
19898
19899 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19900 remote default-directory.
19901
19902 * buffer.c (mode-line-format): Update doc string.
19903
199042007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19905
19906 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19907 scroll bar gap.
19908 (x_scroll_bar_create): Set bar->fringe_extended_p.
19909 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19910 on frame edge. Check fringe background extension. Don't clear
19911 extended fringe background area.
19912
19913 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19914 (w32_fill_area): Enclose multiple statements with do ... while (0).
19915
19916 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19917 Extend fringe background to scroll bar gap.
19918 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19919 Set bar->fringe_extended_p.
19920 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19921 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19922 background extension. Don't clear extended fringe background area.
19923
19924 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19925 New member fringe_extended_p.
19926
199272007-07-25 Glenn Morris <rgm@gnu.org>
19928
19929 * Relicense all FSF files to GPLv3 or later.
19930
19931 * COPYING: Switch to GPLv3.
19932
199332007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19934
19935 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19936
19937 * data.c (Finteractive_form): Check for the presence of an
19938 `interactive-form' symbol property more thoroughly.
19939
19940 * data.c (Finteractive_form): Use an `interactive-form' property if
19941 present, analogous to the function-documentation property.
19942
199432007-07-24 Jason Rumney <jasonr@gnu.org>
19944
19945 * w32fns.c (x_real_positions): Get real position from OS instead of
19946 calculating it.
19947
199482007-07-23 Jason Rumney <jasonr@gnu.org>
19949
19950 * filelock.c (current_lock_owner): Allow for @ sign in username.
19951
199522007-07-22 Nick Roberts <nickrob@snap.net.nz>
19953
19954 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19955 remote default-directory.
19956
19957 * buffer.c (mode-line-format): Describe above case in doc string.
19958
199592007-07-20 Eli Zaretskii <eliz@gnu.org>
19960
19961 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19962 Define if not defined.
19963
199642007-07-18 Jason Rumney <jasonr@gnu.org>
19965
19966 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19967
199682007-07-18 Richard Stallman <rms@gnu.org>
19969
19970 * data.c (Fsetq_default): Doc fix.
19971
19972 * eval.c (Fsetq): Doc fix.
19973
199742007-07-18 Juanma Barranquero <lekktu@gmail.com>
19975
19976 * coding.c (Ffind_operation_coding_system):
19977 * eval.c (For, Fand): Doc fixes.
19978 Reported by Johan Bockgård.
19979
199802007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19981
19982 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19983
19984 * xterm.h: Declare x_ewmh_activate_frame.
19985
19986 * xterm.c (x_ewmh_activate_frame): New function.
19987 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19988
199892007-07-17 Martin Rudalics <rudalics@gmx.at>
19990
19991 * window.c (Fdisplay_buffer): If largest or LRU window is the
19992 only window, split it even if it is not eligible for splitting.
19993 This restores the original behavior broken by the 2007-07-15
19994 change.
19995
199962007-07-17 Glenn Morris <rgm@gnu.org>
19997
19998 * abbrev.c (abbrev_check_chars): New function.
19999 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20000 Call abbrev_check_chars to check abbrev characters are word
20001 constituents. Doc fix.
20002
200032007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20004
20005 * process.c (Fstart_process, Fmake_network_process)
20006 (read_process_output): Fix up last changes.
20007
200082007-07-16 Eli Zaretskii <eliz@gnu.org>
20009
20010 * makefile.w32-in (clean): Don't delete *~.
20011
200122007-07-16 Andreas Schwab <schwab@suse.de>
20013
20014 * window.c (Fdisplay_buffer): Use NILP.
20015 (Fset_window_scroll_bars): Likewise.
20016
200172007-07-15 Martin Rudalics <rudalics@gmx.at>
20018
20019 * window.c (window_min_size_2): New function.
20020 (window_min_size_1, size_window, Fdisplay_buffer)
20021 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20022 windows without mode- or header-lines when window-min-height is
20023 too small.
20024 (size_window): Reset nodelete_p after testing it, following an
20025 earlier note by Kim F. Storm.
20026 (display_buffer): Do not set split_height_threshold to twice the
20027 value of window_min_height to avoid changing the value of a
20028 customizable variable. Rather explicitly check whether the
20029 height of the window that shall be splitted is at least as large
20030 as split_height_threshold.
20031 (Fwindow_full_width_p): New defun.
20032 (syms_of_window): Defsubr it.
20033
20034 * window.h: Add EXFUN for Fwindow_full_width_p.
20035
200362007-07-14 Jason Rumney <jasonr@gnu.org>
20037
20038 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20039
200402007-07-14 Richard Stallman <rms@gnu.org>
20041
20042 * eval.c (maybe_call_debugger): New function.
20043 (find_handler_clause): Use maybe_call_debugger.
20044 Call it when the handler says `debug'.
20045 Eliminate DEBUGGER_VALUE_PTR.
20046 (Fsignal): Eliminate debugger_value.
20047 (Qdebug): New variable.
20048 (syms_of_eval): Initialize it.
20049
200502007-07-14 Juanma Barranquero <lekktu@gmail.com>
20051
20052 * eval.c (Fprogn):
20053 * keyboard.c (Ftrack_mouse):
20054 * print.c (Fwith_output_to_temp_buffer):
20055 * window.c (Fsave_window_excursion): Doc fix.
20056
200572007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20058
20059 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20060
200612007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20062
20063 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20064 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20065 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20066 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20067 Remove unused encoding_carryover.
20068 * process.c: Adjust all functions accordingly.
20069
200702007-07-12 Richard Stallman <rms@gnu.org>
20071
20072 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20073
200742007-07-11 Jason Rumney <jasonr@gnu.org>
20075
20076 * makefile.w32-in (LIBS): Include OLE32.
20077
20078 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20079 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20080
200812007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20082
20083 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20084 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20085 from a Lisp_Object into a bare pointer.
20086 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20087 Adjust the code correspondingly.
20088
20089 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20090
20091 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20092 (term_show_mouse_face): Remove unused var `j'.
20093 (handle_one_term_event): Remove unused vars `i' and `j'.
20094 Don't cast return value of ttyname since it's not necessary.
20095
200962007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20097
20098 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20099 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20100
20101 * fns.c (map_char_table): Use an array of int for `indices' rather than
20102 an array of Lisp_Objects (which are only ever integers anyway).
20103 (Fmap_char_table): Update caller.
20104 * lisp.h: Update prototype.
20105 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20106 * fontset.c (Ffontset_info):
20107 * casetab.c (set_case_table): Update callers.
20108
20109 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20110
20111 * keymap.c (struct accessible_keymaps_data)
20112 (struct where_is_internal_data): New structures.
20113 (accessible_keymaps_1, where_is_internal_1): Use them to change
20114 interface to adhere to the one used by map_keymap.
20115 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20116 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20117
20118 * keymap.h (map_keymap_function_t): More informative prototype.
20119
201202007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20121
20122 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20123 (looking_at_1): Don't change search_regs and last_thing_searched
20124 if `inhibit-changing-match-data' is non-nil.
20125 (string_match_1, search_buffer, set_search_regs): Likewise.
20126 (syms_of_search): Add Lisp level definition for
20127 `inhibit-changing-match-data' and set it to nil.
20128 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20129 start and end of the match, instead of using values in search_regs.
20130
201312007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20132
20133 * minibuf.c (Fcompleting_read): New value `confirm-only'
20134 for `require-match'.
20135
201362007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20137
20138 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20139 part of the 2007-06-27 change to syms_of_fileio.
20140
201412007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20142
20143 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20144 Check WINDOWP before using XWINDOW. Consolidate return statements.
20145
201462007-06-27 Richard Stallman <rms@gnu.org>
20147
20148 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20149
201502007-06-27 Juanma Barranquero <lekktu@gmail.com>
20151
20152 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20153
201542007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20155
20156 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20157 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20158 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20159 (_free_internal, memalign): Use them.
20160 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20161 Initialize to PTHREAD_MUTEX_INITIALIZER.
20162 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20163 (morecore_nolock): Rename from morecore. All uses changed.
20164 Use only nolock versions of internal allocation functions.
20165 (_malloc_internal_nolock, _realloc_internal_nolock)
20166 (_free_internal_nolock): New functions created from
20167 _malloc_internal, _realloc_internal, and _free_internal.
20168 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20169 Copy hook value to automatic variable before its use.
20170 (memalign): Copy hook value to automatic variable before its use.
20171
201722007-06-26 Kenichi Handa <handa@m17n.org>
20173
20174 * coding.c (Ffind_operation_coding_system): Docstring improved.
20175 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20176
201772007-06-25 David Kastrup <dak@gnu.org>
20178
20179 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20180 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20181 cater for additional parameter.
20182
20183 * keymap.h: Adjust number of parameters to `current-active-maps'.
20184
20185 * doc.c (Fsubstitute_command_keys): Adjust call of
20186 `current-active-maps'.
20187
201882007-06-25 David Kastrup <dak@gnu.org>
20189
20190 * callint.c (Fcall_interactively): Make the parsing of interactive
20191 specs somewhat more readable.
20192
201932007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20194
20195 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20196 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20197 if extended background has already been filled.
20198
201992007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20200
20201 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20202 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20203
20204 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20205 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20206 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20207 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20208 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20209 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20210 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20211 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20212 Run timers during dialog popup.
20213 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20214
202152007-06-21 Jason Rumney <jasonr@gnu.org>
20216
20217 * image.c (convert_mono_to_color_image): Swap fore and background.
20218
202192007-06-20 Jason Rumney <jasonr@gnu.org>
20220
20221 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20222 (w32_free_bdf_font): Unmap memory not handle.
20223
202242007-06-20 Sam Steingold <sds@gnu.org>
20225
20226 * gmalloc.c (__morecore): Fix the declaration to comply with the
20227 definition.
20228
202292007-06-20 Juanma Barranquero <lekktu@gmail.com>
20230
20231 * w32term.c (w32_delete_display): Remove leftover declaration.
20232 (w32_define_cursor, w32_initialize): Make static.
20233
20234 * w32.c (_wsa_errlist): Fix typo in error message.
20235 (init_environment): Ignore any environment variable from the
20236 registry having a null value.
20237
202382007-06-20 Glenn Morris <rgm@gnu.org>
20239
20240 * Makefile.in (LIBGIF): Default to -lgif.
20241
202422007-06-17 Jason Rumney <jasonr@gnu.org>
20243
20244 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20245 unicode strings.
20246
202472007-06-16 Juanma Barranquero <lekktu@gmail.com>
20248
20249 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20250 Fix typo in docstring.
20251
202522007-06-16 Eli Zaretskii <eliz@gnu.org>
20253
20254 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20255 and their keybindings.
20256
202572007-06-15 Chong Yidong <cyd@stupidchicken.com>
20258
20259 * composite.c (update_compositions): Fix last fix.
20260
202612007-06-14 Jason Rumney <jasonr@gnu.org>
20262
20263 * w32.c (get_process_times_fn): New function pointer.
20264 (globals_of_w32): Intialize it if present in kernel32.dll.
20265 (w32_get_internal_run_time): New function.
20266
20267 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20268
202692007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20270
20271 * composite.c (update_compositions): Check the validness of
20272 compositions.
20273
202742007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20275
20276 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20277 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20278
20279 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20280 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20281
20282 * macgui.h (USE_MAC_TOOLBAR): New define.
20283
20284 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20285 Return immediately unless popup is activated.
20286
20287 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20288 background to scroll bar gap.
20289 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20290 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20291 scroll bars on frame edge. Check fringe background extension.
20292 Don't clear extended fringe background area.
20293 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20294 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20295 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20296 [USE_MAC_TOOLBAR]: New macros.
20297 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20298 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20299 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20300 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20301 [USE_MAC_TOOLBAR]: New functions.
20302 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20303 manually if previous repositioning has failed.
20304 (mac_handle_keyboard_event): Use precomputed event kind.
20305 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20306 as tool bar item click. Handle mouse movement over tool bar items.
20307
20308 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20309 toolbar_win_gravity.
20310 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20311 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20312 Add externs.
20313
20314 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20315 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20316
203172007-06-14 Chong Yidong <cyd@stupidchicken.com>
20318
20319 * image.c (search_image_cache): Remove unused variable.
20320
203212007-06-13 Chong Yidong <cyd@stupidchicken.com>
20322
20323 * xfns.c, xmenu.c: Link to xaw3d if available.
20324
203252007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20326
20327 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20328 frame_foreground and frame_background.
20329
20330 * image.c (lookup_image): Save frame foreground and background colors.
20331 (search_image_cache): Check if saved and current frame colors match.
20332
203332007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20334
20335 * regex.c (regex_compile): Remove the `regnum' counter.
20336 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20337
203382007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20339
20340 * term.c: Include intervals.h to declare Fget_text_property.
20341
203422007-06-10 Jason Rumney <jasonr@gnu.org>
20343
20344 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20345
203462007-06-08 Juanma Barranquero <lekktu@gmail.com>
20347
20348 * callint.c (Fcall_interactively):
20349 * editfns.c (Fdelete_and_extract_region):
20350 * fileio.c (Fread_file_name):
20351 * fns.c (Fmapconcat):
20352 * keyboard.c (cmd_error_internal):
20353 * keymap.c (Fkey_description):
20354 * lread.c (openp):
20355 * minibuf.c (read_minibuf):
20356 * search.c (wordify):
20357 * sunfns.c (sel_read):
20358 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20359 * xfns.c (x_default_scroll_bar_color_parameter):
20360 * xmenu.c (menu_help_callback):
20361 * xselect.c (Fx_get_atom_name):
20362 * xterm.c (x_term_init): Use empty_unibyte_string.
20363
203642007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20365
20366 * alloc.c (init_strings): Initialize canonical empty strings.
20367 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20368 canonical empty string when the requested size is 0.
20369
20370 * emacs.c (empty_unibyte_string): Rename from empty_string.
20371 (empty_multibyte_string): New canonical empty string.
20372 (syms_of_emacs): Don't initialize empty_string.
20373
20374 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20375 string, if appropriate.
20376 (empty_unibyte_string, empty_multibyte_string): New externs.
20377 (empty_string): Remove extern.
20378
20379 * lread.c (syms_of_lread): Use empty_unibyte_string.
20380
203812007-06-07 Jason Rumney <jasonr@gnu.org>
20382
20383 * s/ms-w32.h: Don't define HAVE_TZNAME.
20384
20385 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20386
203872007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20388
20389 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20390
20391 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20392 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20393
20394 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20395 Don't call next handler.
20396 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20397 Remove argument. Install handler to application.
20398 (set_frame_menubar): Don't change deep_p.
20399 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20400 FRAME_OUTER_TO_INNER_DIFF_Y.
20401 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20402 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20403 [HAVE_DIALOGS]: New macros.
20404 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20405 Use them.
20406 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20407
20408 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20409 init_service_handler. All callers changed. Return OSStatus value.
20410
20411 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20412 All callers changed so as not to call SetPortWindowPort.
20413 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20414 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20415 mac_draw_string_common.
20416 (mac_draw_image_string_qd): Likewise.
20417 (mac_draw_string_common): Use them. Add INLINE.
20418 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20419 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20420 GetGlobalMouse.
20421 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20422 and FRAME_OUTER_TO_INNER_DIFF_Y.
20423 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20424 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20425 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20426 repositioning window to mac_handle_window_event.
20427 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20428 saving window location to mac_handle_window_event
20429 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20430 (install_menu_target_item_handler): Remove argument in extern.
20431 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20432 Also accept command events.
20433 (do_keystroke): New function created from XTread_socket.
20434 (init_command_handler): Remove functions.
20435 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20436 and save window location by kEventWindowShowing and kEventWindowHiding
20437 handlers here. Don't call next handler for window state change and
20438 focus events.
20439 (mac_handle_application_event, mac_handle_keyboard_event)
20440 [TARGET_API_MAC_CARBON]: New functions.
20441 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20442 kEventWindowShowing and kEventWindowHiding events. Move installation
20443 of mouse, font, text input and menu target item handlers to
20444 install_application_handler.
20445 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20446 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20447 New function.
20448 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20449 Register it.
20450 (XTread_socket) [TARGET_API_MAC_CARBON]:
20451 Consolidate SendEventToEventTarget calls.
20452 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20453 Move application activation handler to mac_handle_application_event.
20454 Move keyboard handler to mac_handle_keyboard_event.
20455 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20456 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20457 init_command_handler. Call install_application_handler.
20458
20459 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20460 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20461
204622007-06-07 Glenn Morris <rgm@gnu.org>
20463
20464 * emacs.c (main): Use `emacs-copyright' in --version output.
20465
204662007-06-06 Chong Yidong <cyd@stupidchicken.com>
20467
20468 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20469
204702007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20471
20472 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20473
20474 * macgui.h: Replace WindowPtr with WindowRef.
20475
20476 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20477 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20478 Replace ControlHandle with ControlRef.
20479 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20480
20481 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20482 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20483 Replace ControlHandle with ControlRef.
20484 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20485 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20486
20487 * macterm.h (struct scroll_bar): Rename member control_handle_low
20488 and control_handle_high to control_ref_low and control_ref_high.
20489 All uses changed.
20490 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20491 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20492 respectively. All uses changed.
20493 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20494 (install_window_handler, remove_window_handler): Replace WindowPtr
20495 with WindowRef in externs.
20496
204972007-06-05 Juanma Barranquero <lekktu@gmail.com>
20498
20499 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20500
205012007-06-03 Nick Roberts <nickrob@snap.net.nz>
20502
20503 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20504
20505 * frame.c (Fmouse_position, Fmouse_pixel_position):
20506 Condition on HAVE_GPM too.
20507
20508 * term.c (term_mouse_highlight): Remove unused variables.
20509 (Fterm_open_connection): Set gpm_zerobased to 1.
20510 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20511 Use zero based co-ordinates.
20512 (handle_one_term_event): Report a drag as mouse movement too.
20513
20514 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20515
205162007-06-03 Chong Yidong <cyd@stupidchicken.com>
20517
20518 * image.c (search_image_cache): New function. Require background
20519 color match if background color is unspecified in the image spec.
20520 (uncache_image, lookup_image): Use it.
20521
205222007-06-01 Juanma Barranquero <lekktu@gmail.com>
20523
20524 * window.c (Fshrink_window): Reflow docstring.
20525
205262007-06-02 Chong Yidong <cyd@stupidchicken.com>
20527
20528 * Version 22.1 released.
20529
205302007-06-01 Richard Stallman <rms@gnu.org>
20531
20532 * xfns.c (x_encode_text): Add GCPRO.
20533
205342007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20535
20536 * xfns.c (x_set_name_internal): Save encoded name before
20537 x_encode_text in case string data is relocated.
20538
205392007-05-31 Richard Stallman <rms@gnu.org>
20540
20541 * buffer.c (syms_of_buffer): Doc fix.
20542
205432007-05-30 Nick Roberts <nickrob@snap.net.nz>
20544
20545 * sysdep.c (init_sys_modes): Add rather than replace with
20546 O_NONBLOCK.
20547
20548 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20549 term_mouse_moveto.
20550
20551 * termhooks.h (term_mouse_moveto): New extern.
20552
20553 * term.c (mouse_face_window): Rename...
20554 (Qmouse_face_window): ...to this.
20555 (term_show_mouse_face, term_clear_mouse_face)
20556 (term_mouse_highlight): Use Qmouse_face_window.
20557 (term_mouse_moveto): New function.
20558 (term_mouse_position): Make it work.
20559 (syms_of_term): Uncomment assignment to mouse_position_hook.
20560 Staticpro Qmouse_face_window.
20561
205622007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20563
20564 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20565 around current_column call.
20566
205672007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20568
20569 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20570 * xdisp.c (next_element_from_buffer):
20571 * window.c (delete_window):
20572 * term.c (term_mouse_highlight):
20573 * msdos.c (getdefdir):
20574 * macterm.c (mac_create_bitmap_from_bitmap_data)
20575 (init_font_name_table):
20576 * fns.c (Fsxhash):
20577 * data.c (Fmake_local_variable):
20578 * ccl.c (ccl_driver): Likewise.
20579
205802007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20581
20582 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20583 Call mac_wakeup_from_rne on window size change.
20584
205852007-05-25 Chong Yidong <cyd@stupidchicken.com>
20586
20587 * image.c (uncache_image): Fix typo.
20588
205892007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20590
20591 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20592
205932007-05-22 Richard Stallman <rms@gnu.org>
20594
20595 * xterm.c (x_connection_closed): Remove NO_RETURN.
20596
205972007-05-22 Martin Rudalics <rudalics@gmx.at>
20598
20599 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20600
206012007-05-21 Chong Yidong <cyd@stupidchicken.com>
20602
20603 * image.c (uncache_image): New function.
20604 (Fimage_refresh): New function.
20605
206062007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20607
20608 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20609
206102007-05-20 Nick Roberts <nickrob@snap.net.nz>
20611
20612 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20613 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20614
206152007-05-20 Nick Roberts <nickrob@snap.net.nz>
20616
20617 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20618 conditional on [HAVE_GPM_H].
20619
206202007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20621
20622 * syntax.c (skip_chars): Update syntax-table only after we checked that
20623 the new location is valid.
20624
206252007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20626
20627 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20628 mac_get_window_bounds.
20629
206302007-05-20 Nick Roberts <nickrob@snap.net.nz>
20631
20632 * Makefile.in (LIBGPM): Allow it to be set from configure.
20633 If set then link Emacs with it.
20634
20635 * config.in: Regenerate.
20636
20637 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20638 New externs.
20639
20640 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20641 Include gpm.h.
20642 (handle_one_term_event, term_gpm): New externs.
20643
20644 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20645 and allow it to be interrupted by SIGIO.
20646
20647 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20648 (wait_reading_process_output): Wait on gpm_fd too.
20649 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20650 (add_gpm_wait_descriptor_called_flag): New variable.
20651 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20652
20653 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20654 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20655 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20656 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20657 (make_lispy_event): Add case GPM_CLICK_EVENT.
20658 (read_avail_input): Handle mouse input.
20659
20660 * term.c (write_glyphs_with_face): New function.
20661 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20662 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20663 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20664 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20665 (last_mouse_x, last_mouse_y): New variables.
20666 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20667 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20668 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20669 (Fterm_close_connection): New functions.
20670 (term_init): Initialise mouse_face_window.
20671
206722007-05-19 Chong Yidong <cyd@stupidchicken.com>
20673
20674 * xdisp.c (redisplay_window): If first window line is a
20675 continuation line, recompute the new window start instead of
20676 recentering.
20677
206782007-05-18 Glenn Morris <rgm@gnu.org>
20679
20680 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20681 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20682
206832007-05-17 Glenn Morris <rgm@gnu.org>
20684
20685 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20686
206872007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20688
20689 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20690 dead key repeat and up events.
20691
206922007-05-14 Chong Yidong <cyd@stupidchicken.com>
20693
20694 * image.c (pbm_load): Check image size for monochrome pbm.
20695
206962007-05-13 Chong Yidong <cyd@stupidchicken.com>
20697
20698 * xterm.c (XTread_socket): Revert last change.
20699
207002007-05-12 Chong Yidong <cyd@stupidchicken.com>
20701
20702 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20703
20704 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20705
207062007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20707
20708 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20709 mixup (YAILOM).
20710
207112007-05-07 Andreas Schwab <schwab@suse.de>
20712
20713 * keymap.c (Flookup_key): Fix typo in last change.
20714
207152007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20716
20717 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20718 mapping for unibyte strings.
20719
207202007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20721
20722 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20723 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20724
207252007-04-29 Richard Stallman <rms@gnu.org>
20726
20727 * insdel.c (replace_range): For undo, record insertion first.
20728
207292007-04-29 Andreas Schwab <schwab@suse.de>
20730
20731 * lisp.h (VECSIZE): Use OFFSETOF.
20732
207332007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20734
20735 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20736 disabled lines.
20737
207382007-04-28 Richard Stallman <rms@gnu.org>
20739
20740 * lread.c (read_escape): In a string, \s is always space.
20741
207422007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20743
20744 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20745
20746 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20747 submenu for menu bar items.
20748
20749See ChangeLog.10 for earlier changes.
20750
20751;; Local Variables:
20752;; coding: utf-8
20753;; add-log-time-zone-rule: t
aac0c6e3
MR
20754;; End:
20755
76b6f707 20756 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20757
20758 This file is part of GNU Emacs.
20759
20760 GNU Emacs is free software: you can redistribute it and/or modify
20761 it under the terms of the GNU General Public License as published by
20762 the Free Software Foundation, either version 3 of the License, or
20763 (at your option) any later version.
20764
20765 GNU Emacs is distributed in the hope that it will be useful,
20766 but WITHOUT ANY WARRANTY; without even the implied warranty of
20767 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20768 GNU General Public License for more details.
20769
20770 You should have received a copy of the GNU General Public License
20771 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20772
20773;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40