(Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5d58e44c
SM
12009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4
5e13f9d3
JB
52009-11-12 Juanma Barranquero <lekktu@gmail.com>
6
7 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
8
cf54c754
DR
92009-11-11 David Reitter <david.reitter@gmail.com>
10
11 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
12 variables to fix 2009-11-09 change.
13
a4ada374
DN
142009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
15
91433552
DN
16 * process.c (ifflag_def): Make flag_sym constant.
17 (Fnetwork_interface_info): Use a constant pointer.
18 (ifflag_table):
19 * xfns.c (cursor_bits):
20 * xdisp.c (power_letter):
21 * termcap.c (speeds, esctab):
22 * sysdep.c (baud_convert):
23 * keyboard.c (lispy_accent_codes, modifier_names):
24 * image.c (xbm_format, xpm_format, pbm_format, png_format)
25 (jpeg_format, tiff_format, gif_format, svg_format)
26 (interlace_start, interlace_increment, gs_format):
27 * gtkutil.c (separator_names):
28 * fringe.c (swap_nibble):
29 * fns.c (base64_value_to_char, base64_char_to_value):
30 * fileio.c (make_temp_name_tbl):
31 * coding.c (suffixes): Make constant.
32
f4265f6c
DN
33 * frame.c (make_initial_frame):
34 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
35 build_string.
36 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
37
04420943
DN
38 * s/freebsd.h:
39 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
40
0a5d24ae
DN
41 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
42 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
43
a4ada374
DN
44 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
45 * xterm.c (syms_of_xterm):
46 * xfaces.c (syms_of_xfaces):
47 * xdisp.c (syms_of_xdisp):
48 * lread.c (syms_of_lread):
49 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
50 build_string.
91433552 51
a4ada374
DN
52 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
53
af98fc7f
SM
542009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
55
56 * fns.c (Fplist_get): Merge the active and the uncommented code.
57
e90292a9
JD
582009-11-10 Jan Djärv <jan.h.d@swipnet.se>
59
60 * keyboard.h: Declare timer_check.
61
62 * keyboard.c (timer_check_2): New function that does what the old
63 timer_check did.
64 (timer_check): Call timer_check_2 until -1 or a non-zero time is
65 returned, i.e. don't return -1 with timers pending.
66
67 * process.c: Remove extern declaration of timer_check.
68
69 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
70 even if timer_check returned -1.
71
af98fc7f
SM
72 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
73 xg_dialog_data.
e90292a9
JD
74 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
75 the event loop.
76 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
77 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
78 Destroy the dialog after xg_dialog_run.
79
045b83c0
SM
802009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
81
82 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
83
1fb99a3a
JD
842009-11-10 Jan Djärv <jan.h.d@swipnet.se>
85
86 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
87
04e452cb
JB
882009-11-09 Juanma Barranquero <lekktu@gmail.com>
89
90 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
91
ef7417fd
SM
922009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
93
94 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
95 w32menu.c, and nsmenu.m.
96 Simplify the obsolete case where position is nil.
97 (cleanup_popup_menu): New function, moved from nsmenu.m.
98 (struct skp): Remove slot `notreal'.
99 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
100 adjust callers.
101 (single_menu_item): Adjust call to parse_menu_item.
102 (syms_of_menu): Defsubr x-popup-menu.
103 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
104 (keymap_panes): Don't export any more.
105 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
106 (xmenu_show): Declare.
107 * keyboard.c (parse_menu_item): Remove arg `notreal'.
108 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
109 * keyboard.h (parse_menu_item): Update declaration.
110 * xmenu.c (Fx_popup_menu): Remove.
111 (syms_of_xmenu): Don't defsubr x-popup-menu.
112 * w32menu.c (Fx_popup_menu): Remove.
113 (syms_of_w32menu): Don't defsubr x-popup-menu.
114 * nsmenu.m (cleanup_popup_menu): Remove.
115 (ns_menu_show): Rename from ns_popup_menu and remove all the code
116 moved to menu.c's Fx_popup_menu.
117 (Fx_popup_menu): Remove.
118 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
119 menu_items (it's done in menu.c already).
120
424d6179
SM
1212009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
122
123 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
124 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
125
c0df13a6 1262009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
127
128 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 129 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
130 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
131 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
132
2de9f71c
SM
1332009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
134
135 Let integers use up 2 tags to give them one extra bit and thus double
136 their range.
137 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
138 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
139 New macros.
140 (enum Lisp_Type): Use them. Give explicit values.
141 (Lisp_Type_Limit): Remove.
142 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
143 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
144 Pay attention to USE_2_TAGS_FOR_INTS.
145 (INTEGERP): Use LISP_INT_TAG_P.
146 * fns.c (internal_equal): Simplify the default case.
147 (sxhash): Use case_Lisp_Int.
148 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
149 any more.
150 (Ftype_of): Use case_Lisp_Int.
151 (store_symval_forwarding): Take into account the fact that Ints can
152 now have more than one tag.
153 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
154 buffer_slot_type_mismatch):
155 * xfaces.c (face_attr_equal_p):
156 * print.c (print_object):
157 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
158 Use case_Lisp_Int.
159
323637a2
EZ
1602009-11-06 Eli Zaretskii <eliz@gnu.org>
161
7ac65b38
EZ
162 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
163
323637a2
EZ
164 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
165 warning.
166
e511451f
JD
1672009-11-06 Jan Djärv <jan.h.d@swipnet.se>
168
169 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
170
171 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
172
173 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
174 ButtonPressRelease and MotionNotify (bug#4870).
175
5e2327cf
DN
1762009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
177
5adc433e
DN
178 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
179
d67b4f80
DN
180 * xterm.c (syms_of_xterm):
181 * xselect.c (syms_of_xselect):
182 * xmenu.c (syms_of_xmenu):
183 * xfns.c (syms_of_xfns):
184 * xfaces.c (syms_of_xfaces):
185 * xdisp.c (syms_of_xdisp):
186 * window.c (syms_of_window):
187 * w32fns.c (syms_of_w32fns):
188 * undo.c (syms_of_undo):
189 * textprop.c (syms_of_textprop):
190 * terminal.c (syms_of_terminal):
191 * syntax.c (syms_of_syntax):
192 * sound.c (syms_of_sound):
193 * search.c (syms_of_search):
194 * print.c (syms_of_print):
195 * minibuf.c (syms_of_minibuf):
196 * macros.c (syms_of_macros):
197 * keymap.c (syms_of_keymap, initial_define_key)
198 (initial_define_lispy_key):
199 * keyboard.c (syms_of_keyboard):
200 * insdel.c (syms_of_insdel):
201 * image.c (syms_of_image):
202 * fringe.c (syms_of_fringe):
203 * frame.c (syms_of_frame):
204 * fontset.c (syms_of_fontset):
205 * fns.c (syms_of_fns):
206 * fns.c (syms_of_fns):
207 * fileio.c (syms_of_fileio):
208 * fileio.c (syms_of_fileio):
209 * eval.c (syms_of_eval):
210 * doc.c (syms_of_doc):
211 * dispnew.c (syms_of_display):
212 * dired.c (syms_of_dired):
213 * dbusbind.c (syms_of_dbusbind):
214 * data.c (syms_of_data):
215 * composite.c (syms_of_composite):
216 * coding.c (syms_of_coding):
217 * cmds.c (syms_of_cmds):
218 * charset.c (define_charset_internal, syms_of_character):
219 * ccl.c (syms_of_ccl):
220 * category.c (syms_of_category, init_category_once):
221 * casetab.c (syms_of_casetab):
222 * casefiddle.c (syms_of_casefiddle):
223 * callint.c (syms_of_callint):
224 * bytecode.c (syms_of_bytecode):
225 * buffer.c (keys_of_buffer, syms_of_buffer):
226 * alloc.c (syms_of_alloc):
227 * process.c (syms_of_process, init_process):
228 * lread.c (syms_of_lread, init_obarray):
229 * font.c (build_style_table):
230 * emacs.c (syms_of_emacs, main): Replace calls to intern with
231 intern_c_string, calls to make_pure_string with
232 make_pure_c_string. Use pure_cons instead of Fcons.
233
5e2327cf
DN
234 * process.c (socket_options): Make it const.
235 (set_socket_option, init_process): Use a const pointer.
236
237 * lread.c (intern_c_string): New function.
238 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
239 (defvar_int): Uset it. Make the name const char*.
240
241 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
242 (defvar_int): Update prototypes.
243 (DEFUN, EXFUN): Support for prototypes is now required.
244 (intern_c_string): New prototype.
245 (struct Lisp_Subr): Make symbol_name constant.
246
247 * font.c (struct table_entry): Remove unused member. Make NAMES
248 constant.
249 (weight_table, slant_table, width_table): Make constant.
250
251 * emacs.c (struct standard_args): Make name and longname constant.
252
253 * character.h (DEFSYM): Use intern_c_string.
254
a56eaaef
DN
2552009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
256
257 * alloc.c (make_pure_c_string): New function.
258
259 * eval.c (Fautoload): Purecopy all arguments.
260
f6a07420
KH
2612009-11-05 Kenichi Handa <handa@m17n.org>
262
263 * fileio.c (Finsert_file_contents): Be sure set coding-system of
264 the buffer in case of replace.
265
5d28d4b1
DN
2662009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
267
268 * puresize.h (BASE_PURESIZE): Increase to 1620000.
269
b349d111
SM
2702009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
271
d528b1ce
SM
272 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
273 when applicable (bug#4851).
274
b349d111
SM
275 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
276 (P_): Support for prototypes is now required.
277
c38eb027
CY
2782009-10-31 Chong Yidong <cyd@stupidchicken.com>
279
280 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
281 (Bug#4827).
282
0405f8d9
EZ
2832009-10-30 Eli Zaretskii <eliz@gnu.org>
284
d528b1ce 285 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 286
ca0a881a
DN
2872009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
288
289 * puresize.h (BASE_PURESIZE): Increase to 1470000.
290
d528b1ce
SM
291 * lread.c (Fload): Purecopy the file name when building
292 Vpreloaded_file_list.
ca0a881a 293
47e0e0e4
JR
2942009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
295
296 * w32fns.c (syms_of_w32fns): Change default value of
297 w32-scroll-lock-modifier to nil. (Bug#2827)
298
057bce6f
JB
2992009-10-26 Juanma Barranquero <lekktu@gmail.com>
300
782a943e 301 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 302
242bc74c
AS
3032009-10-26 Andreas Schwab <schwab@redhat.com>
304
305 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
306
522d013a
JB
3072009-10-26 Juanma Barranquero <lekktu@gmail.com>
308
309 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
310 For delta < 0, skip check that only makes sense when the mini-window
311 is going to be enlarged. (Bug#4534)
312
18060980
CY
3132009-10-25 Chong Yidong <cyd@stupidchicken.com>
314
315 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
316 string in menu maps (Bug#4471).
317
fec8f0fe
CY
3182009-10-24 Chong Yidong <cyd@stupidchicken.com>
319
320 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
321 FRAME_NS_VIEW on terminal frames (Bug#4765).
322
10d66ec0
AS
3232009-10-24 Andreas Schwab <schwab@linux-m68k.org>
324
1cae01f7
AS
325 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
326 DBUS_TYPE_UINTnn separately to get proper sign extension.
327
58a12889
AS
328 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
329 can properly handle unsigned types.
d528b1ce 330 (make_uid, make_gid): Remove.
58a12889 331
987c9327
AS
332 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
333 types again.
334
522d013a 335 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
336 (system_process_attributes): Likewise.
337
905a9ed3
DN
3382009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
339
340 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
341
342 * eval.c (Fautoload): Purecopy the filename. Simplify.
343
344 * category.c (Fdefine_category): Purecopy docstring.
345
a599b3e8
AS
3462009-10-23 Andreas Schwab <schwab@linux-m68k.org>
347
7b792fc9
AS
348 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
349
a599b3e8
AS
350 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
351
b35ac83e
CY
3522009-10-23 Chong Yidong <cyd@stupidchicken.com>
353
354 * window.c (Fwindow_edges, Fwindow_pixel_edges)
355 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
356 (Bug#4775).
357
e8903e00
SM
3582009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
359
360 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
361 (init_fileio_once):
362 * lisp.h (init_fileio_once): Remove.
363 * emacs.c (main): Don't call init_fileio_once.
364
8f43cbf3
DN
3652009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
366
367 * puresize.h (BASE_PURESIZE): Increase to 1430000.
368
26898943
AS
3692009-10-21 Andreas Schwab <schwab@linux-m68k.org>
370
371 * doprnt.c (doprnt): Fix overflow check.
372
5c646d5a
JD
3732009-10-21 Jan Djärv <jan.h.d@swipnet.se>
374
3132a7ea
JD
375 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
376
5c646d5a
JD
377 * xterm.h (x_wait_for_event): Declare it.
378
379 * xterm.c (pending_event_wait): New variable.
380 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
381 see pending_event_wait.eventtype.
382 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
383 (x_new_font): Call change_frame_size with new rows/columns before we
384 try to resize the frame.
5c646d5a 385 (x_wait_for_event): New function.
d528b1ce
SM
386 (x_set_window_size_1): Don't change gravity unless change_gravity
387 is set.
5c646d5a
JD
388 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
389 don't change frame size, instead wait for the ConfigureNotify.
390 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
391 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
392 (x_initialize): Initialize pending_event_wait.
393
394 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
395 size.
396
397 * widget.c (EmacsFrameSetValues): Add comment.
398 (EmacsFrameSetCharSize): Just call x_set_window_size.
399
400 * gtkutil.c (xg_frame_set_char_size): Flush events and call
401 x_wait_for_event.
d528b1ce 402 (flush_and_sync): Remove again.
5c646d5a
JD
403 (xg_get_font_name): Suggest monospace if no previous font is known.
404
e9c1637d
SM
4052009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
406
407 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 408 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 409
5a72cccb
YM
4102009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
411
412 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
413 processing pending events when event is filtered for input method.
ab04798f 414 (Bug#3681)
5a72cccb 415
2629aa37
JB
4162009-10-20 Juanma Barranquero <lekktu@gmail.com>
417
418 * fns.c: Add #endif accidentally removed in previous change.
419
c3417a74
DN
4202009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
421
422 * fns.c: Remove code for unsupported system: MAC_OS.
423 * image.c: Likewise. Include setjmp.h.
424
9685cef2
JD
4252009-10-19 Jan Djärv <jan.h.d@swipnet.se>
426
427 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
428 pixel -1 (bug #4742).
429
d7306fe6
DN
4302009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
431
019d2c4c
DN
432 * process.c (create_pty): Remove conditionals for no longer
433 supported systems: UNIPLUS and RTU.
434
ee6bacd4
DN
435 * xterm.c:
436 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
437
d7306fe6
DN
438 * alloc.c: Do not define struct catchtag.
439 * eval.c: Move struct catchtag definition ...
440 * lisp.h: ... here.
441
442 * image.c: Move png.h #include earlier to avoid warnings.
443
444 * xterm.c:
445 * xsmfns.c:
446 * xselect.c:
447 * xrdb.c:
448 * xmenu.c:
449 * xftfont.c:
450 * xfont.c:
451 * xfns.c:
452 * xfaces.c:
453 * xdisp.c:
454 * window.c:
455 * widget.c:
456 * w32xfns.c:
457 * w32uniscribe.c:
458 * w32term.c:
459 * w32select.c:
460 * w32reg.c:
461 * w32proc.c:
462 * w32menu.c:
463 * w32inevt.c:
464 * w32heap.c:
465 * w32font.c:
466 * w32fns.c:
467 * w32console.c:
468 * w32.c:
469 * w16select.c:
470 * vm-limit.c:
471 * unexsol.c:
472 * unexec.c:
473 * unexcw.c:
474 * unexaix.c:
475 * undo.c:
476 * tparam.c:
477 * textprop.c:
478 * terminfo.c:
479 * terminal.c:
480 * termcap.c:
481 * term.c:
482 * syntax.c:
483 * sound.c:
484 * sheap.c:
485 * search.c:
486 * scroll.c:
487 * region-cache.c:
488 * regex.c:
489 * ralloc.c:
490 * process.c:
491 * print.c:
b024548b
DN
492 * nsterm.m:
493 * nsselect.m:
494 * nsmenu.m:
495 * nsimage.m:
496 * nsfont.m:
497 * nsfns.m:
d7306fe6
DN
498 * msdos.c:
499 * minibuf.c:
500 * menu.c:
501 * marker.c:
502 * macros.c:
503 * keymap.c:
504 * keyboard.c:
505 * intervals.c:
506 * insdel.c:
507 * indent.c:
508 * gtkutil.c:
509 * ftxfont.c:
510 * ftfont.c:
511 * fringe.c:
512 * frame.c:
513 * fontset.c:
514 * font.c:
515 * fns.c:
516 * floatfns.c:
517 * filelock.c:
518 * fileio.c:
519 * emacs.c:
520 * editfns.c:
521 * dosfns.c:
522 * doprnt.c:
523 * doc.c:
524 * dispnew.c:
525 * dired.c:
526 * dbusbind.c:
527 * data.c:
528 * composite.c:
529 * coding.c:
530 * cmds.c:
531 * cm.c:
532 * chartab.c:
533 * charset.c:
534 * character.c:
535 * ccl.c:
536 * category.c:
537 * casetab.c:
538 * casefiddle.c:
539 * callproc.c:
540 * callint.c:
541 * bytecode.c:
542 * buffer.c:
543 * atimer.c: Include setjmp.h. (Bug#4643)
544
fd5f21e6
SM
5452009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
546
4c0354d7
SM
547 Remove leftover table unibyte_to_multibyte_table.
548 * character.c (unibyte_to_multibyte_table): Remove.
549 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
550 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
551 * character.h (UNIBYTE_TO_CHAR): New macro.
552 (MAKE_CHAR_MULTIBYTE): Use it.
553 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
554 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
555 (message_dolog, set_message_1):
556 * search.c (Freplace_match):
557 * editfns.c (Fcompare_buffer_substrings):
558 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
559 (concat):
560 * insdel.c (copy_text, count_size_as_multibyte):
561 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
562 * term.c (produce_glyphs):
563 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
564 * regex.c (RE_CHAR_TO_MULTIBYTE):
565 * cmds.c (internal_self_insert):
566 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
567
fd5f21e6
SM
568 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
569
4418646e
DN
5702009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
571
572 * puresize.h (BASE_PURESIZE): Increase to 1310000.
573
35f5c1d2
JB
5742009-10-16 Juanma Barranquero <lekktu@gmail.com>
575
576 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
577
a0cd8f6b
AR
5782009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
579
580 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
581 still needed under Tiger.
582
583 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
584
585 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
586 __Apple__.
587
588 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
589
01a8d3fa
KH
5902009-10-15 Kenichi Handa <handa@m17n.org>
591
592 * print.c (print_object): Escape a symbol like "2E10" too.
593
bf6c75c9 5942009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
595
596 Cleanups and changes for 64-bit compile under Snow Leopard.
597 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
598
599 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
600
c5959062 601 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
602 (ns_findfonts, nsfont_list_family): Use long format in printf, and
603 cast argument.
604 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 605 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
606
607 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
608
609 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
610 where appropriate.
611
612 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
613 where appropriate.
6e4780c5
JB
614 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
615 Use stringWithUTF8String.
bf6c75c9
AR
616 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
617
6e4780c5
JB
618 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
619 Add formal protocol mention to inheritance.
bf6c75c9
AR
620 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
621
6e4780c5
JB
622 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
623 Fix printf format.
bf6c75c9
AR
624 (ns_query_color): Use CGFloat where appropriate.
625 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
626 (EmacsScroller-mouseDown:) Use long format in printf, and cast
627 argument.
628
3d87f118
AR
629 * config.in (NS_HAVE_NSINTEGER): Drop.
630
a95c8102
AR
631 * dbusbind.c (dbus-method-return-internal)
632 (dbus-method-error-internal): Use long format in printf, and cast
633 argument.
634
635 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
636 in printf, and cast argument.
637
6873acca 638 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
639 cast argument.
640
9ec6f100
GM
6412009-10-11 Glenn Morris <rgm@gnu.org>
642
643 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
644
5be883cd
JD
6452009-10-08 Jan Djärv <jan.h.d@swipnet.se>
646
647 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
648 menu bar with a small width so it doesn't enlarge the frame.
649
d7a39b51
JB
6502009-10-08 Juanma Barranquero <lekktu@gmail.com>
651
652 * fontset.c (Fset_fontset_font): Fix typos in error messages.
653
0c2b6f8e
GM
6542009-10-06 Glenn Morris <rgm@gnu.org>
655
656 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
657 SOME_MACHINE_LISP (this enters indirectly via DOC).
658
e02131a2
EZ
6592009-10-05 Eli Zaretskii <eliz@gnu.org>
660
661 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
662
b4744254
EZ
6632009-10-04 Eli Zaretskii <eliz@gnu.org>
664
665 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
666 Doc fix.
667
dbf64827
JB
6682009-10-03 Martin Rudalics <rudalics@gmx.at>
669
670 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
671
e9a0aef8
MA
6722009-10-02 Michael Albinus <michael.albinus@gmx.de>
673
d528b1ce 674 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
675 used anymore outside fileio.c.
676
677 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
678
64eb2b56
JB
6792009-10-01 Juanma Barranquero <lekktu@gmail.com>
680
681 * lisp.h (Qdelete_directory_internal):
682 Declare, instead of Qdelete_directory.
683
684 * w32fns.c (Fsystem_move_file_to_trash): Use it.
685
9d28c33e
SM
6862009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
687
688 * eval.c (Fcalled_interactively_p): Add `kind' argument.
689
9d8f3bd9
MA
6902009-10-01 Michael Albinus <michael.albinus@gmx.de>
691
9d28c33e 692 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
693 Fdelete_directory. It is not a command anymore. It has no file
694 name handler.
695
9694740b
SM
6962009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
697
698 * xdisp.c (get_next_display_element): Use an enum in last change.
699
748e162f
KH
7002009-09-28 Kenichi Handa <handa@m17n.org>
701
9694740b 702 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
703 unibyte_display_via_language_environment in handling
704 Vnobreak_char_display.
705
17efd58d
AR
7062009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
707
708 * nsterm.h (ns_app_name): New extern variable.
709
710 * nsterm.m (ns_app_name): New variable.
711 (ns_term_init): Set and use it.
712 (ns_term_shutdown): Use it.
713
714 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
715 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
716
717 * nsfns.m (ns_set_name_iconic, ns_set_name)
718 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
719 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
720
9694740b
SM
721 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
722 Remove double-casting in client_data comparison.
31c2d412 723
3208cb35
YM
7242009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
725
726 * keyboard.c (make_lispy_event): Remember last wheel direction.
727 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
728
b7d552d6
GM
7292009-09-26 Glenn Morris <rgm@gnu.org>
730
731 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
732 internal.elc. Add term/pc-win.elc.
733 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
734 term/x-win.elc.
735 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
736 term/w32-win.elc.
737 (NS_SUPPORT): New.
738 (lisp): Add NS_SUPPORT.
739 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
740
4ff670a8
DR
7412009-09-25 David Reitter <david.reitter@gmail.com>
742
743 * nsmenu.m (EmacsMenu-clear): Recognize application menu
744 on Mac OS X 10.6+ (bug#4513).
745
feabfb6c
JB
7462009-09-24 Juanma Barranquero <lekktu@gmail.com>
747
748 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
749 some parts of Emacs code (like font selection) don't grok them.
750 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 751
de59072a
AS
7522009-09-24 Andreas Schwab <schwab@redhat.com>
753
754 * coding.c (decode_coding_iso_2022): Fix operator precedence.
755
a489517b
JB
7562009-09-24 Juanma Barranquero <lekktu@gmail.com>
757
758 * dired.c (Fdirectory_files): Fix typo in docstring.
759
0592970c
AR
7602009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
761
762 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
763 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
764 (EmacsScroller-setPosition:portion:whole:): Remove -display call
765 under GNUstep.
766 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
767
768 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
769 glyph advancement.
770
48e8a88b
AR
7712009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
772
773 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 774 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
775
776 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
777 deleted (bug #4492).
778
e14f0a78
AR
779 * nsfont.m (Vns_reg_to_script): New lisp variable.
780 (syms_of_nsfont): Declare it.
781 (ns_registry_to_script): New function.
782 (ns_get_req_script): Call it.
783 (ns_findfonts): Don't give up on non-unicode registry.
784
785 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
786
5b650faa
SM
7872009-09-20 Tom Tromey <tromey@redhat.com>
788
789 * eval.c (find_handler_clause): Make stack-trace-on-error work in
790 batch mode (bug#4228).
791
a489517b 7922009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
793
794 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 795 carefully. (Bug #4339)
0bae4e09 796
fcfe06f3
CY
7972009-09-18 Chong Yidong <cyd@stupidchicken.com>
798
d798ba87 799 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 800
31642728
AR
8012009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
802
803 * emacs.c (inhibit_x_resources): Update doc string for NS.
804 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 805 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
806
807 * nsterm.h (ns_no_defaults): Remove.
808
809 * nsterm.m (ns_no_defaults): Remove.
810 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
811 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
812 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
813 don't update the NSWindow itself.
814 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 815 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
816
817 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
818 ns_use_qd_smoothing.
819
820 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
821 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 822 (x-close-connection): Drop PSFlush() under OS X.
a489517b 823 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 824
8686ac71
JB
8252009-09-17 Juanma Barranquero <lekktu@gmail.com>
826
827 * emacs.c (inhibit_x_resources): New variable.
828 (main) [HAVE_NS]: Don't process --quick command line option.
829 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
830
831 * lisp.h (inhibit_x_resources): Declare it extern.
832
833 * w32reg.c (x_get_string_resource):
834 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
835
e227ba05
EZ
8362009-09-17 Eli Zaretskii <eliz@gnu.org>
837
362654a6
JB
838 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
839 Add lisp/term/internal.elc.
e227ba05 840
742d40e8
SM
8412009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
842
843 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
844 (bug#4461).
845
005bd5a2
DN
8462009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
847
848 * puresize.h (BASE_PURESIZE): Increase to 1290000.
849
850 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
851 (OBJECTS_MACHINE): Remove, unused.
852
f9af9719
SM
8532009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
854
855 * frame.c (x_get_resource_string): Remove unused.
856
0307c7d2
JD
8572009-09-15 Jan Djärv <jan.h.d@swipnet.se>
858
859 * xterm.c (x_new_font): Call change_frame_size before calling
860 x_set_window_size, in case frame size won't change.
861
862 * frame.c (x_set_font): Remove dead code.
863
428b13d6
SM
8642009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
865
866 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
867
5766c380
SM
8682009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
869
870 * lread.c (Fload): Don't output a message after loading an obsolete
871 package any more (done in Lisp now).
872
2fd0161b
CY
8732009-09-12 Chong Yidong <cyd@stupidchicken.com>
874
875 * fns.c (syms_of_fns): Doc fix (Bug#4227).
876
bc5e75b6
SM
8772009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
878
879 * keymap.c (Fwhere_is_internal): Use nconc2.
880
c31c985e
AM
8812009-09-11 Alan Mackenzie <acm@muc.de>
882
883 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
884 batch mode.
885
78012bd2
AS
8862009-09-11 Andreas Schwab <schwab@linux-m68k.org>
887
888 * xdisp.c (display_mode_element): Detect cycles.
889
9d889332
SM
8902009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
891
892 * keymap.c (where_is_internal): Don't erroneously return nil right after
893 filling the cache.
894 (where_is_internal_1): Fix up typo.
895
7ab5d780
GM
8962009-09-11 Glenn Morris <rgm@gnu.org>
897
898 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
899 share a common doc-string.
900
5238a749
SM
9012009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
902
66d77eda
SM
903 * keymap.c (get_keymap): Return the actual keymap symbol rather than
904 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
905
5238a749
SM
906 * keymap.c (QCadvertised_binding): New constant.
907 (syms_of_keymap): Initialize it.
908 (Fwhere_is_internal): Try and use bindings from :advertised-binding
909 if applicable.
910
19f48442
SM
9112009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
912
50d4ba39
SM
913 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
914 (parse_menu_item): Streamline since bindings are recomputed all the
915 time anyway. Don't bother checking Vdefine_key_rebound_commands any
916 more and don't support lmenu's menu-alias any more either.
917
a88a5372
SM
918 * keymap.c (where_is_internal_data): Make noindirect a boolean.
919 (where_is_internal): Strip it down to only traverse the keymaps.
920 Move the cache handling from Fwhere_is_internal to here.
921 (Fwhere_is_internal): Move the handling of remapping and the choice of
922 the best binding from where_is_internal to here.
923 Unify the cached/noncached paths, so remapping is also handled
924 correctly when the cache is used, and so the cache can be used to
925 speed up remap-handling when applicable.
926 Give preference to non-remapped bindings.
927 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
928 non-remapped bindings.
929 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
930 command remapping.
931
19f48442
SM
932 * xdisp.c (display_mode_element): Move list length limit from 50 to
933 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
934
599498c3 9352009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
936
937 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
938
f9b7b5ac
SM
9392009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
940
a53af587
JB
941 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
942 (Bug#4334)
943
f9b7b5ac
SM
944 * keymap.c (where_is_internal): Filter out shadowed remappings.
945 Assume that where_is_internal returns unshadowed bindings to simplify
946 the code and get rid of the gotos. Use ASIZE.
947
04f4b72d
JD
9482009-09-04 Jan Djärv <jan.h.d@swipnet.se>
949
4da146f2
JD
950 * xterm.c (x_focus_changed): If we get a focusout and pointer
951 is invisible, make it visible.
952
04f4b72d
JD
953 * xterm.h: Remove condition for declaration of
954 x_*_window_to_frame.
955
7cef7ce3
SM
9562009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
957
958 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
959 initial terminal as well.
960
a54fa5b7
JD
9612009-09-02 Jan Djärv <jan.h.d@swipnet.se>
962
963 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 964 x_menubar_window_to_frame.
a54fa5b7
JD
965
966 * xterm.c: Remove declarations also in xterm.h
967 (XTmouse_position): Do not return valid positions
968 for clicks in the menubar and the toolbar for Gtk+.
969
970 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
971 if the widget for the event has the same top level as a frame,
972 return the frame.
973 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
974 internal windows, bug #4122.
975 (x_non_menubar_window_to_frame): Remove.
976
5a021dd0
GM
9772009-09-02 Glenn Morris <rgm@gnu.org>
978
979 * buffer.c (default-major-mode): Move most of the doc from here...
980 (major-mode): ... to here.
981
548fe2f3
NR
9822009-08-30 Nick Roberts <nickrob@snap.net.nz>
983
984 * process.c (wait_reading_process_output): Keep the descriptor
985 when pty is used by a non-child process, e.g., in I/O buffer of
986 GDB this allows inferior to be restarted.
987
e0840eef
EZ
9882009-08-29 Eli Zaretskii <eliz@gnu.org>
989
990 * xdisp.c (redisplay_internal): Remove redundant test and collapse
991 both branches into one.
992
82e98df4
SM
9932009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
994
995 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
996 (main): Use enable-multibyte-characters rather than
997 default-enable-multibyte-characters. Output a warning message when
998 running a unibyte session.
999
890617cb
YM
10002009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1001
1002 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1003 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1004 (copy_data_segment): Also copy __program_vars section.
1005 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1006 (dump_it) [LC_DYLD_INFO]: Use it.
1007
1008 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1009
e7adeadc
EZ
10102009-08-28 Eli Zaretskii <eliz@gnu.org>
1011
1012 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1013 $(SRC)/buildobj.h.
1014 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1015 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1016 $(SRC)/buildobj.h.
1017 (clean): Add buildobj.h.
1018
3ed8bbdc
TZ
10192009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1020
1021 * print.c (print_object): Set escapeflag to 1 when printing
1022 hashtable keys and values.
1023
155a6764
SM
10242009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1025
1026 * lread.c (read_integer): Use doubles (and potentially return a float
1027 number) as we do in string-to-number.
1028 (read1): Use strtol to read integers, signal errors on strtol's
1029 overflow and use floats if strtol's output is too large for
1030 Elisp integers.
1031
877610de
EZ
10322009-08-27 Eli Zaretskii <eliz@gnu.org>
1033
1034 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1035 (make-buildobj-SH): Fix last change.
1036 (SRC): Move to before where it's first used.
1037
ef73e7be
KH
10382009-08-27 Kenichi Handa <handa@m17n.org>
1039
550c8289
KH
1040 * process.c (send_process): Use encode_coding_object instead of
1041 encode_coding_string to perform eol-conversion even if the string
1042 is unibyte.
1043
60afa08d
KH
1044 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1045 character.
1046
ef73e7be 1047 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1048 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1049
7b3a82d7
DN
10502009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1051
5654bf63
DN
1052 * callproc.c (Fcall_process): Remove always true #if.
1053
7b3a82d7
DN
1054 * lisp.h: Replace #if 0 code for checking with text pointing to
1055 the --enable-checking configure flag.
1056
1057 * emacs.c (main): Mention the --enable-profiling configure flag
1058 instead of using CFLAGS.
1059
878bde49
KR
10602009-08-26 Ken Raeburn <raeburn@raeburn.org>
1061
1062 * Makefile.in (buildobj.h): New target.
1063 (doc.o): Depend on it.
1064 (temacs${EXEEXT}): Don't generate buildobj.lst.
1065 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1066 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1067 ($(BLD)/doc.$(O)): Depend on it.
1068 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1069 provided by Eli Zaretskii.)
1070 ($(TEMACS)): Don't generate buildobj.lst.
1071 * doc.c: Include buildobj.h.
1072 (buildobj): New static variable.
1073 (Fsnarf_documentation): Use it, instead of opening and reading
1074 buildobj.lst.
1075
1574224c
MA
10762009-08-25 Michael Albinus <michael.albinus@gmx.de>
1077
1078 * dbusbind.c (Fdbus_call_method)
1079 (Fdbus_call_method_asynchronously): Use English numeric format for
1080 timeout values in doc string.
1081
d9da2f45
KH
10822009-08-25 Kenichi Handa <handa@m17n.org>
1083
ef73e7be
KH
1084 * alloc.c (mark_char_table): New function.
1085 (mark_object): Use mark_char_table for a char-table.
1086
d9da2f45
KH
1087 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1088 (CHAR_TABLE_REF): Use it.
1089
c8edcc01
KR
10902009-08-23 Ken Raeburn <raeburn@raeburn.org>
1091
1092 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1093 before invoking the newly build emacs to check for load-path
1094 shadowing.
1095
7763401b
GM
10962009-08-22 Glenn Morris <rgm@gnu.org>
1097
1098 * Makefile.in (bootstrap_exe): New variable.
1099 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1100 Use ${bootstrap_exe}.
1101
729eadda
EZ
11022009-08-22 Eli Zaretskii <eliz@gnu.org>
1103
1104 * coding.h (encode_coding_string): Don't encode unibyte strings.
1105 (Bug#4047)
1106
eb4c6ace
MA
11072009-08-22 Michael Albinus <michael.albinus@gmx.de>
1108
1109 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1110
1111 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1112 intended as hotfix only.
1113 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1114
36e34d1b
AR
11152009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1116
1117 * nsterm.m (ns_get_color): Update documentation properly for last
1118 change, and clean up loose ends in the code left by it. Fix
1119 longstanding bug with 16-bit hex parsing, and add support for
1120 yet another X11 format (rgb:r/g/b) for compatibility.
1121 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1122 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1123
f983eb8a
SM
11242009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1125
1126 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1127
3f56d3c6
MA
11282009-08-20 Michael Albinus <michael.albinus@gmx.de>
1129
1130 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1131 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1132 (xd_initialize, xd_pending_messages): Check, whether
1133 $DBUS_SESSION_BUS_ADDRESS is set.
1134
fb641d68
YM
11352009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1136
1137 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1138
1139 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1140
cf59a374
GM
11412009-08-20 Glenn Morris <rgm@gnu.org>
1142
1143 * emacs.c (system-type): Doc fix.
1144
1373f3be
SM
11452009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1146
1147 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1148 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1149
058ed861
MA
11502009-08-18 Michael Albinus <michael.albinus@gmx.de>
1151
1373f3be
SM
1152 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1153 New functions.
058ed861
MA
1154 (xd_initialize): Revert change from 2009-08-16.
1155
563a866e 11562009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1157
1158 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1159 font-group vector, return nil.
5fc05db0 1160
e42bdf01
CY
11612009-08-17 Chong Yidong <cyd@stupidchicken.com>
1162
1163 * process.c (status_notify): Don't perform redisplay.
1164 (Fdelete_process, list_processes_1, process_send_signal):
1165 Expliticly perform redisplay.
1166 (wait_reading_process_output): Always check process status, but
1167 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1168
4230ab74
KR
11692009-08-17 Ken Raeburn <raeburn@raeburn.org>
1170
1373f3be 1171 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1172 (XFLOAT_INIT): New macro for storing a float value.
1173 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1174 * fns.c (sxhash): Copy out the value of a float in order to
1175 examine its bytes.
1176 * dbusbind.c (xd_append_arg): Likewise.
1177
4230ab74
KR
1178 * emacs.c (main): Don't call syms_of_data twice.
1179
a0645cdd
MA
11802009-08-16 Michael Albinus <michael.albinus@gmx.de>
1181
1182 * dbusbind.c (xd_initialize): Add connection file descriptor to
1183 input_wait_mask, in order to let select() detect, whether a new
1184 message has been arrived.
ca4f31ea 1185 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1186
485db0ba
MA
11872009-08-15 Michael Albinus <michael.albinus@gmx.de>
1188
1373f3be
SM
1189 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1190 New functions.
485db0ba
MA
1191
1192 * lisp.h (xd_pending_messages): Declare.
1193
1194 * keyboard.c (readable_events): Call xd_pending_messages.
1195
b5b98ff4
CY
11962009-08-15 Chong Yidong <cyd@stupidchicken.com>
1197
1373f3be 1198 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1199
f8354c6e
CY
1200 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1201
b5b98ff4
CY
1202 * buffer.c (set_buffer_internal_1)
1203 (swap_out_buffer_local_variables): Check for unbound local
1204 variables (Bug#4138).
1205
8b9fc636
EZ
12062009-08-14 Eli Zaretskii <eliz@gnu.org>
1207
1208 * process.c (create_pty): Fix last change.
1209
ce959360
CY
12102009-08-13 Chong Yidong <cyd@stupidchicken.com>
1211
1212 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1213 (xbm_load_image): Caller changed.
64b807c9 1214 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1215
c7baf7e9
NR
12162009-08-13 Nick Roberts <nickrob@snap.net.nz>
1217
1218 * process.c (create_pty): New function.
1219 (Fstart_process): Use it to allow Emacs to just associate a pty
1220 with the buffer. See associated change in gdb-mi.el.
1221 (list_processes_1): Deal with no program name.
1222 (start_process_unwind): Use pid == -2 to mean no process.
1223
1ac9108a
SM
12242009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1225
1226 * cmds.c (nonundocount): New global variable.
1227 (keys_of_cmds): Initialize it.
1228 (Fself_insert_command): Use it to combine upto 20 sequential chars
1229 into a single undo entry, just like the Qself_insert_command code in
1230 keyboard.c does.
1231 Call frame_make_pointer_invisible, also like the Qself_insert_command
1232 code in keyboard.c does.
1233 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1234 than its own local replacement for it.
1235
e267324c
KR
12362009-08-10 Ken Raeburn <raeburn@raeburn.org>
1237
1ac9108a 1238 * fns.c (concat): Don't re-set string length to its current value.
77437343 1239
1ac9108a
SM
1240 * coding.h (decode_coding_string, encode_coding_string):
1241 Use SBYTES macro.
f0bed503 1242
1ac9108a 1243 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1244 (doprnt): Merge with doprnt1, discarding lispstrings code.
1245 * lisp.h (doprnt_lisp): Don't declare.
1246
416e006d
JL
12472009-08-07 Juri Linkov <juri@jurta.org>
1248
1249 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1250
6f7d5780
DN
12512009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1252
1253 * print.c (syms_of_print): Undo previous change.
1254
f19a0f5b
TZ
12552009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1256
1257 * lread.c (read1, syms_of_lread): Read hashtables back from the
1258 readable format.
1259
1260 * print.c (print_preprocess, print_object): Print hashtables fully
1261 and readably.
1262 (syms_of_print): Provide 'hashtable-print-readable.
1263
b9173dc2
AR
12642009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1265
1266 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1267 no family set.
1268 (nsfont_open): Handle case when entity has no family.
1269
1586503c
AR
12702009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1271
1272 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1273 element, not a list, for match case.
1274
087048cd
KH
12752009-07-28 Kenichi Handa <handa@m17n.org>
1276
1277 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1278 rigidly.
1279
1280 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1281 font_parse_xlfd. Check font properties more rigidly.
1282
780c2506
DN
12832009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1284
31fd7c5c
JB
1285 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1286 bsd-common.h.
780c2506 1287
a8c0cc18
KH
12882009-07-27 Kenichi Handa <handa@m17n.org>
1289
1290 * xfaces.c (face_with_height): Call font_clear_prop.
1291
4fbe2306
CY
12922009-07-26 Chong Yidong <cyd@stupidchicken.com>
1293
111d9af3
CY
1294 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1295
1296 * xterm.c (x_term_init): Use Qx.
1297
4fbe2306
CY
1298 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1299
1ac9108a 1300 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1301 (ns_get_color): Revert 2009-07-16 change.
1302
beb0b7f9
EZ
13032009-07-25 Eli Zaretskii <eliz@gnu.org>
1304
1305 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1306 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1307
2baf5e76
KR
13082009-07-25 Ken Raeburn <raeburn@raeburn.org>
1309
1ac9108a
SM
1310 * coding.h (decode_coding_string, encode_coding_string):
1311 Use SCHARS macro.
8890e5f5 1312
2baf5e76 1313 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1314 (load_depth): Delete.
2baf5e76
KR
1315 (Qload_in_progress): New variable.
1316 (load_unwind): Don't reference load_depth or load_in_progress.
1317 (Fload): Likewise; specbind Qload_in_progress instead.
1318 (init_lread): Don't initialize load_depth.
1319 (syms_of_lread): Initialize and protect Qload_in_progress.
1320
1395c6f5
AR
13212009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1322
1323 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1324
4e2f36cf
AR
13252009-07-23 Yavor Doganov <yavor@gnu.org>
1326
1327 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1328
5dd9a6f7
AR
13292009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1330
1331 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1332 Bugs 3792, 3720, 2402.
1333 (ns_lookup_indexed_color): Check for bad index.
1334 (ns_index_color): Init unused slot to 0.
1335 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1336 Bug 3714, possibly 3082.
5dd9a6f7 1337
c902b920
JR
13382009-07-22 Jason Rumney <jasonr@gnu.org>
1339
1ac9108a
SM
1340 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1341 Position IME window at cursor (Bug#2570).
c902b920
JR
1342 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1343 (globals_of_w32fns): Dynamically load functions required above.
1344
1345 * w32term.c (w32_draw_window_cursor): Send message to reposition
1346 any IME window.
1347
090101cf
CY
13482009-07-21 Chong Yidong <cyd@stupidchicken.com>
1349
1350 * fileio.c: Revert 2009-07-16 changes.
1351 (Vauto_save_include_big_deletions): New variable.
1352 (Fdo_auto_save): Disable auto-save only if
1353 auto-save-include-big-deletions is nil.
1354
e6583e3d
CY
13552009-07-21 Chong Yidong <cyd@stupidchicken.com>
1356
1357 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1358 the overflowed pixels into account (Bug#3879).
1359
ece435a5
KR
13602009-07-21 Ken Raeburn <raeburn@raeburn.org>
1361
1362 * lread.c (load_depth): New variable.
1363 (Fload, load_unwind, init_lread): Set it to the load recursion
1364 depth; set load_in_progress as a simple boolean based on the
1365 current load_depth. (Bug#3892)
1366
40b2d973
AR
13672009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1368
1369 * nsfont.m (ns_has_attribute): Remove.
1370 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1371
10be7e0d
JL
13722009-07-18 Juri Linkov <juri@jurta.org>
1373
1374 * process.c (Fset_process_query_on_exit_flag): Mention killing
1375 a buffer in docstring.
1376
fa055055
KH
13772009-07-17 Kenichi Handa <handa@m17n.org>
1378
1379 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1380
042f7b69
YM
13812009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1382
1383 * nsfns.m (Fns_set_alpha): Remove function.
1384 (syms_of_nsfns): Don't defsubr it.
1385
1386 * nsterm.m (ns_get_color): Remove incompatible color formats.
1387 (ns_color_to_lisp): Generate #rrggbb color format string.
1388
4be941e3
RS
13892009-07-16 Richard Stallman <rms@gnu.org>
1390
1391 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1392 (Fset_buffer_auto_saved): Handle save_length = -2.
1393
4e6b227d
CY
13942009-07-16 Chong Yidong <cyd@stupidchicken.com>
1395
1396 * xterm.c (Qx_gtk_map_stock): New var.
1397
1398 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1399 of calling intern each time.
1400
a1856973
YM
14012009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1402
1403 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1404 does tiling.
1405
1406 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1407
497e54d8
KH
14082009-07-14 Kenichi Handa <handa@m17n.org>
1409
72d36834
KH
1410 * font.c (font_vconcat_entity_vectors): New function.
1411 (struct font_sort_data): New member font_driver_preference.
1412 (font_compare): Check font_driver_preference.
1413 (font_sort_entities): The format of the first argument changed.
1414 (font_delete_unmatched): Likewise.
1415 (font_list_entities): The return type changed.
1416 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1417 (font_find_for_lface): Adjuste for the above changes.
1418 Don't suppress the checking of C even if the repertory supports it.
1419 (Flist_fonts): Adjust for the above changes.
72d36834 1420
1ac9108a
SM
1421 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1422 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1423 Reject a font who has adstyle property that is different from a
1424 langname derived from registry property.
1ac9108a 1425 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1426
b6046155
EZ
14272009-07-13 Eli Zaretskii <eliz@gnu.org>
1428
1429 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1430 local copy of dirfilename.
1431
fb6b6049
KH
14322009-07-13 Kenichi Handa <handa@m17n.org>
1433
e2402a5e
KH
1434 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1435 against max_char.
1436
fb6b6049
KH
1437 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1438 calling XSYMBOL (sym).
1439
65156807
EZ
14402009-07-11 Eli Zaretskii <eliz@gnu.org>
1441
1ac9108a
SM
1442 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1443 New function.
1444 (directory_files_internal) [WINDOWSNT]:
1445 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1446 the filesystem of the directory is fast or slow.
1447
1448 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1449 file name.
1450 (is_slow_fs): New function.
1451 (stat): Use it to determine whether to issue more system calls to
1452 get accurate file attributes, when w32-get-true-file-attributes is
1453 `local'.
1454
e0ab5fcf
JD
14552009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1456
1457 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1458 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1459 parameter font-parameter as default to the font dialog.
1460
784ceded
KH
14612009-07-10 Kenichi Handa <handa@m17n.org>
1462
1463 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1464
fb8edc0b
EZ
14652009-07-09 Eli Zaretskii <eliz@gnu.org>
1466
1ac9108a 1467 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1468
fb8edc0b
EZ
1469 * w32.c (stat): Treat UNC file names as residing on remote
1470 drives. (Bug#3542)
1471
635c75b1
KH
14722009-07-09 Kenichi Handa <handa@m17n.org>
1473
1474 * fontset.c (fontset_find_font): Fix previous change.
1475
c1d5ce94
MA
14762009-07-08 Michael Albinus <michael.albinus@gmx.de>
1477
1478 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1479 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1480 error flag.
1481
edb61b39
KH
14822009-07-08 Kenichi Handa <handa@m17n.org>
1483
374bf7e4
KH
1484 * fontset.c (fontset_find_font): Fix the logic of handling
1485 charset_matched.
1486 (font_for_char): Delete unused var.
1487 (generate_ascii_font_name): Delete it.
1488
edb61b39
KH
1489 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1490
1491 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1492 (encode_coding_sjis): Fix the code range check.
1493
0f3f018c
CY
14942009-07-07 Chong Yidong <cyd@stupidchicken.com>
1495
1496 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1497 (Fexpand_file_name): Copy string data properly (Bug#3772).
1498
fcaf6f3a
JD
14992009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1500
1501 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1502 first MapNotify.
1503
6809ca75
KH
15042009-07-07 Kenichi Handa <handa@m17n.org>
1505
1506 * character.h (unibyte_has_multibyte_table): Delete extern.
1507 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1508
1509 * charset.c (Fset_charset_priority): Update charset_unibyte.
1510 (syms_of_charset): Initialize charset_unibyte.
1511
1512 * character.c (unibyte_has_multibyte_table): Delete it.
1513 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1514 charset_unibyte.
1515 (multibyte_char_to_unibyte_safe): Likewise.
1516 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1517
1ac9108a 1518 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1519 (x_produce_glyphs): Likewise.
1520
1521 * .gdbinit (xcharset): Fix the treating $arg0.
1522
ad9e2d54
EZ
15232009-07-04 Eli Zaretskii <eliz@gnu.org>
1524
1525 Emulation of `getloadavg' on MS-Windows.
1526 * w32.c: Include float.h
1527 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1528 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1529 (get_native_system_info, get_system_times): New functions.
1530 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1531 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1532 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1533 g_b_init_get_system_times, and num_of_processors.
1534
0a3472c7
JR
15352009-07-03 Jason Rumney <jasonr@gnu.org>
1536
1537 * w32term.c (w32_initialize): Use standard types.
1538
80904120
EZ
15392009-07-03 Eli Zaretskii <eliz@gnu.org>
1540
1541 * dired.c (Ffile_attributes): Decode user and group names by the
1542 locale's encoding. (Bug#3443)
1543
6978862d
DN
15442009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1545
f8d23104
DN
1546 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1547 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1548
1549 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1550
1551 * term.c (init_tty): Remove spurious #ifdef.
1552
6978862d
DN
1553 * m/mips.h: Mention this file is also used for netbsd.
1554 * m/pmax.h: Remove file.
1555
e044e4fc
JD
15562009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1557
1558 * xterm.h (struct x_display_info): Add invisible_cursor.
1559 (struct x_output): Add current_cursor.
1560
1561 * xterm.c (XTtoggle_invisible_pointer): New function.
1562 (x_define_frame_cursor): Don't define cursor if invisible or the
1563 same as before. Set current_cursor.
1564 (x_create_terminal): Set toggle_invisible_pointer_hook.
1565
1566 * xfns.c (make_invisible_cursor): New function.
1567 (x_set_mouse_color): Call make_invisible_cursor.
1568 Set current_cursor.
1569 (x_window): Set current_cursor.
1570
1571 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1572
1573 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1574 inserting a character.
1575 (read_avail_input): Call frame_make_pointer_visible.
1576
1577 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1578 (frame_make_pointer_invisible, frame_make_pointer_visible):
1579 New functions.
e044e4fc
JD
1580 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1581
1582 * frame.h: Declare frame_make_pointer_invisible and
1583 frame_make_pointer_visible.
1584 (struct frame): Add pointer_invisible.
1585
574c8efa
JD
15862009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1587
7b507248
JD
1588 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1589 frame isn't visible.
1590 (xg_frame_resized): If width/height is -1, get size of window
1591 from X server.
1592
1593 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1594 for MapNotify.
1595
835bdaa7 1596 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1597 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1598 (flush_and_sync): Reintroduce.
574c8efa 1599
3f1c6666 16002009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1601
31fd7c5c 1602 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1603
1604 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1605 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1606
1607 * frame.h: Declare Qsticky.
1608
cad9ef74
JD
1609 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1610
1611 * nsfns.m (ns_frame_parm_handlers): Ditto.
1612
1613 * frame.c: Declare Qsticky.
1614 (frame_parms): Add sticky.
1615
1616 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1617
1618 * xterm.h: Declare x_set_sticky.
1619
1620 * xterm.c (x_set_sticky): New function.
1621
69b16610
JD
1622 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1623 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1624 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1625
1626 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1627
1628 * frame.c: Qmaximized is new.
1629 (x_set_frame_parameters): Do not handle fullscreen specially.
1630 Only set width and height if explicitly set.
1631 (x_set_fullscreen): Handle Qmaximized.
1632 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1633 (syms_of_frame): Initialize Qmaximized.
1634
1ac9108a
SM
1635 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1636 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1637
1638 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1639 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1640 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1641 set gravity to NorthWestGravity when USE_GTK.
1642 (set_wm_state): New function.
31fd7c5c 1643 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1644 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1645 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1646 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1647 to x_real_positions and x_fullscreen_adjust.
1648
1649 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1650 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1651 flush_and_sync.
1652 (xg_height_changed): New function.
1653 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1654 and gtk_window_set_policy. Set frame gravity after parsing the
1655 geometry string.
3f1c6666
JD
1656 (xg_update_frame_menubar, free_frame_menubar)
1657 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1658 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1659 Remove calls to xg_frame_set_char_size.
1660
fd503d99
KH
16612009-07-01 Kenichi Handa <handa@m17n.org>
1662
1663 * keyboard.c (decode_keyboard_code): New function.
1664 (tty_read_avail_input): Decode the input bytes if necessary.
1665
1ac9108a
SM
1666 * coding.c (setup_coding_system):
1667 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1668 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1669 use Qno_conversion.
1670
24ed93fb
YM
16712009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1672
1673 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1674
99061dfc
CY
16752009-06-30 Chong Yidong <cyd@stupidchicken.com>
1676
1ac9108a 1677 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1678
ff90fbde
JR
16792009-06-30 Jason Rumney <jasonr@gnu.org>
1680
1681 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1682 is already loaded.
1683 Set user model ID if supported (bug#1849).
1684
5f445726
JM
16852009-06-29 Jim Meyering <meyering@redhat.com>
1686
1687 Remove useless if-before-xfree test.
1688 * nsfont.m (nsfont_close): Remove useless test.
1689 * term.c (delete_tty): Likewise.
1690 * w32.c (system_process_attributes): Likewise.
1691 * w32font.c (w32font_close): Likewise.
1692 * xfaces.c (x_free_gc): Likewise.
1693 * xselect.c (buffer): Likewise.
1694
b9607587
AS
16952009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1696
1697 * process.c (send_process): Keep decoded string in a local
1698 variable and protect it from GC. (Bug#3521)
1699
89ba96f4
EZ
17002009-06-28 Eli Zaretskii <eliz@gnu.org>
1701
1702 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1703 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1704
098a1589
CY
17052009-06-28 Chong Yidong <cyd@stupidchicken.com>
1706
485422be
CY
1707 * xdisp.c (start_display, handle_face_prop)
1708 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1709 (redisplay_window, try_window_id, produce_image_glyph):
1710 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1711
098a1589
CY
1712 * xterm.c (x_update_window_begin, x_new_focus_frame)
1713 (x_scroll_bar_handle_click, handle_one_xevent)
1714 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1715 (x_make_frame_visible, x_make_frame_invisible)
1716 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1717 code chunks that are now obsolete.
1718
78c38319
MA
17192009-06-28 Michael Albinus <michael.albinus@gmx.de>
1720
1721 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1722 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1723 for hours, when optimzation is enabled.
1724 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1725 (xd_read_message): Make them static.
1726
4189ed40
CY
17272009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1728
1729 * term.c (turn_on_face): Allow simultaneously bold and dim
1730 terminal faces (Bug#3530).
1731
cd9b5e16
CY
17322009-06-27 Chong Yidong <cyd@stupidchicken.com>
1733
4e23bedb
CY
1734 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1735
cd9b5e16
CY
1736 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1737 truncation glyphs (Bug#3686).
1738
07cc3c35
GM
17392009-06-27 Glenn Morris <rgm@gnu.org>
1740
1741 * m/pmax.h: Restore file, with only netbsd portions.
1742
31fd7c5c 17432009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1744
cd9b5e16 1745 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1746
42d4a64f
KH
17472009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1748
1749 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1750 the arg FORCE_SYMBOL.
1751
930fe55b 17522009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1753
1754 * fontset.c (fontset_find_font): When a usable rfont_def is found
1755 in a fallback font-group, make it the first element of the group.
1756
57ebc3fd
CY
17572009-06-24 Chong Yidong <cyd@stupidchicken.com>
1758
1759 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1760
f084f942
KH
17612009-06-24 Kenichi Handa <handa@m17n.org>
1762
1763 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1764 set for C.
1765 (fontset_font): Record the availability of a font for C both in
1766 the realized fontsets of the current one and the default one.
1767
2f686c87
DN
17682009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1769
1770 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1771 conditional, it is always defined on AIX.
1772
666e158e
MB
17732009-06-23 Miles Bader <miles@gnu.org>
1774
1775 * window.c (Vrecenter_redisplay): New variable.
1776 (syms_of_window): Initialize it.
1777 (Qtty): New extern declaration.
1778 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1779
c6da7cd2
JM
17802009-06-23 Jim Meyering <meyering@redhat.com>
1781
1ac9108a
SM
1782 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1783 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 1784 pointer dereferences are guaranteed to be valid.
c6da7cd2 1785
678dca3d
KH
17862009-06-23 Kenichi Handa <handa@m17n.org>
1787
74d75424
KH
1788 * emacs.c (main): Call init_font ().
1789
1790 * font.h (Vfont_log): Extern it.
1791 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1792
1793 * font.c (font_sort_entities, font_list_entities)
1794 (font_matching_entity, font_open_entity)
1795 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1796 (Vfont_log): Delete static.
1797 (font_log_env_checked): Delete this variable.
1798 (font_add_log): Don't check font_log_env_checked.
1799 (font_deferred_log): Check Vfont_log.
1800 (init_font): New function.
1801
678dca3d
KH
1802 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1803
1804 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1805
1806 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1807
1808 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1809
1810 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1811 (face_for_char): Don't call font_deferred_log here.
1812 (font_for_char): Likewise.
1813
8a668709
CY
18142009-06-22 Chong Yidong <cyd@stupidchicken.com>
1815
9a01ee33
CY
1816 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1817 rather than its background_width for drawing the overline and
1818 underline (Bug#489).
1819
1820 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1821 rather than its background_width for drawing the overline and
1822 underline (Bug#489).
ec7c9926
CY
1823 (xg_default_icon_file): New variable.
1824 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1825 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1826
8a668709
CY
1827 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1828 (load_overlay_strings): Remove externs.
1829 (fast_find_position): Function deleted.
1830 (mouse_face_from_buffer_pos): New function, based on
1831 fast_find_position. Correctly handle before-strings,
1832 display-strings, and after-strings (Bug#1220).
1833 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1834
4d4c02d8
CY
18352009-06-21 Chong Yidong <cyd@stupidchicken.com>
1836
1ac9108a 1837 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
1838 (move_it_in_display_line_to, move_it_in_display_line_to)
1839 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1840
70243478
CY
18412009-06-21 Chong Yidong <cyd@stupidchicken.com>
1842
1843 * Branch for 23.1.
1844
13087e59
JR
18452009-06-21 Jason Rumney <jasonr@gnu.org>
1846
1847 * w32term.c (keyboard_codepage): New static variable.
1848 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1849 (w32_read_socket) [WM_CHAR]: Use it to decode character
1850 input (bug#3237).
1851 (w32_initialize): Initialize it.
1852 (codepage_for_locale): New function.
1853
4735b74e
KR
18542009-06-20 Ken Raeburn <raeburn@raeburn.org>
1855
1856 * process.c (status_message): Pass Faset index argument as a lisp
1857 object, so as to work with USE_LISP_UNION_TYPE.
1858
0e727afa
YM
18592009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1860
1861 * coding.c (Ffind_coding_systems_region_internal):
1862 Cache checked characters.
1863
cf299835
KH
18642009-06-18 Kenichi Handa <handa@m17n.org>
1865
1ac9108a 1866 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 1867
90f20d94
AS
18682009-06-18 Andreas Schwab <aschwab@redhat.com>
1869
1870 * xdisp.c (redisplay_internal): Check that the frame is still
1871 live after redisplay of its windows.
1872 (redisplay_windows): Check that the window is still live.
1873
7f1faf1c
KH
18742009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1875
1876 * coding.c (detect_coding_utf_16): Fix previous change.
1877
cc13543e
KH
18782009-06-16 Kenichi Handa <handa@m17n.org>
1879
1880 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1881 UTF-16 by checking the dispersion of Eth and Oth bytes.
1882
977b85f4
AS
18832009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1884
1885 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1886
66bd43d1
KH
18872009-06-15 Kenichi Handa <handa@m17n.org>
1888
1889 * process.c (status_message): Fix previous change. Be sure to
1890 decode a localized string.
1891
cb5ca9c5
YM
18922009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1893
1894 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1895 add comment explaining why.
1896
ec7709ba 18972009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 1898
ec7709ba 1899 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 1900
4b7f335c
AR
19012009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1902
1903 * nsfont.m (ns_attribute_value): Remove.
1904 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1905 (ns_has_attribute): Shrink the normal range.
1906 (ns_findfonts): Don't worry about requested spec in determining
1907 need for synthItal.
e41820ee 1908 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 1909
73b26103
SZ
19102009-06-14 Seiji Zenitani <zenitani@mac.com>
1911
1912 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1913
5753e4da
KH
19142009-06-11 Kenichi Handa <handa@m17n.org>
1915
1916 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1917 overhang for the static composition case.
1918
3561b671
KH
19192009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1920
5753e4da
KH
1921 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1922 overhang for the automatic composition case.
1923
3561b671
KH
1924 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1925 composition case.
1926
852bbd41
CY
19272009-06-10 Chong Yidong <cyd@stupidchicken.com>
1928
1929 * xdisp.c (get_next_display_element): When handling wrap-prefix
1930 and line-prefix, treat \n as a control character (bug#3502).
1931
9903d1e6
KH
19322009-06-10 Kenichi Handa <handa@m17n.org>
1933
1934 * font.c (font_parse_family_registry): Fix for one-char foundry.
1935 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1936
0bcbaaaa
CY
19372009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1938
1939 * process.c (status_message): Fix handling of multibyte signal
1940 string (Bug#3499).
1941
40aa3f13
JM
19422009-06-09 Jim Meyering <meyering@redhat.com>
1943
1f80c7e2
CY
1944 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1945 color name is missing.
40aa3f13 1946
72d51285
KH
19472009-06-09 Kenichi Handa <handa@m17n.org>
1948
1949 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1950 FROM-CODE and TO-CODE are codepoints of CHARSET.
1951
c1d04d84
AR
19522009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1953
1954 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1955
19562009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1957
1958 Changes to support :script/:lang/:otf in NS font driver.
1959 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1960 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1961 indicate not part of font driver interface, and change callers.
1962 (ns_get_family): Remove pointless null check.
1963 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1964 ns_spec_to_descriptor, ns_descriptor_to_entity.
1965 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1966 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1967 (ns_spec_to_descriptor, ns_descriptor_to_entity)
1968 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1969 (ns_get_req_script, ns_accumulate_script_ranges)
1970 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1971 New functions.
1972 (nsfont_list, nsfont_match): Use ns_findfonts.
1973 (nsfont_open): Use font descriptor instead of traits.
1974 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1975 (dump_glyphstring): Rename to ns_dump_glyphstring.
1976
c7eb9816
AR
1977 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1978
c1d04d84
AR
1979 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1980
1981 * fontset.c (fontset_from_font): Remove NS-specific code.
1982
ec7709ba 19832009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
1984
1985 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
1986 nonactive windows.
1987
31fd7c5c 19882009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 1989
1ac9108a 1990 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 1991
68852c13 19922009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
1993
1994 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
1995
6756cd1d
CY
19962009-06-07 Chong Yidong <cyd@stupidchicken.com>
1997
1998 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
1999 account for the overflowing of newlines into the last glyph on the
2000 display line (Bug#3482).
2001
28bf482a
DR
20022009-06-05 David Reitter <david.reitter@gmail.com>
2003
ec7709ba
JB
2004 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2005 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2006 Fns_selection_exists_p, Fns_selection_owner_p.
2007
fdb55376
JR
20082009-06-03 Jason Rumney <jasonr@gnu.org>
2009
2010 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2011 available. (Bug#3379)
2012
05129fbe
KH
20132009-05-29 Kenichi Handa <handa@m17n.org>
2014
1ac9108a
SM
2015 * coding.c (get_translation_table):
2016 Check Venable_character_translation.
05129fbe 2017
ec7709ba 20182009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2019
ec7709ba
JB
2020 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2021 (x_make_frame_visible): Move frame to front rather than calling
15891144 2022 ns_raise_frame().
ec7709ba 2023 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2024 isn't key window.
ec7709ba 2025 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2026 drawRect may be called by NSView even if the frame is hidden.
2027
ec7709ba
JB
2028 * nsfns.m (Fx_create_frame): Follow other ports in
2029 determining visibility; default to t. Ensure async_visible is set.
15891144 2030
21f73755
EZ
20312009-05-23 Eli Zaretskii <eliz@gnu.org>
2032
2033 * dired.c (Ffile_attributes): Doc fix.
2034
34001e41
CY
20352009-05-22 Chong Yidong <cyd@stupidchicken.com>
2036
2037 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2038
46306a17
SM
20392009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2040
2041 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2042 and xfont_scratch_props.
2043 (syms_of_xfont): Do it here instead.
2044 (xfont_find_ccl_program): Delete, unused.
2045 (xfont_open): Delete unused var `i'.
2046
ef6e0694
KH
20472009-05-21 Kenichi Handa <handa@m17n.org>
2048
2049 * fontset.c (Qlatin): Don't make it static.
2050
46306a17
SM
2051 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2052 New functions.
ef6e0694
KH
2053 (xfont_scripts_cache, xfont_scratch_props): New variables.
2054 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2055 (xfont_list_pattern): Argument changed. Callers changed.
2056 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2057 (xfont_list): Don't reject a font spec with :script property.
2058 (xfont_has_char): Fix setting of encoding.
2059 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2060 xfont_scratch_props.
2061
20622009-05-19 Kenichi Handa <handa@m17n.org>
2063
46306a17 2064 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2065 Callers changed.
2066
20672009-05-18 Kenichi Handa <handa@m17n.org>
2068
2069 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2070
ac71ced7
SM
20712009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2072
2073 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2074 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2075
1c6d1051
YM
20762009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2077
2078 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2079 (x_delete_terminal): Dissociate resource database from display and
2080 then call XrmDestroyDatabase before closing display.
2081
9b9b779c
AR
20822009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2083
2084 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2085 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2086 whether selected frame is viable before raising it (based on patch
2087 by David Reitter), and improve commentary.
2088 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2089
cccd42d5
KH
20902009-05-15 Kenichi Handa <handa@m17n.org>
2091
2092 * font.c (Ffont_spec): Check arguments.
2093
337fbd17
CY
20942009-05-14 Chong Yidong <cyd@stupidchicken.com>
2095
2096 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2097 weight when testing attributes (Bug#3282).
2098
47a6002f
JD
20992009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2100
2101 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2102 what we expect to get in the next ConfigureNotify event.
2103
9cb363db
YM
2104 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2105 before Xft one (Bug#1696).
2106
b9126609
CY
21072009-05-07 David Reitter <david.reitter@gmail.com>
2108
2109 * nsfns.m (Fx_display_planes): Compute bitplanes using
2110 NSBitsPerPixelFromDepth (Bug#3207).
2111
27a69fd9
CY
21122009-05-10 Chong Yidong <cyd@stupidchicken.com>
2113
2114 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2115
00f37552
TTN
21162009-05-10 Ulrich Mueller <ulm@gentoo.org>
2117
2118 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2119
2d82a920
DR
21202009-05-07 David Reitter <david.reitter@gmail.com>
2121
ec7709ba
JB
2122 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2123 Respect mouse face background.
2d82a920 2124
46b0d52d
DR
21252009-05-07 David Reitter <david.reitter@gmail.com>
2126
ec7709ba
JB
2127 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2128 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2129 in ns_update_begin and ns_update_end.
2130
ce1b23bb
SM
21312009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2132
5996e1b7
SM
2133 * nsfns.m (ns_get_screen): Rewrite.
2134 Don't presume selected-frame is of type `ns'.
2135
ba98e3a0
SM
2136 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2137 all drivers.
2138
ce1b23bb
SM
2139 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2140
bcda200f
YM
21412009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2142
2143 * keyboard.h (add_user_signal): Fix typo in extern.
2144
2145 * lisp.h (add_user_signal): Remove extern.
2146
2147 * unexelf.c (unexec): Consider a section to precede the .bss section
2148 if its addresses overlap that of .bss.
2149 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2150 instead of dumping process.
2151
864660a2
SM
21522009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2153
2154 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2155
50da4e56
SM
21562009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2157
2158 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2159
51520a1a
DN
21602009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2161
2162 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2163 any statements.
2164
409ea3a1
AS
21652009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2166
59c4c60f
AS
2167 * process.c (read_process_output): Make sure the current buffer is
2168 always restored.
2169
409ea3a1
AS
2170 * coding.c (record_conversion_result): Don't modify
2171 Vlast_code_conversion_error for successful result.
2172 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2173
56f00ed2
KH
21742009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2175
2176 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2177 (load_charset_map): Remove unnecessary code.
56f00ed2 2178
4491c9d2
DR
21792009-04-30 David Reitter <david.reitter@gmail.com>
2180
35f5b128 2181 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2182 through f24.
2183
6970f632
CY
21842009-04-30 Chong Yidong <cyd@stupidchicken.com>
2185
2186 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2187
2188 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2189 face_at_buffer_position.
2190 (face_before_or_after_it_pos, get_next_display_element)
2191 (note_mouse_highlight): Update face_at_buffer_position call.
2192
2193 * term.c (term_mouse_highlight):
2194 * msdos.c (IT_note_mouse_highlight):
2195 * fontset.c (Finternal_char_font):
35f5b128 2196 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2197
2198 * dispextern.h (face_at_buffer_position): Update prototype.
2199
0c616f63
KH
22002009-04-30 Kenichi Handa <handa@m17n.org>
2201
35f5b128 2202 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2203
ad3aaf33
AS
22042009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2205
2206 * callproc.c (Fcall_process): Fix GC protection. Make sure
2207 current buffer is always restored.
2208
c3c963a0
YM
22092009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2210
2211 * atimer.c (init_atimer): Also clear stopped_atimers.
2212
2213 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2214
7e3386cb
YM
2215 * process.c (create_process): Clean up merger residues of
2216 2008-07-17 change.
2217
91f68422
CY
22182009-04-29 Ulrich Mueller <ulm@gentoo.org>
2219
2220 * lread.c (Vread_circle): New variable.
2221 (read1): Disable recursive read if Vread_circle is nil.
2222
24b34550
KH
22232009-04-29 Kenichi Handa <handa@m17n.org>
2224
2225 * fontset.h (set_default_ascii_font): Delete extern.
2226
2227 * fontset.c (set_default_ascii_font): Delete this unused function.
2228
2229 * frame.c (x_set_font): When ARG is a font-object, check if the
2230 font-object matches with the ASCII font-spec of the frame's
9c358bda 2231 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2232
77bf07e1
AS
22332009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2234
2235 * fns.c (Flocale_info): Protect vector from GC during decoding.
2236
2237 * process.c (Fstart_process): Protect argv strings from GC during
2238 encoding.
2239
2c55aacf
AS
22402009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2241
2242 * sysdep.c: Include <ctype.h>.
2243
b892d3c9
DR
22442009-04-27 David Reitter <david.reitter@gmail.com>
2245
35f5b128 2246 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2247 Remove commented-out code.
2248
9d0644c4
JB
22492009-04-26 Johan Bockgård <bojohan@gnu.org>
2250
2251 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2252
b7053016
JR
22532009-04-25 Jason Rumney <jasonr@gnu.org>
2254
2255 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2256
4e8231f3
YM
22572009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2258
2259 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2260 Swap bytes in short integer if fringe bitmap width > 8.
2261
493dcf2c
KH
22622009-04-23 Kenichi Handa <handa@m17n.org>
2263
2264 * xfaces.c (Fx_list_fonts): If a font size is specified in
2265 PATTERN, set it in returned scalable fonts.
2266
401e9e57
CY
22672009-04-22 Chong Yidong <cyd@stupidchicken.com>
2268
708e05dc
CY
2269 * keyboard.c (Fset_input_meta_mode): Doc fix.
2270
2271 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2272
1ac9108a 2273 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2274
2275 * coding.c (Fterminal_coding_system): Doc fix.
2276
2277 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2278 (Fx_display_pixel_height, Fx_display_planes)
2279 (Fx_display_color_cells, Fx_server_max_request_size)
2280 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2281 (Fx_display_mm_height, Fx_display_mm_width)
2282 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2283 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2284 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2285 (check_x_display_info): Handle terminal objects instead of
2286 terminal ids.
2287
401e9e57
CY
2288 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2289 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2290 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2291 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2292
df80c7f0
KH
22932009-04-21 Kenichi Handa <handa@m17n.org>
2294
5a8f12af 2295 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2296 (font_score): Check AVGWIDTH too.
908567ef 2297
df80c7f0
KH
2298 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2299 worst case.
1ac9108a
SM
2300 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2301 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2302
705af33f
JR
23032009-04-19 Jason Rumney <jasonr@gnu.org>
2304
2305 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2306 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2307
2308 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2309 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2310 get_phys_cursor_geometry.
2311
b71ac3dd 2312 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2313 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2314 using get_phys_cursor_geometry.
2315
2316 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2317 correctly calculated.
2318
dc2933eb
JD
23192009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2320
1ac9108a
SM
2321 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2322 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2323 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2324 is deprecated.
2325
973e7849
AS
23262009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2327
2328 * font.c (font_put_frame_data): Use xfree instead of free.
2329
314d66f4
JB
23302009-04-17 Juanma Barranquero <lekktu@gmail.com>
2331
2332 * w32font.c (Qja, Qko): Remove declarations.
2333 (syms_of_w32font): Don't DEFSYM them.
2334
cf702558
CY
23352009-04-17 Chong Yidong <cyd@stupidchicken.com>
2336
2337 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2338
2339 * font.h (Qja, Qko): Extern them.
2340
2341 * ftfont.c (Qja, Qko): Remove declarations.
2342
2343 * xfont.c (Qja, Qko): Remove declarations.
2344
b50504f5
KH
23452009-04-17 Kenichi Handa <handa@m17n.org>
2346
bde25748
KH
2347 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2348 string from a vector to handle Latin-1 characters correctly.
2349
b50504f5
KH
2350 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2351 entity even if the cache hits.
2352
f4646fff
AS
23532009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2354
2355 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2356 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2357
e7deaab0
AS
2358 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2359 * lisp.h: Adjust prototypes.
2360
0a0e7d49
CY
23612009-04-16 Chong Yidong <cyd@stupidchicken.com>
2362
2363 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2364 change (Bug#3003).
2365
3c908a57
KH
23662009-04-16 Kenichi Handa <handa@m17n.org>
2367
1ac9108a 2368 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2369
2370 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2371 adstyle.
2372
2373 * ftfont.c (Qja, Qko): Don't make them static.
2374 (enum ftfont_cache_for): New enum.
2375 (fc_charset_table): Undo the previous change.
2376 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2377 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2378 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2379 non-scarable font, try to get AVERAGE_WIDTH.
2380 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2381 Change ft_face_cache from a list of a hash-table. Don't check
2382 `ja' and `ko' adstyle here.
2383 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2384 FTFONT_CACHE_FOR_CHARET.
2385 (ftfont_get_charset): Undo the previous change.
1ac9108a 2386 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2387 (ftfont_close): Likewise.
2388 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2389
2390 * font.c (font_sort_entites): Change the meaning of the arg
2391 BEST-ONLY. Don't optimize for VEC of lenght 1.
2392 (font_select_entity): Just return the value of font_sort_entites.
2393
2394 * xfaces.c (merge_face_vectors): Reflect font properties in
2395 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2396 font_clear_prop if a face attribute doesn't change.
2397
3c908a57
KH
2398 * charset.h (charset_ksc5601): Extern it.
2399
2400 * charset.c (charset_ksc5601): New variable.
2401 (Fdefine_charset_internal): Set charset_ksc5601.
2402 (init_charset_once): Initialize charset_ksc5601 to -1.
2403
d65859c3
DN
24042009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2405
2406 * fileio.c (history_delete_duplicates): Remove unused declaration.
2407
2408 * callint.c (history_delete_duplicates): New declaration.
2409 (Fcall_interactively): Remove command history duplicates when
2410 history_delete_duplicates is true.
2411
3ba010e5
EZ
24122009-04-14 Eli Zaretskii <eliz@gnu.org>
2413
2414 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2415
06f19b91
KH
24162009-04-14 Kenichi Handa <handa@m17n.org>
2417
2418 * font.c (Ffont_info): Fix docstring. Fix the second element of
2419 the returned value (bug#2949).
2420
2cce8bfc
CY
24212009-04-14 Chong Yidong <cyd@stupidchicken.com>
2422
2423 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2424
d156542d
KH
24252009-04-14 Kenichi Handa <handa@m17n.org>
2426
2427 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2428 encoding charset is ascii_compatible.
2429
2430 * charset.c (Fdefine_charset_internal): Make charset
2431 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2432 code_offset is 0, and covers all ASCII characters.
2433
86fa089e
SM
24342009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2435
2436 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2437 (ns_string_to_pasteboard_internal):
2438 * nsmenu.m (process_dialog):
2439 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2440 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2441 * lisp.h (Fx_load_color_file): Declare.
2442
a8a3728b
KH
24432009-04-13 Kenichi Handa <handa@m17n.org>
2444
1ac9108a 2445 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2446 (font_select_entity): Suppress the code to optimize for the same
2447 kind of fonts.
2448 (font_load_for_lface): Get a font that supports at least ASCII
2449 characters.
2450
2451 * ftfont.c (Qja, Qko): New variables.
2452 (fc_charset_table): Delete uniquifier data for iso8859-1.
2453 (ftfont_get_latin1_charset): New function.
2454 (get_adstyle_property): New function.
2455 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2456 bitmap fonts.
2457 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2458 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2459 `ko' or `ja'.
2460 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2461 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2462 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2463 property.
2464 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2465 (syms_of_ftfont): DEFSYM Qja and Qko.
2466
483670b5
KH
24672009-04-09 Kenichi Handa <handa@m17n.org>
2468
12b55765
KH
2469 * charset.c (map_charset_chars): For a charset of `superset'
2470 method, fix calculation of code range.
2471
483670b5
KH
2472 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2473 from the list of extra properties.
2474 (font_clear_prop): Be sure to delete `:name' font property.
2475
57d3b93b
KH
24762009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2477
b4b2c2ca
YM
2478 * dispnew.c (redraw_overlapping_rows): Fix detection of
2479 overlapping for topmost and bottommost rows.
2480
1ac9108a 2481 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2482
472c3609
JR
24832009-04-06 Jason Rumney <jasonr@gnu.org>
2484
2485 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2486
ab193662
KH
24872009-04-06 Kenichi Handa <handa@m17n.org>
2488
2489 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2490
2491 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2492
0c26f026
KH
24932009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2494
2495 * ftfont.c (ftfont_open): Fix checking of the return value of
2496 FT_Load_Char. Fix setting font->underline_thickness.
2497
e173bbce
CY
24982009-04-04 Chong Yidong <cyd@stupidchicken.com>
2499
2500 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2501 (Fterminal_parameters, Fterminal_parameter)
2502 (Fset_terminal_parameter): In doc string, refer to terminal
2503 objects rather than terminal ids.
2504
693a2698
EZ
25052009-04-04 Eli Zaretskii <eliz@gnu.org>
2506
2507 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2508 ret_lim_data. (Bug#2867)
2509
d5221487
CY
25102009-04-03 Chong Yidong <cyd@stupidchicken.com>
2511
2512 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2513 so they don't get wider than the window, matching 2006-01-23
2514 change to the partner function in xdisp.c (Bug#2800).
2515
223509a3
KH
25162009-04-03 Kenichi Handa <handa@m17n.org>
2517
2518 * print.c (print_object): Make each lowest sub_char_table start a
2519 new line (Bug#2866).
2520
74fcd0b1
KH
25212009-04-02 Kenichi Handa <handa@m17n.org>
2522
2523 * fontset.c (fontset_font): Record no-font when a fontset
2524 explicitly tells not to try another font-specs.
2525
c542407d
SM
25262009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2527
2528 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2529
e3869731
KH
25302009-03-30 Kenichi Handa <handa@m17n.org>
2531
d8d2f142
KH
2532 * fontset.c (fontset_from_font): Specify only registry in a
2533 font-spec for all characters supported by that registry.
2534
e3869731
KH
2535 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2536 even if HAVE_M17N_FLT is not defined.
2537
5da5f805
CY
25382009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2539
2540 * ftfont.c: Conditionalize prototyping and use of
2541 ftfont_variation_glyphs.
2542
ab226c50
SM
25432009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2544
9628fed7
SM
2545 * frame.c (delete_frame): Work around compiler bug.
2546
2547 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2548 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2549 Some more EMACS_INT.
2550 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2551
2552 * xdisp.c (dump_glyph): Fix typo.
2553
ae19ba7c
SM
2554 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2555 (adjust_markers_gap_motion, adjust_markers_for_delete)
2556 (adjust_markers_for_insert, adjust_point)
2557 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2558 (make_gap, copy_text, count_size_as_multibyte, insert)
2559 (insert_and_inherit, insert_before_markers)
2560 (insert_before_markers_and_inherit, insert_1)
2561 (count_combining_before, count_combining_after, insert_1_both)
2562 (insert_from_string, insert_from_string_before_markers)
2563 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2564 (insert_from_buffer_1, adjust_after_replace)
2565 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2566 (replace_range_2, del_range, del_range_1, del_range_byte)
2567 (del_range_both, del_range_2, modify_region)
2568 (prepare_to_modify_buffer, signal_before_change)
2569 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2570 for buffer positions and sizes.
2571 * lisp.h: Adjust prototypes accordingly.
2572
2573 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2574 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2575 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2576
ab226c50
SM
2577 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2578
46dfb8fb
JD
25792009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2580
2581 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2582 lines and columns so we keep the same pixel height and width.
2583
2584 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2585 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2586 (x_handle_net_wm_state): New function to update frame parameter
2587 fullscreen.
2588 (x_term_init): Initialize atoms for _NET_WM_STATE.
2589
2590 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2591
d347e494
SM
25922009-03-27 Kevin Ryde <user42@zip.com.au>
2593
2594 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2595 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2596 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2597 (Fgpm_mouse_stop): Pass that new parameter.
2598 * termhooks.h (close_gpm): Adjust prototype.
2599
84db11d6
SM
26002009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2601
c95a5008
SM
2602 * lisp.h (Fx_focus_frame): Declare.
2603
84db11d6
SM
2604 * callint.c (Fcall_interactively): For '^' just delegate the work to
2605 handle-shift-selection.
2606 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2607
0a1958d6
CY
26082009-03-24 Chong Yidong <cyd@stupidchicken.com>
2609
0bfdff23
CY
2610 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2611
0a1958d6
CY
2612 * data.c (Qinteractive_form): New variable.
2613 (Finteractive_form): Use it.
2614
2615 * eval.c (Fcommandp): Use Qinteractive_form.
2616
58aec0d6
JR
26172009-03-24 Jason Rumney <jasonr@gnu.org>
2618
2619 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2620 Calculate total size precisely. Decode environment variables
2621 before substituting. (Bug#38)
2622
553dd618
KH
26232009-03-24 Kenichi Handa <handa@m17n.org>
2624
2625 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2626 encoding (Bug#2722).
553dd618 2627
c39ea606
JD
26282009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2629
2630 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2631 that gdpy is set.
2632
bc9b2b5e
AM
26332009-03-22 Alan Mackenzie <acm@muc.de>
2634
2635 * callint.c (Finteractive): Clarify the doc string - even
2636 promptless elements need \n separators.
2637
9f995a76
JR
26382009-03-22 Jason Rumney <jasonr@gnu.org>
2639
2640 * w32term.c (syms_of_w32term): Doc fix for
2641 x-use-underline-position-properties.
2642
22749e9a
EZ
26432009-03-21 Eli Zaretskii <eliz@gnu.org>
2644
2645 * w32.c (getpwuid): Change argument type to unsigned.
2646 (struct w32_id): Change type of `rid' member to unsigned.
2647 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2648 argument ID to unsigned. All callers changed.
2649 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2650
e00553bf
EZ
26512009-03-20 Eli Zaretskii <eliz@gnu.org>
2652
2653 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2654 negative, produce a float value.
2655
2656 * dired.c (make_uid, make_gid): New functions.
2657 (Ffile_attributes): Use them to avoid negative UID and GID.
2658
f761d6b6
JB
26592009-03-20 Juanma Barranquero <lekktu@gmail.com>
2660
2661 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2662 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2663 Fix typos in docstrings.
2664
d507f8d7
KH
26652009-03-19 Kenichi Handa <handa@m17n.org>
2666
2667 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2668 changed, use font_load_for_lface to get a new font object.
2669 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2670
2671 * frame.c (x_set_font): Handle the case that ARG is a cons.
2672
c68845e0
GM
26732009-03-19 Glenn Morris <rgm@gnu.org>
2674
2675 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2676
bfa49dd1
CY
26772009-03-19 Chong Yidong <cyd@stupidchicken.com>
2678
2679 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2680
8458d4c1
KH
26812009-03-19 Kenichi Handa <handa@m17n.org>
2682
2683 * charset.c (load_charset_map_from_file): When a mapfile can't be
2684 loaded, signal an error.
2685
78e7d1fe
EZ
26862009-03-18 Eli Zaretskii <eliz@gnu.org>
2687
2688 * dired.c (Ffile_attributes): Make sure UID and GID are always
2689 positive, even if the value is too large for a positive EMACS_INT.
2690 Doc fix.
2691
2692 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2693
5da9fdfa
YM
26942009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2695
2696 * xmenu.c (xdialog_show): Move Fredisplay call ...
2697 (Fx_popup_dialog): ... here.
2698
7519c40d
SM
26992009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2700
2701 * dired.c (file_name_completion): Disable the first optimization just
2702 installed, since it is not implemented correctly.
2703
2cd298e2
SM
27042009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2705
2706 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2707 only if the entry can affect bestmatch.
2cd298e2
SM
2708 Stop the search early, as Ftry_completion already does.
2709
48d37adf
CY
27102009-03-17 Chong Yidong <cyd@stupidchicken.com>
2711
e10c9c93 2712 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2713
9286b16a
CY
27142009-03-15 Chong Yidong <cyd@stupidchicken.com>
2715
2716 * keyboard.c (parse_menu_item): Don't display remappings as menu
2717 equivalent bindings (Bug#788).
2718
f7b146dc
JR
27192009-03-15 Jason Rumney <jasonr@gnu.org>
2720
2721 * w32term.h (WM_EMACS_PAINT): New message.
2722 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2723 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2724 before passing to lisp thread. (Bug#950)
2725
f761d6b6 27262009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2727
d93f9575
CY
2728 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2729 variable as it was never reset.
2730 (ns_term_init): Remove initialization of Lisp-settable defaults
2731 and ns_expand_space.
2732 (-setPanelFromDefaultValues): Remove ns_expand_space.
2733 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2734 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2735 i.e. no additional spacing, similar to Carbon port.
2736
d93f9575
CY
2737 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2738 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2739
305018ec
JD
27402009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2741
2742 * sound.c (alsa_configure): Remove call to deprecated
2743 snd_pcm_sw_params_set_xfer_align.
2744
f761d6b6 27452009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2746
2747 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2748 after clicking in a detached tool bar.
2749 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2750
46e722a9
SM
27512009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2752
348db3dd
SM
2753 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2754 int/Lisp_Object mixup).
46e722a9 2755
a3d16f39
KH
27562009-03-13 Kenichi Handa <handa@m17n.org>
2757
2758 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2759 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2760 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2761 (set_fontset_font): Change ARG to a vector. Handle range_list in
2762 ARG correctly.
2763 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2764 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2765 the above change.
2766 (fontset_from_font): Fix previous change.
fe24f56a 2767 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2768 entry. If FONTSET is the default fontset, don't set the extra
2769 slot of the returning char-table.
2770
b066e6b6
JB
27712009-03-12 Juanma Barranquero <lekktu@gmail.com>
2772
2773 * nsfns.m (Fx_close_connection): Doc fix.
2774 (Fns_do_applescript): Reflow docstring.
2775 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2776 (Fx_display_pixel_width, Fx_display_pixel_height)
2777 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2778 Fix typos in docstrings.
2779 (Fns_set_alpha): Fix typos in error messages.
2780
d472514e 27812009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 2782
d472514e 2783 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
2784 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2785 were used for such events.
2786
d472514e
JB
2787 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2788 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 2789
d472514e 2790 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
2791 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2792
fb930676
KH
27932009-03-11 Kenichi Handa <handa@m17n.org>
2794
ff85581a
KH
2795 * font.h (font_open_by_spec): Extern it.
2796
c50b7e98
KH
2797 * font.c (font_open_by_spec): New function.
2798 (font_open_by_name): Use font_open_by_spec.
2799
fb930676
KH
2800 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2801 fontset of the frame.
2802
2803 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2804 modify the default font of frames that use this fontset.
2805 (num_auto_fontsets): New variable.
2806 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2807 name. Be sure to set FONTSET_ASCII to the correct font name.
2808 (update_auto_fontset_alist): New function.
2809
df4e8455
JB
28102009-03-11 Juanma Barranquero <lekktu@gmail.com>
2811
2812 * makefile.w32-in: Update dependencies.
2813
0a375797
AR
28142009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2815
2816 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2817
61313fa3
SM
28182009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2819
2820 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2821
b55103fb
CY
28222009-03-10 Chong Yidong <cyd@stupidchicken.com>
2823
2824 * lread.c (Feval_buffer): Doc fix.
2825
dde2559c
KH
28262009-03-09 Kenichi Handa <handa@m17n.org>
2827
2828 * charset.c (Qfile_name_handler_alist): Extern it.
2829 (load_charset_map_from_file): Temporarily bind
2830 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2831
df4e8455 28322009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2833
47f588bb
GM
2834 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2835 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2836
4ddf94bd
AR
28372009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2838
4c9bdfc2
AR
2839 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2840 (x_set_window_size): Change back to calculated method of setting
2841 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
2842 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2843 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2844
fe41ae9e
AR
2845 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2846
4c9bdfc2
AR
2847 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2848 accelerator in parens under GNUstep.
2849
825d0875
KH
28502009-03-06 Kenichi Handa <handa@m17n.org>
2851
2852 These changes are to detect incorrect composition sequence without
f3b3be74 2853 looking ahead the source. (Bug#2370)
825d0875
KH
2854
2855 * coding.h: Include "composite.h".
2856 (enum compisition_state): New enum.
2857 (struct compisition_status): New struct.
2858 (struct iso_2022_spec): New member cmp_status.
2859 (struct emacs_mule_spec): New struct.
2860 (struct coding_system): New members ctext_extended_segment_len and
2861 embedded_utf_8. Change the union member
2862 spec.emacs_mule_full_support to spec.emacs_mule.
2863
2864 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2865 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 2866 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
2867 (ADD_COMPOSITION_DATA): New arg nbytes.
2868 (emacs_mule_char): New arg cmp_status.
2869 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2870 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2871 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2872 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2873 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2874 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2875 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2876 (EMACS_MULE_COMPOSITION_END): New macro.
2877 (emacs_mule_finish_composition): New function.
2878 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2879 (decode_coding_emacs_mule): Avoid long looking ahead while
2880 handling composition.
2881 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2882 (ENCODE_COMPOSITION_RULE): New macro.
2883 (finish_composition): New function.
2884 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2885 (DECODE_COMPOSITION_START): New implementation.
2886 (DECODE_COMPOSITION_END): Likewise.
2887 (STORE_COMPOSITION_RULE): New macro.
2888 (decode_coding_iso_2022): Avoid long looking ahead while handling
2889 composition, CTEXT extended segment, and embedded UTF-8.
2890 (setup_coding_system): For a coding of type iso-2022, reset
2891 CODING_ISO_EXTSEGMENT_LEN (coding) and
2892 CODING_ISO_EMBEDDED_UTF_8 (coding).
2893 (get_translation): Delete arguments last_block, from_nchars,
2894 to_nchars. Callers changed.
2895 (produce_chars): Don't modify charbuf. Adjusted for the change of
2896 get_translation.
98a326f7 2897 (produce_composition): Adjust for the new annotation sequence.
825d0875 2898 (handle_composition_annotation): Likewise.
98a326f7 2899 (consume_chars): Adjust for the change of get_translation.
825d0875 2900
ccbc4452
AR
29012009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2902
4ddf94bd 2903 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 2904
988a7ddb
KH
29052009-03-05 Kenichi Handa <handa@m17n.org>
2906
2907 * font.c (font_select_entity): New function.
2908 (font_find_for_lface): Use font_select_entity to select a font.
2909
2910 * fontset.c (fontset_find_font): If a font found without
a8a3728b 2911 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
2912 font with C restriction.
2913
98a326f7 29142009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 2915
be1bce46 2916 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 2917
10ea2b82
JR
29182009-03-04 Jason Rumney <jasonr@gnu.org>
2919
2c93b248 2920 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 2921 characters that have already been read. (Bug#2569)
2c93b248 2922
10ea2b82
JR
2923 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2924 Log an error message if check_image_size failed.
2925 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 2926 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 2927
71a0c011
EZ
29282009-03-02 Eli Zaretskii <eliz@gnu.org>
2929
2930 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2931 when decoding process output.
2932
2f63bba8
RS
29332009-03-01 Richard M Stallman <rms@gnu.org>
2934
2935 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2936
2937 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2938
0a9564cb
EZ
29392009-02-28 Eli Zaretskii <eliz@gnu.org>
2940
2941 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2942 (decode_coding_emacs_mule, decode_coding_iso_2022)
2943 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2944 (decode_coding_raw_text, decode_coding_charset)
2945 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2946 Honor inhibit-eol-conversion. (Bug #2186)
2947
449148b3
JR
29482009-02-28 Jason Rumney <jasonr@gnu.org>
2949
2950 * coding.c (detect_coding_charset): If not checking latin extra,
2951 fail on characters between 0x80 and 0xA0. (Bug#2354)
2952
a4aee864
EZ
29532009-02-28 Eli Zaretskii <eliz@gnu.org>
2954
2955 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 2956 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 2957
d88bee5a
GM
29582009-02-27 Glenn Morris <rgm@gnu.org>
2959
2960 * callint.c (Finteractive): Doc fix.
2961
a808f22d
KH
29622009-02-27 Kenichi Handa <handa@m17n.org>
2963
2964 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2965
caf8d60c
CY
29662009-02-27 Chong Yidong <cyd@stupidchicken.com>
2967
2968 * font.c (font_style_to_value): Set value for unknown symbols to
2969 100 instead of 255.
b61137ea
CY
2970 (weight_table, slant_table, width_table): Treat "unspecified" as
2971 the default value.
caf8d60c 2972
1a0de25c
JB
29732009-02-26 Juanma Barranquero <lekktu@gmail.com>
2974
2975 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2976
8fc45744
JB
29772009-02-25 Juanma Barranquero <lekktu@gmail.com>
2978
107bd7d1
JB
2979 * lread.c (Fload): Stop checking Vloads_in_progress and signal
2980 error as soon as a recursive load is detected.
8fc45744 2981
f097e223
AR
29822009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2983
2984 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
2985 before caching.
2986
8810a12f
KH
29872009-02-24 Kenichi Handa <handa@m17n.org>
2988
2989 * fontset.c (fontset_find_font): Fix the condition for checking
2990 unavailable font.
2991
2c7d1565
GM
29922009-02-24 Glenn Morris <rgm@gnu.org>
2993
2994 * xfaces.c (Finternal_set_font_selection_order): Remove leading
2995 whitespace that confuses documentation.
2996
a20878b6
MB
29972009-02-23 Miles Bader <miles@gnu.org>
2998
2999 * process.c (Flist_system_processes, Fprocess_attributes)
3000 (syms_of_process): Rename `system-process-attributes' to
3001 `process-attributes'.
3002
b3b58c01
AS
30032009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3004
1b3b981b
AS
3005 * coding.h (struct coding_system): Make safe_charsets a pointer to
3006 unsigned char.
3007 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3008 being 255.
3009 (SAFE_CHARSET_P): Likewise.
3010 (setup_iso_safe_charsets): Properly setup safe_charsets.
3011 (Fdefine_coding_system_internal): Likewise.
3012 (setup_coding_system): Likewise. Remove unneeded casts.
3013 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3014 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3015 unneeded casts.
3016
b3b58c01
AS
3017 * insdel.c (del_range_2): Don't modify gap contents when called
3018 from decode_coding_object. (Bug#1809)
3019
0b6f228c
CY
30202009-02-21 Chong Yidong <cyd@stupidchicken.com>
3021
3022 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3023 Qfont_object.
3024 (Ftype_of): Recognize font objects.
3025
3026 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3027
3028 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3029 moved to data.c.
3030
52f8870b
AR
30312009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3032
3033 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3034 async_iconified. Based on a patch by Christian Lynbech
3035 <christian.lynbech@tieto.com>.
3036 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3037
7087d5e9
GM
30382009-02-20 Glenn Morris <rgm@gnu.org>
3039
3040 * syntax.c (Fskip_chars_forward): Fix doc typo.
3041
41d2ceef
CY
30422009-02-20 Chong Yidong <cyd@stupidchicken.com>
3043
3044 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3045
1a3b7ca6
CY
30462009-02-19 Chong Yidong <cyd@stupidchicken.com>
3047
3048 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3049
73cce38d
KH
30502009-02-19 Kenichi Handa <handa@m17n.org>
3051
3052 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3053 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3054
a51092ee
DN
30552009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3056
3057 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3058
c423ecca
KH
30592009-02-18 Kenichi Handa <handa@m17n.org>
3060
3061 * font.c (font_check_otf_features): Fix handling of `nil' element.
3062 (Ffont_spec): Describe :lang and :otf in the docstring.
3063
4c1958f4
AS
30642009-02-16 Andreas Schwab <schwab@suse.de>
3065
3066 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3067 string.
3068
5704f39a
KH
30692009-02-16 Kenichi Handa <handa@m17n.org>
3070
3071 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3072 (Bug#1723)
5704f39a 3073
8f0085aa
CY
30742009-02-14 Chong Yidong <cyd@stupidchicken.com>
3075
a057d86a 3076 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3077
3078 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3079 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3080
aff01dd9
EZ
30812009-02-14 Eli Zaretskii <eliz@gnu.org>
3082
3083 * msdos.c (MAX_SCREEN_BUF): New macro.
3084 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3085 Encode the entire run of glyphs sharing the same face, instead of
3086 doing that one glyph at a time (fixes a bug with displaying
3087 double-size characters).
3088
ba301db3
AR
30892009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3090
3091 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3092
3093 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3094 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3095 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3096
3097 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3098 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3099
51d861de
SM
31002009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3101
3102 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3103 invisible areas.
3104
7fed8996
JR
31052009-02-12 Jason Rumney <jasonr@gnu.org>
3106
631ea4fb
JR
3107 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3108 (add_font_entity_to_list): Call check_face_name even when family
3109 is unspecified.
3110
cb4a3e42
JR
3111 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3112 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3113 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3114
7fed8996 3115 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3116 raster fonts. (Bug#2219)
7fed8996 3117
895416e3
KH
31182009-02-12 Kenichi Handa <handa@m17n.org>
3119
3120 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3121 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3122 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3123 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3124 (find_automatic_composition): While looking forward and backward,
3125 check static composition. Fix where to stop looking forward.
3126 (composition_adjust_point): Fix checking of static composition.
3127 (Fcomposition_get_gstring): Pay attention to
1dacf998 3128 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3129
3130 * lisp.h (fast_looking_at): Extern it.
3131
3132 * search.c (fast_looking_at): New function.
3133
51d861de 3134 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3135 <struct glyph>.u.cmp.to.
3136 (append_composite_glyph): Likewise.
3137
51d861de 3138 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3139 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3140 composition.
51d861de 3141 (append_composite_glyph): Adjust for the change of
895416e3
KH
3142 <strcut glyph>.u.cmp.to.
3143
8510724d
JB
31442009-02-11 Juanma Barranquero <lekktu@gmail.com>
3145
3146 * casetab.c (init_casetab_once):
3147 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3148 * font.c (font_update_lface):
3149 * fontset.c (Fnew_fontset):
3150 * ftfont.c (ftfont_drive_otf):
3151 * xfont.c (xfont_open):
3152 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3153
294fa707
SM
31542009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3155
3156 * fileio.c (Fwrite_region): !NILP -> CONSP.
3157
b5bfebec
AS
31582009-02-10 Andreas Schwab <schwab@suse.de>
3159
3160 * process.c (send_process): Properly relocate pointer into data
adab88bd 3161 when using encoded data. (Bug#2272)
b5bfebec 3162
cb84a2be
KH
31632009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3164
3165 * coding.c (detect_coding_charset): Fix previous change.
3166
89e09428
JR
31672009-02-08 Jason Rumney <jasonr@gnu.org>
3168
3169 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3170 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3171
4470a277
AS
31722009-02-07 Andreas Schwab <schwab@suse.de>
3173
3174 * unexelf.c (unexec): Fix error message.
3175
3175b12a
AR
31762009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3177
3178 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3179 when modal window is active. (Bug #2152)
3175b12a
AR
3180 (applicationShouldTerminate:): Remove now-unneeded while loop
3181 around NSRunAlertPanel.
3182
3183 * nsmenu.m (popupSession): New file-global variable.
3184 (pop_down_menu): End the popupSession before closing dialog.
3185 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3186 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3187 don't query NSApp for events (just sleep instead).
3188
8434d0b8
EZ
31892009-02-07 Eli Zaretskii <eliz@gnu.org>
3190
51d861de
SM
3191 * coding.c (syms_of_coding) <translation-table-for-input>:
3192 Modify doc string to discourage use for character code unification.
8434d0b8 3193
aa82edfd
CY
31942009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3195
3196 * atimer.c (run_timers): Update pending_atimers.
3197
2d283c7c
CY
31982009-02-06 Chong Yidong <cyd@stupidchicken.com>
3199
eb306cab
CY
3200 * image.c (svg_load_image): Fix last change.
3201
2d283c7c
CY
3202 * xfns.c (Fx_create_frame): Signal an error if no font is
3203 found (Bug#2147).
3204
4d8e170e
JB
32052009-02-05 Juanma Barranquero <lekktu@gmail.com>
3206
3207 * character.c (syms_of_character) <script-representative-chars>:
3208 Fix typo in docstring.
3209
c96169a0
AR
32102009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3211
3212 * nsmenu.m (pop_down_menu): New function.
3213 (ns_popup_dialog): Call it on unwind.
3214 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3215 call timer_check() (Bug#2154).
3216 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3217 handling_signal is set.
3218 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3219
31fd7c5c 3220 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3221
3222 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3223
3224 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3225
51d861de
SM
3226 * keyboard.c (poll_for_input_1, handle_async_input):
3227 Set handling_signal under HAVE_NS.
c96169a0 3228
aacd8ba1
GM
32292009-02-04 Glenn Morris <rgm@gnu.org>
3230
3231 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3232
4cb75c4b
KH
32332009-02-04 Kenichi Handa <handa@m17n.org>
3234
3235 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3236
3237 * charset.c (Fchar_charset): New optional arg restriction.
3238
3239 * coding.h (coding_system_charset_list): Extern it.
3240
3241 * coding.c (coding_system_charset_list): New function.
3242
3243 * composite.c: Include coding.h and termhooks.h.
3244 (composition_gstring_p): Fix for the terminal case.
3245 (composition_gstring_width): Likewise.
3246 (fill_gstring_body): Likewise.
3247 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3248 the frame.
3249 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3250 is within a composition.
867d4bb3 3251 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3252
3253 * term.c (encode_terminal_code): Fix handling of composition.
3254 (produce_composite_glyph): For static composition, get pixel_width
3255 from struct composition.
3256
826ba17e
AS
32572009-02-02 Andreas Schwab <schwab@suse.de>
3258
3259 * unexelf.c (unexec): Handle unaligned bss offset.
3260
8ad093db
AR
32612009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3262
3263 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3264 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3265
8ad093db
AR
3266 * keyboard.c (handle_interrupt): Don't call
3267 quit_throw_to_read_char() under NS.
d0a76a6e 3268
8ad093db
AR
3269 * blockinput.h: Remove NS-specific code.
3270
4d18a7a2
DN
32712009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3272
db878925
DN
3273 * dispnew.c (window_change_signal): Don't try to get the size of a
3274 suspended tty frame.
3275 * term.c (Fresume_tty): Resize if the size has changed while the
3276 tty was suspended.
3277
4d18a7a2
DN
3278 * alloc.c (mark_stack): Properly conditionalize previous change.
3279
8984df7c
JB
32802009-01-30 Juanma Barranquero <lekktu@gmail.com>
3281
3282 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3283 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3284 Remove; this code is not used on Windows.
3285
75f4f1ac
EZ
32862009-01-30 Eli Zaretskii <eliz@gnu.org>
3287
3288 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3289 EOLs that also has stray ^M characters.
3290
07a1e794
JB
32912009-01-30 Juanma Barranquero <lekktu@gmail.com>
3292
3293 * atimer.c (run_timers, alarm_signal_handler):
3294 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3295 * w32inevt.c (w32_console_read_socket):
3296 * w32term.c (w32_read_socket):
3297 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3298
a8b11cc9
CY
32992009-01-30 Chong Yidong <cyd@stupidchicken.com>
3300
3301 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3302 Initialize it as a relative filename pattern.
3303 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3304 (Fcall_process_region): Simplify temp file creation using
3305 temporary-file-directory.
3306
c279587b
EZ
33072009-01-29 Eli Zaretskii <eliz@gnu.org>
3308
3309 * msdos.c: Rename pending_signals to msdos_pending_signals.
3310 (sig_suspender, sigprocmask): Adjust.
3311
a8fe3242
CY
33122009-01-29 Chong Yidong <cyd@stupidchicken.com>
3313
3314 * keyboard.c (pending_signals): New var.
3315 (poll_for_input, input_available_signal, init_keyboard): Set it.
3316 (process_pending_signals): New function.
3317
3318 * lisp.h (QUIT): Check pending_signals instead of
3319 interrupt_input_pending. Use process_pending_signals.
3320
51d861de 3321 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3322
51d861de 3323 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3324
3325 * sysdep.c (emacs_write): Use process_pending_signals.
3326
3327 * xterm.c (XTread_socket): Update pending_signals.
3328
3329 * w32term.c (w32_read_socket): Update pending_signals.
3330
3331 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3332
6570a1c4
KH
33332009-01-29 Kenichi Handa <handa@m17n.org>
3334
3335 * xftfont.c (xftfont_has_char): New function.
3336 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3337
d72a4afa
AR
33382009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3339
3340 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3341 under GNUstep.
3342 (ns_query_color): New declaration.
3343
3344 * nsterm.m (ns_confirm_quit): New variable.
3345 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3346 (EmacsApp-applicationShouldTerminate:): Use it.
3347 (EmacsPrefsController): Let user set it.
3348 (ns_query_color): New function.
3349 (ns_defined_color): Use it.
3350 (ns_initialize): Drop.
3351 (ns_term_init): Add two lines from ns_initialize(), and set
3352 input_interrupt_mode to nil.
3353
3354 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3355 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3356
9fe78804
KH
33572009-01-28 Kenichi Handa <handa@m17n.org>
3358
3359 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3360 (fontset_get_font_group): Remember that no font-group is specified
3361 for C.
9fe78804 3362
fa57de36
CY
33632009-01-27 Chong Yidong <cyd@stupidchicken.com>
3364
930600e9
CY
3365 * fns.c (concat): Check for string overflow (bug#1787).
3366
fa57de36
CY
3367 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3368 Quadruple undo limits (bug#1501).
3369
7179ce7b
KH
33702009-01-27 Kenichi Handa <handa@m17n.org>
3371
3372 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3373 directly use GT_Get_Char_index.
3374
3375 * xftfont.c (struct xftfont_info): New member `index'.
3376
3377 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3378 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3379
5be8fcc0
CY
33802009-01-26 Kenichi Handa <handa@m17n.org>
3381
3382 * fontset.c (fontset_find_font): Fix handling of non-cons return
3383 value of fontset_get_font_group.
3384 (fontset_font): Revert last change.
3385
19ae3e61
JR
33862009-01-26 Jason Rumney <jasonr@gnu.org>
3387
3388 * w32font.c (w32font_list_internal): Return quickly if registry is
3389 unknown. Simplify final return.
3390 (add_font_entity_to_list): Break complex logic down into more
3391 manageable chunks. Move unknown registry check to
3392 w32font_list_internal.
3393
8612b71a
AR
33942009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3395
3396 Changes to remove Feval calls from GUI under NS.
3397
d8038940
JB
3398 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3399 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3400 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3401
3402 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3403 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3404 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3405 instead of NON_ASCII_KEYSTROKE_EVENT.
3406 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3407 (EmacsApp-applicationShouldTerminate:): Query user.
3408 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3409 instead of Feval.
3410
3411 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3412
3413 * keyboard.c (kbd_buffer_get_event): Check for it.
3414 (keys_of_keyboard): Define lispy keys for
3415 ns-put/unput-working-text.
3416
3417 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3418 versions.
3419 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3420
6288ae55
CY
34212009-01-25 Chong Yidong <cyd@stupidchicken.com>
3422
3423 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3424 setting current_buffer directly. (Bug#2044)
6288ae55 3425
289e7f8f
CY
34262009-01-24 Chong Yidong <cyd@stupidchicken.com>
3427
5ce87308 3428 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3429 any work. (Bug#1952, bug#1990).
5ce87308 3430
64cc3cf6 3431 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3432
b3243e6f
AR
34332009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3434
3435 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3436 (ns_no_defaults): New declaration.
3437 (main): Use it.
e0d2e69a 3438
d900b2af 3439 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3440
d900b2af 3441 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3442
d900b2af
AR
3443 * nsterm.m (ns_no_defaults): New variable.
3444 (ns_initialize): Don't read defaults when ns_no_defaults.
3445 (EmacsView-readSelectionFromPasteboard:)
3446 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3447 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3448 (ns_dumpglyphs_stretch): New function.
3449 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3450 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3451
e0d2e69a
AR
3452 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3453
3ac71f5d
CY
34542009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3455
3456 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3457 call for Sparc64.
3458
3fe53a83
AR
34592009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3460
3461 * nsfns.m:
3462 * nsgui.h:
3463 * nsmenu.m:
3464 * nsselect.m:
3465 * nsterm.h:
3466 * nsterm.m: Remove '23' comments that indicated code added during
3467 update from emacs-20 -> emacs-23.
3468
10f87c6f 34692009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3470
3471 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3472 ns_alternate_modifier. (Bug#1217)
a3b53a85 3473
c7cef62d
AR
3474 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3475 Display all shortcuts, including those w/o super modifier.
3476
575fb8bd
AR
3477 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3478
918b848b
CY
34792009-01-22 Chong Yidong <cyd@stupidchicken.com>
3480
3481 * fileio.c (Vwrite_region_post_annotation_function)
3482 (Vwrite_region_annotation_buffers): New vars.
3483 (build_annotations_unwind): Just reset
3484 Vwrite_region_annotation_buffers.
3485 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3486 Call write-region-post-annotation-function.
3487 (build_annotations): Add to Vwrite_region_annotation_buffers if
3488 buffer changes.
3489
a39e2539
AR
34902009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3491
3492 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3493 Tiger.
51d861de
SM
3494 * nsfns.m (ns_do_applescript):
3495 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3496
35ed44db
AR
34972009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3498
3499 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3500
cbe0b5bf
AR
35012009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3502
3503 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3504
6049d3a0
AR
3505 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3506
3507 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3508 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3509 handle Ctrl-tab. (Bug#1841)
3510 (ns_get_color): Use unsigned long long for scanned hex string value.
3511 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3512 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3513 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3514 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3515 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3516 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3517 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3518
d3810c21 3519 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3520 DPI. (Bug#1316)
d3810c21
AR
3521 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3522 values in onTiger section.
4c7077c3 3523
e301e634
CY
35242009-01-19 Chong Yidong <cyd@stupidchicken.com>
3525
7f82490b
CY
3526 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3527 Check return value of font_spec_from_name.
64cc3cf6 3528 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3529
3530 * font.c (font_spec_from_name): Return Qnil if font name could not
3531 be parsed.
3532 (font_parse_name): Treat a `?' character as part of an XLFD.
3533
e301e634
CY
3534 * fns.c (Fsubstring): Doc fix.
3535
1c0db158
KH
35362009-01-19 Kenichi Handa <handa@m17n.org>
3537
51d861de 3538 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3539 (ftfont_list): Likewise.
3540
acf20901
JB
35412009-01-18 Juanma Barranquero <lekktu@gmail.com>
3542
fff4e459
JB
3543 * dbusbind.c (Fdbus_register_signal):
3544 * process.c (conv_sockaddr_to_lisp):
3545 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3546
acf20901
JB
3547 * callproc.c (Fgetenv_internal): Doc fix.
3548
e7abcdfb
CY
35492009-01-16 Chong Yidong <cyd@stupidchicken.com>
3550
3551 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3552 it is not even used.
3553
b60861e6
GM
35542009-01-16 Glenn Morris <rgm@gnu.org>
3555
3556 * font.c (Ffont_variation_glyphs): Silence compiler.
3557
8db52afe
JB
35582009-01-15 Juanma Barranquero <lekktu@gmail.com>
3559
3560 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3561 Reported by David Robinow <drobinow@gmail.com>.
3562
4cddb209
KH
35632009-01-15 Kenichi Handa <handa@m17n.org>
3564
51d861de 3565 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3566
f247f67b
JR
35672009-01-14 Jason Rumney <jasonr@gnu.org>
3568
3569 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3570 never a fontset. (Bug#1562)
f247f67b 3571
f56a4450
KH
35722009-01-14 Kenichi Handa <handa@m17n.org>
3573
3574 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3575 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3576
4e99855e
CY
35772009-01-13 Chong Yidong <cyd@stupidchicken.com>
3578
3579 * font.c (font_clear_prop): If clearing the family, clear the font
3580 width index too.
3581
fff4e459 3582 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3583
24f01470
JB
35842009-01-12 Juanma Barranquero <lekktu@gmail.com>
3585
3586 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3587 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3588 functions, use sizeof.
3589
a41240a3
MR
35902009-01-12 Martin Rudalics <rudalics@gmx.at>
3591
3592 * keyboard.c (read_char): Fix case where last_nonmenu_event
3593 returned a bad value with submenus. (Bug#447)
3594
944636b8
CY
35952009-01-12 Chong Yidong <cyd@stupidchicken.com>
3596
3597 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3598 family, clear the font width index too.
3599
0dad7c6f
JR
36002009-01-11 Jason Rumney <jasonr@gnu.org>
3601
3602 * keyboard.c (cmd_error_internal): Exit when errors occur before
3603 frame creation and not in daemon mode. (Bug#1836)
3604
7c2363af
CY
36052009-01-10 Chong Yidong <cyd@stupidchicken.com>
3606
3607 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3608 of a display vector, backtrack.
3609 (try_window_reusing_current_matrix): Check glyph type before
3610 referencing charpos member.
3611
97b1b294
EZ
36122009-01-10 Eli Zaretskii <eliz@gnu.org>
3613
3614 Fix Bug #876:
3615
3616 * coding.c (inhibit_null_byte_detection): New variable.
3617 (detect_coding, detect_coding_system): Don't pay attention to null
3618 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3619 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3620 <inhibit-iso-escape-detection>: Doc fix.
3621
4624b6e3
JR
36222009-01-09 Jason Rumney <jasonr@gnu.org>
3623
3624 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3625 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3626 Only report Unicode Plane 2 fonts as unicode-sip.
3627
323b840c
CY
36282009-01-09 Chong Yidong <cyd@stupidchicken.com>
3629
51d861de
SM
3630 * xfaces.c (Fx_font_family_list): Delete function.
3631 Move compatibility version to faces.el.
323b840c 3632
51d861de 3633 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3634
eba7400d
MR
36352009-01-09 Martin Rudalics <rudalics@gmx.at>
3636
3637 * frame.c (x_set_frame_parameters): Remember requested value for
3638 fullscreen before it's reset by the parameter handler.
3639
4b09796d
GM
36402009-01-09 Glenn Morris <rgm@gnu.org>
3641
3642 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3643 (last_command_event): ... and update all users.
4b09796d
GM
3644 (last_input_char): For clarity, rename to...
3645 (last_input_event): ... and update all users.
3646 (last-command-char, last-input-char): Move to subr.el as aliases.
3647 * cmds.c, commands.h: Update for last_command_char rename.
3648
14ccea62
CY
36492009-01-08 Chong Yidong <cyd@stupidchicken.com>
3650
51d861de 3651 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3652
5f004711
JR
36532009-01-08 Jason Rumney <jasonr@gnu.org>
3654
3655 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3656 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3657 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3658 Don't declare.
fff4e459 3659 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3660 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3661
b71f6f73
KH
36622009-01-07 Kenichi Handa <handa@m17n.org>
3663
50b06221 3664 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3665 remember the coding system used for decoding in
50b06221
KH
3666 coding_system (Bug#1039).
3667
b71f6f73 3668 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3669 breaking the loop. (Bug#870)
b71f6f73
KH
3670 (decode_coding_utf_16, decode_coding_emacs_mule)
3671 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3672 (decode_coding_charset): Likewise.
3673
56f668f7
MR
36742009-01-05 Martin Rudalics <rudalics@gmx.at>
3675
3676 * frame.c (x_set_frame_parameters): Make sure height (width) get
3677 applied when fullwidth (fullheight) is set. (Bug#1522)
3678
5da9424d
JB
36792009-01-04 Juanma Barranquero <lekktu@gmail.com>
3680
3681 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3682 (utc_base): Declare as ULONGLONG, not long double.
3683 (convert_time_raw): Delete.
3684 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3685 (initialize_utc_base): New function.
3686 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3687 (convert_from_time_t): Use initialize_utc_base; compute result with
3688 64-bit arithmetic.
3689 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3690
c4605e09
EZ
36912009-01-03 Eli Zaretskii <eliz@gnu.org>
3692
9acef61c 3693 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3694 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3695 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3696 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3697 [!subprocesses]: Define.
3698 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3699 (Flist_system_processes, Fsystem_process_attributes)
3700 [!subprocesses]: Call list_system_processes and
3701 system_process_attributes instead of returning Qnil.
3702
9acef61c
JB
3703 * dosfns.c (system_process_attributes, list_system_processes):
3704 New functions.
c4605e09
EZ
3705
3706 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3707
3708 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3709 Don't use the default (no-op) implementation.
3710
8b7d0a16
JR
37112009-01-03 Jason Rumney <jasonr@gnu.org>
3712
a6d46bc1
JR
3713 * keyboard.c (parse_modifiers_uncached): Wheel events are
3714 clicks (bug#687).
3715
8b7d0a16
JR
3716 * w32term.c (x_query_colors, x_query_color): New functions.
3717
3718 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3719 (svg_load_image): Cast returned pointers from dynamically loaded
3720 functions. Eliminate W32 specific code.
3721
bfe11752
DN
37222009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3723
89e2438a
DN
3724 * nsfns.m (x_set_foreground_color, x_set_background_color)
3725 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3726 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3727 x_ prefix instead of ns_. Update references.
3728 (syms_of_nsfns): Add a FIXME comment.
3729
3730 * nsterm.m (x_set_cursor_type): New prototype.
3731 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3732
bfe11752
DN
3733 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3734 for Solaris instead of incorrectly providing Qutime and Qcutime.
3735
031da700
EZ
37362009-01-02 Eli Zaretskii <eliz@gnu.org>
3737
3738 * w32.c (process_times): Compute sum of utime and stime.
3739 (system_process_attributes): Add Qtime to the alist.
3740
3741 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3742 and add them to the alist.
3743
3744 * process.c (top level) <Qtime, Qctime>: New variables.
3745 (syms_of_process): staticpro them.
3746 (Fsystem_process_attributes): Add their documentation to the doc
3747 string.
3748
3749 * process.h: Declare Qtime and Qctime.
3750
df23bf08
JR
37512009-01-02 Jason Rumney <jasonr@gnu.org>
3752
9acef61c 3753 * image.c (Qgobject): New symbol.
df23bf08
JR
3754 (syms_of_image): Initialize it.
3755 (init_svg_functions): Load some functions from gobject library.
3756
5bbdf7aa
DN
37572009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3758
3759 * frame.c (make_terminal_frame): Remove redundant code and useless
3760 block.
3761
63136da6
AS
37622009-01-01 Andreas Schwab <schwab@suse.de>
3763
3764 * process.c (conv_sockaddr_to_lisp): Add workaround for
3765 getsockname bug on BSD.
3766
9ef69046
CY
37672009-01-01 Chong Yidong <cyd@stupidchicken.com>
3768
d6fafbe0
CY
3769 * xfns.c (x_create_tip_frame): Set border width of the X window.
3770
51d861de 3771 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3772
f9c34147
JR
37732009-01-01 Jason Rumney <jasonr@gnu.org>
3774
9acef61c 3775 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
3776 Don't block input, as per earlier xterm.c changes.
3777
f5497e45
AR
37782008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3779
3780 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3781 (ns_appkit_version_int): New function.
3782 (x-server-version): Use ns_appkit_version_int and follow 21+
3783 convention of returning 3 integers.
3784
c19cab20
KH
37852008-12-30 Kenichi Handa <handa@m17n.org>
3786
3787 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3788 (CHAR_SURROGATE_PAIR_P): New macro.
3789
3790 * font.h (struct font_driver): New member get_variation_glyphs.
3791
9acef61c 3792 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
3793 (Ffont_variation_glyphs): New function.
3794 (syms_of_font): Defsubr it.
3795
3796 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3797 ftfont_variation_glyphs.
3798 (setup_otf_gstring): New function.
3799 (ftfont_drive_otf): Use it.
3800 (ftfont_shape_by_flt): Handle variation selector.
3801 (ftfont_variation_glyphs): New function.
3802
28cd591f
MR
38032008-12-30 Martin Rudalics <rudalics@gmx.at>
3804
3805 * frame.c (Vemacs_iconified): Remove.
3806
7f714baf
JR
38072008-12-30 Jason Rumney <jasonr@gnu.org>
3808
3809 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3810 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3811
9d2d22ab
CY
38122008-12-30 Chong Yidong <cyd@stupidchicken.com>
3813
3814 * indent.c (Fvertical_motion): Don't advance iterator if we have
3815 reseated to the desired position.
3816
3817 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3818 checking for pos match.
3819
545312c2
KH
38202008-12-30 Kenichi Handa <handa@m17n.org>
3821
1ede3eb6
KH
3822 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3823 just get the low 8-bit of the code.
3824
545312c2
KH
3825 * font.c (font_intern_prop): Validate str as multibyte.
3826
bd7bbf29
DN
38272008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3828
31e0750e
DN
3829 * dispextern.h (struct face): Move lface and hash from the middle
3830 of bitfields.
3831
bd7bbf29
DN
3832 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3833
b5672e7c
DN
38342008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3835
3836 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3837 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3838 instead of intervals.h.
3839
d704470f
AS
38402008-12-26 Andreas Schwab <schwab@suse.de>
3841
3842 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3843 cons.
3844
54b33868
MR
38452008-12-26 Martin Rudalics <rudalics@gmx.at>
3846
3847 * textprop.c (Qminibuffer_prompt): New variable.
3848 (syms_of_textprop): Initialize it.
3849 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3850 in minibuffer-prompt face. (Bug#1662)
3851
40b615d6
JR
38522008-12-25 Jason Rumney <jasonr@gnu.org>
3853
3854 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3855
baae5c2d
JR
38562008-12-24 Jason Rumney <jasonr@gnu.org>
3857
3858 * ralloc.c (r_alloc_reset_variable): New function.
3859
3860 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 3861 record of what points where. (Bug#716)
baae5c2d 3862
a9051c88
DN
38632008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3864
3865 * minibuf.c (read_minibuf): Follow the non-interactive case when
3866 running as a daemon, before detaching.
3867
8b146312
AS
38682008-12-22 Andreas Schwab <schwab@suse.de>
3869
3870 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3871 * gtkutil.c (free_widget_value): Use xfree instead of free.
3872
56f2de10
MR
38732008-12-22 Martin Rudalics <rudalics@gmx.at>
3874
3875 * frame.c (delete_frame): New function derived from
3876 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3877 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3878 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3879 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3880 * frame.h: Extern delete_frame.
3881 * window.c (window_loop):
3882 * terminal.c (delete_terminal):
3883 * xterm.c (x_connection_closed):
3884 * xfns.c (Fx_hide_tip):
9acef61c 3885 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 3886
1fc200d6
JR
38872008-12-21 Jason Rumney <jasonr@gnu.org>
3888
3889 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3890 when character maps to .notdef character.
3891
5e252df2
SM
38922008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3893
3894 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3895
99b72cc4
JR
38962008-12-20 Jason Rumney <jasonr@gnu.org>
3897
3898 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 3899 a graphical frame on Windows. (Bug#1325)
99b72cc4 3900
acc49a52
JD
39012008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3902
3903 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3904
6ea15123
CY
39052008-12-20 Chong Yidong <cyd@stupidchicken.com>
3906
3907 * minibuf.c (Fread_buffer): Doc fix.
3908
b2dab6c8
JR
39092008-12-20 Jason Rumney <jasonr@gnu.org>
3910
54ea0c87 3911 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 3912 server name in UNC paths. (Bug#719)
54ea0c87 3913
b2dab6c8 3914 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 3915 charbuf. (Bug#1035)
b2dab6c8 3916
6d1921be
DN
39172008-12-19 Daniel Engeler <engeler@gmail.com>
3918
3919 * sysdep.c (serial_configure): Fix typo.
3920
53934c98
DN
39212008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3922
3923 * sysdep.c: Include alloca.h.
f4f634e8
DN
3924 (system_process_attributes): Add implementation for Solaris.
3925
3926 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 3927
06e111a6
DN
39282008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3929
3930 Reorganize implementation of Flist_system_processes and
3931 Fsystem_process_attributes. No functional changes.
3932 * process.c: Don't #include pwd.h, grp.h and limits.h.
3933 (Flist_system_processes): Just call list_system_processes.
3934 (Fsystem_process_attributes): Just call system_process_attributes.
3935 (procfs_list_system_processes, time_from_jiffies)
3936 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3937 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3938
3939 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3940 (list_system_processes): Rename from
3941 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3942 Provide a do nothing implementation.
3943 (system_process_attributes): Rename from
3944 procfs_list_system_processes.
3945 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 3946 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
3947
3948 * w32.c (list_system_processes): Rename from
3949 w32_list_system_processes.
3950 (system_process_attributes): Rename from
3951 w32_system_process_attributes.
3952
3953 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3954
3955 * process.h (w32_list_system_processes)
3956 (w32_system_process_attributes): Remove.
362654a6
JB
3957 (list_system_processes, system_process_attributes):
3958 New prototypes.
06e111a6 3959
6a705b23
KH
39602008-12-19 Kenichi Handa <handa@m17n.org>
3961
3962 * xfont.c (xfont_decode_coding_xlfd): New function.
3963 (xfont_encode_coding_xlfd): New function.
3964 (xfont_list_pattern): Decode XLFD by iso-8859-1.
3965 (xfont_list): Decode and encode XLFD by iso-8859-1.
3966 (xfont_match): Likewise.
3967 (xfont_list_family): Likewise.
3968 (xfont_open): Likewise.
3969
d66c0241 3970 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
3971 names are utf-8.
3972
d66c0241 3973 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
3974 names are utf-8.
3975
5a130941
JD
39762008-12-18 Jan Djärv <jan.h.d@swipnet.se>
3977
3978 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3979 changed.
bfd20325
JD
3980 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
3981 clicked on a detached tool bar button.
5a130941 3982
fd95644b
DN
39832008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3984
3985 * emacs.c (main): Print and error and exit when no data is read
3986 from the pipe.
3987
e6eee6ae
JR
39882008-12-17 Jason Rumney <jasonr@gnu.org>
3989
3990 * w32font.c (w32font_has_char): Always return -1.
3991
a35dd56b
KH
39922008-12-16 Kenichi Handa <handa@m17n.org>
3993
3994 * font.c (font_open_entity): Fix previous change.
3995
0e3635c2
DN
39962008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
3997
3998 * process.c: Include <limits.h>.
3999
d4835507 40002008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4001
4002 * font.c (font_update_drivers): Fix mistake in reconstructing the
4003 driver list.
4004
40052008-12-16 Chong Yidong <cyd@stupidchicken.com>
4006
4007 * font.c (font_clear_cache): Fix format of font cache data.
4008
e2cbc401
CY
40092008-12-15 Chong Yidong <cyd@stupidchicken.com>
4010
4011 * xftfont.c (xftfont_open): Free Xft font pattern if
4012 XftFontOpenPattern fails.
4013
4014 * xterm.c (x_free_frame_resources): Remove extraneous call to
4015 free_frame_faces.
4016
b131d535
CY
40172008-12-13 Chong Yidong <cyd@stupidchicken.com>
4018
4019 * xterm.c (x_delete_display): Move xim_close_dpy call to
4020 x_delete_terminal.
4021 (x_delete_terminal): Call xim_close_dpy.
4022
e6df5336
JR
40232008-12-13 Jason Rumney <jasonr@gnu.org>
4024
4025 * w32font.c (intern_font_name): New function.
4026 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4027 (w32font_open_internal, Fx_select_font): Decode font name.
4028 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4029
4030 * w32font.h (intern_font_name): Declare new function.
4031
4032 * w32uniscribe.c (add_opentype_font_name_to_list):
4033 Use intern_font_name.
4034
20d68145
CY
40352008-12-13 Chong Yidong <cyd@stupidchicken.com>
4036
9f2554de
CY
4037 * frame.c (Fdelete_frame): Call free_font_driver_list.
4038
3d9bec9a
CY
4039 * font.c (free_font_driver_list): Implement missing function.
4040
20d68145
CY
4041 * w32term.c (w32_term_init): Don't initialize the image cache
4042 here; it will be done in init_frame_faces.
4043
4044 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4045 (struct x_display_info): Remove unused member null_pixel. New
4046 member xim_callback_data.
4047
4048 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4049 (xim_initialize): Save pointer to callback function data.
4050 (xim_close_dpy): Free callback function data. Call XCloseIM,
4051 reverting 2008-11-04 change by David Smith.
4052 (x_term_init): Don't initialize the image cache here; it will be
4053 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4054 (x_delete_display): Free x_dnd_atoms member.
4055
96f9306b
KH
40562008-12-13 Kenichi Handa <handa@m17n.org>
4057
6dec9044
JB
4058 * font.c (font_rescale_ratio): Moved from xfaces.c.
4059 Argument type changed. Handle a font-spec too.
96f9306b 4060 (font_score): Check Vface_font_rescale_alist.
6dec9044 4061 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4062
4063 * xfaces.c (font_rescale_ratio): Moved to font.c.
4064
8d5b4964
CY
40652008-12-13 Chong Yidong <cyd@stupidchicken.com>
4066
4067 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4068
e6df5336
JR
40692008-12-12 Jason Rumney <jasonr@gnu.org>
4070
4071 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4072 Vwindow_system_version to the real w32 major version.
4073
97c6058a
DN
40742008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4075
4076 * term.c (init_tty): Move setting the terminal name before the
4077 potential user: maybe_fatal.
4078
ec4e88d7
CY
40792008-12-11 Chong Yidong <cyd@stupidchicken.com>
4080
d4835507
JB
4081 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4082 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4083
b4233ec9
JR
40842008-12-11 Jason Rumney <jasonr@gnu.org>
4085
8ec71e23 4086 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4087 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4088
b4233ec9 4089 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4090 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4091
011a0143
JB
40922008-12-11 Juanma Barranquero <lekktu@gmail.com>
4093
4094 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4095
3c309f34
JB
40962008-12-11 Juanma Barranquero <lekktu@gmail.com>
4097
4098 * process.c (Fsystem_process_attributes, syms_of_process):
4099 Fix typo in name of Ssystem_process_attributes.
4100 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4101
fedc6ab5
JB
41022008-12-11 Juanma Barranquero <lekktu@gmail.com>
4103
4104 * syntax.c (Fmodify_syntax_entry): Doc fix.
4105
ba3de0e8
JB
41062008-12-10 Juanma Barranquero <lekktu@gmail.com>
4107
4108 * font.c (Ffont_spec): Move usage to end of docstring.
4109
174f1c74
JR
41102008-12-10 Jason Rumney <jasonr@gnu.org>
4111
4112 * w32font.c (Qcham): New symbol.
4113 (font_supported_scripts): Add cham, and comments for other new
4114 scripts in bitfield from OpenType spec.
9d32f818
JR
4115 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4116 contain characters beyond the bmp.
174f1c74 4117
7b649478
KH
41182008-12-10 Kenichi Handa <handa@m17n.org>
4119
4120 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4121 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4122 Qunicode_sip.
4123
2133e2d1
JB
41242008-12-10 Juanma Barranquero <lekktu@gmail.com>
4125
4126 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4127 (Fcoding_system_put): Use QCdefault_char.
4128 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4129
9af886ee
CY
41302008-12-09 Chong Yidong <cyd@stupidchicken.com>
4131
74d819eb
CY
4132 * xftfont.c (syms_of_xftfont): Fix typo.
4133
4ccfa1c0 4134 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4135
7c19d3ae
DN
41362008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4137
4138 * emacs.c (main): Close daemon_pipe on exec.
4139
567826bb
CY
41402008-12-08 Chong Yidong <cyd@stupidchicken.com>
4141
4142 * termchar.h (struct tty): New members termcap_term_buffer and
4143 termcap_strings_buffer.
4144
4145 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4146 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4147 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4148 All callers changed.
4149 (init_tty): Store termcap data and string buffers in new struct
4150 tty members termcap_term_buffer and termcap_strings_buffer.
4151 (delete_tty): Free them.
4ccfa1c0 4152 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4153
aa96c42b
SZ
41542008-12-07 Seiji Zenitani <zenitani@mac.com>
4155
4156 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4157 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4158
b7e1d896
CY
41592008-12-06 Chong Yidong <cyd@stupidchicken.com>
4160
4161 * coding.c (make_conversion_work_buffer): Disable buffer
4162 modification hooks in the work buffer.
4163
b5ec91a5
EZ
41642008-12-05 Eli Zaretskii <eliz@gnu.org>
4165
4166 * process.c (procfs_system_process_attributes): If `nread' has a
4167 negative value, assign zero to it.
4168
a5d2a52b
CY
41692008-12-05 Chong Yidong <cyd@stupidchicken.com>
4170
68c5540b 4171 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4172
7bf1bb21
KH
41732008-12-05 Kenichi Handa <handa@m17n.org>
4174
4175 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4176 second character is a combining character.
4177
2fdc7d00
EZ
41782008-12-05 Eli Zaretskii <eliz@gnu.org>
4179
4180 * process.c (procfs_system_process_attributes): Don't use cmd,
4181 cmdsize, and q without initializing them first.
4182
bf6bfba8
JR
41832008-12-04 Jason Rumney <jasonr@gnu.org>
4184
4185 * w32font.c (w32font_draw): Initialize orig_clip before getting
4186 it, and delete it when finished.
4187
a3b1a468
DN
41882008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4189
4190 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4191 case when running as a daemon before detaching.
4192
8b8be8eb
JB
41932008-12-03 Juanma Barranquero <lekktu@gmail.com>
4194
805f2638 4195 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4196
b1bde622
KH
41972008-12-03 Kenichi Handa <handa@m17n.org>
4198
e500c47d
KH
4199 * font.c (font_at): Set `multibyte' at first.
4200
ca516334
KH
4201 * coding.c (decode_coding_charset): Check type of an element of
4202 vector VALIDS.
7bf1bb21 4203 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4204
4ccfa1c0 4205 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4206 (font_for_char): Likewise.
4207
1e5ecd37
CY
42082008-12-03 Chong Yidong <cyd@stupidchicken.com>
4209
d5b01609 4210 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4211 (font_update_lface): Handle fonts with corrupted size specs,
4212 i.e. non-int and non-float.
d5b01609 4213
11e3a6e4 4214 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4215 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4216 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4217
ab06788b
CY
4218 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4219
1e5ecd37 4220 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4221 underline_minimum_offset for underline position.
1e5ecd37 4222
63c125ab
DN
42232008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4224
4225 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4226
4227 * character.c (c_string_width): Specify the type for LEN.
4228
3a8406e1
KH
42292008-12-03 Kenichi Handa <handa@m17n.org>
4230
4ccfa1c0 4231 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4232 (decode_coding_utf_8): Likewise.
4ccfa1c0 4233 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4234 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4235
651df7d9
CY
42362008-12-02 Chong Yidong <cyd@stupidchicken.com>
4237
4238 * keyboard.c (make_lispy_position): Only use PT if the selected
4239 window is current.
4240
1f625c6c
AS
42412008-12-02 Andreas Schwab <schwab@suse.de>
4242
f7741ce9
AS
4243 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4244
1f625c6c
AS
4245 * doprnt.c (doprnt1): Fix size of charbuf.
4246
92bc2678
CY
42472008-12-02 Chong Yidong <cyd@stupidchicken.com>
4248
4249 * keyboard.c (timer_check): Revert last change.
4250
93b9e8cc
JB
42512008-12-02 Juanma Barranquero <lekktu@gmail.com>
4252
4253 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4254
fd7a37d5
JB
42552008-12-01 Juanma Barranquero <lekktu@gmail.com>
4256
4257 * makefile.w32-in: Update dependencies.
4258 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4259
c115043b
AS
42602008-12-01 Andreas Schwab <schwab@suse.de>
4261
4262 * font.c (register_font_driver): Use xmalloc.
4263 (font_put_frame_data): Likewise.
4264
f5668d2a
CY
42652008-12-01 Chong Yidong <cyd@stupidchicken.com>
4266
860d96be
CY
4267 * xfaces.c (realize_x_face): Make abort condition clearer.
4268
f5668d2a
CY
4269 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4270
379c17e7
CY
42712008-11-30 Chong Yidong <cyd@stupidchicken.com>
4272
4273 * keyboard.c (timer_check): After a timer runs, ensure that the
4274 selected window's buffer is current.
4275
35f36d65
JB
42762008-11-30 Juanma Barranquero <lekktu@gmail.com>
4277
f952c61c
JB
4278 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4279 It was accidentally restored by the Unicode merge.
4280
35f36d65
JB
4281 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4282
b23077df
JB
42832008-11-29 Juanma Barranquero <lekktu@gmail.com>
4284
4285 * w32proc.c: Include "coding.h".
4286 (Fw32_short_file_name): Encode filename passed to Windows API.
4287 (Fw32_long_file_name): Encode filename passed to Windows API and
4288 decode back the result. (Bug#1433)
4289
b8ebe9dd
KH
42902008-11-29 Kenichi Handa <handa@m17n.org>
4291
8cc53f96
KH
4292 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4293 not before accessing it.
4294
b8ebe9dd
KH
4295 * charset.c (Fdefine_charset_internal): After calculating
4296 min_char, max_char, and fastmap, copy the charset structure again.
4297 (encode_char): Fix the previous change.
4298
59bc82c0
SZ
42992008-11-28 Seiji Zenitani <zenitani@mac.com>
4300
4301 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4302
4303 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4304
4305 * nsterm.m (x_set_frame_alpha): New function.
4306
32247e3d
EZ
43072008-11-27 Eli Zaretskii <eliz@gnu.org>
4308
4309 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4310
b003e5ff
JB
43112008-11-27 Juanma Barranquero <lekktu@gmail.com>
4312
4313 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4314 pointer to check_face_name.
4315
708550f5
KH
43162008-11-27 Kenichi Handa <handa@m17n.org>
4317
4318 * category.h (SET_CATEGORY_SET): Call set_category_set.
4319 (set_category_set): Extern it.
4320
4321 * category.c (hash_get_category_set): New function.
4322 (Fmodify_category_entry): Adjusted for the change of
4323 char_table_ref_and_range. Call hash_get_category_set to get a
4324 category set to store in the table.
4325
4326 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4327 Funify_charset.
4328
2ae37cf0 4329 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4330 (DECODE_CHAR): Check if the decoder vector is ready.
4331 (ENCODE_CHAR): Check if the encoder char-table is ready.
4332 (maybe_unify_char): Extern it.
4333
4334 * charset.c (Vchar_unified_charset_table): Delete it.
4335 (inhibit_load_charset_map): New variable.
4336 (temp_charset_work): New variable.
4337 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4338 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4339 New macros.
4340 (load_charset_map): Meaning of control_flag changed. If
4341 inhibit_load_charset_map is nonzero, setup a table in
4342 temp_charset_work.
4343 (load_charset): New argument control_flag.
4344 (map_charset_for_dump): New function.
4345 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4346 map_charset_for_dump.
4347 (Fdefine_charset_internal): If the charset method is MAP, load
4348 mapping tables by calling load_charset.
4349 (Funify_charset): Don't load a mapping table but directly set
4350 Vchar_unify_table.
4351 (maybe_unify_char): New function.
4352 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4353 Handle the case of inhibit_load_charset_map being nonzero.
4354 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4355 Handle the case of inhibit_load_charset_map being nonzero.
4356 (Fclear_charset_maps): Just free temp_charset_work.
4357 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4358 variable.
4359
4360 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4361 change of char_table_ref_and_range.
4362 (char_table_ref_and_range): Change the meaning of argument FROM
4363 and TO. Now the caller must provide initial values for *FROM
4364 and *TO.
4365
4366 * fontset.c (fontset_add): Adjusted for the change of
4367 char_table_ref_and_range.
4368 (fontset_get_font_group): Likewise.
4369 (Ffontset_info): Likewise.
4370
4371 * keymap.c (describe_vector): Adjusted for the change of
4372 char_table_ref_and_range. For char-table, put boundary between
4373 non-ASCII and 8-bit characters.
4374
4375 * print.c (print_object): For bool-vector, delete unnecessary
4376 check of ASCII_BYTE_P.
4377
9196133b
JR
43782008-11-26 Jason Rumney <jasonr@gnu.org>
4379
4380 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4381 leading in font height. (Bug#879)
9196133b 4382
9f688acf
GM
43832008-11-26 Glenn Morris <rgm@gnu.org>
4384
4385 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4386 redefinition with ifdef. (Bug#1383)
4387
90d19aff
AR
43882008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4389
4390 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4391
4ccfa1c0 43922008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4393
4394 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4395 New EmacsView methods.
4396 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4397 Fixes bug #1048,1357,1414.
4398
43992008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4400
4401 Fix bug #1362.
4402 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4403 is not an indexed color.
4404 * nsterm.m (free_indexed_color): Add argument checking.
4405 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4406
e7d5ecb3
CY
44072008-11-24 Chong Yidong <cyd@stupidchicken.com>
4408
4409 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4410 Document confirm-after-completion value for
4411 minibuffer-completion-confirm.
4412
c285743c
JR
44132008-11-24 Jason Rumney <jasonr@gnu.org>
4414
4415 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4416 warning.
4417
b0857706
JR
44182008-11-23 Jason Rumney <jasonr@gnu.org>
4419
4420 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4421 restored before returning.
4422
4423 * w32font.c (check_face_name): New function.
4424 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4425 fonts. (Bug#642)
b0857706 4426
ee50ff07
MR
44272008-11-22 Martin Rudalics <rudalics@gmx.at>
4428
4429 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4430 confirm-nonexistent-file-or-buffer in doc-string.
4431
b8ff72fa
SM
44322008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4433
4434 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4435 Fix copy/paste typo. Add checks.
4436
cee53ed4
KH
44372008-11-21 Kenichi Handa <handa@m17n.org>
4438
4439 * coding.c (detect_coding_iso_2022): Reject invalid composition
4440 sequence.
4441 (DECODE_COMPOSITION_START): If the current source is the last
4442 block, and the current composition doesn't end, regard this
4443 sequence as invalid.
4444 (decode_coding_iso_2022): Handle invalid composition sequence.
4445
f6ef1e65
MR
44462008-11-20 Martin Rudalics <rudalics@gmx.at>
4447
4448 * window.c (coordinates_in_window): Don't return
4449 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4450 line when the window is not the rightmost one. (Bug#1372)
4451
e08b1705
MR
44522008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4453
4454 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4455
ad98e89f
EZ
44562008-11-15 Eli Zaretskii <eliz@gnu.org>
4457
4458 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4459 and bright_bg if noninteractive is non-zero.
4460
fb098a4b
CY
44612008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4462
4463 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4464 x_draw_glyph_string_background.
4465
4466 * w32term.c (x_draw_glyph_string): Likewise.
4467
ce952b6e
CY
44682008-11-15 Chong Yidong <cyd@stupidchicken.com>
4469
4470 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4471 the next glyph string once past the overhang width.
4472
4473 * nsterm.m (ns_draw_glyph_string): Likewise.
4474
4475 * w32term.c (x_draw_glyph_string): Likewise.
4476
26ea7079
CY
44772008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4478
4479 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4480 double file close.
4481
1c33c906
MR
44822008-11-14 Martin Rudalics <rudalics@gmx.at>
4483
4484 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4485 dedicated status of window before attempting to display another
4486 buffer in it.
4487
8fc29035
JB
44882008-11-14 Juanma Barranquero <lekktu@gmail.com>
4489
4490 * msdos.c (Fmsdos_long_file_names):
4491 (syms_of_msdos) <dos-unsupported-char-glyph>:
4492 * dosfns.c (Fint86): Fix typos in docstrings.
4493
55fb4286
EZ
44942008-11-14 Eli Zaretskii <eliz@gnu.org>
4495
4496 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4497
3fda0315
KY
44982008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4499
4500 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4501
7e849c17
CY
45022008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4503
4504 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4505
4506 * frame.h: Negative alpha means "don't touch".
4507
4508 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4509
4510 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4511
b9fd67bd
DN
45122008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4513
4514 * hftctl.c:
4515 * chpdef.h:
4516 * acldef.h: Remove files used only for systems no longer supported.
4517
4518 * Makefile.in: Fix .o alphabetical ordering.
4519 (hftctl.o): Remove dependency, file removed.
4520 (keymap.o, print.o): Depend on charset.h.
4521
d5998e03
KH
45222008-11-10 Kenichi Handa <handa@m17n.org>
4523
2ae37cf0 4524 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4525
be70e183
CY
45262008-11-08 Chong Yidong <cyd@stupidchicken.com>
4527
4528 * dired.c (file_name_completion): If completion_ignore_case is
4529 enabled, ignore case when checking completion-regexp-list.
4530
7cf94eac
EZ
45312008-11-08 Eli Zaretskii <eliz@gnu.org>
4532
4533 * vm-limit.c (get_lim_data): Fix last change.
4534
ee107a89
KH
45352008-11-08 Kenichi Handa <handa@m17n.org>
4536
4537 * character.c (Fget_byte): New function.
4538 (syms_of_character): Defsubr Fget_byte.
4539
5fd15622
CY
45402008-11-07 Chong Yidong <cyd@stupidchicken.com>
4541
4542 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4543 cursor position is valid after scrolling.
4544
13d62fad
JB
45452008-11-06 Juanma Barranquero <lekktu@gmail.com>
4546
4547 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4548
a1dd2936
GM
45492008-11-06 Glenn Morris <rgm@gnu.org>
4550
4551 * xterm.c (handle_one_xevent): Don't let popup menus cause
4552 mouse-autoselect-window related window switching. (Bug#1261)
4553
860cd236
CY
45542008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4555
4556 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4557
653a3150
AS
45582008-11-04 Andreas Schwab <schwab@suse.de>
4559
4560 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4561
870f5cac
CY
45622008-11-03 Chong Yidong <cyd@stupidchicken.com>
4563
4564 * xfns.c (Fx_wm_set_size_hint): New function.
4565
1e02f3cb
MR
45662008-11-03 Martin Rudalics <rudalics@gmx.at>
4567
4568 * textprop.c (Fprevious_single_char_property_change): Return 0
4569 when there's no change in a string. (Bug#1301)
4570
e630dfc6
MR
45712008-11-02 Martin Rudalics <rudalics@gmx.at>
4572
4573 * frame.c (do_switch_frame): New argument NORECORD passed to
4574 Fselect_window.
4575 (Fselect_frame): New argument NORECORD passed to
4576 do_switch_frame.
4577 (Fset_frame_selected_window): New argument NORECORD passed to
4578 Fselect_frame.
4579 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4580 in call of do_switch_frame.
4581 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4582 Handle NORECORD argument in call of Fselect_frame.
4583 * lisp.h (do_switch_frame, Fselect_frame)
4584 (Fset_frame_selected_window): Adjust declarations.
4585 * window.c (select_frame_norecord): New function.
4586 (run_window_configuration_change_hook): Use it and call
4587 Fselect_frame with NORECORD set.
4588 (Fselect_window): Pass NORECORD to Fselect_frame.
4589 (Fset_window_configuration): Handle NORECORD argument in call of
4590 do_switch_frame.
4591 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4592 Fset_frame_selected_window.
4593 * keyboard.c (command_loop_1): Handle NORECORD in call of
4594 Fselect_frame (currently ifdefd).
4595
9020b223
GM
45962008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4597
4598 * emacs.c (USAGE2): Untabify.
4599
793ffee8
SM
46002008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4601
4602 * composite.c (fill_gstring_header): Fix copy/paste typo.
4603
ab6d1131
MR
46042008-10-31 Martin Rudalics <rudalics@gmx.at>
4605
4606 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4607 (Fother_window): Rename argument and rewrite doc-string.
4608 (select_window_norecord): Fix return value. (Bug#1276)
4609
601a9cf1
JB
46102008-10-30 Juanma Barranquero <lekktu@gmail.com>
4611
4612 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4613 new frames overriding foreground for tooltips. Based on similar patch
4614 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4615
813b0652
CY
46162008-10-29 Chong Yidong <cyd@stupidchicken.com>
4617
4618 * emacs.c (Fdaemon_initialized): Initialize nfd.
4619
4414f58f
MR
46202008-10-29 Martin Rudalics <rudalics@gmx.at>
4621
4622 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4623 (Fwindow_text_height): Clarify doc-strings.
4624 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4625 doc-string of window-scroll-functions.
4626
ecdcaa09
RS
46272008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4628
4629 * category.c (syms_of_category): Fix typo in docstring.
4630
23fe745a
JB
46312008-10-28 Juanma Barranquero <lekktu@gmail.com>
4632
4633 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4634 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4635 Fix typos in docstrings.
4636
ff808935
DN
46372008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4638
4639 * emacs.c (daemon_pipe): Make non-static.
4640 (IS_DAEMON): Move definition ...
4641 * lisp.h (IS_DAEMON): ... here.
4642 (daemon_pipe): Declare.
4643 (is_daemon): Remove.
4644 * dispnew.c (init_display): Use IS_DAEMON.
4645
fc012771
SM
46462008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4647
4648 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4649 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4650
4651 * emacs.c (is_daemon): Remove.
4652 (main): Don't set is_daemon.
4653 (IS_DAEMON): New macro.
4654 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4655 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4656 parent exits.
4657 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4658
d8bdbe6f
CY
46592008-10-27 Chong Yidong <cyd@stupidchicken.com>
4660
d1a072bf
CY
4661 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4662 over-sized glyph, draw it with the default glyph width.
4663
e2e325aa
CY
4664 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4665 glyph, draw it with the default glyph width.
4666
4667 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4668 glyph, draw it with the default glyph width.
4669
d8bdbe6f
CY
4670 * xdisp.c (try_scrolling): When computing the distance from the
4671 scroll margin to PT, try moving some distance past the window
4672 bottom before giving up.
4673
7bfac547
MR
46742008-10-27 Martin Rudalics <rudalics@gmx.at>
4675
4676 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4677 (Fset_window_buffer): Explain in doc-string that a window can be
4678 "strongly" dedicated to its buffer.
4679
4ff029f6
DN
46802008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4681
4682 * emacs.c (daemon_name): New variable.
4683 (main): Deal with --daemon=SERVER_NAME.
4684 (Fdaemonp): Return a name if one was passed to --daemon.
4685
5790ef40
DN
46862008-10-26 Romain Francoise <romain@orebokech.com>
4687
f9bd0df9 4688 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4689 (main): Create a pipe before forking, make the parent exit only after
4690 the child has closed its end of the pipe. Move closing the
4691 descriptors ...
4692 (Fdaemon_initialized): ... here. New function.
4693
f5385255
SM
46942008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4695
4d632321
SM
4696 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4697 the previous unoptimized table.
4698
f5385255
SM
4699 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4700 the distinction between non-nil and non-t value of `dedicated'.
4701
6c56a0f3
CY
47022008-10-25 Chong Yidong <cyd@stupidchicken.com>
4703
4704 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4705 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4706
fec89261
MR
47072008-10-25 Martin Rudalics <rudalics@gmx.at>
4708
4709 * window.c (Fget_buffer_window, Fdelete_windows_on)
4710 (Freplace_buffer_in_windows): Make buffer argument optional and
4711 rename to buffer_or_name.
4712
34fcddd0
CY
47132008-10-24 Chong Yidong <cyd@stupidchicken.com>
4714
f5385255
SM
4715 * xdisp.c (handle_single_display_spec, handle_display_prop):
4716 Undo 2005-05-16 change.
34fcddd0
CY
4717 (handle_stop): Pop iterator if it's loaded with an empty string.
4718 (get_overlay_strings_1): Don't save iterator if it's loaded with
4719 an empty string (bug#1201).
4720
064766f2
KH
47212008-10-24 Kenichi Handa <handa@m17n.org>
4722
4723 * ftfont.c (ftfont_otf_features): Fix previous change.
4724 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4725 calling ftfont_otf_features.
4726
f9bd0df9 47272008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4728
4729 * font.c (font_match_p): Fix for the case that a vector of
4730 characters is in script-representative-chars.
4731
1dae9197
MA
47322008-10-24 Michael Albinus <michael.albinus@gmx.de>
4733
4734 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4735 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4736 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4737 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4738 macro. (Bug#1186).
4739
f9bd0df9 47402008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4741
4742 * s/sol2-10.h: New file.
4743
878a4584
JB
47442008-10-23 Juanma Barranquero <lekktu@gmail.com>
4745
4746 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4747 poor beast has survived 9+ years and the jump from xterm.c!).
4748
cd265ca6
MR
47492008-10-23 Martin Rudalics <rudalics@gmx.at>
4750
4751 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4752 Reword doc-string.
f5385255 4753 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4754
472a4dc9
JB
47552008-10-23 Juanma Barranquero <lekktu@gmail.com>
4756
4757 * character.c (syms_of_character) <script-representative-chars>:
4758 <unicode-category-table>: Doc fixes.
4759
159bd5a2
NF
47602008-10-23 Noah Friedman <friedman@splode.com>
4761
4762 * coding.c (make_conversion_work_buffer): Check that
4763 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4764 Fget_buffer_create.
4765
49f9c344
KH
47662008-10-23 Kenichi Handa <handa@m17n.org>
4767
4768 * font.c (font_add_log): Check the values of extra properties.
4769
12bb3111
MR
47702008-10-22 Martin Rudalics <rudalics@gmx.at>
4771
4772 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4773 Reword doc-string.
4774 (Fset_window_parameter): Use NILP.
4775 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 4776 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 4777
bbeb4e99
JB
47782008-10-22 Juanma Barranquero <lekktu@gmail.com>
4779
4780 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4781
47822008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
4783
4784 * nsfns.m (ns_appkit_version): New function.
4785 (x-server-version): Use it.
4786 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4787 (x-server-vendor): Don't check_ns().
4788
4789 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4790
a9b555d3
JB
47912008-10-22 Juanma Barranquero <lekktu@gmail.com>
4792
4793 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4794 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4795
4626499f
KH
47962008-10-22 Kenichi Handa <handa@m17n.org>
4797
e3681952
KH
4798 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4799 scripts.
4800
4626499f
KH
4801 * category.c (word_boundary_p): Check scripts instead of charset.
4802 Handle nil value in word-separating-categories and
4803 word-combining-categories.
4804 (syms_of_category): Fix docstrings of word-separating-categories
4805 and word-combining-categories.
4806
1560f91a
EZ
48072008-10-21 Eli Zaretskii <eliz@gnu.org>
4808
4809 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4810 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4811
f4668441
MR
48122008-10-21 Martin Rudalics <rudalics@gmx.at>
4813
4814 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4815 Rename arg "buffer" to "buffer_or_name".
4816 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4817 it optional.
4818 (no_switch_window): Remove since the return value is not used.
a9b555d3 4819 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4820 Consider window as dedicated when Fwindow_dedicated_p returns a
4821 non-nil value.
4822 * lisp.h: Remove prototype for no_switch_window.
4823
fd75ddb2
JD
48242008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4825
4826 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4827 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4828
07295713
KH
48292008-10-21 Kenichi Handa <handa@m17n.org>
4830
4831 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4832 check Vlatin_extra_code_table.
4833
712adc82
EZ
48342008-10-20 Eli Zaretskii <eliz@gnu.org>
4835
4836 * fileio.c (Fset_file_modes): Doc fix.
4837
f549eb0b
MA
48382008-10-19 Michael Albinus <michael.albinus@gmx.de>
4839
4840 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4841 in arrays.
4842
aac0c6e3
MR
48432008-10-19 Martin Rudalics <rudalics@gmx.at>
4844
4845 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4846 Mention kill-buffer in doc-string.
4847 (Fset_window_buffer): Reinsert tem check removed in last commit.
4848 (Fenlarge_window, Fshrink_window): Have argument names and
4849 doc-string follow Elisp manual more closely.
4850
48512008-10-18 Eli Zaretskii <eliz@gnu.org>
4852
4853 * fileio.c (Fset_file_modes): Doc fix.
4854
48552008-10-18 Martin Rudalics <rudalics@gmx.at>
4856
4857 * window.c (Fwindow_width, Fset_window_start)
4858 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
4859 (Fdelete_windows_on, Freplace_buffer_in_windows):
4860 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
4861 (Fwindow_dedicated_p): Make window argument optional.
4862 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4863 (Fset_window_buffer): Respect any non-nil dedicated value for
4864 window. Rename "buffer" argument to "buffer_or_name".
4865
48662008-10-18 Ulrich Mueller <ulm@gentoo.org>
4867
4868 * m/sh3.h: New file, machine description for SuperH.
4869
48702008-10-17 Martin Rudalics <rudalics@gmx.at>
4871
4872 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4873
48742008-10-17 Kenichi Handa <handa@m17n.org>
4875
4876 * ftfont.c (ftfont_otf_features): Fix indexing
4877 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4878
48792008-10-16 Magnus Henoch <mange@freemail.hu>
4880
4881 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4882 (Fdbus_call_method_asynchronously): Ditto.
4883 This change makes C-h f display the argument list.
4884
48852008-10-16 Chong Yidong <cyd@stupidchicken.com>
4886
4887 * fileio.c (Fexpand_file_name): Doc fix.
4888
4889 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4890 of :foreground and :background equivalent to unspecified (20.x
4891 compatibility).
4892
48932008-10-15 Eli Zaretskii <eliz@gnu.org>
4894
4895 * buffer.c (syms_of_buffer): Doc fix.
4896
48972008-10-14 Kenichi Handa <handa@m17n.org>
4898
4899 * font.c (font_clear_prop): When clearing font width, clear the
4900 average width field too.
4901
49022008-10-12 Andreas Schwab <schwab@suse.de>
4903
4904 * ftfont.c (ftfont_shape_by_flt): Make static.
4905 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4906
4907 * font.c: Don't include <m17n-flt.h>.
4908
49092008-10-10 Eli Zaretskii <eliz@gnu.org>
4910
4911 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4912
49132008-10-09 Eli Zaretskii <eliz@gnu.org>
4914
4915 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4916 away code.
4917
49182008-10-09 Chong Yidong <cyd@stupidchicken.com>
4919
4920 * dispnew.c (update_text_area): Avoid looping due to large glyph
4921 overhangs (bug#1070).
4922
49232008-10-09 Kenichi Handa <handa@m17n.org>
4924
4925 * fontset.c (face_for_char): If face->fontset is negative, just
4926 return ascii_face.
4927
f5385255
SM
4928 * font.c (font_delete_unmatched): Fix previous change.
4929 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
4930
49312008-10-09 Martin Rudalics <rudalics@gmx.at>
4932
4933 * frame.c (Fraise_frame): On text-only terminals select frame in
4934 order to make it visible. (Bug#1061)
4935
49362008-10-08 Chong Yidong <cyd@stupidchicken.com>
4937
4938 * fontset.c (fontset_find_font): Check frame validity.
4939
49402008-10-07 Chong Yidong <cyd@stupidchicken.com>
4941
a9b555d3 4942 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
4943 (xg_display_close): Allow Emacs to close all displays (bug#985).
4944
49452008-10-06 Andreas Schwab <schwab@suse.de>
4946
f5385255 4947 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
4948
49492008-10-06 Chong Yidong <cyd@stupidchicken.com>
4950
f5385255 4951 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 4952
a9b555d3 4953 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
4954
4955 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4956 during initialization.
4957
49582008-10-04 Eli Zaretskii <eliz@gnu.org>
4959
4960 * xdisp.c (redisplay_internal): If frame switched, redisplay the
4961 whole thing on MSDOS frames as well as on a TTY.
4962
4963 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4964 well as for TTY.
4965 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4966 well as on a TTY.
4967
4968 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4969 as well as for TTY.
4970
4971 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4972
4973 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4974 MSDOS frames as well.
4975
49762008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4977
4978 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4979 correct arguments.
b71ac3dd 4980 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
4981
49822008-10-03 Glenn Morris <rgm@gnu.org>
4983
4984 * emacs.c (USAGE1): Add --daemon.
4985
49862008-10-02 Eli Zaretskii <eliz@gnu.org>
4987
4988 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
4989 100, so it's in percents as advertised.
4990
49912008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4992
4993 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
4994 (ns_output.current_cursor, ns_output.desired_cursor)
4995 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
4996 (FRAME_NEW_CURSOR_COLOR): Remove.
4997
4998 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 4999 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5000 enumeration (HOLLOW_BOX_CURSOR, etc.).
5001
5002 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5003 (draw_window_cursor): Simplify code.
f5385255
SM
5004 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5005 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5006 updates manually.
a9b555d3
JB
5007 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5008 Use core Emacs cursor types.
aac0c6e3 5009
b8ff72fa 5010 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5011
50122008-10-02 Martin Rudalics <rudalics@gmx.at>
5013
5014 * process.c (Faccept_process_output): Fix doc-string.
5015
50162008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5017
5018 * gmalloc.c (__sbrk): Also define for uClibc.
5019
5020 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5021 for uClibc.
5022
50232008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5024
5025 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5026 styles.
5027 (nsfont_open): Reenable the cache.
5028
50292008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5030
5031 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5032 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5033
50342008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5035
5036 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5037 a suspended terminal.
5038
50392008-09-30 Michael Albinus <michael.albinus@gmx.de>
5040
5041 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5042
50432008-09-30 Eli Zaretskii <eliz@gnu.org>
5044
5045 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5046
50472008-09-30 Chong Yidong <cyd@stupidchicken.com>
5048
5049 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5050 in a continued line coincides with a line beginning.
5051
50522008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5053
5054 * nsfont.m (nsfont_trait_distance): Fix bug.
5055 (nsfont_list): Return a list rather than a vector (syncs with Handa
5056 changes of 2008-05-14).
5057 (nsfont_open): Improve logging.
5058
50592008-09-29 Andreas Schwab <schwab@suse.de>
5060
5061 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5062
50632008-09-28 Martin Rudalics <rudalics@gmx.at>
5064
5065 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5066 name as char-resolve-modifiers.
5067 Reported by: Markus Triska <markus.triska@gmx.at>
5068
50692008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5070
5071 * dispnew.c (init_display): Return earlier when running as a daemon.
5072
50732008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5074
5075 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5076
50772008-09-27 Eli Zaretskii <eliz@gnu.org>
5078
5079 * composite.c (Fcomposition_get_gstring)
5080 (Fcompose_region_internal, Fcompose_string_internal)
5081 (Ffind_composition_internal): Doc fix.
5082 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5083 (syms_of_composite) <auto-composition-function>: Doc fix.
5084 (syms_of_composite) <composition-function-table>: Doc fix.
5085
50862008-09-25 Chong Yidong <cyd@stupidchicken.com>
5087
5088 * search.c (wordify): New argument for lax word-ends.
5089 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5090
50912008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5092
5093 * lisp.h (is_daemon): Declare.
5094 * dispnew.c (init_display): Do not try to initialize the terminal
5095 when running as a daemon.
5096
50972008-09-22 Chong Yidong <cyd@stupidchicken.com>
5098
5099 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5100 x_display_pixel_height.
5101
51022008-09-22 Martin Rudalics <rudalics@gmx.at>
5103
5104 * undo.c (record_point): Don't call Fundo_boundary for first
5105 change. (Bug#731)
5106
51072008-09-22 Juanma Barranquero <lekktu@gmail.com>
5108
5109 * emacs.c (Fdaemonp): Doc fix.
5110
51112008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5112
5113 * emacs.c (main): Place #ifdef in the proper place.
5114
51152008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5116
5117 * emacs.c (standard_args): Add --daemon.
5118 (main): Disconnect from the terminal when --daemon is passed.
5119 (is_daemon): New variable.
5120 (Fdaemonp): New function.
5121 (syms_of_emacs): Defsubr it.
5122
51232008-09-20 Chong Yidong <cyd@stupidchicken.com>
5124
5125 * xdisp.c (get_next_display_element): Handle string display
5126 correctly when checking for the end of a box run.
5127
51282008-09-20 Glenn Morris <rgm@gnu.org>
5129
5130 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5131 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5132 (Frename_file): Avoid copying to trash if a rename involves
5133 a delete. (Bug#964).
5134
51352008-09-20 Eli Zaretskii <eliz@gnu.org>
5136
5137 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5138 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5139 frames as well as termcap frames.
5140 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5141 get_named_tty.
5142
51432008-09-19 Eli Zaretskii <eliz@gnu.org>
5144
5145 * process.c (procfs_system_process_attributes): Fix cmdline in
5146 case /proc/PID/cmdline is empty.
5147
5148 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5149 x_display_pixel_height.
5150
51512008-09-19 Juanma Barranquero <lekktu@gmail.com>
5152
5153 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5154
5155 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5156 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5157
51582008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5159
5160 * dispextern.h (struct it): Move line_wrap away from the middle of
5161 bitfields. Move voffset in struct iterator_stack_entry after the
5162 bitfields. Move tab_width near after another short.
5163
51642008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5165
5166 * frame.h (struct frame): Move alpha from the middle of bitfields.
5167
5168 * window.h (struct window): Move frozen_window_start_p after the
5169 rest of the bitfields to reduce padding.
5170
51712008-09-18 Chong Yidong <cyd@stupidchicken.com>
5172
5173 * xterm.h (x_display_info): Remove `height' and `width' members.
5174
5175 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5176
5177 * w32term.h (w32_display_info): Remove `height', `width',
5178 `height_in', and `width_in' members.
5179
b8ff72fa
SM
5180 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5181 New functions.
aac0c6e3
MR
5182 (x_calc_absolute_position): Use them.
5183 (x_term_init): Omit removed `height' and `width' members.
5184
b8ff72fa
SM
5185 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5186 New functions.
aac0c6e3
MR
5187 (w32_read_socket, x_calc_absolute_position): Use them.
5188 (w32_initialize_display_info, w32_term_init): Omit removed members
5189 of w32_display_info.
5190
b8ff72fa
SM
5191 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5192 New functions.
5193 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5194
b8ff72fa
SM
5195 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5196 New functions.
aac0c6e3
MR
5197 (x_calc_absolute_position): Use them.
5198 (x_term_init): Omit removed `height' and `width' members.
5199
5200 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5201 (compute_tip_xy):
5202 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5203 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5204 x_display_pixel_width.
5205
52062008-09-18 Kenichi Handa <handa@m17n.org>
5207
5208 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5209 (composition_compute_stop_pos): Fix handling of static composition.
5210 (Fcomposition_get_gstring): Check FROM and TO at first.
5211
52122008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5213
46e722a9 5214 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5215 mixup (YAILOM).
5216
52172008-09-17 Chong Yidong <cyd@stupidchicken.com>
5218
5219 * indent.c (Fvertical_motion): Use position reported by iterator
5220 instead of PT for determining screen motion (bug#943).
5221
52222008-09-17 Romain Francoise <romain@orebokech.com>
5223
5224 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5225
52262008-09-17 Kenichi Handa <handa@m17n.org>
5227
5228 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5229
5230 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5231 if necessary.
5232
52332008-09-16 Kenichi Handa <handa@m17n.org>
5234
5235 * coding.c (make_conversion_work_buffer): Avoid calling
5236 Fget_buffer_create if it is not necessary.
5237
52382008-09-15 Martin Rudalics <rudalics@gmx.at>
5239
5240 * window.c (Fselect_window): Don't update window_select_count and
5241 use_time when norecord is not nil.
5242
52432008-09-14 Kenichi Handa <handa@m17n.org>
5244
5245 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5246 specpdl_ptr.
5247
52482008-09-12 Kenichi Handa <handa@m17n.org>
5249
5250 * indent.c (scan_for_column): Don't handle automatic composition
5251 if the current buffer is not associated with a window.
5252
5253 * composite.c (composition_reseat_it): If the current buffer is
5254 not associated with a window, ignore the automatic composition.
5255 (find_automatic_composition): Likewise.
5256
52572008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5258
5259 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5260 (Fgpm_mouse_stop): Use it.
5261 * termhooks.h (close_gpm): Declare.
5262 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5263 connection if Gpm_GetEvent fails.
5264
5265 * window.c (set_window_buffer): Always preserve current-buffer.
5266
52672008-09-12 Glenn Morris <rgm@gnu.org>
5268
5269 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5270
52712008-09-11 Glenn Morris <rgm@gnu.org>
5272
5273 * charset.c (charset-map-path): Doc fix.
5274
52752008-09-10 Kenichi Handa <handa@m17n.org>
5276
5277 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5278
5279 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5280 compose a grapheme cluster with the preceding base glyph.
5281
5282 * composite.c (composition_compute_stop_pos): Fix previous change.
5283 Reset cmp_it->id to -1 at first.
5284
52852008-09-10 Glenn Morris <rgm@gnu.org>
5286
5287 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5288
52892008-09-09 Chong Yidong <cyd@stupidchicken.com>
5290
5291 * keyboard.c (read_key_sequence): Reapply translation maps when
5292 switching keyboards.
5293
52942008-09-09 Kenichi Handa <handa@m17n.org>
5295
5296 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5297 characters.
5298
5299 * composite.c (FORWARD_CHAR): Fix calculation
5300 of (POSITION).pos_byte.
5301 (composition_compute_stop_pos): Limit the search of composition to
5302 at most 500 characters ahead. If we reach the limit or find a
5303 newline, set cmp_it->ch to -2 and return 0.
5304 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5305
53062008-09-08 Kenichi Handa <handa@m17n.org>
5307
5308 * indent.c (Fvertical_motion): Be sure to set
5309 it_overshoot_expected if it.cmp_it.id is non-negative.
5310
53112008-09-07 Andreas Schwab <schwab@suse.de>
5312
5313 * callproc.c (Fcall_process): Don't hold references to string data
5314 across garbage collection. Move initialisation of new_argv down
5315 to avoid compiler bug.
5316
53172008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5318
5319 * process.c (Fsystem_process_attributes): Doc fix.
5320
53212008-09-07 Chong Yidong <cyd@stupidchicken.com>
5322
5323 * callproc.c (Fcall_process): Canonicalize current directory name.
5324
5325 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5326 iterator advances to the next line if the current line ends in a
5327 continued tab.
5328
53292008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5330
5331 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5332 member to point to cmp_from.
5333
5334 * xdisp.c: Doc fix for references to gidx data member.
5335
53362008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5337
5338 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5339
53402008-09-07 Kenichi Handa <handa@m17n.org>
5341
5342 * composite.c (FORWARD_CHAR): Check STOP after
5343 incrementing (POSITION).pos.
5344
53452008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5346
5347 * process.c (Fsystem_process_attributes): Doc fix.
5348
53492008-09-06 Chong Yidong <cyd@stupidchicken.com>
5350
5351 * keyboard.c (Ftop_level): Doc fix.
5352
53532008-09-06 Eli Zaretskii <eliz@gnu.org>
5354
5355 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5356 minibuffer, don't let lower part of menu invade the echo area.
5357
5358 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5359 "char *q" to access menu text and advance through it. Revert the
5360 change that displayed ">" instead of ASCII character 0x10.
5361
53622008-09-05 Eli Zaretskii <eliz@gnu.org>
5363
5364 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5365 toggle boxes and radio buttons on MS-DOS as well.
5366
53672008-09-05 Kenichi Handa <handa@m17n.org>
5368
5369 * composite.c (autocmp_chars): Check lookback count.
5370 (composition_compute_stop_pos): Set cmp_it->lookback.
5371 (composition_reseat_it): Check lookback count.
5372 (struct position_record): New struct.
5373 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5374 (find_automatic_composition): New function.
5375 (composition_adjust_point): Use find_automatic_composition.
5376
5377 * dispextern.h (struct composition_it): New member lookback.
5378
53792008-09-02 Chong Yidong <cyd@stupidchicken.com>
5380
5381 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5382 if moving by a single line.
5383
53842008-09-02 Andreas Schwab <schwab@suse.de>
5385
5386 * xterm.c (x_delete_display): Fix merge error.
5387
5388 * fileio.c (Fexpand_file_name): Remove unused variables.
5389
53902008-09-02 Eli Zaretskii <eliz@gnu.org>
5391
5392 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5393 storage on all platforms, not just on DOS_NT.
5394
53952008-09-02 Jason Rumney <jasonr@gnu.org>
5396
b8ff72fa
SM
5397 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5398 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5399
54002008-09-01 Chong Yidong <cyd@stupidchicken.com>
5401
5402 * xfaces.c (Finternal_set_alternative_font_family_alist)
5403 (Finternal_set_alternative_font_registry_alist): Properly copy
5404 entire alist structure.
5405
54062008-09-01 Kenichi Handa <handa@m17n.org>
5407
d66c0241 5408 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5409 representative chars of the script is a vector.
d66c0241
JB
5410 (ftfont_list): Handle the case where the representative chars of
5411 the script is a vector.
aac0c6e3
MR
5412
5413 * character.c (syms_of_character): Docstring of
5414 script-representative-chars fixed.
5415
54162008-08-31 Eli Zaretskii <eliz@gnu.org>
5417
5418 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5419 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5420 the menu. Allocate larger buffer for `text', to account for
5421 possible ^C characters.
5422
54232008-08-31 Martin Rudalics <rudalics@gmx.at>
5424
5425 * xdisp.c (prepare_menu_bars): Don't call
5426 Vwindow_size_change_functions with arg Qt.
5427
54282008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5429
5430 * font.h (font_range):
5431 * fileio.c (report_file_error):
46e722a9
SM
5432 * composite.c (composition_update_it): Yet another int/Lisp_Object
5433 mixup (YAILOM).
aac0c6e3
MR
5434
54352008-08-30 Glenn Morris <rgm@gnu.org>
5436
5437 * data.c (Fmake_variable_frame_local): Doc fix.
5438
5439 * frame.c (Fmodify_frame_parameters): Doc fix.
5440
54412008-08-30 Eli Zaretskii <eliz@gnu.org>
5442
5443 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5444 needed by GetTokenInformation.
5445 (w32_system_process_attributes): Check return values of all system
5446 APIs.
5447
5448 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5449 only when the state changes.
5450 (IT_update_begin, IT_update_end): Add termscript trace.
5451
5452 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5453 clipboard is unavailable. Set dst to NULL if it doesn't point to
5454 malloc'ed data.
5455 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5456 passing random values to xfree.
5457
5458 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5459 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5460
54612008-08-29 Jason Rumney <jasonr@gnu.org>
5462
5463 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5464
54652008-08-29 Eli Zaretskii <eliz@gnu.org>
5466
5467 * composite.c (fill_gstring_body): Avoid compiler warnings.
5468
5469 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5470 LGLYPH_SET_CODE to avoid compiler warnings.
5471
2ae37cf0 5472 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5473
5474 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5475
5476 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5477 LGLYPH_SET_CODE.
5478
54792008-08-29 Kenichi Handa <handa@m17n.org>
5480
5481 * fileio.c (report_file_error): Don't downcase the first character
5482 of errstring if it is still unibyte.
5483
54842008-08-29 Kenichi Handa <handa@m17n.org>
5485
5486 These changes are to re-implement the automatic composition so
5487 that it doesn't use text properties.
5488
5489 * Makefile.in (ftfont.o): Depend on composite.h.
5490 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5491
5492 * character.h (Vunicode_category_table): Extern it.
5493
5494 * character.c (Vunicode_category_table): New variable.
5495 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5496
5497 * chartab.c (optimize_sub_char_table): Perform more greedy
5498 optimization.
5499
b8ff72fa
SM
5500 * composite.h (enum composition_method):
5501 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5502 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5503 (Vcomposition_function_table): Extern it.
5504 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5505 (composition_gstring_put_cache, composition_gstring_from_id)
5506 (composition_gstring_p, composition_gstring_width)
5507 (composition_compute_stop_pos, composition_reseat_it)
5508 (composition_update_it, composition_adjust_point): Extern them.
5509 (Fcomposition_get_gstring): EXFUN it.
5510
d66c0241 5511 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5512 (Vcomposition_function_table)
5513 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5514 (gstring_hash_table, gstring_work, gstring_work_headers):
5515 New variables.
aac0c6e3
MR
5516 (gstring_lookup_cache, composition_gstring_put_cache)
5517 (composition_gstring_from_id, composition_gstring_p)
5518 (composition_gstring_width, fill_gstring_header)
5519 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5520 (composition_reseat_it, composition_update_it)
b8ff72fa 5521 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5522 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5523 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5524 Defsubr compostion_get_gstring.
5525
5526 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5527 cmp_id.
5528 (struct glyph_string): Delete the member gidx. New members
5529 cmp_id, cmp_from, and cmp_to.
5530 (enum it_method): Delete GET_FROM_COMPOSITION.
5531 (struct composition_it): New struct.
5532 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5533 Delete c, len, cmp_id, cmp_len in u.comp.
5534
5535 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5536 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5537 (enum lglyph_indices): Likewise.
b8ff72fa 5538 (font_range): Adjust extern.
aac0c6e3
MR
5539 (font_fill_lglyph_metrics): Extern it.
5540
5541 * font.c (QCf): New variable.
5542 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5543 (font_prepare_composition): Delete this function.
5544 (font_range): Type and arguments changed.
5545 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5546 (font_fill_lglyph_metrics): New function.
b8ff72fa 5547 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5548 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5549 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5550 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5551
5552 * fontset.h (font_for_char): Extern it.
5553
5554 * fontset.c (font_for_char): New function.
5555
5556 * ftfont.c: Include composite.h.
5557 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5558 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5559
5560 * indent.c: Include composite.h and dispextern.h.
5561 (check_composition): Delete this function.
5562 (scan_for_column): Handle composition by
5563 composition_compute_stop_pos, composition_reseat_it, and
5564 composition_update_it.
5565 (compute_motion): Likewise.
5566 (Fvertical_motion): Fix checking of composition.
5567
5568 * keyboard.c (adjust_point_for_property): Check composition by
5569 composition_adjust_point.
5570
b8ff72fa 5571 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5572 struct glyph_string.
5573
b8ff72fa
SM
5574 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5575 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5576 struct glyph.
5577 (produce_composite_glyph): Likewise.
5578
b8ff72fa
SM
5579 * w32term.c (x_draw_composite_glyph_string_foreground):
5580 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5581 (x_draw_glyph_string): Likewise.
5582
5583 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5584 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5585
5586 * xdisp.c: Include font.h.
5587 (it_props): Delete the entry for Qauto_composed.
5588 (init_iterator): Initialize it->cmp_it.id to -1.
5589 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5590 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5591 (handle_auto_composed_prop): Delete it.
5592 (handle_composition_prop): Handle only static composition.
5593 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5594 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5595 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5596 (pop_it): Likewise.
5597 (get_next_element): Delete next_element_from_composition.
5598 (CHAR_COMPOSED_P): New macro.
5599 (get_next_display_element): For automatic composition, get a face
5600 from the font in the glyph-string.
5601 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5602 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5603 (next_element_from_string): Check if the character at the current
5604 position is composed by CHAR_COMPOSED_P.
5605 (next_element_from_buffer): Likewise.
d66c0241
JB
5606 (next_element_from_composition): Adjust for the change of struct it.
5607 Update it->cmp_it.
b8ff72fa
SM
5608 (dump_glyph): Adjust for the change of struct glyph.
5609 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5610 it and struct glyph. Don't handle automatic composition here.
5611 (fill_gstring_glyph_string): New function.
5612 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5613 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5614 (BUILD_GSTRING_GLYPH_STRING): New macro.
5615 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5616 automatic composition.
b8ff72fa 5617 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5618 struct glyph.
b8ff72fa 5619 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5620
b8ff72fa 5621 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5622 the change of struct glyph_string.
5623 (x_draw_glyph_string): Likewise.
5624
56252008-08-29 Glenn Morris <rgm@gnu.org>
5626
5627 * buffer.c (word-wrap): Doc fix.
5628 * xdisp.c (truncate-partial-width-windows): Doc fix.
5629 Increase default to 50.
5630
56312008-08-29 Chong Yidong <cyd@stupidchicken.com>
5632
5633 * xdisp.c (update_tool_bar_unwind): New function.
5634 (update_tool_bar): Temporarily set selected frame before building
5635 tool-bar items.
5636
56372008-08-28 Michael Albinus <michael.albinus@gmx.de>
5638
5639 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5640 snprintf, respectively.
5641 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5642
56432008-08-28 Chong Yidong <cyd@stupidchicken.com>
5644
5645 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5646 LDFLAGS to GNUstep CC invocation.
5647
56482008-08-27 Chong Yidong <cyd@stupidchicken.com>
5649
5650 * indent.c (Fvertical_motion): Revert last change. Handle the
5651 general case where we are moving forward, and PT spans multiple
5652 screen lines.
5653
5654 * eval.c (find_handler_clause): Temporarily increase
5655 max-lisp-eval-depth while printing the backtrace buffer, to
5656 guarantee that help-mode code can run.
5657
56582008-08-27 Eli Zaretskii <eliz@gnu.org>
5659
5660 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5661 colors under -rv.
5662 (IT_set_frame_parameters): Don't swap foreground and background
5663 colors if `(reverse . t)' is present in the frame properties.
5664 (internal_terminal_init): Call init_frame_faces only for the
5665 initial frame.
5666
56672008-08-27 Andreas Schwab <schwab@suse.de>
5668
5669 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5670
56712008-08-27 Andreas Schwab <schwab@suse.de>
5672
5673 * search.c (search_buffer): Set char_base to zero only at the end.
5674
56752008-08-27 Kenichi Handa <handa@m17n.org>
5676
b8ff72fa 5677 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5678
56792008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5680
5681 * xterm.c (x_term_init): Temporarily hide the partially
5682 initialized terminal while calling vendor-specific-keysyms.
5683
56842008-08-26 Eli Zaretskii <eliz@gnu.org>
5685
5686 * msdos.c (internal_terminal_init): Most initializations done only
5687 once, especially initial_screen_colors[] and termscript open.
5688
56892008-08-26 Chong Yidong <cyd@stupidchicken.com>
5690
5691 * eval.c (Fcondition_case): Doc fix.
5692
5693 * widgetprv.h (EmacsFramePart): Change font member to the new font
5694 struct.
5695
5696 * widget.c: Include character.h and font.h for XSETFONT.
5697 (setup_frame_gcs): Compute X font id from font struct, just once.
5698
56992008-08-26 Eli Zaretskii <eliz@gnu.org>
5700
5701 * term.c (get_named_tty): Fix last change.
5702
57032008-08-26 Chong Yidong <cyd@stupidchicken.com>
5704
5705 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5706 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5707
57082008-08-25 Eli Zaretskii <eliz@gnu.org>
5709
5710 * frame.c (do_switch_frame): Mark previously displayed frame as
5711 obscured for FRAME_MSDOS_P frames as well.
5712
57132008-08-24 Eli Zaretskii <eliz@gnu.org>
5714
5715 * frame.c (make_terminal_frame): Initialize f->terminal,
5716 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5717 Set the top frame to newly created frame.
5718 (Fmake_terminal_frame): Reuse the_only_display_info.
5719
5720 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5721 estimating available memory.
5722
b97439ce 57232008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5724
5725 * nsterm.m (ns_draw_window_cursor): Don't call
5726 NSDisableScreenUpdates and NSEnableScreenUpdates on
5727 non-NS_IMPL_COCOA systems.
5728
57292008-08-23 Andreas Schwab <schwab@suse.de>
5730
5731 * process.c (procfs_system_process_attributes): Fix use of
5732 uninitialized variables.
5733
57342008-08-23 Eli Zaretskii <eliz@gnu.org>
5735
5736 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5737
5738 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5739 calling tty-set-up-initial-frame-faces.
5740
b8ff72fa
SM
5741 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5742 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5743
5744 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5745 addition to output_termcap.
5746
5747 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5748
5749 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5750 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5751 highlight.
5752
5753 * process.c [!subprocesses]: Define QCname.
5754 (syms_of_process): Intern and staticpro it.
5755
5756 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5757 Adjust for changes in encoding/decoding routines.
5758 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5759 encode_coding and decode_coding.
5760
b8ff72fa 5761 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5762
5763 * dosfns.c: Include frame.h before termhooks.h.
5764 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5765 variable termscript.
5766
5767 * s/msdos.h (USER_FULL_NAME): Define.
5768 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5769
5770 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5771 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5772 pw->pw_gecos.
5773
5774 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5775 SELECTED_FRAME as additional (1st) argument.
5776 (tty_read_avail_input): Handle output_msdos_raw in
5777 addition to output_termcap.
5778
5779 * msdos.c: Include frame.h before termhooks.h.
5780 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5781 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5782 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5783 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5784 (IT_set_terminal_modes, IT_reset_terminal_modes)
5785 (IT_set_frame_parameters): Use tty->termscript instead of a global
5786 variable termscript.
5787 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5788 global variable terminal_coding. Don't refer to
5789 Vnonascii_translation_table.
5790 (internal_terminal_init): Set Vwindow_system in current_kboard.
5791 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5792 Announce date and time of session start, if termscript is open.
5793 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5794 term.c:init_tty). Open termscript only of not already open.
5795 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5796 here instead of dos_ttraw. Don't initialize display if this is an
5797 initial tty. Don't set FRAME_FONT.
5798 (Vwindow_system_version): Bump to 23.
5799 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5800 is available, set up mouse_position_hook.
5801 (dos_ttraw, IT_set_terminal_modes): If called with initial
5802 terminal, do nothing.
5803 (IT_set_frame_parameters): Handle the Qtty_type frame
5804 parameter by calling internal_terminal_init.
5805 (dos_set_window_size, show_mouse_face)
5806 (clear_mouse_face, IT_note_mode_line_highlight)
5807 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5808 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5809 (initialize_msdos_display): New function.
5810 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5811 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5812 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5813 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5814 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5815 (request_sigio, unrequest_sigio): Don't define, now defined on
5816 sysdep.c.
5817 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5818
5819 * term.c [MSDOS]: Include msdos.h.
5820 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5821 conditional to DOS_NT. Allow only one call to this function in a
5822 session. Don't allocate a new struct tty_display_info; instead,
5823 reuse the_only_display_info. Call get_tty_size to get screen
5824 dimensions. Call init_baud_rate to set bad_rate.
5825 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5826 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5827 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5828 (get_tty_terminal, get_named_tty, Ftty_type)
5829 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5830 output_termcap.
b8ff72fa
SM
5831 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5832 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5833 only when subprocesses are supported.
aac0c6e3
MR
5834
5835 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5836 f->output_data.x.
5837 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5838 terminal devices.
5839
5582fbc7 5840 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
5841 x_output.
5842 (FRAME_FONT): Use output_data.tty.
5843 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
5844 (struct x_display_info): Rename from display_info. Update all users in
5845 msdos.c.
aac0c6e3 5846 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 5847 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
5848 (dos_ttraw): Update prototype.
5849
5850 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5851 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5852
58532008-08-23 Jason Rumney <jasonr@gnu.org>
5854
5855 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5856 (fn_TIFFSetDirectory): New library function used.
5857 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5858 (tiff_load): Use :index to select among multiple images. Set count
5859 property when multiple images exist.
5860 (gif_format): Use :index, not :image.
5861
58622008-08-23 Chong Yidong <cyd@stupidchicken.com>
5863
5864 * xdisp.c (try_scrolling): Check INT_MAX instead of
5865 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5866 to obtain INT_MAX.
5867
58682008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5869
5870 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5871
58722008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5873
5874 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5875 GNUstep library location.
5876
58772008-08-21 Chong Yidong <cyd@stupidchicken.com>
5878
5879 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5880 before using it.
5881
5882 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5883
58842008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5885
5886 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5887 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5888 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5889 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5890 (EmacsApp-cursor_blink_handler): Remove declaration.
5891 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5892 match 01 Feb 2008 changes in xterm.c.
5893 (ns_read_socket): Add cast to avoid warning.
5894 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5895 GNUstep.
5896
58972008-08-20 Chong Yidong <cyd@stupidchicken.com>
5898
5899 * xselect.c (x_get_foreign_selection): Return nil if desired
5900 selection could not be obtained, instead of signalling an error.
5901
59022008-08-20 David Reitter <david.reitter@gmail.com>
5903
5904 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5905 * nsterm.m: Remove ns-specific code for cursor blinking.
5906 (ns_draw_window_cursor): Clear cursor properly rather than
5907 redrawing the area. Respect width of bar cursors.
5908 These changes enable the use of generic blink-cursor-mode and
5909 generic cursor types in NS and support smooth cursor movements (do
5910 not blink off after command).
5911 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5912 Nextstep, too.
5913
59142008-08-19 Kenichi Handa <handa@m17n.org>
5915
5916 * font.c (Vfont_log_deferred): New variable.
5917 (font_add_log): Check Vfont_log_deferred.
5918 (font_deferred_log): New function.
5919
5920 * font.h (font_deferred_log): Extern it.
5921
5922 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5923 for sorting.
5924 (face_for_char): Use deferred log.
5925
59262008-08-18 Kenichi Handa <handa@m17n.org>
5927
5928 * fontset.c (face_for_char): Add font log.
5929
5930 * font.c (font_add_log): Add the font properties :script, :lang,
5931 and :otf in the log.
5932
59332008-08-17 Chong Yidong <cyd@stupidchicken.com>
5934
5935 * xdisp.c: Remove dead code.
5936 (handle_invisible_prop, next_overlay_string): Defer call to
5937 setup_for_ellipsis.
5938 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5939
59402008-08-15 Chong Yidong <cyd@stupidchicken.com>
5941
5942 * xfaces.c (lookup_derived_face): Properly handle possible zero
5943 return value of get_lface_attributes.
5944 (merge_faces): Don't tell lookup_derived_face to signal an error
5945 if face is not found.
5946
5947 * dired.c (Fdirectory_files): Doc fix.
5948
5949 * process.c (make_process): Initialize kill_without_query struct
5950 member.
5951
59522008-08-15 Eli Zaretskii <eliz@gnu.org>
5953
5954 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5955 Alternative calculation of totphys for Visual Studio 6.
5956
5957 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5958
5959 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5960 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5961 All users changed.
5962 (stat): Only root directory passed to GetDriveType. Allow RAM
5963 disk as well as local fixed disk when w32-get-true-file-attributes
5964 is set to `local'.
5965 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5966 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5967 (w32_cached_id, w32_add_to_cache): New functions.
5968 (get_name_and_id): Look account names in the cache before calling
5969 lookup_account_sid.
5970 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5971 New initialization flags.
5972 (globals_of_w32): Initialize them to zero.
5973 (w32_system_process_attributes): Use w32_cached_id and
5974 w32_add_to_cache.
5975
59762008-08-14 Lawrence Mitchell <wence@gmx.li>
5977
5978 * lread.c (Fread_char, Fread_char_exclusive): If no character
5979 event is read before timeout is reached, return nil, rather than
5980 converting to a number.
5981
59822008-08-14 Chong Yidong <cyd@stupidchicken.com>
5983
5984 * fns.c (use_dialog_box): Doc fix.
5985
5986 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
5987 on OS X.
5988
59892008-08-13 Chong Yidong <cyd@stupidchicken.com>
5990
5991 * frame.c (Qns_parse_geometry): New var.
5992 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
5993
59942008-08-11 Chong Yidong <cyd@stupidchicken.com>
5995
5996 * xdisp.c (x_produce_glyphs): Handle the case when font has no
5997 space character in calculating tabs.
5998
59992008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6000
6001 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6002
60032008-08-10 Glenn Morris <rgm@gnu.org>
6004
6005 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6006 silence gcc "limited range of data type" warnings in some
6007 make_fixnum_or_float calls.
6008
60092008-08-09 Eli Zaretskii <eliz@gnu.org>
6010
6011 * w32.c (w32_system_process_attributes): If the process does not
6012 exist, return nil.
6013
6014 * w32.c: Include thelp32.h, psapi.h and coding.h.
6015 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6016 declarations.
6017 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6018 (Process32Next_Proc): New typedefs.
6019 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6020 (g_b_init_process32_next, g_b_init_open_thread_token)
6021 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6022 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6023 (g_b_init_get_process_working_set_size)
6024 (g_b_init_global_memory_status_ex): New static variables.
6025 (globals_of_w32): Initialize them.
6026 (create_toolhelp32_snapshot, process32_first, process32_next)
6027 (open_thread_token, impersonate_self, revert_to_self)
6028 (get_process_memory_info, get_process_working_set_size)
6029 (global_memory_status, global_memory_status_ex): New wrapper
6030 functions.
6031 (w32_list_system_processes, w32_system_process_attributes)
6032 (enable_privilege, restore_privilege, ltime, process_times):
6033 New functions.
6034 (convert_time_raw): New function.
6035 (convert_time): Remove conversion of FILETIME into time in 100
6036 nsec units, call convert_time_raw instead.
6037
6038 * process.h (w32_list_system_processes, w32_system_process_attributes):
6039 Add prototypes.
6040 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6041 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6042 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6043 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6044
6045 * process.c (Fsystem_process_attributes): Doc fix.
6046
60472008-08-08 Chong Yidong <cyd@stupidchicken.com>
6048
6049 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6050 a continued multi-char glyph; if so, advance to the actual glyph.
6051
60522008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6053
6054 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6055
6056 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6057 (.m.o): Use it.
6058 * config.in: Regenerate.
6059
60602008-08-07 Chong Yidong <cyd@stupidchicken.com>
6061
6062 * xdisp.c (redisplay_window): Revert last change.
6063 (try_window): Check bottom scroll margin too.
6064
60652008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6066
6067 * config.in: Regenerate.
6068
6069 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6070 -list-load-path-shadows'.
6071 (nsgui.h): Reduce number of things depending on it.
6072
60732008-08-06 Chong Yidong <cyd@stupidchicken.com>
6074
6075 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6076 instead of window-end which does the wrong thing at eob.
6077 (try_cursor_movement): Minor optimization.
6078 (redisplay_window): If scroll margin is defined, don't assume
6079 window doesn't need scrolling.
6080
60812008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6082
6083 * config.in: Regenerate.
6084
6085 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6086 (mostlyclean): Don't delete *.d under NS.
6087
6088 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6089
60902008-08-06 Kenichi Handa <handa@m17n.org>
6091
6092 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6093
60942008-08-06 Andreas Schwab <schwab@suse.de>
6095
6096 * config.in: Regenerate.
6097
60982008-08-05 Chong Yidong <cyd@stupidchicken.com>
6099
6100 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6101 forcing a window start.
6102
6103 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6104 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6105
61062008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6107
6108 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6109 argument.
6110
61112008-08-05 Juanma Barranquero <lekktu@gmail.com>
6112
6113 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6114 <scroll-down-aggressively, before-change-functions>:
6115 <after-change-functions>: Reflow docstrings.
6116
61172008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6118 Ken Raeburn <raeburn@gnu.org>
6119
6120 Dock menu customization, based on a patch by Ken Raeburn, plus some
6121 other fixes.
6122 * nsmenu.m (dockMenu): New variable.
6123 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6124
6125 * nsterm.h (dockMenu): Declare.
6126
6127 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6128 (ns_term_init): Initialize dockMenu.
6129 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6130 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6131 left.
6132
6133 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6134
61352008-08-04 Chong Yidong <cyd@stupidchicken.com>
6136
6137 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6138
6139 * config.in: Regenerate.
6140
61412008-08-04 Seiji Zenitani <zenitani@mac.com>
6142
6143 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6144
61452008-08-04 Chong Yidong <cyd@stupidchicken.com>
6146
6147 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6148
61492008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6150
6151 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6152
6153 * keyboard.h: Comment an #endif.
6154
6155 * lisp.h (have_menus_p): Adjust comment.
6156
6157 * menu.c (find_and_return_menu_selection): Fix comparison with
6158 client_data.
6159
6160 * nsmenu.m (popup_activated_flag): New variable.
6161 (popup_activated): New function.
6162 (menu-or-popup-active-p): New exported lisp definition.
6163 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6164 when popup done.
6165 (ns_popup_dialog): Set popup_activated_flag.
6166
6167 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6168 version for GNUstep (handled by conditional typedef in nsterm.m).
6169 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6170 in rgb.txt).
6171
6172 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6173
6174 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6175
6176 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6177
6178 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6179 shortcircuit if popup_activated like GTK and X toolkit.
6180
6181 * m/inter386.h: Change DARWIN to DARWIN_OS.
6182
6183 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6184 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6185 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6186 comment on NO_SOCK_SIGIO.
6187
61882008-08-03 Chong Yidong <cyd@stupidchicken.com>
6189
6190 * nsterm.m (windowDidResize): Remove stopModal call.
6191
61922008-08-03 Andreas Schwab <schwab@suse.de>
6193
6194 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6195 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6196
61972008-08-02 Chong Yidong <cyd@stupidchicken.com>
6198
6199 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6200 Don't use uninitialized pointer variable when using getrlimit.
6201
62022008-08-02 Jason Rumney <jasonr@gnu.org>
6203
6204 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6205
62062008-08-02 Eli Zaretskii <eliz@gnu.org>
6207
6208 * alloc.c (NSTATICS): Bump to 0x640.
6209
6210 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6211
6212 * lisp.h: Add prototype for directory_files_internal.
6213
6214 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6215 New functions.
6216 (syms_of_process): Defsubr them. Add initializations for various
6217 Q* symbols used in procfs_system_process_attributes.
6218 (procfs_list_system_processes, procfs_system_process_attributes)
6219 [HAVE_PROCFS]: New functions.
6220 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6221 (procfs_get_total_memory): New functions.
6222
62232008-08-01 Juanma Barranquero <lekktu@gmail.com>
6224
6225 * xfaces.c (Fx_load_color_file): Fix previous change;
6226 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6227
62282008-08-01 Michael Albinus <michael.albinus@gmx.de>
6229
6230 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6231
62322008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6233
6234 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6235
62362008-08-01 Chong Yidong <cyd@stupidchicken.com>
6237
6238 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6239
6240 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6241 define NSApplicationDelegateReplySuccess.
6242 (EmacsView -converstationIdentifier): Use long instead of
6243 NSInteger for GNUstep, since it doesn't have NSInteger.
6244
6245 * xmenu.c: Revert last change.
6246
6247 * keyboard.h: Fix last change.
6248
62492008-08-01 Juanma Barranquero <lekktu@gmail.com>
6250
6251 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6252 on Windows.
6253
62542008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6255
6256 Warning clearing and clean-up in NS port.
6257 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6258 Add prototypes.
6259 * nsgui.h (FACE_DEFAULT): Remove, unused.
6260 (XGCValues): Change colors to unsigned long.
6261 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6262 nsterm.m.
6263 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6264 (ns_list_fonts): Remove, unused.
6265 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6266 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6267 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6268 (nsfont_draw): Compare face colors to 0, not nil.
6269 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6270 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6271 (-addSubmenuWithTitle:): Use NSMenuItem class.
6272 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6273 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6274 (ns_clip_to_row): Make gc arg a BOOL.
6275 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6276 ns_clip_to_row() call.
6277 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6278 used). Cast FRAME_FONT assignments.
6279 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6280 (ns_string_to_lispmod): Change arg to const char.
6281 (ns_term_init): Use NSMenuItem class.
6282 (EmacsApp -openFile:): Move to different section of file.
6283 (EmacsApp -application:openFiles:): Don't return a value, call
6284 -replyToOpenOrPrint:.
6285 (EmacsView -keyDown:): Fix up cast.
6286 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6287 (EmacsView -menuDown:): Cast tag in call to
6288 find_and_call_menu_selection().
6289 (ns_list_fonts): Remove, unused.
6290 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6291 (ns_fontname_to_xlfd): Make static.
6292 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6293 Remove prototypes (now in keyboard.h).
6294 (next_menubar_widget_id): Remove, unused.
6295 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6296 Remove prototypes (now in keyboard.h).
6297 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6298
62992008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6300
6301 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6302 (floatfns.o): Depend on syssignal.h.
6303 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6304
6305 * systty.h: Fix previous change that removed BSD_TERMIOS.
6306 Add comments to #ifdefs.
6307
63082008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6309
6310 * w32fns.c (w32-load-color-file): Remove.
6311 (x-open-connection): Use renamed Fx_load_color_file.
6312 * xfaces.c (x-load-color-file): Add.
6313 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6314 Emacs.clr.
6315 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6316
63172008-07-31 Michael Albinus <michael.albinus@gmx.de>
6318
6319 * dbusbind.c (Fdbus_call_method_asynchronously)
6320 (Fdbus_method_error_internal): New defuns.
6321 (xd_read_message): Handle also reply messages.
6322 (Vdbus_registered_functions_table): Extend docstring.
6323
63242008-07-31 Juanma Barranquero <lekktu@gmail.com>
6325
6326 * keyboard.c (gobble_input): Fix previous change.
6327
63282008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6329
6330 * bitmaps/README:
6331 * xfns.c:
6332 * termcap.c:
6333 * term.c:
6334 * syswait.h:
6335 * systty.h:
6336 * systime.h:
6337 * syssignal.h:
6338 * sysdep.c:
6339 * process.h:
6340 * process.c:
6341 * print.c:
6342 * ndir.h:
6343 * lread.c:
6344 * keyboard.c:
6345 * getpagesize.h:
6346 * floatfns.c:
6347 * fileio.c:
6348 * emacs.c:
6349 * doc.c:
6350 * dispnew.c:
6351 * dired.c:
6352 * data.c:
6353 * callproc.c:
6354 * buffer.c:
6355 * README:
6356 * Makefile.in:
6357 * s/template.h:
6358 * s/msdos.h:
6359 * m/vax.h: Remove VMS support.
6360 * s/vms.h:
6361 * vlimit.h:
6362 * uaf.h:
6363 * temacs.opt:
6364 * param.h:
6365 * ioctl.h: Remove file.
6366
63672008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6368
6369 * s/ms-w32.h (MULTI_KBOARD): Remove.
6370 * xterm.c:
6371 * xselect.c:
6372 * xfns.c:
6373 * window.c:
6374 * w32term.c:
6375 * w32fns.c:
6376 * terminal.c:
6377 * termhooks.h:
6378 * term.c:
6379 * sysdep.c:
6380 * keyboard.h:
6381 * keyboard.c:
6382 * frame.h:
6383 * frame.c:
6384 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6385 * config.in: Regenerate.
6386
63872008-07-30 Jason Rumney <jasonr@gnu.org>
6388
6389 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6390
6391 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6392 (w32font_open_internal): Get unicode version of textmetrics.
6393 Don't enable or disable glyph indices here.
6394 (w32font_open): Disable use of glyph indices.
6395
6396 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6397
63982008-07-30 Chong Yidong <cyd@stupidchicken.com>
6399
6400 * minibuf.c (Vread_buffer_function): Doc fix.
6401
64022008-07-30 John Paul Wallington <jpw@pobox.com>
6403
6404 * minibuf.c (read_buffer_completion_ignore_case): New var.
6405 (Fread_buffer): Use it.
6406
64072008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6408
6409 * systty.h (sensemode): Remove empty #if. Remove reference to
6410 BSD_TERMIOS, unused.
6411
6412 * sysdep.c: Remove reference to DGUX.
6413 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6414
6415 * config.in: Regenerate.
6416
64172008-07-30 Jason Rumney <jasonr@gnu.org>
6418
6419 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6420
64212008-07-29 Jason Rumney <jasonr@gnu.org>
6422
6423 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6424 is populated.
6425 (uniscribe_encode_char): Always use uniscribe.
6426 Avoid using context if cache is populated.
6427
64282008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6429
6430 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6431 open menu.
6432
6433 * gtkutil.c (menu_nav_ended): Remove.
6434 (create_menus): Remove signal connect for menu_nav_ended.
6435
64362008-07-28 Chong Yidong <cyd@stupidchicken.com>
6437
6438 * xdisp.c (redisplay_window): Check return value of
6439 compute_window_start_on_continuation_line before forcing a window
6440 start.
6441
64422008-07-28 Jason Rumney <jasonr@gnu.org>
6443
6444 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6445
6446 * w32term.c (w32_enable_unicode_output, cleartype_active):
6447 Remove obsolete display options.
6448 (x_draw_glyph_string_background): Don't use old cleartype_active
6449 workaround.
6450 (w32_initialize): Remove cleartype_active initialization.
6451 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6452
64532008-07-28 Andreas Schwab <schwab@suse.de>
6454
6455 * lisp.h (init_weak_hash_tables, syms_of_font)
6456 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6457 (remove_hash_entry): Don't declare.
6458 * eval.c (maybe_call_debugger): Make static and move before use.
6459 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6460 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6461 * xterm.h (x_set_frame_alpha): Declare.
6462
64632008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6464
6465 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6466 (create_menus): Connect selection-done to menu_nav_ended.
6467
64682008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6469
6470 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6471 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6472 parameter with read of 'alpha' one.
6473 (Qns_frame_parameter): Remove.
5582fbc7 6474 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6475 (next-selection-coding-system, Vselection_coding_system)
6476 (Vnext_selection_coding_system): Drop.
6477
64782008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6479
6480 * nsfns.m (do-applescript, do_applescript): Rename to
6481 ns-do-applescript, ns_do_applescript, and move within file.
6482
64832008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6484
6485 Remove support for Mac Carbon.
6486 * mactoolbox.c:
6487 * macterm.h:
6488 * macterm.c:
6489 * macselect.c:
6490 * macmenu.c:
6491 * macgui.h:
6492 * macfns.c:
6493 * mac.c: Remove file.
6494 * s/darwin.h:
6495 * m/intel386.h:
6496 * xfaces.c:
6497 * xdisp.c:
6498 * window.c:
6499 * tparam.c:
6500 * termhooks.h:
6501 * termcap.c:
6502 * term.c:
6503 * syssignal.h:
6504 * sysselect.h:
6505 * sysdep.c:
6506 * process.c:
6507 * lread.c:
6508 * lisp.h:
6509 * keyboard.c:
6510 * image.c:
6511 * fringe.c:
6512 * frame.h:
6513 * frame.c:
6514 * fontset.c:
6515 * font.h:
6516 * font.c:
6517 * fns.c:
6518 * fileio.c:
6519 * emacs.c:
6520 * dispnew.c:
6521 * dispextern.h:
6522 * config.in:
6523 * atimer.c:
2ae37cf0 6524 * Makefile.in: Remove code for Carbon.
aac0c6e3 6525
f0131492 65262008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6527
6528 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6529
65302008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6531
6532 * macterm.h (kCGBitmapByteOrder32Host): New define for
6533 non-universal SDKs.
6534
6535 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6536 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6537
6538 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6539 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6540
65412008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6542
6543 * w32inevt.c: Include dispextern.h.
6544
65452008-07-26 Andreas Schwab <schwab@suse.de>
6546
6547 * print.c (print_object): Fix off-by-one in last change.
6548
65492008-07-25 Juanma Barranquero <lekktu@gmail.com>
6550
6551 * term.c (syms_of_term): Don't initialize default_orig_pair,
6552 default_set_foreground and default_set_background on Windows.
6553
65542008-07-25 Jason Rumney <jasonr@gnu.org>
6555
6556 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6557 ScriptItemize. Clean up return value checking. Remove unused
6558 variables.
6559 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6560 shaping engine.
6561
6562 * w32font.c (w32font_has_char): Handle the case where we can't
6563 determine the script for a character.
6564
65652008-07-25 Chong Yidong <cyd@stupidchicken.com>
6566
6567 * term.c (syms_of_term): Initialize default_orig_pair,
6568 default_set_foreground, and default_set_background.
6569
6570 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6571 clash (bug#86).
6572 (getloadavg): Callers changed.
6573
6574 * image.c (svg_load_image): Fix last change.
6575 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6576 image size is valid. Use g_object_unref instead of deprecated
6577 rsvg_handle_free to free rsvg handle.
6578 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6579
65802008-07-25 Jason Rumney <jasonr@gnu.org>
6581
6582 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6583 surrogates before looking up glyph index.
6584 (w32font_text_extents): Encode as surrogates if falling back to
6585 functions that need UTF-16 wide chars.
6586
6587 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6588 BMP as surrogates before looking up glyph index.
6589
65902008-07-25 Chong Yidong <cyd@stupidchicken.com>
6591
6592 * image.c (svg_load_image): Check for failure in return value of
6593 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6594
65952008-07-25 Jason Rumney <jasonr@gnu.org>
6596
6597 * w32font.c (Fx_select_font): Reverse sense of second arg.
6598
65992008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6600
6601 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6602 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6603
6604 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6605 (PURESIZE): Use it.
6606
66072008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6608
6609 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6610 * m/alpha.h (TEXT_END):
6611 * m/ibmrs6000.h (TEXT_END):
6612 * m/macppc.h (TEXT_END):
6613 * s/darwin.h (TEXT_END):
6614 * s/msdos.h (TEXT_END): Remove, unused.
6615 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6616 * s/cygwin.h: Remove comment.
6617
6618 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6619 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6620 * m/intel386.h (DOT_GLOBAL_START):
6621 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6622 (USG): Remove, file not used on USG platforms.
6623
6624 * Makefile.in (HAVE_X11): Remove empty #else.
6625
66262008-07-24 Andreas Schwab <schwab@suse.de>
6627
6628 * fileio.c (Finsert_file_contents): Properly adjust undo list
6629 after format conversion.
6630
66312008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6632
6633 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6634 (menu_nav_ended): Remove.
6635 (create_menus): Remove signal connect for menu_nav_ended.
6636 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6637 create_menus.
6638 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6639
66402008-07-23 Jason Rumney <jasonr@gnu.org>
6641
6642 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6643 with opened font.
6644 (w32font_open): Set font type to gdi.
6645
6646 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6647
66482008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6649
6650 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6651 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6652 defines it.
6653 * unexec.c (ADDR_CORRECT): Define unconditionally.
6654
6655 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6656
6657 * unexec.c: Remove code depending on !COFF and USG, the file is
6658 not used for such systems.
6659
6660 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6661 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6662 (LD_SWITCH_SYSTEM_1): Remove, update users.
6663
6664 * s/darwin.h (DATA_END):
6665 * m/intel386.h (DATA_END):
6666 * m/ibmrs6000.h (DATA_END):
6667 * m/alpha.h (DATA_END): Remove, unused.
6668
6669 * config.in: Regenerate.
6670 * s/ms-w32.h (subprocesses): Define unconditionally.
6671 * s/template.h (subprocesses): Update comment.
6672 * s/vms.h (subprocesses):
6673 * s/usg5-4.h (subprocesses):
6674 * s/hpux10-20.h (subprocesses):
6675 * s/gnu-linux.h (subprocesses):
6676 * s/cygwin.h (subprocesses):
6677 * s/bsd-common.h (subprocesses):
6678 * s/aix4-2.h (subprocesses):
6679 * s/darwin.h (subprocesses): Do not define, defined by default now.
6680
6681 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6682 Remove all references.
6683 (temacs): Add GNUstep specific ld flags.
6684
6685 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6686 similarly to what X does.
6687
66882008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6689
6690 * nsfns.m (x-list-fonts): Remove.
6691 (syms_of_nsfns): Drop the x-list-fonts declaration.
6692 * nsterm.m: Get rid of remaining "//" comments.
6693
66942008-07-22 Chong Yidong <cyd@stupidchicken.com>
6695
6696 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6697
6698 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6699 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6700 (Fns_own_selection_internal, Fx_disown_selection_internal)
6701 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6702
6703 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6704 ... */' style of docstrings. Doc fixes.
6705
67062008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6707
6708 * terminfo.c (UP, BC, PC): Undo previous change.
6709
6710 * nsfns.m: Rename ns prefixed functions/variables to the
6711 corresponding x versions. Update references.
6712
67132008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6714
6715 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6716
67172008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6718
6719 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6720 Remove forwarding functions.
6721 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6722 non-static.
6723 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6724 non-static.
6725 (ns_frame_parm_handlers): Use the new names.
6726 (syms_of_nsfns): Move to the end of file.
6727
6728 * nsterm.m (syms_of_nsterm): Move to the end of file.
6729
6730 * dispnew.c (init_display): Remove code for X10.
6731
67322008-07-22 Jason Rumney <jasonr@gnu.org>
6733
6734 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6735 bare drive.
6736
67372008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6738
6739 * nsterm.m (syms_of_nsterm): Remove debugging println.
6740
67412008-07-22 David Reitter <david.reitter@gmail.com>
6742
6743 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6744 Carbon implementation of the same functionality: execute arbitrary
6745 AppleScript code.
6746
67472008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6748
6749 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6750 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6751 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6752 (Fx_display_mm_height, Fx_display_mm_width)
6753 (Fx_display_backing_store, Fx_display_visual_class)
6754 (Fx_display_save_under, Fx_open_connection)
6755 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6756 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6757 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6758 (Fx_display_pixel_width, Fx_display_pixel_height)
6759 (Fx_display_usable_bounds, Fx_display_planes)
6760 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6761 ... */' style of docstrings.
6762
67632008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6764
6765 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6766 on this platform.
6767 (mips):
6768 * m/iris4d.h (mips): Do not define.
6769 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6770
6771 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6772
6773 * image.c:
6774 * nsfns.m:
6775 * nsselect.m:
6776 * nsterm.h:
6777 * nsterm.m: Rename ns prefixed functions/variables to the
6778 corresponding x versions. Update references.
6779
6780 * m/ibms390x.h (NO_REMAP): Do not undefine.
6781
6782 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6783
67842008-07-21 Chong Yidong <cyd@stupidchicken.com>
6785
6786 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6787 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6788 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6789 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6790 (Fns_display_mm_height, Fns_display_mm_width)
6791 (Fns_display_backing_store, Fns_display_visual_class)
6792 (Fns_display_save_under, Fns_open_connection)
6793 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6794 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6795 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6796 (Fns_display_pixel_width, Fns_display_pixel_height)
6797 (Fns_display_usable_bounds, Fx_display_planes)
6798 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6799
68002008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6801
6802 * print.c (print_object): Check print_depth before searching for
6803 circularities.
6804
68052008-07-21 Michael Albinus <michael.albinus@gmx.de>
6806
6807 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6808 only sprintf.
6809
68102008-07-21 Kenichi Handa <handa@m17n.org>
6811
6812 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6813
68142008-07-20 Andreas Schwab <schwab@suse.de>
6815
6816 * syntax.c (find_start_pos, find_start_value)
6817 (find_start_value_byte, find_start_begv, find_defun_start)
6818 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6819
68202008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6821
6822 * s/sol2-3.h: Insert contents of s/sol2.h.
6823 (LD_SWITCH_SYSTEM): Remove redundant definition.
6824 * s/sol2.h: Remove, unused.
6825
68262008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6827
6828 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6829
68302008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6831
6832 * Makefile.in (ns_appdir): Fix typo in find command.
6833
68342008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6835
6836 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6837
6838 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6839 added not supported anymore.
6840
6841 * s/usg5-4-2.h (LIBS_SYSTEM):
6842 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6843
6844 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6845 * s/lynxos.h (GETPGRP_NO_ARG):
6846 * s/hpux10-20.h (NO_SIOCTL_H):
6847 * s/gnu.h (GETPGRP_NO_ARG):
6848 * s/gnu-linux.h (NO_SIOCTL_H):
6849 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6850 * s/cygwin.h (GETPGRP_NO_ARG):
6851 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6852 (C_DEBUG_SWITCH): Remove duplicate definition.
6853
6854 * m/ibms390.h: Remove boilerplate comments.
6855
6856 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6857
6858 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6859 (wait_reading_process_output): Remove code for SunOS, platform not
6860 supported anymore. Use SOLARIS2 instead of sun.
6861
68622008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6863
6864 * font.c (font_open_by_name): Under NS, default lface height to zero.
6865 (font_open_for_lface): Under NS, set size based on frame fontsize.
6866 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6867 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6868
68692008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6870
6871 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6872 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6873 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6874 YES/NO.
6875 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6876 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6877 * Makefile.in (clean): Clear out build destination dir.
6878
68792008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6880
6881 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6882 xterm, xselect.
6883 * lisp.h: Remove declaration of hash_remove.
6884 * nsgui.h: Remove redefinitions of hash_remove.
6885 * fns.c (hash_remove): Rename to hash_remove_from_table.
6886
68872008-07-19 Seiji Zenitani <zenitani@mac.com>
6888
6889 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6890 strdup() the family UTF8String before modifying it.
6891
68922008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6893
6894 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6895 NS_FACE_BACKGROUND with 0 instead of nil.
6896 * nsfont.m (nsfont_draw): Same.
6897
68982008-07-19 Chong Yidong <cyd@stupidchicken.com>
6899
6900 * nsfns.m (ns_set_background_color): Fix crash.
6901
69022008-07-18 Chong Yidong <cyd@stupidchicken.com>
6903
6904 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6905
69062008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6907
6908 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6909
69102008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6911
6912 * gtkutil.c: Include <config.h> instead of "config.h".
6913
6914 * lisp.h (Foverlay_buffer): Add EXFUN.
6915
6916 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6917 child process to complete child_setup. Undo 2005-09-21 change.
6918
6919 * s/darwin.h: Mention setsid after vfork.
6920
69212008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6922
6923 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6924 Depend on macgui.h.
6925
6926 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6927 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6928
6929 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6930 and f19.
6931 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6932
6933 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6934 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6935 Remove enumerators.
6936
6937 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6938 Check if FACE_FROM_ID returns NULL.
6939
69402008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6941
6942 * w32inevt.c (change_frame_size): Remove extern declaration.
6943 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6944 change_frame_size.
6945
69462008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6947
6948 * getloadavg.c: Revert last change (2008-07-15).
6949
69502008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6951
6952 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 6953 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
6954 from configure.
6955
69562008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
6957
6958 * s/sol2.h:
6959 * s/sol2-4.h: Reorganize conditionals.
6960
6961 * ecrt0.c: Remove code depending on m68000, not used anymore.
6962
6963 * fns.c (hash_remove): Make static.
6964 * lisp.h (hash_remove): Don't prototype.
6965
6966 * m/ibmrs6000.h:
6967 * m/ibms390x.h:
6968 * m/macppc.h: Remove boilerplate comments.
6969
6970 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6971 Solaris, which does not need them.
6972
6973 * m/vax.h: Remove comments about unsupported systems.
6974
6975 * s/darwin.h: Reorganize ifdefs.
6976
69772008-07-17 Andreas Schwab <schwab@suse.de>
6978
6979 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6980
69812008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
6982
6983 Use SDATA. Follow coding convention of placing operators at
6984 beginning of next line rather than end of previous line, and placing
6985 spaces around infix operators.
6986
6987 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
6988 in case it was defined already.
6989 USE @GNUSTEP_MAKEFILES@ rather than envvars.
6990 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
6991 ns_default.
6992 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
6993 Lisp_Objects.
6994 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
6995 (ns_defined_color, ns_color_to_lisp): Declare.
6996 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
6997 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
6998 it's accepted even with USE_LISP_UNION_TYPE.
6999 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7000 (update_frame_tool_bar): Remove apparently obsolete tests for
7001 non-integerness of f->tool_bar_lines.
7002 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7003 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7004 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7005 (nsfont_open): Don't confuse NULL for Qnil.
7006 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7007 * menu.h (find_and_call_menu_selection):
7008 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7009 (find_and_return_menu_selection): Always return something.
7010 * frame.h: Include dispextern.h for Display_Info.
7011 (display_x_get_resource): Declare.
7012
70132008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7014
7015 * syntax.c: Remove stdio.h include accidentally introduced in
7016 Emacs.app commit.
7017 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7018 NS_IMPL_COCOA.
7019 * keyboard.c (handle_async_input, input_available_signal): Remove
7020 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7021
70222008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7023
7024 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7025 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7026 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7027 Use SDATA.
7028
7029 * keymap.c: Remove all NS-specific code.
7030 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7031 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7032 where_is_preferred_modifier, return a different value depending on how
7033 preferred is the binding.
7034 (where_is_internal): Adjust accordingly.
7035 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7036 Adjust to new preferred_sequence_p.
7037 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7038 * keyboard.c (parse_solitary_modifier): Not static any more.
7039 * keyboard.h (parse_solitary_modifier): Declare.
7040
70412008-07-16 Andreas Schwab <schwab@suse.de>
7042
7043 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7044 of easymenu.
7045
70462008-07-16 Chong Yidong <cyd@stupidchicken.com>
7047
7048 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7049 that we don't move off the line.
7050
70512008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7052
7053 * keyboard.c (Qsuper): Remove.
7054 (parse_menu_item): Don't call where_is_internal specially for NS.
7055
70562008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7057
7058 * s/gnu-linux.h: Remove boilerplate comments.
7059
7060 * m/alpha.h (__ELF__): Consolidate conditions.
7061
7062 * m/m68k.h (linux): Use GNU_LINUX instead.
7063 Remove boilerplate comments.
7064
7065 * m/intel386.h: Undo refactoring from previous change.
7066 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7067 too, remove dead code.
7068 (linux): Use GNU_LINUX instead.
7069
70702008-07-16 Jason Rumney <jasonr@gnu.org>
7071
7072 * w32gui.h: Repeat 26 June changes lost by last change.
7073
70742008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7075
7076 * systty.h: Remove code for Aix on 386, unsupported platform.
7077
7078 * s/ms-w32.h: Remove boilerplate comments.
7079 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7080
7081 * s/gnu-linux.h (TERM): Remove support.
7082 (HAVE_SYSVIPC): Remove, unused.
7083 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7084 for this system.
7085
7086 * process.c: Remove support for IRIS, unused.
7087 Remove support for TERM, not relevant anymore.
7088
7089 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7090 used with the definition.
7091
7092 * s/aix4-2.h (static): Do not undef.
7093
7094 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7095 only used on Aix.
7096 (HAVE_SYSVIPC): Remove, unused.
7097
7098 * m/hp800.h (CANNOT_DUMP): Do not undef.
7099
7100 * m/alpha.h: Fix comment.
7101
7102 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7103 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7104 used by this configuration.
7105 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7106 * unexec.c: Remove code depending on HPUX and
7107 USG_SHARED_LIBRARIES, not used with this file. Remove code
7108 depending on IRIS, unused. Remove if 0-ed code.
7109
7110 * s/template.h: Remove comments about static.
7111
7112 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7113 Remove if 0-ed code.
7114 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7115 were the same as the default.
7116 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7117 Remove boilerplate comments.
7118 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7119 (HAVE_SYSVIPC): Remove, unused.
7120 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7121
7122 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7123 Remove boilerplate comments.
7124 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7125 Remove boilerplate comments.
7126 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7127 Remove boilerplate comments.
7128 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7129
7130 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7131 USG systems which do not use DATA_SEG_BITS.
7132 Refactor code. Remove boilerplate comments.
7133
7134 * m/ibms390.h:
7135 * m/m68k.h:
7136 * s/bsd-common.h:
7137 * s/cygwin.h:
7138 * s/darwin.h:
7139 * s/freebsd.h:
7140 * s/gnu.h:
7141 * s/msdos.h: Remove boilerplate comments.
7142
7143 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7144 do not use this file.
aac0c6e3
MR
7145 (IRIS_4D): Remove, unused.
7146
7147 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7148 do not use this file.
aac0c6e3
MR
7149 (SIGN_EXTEND_CHAR):
7150 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7151 * unexmips.c: Remove file, unused.
7152
7153 * editfns.c (Fuser_full_name): Replace the only use of
7154 USER_FULL_NAME with its value.
7155 * config.in: Regenerate.
7156
71572008-07-16 David Reitter <david.reitter@gmail.com>
7158
7159 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7160 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7161
71622008-07-16 Glenn Morris <rgm@gnu.org>
7163
7164 * emacs.c (system-type): Doc fix.
7165
71662008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7167
7168 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7169 If the cache doesn't work, let's fix it, rather than work around it.
7170
71712008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7172
7173 * Makefile.in: Correct additions for nsfont.o in last commit.
7174 * nsfont.m: New file (forgot last commit).
7175
71762008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7177
7178 * callproc.c (set_initial_environment): Initialize
7179 Vprocess_environment under CANNOT_DUMP (fixes crash when
7180 batch-compiling for bootstrap).
7181
71822008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7183 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7184
7185 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7186 fix crash due to different init order.
7187
71882008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7189
7190 Changes and additions for NeXTstep windowing system (Cocoa and
7191 GNUstep) support.
7192
7193 * Makefile.in:
7194 * config.in: Support defines and build commands for NS port.
7195 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7196 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7197 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7198 windowing.
7199 (struct face): Add synth_ital field.
7200 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7201 (init_display): Initialize Vinitial_window_system to "ns" when so
7202 compiled.
7203 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7204 (display_arg): Use under NS.
7205 (main): Under NS, allocate autorelease pool and handle command line
7206 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7207 (standard_args): Add NS-specific args.
7208 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7209 * font.c (DEFAULT_ENCODING): New variable.
7210 (font_find_for_lface): Use it.
7211 (syms_of_font): Load syms_of_nsfont under NS.
7212 * font.h: Declare nsfont_driver when compiled under NS.
7213 * fontset.c: When compiling under NS, include nsterm.h.
7214 (fontset_from_font): Autoconstruct fontset under NS.
7215 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7216 symbol, document and use it.
7217 (do_switch_frame): When for_deletion under Cocoa, add
7218 Fraise_frame(Qnil).
7219 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7220 (x_get_arg): Allow "yes" and "no" as boolean values.
7221 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7222 Qright under Cocoa.
7223 (focus-follows-mouse): Default to 0 under NS.
7224 * frame.h (enum output_method): Add output_ns.
7225 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7226 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7227 (FRAME_WINDOW_P): NS-specific definition.
7228 * fringe.c (max_used_fringe_bitmap): Make public.
7229 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7230 (getloadavg): Use NeXT code under descendant OS's.
7231 * image.c (includes and header section, x_create_bitmap_from_data)
7232 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7233 (image_background_transparent, x_clear_image_1)
7234 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7235 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7236 (x_to_xcolors, x_from_xcolors, x_disable_image)
7237 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7238 other GUIs, including XPM support using code originally written for
7239 Carbon GUI.
7240 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7241 using NS API.
7242 (image_ascent): Use font metrics macros instead of direct struct field
7243 access.
7244 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7245 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7246 Also, handle NS as GTK for menu bar purposes.
7247 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7248 toolkit where they differ.
7249 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7250 use cachelist, still needed under NS.
7251 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7252 (struct widget_value): Define it here for menu.c.
7253 * keymap.c (includes): Include modifier internals.
7254 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7255 NS.
7256 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7257 support for preferring sequences using certain modifiers, specified by
7258 the FIRSTONLY argument.
7259 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7260 under NS GNUstep implementation.
7261 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7262 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7263 * menu.c: Include nsterm.h under NS.
7264 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7265 (free_menubar_widget_tree_value, update_submenu_strings)
7266 (find_and_call_menu_selection): Treat NS as X and NT.
7267 (find_and_return_menu_selection): New function, used for popup menus.
7268 * nsgui.h:
7269 * nsterm.h:
7270 * nsfns.m:
7271 * nsimage.m:
7272 * nsmenu.m:
7273 * nsselect.m:
7274 * nsterm.m: New files.
7275 * process.c (wait_reading_process_output): Under NS, call ns_select()
7276 instead of plain select().
7277 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7278 beginning of buffer.
7279 * sysselect.h (init_process): Rename when compiling under Cocoa to
7280 avoid name conflict.
7281 * termhooks.h (display_info): Add ns_display_info to union.
7282 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7283 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7284 COCOA environment.
7285 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7286 unexec() signature. (Note, this will dump, but the resulting file
7287 crashes; unexosx is used instead; keeping around for reference and
7288 possible aid in getting dump working under GNUstep.)
7289 * w32gui.h (button_type, widget_value): Remove definitions (now in
7290 keyboard.h).
7291 * window.c: Include nsterm.h when compiling under NS.
7292 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7293 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7294 other GUI windowing systems.
7295 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7296 GTK.
7297 (x_consider_frame_title): Under NS, set icon type and frame
7298 modified-state indicator; use ns_set_name_as_filename() when using
7299 formatted title.
7300 (update_window_cursor): Make public when compiling under NS.
7301 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7302 (hourglass_atimer, Vhourglass_delay
7303 * xfaces.c (header section, init_frame_faces, clear_font_table)
7304 (defined_color, unload_color, x_face_list_fonts)
7305 (prepare_face_for_display): Add NS support parallel to other GUIs.
7306 Emulate GCs like other non-X GUIs.
7307 (split_font_name): Don't lowercase font name under NS.
7308 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7309 under NS.
7310 * s/darwin.h: Add support for compilation under NS.
7311
73122008-07-15 Jason Rumney <jasonr@gnu.org>
7313
7314 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7315 (w32_show_hourglass): Rename from show_hourglass.
7316 (w32_hide_hourglass): Rename from hide_hourglass.
7317 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7318 (Vhourglass_delay): Declare extern.
7319 (hourglass_started): Remove.
7320
7321 * xdisp.c (Vhourglass_delay): Remove static.
7322 (hourglass_started, start_hourglass, cancel_hourglass):
7323 Don't include these versions on WINDOWSNT.
7324
73252008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7326
7327 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7328 variables (formerly in xfns.c).
7329 (show_hourglass, hide_hourglass): New prototypes (same).
7330 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7331 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7332 in xfns.c).
7333 (syms_of_xdisp): Declare/initialize display-hourglass,
7334 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7335 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7336 formerly in xfns.c.
7337 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7338 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7339 (start_hourglass, cancel_hourglass): Remove.
7340 (show_hourglass, hide_hourglass): Remove prototypes and static
7341 modifiers.
7342 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7343 hourglass_atimer, hourglass_shown_p declaration/initialization.
7344 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7345 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7346 (start_hourglass, cancel_hourglass): Remove.
7347 (show_hourglass, hide_hourglass): Remove prototypes and static
7348 modifiers.
7349 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7350 hourglass_atimer, hourglass_shown_p declaration/initialization.
7351 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7352 (DEFAULT_HOURGLASS_DELAY): Remove.
7353 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7354 hourglass_shown_p declaration/initialization.
7355
73562008-07-14 Jason Rumney <jasonr@gnu.org>
7357
7358 * w32fns.c (w32_get_arg): Remove wrapper function.
7359 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7360 directly.
7361 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7362
73632008-07-14 Kenichi Handa <handa@m17n.org>
7364
7365 * xfont.c (xfont_open): Add workaround for X's bug.
7366
73672008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7368
7369 * fontset.c: Include <stdio.h> unconditionally.
7370
73712008-07-13 Michael Albinus <michael.albinus@gmx.de>
7372
7373 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7374 for filtering.
7375
73762008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7377
7378 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7379
7380 * m/macppc.h:
7381 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7382
7383 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7384 (SPECIAL_EMACS_INT):
7385 * m/ia64.h (SPECIAL_EMACS_INT):
7386 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7387 * s/gnu.h (NLIST_STRUCT):
7388 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7389 * s/gnu-linux.h (LINUX):
7390 * s/msdos.h (HAVE_FACES):
7391 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7392
7393 * systty.h:
7394 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7395 anymore.
7396
73972008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7398
7399 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7400 always defined as int.
7401
7402 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7403 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7404 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7405 * s/freebsd.h (HAVE_WAIT_HEADER):
7406 * s/bsd-common.h (HAVE_UNION_WAIT):
7407 * s/aix4-2.h (HAVE_WAIT_HEADER):
7408 * m/mips.h (HAVE_UNION_WAIT):
7409 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7410 (COFF, static): Do not define, they are undefined later in the file.
7411
7412 * process.c (update_status): Don't use a union.
7413 (status_convert):
7414 (sigchld_handler): Use int instead of WAITTYPE.
7415
74162008-07-12 Chong Yidong <cyd@stupidchicken.com>
7417
7418 * indent.c (Fvertical_motion): Restore hscroll before moving to
7419 goal column.
7420
74212008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7422
7423 * lisp.h: Remove left over code.
7424
74252008-07-11 Andreas Schwab <schwab@suse.de>
7426
7427 * lisp.h: Fix logic in last change.
7428
7429 * menu.h: New file.
7430 * menu.c: Include it.
7431 * xmenu.c: Likewise.
7432 * Makefile.in: Update dependencies.
7433
74342008-07-11 Kenichi Handa <handa@m17n.org>
7435
7436 * fontset.c (fontset_from_font): Cancel the previous change.
7437
74382008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7439
7440 * lisp.h:
7441 * w32heap.c:
7442 * emacs.c:
7443 * alloc.c: Replace all references of NO_UNION_TYPE with
7444 USE_LISP_UNION_TYPE.
7445
7446 * m/xtensa.h (NO_UNION_TYPE):
7447 * m/vax.h (NO_UNION_TYPE):
7448 * m/template.h (NO_UNION_TYPE):
7449 * m/sparc.h (NO_UNION_TYPE):
7450 * m/mips.h (NO_UNION_TYPE):
7451 * m/macppc.h (NO_UNION_TYPE):
7452 * m/m68k.h (NO_UNION_TYPE):
7453 * m/iris4d.h (NO_UNION_TYPE):
7454 * m/intel386.h (NO_UNION_TYPE):
7455 * m/ibms390x.h (NO_UNION_TYPE):
7456 * m/ibms390.h (NO_UNION_TYPE):
7457 * m/ibmrs6000.h (NO_UNION_TYPE):
7458 * m/ia64.h (NO_UNION_TYPE):
7459 * m/hp800.h (NO_UNION_TYPE):
7460 * m/arm.h (NO_UNION_TYPE):
7461 * m/amdx86-64.h (NO_UNION_TYPE):
7462 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7463 defining it the same.
7464
74652008-07-10 Chong Yidong <cyd@stupidchicken.com>
7466
7467 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7468
74692008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7470
7471 * fileio.c:
7472 * sysdep.c
7473 * systty.h:
7474 * m/ibmrs6000.h:
7475 * m/iris4d.h:
7476 * s/aix4-2.h:
7477 * s/freebsd.h:
7478 * s/gnu-linux.h:
7479 * s/hpux10-20.h:
7480 * s/hpux11.h:
7481 * s/netbsd.h:
7482 * s/sol2-3.h:
7483 * s/sol2-4.h:
7484 * s/sol2.h:
7485 * s/usg5-4.h:
7486 * s/vms.h: Remove references to unused variables.
7487
74882008-07-10 Andreas Schwab <schwab@suse.de>
7489
7490 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7491 pattern before matching the generic family.
7492
74932008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7494
7495 * unexec.c:
7496 * s/vms.h:
7497 * s/usg5-4-2.h:
7498 * s/sol2-5.h:
7499 * s/freebsd.h:
7500 * s/darwin.h: Remove dead code.
7501
7502 * m/template.h:
7503 * m/sparc.h:
7504 * m/mips.h:
7505 * m/m68k.h:
7506 * m/iris4d.h:
7507 * m/intel386.h:
7508 * m/ibms390x.h:
7509 * m/ibms390.h:
7510 * m/ia64.h:
7511 * m/hp800.h:
7512 * m/arm.h:
7513 * m/amdx86-64.h: Remove dead code and references to unused
7514 and compiler defined symbols.
7515
7516 * unexmips.c:
7517 * unexelf.c: Remove references to desupported systems.
7518
7519 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7520
7521 * m/powermac.h: Remove boilerplate comments.
7522 (NO_REMAP): Remove unused definition.
7523
7524 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7525 define them.
7526
75272008-07-10 Kenichi Handa <handa@m17n.org>
7528
7529 * xfont.c (xfont_open): Log the reason of failure.
7530
75312008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7532
7533 * fontset.c (fontset_get_font_group):
7534 * font.c (font_check_otf): Specify argument types.
7535
75362008-07-09 Kenichi Handa <handa@m17n.org>
7537
7538 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7539 non-ASCII char is found.
7540
7541 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7542 (reorder_font_vector): Change the arg preferred_family to font.
7543 Prefer the spec matching with font.
7544 (fontset_get_font_group): New function.
7545 (fontset_find_font): Change the format of an element of a realized
7546 fontset. Use fontset_get_font_group.
7547 (fontset_font): Try the current fontset, the default fontset, the
7548 fallbacks of the current fontset, and the fallbacks of the default
7549 fontset in this order.
7550 (face_for_char): Delete the shortcut to use the current font.
7551 (fontset_from_font): Don't set fonts for Latin in the fontset.
7552
7553 * font.h (font_make_object, font_match_p): Adjust prototypes.
7554
7555 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7556
7557 * font.c (font_make_object): New arg entity and pixelsize.
7558 (font_check_otf_features, font_check_otf): New functions.
7559 (font_match_p): Check :lang, :script, and :otf properties.
7560
7561 * xfont.c (xfont_open): Adjust it for the change of
7562 font_make_object.
7563 (xfont_text_extents): Fix initial setting of metrics.
7564
7565 * ftfont.c (struct ftfont_info): New member index, delete member
7566 fc_charset_idx. Make the member order compatible with struct
7567 xftfont_info.
7568 (fc_charset_table): Change charset names to registry names.
7569 (ftfont_pattern_entity): Delete the args registry and
7570 fc_charset_idx. Change the value of :font-entity property
7571 to (FONTNAME . INDEX). Always set :registry property to
7572 `iso10646-1'.
7573 (struct ftfont_cache_data): New struct.
7574 (ftfont_lookup_cache): New arg for_face.
7575 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7576 (ftfont_driver): Set the member otf_capability.
7577 (ftfont_get_charset): Adjust it for the change of
7578 fc_charset_table.
7579 (OTF_TAG_SYM): New macro.
7580 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7581 for the change of fc_charset_table.
7582 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7583 ftfont_pattern_entity. Add FC_INDEX to objset.
7584 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7585 and ftfont_pattern_entity.
7586 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7587 font_make_object, struct ftfont_info.
7588 (ftfont_has_char): Use ftfont_get_fc_charset.
7589 (ftfont_otf_features, ftfont_otf_capability): New functions.
7590 (ftfont_shape): Use ftfont_get_otf.
7591 (ftfont_text_extents): Fix initial setting of metrics.
7592
7593 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7594 member order compatible with struct ftfont_info.
7595 (xftfont_open): Add FC_CHARSET to the pattern. Set
7596 xftfont_info->ft_size. Don't unlock the face. Check BDF
7597 properties if appropriate.
7598 (xftfont_close): Unlock the face.
7599 (xftfont_anchor_point, xftfont_shape): Deleted.
7600 (syms_of_xftfont): Don't set members anchor_point and shape of
7601 xftfont_driver.
7602
7603 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7604 font_make_object.
7605
7606 * w32font.c (w32font_open): Adjust it for the change of
7607 font_make_object.
7608 (w32font_open_internal): Don't set properties of font_object here.
7609
76102008-07-08 Chong Yidong <cyd@stupidchicken.com>
7611
7612 * macfns.c (x_create_tip_frame):
7613 * w32fns.c (x_create_tip_frame):
7614 * xfns.c (x_create_tip_frame): Pass parameter argument to
7615 face-set-after-frame-default.
7616
7617 * xfaces.c (Finternal_merge_in_global_face): Save merged
7618 attributes for the default face back into the face vector.
7619
76202008-07-08 Andreas Schwab <schwab@suse.de>
7621
7622 * fontset.h: Declare fontset_from_font. Don't declare
7623 new_fontset_from_font and fontset_from_font_name.
7624 * xterm.c: Include "fontset.h".
7625 * Makefile.in (xterm.o): Update dependencies.
7626
76272008-07-08 Glenn Morris <rgm@gnu.org>
7628
7629 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7630 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7631
76322008-07-07 Chong Yidong <cyd@stupidchicken.com>
7633
7634 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7635 (x_set_frame_parameters): Don't bind it.
7636
76372008-07-07 Juanma Barranquero <lekktu@gmail.com>
7638
7639 * w32fns.c (map_w32_filename): Declare extern.
7640
76412008-07-07 Jason Rumney <jasonr@gnu.org>
7642
7643 * w32term.c (WS_EX_LAYERED): Define if not already.
7644
76452008-07-06 Chong Yidong <cyd@stupidchicken.com>
7646
7647 * xfaces.c (set_font_frame_param): Don't try to set the font
7648 parameter if it is still unspecified in the lface.
7649
76502008-07-05 Chong Yidong <cyd@stupidchicken.com>
7651
7652 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7653 face if it didn't already exist.
7654
7655 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7656
76572008-07-05 Andreas Schwab <schwab@suse.de>
7658
7659 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7660
76612008-07-05 Chong Yidong <cyd@stupidchicken.com>
7662
7663 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7664 word-wrapping.
7665 (IT_DISPLAYING_WHITESPACE): New macro.
7666 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7667 when word-wrapping. Simplify word-wrapping logic. Use correct
7668 pixel positions when saving copies of the iterator.
7669 (display_line): Use proper wrap point if the last character on a
7670 line was preceded by whitespace.
7671
76722008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7673
7674 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7675
76762008-07-04 Kenichi Handa <handa@m17n.org>
7677
7678 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7679
7680 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7681
76822008-07-02 Jason Rumney <jasonr@gnu.org>
7683
7684 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7685 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7686
7687 * xdisp.c (next_element_from_display_vector): Move assignment out
7688 of if statement.
7689
76902008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7691
7692 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7693
7694 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7695 (syms_of_fileio): Initialize and export them.
7696 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7697
7698 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7699 (Fsystem_move_file_to_trash): New function.
7700 (syms_of_w32fns): Export it to lisp.
7701
77022008-07-01 Jason Rumney <jasonr@gnu.org>
7703
7704 * w32font.c (w32font_text_extents): Don't count overhang as part
7705 of width.
7706
77072008-06-30 Miles Bader <miles@gnu.org>
7708
7709 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7710 Add `avoid_cursor_p' field.
7711
7712 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7713 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7714 (append_glyph, append_composite_glyph, produce_image_glyph)
7715 (append_stretch_glyph): Initialize avoid_cursor_p.
7716 (get_it_property): Rename from `get_line_height_property'.
7717 (x_produce_glyphs): Use get_it_property.
7718 (handle_line_prefix, push_display_prop): New functions.
7719 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7720 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7721 New variables.
7722 (syms_of_xdisp): Initialize them.
7723
77242008-06-30 Kenichi Handa <handa@m17n.org>
7725
7726 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7727 XftDefaultSubstitute (they are called in XftFontMatch).
7728 (xftfont_open): Fix args to ftfont_font_format.
7729
7730 * ftfont.c (fc_charset_table): New member lang.
7731 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7732 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7733 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7734 (ftfont_open): Fix args to ftfont_font_format.
7735 (ftfont_font_format): New arg filename.
7736
77372008-06-30 Chong Yidong <cyd@stupidchicken.com>
7738
7739 * xfaces.c (Finternal_merge_in_global_face): If default face was
7740 modified, realize it again. Update the font face attribute.
7741
77422008-06-29 Jason Rumney <jasonr@gnu.org>
7743
7744 * w32term.c (x_set_frame_alpha): Fix logic.
7745
77462008-06-29 Kenichi Handa <handa@m17n.org>
7747
7748 * fontset.c (Finternal_char_font): Return font-object instead of
7749 font-name.
7750
7751 * composite.c (get_composition_id): Fix the width calculation for TAB.
7752
77532008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7754
7755 * indent.c (Fvertical_motion): Properly handle float column arg.
7756
77572008-06-28 Jason Rumney <jasonr@gnu.org>
7758
7759 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7760 (pfnSetLayeredWindowAttributes): New function pointer.
7761 (w32_initialize): Initialize it when supported.
7762 (x_set_frame_alpha): New function.
7763
7764 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7765 (w32_frame_parm_handlers): Set alpha handler.
7766
7767 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7768
77692008-06-27 Jason Rumney <jasonr@gnu.org>
7770
7771 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7772 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7773 (w32_to_x_charset, x_to_w32_charset)
7774 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7775 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7776 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7777 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7778 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7779 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7780 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7781 (Qw32_charset_unicode): Remove.
7782 (syms_of_w32fns): Update for above changes.
7783
7784 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7785 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7786 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7787 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7788 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7789 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7790 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7791 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7792 (syms_of_w32font): Update for above changes.
7793
77942008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7795
7796 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7797 removed #if.
7798 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7799
78002008-06-26 Juanma Barranquero <lekktu@gmail.com>
7801 Eli Zaretskii <eliz@gnu.org>
7802
7803 * makefile.w32-in (LOCAL_FLAGS):
7804 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7805
7806 * sysdep.c (_spawnlp, _getpid):
7807 Declare with explicit _cdecl instead of _CRTAPI1.
7808
7809 * editfns.c (Fget_internal_run_time):
7810 Check for WINDOWSNT with #ifdef, not #if.
7811
78122008-06-26 Jason Rumney <jasonr@gnu.org>
7813
7814 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7815
7816 * w32term.c (x_draw_glyph_string_foreground)
7817 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7818 Use FONT_HANDLE macro.
7819 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7820
7821 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7822 (uniscribe_encode_char): Use FONT_HANDLE macro.
7823
7824 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7825 (w32font_text_extents): Use precast w32_font.
7826 (w32font_close): Free cached metrics.
7827 (w32font_open_internal): Allocate space for name on stack.
7828
78292008-06-26 Chong Yidong <cyd@stupidchicken.com>
7830
7831 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7832
78332008-06-26 Jason Rumney <jasonr@gnu.org>
7834
7835 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7836 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7837
78382008-06-26 Juanma Barranquero <lekktu@gmail.com>
7839
7840 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7841
78422008-06-26 Jason Rumney <jasonr@gnu.org>
7843
7844 * w32bdf.c, w32bdf.h: Remove obsolete files.
7845
7846 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7847
7848 * w32gui.h: Don't include w32bdf.h.
7849 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7850 Remove obsolete font support.
7851
7852 * w32font.h (struct w32font_info): Remove compat_w32_font.
7853 Add hfont member.
7854 (FONT_COMPAT): Remove obsolete macro.
7855
7856 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7857 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7858 (w32font_open_internal): Remove compat code. Set new hfont member.
7859 (Fx_select_font): Use new hfont member.
7860
7861 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7862 (uniscribe_encode_char): Use new hfont member.
7863
7864 * w32term.c (x_draw_glyph_string_foreground)
7865 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7866 (x_draw_glyph_string): Use metrics in w32font_info.
7867
78682008-06-26 Kenichi Handa <handa@m17n.org>
7869
7870 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7871
78722008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7873
7874 * unexnext.c:
7875 * m/ews4800.h:
7876 * m/hp9000s300.h:
7877 * m/ibm370aix.h:
7878 * m/mips-siemens.h:
7879 * m/ncr386.h:
7880 * m/next.h:
7881 * m/pmax.h:
7882 * m/powerpcle.h:
7883 * m/tandem-s2.h:
7884 * s/386bsd.h:
7885 * s/bsd386.h:
7886 * s/bsd4-1.h:
7887 * s/bsd4-2.h:
7888 * s/bsdos2-1.h:
7889 * s/bsdos2.h:
7890 * s/bsdos3.h:
7891 * s/bsdos4.h:
7892 * s/nextstep.h:
7893 * s/ultrix4-3.h:
7894 * s/usg5-0.h:
7895 * s/usg5-2-2.h:
7896 * s/usg5-2.h:
7897 * s/usg5-4-3.h:
7898 * s/ux4800.h:
7899 * s/uxpds.h:
7900 * s/uxpv.h: Remove support for obsolete systems.
7901 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 7902 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
7903 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7904 Remove, insert contents in s/aix4-2.h.
7905 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7906 * s/bsd4-3.h: Rename to ...
7907 * s/bsd-common.h: ... this.
7908 * data.c:
7909 * doc.c:
7910 * ecrt0.c:
7911 * emacs.c:
7912 * fileio.c:
7913 * floatfns.c:
7914 * keyboard.c:
7915 * mem-limits.h:
7916 * print.c:
7917 * process.c:
7918 * sysdep.c:
7919 * syssignal.h:
7920 * systty.h:
7921 * syswait.h:
7922 * term.c:
7923 * unexec.c:
7924 * unexelf.c:
7925 * unexhp9k800.c:
7926 * m/hp800.h:
7927 * m/ibmrs6000.h:
7928 * m/mips.h:
7929 * m/vax.h:
7930 * s/darwin.h:
7931 * s/freebsd.h:
7932 * s/gnu.h:
7933 * s/ms-w32.h:
7934 * s/msdos.h:
7935 * s/netbsd.h:
7936 * s/template.h: Remove references to obsolete variables.
7937
7938 * Makefile.in: Add dependencies for all unexec files.
7939 (admindir): Remove unused variable.
7940 (UNEXEC_SRC): Remove references.
7941
79422008-06-25 Chong Yidong <cyd@stupidchicken.com>
7943
7944 * xfns.c (x_default_font_parameter): If Xft is available, first
7945 try Monospace-12 for the default font.
7946
79472008-06-25 Jason Rumney <jasonr@gnu.org>
7948
7949 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7950
79512008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7952
7953 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7954
7955 * buffer.c (syms_of_buffer): Remove default-word-wrap.
7956
79572008-06-25 Juanma Barranquero <lekktu@gmail.com>
7958
7959 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7960 <scroll-conservatively>: Fix typo in docstring.
7961
7962 * xselect.c (Fx_send_client_event): Doc fix.
7963
79642008-06-25 Kenichi Handa <handa@m17n.org>
7965
7966 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7967
7968 * font.c (font_parse_fcname): Remove unused variables.
7969 (font_sort_entites): Delete the arg SPEC. Caller changed.
7970 Fix for the case of ! best_only.
7971 (font_delete_unmatched): Check DPI and AVGWIDTH too.
7972
7973 * lisp.h (Fstring_to_unibyte): EXFUN it.
7974
7975 * character.h (str_to_unibyte): Extern it.
7976
7977 * character.c (str_to_unibyte): New function.
7978
7979 * fns.c (Fstring_to_unibyte): New function.
7980 (syms_of_fns): Defsubr it.
7981
79822008-06-24 Kenichi Handa <handa@m17n.org>
7983
7984 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
7985 DPI too.
7986 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
7987
79882008-06-24 Andreas Schwab <schwab@suse.de>
7989
7990 * Makefile.in (${lispsource}loaddefs.el): Rename from
7991 ../lisp/loaddefs.el.
7992 (bootstrap-clean): Do what distclean does but don't remove
7993 Makefile.
7994 (distclean): Depend on bootstrap-clean and remove Makefile.
7995
79962008-06-24 Chong Yidong <cyd@stupidchicken.com>
7997
7998 * buffer.h (struct buffer): New member word_wrap.
7999
8000 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8001 word-wrap.
8002 (init_buffer_once): Initialize them.
8003
8004 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8005 line_wrap enum possessing three possible values.
8006
8007 * termopts.h: Replace truncate_partial_width_windows with
8008 Vtruncate_partial_width_windows.
8009
8010 * dispnew.c (direct_output_for_insert): Avoid direct output when
8011 inserting a space with word wrap on.
8012
8013 * indent.c (compute_motion): Obey integer values of
8014 truncate-partial-width-windows.
8015
8016 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8017 replacing truncate_partial_width_windows.
8018 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8019 truncate only if the window width is below that integer.
8020 (start_display, resize_mini_window, produce_stretch_glyph)
8021 (display_string, move_it_in_display_line_to): Use line_wrap.
8022 (back_to_previous_visible_line_start, reseat_1): Reset
8023 string_from_display_prop_p.
8024 (display_line): Extend default face to end of line when wrapping.
8025
80262008-06-24 Kim F. Storm <storm@cua.dk>
8027
8028 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8029 to wrap continued lines at word boundaries.
8030
80312008-06-24 Jason Rumney <jasonr@gnu.org>
8032
8033 * font.c (Ffont_face_attributes): Multiply pixel size before point
8034 conversion to avoid multiplying rounding error.
8035
80362008-06-23 Jason Rumney <jasonr@gnu.org>
8037
8038 * w32term.c (x_draw_glyph_string_background)
8039 (x_draw_glyph_string): Remove old bdf font code.
8040
8041 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8042
80432008-06-22 Kenichi Handa <handa@m17n.org>
8044
8045 * font.c (font_find_for_lface): Try the adstyle specified in
8046 the property of LFACE_FONT of LFACE (if any).
8047
80482008-06-21 Seiji Zenitani <zenitani@mac.com>
8049 Ryo Yoshitake <ryo@shiftmode.net>
8050
8051 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8052
80532008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8054
8055 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8056 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8057 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8058 (witness-emacs): Remove.
8059 (lisp, shortlisp): Move loaddefs.el earlier.
8060 (mostlyclean): Forget about witness-emacs.
8061
80622008-06-22 Glenn Morris <rgm@gnu.org>
8063
8064 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8065 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8066
80672008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8068
8069 * Makefile.in (PRECOMP): Remove.
8070 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8071 (witness-emacs): Run `compile-first'.
8072 (.el.elc): Use the new compile-onefile target.
8073
80742008-06-21 Kenichi Handa <handa@m17n.org>
8075
8076 * xftfont.c (xftfont_open): Handle QCembolden only when
8077 FC_EMBOLDEN is defined.
8078
80792008-06-21 Andreas Schwab <schwab@suse.de>
8080
8081 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8082 (.el.elc): Likewise.
8083
80842008-06-21 Miles Bader <miles@gnu.org>
8085
8086 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8087 build dir, not the lisp source dir.
8088
80892008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8090
8091 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8092 (bootstrapclean): Remove.
8093 (.el.elc): New rule.
8094 (PRECOMP): New var.
8095 (../lisp/subdirs.el): Remove.
8096 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8097 (witness-emacs): New target.
8098 (mostlyclean): Remove witness-emacs as well.
8099 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8100 Add witness-emacs dependency.
8101
81022008-06-20 Chong Yidong <cyd@stupidchicken.com>
8103
8104 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8105 defined by the font.
8106
81072008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8108
8109 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8110 (bootstrap-clean): New target that keeps TAGS around.
8111 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8112 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8113
81142008-06-20 Jason Rumney <jasonr@gnu.org>
8115
8116 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8117 Remove obsolete font code.
8118
8119 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8120 to determine language support.
8121
81222008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8123
8124 * sysdep.c (cfsetspeed): New fun extracted from the code.
8125 (cfmakeraw): Move before first use.
8126
81272008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8128
8129 * sysdep.c (cfmakeraw): Provide fallback implementation.
8130 (serial_configure): Provide fallback implementation of cfsetspeed.
8131
81322008-06-20 Kenichi Handa <handa@m17n.org>
8133
8134 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8135 the pattern.
8136
8137 * fontset.c (fontset_from_font): Copy font_spec before changing
8138 the elements.
8139
8140 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8141
81422008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8143
8144 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8145 for explicit `font' parameters.
8146
8147 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8148
81492008-06-19 Kenichi Handa <handa@m17n.org>
8150
8151 * frame.c: Include <ctype.h>.
8152 (x_set_font_backend): Allow spacing characters in the X resource
8153 for FontBackend.
8154
81552008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8156
8157 * w32fns.c, xfns.c (Qfont_param): New var.
8158 (syms_of_w32fns): Initialize it.
8159 (x_default_font_parameter): Record explicit `font' into
8160 `font-parameter'.
8161
81622008-06-18 Kenichi Handa <handa@m17n.org>
8163
8164 * font.c (font_parse_xlfd): Fix previous change.
8165 (font_parse_fcname): Don't use :fc-unknown-spec.
8166 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8167 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8168 (font_add_log): Prepend the driver name to the resulting fonts.
8169
8170 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8171 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8172 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8173
8174 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8175 (QCembolden): New variables.
8176 (syms_of_xftfont): DEFSYM them.
8177 (xftfont_open): Call XftFontMatch. Don't trust the result of
8178 XftTextExtents8 if the pixel_size is less than 5.
8179
81802008-06-18 Andreas Schwab <schwab@suse.de>
8181
8182 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8183 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8184
81852008-06-18 Jason Rumney <jasonr@gnu.org>
8186
8187 * w32font.c (w32font_list, w32font_match): Add logging.
8188
8189 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8190
81912008-06-17 Chong Yidong <cyd@stupidchicken.com>
8192
8193 * font.c (font_parse_fcname): Store divider characters for
8194 unknown-spec list. For known key symbols, intern using correct
8195 symbol name.
8196
81972008-06-17 Kenichi Handa <handa@m17n.org>
8198
8199 * xfaces.c (realize_default_face): If the frame is not on window
8200 system, set the fontset of face to nil.
8201
82022008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8203
8204 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8205
82062008-06-16 Juanma Barranquero <lekktu@gmail.com>
8207
8208 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8209 (build_font_name_from_vector): Delete externs.
8210
8211 * xfaces.c (struct font_name): Don't declare.
8212
82132008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8214
8215 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8216
82172008-06-16 Chong Yidong <cyd@stupidchicken.com>
8218
8219 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8220
82212008-06-16 Juanma Barranquero <lekktu@gmail.com>
8222
8223 * font.c (Ffont_spec): Fix usage in docstring.
8224 (Ffont_face_attributes): Doc fix.
8225
82262008-06-16 Andreas Schwab <schwab@suse.de>
8227
8228 * font.c (Ffont_face_attributes): Fix definition.
8229
82302008-06-16 Jason Rumney <jasonr@gnu.org>
8231
8232 * font.h (font_style_symbolic_from_value): Remove.
8233
8234 * font.c (font_style_symbolic_from_value): Remove.
8235 (font_style_symbolic): Revert to pre 2008-06-13 version.
8236
8237 * w32font.c (w32_to_fc_weight): New function.
8238 (w32font_full_name, logfont_to_fcname): Use it.
8239
82402008-06-16 Kenichi Handa <handa@m17n.org>
8241
8242 * font.c (font_check_object): Delete it.
8243 (font_clear_cache): Check if a font-object is alive.
8244 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8245 font-object to nil.
8246 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8247 (font_at): Don't call font_check_object.
8248 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8249
82502008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8251
8252 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8253
82542008-06-16 Chong Yidong <cyd@stupidchicken.com>
8255
8256 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8257
82582008-06-15 Chong Yidong <cyd@stupidchicken.com>
8259
8260 * font.c (font_parse_fcname): Only one decimal point.
8261 (font_unparse_fcname): Handle data in family and foundry indices
8262 as symbols, not strings.
8263 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8264
8265 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8266
8267 * font.h (font_unparse_gtkname): Add prototype.
8268
82692008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8270
8271 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8272
82732008-06-15 Andreas Schwab <schwab@suse.de>
8274
8275 * font.c (font_update_drivers): Fix crash when no drivers match.
8276
82772008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8278
8279 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8280 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8281
82822008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8283
8284 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8285
82862008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8287
8288 * process.c (Fserial_process_configure, Fprocess_send_eof):
8289 Use EQ to compare Lisp_Objects.
8290
82912008-06-13 Jason Rumney <jasonr@gnu.org>
8292
8293 * w32fns.c (Fw32_select_font): Remove old font API function.
8294
8295 * w32font.c (logfont_to_fcname): New function.
8296 (Fx_select_font): New font dialog function compatible with
8297 GTK/fontconfig version.
8298
8299 * font.c (font_style_symbolic_from_value): New function.
8300 (font_style_symbolic): Use it.
8301
8302 * font.h (font_style_symbolic_from_value): Declare new function.
8303
83042008-06-13 Juanma Barranquero <lekktu@gmail.com>
8305
8306 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8307 <font-width-table>: Fix typos in docstrings.
8308
83092008-06-13 Daniel Engeler <engeler@gmail.com>
8310
8311 These changes add serial port access.
8312 * process.c: Add HAVE_SERIAL.
8313 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8314 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8315 (list_processes_1, select_wrapper, Fstop_process)
8316 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8317 (status_notify): Modify to handle serial processes.
8318 [HAVE_SERIAL] (Fserial_process_configure)
8319 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8320 New functions.
8321 * process.h (struct Lisp_Process): Add `type'.
8322 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8323 New functions.
8324 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8325 serial ports.
b71ac3dd 8326 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8327 * w32.h: Add FILE_SERIAL.
8328 (struct _child_process): Add ovl_read, ovl_write.
8329
83302008-06-13 Kenichi Handa <handa@m17n.org>
8331
8332 * dispextern.h (enum lface_attribute_index): New member
8333 LFACE_FOUNDRY_INDEX.
8334
8335 * font.c (font_score): Delete arg alternate_families. Check only
8336 weight, slant, width, and size. Ignore the difference of alias
8337 style symbols.
8338 (font_sort_entites): Adjust for the above change. Reflect the
8339 order of font-driver to scores.
8340 (font_list_entities): Don't check alternate_familes here.
8341 (font_clear_prop): Handle foundry.
8342 (font_update_lface): Don't parse "foundry-family" form here.
8343 Handle FONT_FOUNDRY_INDEX.
8344 (font_find_for_lface): Likewise. Handle alternate families here.
8345 If registry is nil, try iso8859-1 and ascii-0.
8346 (font_open_for_lface): Pay attention to size in ENTITY.
8347 (font_open_by_name): Simplify by calling font_load_for_lface.
8348 (free_font_driver_list): Delete it.
8349 (font_update_drivers): Preserve the order of backends.
8350 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8351 of font_score and font_sort_entites.
8352 (font_update_sort_order): Likewise.
8353
8354 * xfaces.c (LFACE_FOUNDRY): New macro.
8355 (check_lface_attrs): Check foundry.
8356 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8357 (merge_face_vectors): Check foundry.
8358 (merge_face_ref): Likewise.
8359 (Finternal_set_lisp_face_attribute): Likewise.
8360 (x_update_menu_appearance): Likewise.
8361 (Finternal_get_lisp_face_attribute): Likewise.
8362 (lface_hash): Likewise.
8363 (lface_same_font_attributes_p): Likewise.
8364 (x_supports_face_attributes_p): Likewise.
8365 (tty_supports_face_attributes_p): Likewise.
8366 (Finternal_set_alternative_font_family_alist): Intern strings.
8367 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8368 (realize_default_face): Set LFACE_FOUNDRY (lface).
8369
8370 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8371 font-driver at first.
8372
8373 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8374
83752008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8376
8377 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8378
83792008-06-12 Jim Meyering <meyering@redhat.com>
8380
8381 Make unexec_free handle NULL the same way free does.
8382 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8383
83842008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8385
8386 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8387 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8388 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8389 (WEAK_ALIAS): Simplify.
8390 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8391 when searching a unibyte buffer.
8392
83932008-06-12 Chong Yidong <cyd@stupidchicken.com>
8394
8395 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8396
83972008-06-12 Juanma Barranquero <lekktu@gmail.com>
8398
8399 * w32font.c: Include ctype.h.
8400
84012008-06-11 Jason Rumney <jasonr@gnu.org>
8402
8403 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8404 misreported as space.
8405 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8406 as aliases for registry iso10646-1.
8407
84082008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8409
8410 * buffer.c (clone_per_buffer_values): Skip `name'.
8411
84122008-06-11 Chong Yidong <cyd@stupidchicken.com>
8413
8414 * font.c (font_parse_fcname): Fix last change; accept decimal
8415 points in font size.
8416
84172008-06-10 Jason Rumney <jasonr@gnu.org>
8418
8419 * w32uniscribe.c (add_opentype_font_name_to_list):
8420 Skip non unicode fonts.
8421
84222008-06-10 Chong Yidong <cyd@stupidchicken.com>
8423
8424 * xfns.c (Fx_font_dialog): New function.
8425
8426 * gtkutil.c (xg_dialog_response_cb): Rename from
8427 xg_file_response_callback.
8428 (pop_down_dialog): Rename from pop_down_file_dialog.
8429 (xg_get_file_name): Callers changed.
8430 (xg_get_font_name): New function.
8431
8432 * gtkutil.h (xg_get_font_name): Insert prototype.
8433
84342008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8435
8436 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8437 x_underline_minimum_display_offset.
8438 (syms_of_xdisp): Declare it here rather than in xterm.c.
8439 * dispextern.h (underline_minimum_offset): Declare it.
8440 * w32term.c (x_draw_glyph_string): Use it.
8441 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8442 (syms_of_xterm): Don't declare it any more.
8443 (x_draw_glyph_string): Adjust to the new name.
8444
84452008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8446
8447 * xterm.c (x_underline_minimum_display_offset): New var.
8448 (x_draw_glyph_string): Use it.
8449 (syms_of_xterm): Declare it.
8450
84512008-06-10 Chong Yidong <cyd@stupidchicken.com>
8452
8453 * font.c (font_parse_fcname): Accept GTK-style font names too.
8454
84552008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8456
8457 * dired.c (file_name_completion): Don't return t if the match is exact
8458 but with different capitalization.
8459 * minibuf.c (Ftry_completion): Simplify.
8460
8461 * window.c (Vwindow_point_insertion_type): New var.
8462 (set_window_buffer): Use it.
8463 (syms_of_window): Init and export it to Lisp.
8464
84652008-06-10 Kenichi Handa <handa@m17n.org>
8466
8467 * font.h (font_intern_prop): Prototype adjusted.
8468
8469 * font.c (font_intern_prop): New arg force_symbol.
8470 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8471 Adjust for the change of font_intern_prop.
8472
8473 * ftfont.c (ftfont_pattern_entity):
8474 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8475 (w32_registry):
8476 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8477 the change of font_intern_prop.
8478
84792008-06-09 Juanma Barranquero <lekktu@gmail.com>
8480
8481 * w32menu.c (digest_single_submenu): Declare extern.
8482
84832008-06-09 Jason Rumney <jasonr@gnu.org>
8484
8485 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8486
8487 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8488 (parse_single_submenu): Remove.
8489 (digest_single_submenu): Remove.
8490 (syms_of_w32menu): Don't initialise variables that have moved
8491 to menu.c.
8492 (set_frame_menubar): Sync with version in xmenu.c.
8493 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8494
8495 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8496 Make static again.
8497
84982008-06-09 Jason Rumney <jasonr@gnu.org>
8499
8500 Changes to w32 files related to the move of common menu code
8501 to menu.c on 2008-06-08 by Chong Yidong.
8502
8503 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8504 defs to w32gui.h.
8505 (single_keymap_panes, push_menu_item, push_menu_pane):
8506 Make globally visible.
8507
8508 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8509 (local_free, malloc_widget_value, free_widget_value)
8510 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8511 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8512 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8513 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8514 (menu_items, menu_items_allocated, menu_items_used)
8515 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8516 (init_menu_items, finish_menu_items, discard_menu_items)
8517 (grow_menu_items, push_submenu_start, push_submenu_end)
8518 (push_left_right_boundary, push_menu_pane, push_menu_item)
8519 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8520 (free_menubar_widget_tree_value, parse_single_submenu)
8521 (update_submenu_strings): Remove functions.
8522 (xmalloc_widget_value): Remove and declare extern.
8523
8524 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8525 (OBJ1): Build it.
8526
8527 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8528 (local_heap, local_alloc, local_free, malloc_widget_value)
8529 (free_widget_value): Define here.
8530
85312008-06-09 Kenichi Handa <handa@m17n.org>
8532
8533 * font.h (Qascii_0): Extern it.
8534
8535 * font.c (Qascii_0): New variable.
8536 (syms_of_font): DEFSYM it.
8537 (font_open_by_name): If the registry "iso8859-1" fails, try also
8538 "ascii-0".
8539
8540 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8541
85422008-06-08 Kenichi Handa <handa@m17n.org>
8543
8544 * .gdbinit (xfont): New command.
8545
85462008-06-08 Andreas Schwab <schwab@suse.de>
8547
8548 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8549 * Makefile.in (menu.o): Update dependencies.
8550
8551 * Makefile.in (obj): Always add menu.o.
8552 * emacs.c (main): Always call syms_of_menu.
8553 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8554
85552008-06-08 Chong Yidong <cyd@stupidchicken.com>
8556
8557 * Makefile.in: Compile menu.c.
8558
8559 * lisp.h: Declare syms_of_menu.
8560
8561 * emacs.c (main): Call syms_of_menu.
8562
8563 * keyboard.h: Relocate platform-independent menu definitions from
8564 xmenu.c.
8565
8566 * menu.c: New file. Relocate platform-independent menu
8567 definitions from xmenu.c. Suggested by Adrian Robert.
8568
8569 * xmenu.c: Remove platform-independent menu definitions.
8570 (menu_items menu_items_inuse, menu_items_allocated)
8571 (menu_items_used, menu_items_n_panes)
8572 (menu_items_submenu_depth): Move to keyboard.h.
8573 (init_menu_items, finish_menu_items, unuse_menu_items)
8574 (discard_menu_items, restore_menu_items, save_menu_items)
8575 (grow_menu_items, push_submenu_start, push_submenu_end)
8576 (push_left_right_boundary, push_menu_pane, push_menu_item)
8577 (keymap_panes, single_keymap_panes, single_menu_item)
8578 (list_of_panes, list_of_items, find_and_call_menu_selection)
8579 (xmalloc_widget_value, free_menubar_widget_value_tree)
8580 (parse_single_submenu, digest_single_submenu)
8581 (update_submenu_strings): Move to menu.c.
8582
85832008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8584
8585 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8586
85872008-06-06 Miles Bader <miles@gnu.org>
8588
8589 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8590 face, not frame default.
8591
85922008-06-05 Martin Rudalics <rudalics@gmx.at>
8593
8594 * window.c (pop_up_windows, pop_up_frames)
8595 (display_buffer_reuse_frames, Vpop_up_frame_function)
8596 (Vdisplay_buffer_function, Veven_window_heights)
8597 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8598 (Vspecial_display_function, Vsame_window_buffer_names)
8599 (Vsame_window_regexps, split_height_threshold)
8600 (Vsplit_window_preferred_function): Move those vars to window.el.
8601 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8602 (Fdisplay_buffer): Move those functions to window.el.
8603 (syms_of_window): Remove corresponding declarations.
8604 (display_buffer): New function.
8605 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8606 * dispnew.c (Flast_nonminibuf_frame): New function.
8607 * buffer.c (Fpop_to_buffer): Move to window.el.
8608
86092008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8610
8611 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8612
86132008-06-05 Kenichi Handa <handa@m17n.org>
8614
8615 * coding.c (detect_coding): Fix previous change.
8616 (detect_coding_system): Likewise.
8617
86182008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8619
8620 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8621
8622 * keymap.c (Vminibuffer_local_filename_must_match_map):
8623 Rename from Vminibuffer_local_must_match_filename_map.
8624 (syms_of_keymap):
8625 * minibuf.c (Fcompleting_read): Adjust accordingly.
8626 * commands.h: Rename declaration as well.
8627
86282008-06-05 Kenichi Handa <handa@m17n.org>
8629
8630 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8631 family name.
8632 (Ffont_put): Likewise.
8633
8634 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8635 current font-spec.
8636
8637 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8638 is unspecified.
8639
8640 * xfaces.c (realize_x_face): If the font-related face attributes
8641 are the same as those of default face, realize a new fontset from
8642 default->fontset.
8643 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8644
86452008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8646
8647 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8648 (move_it_in_display_line): New wrapper.
8649
8650 * window.c (window_scroll_pixel_based_preserve_x)
8651 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8652 (window_scroll_pixel_based, window_scroll_line_based):
8653 Use them to preserve column positions.
8654 (syms_of_window): Initialize them.
8655
8656 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8657 (HPOS . VPOS) pair.
8658
8659 * dispextern.h (move_it_in_display_line): Declare.
8660
86612008-06-05 Juanma Barranquero <lekktu@gmail.com>
8662
8663 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8664 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8665 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8666
86672008-06-04 Juanma Barranquero <lekktu@gmail.com>
8668
8669 * window.c (Fset_window_parameter): Doc fix.
8670 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8671
86722008-06-04 Joakim Verona <joakim@verona.se>
8673
8674 * window.h (struct window): Add new member window_parameters.
8675
8676 * window.c (Fwindow_parameters, Fwindow_parameter)
8677 (Fset_window_parameter): New defuns.
8678 (syms_of_window): Defsubr the new defuns.
8679 (make_window): Initialize window_parameters to nil.
8680
86812008-06-04 John Paul Wallington <jpw@pobox.com>
8682
8683 * eval.c (Fdefmacro): Doc fix.
8684
86852008-06-04 Kenichi Handa <handa@m17n.org>
8686
8687 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8688 Be sure to call setup_coding_system when we find a proper coding system.
8689 (detect_coding_system): Fix handling of coding->head_ascii.
8690
86912008-06-03 Andreas Schwab <schwab@suse.de>
8692
8693 * font.c (font_prop_validate_spacing): Fix last change.
8694
86952008-06-03 Kenichi Handa <handa@m17n.org>
8696
8697 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8698 (font_parse_fcname): Fix handling of unknown key.
8699
8700 * xfont.c (xfont_list): Try an alias.
8701
8702 * charset.c (char_charset): Return NULL if the arg charset_list is
8703 specified and C doesn't belong to any of them.
8704
87052008-06-02 Chip Coldwell <coldwell@redhat.com>
8706
8707 * font.c (font_pixel_size): Don't take cdr of an integer.
8708
87092008-06-02 Jim Meyering <meyering@redhat.com>
8710
8711 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8712 * alloc.c (xfree): Return right away for a NULL arg.
8713 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8714 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8715 * mac.c (create_apple_event_from_event_ref): Likewise.
8716 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8717 Likewise.
8718 * doprnt.c (doprnt1): Likewise.
8719 * frame.c (frame): Likewise.
8720 * keyboard.c (wipe_kboard): Likewise.
8721 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8722 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8723 * term.c (tty_default_color_capabilities, maybe_fatal)
8724 (delete_tty): Likewise.
8725 * w16select.c (string): Likewise.
8726 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8727 * w32bdf.c (w32_free_bdf_font): Likewise.
8728 * w32fns.c (w32_unload_font): Likewise.
8729 * w32font.c (w32font_close): Likewise.
8730 * window.c (size_window): Likewise.
8731 * xselect.c (receive_incremental_selection): Likewise.
8732 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8733 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8734 * w32.c (stat): Likewise.
8735
8736 Remove useless if-before-free tests.
8737 * editfns.c (Fset_time_zone_rule): Likewise.
8738 * lread.c (nosuffix): Likewise.
8739 * ralloc.c (get_bloc): Likewise.
8740 * regex.c (reg_free): Likewise.
8741 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8742 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8743 * xsmfns.c (smc_save_yourself_CB): Likewise.
8744
87452008-06-02 Kenichi Handa <handa@m17n.org>
8746
8747 * font.c (font_find_for_lface): Handle float font size.
8748 (font_open_for_lface): Likewise.
8749
8750 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8751 comparing the properties.
8752
87532008-06-01 Jason Rumney <jasonr@gnu.org>
8754
8755 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8756 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8757 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8758 Don't add empty script list.
8759 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8760
87612008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8762
8763 * Makefile.in (dot, dotdot): Remove, update users.
8764 ".." has been used elsewhere in the file for a long time.
8765 (LIBXT_STATIC): Remove conditional based on unused variable.
8766
87672008-06-01 Miles Bader <miles@gnu.org>
8768
8769 * xfaces.c (Vface_remapping_alist): New variable.
8770 (syms_of_xfaces): Initialize it.
8771 (enum named_merge_point_kind): New type.
8772 (struct named_merge_point): Add `named_merge_point_kind' field.
8773 (push_named_merge_point): Make cycle detection respect different
8774 named-merge-point kinds.
8775 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8776 Remove face-name alias resolution.
8777 (lface_from_face_name): New definition using
8778 `lface_from_face_name_no_resolve'.
8779 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8780 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8781 (get_lface_attributes): New definition that layers face-remapping on
8782 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8783 (lookup_basic_face): New function.
8784 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8785 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8786 `get_lface_attributes'.
8787 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8788 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8789 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8790
8791 * xdisp.c (init_iterator): Pass base_face_id through
8792 `lookup_basic_face' when we actually use it as a face-id.
8793 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8794 DEFAULT_FACE_ID.
8795
8796 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8797 lookup the initial face-id.
8798
8799 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8800
88012008-06-01 Juanma Barranquero <lekktu@gmail.com>
8802
8803 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8804 (Fremove_text_properties): Fix typos in docstrings.
8805
88062008-05-31 Kenichi Handa <handa@m17n.org>
8807
8808 * font.c (font_list_entities): Fix the car part of data to be
8809 stored in the cache.
8810
8811 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8812
88132008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8814
8815 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8816 Add a `test' argument so another predicate than `equal' can be used.
8817 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8818 (map_char_table): Remove unused vars `c' and `i'.
8819 * lisp.h (Foptimize_char_table): Adjust declaration.
8820 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8821
88222008-05-30 Kenichi Handa <handa@m17n.org>
8823
8824 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8825 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8826 defined.
8827
88282008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8829
8830 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8831 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8832 frame-local settings for the same variable.
8833
88342008-05-30 Kenichi Handa <handa@m17n.org>
8835
8836 * fontset.c (Ffont_info): Move to font.c.
8837 (syms_of_fontset): Delete defsubr of Sfont_info.
8838
8839 * font.c (font_style_to_value, font_score): Delete casting of the
8840 args to xstcasecmp.
8841 (register_font_driver): Increment num_font_drivers only when
8842 registering the driver globally.
8843 (Ffont_info): Move from fontset.c. Handle a font object too.
8844 (syms_of_font): Defsubr Sfont_info.
8845
88462008-05-29 Kenichi Handa <handa@m17n.org>
8847
8848 * coding.h (enum define_coding_utf8_arg_index): New enum.
8849 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8850 coding_attr_utf_bom.
8851 (enum utf_bom_type): Rename from utf_16_bom_type.
8852 (struct utf_16_spec): Adjust for the above change.
8853 (struct coding_system): Add utf_8_bom in `spec' union.
8854
8855 * coding.c (CODING_UTF_8_BOM): New macro.
8856 (enum coding_category): Delete coding_category_utf_8, add
8857 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8858 coding_category_utf_8_sig.
8859 (CATEGORY_MASK_UTF_8): Delete it.
8860 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8861 (CATEGORY_MASK_UTF_8_SIG): New macros.
8862 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8863 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8864 CATEGORY_MASK_UTF_8_SIG.
8865 (CATEGORY_MASK_UTF_8): New macro.
8866 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8867 (detect_coding_utf_8): Check BOM.
8868 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8869 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8870 (encode_coding_utf_16): Likewise.
8871 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8872 (detect_coding, detect_coding_system): Handle utf-8-auto.
8873 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8874 (syms_of_coding): Fix setting up of Vcoding_category_table.
8875
88762008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8877
8878 * process.c (Faccept_process_output): If `millisec' is non-nil,
8879 `seconds' default to 0.
8880 (wait_reading_process_output): Also return non-nil if we read output
8881 from a non-running process.
8882
88832008-05-29 Jason Rumney <jasonr@gnu.org>
8884
8885 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8886 `raster' specified.
8887 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8888 in the uniscribe backend, but disallow any font that has no
8889 unicode subrange support.
8890
88912008-05-29 Juanma Barranquero <lekktu@gmail.com>
8892
8893 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8894 Fix typos in docstrings.
8895
88962008-05-29 Kenichi Handa <handa@m17n.org>
8897
8898 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8899 (Fx_family_fonts): Set frame correctly.
8900
89012008-05-28 Jason Rumney <jasonr@gnu.org>
8902
8903 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8904
89052008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8906
8907 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8908 calling build_annotations.
8909
89102008-05-28 Juanma Barranquero <lekktu@gmail.com>
8911
8912 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8913 (Fencode_coding_string):
8914 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8915 <latin-extra-code-table>: Fix typos in docstrings.
8916 (syms_of_coding) <coding-system-alist>: Doc fix.
8917 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8918
89192008-05-28 Kenichi Handa <handa@m17n.org>
8920
8921 * fontset.c (Ffont_info): Don't call font_close_object.
8922
8923 * font.c (font_parse_family_registry): Use Ffont_put to validate
8924 foundry and family.
8925 (font_delete_unmatched): Don't check spacing.
8926 (font_list_entities): Add spacing to the spec to list fonts.
8927
8928 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8929 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8930
8931 * coding.c (encode_coding_raw_text): Fix previous change.
8932 (encode_coding_object): When the dst_object is a buffer and is
8933 different from src_object, move gap to PT.
8934
89352008-05-27 Chong Yidong <cyd@stupidchicken.com>
8936
8937 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8938
89392008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8940
8941 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8942 all branches. Compute it differently.
8943
8944 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8945
89462008-05-27 Juanma Barranquero <lekktu@gmail.com>
8947
8948 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8949 into "else if () ... else ...".
8950
89512008-05-27 Jason Rumney <jasonr@gnu.org>
8952
8953 * w32font.c (w32font_open_internal): Determine if glyph indices
8954 are likely to work here.
8955
89562008-05-27 Chong Yidong <cyd@stupidchicken.com>
8957
8958 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8959 draw overlap glyphs with appropriate highlighting.
8960
89612008-05-27 Kenichi Handa <handa@m17n.org>
8962
8963 * xfont.c (xfont_open): Fix calculation of font->average_width.
8964
89652008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8966
8967 * casefiddle.c (casify_object): Try to guess better whether the
8968 argument is a byte or a char.
8969
89702008-05-26 Andreas Schwab <schwab@suse.de>
8971
8972 * xselect.c (x_reply_selection_request): Properly handle format == 32.
8973 Always send multiples of format size.
8974
8975 * xterm.c (x_set_frame_alpha): Fix type mismatch.
8976
89772008-05-26 Jason Rumney <jasonr@gnu.org>
8978
8979 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8980 (compute_metrics): Don't set failure if we just cleared the cache.
8981 (w32_weight_table): Remove unused variable.
8982 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
8983 backwards compatibility.
8984
89852008-05-25 Kenichi Handa <handa@m17n.org>
8986
8987 * w32term.c (x_draw_glyph_string):
8988 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
8989
8990 * xfaces.c: Delete unused function prototypes.
8991 (xstrlwr, font_frame): Delete them.
8992 (clear_face_cache): Delete unused variable.
8993
8994 * xftfont.c (xftfont_open): Delete unused variable.
8995 If underline_thickness is not 1, adjust underline_position.
8996
8997 * ftxfont.c (ftxfont_open): Delete unused variable.
8998
8999 * fontset.c (face_for_char): Optimize for the case of no charset
9000 property.
9001
9002 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9003 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9004 (otf_open, font_otf_capability, generate_otf_features)
9005 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9006 Comment out by surrounding "#if 0" and "#endif" for the moment.
9007 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9008 (syms_of_font): Codes for accessing above commented out.
9009
90102008-05-24 Eli Zaretskii <eliz@gnu.org>
9011
9012 * w32proc.c: Include dispextern.h.
9013
9014 * w32.c: Include dispextern.h.
9015
90162008-05-23 Juanma Barranquero <lekktu@gmail.com>
9017
9018 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9019 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9020 Fix typos in docstrings.
9021
90222008-05-23 Jason Rumney <jasonr@gnu.org>
9023
9024 * xsmfns.c: Remove includes that are already included by config.h.
9025
90262008-05-23 Kenichi Handa <handa@m17n.org>
9027
9028 * charset.c (Qemacs, charset_emacs): New variables.
9029 (char_charset): Fix for non-Unicode characters.
9030 (syms_of_charset): Define charset_emacs.
9031
9032 * w32term.c (x_draw_glyph_string): Be sure to update
9033 s->underline_thickness and s->underline_position. Be sure to draw
9034 underline within the current line area.
9035
9036 * xterm.c (x_draw_glyph_string): Be sure to update
9037 s->underline_thickness and s->underline_position. Be sure to draw
9038 underline within the current line area.
9039
9040 * fontset.c: Delete unused variables and add casting for char *
9041 throughout the file.
9042 (fontset_font): Try the fallback fonts of the current fontset
9043 before consulting the default fontset.
9044
9045 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9046
9047 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9048
90492008-05-22 Jason Rumney <jasonr@gnu.org>
9050
9051 * font.c: Don't include strings.h.
9052
9053 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9054
9055 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9056 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9057 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9058 to call xstrcasecmp.
9059
9060 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9061
9062 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9063
9064 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9065
9066 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9067
90682008-05-22 Kenichi Handa <handa@m17n.org>
9069
9070 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9071
9072 * font.c (font_prop_validate_style): Adjust for the format
9073 change of font_style_table.
9074
9075 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9076 two args.
9077
9078 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9079 two args.
9080
90812008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9082
9083 * minibuf.c (keys_of_minibuf): Delete.
9084 * lisp.h (keys_of_minibuf): Delete.
9085 * emacs.c (main): Don't call keys_of_minibuf.
9086
90872008-05-22 Kenichi Handa <handa@m17n.org>
9088
9089 * ftfont.c (ftfont_resolve_generic_family): Rename from
9090 ftfont_list_generic_family. Return a single family for each
9091 generic family.
9092 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9093 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9094 Call font_add_log.
9095 (ftfont_match): Call font_add_log.
9096
9097 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9098 (FONT_DEBUG): Define it.
9099 (font_add_log): Extern it.
9100 (font_assert): Rename from xassert.
9101
9102 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9103 (xfont_list_family): Call font_add_log.
9104 (xfont_match): Likewise.
9105 (memq_no_quit): Delete.
9106
9107 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9108 call of Ffont_xlfd_name.
9109
9110 * xfaces.c (struct table_entry, slant_table, weight_table)
9111 (swidth_table): Move to font.c.
9112
9113 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9114 xassert are changed to font_assert. Delete many unused variables.
9115 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9116 New variables.
9117 (struct table_entry): Move from xfaces.c and modified.
9118 (weight_table, slant_table, width_table): Move from xfaces.c and
9119 contents adjusted for the change of struct table_entry.
9120 (font_style_to_value, font_style_symbolic): Adjust for the
9121 format change of font_style_table.
9122 (font_parse_family_registry): Don't overwrite existing foundry and
9123 family of font_spec.
9124 (font_score): Fix calculation of diff for sizes.
9125 (font_sort_entites): Call font_add_log.
9126 (font_delete_unmatched): Return a newly created list.
9127 (font_list_entities): Fix previous change. Call font_add_log.
9128 (font_matching_entity, font_open_entity, font_close_entity):
9129 Call font_add_log.
9130 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9131 (Finternal_set_font_style_table): Delete.
9132 (BUILD_STYLE_TABLE): New macro.
9133 (build_style_table): New function.
9134 (Vfont_log, font_log_env_checked): New variables.
9135 (font_add_log): New function.
9136 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9137 Declare Lisp variables "font-weight-table", "font-slant-table",
9138 "font-width-table", and "font-log". Initialize font_style_table.
9139
91402008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9141
9142 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9143
91442008-05-21 Seiji Zenitani <zenitani@mac.com>
9145 Ryo Yoshitake <ryo@shiftmode.net>
9146
9147 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9148 (Vframe_alpha_lower_limit): New variable.
9149 (x_set_alpha): New function.
9150
9151 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9152
9153 * xfns.c (x-create-frame, Qalpha):
9154 Initialize the frame parameter `alpha'.
9155 * xterm.c (OPAQUE, OPACITY): New.
9156 (x_set_frame_alpha): New function.
9157 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9158
9159 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9160 * w32fns.c (w32_frame_parm_handlers): Likewise.
9161
91622008-05-20 Jason Rumney <jasonr@gnu.org>
9163
9164 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9165 truetype fonts to opentype list.
9166
91672008-05-20 Juanma Barranquero <lekktu@gmail.com>
9168
9169 * fontset.c (Ffontset_info): Doc fix.
9170 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9171 <ignore-relative-composition>: Fix typos in docstrings.
9172
9173 * font.c (syms-of-font) <font-encoding-alist>:
9174 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9175 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9176 (Ffont_otf_alternates): Doc fixes.
9177
91782008-05-20 Kenichi Handa <handa@m17n.org>
9179
9180 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9181 font.h through out the file.
9182 (FONT_DRIVERS): Rename from FONTOBJ.
9183 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9184 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9185
9186 * emacs.c (main): Call syms_of_font unconditionally.
9187
9188 * font.h (find_font_encoding): Extern it.
9189
9190 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9191 fontset.c.
9192 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9193 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9194 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9195 only when HAVE_WINDOW_SYSTEM is defined.
9196 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9197 when HAVE_WINDOW_SYSTEM is defined.
9198
9199 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9200 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9201
9202 * xfaces.c: Include font.h unconditionally.
9203 (merge_face_ref, merge_face_vectors)
9204 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9205
92062008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9207
9208 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9209 indirect_variable.
9210 * eval.c (lisp_indirect_variable): New fun.
9211 (Fuser_variable_p): Use it.
9212
92132008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9214
9215 * lisp.h (indirect_variable):
9216 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9217 Use Lisp_Symbol pointers rather than Lisp_Object.
9218 Adjust callers.
9219 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9220 To this end, change calling-convention.
9221
9222 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9223 if some non-hidden buffers are selected by string&pred.
9224
92252008-05-19 Chong Yidong <cyd@stupidchicken.com>
9226
9227 * process.c (wait_reading_process_output): Always check status
9228 when in batch mode.
9229
92302008-05-19 Kenichi Handa <handa@m17n.org>
9231
9232 * font.c (font_list_entities): Fix handling of cache.
9233 (font_matching_entity): Likewise.
9234
9235 * ftfont.c (cs_iso8859_1): Delete.
9236 (ft_face_cache): New variable.
9237 (struct ftfont_info): New member fc_charset_idx.
9238 (ftfont_build_basic_charsets): Delete.
9239 (fc_charset_table): New variable.
9240 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9241 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9242 Callers changed.
9243 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9244 (ftfont_spec_pattern): New argument fc_charset_idx.
9245 Check registry more rigidly. Change callers.
9246 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9247 change of :font-entity property of the font.
9248
9249 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9250 property of the font.
9251
92522008-05-18 Juanma Barranquero <lekktu@gmail.com>
9253
9254 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9255 (Funencodable_char_position, Fcheck_coding_systems_region)
9256 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9257 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9258 (Ffind_operation_coding_system, Fset_coding_system_priority)
9259 (Fcoding_system_eol_type): Doc fixes.
9260
92612008-05-17 Glenn Morris <rgm@gnu.org>
9262
9263 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9264
92652008-05-16 Eli Zaretskii <eliz@gnu.org>
9266
9267 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9268 and st_gid.
9269
9270 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9271 HAVE_WINDOW_SYSTEM is not defined.
9272
9273 * xfaces.c (merge_face_ref, merge_face_vectors)
9274 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9275 HAVE_WINDOW_SYSTEM is defined.
9276 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9277
92782008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9279
9280 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9281
92822008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9283
9284 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9285
92862008-05-15 Kenichi Handa <handa@m17n.org>
9287
9288 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9289 preference.
9290
92912008-05-15 Glenn Morris <rgm@gnu.org>
9292
9293 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9294
92952008-05-15 Chong Yidong <cyd@stupidchicken.com>
9296
9297 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9298 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9299
9300 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9301
93022008-05-15 Kenichi Handa <handa@m17n.org>
9303
9304 * ftfont.c (ftfont_list): Downcase family name to check generic
9305 families.
9306
9307 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9308 font-spec for QCfont value.
9309
9310 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9311 buffer. Check the return value of it.
9312
93132008-05-14 Jason Rumney <jasonr@gnu.org>
9314
9315 * w32term.c (w32_get_glyph_overhangs): Remove.
9316 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9317
93182008-05-14 Kenichi Handa <handa@m17n.org>
9319
9320 * font.c (font_prop_validate): Make nil a valid value.
9321 (font_clear_cache): Check if the cached vector of entities is nil
9322 or not.
9323
93242008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9325
9326 * emacs.c (main_thread): Conditionalize on
9327 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9328 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9329
9330 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9331 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9332 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9333
93342008-05-14 Kenichi Handa <handa@m17n.org>
9335
9336 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9337 has no corresponding coding system.
9338
93392008-05-14 Jason Rumney <jasonr@gnu.org>
9340
9341 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9342
9343 * w32font.h (w32font_open_internal): Update declaration.
9344
9345 * w32font.c (w32font_open_internal): Change last argument from
9346 w32font_info struct to font object. Fill in font object from
9347 font_entity. Get Outline metrics if possible. Use them to
9348 calculate underline position and thickness. Use xlfd name as name
9349 property. Don't set codepage.
9350 (w32font_open): Pass font_object to w32font_open_internal. Don't
9351 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9352 (w32font_draw): Use s->font.
9353 (clear_cached_metrics): Don't clear non-existent blocks.
9354
9355 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9356 font was not found.
9357 (x_draw_glyph_string): Use underline position and thickness from font.
9358
9359 * w32uniscribe.c (uniscribe_open): Pass font_object to
9360 w32font_open_internal.
9361
93622008-05-14 Kenichi Handa <handa@m17n.org>
9363
9364 These changes are to delete all legacy font-handling codes, and
9365 make Emacs use only font-backends.
9366
9367 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9368 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9369
9370 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9371
9372 * charset.h (Vcharset_non_preferred_head)
9373 (Vcurrent_iso639_language): Extern them.
9374
9375 * charset.c (Vcharset_non_preferred_head): New variable.
9376 (Vcurrent_iso639_language): New variable.
9377 (syms_of_charset): Declare it as a Lisp variable.
9378 (char_charset): Don't check non preferred charsets. As a last
9379 resort, return charset_unicode.
9380 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9381
9382 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9383 conditionals. Don't check enable_font_backend. Delete all codes
9384 used only when USE_FONT_BACKEND is not defined.
9385
9386 * dispextern.h (struct glyph_string): Change type of `font' to
9387 `struct font *'.
9388 (struct glyph_string): New member underline_position and
9389 underline_thickness.
9390 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9391 (struct face): Change type of `font' to `struct font *'. Remove
9392 members `font_name', `font_info_id'.
9393 (per_char_metric, encode_char): Delete externs.
9394 (calc_pixel_width_or_height): Adjust the prototype.
9395
9396 * emacs.c (enable_font_backend): Delete extern.
9397 (main): Don't set enable_font_backend. Don't check the command
9398 line argument "-disable-font-backend".
9399
9400 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9401 (enum font_property_index): New members FONT_DPI_INDEX,
9402 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9403 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9404 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9405 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9406 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9407 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9408 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9409 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9410 (struct font_spec, struct font_entity): New structs.
9411 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9412 (struct font): Many members from old "struct font_info" moved to
9413 here. Members font and entity deleted.
9414 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9415 the new font-related objects.
9416 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9417 (CHECK_FONT_GET_OBJECT): Likewise.
9418 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9419 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9420 (struct font_driver): New members case_sensitive anc check. Type
9421 of the member list and open changed.
9422 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9423 (font_symbolic_width, font_find_object, font_get_spec)
9424 (font_set_lface_from_name): Delete extern.
9425 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9426
9427 * font.c: Include <strings.h>.
9428 (enable_font_backend): Delete it.
9429 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9430 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9431 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9432 (null_string): Delete it.
9433 (null_vector): Make it static.
9434 (font_family_alist): Delete it.
9435 (Qnormal): Extern it.
9436 (QCextra, QClanguage): Delete it.
9437 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9438 (font_make_spec, font_make_entity, font_make_object)
9439 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9440 the string. Callers changed.
9441 (font_pixel_size): Adjusted for the format change of font-related
9442 objects.
9443 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9444 (font_style_to_value, font_style_symbolic): New function.
9445 (build_font_family_alist): Delete it.
9446 (font_registry_charsets): Use Fassoc_string instead of
9447 assq_no_quit.
9448 (font_prop_validate_symbol): Don't return null_string.
9449 (font_prop_validate_style): Adjusted for the change of
9450 style-related values in a font vector.
9451 (font_property_table): Delete entries for QClanguage and
9452 QCantialias, add entries for QCavgwidth.
9453 (get_font_prop_index): Delete the 2nd argument FROM.
9454 (font_prop_validate): Arguments changed.
9455 (font_put_extra): Adjusted for the change of font-related objects.
9456 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9457 (font_parse_fcname, font_unparse_fcname)
9458 (font_prepare_composition): Likewise.
9459 (font_parse_family_registry): Renamed from font_merge_old_spec.
9460 (otf_open): Delete the 1st arg entity.
9461 (font_otf_capability): Adjusted for the above change.
9462 (font_score): New arg alternate_families. Adjusted for the change
9463 of font-related objects.
9464 (font_sort_entites): New arg best_only.
9465 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9466 Delete them.
9467 (font_match_p): Check alternate families.
9468 (font_find_object): Delete it.
9469 (font_check_object): New function.
9470 (font_clear_cache): Adjusted for the change of font-related objects.
9471 (font_delete_unmatched): New arg.
9472 (font_list_entities): Call font_driver->list with a spec that
9473 doesn't specify style-related properties.
9474 (font_matching_entity): Arguments changed. Caller changed.
9475 (font_open_entity): Adjusted for the change of font-related objects.
9476 (font_close_object, font_has_char, font_encode_char)
9477 (font_get_name, font_get_spec): Likewise.
9478 (font_spec_from_name, font_clear_prop, font_update_lface):
9479 New functions.
9480 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9481 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9482 (font_at): Adjusted for the change of font-related objects.
9483 (font_range): New function.
9484 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9485 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9486 (Fcopy_font_spec, Fmerge_font_spec): New function.
9487 (Ffont_family_list): Renamed from list-families.
9488 (Finternal_set_font_style_table): Arguments changed.
9489 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9490 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9491 change of font-related objects.
9492 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9493
9494 * fontset.h (struct font_info): Delete it. Most members go to
9495 struct font.
9496 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9497 (enum FONT_SPEC_INDEX): Delete it.
9498 (font_info, list_fonts_func, load_font_func, query_font_func)
9499 (set_frame_fontset_func, find_ccl_program_func)
9500 (get_font_repertory_func, new_fontset_from_font_name): Delete
9501 externs.
9502 (fontset_from_font_name): Extern it.
9503 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9504 (FONT_INFO_FROM_FACE): Deleted.
9505 (face_for_font): Adjust prototype.
9506
9507 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9508 conditionals. Don't check enable_font_backend. Delete all codes
9509 used only when USE_FONT_BACKEND is not defined.
9510 (get_font_info_func, list_font_func, load_font_func)
9511 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9512 (get_font_repertory_func): Delete them.
9513 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9514 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9515 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9516 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9517 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9518 (fontset_compare_rfontdef): New function.
9519 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9520 rfont-defs by qsort. Adjusted for the change of font-group vector.
9521 (load_font_get_repertory): Deleted.
9522 (fontset_find_font): Use new macros to ref/set elements of
9523 font-def and rfont-def.
9524 (fontset_font): Fix the timing of remembering that no font for C.
9525 (free_face_fontset): Do nothing if the face has no fontset.
9526 (face_suitable_for_char_p): Use new macros to ref/set elements of
9527 rfont-def.
9528 (face_for_char): Likewise. Call face_for_char with font_object.
9529 (fs_load_font): Delete. Delete #pragma surrounding it.
9530 (fs_query_fontset): Use strcasecmp instead of strcmp.
9531 (generate_ascii_font_name): Adjusted for the format change of
9532 font-spec.
9533 (Fset_fontset_font): Likewise. Use new macros to set elements of
9534 font-def.
9535 (Fnew_fontset): Use font_unparse_xlfd to generate
9536 FONTSET_ASCII (fontset).
9537 (new_fontset_from_font_name): Deleted.
9538 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9539 a fontset is already created for the font. FIx updating of
9540 Vfontset_alias_alist.
9541 (fontset_ascii_font): Deleted.
9542 (Ffont_info): Adjusted for the format change of font-spec.
9543 (Finternal_char_font): Likewise.
9544 (Ffontset_info): Likewise.
9545 (syms_of_fontset): Don't check load_font_func.
9546
9547 * fns.c (internal_equal): Handle PREV_FONT.
9548
9549 * frame.h: Delete USE_FONT_BACKEND conditional.
9550
9551 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9552 conditionals. Don't check enable_font_backend. Delete all codes
9553 used only when USE_FONT_BACKEND is not defined.
9554 (x_set_font): Call x_new_font, not x_new_fontset2.
9555 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9556 already set for the frame.
9557
9558 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9559 a font-entity by font_make_entity. Use font_intern_prop instead
9560 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9561 font property. If a font is scalable, set avgwidth property to 0.
9562 Set font-entity property by font_put_extra.
9563 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9564 (ffont_driver): Adjusted for the change of struct font_driver.
9565 (ftfont_spec_pattern): New function.
9566 (ftfont_list): Return a list, not vector.
9567 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9568 (ftfont_list_family): Don't downcase names.
9569 (ftfont_free_entity): Deleted.
9570 (ftfont_open): Return a font-object. Adjusted for the change of
9571 struct font. Get underline_thickness and underline_position from
9572 font property. Don't update dpyinfo->smallest_font_height and
9573 dpyinfo->smallest_char_width.
9574 (ftfont_close): Don't free `struct font'.
9575 (ftfont_has_char): Adjusted for the format change of font-entity.
9576 (ftfont_encode_char, ftfont_text_extents): Likewise.
9577
9578 * ftxfont.c (ftxfont_list): Return a list, not vector.
9579 (ftxfont_open): Return a font-object. Adjusted for the change of
9580 struct font. Get underline_thickness and underline_position from
9581 font property. Don't update dpyinfo->smallest_font_height and
9582 dpyinfo->smallest_char_width.
9583 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9584 (ftxfont_draw): Adjusted for the change of struct font.
9585
9586 * image.c (image_ascent): Don't include "charset.h". Include
9587 "character.h" and "font.h".
9588
9589 * lisp.h (enum pvec_type): New member PREV_FONT.
9590 (Fassoc_string): EXFUN it.
9591
9592 * print.c: Include font.h.
9593 (print_object): Handle font-related objects.
9594
9595 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9596 conditionals. Don't check enable_font_backend. Delete all codes
9597 used only when USE_FONT_BACKEND is not defined.
9598 (handle_auto_composed_prop): Do nothing if it->f is not on a
9599 window system. Check how many following characters can be
9600 displayed by the same font.
9601 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9602 'struct font *'.
9603 (get_char_face_and_encoding): Assign the whole encoding task to
9604 the `encode-char' method of a font driver.
9605 (fill_composite_glyph_string): Adjusted for the change of `struct
9606 face' and `struct glyph_string'.
9607 (fill_glyph_string): Likewise.
9608 (get_per_char_metric): Arguments changed.
9609 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9610 and `struct glyph_string'.
9611 (produce_stretch_glyph, calc_line_height_property)
9612 (x_produce_glyphs): Likewise.
9613
9614 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9615 conditionals. Don't check enable_font_backend. Delete all codes
9616 used only when USE_FONT_BACKEND is not defined. Use
9617 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9618 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9619 (Qp): Extern them.
9620 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9621 Deleted.
9622 (struct font_name): Deleted.
9623 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9624 (compare_fonts_by_sort_order): New function.
9625 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9626 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9627 Deleted.
9628 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9629 compare_fonts_by_sort_order.
9630 (Fx_font_family_list): Call Ffont_family_list.
9631 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9632 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9633 (face_symbolic_slant, face_symbolic_swidth)
9634 (split_font_name_into_vector, build_font_name_from_vector)
9635 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9636 (font_rescale_ratio, split_font_name, build_font_name)
9637 (free_font_names, sort_fonts, x_face_list_fonts)
9638 (face_font_available_p, sorted_font_list, cmp_font_names)
9639 (font_list_1, concat_font_list, font_list, remove_duplicates):
9640 Deleted.
9641 (Fx_list_fonts): Use Ffont_list.
9642 (LFACE_AVGWIDTH): Deleted.
9643 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9644 by FONTP.
9645 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9646 (set_lface_from_font_name): Delete it.
9647 (set_lface_from_font): Renamed from
9648 set_lface_from_font_and_fontset. Caller changed. Don't set
9649 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9650 for face.
9651 (merge_face_vectors): Copy font-spec if necessary.
9652 Clear properties of the font-spec if necessary.
9653 (merge_face_ref): Clear properties of the font-spec if necessary.
9654 (Finternal_set_lisp_face_attribute): Likewise.
9655 (set_font_frame_param): Use font_load_for_lface to load a
9656 font-object, and call Fmodify_frame_parameters with it.
9657 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9658 font name by Ffont_xlfd_name.
9659 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9660 QCslant, and QCwidth.
9661 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9662 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9663 Compare fonts by EQ.
9664 (lookup_non_ascii_face): Deleted.
9665 (face_for_font): The 2nd argument changed.
9666 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9667 Check atomic font properties by case insensitive.
9668 (realize_non_ascii_face): Set face->overstrike correctly.
9669 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9670 (dump_realized_face): Get font name from
9671 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9672
9673 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9674 conditionals. Don't check enable_font_backend. Delete all codes
9675 used only when USE_FONT_BACKEND is not defined.
9676 (xic_create_xfontset): Original code deleted and renamed from
9677 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9678 (x_make_gc): Don't set GCFont in GCs.
9679 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9680 opened by "fixed".
9681 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9682 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9683 get_font_repertory_func.
9684
9685 * xfont.c: Include <stdlib.h> and "ccl.h".
9686 (struct xfont_info): New structure.
9687 (xfont_query_font): Deleted.
9688 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9689 moved from xterm.c.
9690 (xfont_driver): Adjusted for the change of struct font_driver.
9691 (compare_font_names): New function.
9692 (xfont_list_pattern): Sort font names case insensitively. Make
9693 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9694 (xfont_list): Return a list, not vector.
9695 (xfont_match): If the font doesn't have QCname property, generate
9696 a name from the other font properties.
9697 (xfont_open): Return a font-object. Adjusted for the change of
9698 struct font. Get underline_thickness and underline_position from
9699 font property. Don't update dpyinfo->smallest_font_height and
9700 dpyinfo->smallest_char_width.
9701 (xfont_close): Don't free struct font.
9702 (xfont_prepare_face): Adjusted for the change of struct font.
9703 (xfont_done_face): Deleted.
9704 (xfont_has_char): Adjusted for the change of struct font.
9705 (xfont_encode_char, xfont_draw): Likewise.
9706 (xfont_check): New function.
9707
9708 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9709 callback function.
9710 (xftfont_match): Adjusted for the format change of font-entity.
9711 (xftfont_open): Adjusted for the format change of font-entity and
9712 font-object. Adjusted for the change of struct font. Return a
9713 font-object. Don't update dpyinfo->smallest_font_height and
9714 dpyinfo->smallest_char_width.
9715 (xftfont_close): Block input while calling XftFontClose.
9716 (xftfont_prepare_face): Don't block input while calling
9717 xftfont_get_colors. Adjusted for the change of struct font.
9718 (xftfont_shape): Return value of error case fixed.
9719
9720 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9721
9722 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9723 conditionals.
9724 (FONT_WIDTH): Return (f)->max_width.
9725 (struct x_display_info): Delete member `font'.
9726 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9727 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9728 (struct x_output): Change type of `font' to `struct font *'.
9729
9730 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9731 conditionals. Don't check enable_font_backend. Delete all codes
9732 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9733 (x_per_char_metric, x_encode_char): Deleted.
9734 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9735 (x_compute_glyph_string_overhangs): Adjusted for the change of
9736 `struct face'.
9737 (x_draw_glyph_string_foreground)
9738 (x_draw_composite_glyph_string_foreground): Likewise.
9739 (x_draw_glyph_string): Likewise. Use font->underline_position and
9740 font->underline_thickness.
9741 (x_new_font): Renamed from x_new_fontset2.
9742 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9743 (x_check_font): Call `check' method of a font driver.
9744 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9745 (x_query_font, x_get_font_repertory): Deleted.
9746 (x_find_ccl_program): Renamed and moved to xfont.c.
9747 (x_redisplay_interface): Adjusted for the change of `struct
9748 redisplay_interface'.
9749
9750 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9751 conditionals. Don't check enable_font_backend. Delete all codes
9752 used only when USE_FONT_BACKEND is not defined. Surround non-used
9753 code by "#ifdef OLD_FONT" and "endif".
9754 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9755
9756 * w32font.h (struct w32font_info): New member.
9757 (FONT_COMPAT): New macro.
9758 (w32font_open_internal): Prototype adjusted.
9759
9760 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9761 OLD_FONT" and "endif".
9762
9763 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9764 conditionals. Don't check enable_font_backend. Delete all codes
9765 used only when USE_FONT_BACKEND is not defined.
9766 (w32font_open): Return a font-object. Make a font-object by
9767 font_make_object. Adjusted for the change of struct w32font_info.
9768 (w32font_close): Don't free struct font. Adjusted for the change
9769 of struct w32font_info.
9770 (w32font_encode_char, w32font_text_extents, w32font_draw):
9771 Adjusted for the change of struct w32font_info.
9772 (w32font_draw): Likewise.
9773 (w32font_list_internal): Return a list, not vector.
9774 (w32font_open_internal): Change the 4th arg to font-object.
9775 Adjusted for the change of struct w32font_info and font-object format.
9776 (add_font_name_to_list): Don't downcase names.
9777 (w32_enumfont_pattern_entity): Make a font-entity by
9778 font_make_entity. Adjusted for the format change of font-entity.
9779 Use FONT_SET_STYLE to set a style-related font property. If a
9780 font is scalable, set avgwidth property to 0. Set font-entity
9781 property by font_put_extra.
9782 (font_matches_spec): Adjusted for the format change of font-entity.
9783 (w32_weight_table, w32_decode_weight): New variables.
9784 (w32_encode_weight): New function.
9785 (fill_in_logfont): Adjusted for the format change of font-spec.
9786 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9787 weight value.
9788 (w32font_driver): Adjusted for the change of struct font_driver.
9789
9790 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9791 conditionals. Don't check enable_font_backend. Surround non-used
9792 code by "#ifdef OLD_FONT" and "endif".
9793 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9794 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9795
9796 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9797 conditionals. Don't check enable_font_backend. Delete all codes
9798 used only when USE_FONT_BACKEND is not defined. Surround non-used
9799 code by "#ifdef OLD_FONT" and "endif".
9800
9801 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9802 (uniscribe_open): Return value changed to font-object.
9803 Adjusted for the format change of font-object.
9804 (uniscribe_otf_capability): Adjusted for the change of struct font.
9805 (add_opentype_font_name_to_list): Don't downcase names.
9806 (uniscribe_font_driver): Adjusted for the change of struct
9807 font_driver.
9808
98092008-05-13 Chong Yidong <cyd@stupidchicken.com>
9810
9811 * dispnew.c (update_frame_1): Check if tty output is still valid
9812 before flushing it.
9813
98142008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9815
9816 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9817 to Gtk+ menus.
9818
98192008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9820
9821 * dired.c (file_name_completion): Tweak the code so as to always do it
9822 in a single pass. Tighten the scope of some variables.
9823
9824 * dired.c (Qdefault_directory): New var.
9825 (file_name_completion): Use it instead of Fexpand_file_name.
9826 (syms_of_dired): Initialize it.
9827
98282008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9829
9830 * fileio.c (double_dollars): Remove dead code.
9831
98322008-05-10 Eli Zaretskii <eliz@gnu.org>
9833
9834 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9835 Mention w32-get-true-file-attributes in doc string.
9836
9837 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9838
98392008-05-09 Glenn Morris <rgm@gnu.org>
9840
9841 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9842 2008-04-23.
9843
98442008-05-09 Eli Zaretskii <eliz@gnu.org>
9845
9846 Support for reporting owner and group of each file on MS-Windows:
9847 * dired.c (stat_uname, stat_gname): New functions, with special
9848 implementation for w32.
9849 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9850
9851 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9852 (dflt_group_name): New static variable.
9853 (dflt_group): Rename from the_group.
9854 (init_user_info): Init dflt_group fields. Get user's group name
9855 from LookupAccountSid.
9856 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9857 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9858 New initialization states.
9859 (globals_of_w32): Initialize them to zero. Initialize the default
9860 group name to "None".
9861 (GetFileSecurity_Name): New global var, the name of the function
9862 to call for GetFileSecurity.
9863 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9864 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9865 (get_file_security, get_security_descriptor_owner)
9866 (get_security_descriptor_group, is_valid_sid)
9867 (get_file_security_desc, get_rid, get_name_and_id)
9868 (get_file_owner_and_group): New functions.
9869 (stat): Use get_file_security_desc and get_file_owner_and_group to
9870 report the owner and primary group of each file. Don't ignore the
9871 high 32 bits of file's size, now that st_size is 64-bit wide.
9872 Fix test when to get true file attributes.
9873 (init_user_info): Use get_rid instead of equivalent inline code.
9874 (fstat): Don't ignore the high 32 bits of file's size.
9875
98762008-05-09 Chong Yidong <cyd@stupidchicken.com>
9877
9878 * image.c (png_load): Use correct bit-depth for setting background
9879 color.
9880
98812008-05-08 Eli Zaretskii <eliz@gnu.org>
9882
9883 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9884 epa-hook.elc.
9885
98862008-05-08 Juanma Barranquero <lekktu@gmail.com>
9887
9888 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9889
98902008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9891
9892 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9893 because the original parameters are in pure storage now.
9894 (mac_window): Remove unused params. Update callers.
9895
98962008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9897
9898 * lread.c (substitute_object_recurse): Use lower-level primitives.
9899 Don't signal errors when traversing sub-char-tables.
9900 Don't loop over all the possible characters when traversing char-tables.
9901
9902 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9903 just like we do in print.c.
9904
99052008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9906
9907 * minibuf.c (Ftry_completion): Remove code left over from when we used
9908 scmp instead of Fcompare_strings.
9909
99102008-05-04 Juanma Barranquero <lekktu@gmail.com>
9911
9912 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9913
99142008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9915
9916 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9917 Create bitmap context in native byte order.
9918
9919 * macterm.c (XDrawLine)
9920 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9921 context in native byte order.
9922
99232008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9924
9925 * config.in: Regenerate.
9926
9927 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9928 New definitions for Image I/O support.
9929 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9930 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9931 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9932 (mac_data_provider_release_data, image_load_image_io)
9933 [USE_MAC_IMAGE_IO]: New functions.
9934 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9935 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9936 (init_image_func_pointer) [MAC_OSX]: Remove function.
9937 (image_load_quartz2d) [MAC_OSX]: Check availability of
9938 CGImageCreateWithPNGDataProvider at compile time.
9939 Use lowercase `false' for boolean constant.
9940 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9941 Use image_load_image_io.
9942 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9943 Don't check MyCGImageCreateWithPNGDataProvider.
9944 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9945 Don't call init_image_func_pointer.
9946
9947 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9948
9949 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9950 Make variable non-static.
9951 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9952 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9953
9954 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9955 (RED_FROM_ULONG): Mask off higher bits.
9956 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9957
9958 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9959 Include AvailabilityMacros.h.
9960 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9961 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9962
99632008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
9964
9965 * chartab.c (Fset_char_table_range): If range is t, really set all
9966 chars to that value.
9967
99682008-05-03 Eli Zaretskii <eliz@gnu.org>
9969
9970 * dired.c (Ffile_attributes): Don't allow the device number become
9971 negative.
9972
99732008-05-02 Daiki Ueno <ueno@unixuser.org>
9974
9975 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9976
99772008-05-02 Juri Linkov <juri@jurta.org>
9978
9979 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9980 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
9981 DEFAULT argument as a list of default values in docstrings.
9982
99832008-05-01 Chong Yidong <cyd@stupidchicken.com>
9984
9985 * puresize.h (BASE_PURESIZE): Increase to 1210000.
9986
99872008-05-01 Martin Rudalics <rudalics@gmx.at>
9988
9989 * dispnew.c (change_frame_size_1): Preserve small windows when
9990 shrinking frames by calling set_window_height|width with third
9991 arg 2.
9992
9993 * window.h (struct window): Replace field too_small_ok by field
9994 resize_proportionally.
9995
9996 * window.c (make_window): Initialize resize_proportionally.
9997 (enlarge_window): Temporarily set resize_proportionally to make
9998 sure that shrink_windows does scale the window proportionally.
9999 (shrink_windows): When window has resize_proportionally set try
10000 to shrink it proportionally by stealing from other windows.
10001 (struct saved_window, Fset_window_configuration)
10002 (compare_window_configurations): Handle resize_proportionally.
10003 (WINDOW_TOTAL_SIZE): New macro.
10004 (window_min_size, shrink_windows, size_window): Use it.
10005 (check_min_window_sizes): Remove. Invalid values of
10006 window-min-height|width are handled by window_min_size_2 now.
10007 (size_window, Fsplit_window, enlarge_window)
10008 (adjust_window_trailing_edge, grow_mini_window): Don't call
10009 check_min_window_sizes.
10010 (window_min_size_2, window_min_size_1, window_min_size):
10011 New argument safe_p for retrieving "safe" minimum sizes.
10012 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10013 (adjust_window_trailing_edge, grow_mini_window):
10014 Adjust arguments of window_min_size... functions.
10015 (shrink_windows): Argument min_size removed. New argument
10016 safe_p allows shrinking windows to their safe minimum sizes.
10017 Calculate minimum size and decide whether a window shall be
10018 deleted for each window individually.
10019 (size_window): When nodelete_p equals 2, tell shrink_windows to
10020 delete windows only if their new minimum size is no more safe.
10021 (shrink_window_lowest_first): Call window_min_size_1 to make
10022 sure to preserve modeline of bottom-most window when resizing
10023 the minibuffer.
10024 (Fset_window_configuration, Fcurrent_window_configuration)
10025 (compare_window_configurations): Do not handle
10026 window-min-height|width any more.
10027 (syms_of_window): Clarify window-min-height|width doc-strings.
10028
100292008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10030
10031 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10032 some more. Copy some of the code from Ftry_completions.
10033 Remove special case code that dates back to initial revision when the
10034 slash was only added when necessary and that can't trigger nowadays.
10035
100362008-04-27 Kenichi Handa <handa@m17n.org>
10037
10038 * font.c (font_prop_validate): Signal `error' instead of `font'.
10039
100402008-04-29 Jason Rumney <jasonr@gnu.org>
10041
10042 * w32fns.c (Fw32_battery_status): New defun.
10043 (syms_of_w32fns): Defsubr it.
10044
100452008-04-28 Andreas Schwab <schwab@suse.de>
10046
10047 * dired.c (file_name_completion): Fix another mixing of encoded
10048 and decoded names.
10049
100502008-04-28 Juanma Barranquero <lekktu@gmail.com>
10051
10052 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10053
100542008-04-27 Juanma Barranquero <lekktu@gmail.com>
10055
10056 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10057
100582008-04-27 Andreas Schwab <schwab@suse.de>
10059
10060 * dired.c (file_name_completion): Fix inappropriate mixing of
10061 encoded and decoded names.
10062
10063 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10064
10065 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10066
100672008-04-26 Eli Zaretskii <eliz@gnu.org>
10068
10069 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10070 2008-03-31, it's not needed anymore with `struct stat' definition
10071 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10072 for the same reasons.
10073
100742008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10075
10076 * m/sparc.h: Additional redefinitions for GNU/Linux.
10077
100782008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10079
10080 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10081 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10082 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10083 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10084 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10085 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10086 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10087 Likewise.
10088
10089 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10090 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10091 (mac_ax_number_of_characters): Add externs.
10092 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10093 [USE_MAC_TSM]: Likewise.
10094 (mac_handle_text_input_event) [MAC_OSX]:
10095 Handle kEventTextInputOffsetToPos for no active input area case.
10096 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10097 (mac_handle_document_access_event)
10098 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10099 (install_application_handler) [MAC_OSX]: Register handlers for
10100 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10101 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10102 Register mac_handle_document_access_event.
10103
10104 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10105 Make functions non-static.
10106
101072008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10108
10109 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10110 (read_file_name_completion_ignore_case, insert_default_directory)
10111 (Qdefault_directory): Move to minibuffer.el.
10112 (Fread_file_name): Call the new `read-file-name' instead.
10113
101142008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10115
10116 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10117 Make function non-static.
10118 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10119 Remove function.
10120 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10121 Move to mactoolbox.c.
10122 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10123
10124 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10125 (mac_rect_make): New macro.
10126
10127 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10128 instead of float.
10129 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10130 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10131 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10132 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10133 CGRectMake.
10134 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10135 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10136 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10137 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10138 instead of WindowRef in argument type.
10139 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10140 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10141 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10142 instead of DISPLAY. All uses changed.
10143 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10144 (x_calc_absolute_position): Simplify so as not to use
10145 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10146
10147 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10148 instead of WindowRef in argument type.
10149 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10150 [TARGET_API_MAC_CARBON]: Remove externs.
10151 (create_apple_event, mac_event_parameters_to_lisp)
10152 [TARGET_API_MAC_CARBON]: Add externs.
10153
10154 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10155 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10156 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10157 is clicked.
10158 (x_activate_menubar): Remove extern for saved_menu_event_location.
10159 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10160 Move from mac.c.
10161
101622008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10163
10164 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10165 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10166
101672008-04-23 Jason Rumney <jasonr@gnu.org>
10168
10169 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10170 attributes only for local files.
10171
10172 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10173 default to Qlocal.
10174
101752008-04-22 Juri Linkov <juri@jurta.org>
10176
10177 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10178 read-buffer-to-switch instead of using the letter "B".
10179
101802008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10181
10182 * fileio.c (Qdefault_directory): New variable.
10183 (Fread_file_name): Use it to pass `dir' to the completion functions.
10184
101852008-04-20 Chong Yidong <cyd@stupidchicken.com>
10186
10187 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10188
101892008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10190
10191 * keyboard.c (Vpre_help_message): Remove.
10192 (show_help_echo): Remove default C code.
10193
10194 * dired.c (directory_files_internal, file_name_completion):
10195 Only call ENCODE_FILE if the string is indeed decoded.
10196
101972008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10198
10199 * Makefile.in (TOOLKIT_DEFINES): Remove.
10200 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10201
102022008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10203
10204 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10205 (mactoolbox.o): New target.
10206
10207 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10208 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10209
10210 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10211 Use mac_set_frame_window_background instead of XSetWindowBackground.
10212 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10213 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10214 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10215 instead of SetWindowTitleWithCFString.
10216 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10217 Move function to mactoolbox.c.
10218 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10219 Use mac_set_window_modified instead of SetWindowModified.
10220 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10221 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10222 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10223 FrontNonFloatingWindow. Use mac_activate_window instead of
10224 ActivateWindow. Use mac_active_non_floating_window instead of
10225 ActiveNonFloatingWindow.
10226 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10227 Use mac_show_hourglass and mac_hide_hourglass.
10228 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10229 instead of GetGlobalMouse.
10230 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10231 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10232 Use mac_bring_window_to_front instead of BringToFront.
10233 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10234 mactoolbox.c.
10235 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10236 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10237 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10238 mactoolbox.c.
10239
10240 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10241 (XtPointer): Move typedef from macmenu.c.
10242 (enum button_type): Move enum from macmenu.c.
10243 (widget_value): Move typedef from macmenu.c.
10244 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10245 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10246 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10247 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10248 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10249 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10250 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10251 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10252 (Selection): Move typedef from macselect.c.
10253 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10254 macterm.c.
10255 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10256 (mac_is_window_collapsed, mac_bring_window_to_front)
10257 (mac_send_window_behind, mac_hide_window, mac_show_window)
10258 (mac_collapse_window, mac_front_non_floating_window)
10259 (mac_active_non_floating_window, mac_activate_window)
10260 (mac_move_window_structure, mac_move_window, mac_size_window)
10261 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10262
10263 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10264 (enum mac_menu_kind): Move enum to mactoolbox.c.
10265 (min_menu_id): Move variable to mactoolbox.c.
10266 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10267 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10268 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10269 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10270 [TARGET_API_MAC_CARBON]: Likewise.
10271 (XtPointer): Move typedef to macgui.h.
10272 (enum button_type): Move enum to macgui.h.
10273 (widget_value): Move typedef to macgui.h.
10274 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10275 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10276 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10277 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10278 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10279 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10280 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10281 (popup_activated_flag): Make variable non-static.
10282 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10283 (add_menu_item, fill_menu, dispose_menus):
10284 Move functions to mactoolbox.c.
10285 (restore_show_help_function, menu_target_item_handler)
10286 (install_menu_target_item_handler, mac_handle_dialog_event)
10287 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10288 [TARGET_API_MAC_CARBON]: Likewise.
10289 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10290 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10291 (find_and_call_menu_selection, name_is_separator): Make function
10292 non-static.
10293 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10294 to mactoolbox.c.
10295 (set_frame_menubar): Don't call install_menu_quit_handler.
10296 (menu_item_selection): New variable.
10297 (mac_menu_show): Use create_and_show_popup_menu.
10298 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10299 selection but set variable menu_item_selection. All uses changed.
10300 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10301 Call install_menu_quit_handler. Move to mactoolbox.c.
10302
10303 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10304 (Selection): Move typedef to macgui.h.
10305 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10306 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10307 Make variables non-static.
10308 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10309 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10310 Make functions non-static.
10311 (Vmac_service_selection) [MAC_OSX]: Likewise.
10312 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10313 (mac_valid_selection_target_p, mac_clear_selection)
10314 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10315 (mac_put_selection_value, mac_selection_has_target_p)
10316 (mac_get_selection_value, mac_get_selection_target_list)
10317 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10318 Move functions to mactoolbox.c.
10319 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10320 Likewise.
10321 (copy_scrap_flavor_data, mac_handle_service_event)
10322 (install_service_handler) [MAC_OSX]: Likewise.
10323 (syms_of_macselect) <Vmac_dnd_known_types>:
10324 Use mac_dnd_default_known_types.
10325
10326 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10327 Move to mactoolbox.c.
10328 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10329 (Fx_selection_owner_p): Add EXFUN.
10330 (install_window_handler, remove_window_handler, XSetWindowBackground):
10331 Remove externs.
10332 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10333 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10334 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10335 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10336 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10337 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10338 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10339 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10340 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10341 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10342 (mac_valid_selection_target_p, mac_clear_selection)
10343 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10344 (mac_put_selection_value, mac_selection_has_target_p)
10345 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10346 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10347 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10348 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10349 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10350 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10351 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10352 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10353 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10354
10355 * mactoolbox.c: New file.
10356
103572008-04-18 Jason Rumney <jasonr@gnu.org>
10358
10359 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10360
103612008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10362
10363 * character.c (Fmultibyte_char_to_unibyte):
10364 Return latin1 chars unchanged.
10365
10366 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10367 relocated if it points to `name'.
10368
103692008-04-17 Kenichi Handa <handa@m17n.org>
10370
10371 * data.c (Faset): Allow setting a multibyte character in an
10372 ASCII-only unibyte string.
10373
10374 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10375
103762008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10377
10378 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10379 done in config.h.
10380
103812008-04-16 Juanma Barranquero <lekktu@gmail.com>
10382
10383 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10384 (Fchar_direction): Add usage in the docstring.
10385
103862008-04-15 Chong Yidong <cyd@stupidchicken.com>
10387
10388 * keyboard.c (read_key_sequence): Remove always-true checks.
10389
103902008-04-14 Jason Rumney <jasonr@gnu.org>
10391
10392 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10393 compatibility struct, for better underline positioning.
10394
103952008-04-13 David Hansen <david.hansen@gmx.net>
10396
10397 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10398 string.
10399
104002008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10401
10402 * m/hp800.h (XUINT, XSET): Remove.
10403
104042008-04-12 Juanma Barranquero <lekktu@gmail.com>
10405
10406 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10407 previous change.
10408
104092008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10410
10411 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10412 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10413
104142008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10415
10416 * keymap.h (map_keymap_canonical): Declare.
10417 * xmenu.c (single_keymap_panes): Use it.
10418
104192008-04-11 Glenn Morris <rgm@gnu.org>
10420
10421 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10422 set the target's value to that of the alias.
10423
104242008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10425
10426 * term.c (set_tty_color_mode): Left over typo.
10427
104282008-04-10 Michael Albinus <michael.albinus@gmx.de>
10429
10430 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10431 only after check for file name handler functions. Signal, when
10432 native functionality is not supported.
10433 (syms_of_fileio): Declare it unconditionally.
10434
104352008-04-10 Jason Rumney <jasonr@gnu.org>
10436
10437 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10438 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10439
10440 * w32.c (logon_network_drive): Also logon to remote drives that
10441 are mapped to drive letters.
10442
104432008-04-10 Glenn Morris <rgm@gnu.org>
10444
10445 * xdisp.c (truncate-partial-width-windows): Doc fix.
10446
104472008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10448
10449 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10450 Move functions to minibuffer.el.
10451 (syms_of_fileio): Don't declare them.
10452
104532008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10454
10455 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10456 (syms_of_minibuf): Remove its initialization.
10457
10458 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10459
104602008-04-09 Juanma Barranquero <lekktu@gmail.com>
10461
10462 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10463
104642008-04-09 Jason Rumney <jasonr@gnu.org>
10465
10466 * makefile.w32-in (distclean): Delete makefile too.
10467 (maintainer-clean): New target.
10468
10469 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10470
10471 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10472 for new font backend and composite cases.
10473
104742008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10475
10476 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10477 Most of the code moved to run_timers.
10478 (do_pending_atimers): Call run_timers.
10479 (run_timers): New function.
10480
10481 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10482 run atimers.
10483
10484 * process.c (wait_reading_process_output): The same as above.
10485
104862008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10487
10488 * minibuf.c (last_exact_completion): Remove variable.
10489 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10490 (complete_and_exit_1, complete_and_exit_2)
10491 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10492 (Fdisplay_completion_list, display_completion_list_1)
10493 (Fminibuffer_completion_help, Fself_insert_and_exit)
10494 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10495 minibuffer.el.
10496 (syms_of_minibuf): Remove corresponding initializations.
10497
10498 * keyboard.c (Qdeactivate_mark): New var.
10499 (command_loop_1): Use it to call `deactivate-mark'.
10500 (syms_of_keyboard): Initialize it.
10501
10502 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10503 to another frame.
10504 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10505 Don't call set_tty_color_mode.
10506 (store_frame_param): Reset previous_frame rather than call
10507 set_tty_color_mode.
10508 * term.c (set_tty_color_mode): Rewrite.
10509 * dispextern.h (set_tty_color_mode): New type.
10510 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10511
105122008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10513
10514 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10515 for generic chars, which do not exist any more in emacs-unicode.
10516
105172008-04-08 Michael Albinus <michael.albinus@gmx.de>
10518
10519 * coding.c (detect_coding_emacs_mule)
10520 (Ffind_operation_coding_system): Fix typo.
10521
105222008-04-08 Jason Rumney <jasonr@gnu.org>
10523
10524 * w32uniscribe.c (SNAME): Extract only symbol name.
10525
10526 * w32font.h (struct w32_metric_cache): New struct.
10527 (w32font_info): Use it.
10528 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10529 (CACHE_BLOCKSIZE): New constants.
10530
10531 * w32font.c (Qja, Qko, Qzh): New symbols.
10532 (syms_of_w32font): Initialise them.
10533 (font_matches_spec): Use them to filter by language.
10534 (recompute_cached_metrics): Remove function.
10535 (compute_metrics, clear_cached_metrics): New functions.
10536 (w32font_encode_char): Use them to manage metric cache.
10537 (w32font_text_extents): Cache metrics for all glyphs on demand.
10538 Delay converting glyph indices to WORD until needed.
10539 (w32font_open_internal): Initialize metric cache to empty.
10540 (registry_to_w32_charset): Charset should always be a symbol.
10541 (fill_in_logfont, list_all_matching_fonts): Family should
10542 always be a symbol.
10543
105442008-04-06 Jason Rumney <jasonr@gnu.org>
10545
10546 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10547 Give up if glyph indices not supported. Use uniscribe obtained
10548 ABC widths for individual metrics. Map glyph clusters back to
10549 characters using fClusterStart flag. Return number of glyphs
10550 produced, not chars processed.
10551 (uniscribe_shape): Map char at FROM to current glyph.
10552
105532008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10554
10555 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10556 Use SetMenuItemHierarchicalMenu.
10557
105582008-04-05 Jason Rumney <jasonr@gnu.org>
10559
10560 * image.c (pbm_load): Allow color values up to 65535.
10561 Throw an error if max_color_idx is outside the supported range.
10562 Report an error when image size is invalid.
10563 Read two bytes at a time when raw images have max_color_idx above 255.
10564
105652008-04-05 Eli Zaretskii <eliz@gnu.org>
10566
10567 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10568 cFileName a file name that includes `?' characters, use the 8+3
10569 alias in cAlternateFileName instead.
10570
105712008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10572
10573 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10574 append "CCL: Quitted" when the CCL program is quitted.
10575 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10576
10577 * ccl.h (struct ccl_program): New member quit_silently.
10578
105792008-04-05 Chong Yidong <cyd@stupidchicken.com>
10580
10581 * search.c (compile_pattern_1): Treat non-nil and non-string of
10582 search-spaces-regexp as nil.
10583
10584 * minibuf.c (Fassoc_string): Tweak docstring.
10585
105862008-04-05 Eli Zaretskii <eliz@gnu.org>
10587
10588 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10589 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10590 2008-03-14 to force inode be positive.
10591
10592 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10593 _S_* ones, since we now use our own sys/stat.h.
10594 (stat, fstat): Don't mangle the inode number.
10595 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10596
105972008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10598
10599 * frame.h (struct frame): Give one more bit to `visible' since we use
10600 values larger than 1 to indicate obscured frames on ttys.
10601
10602 * keymap.c (Qkeymap_canonicalize): New var.
10603 (Fmap_keymap_internal): New fun.
10604 (describe_map): Use keymap-canonicalize.
10605
10606 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10607 (Fundo_boundary): Set them.
10608 (syms_of_undo): Initialize them.
10609 (record_point): Use them instead of last_point_position*.
10610 (last_undo_buffer): Change type.
10611
106122008-04-04 Jason Rumney <jasonr@gnu.org>
10613
10614 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10615 (recompute_cached_metrics): Don't set ascent and descent per char.
10616
10617 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10618 (uniscribe_check_otf): Add GC protection before consing.
10619 Rearrange loop for counting features.
10620
106212008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10622
10623 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10624 buffer with byte-size of source buffer.
10625
106262008-04-03 Chong Yidong <cyd@stupidchicken.com>
10627
10628 * callint.c (Fcall_interactively): Handle temporary region even
10629 when shift-select-mode is off.
10630
106312008-04-03 Jason Rumney <jasonr@gnu.org>
10632
10633 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10634
106352008-04-03 Kenichi Handa <handa@m17n.org>
10636
10637 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10638 (CATEGORY_MASK_UTF_16): Likewise.
10639 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10640 binary file.
10641 (detect_coding): Add null-byte detection for a binary file.
10642 (detect_coding_system): Likewise.
10643
106442008-04-03 Jason Rumney <jasonr@gnu.org>
10645
10646 * w32uniscribe.c: New file.
10647
10648 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10649
10650 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10651
10652 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10653 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10654 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10655 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10656 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10657 (Qphonetic): New symbols.
10658 (syms_of_w32font): Initialize them.
10659 (font_supported_scripts): Use them.
10660 (w32font_list_family): List all charsets.
10661 (w32font_text_extents, recompute_cached_metrics): Fix metric
10662 calculations.
10663 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10664 Give opentype fonts their own format.
10665 (font_matches_spec): New arguments backend and logfont.
10666 Handle :otf spec for uniscribe backend.
10667 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10668 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10669
10670 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10671 font backend.
10672 (globals_of_w32fns): Initialize uniscribe font backend.
10673
10674 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10675 dependencies.
10676 (w32uniscribe.$(O)): New file to build.
10677 (FONT_OBJ): Include w32uniscribe.$(O).
10678 (LIBS): Add uniscribe libraries.
10679
10680 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10681
106822008-04-02 Chong Yidong <cyd@stupidchicken.com>
10683
10684 * callint.c (Vshift_select_mode): New var.
10685 (Finteractive): Document new ^ spec.
10686 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10687 is present.
10688
10689 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10690 (command_loop_1): Avoid running the direct display versions of
10691 forward-char and backward-char if shift-selection may occur.
10692 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10693 shift-translation takes place.
10694
10695 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10696 avoid clobbering by define-minor-mode.
10697
10698 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10699 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10700
10701 * syntax.c (Fforward_word): Add ^ interactive spec.
10702
10703 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10704 (Fscroll_right): Add ^ interactive spec.
10705
107062008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10707
10708 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10709
10710 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10711
10712 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10713
107142008-03-31 Juri Linkov <juri@jurta.org>
10715
10716 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10717
107182008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10719
10720 * gtkutil.c (xg_set_geometry): Fix indentation.
10721 (xg_resize_outer_widget): Remove.
10722 (x_wm_size_hint_off): Fix indentation.
10723 (xg_frame_set_char_size): Call flush_and_sync after
10724 gtk_window_resize.
10725 (x_wm_set_size_hint): Pass NULL as geometry window to
10726 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10727 Add menu bar and tool bar height to base height.
10728 (xg_update_frame_menubar, free_frame_menubar)
10729 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10730 (update_frame_tool_bar, free_frame_tool_bar):
10731 Change xg_resize_outer_widget to xg_frame_set_char_size.
10732
107332008-03-30 Michael Albinus <michael.albinus@gmx.de>
10734
10735 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10736 (Fdbus_call_method): New parameter TIMEOUT.
10737 (dbus-send-signal): Optimize UNGCPRO call.
10738
107392008-03-29 Juri Linkov <juri@jurta.org>
10740
10741 * window.c (Fdisplay_buffer): Move call to
10742 Vsplit_window_preferred_function out of conditions that check
10743 if window is eligible for vertical splitting.
10744 When Vsplit_window_preferred_function is non-nil, call it and use
10745 its non-nil return value as window. Otherwise, continue doing
10746 vertical splitting using Fsplit_window with arg horflag=nil.
10747 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10748 default value from `split-window' to nil.
10749
107502008-03-29 Juri Linkov <juri@jurta.org>
10751
10752 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10753 for interactive code letters 'b' and 'B'.
10754
107552008-03-29 Eli Zaretskii <eliz@gnu.org>
10756
10757 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10758 multibyte string.
10759
107602008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10761
10762 * keyboard.c (pending_funcalls): New var.
10763 (timer_check): Run it.
10764 (syms_of_keyboard): Initialize it.
10765 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10766 (Vdelete_terminal_functions): New vars.
10767 (syms_of_terminal): Initialize them.
10768 (Fdelete_terminal): Run delete-terminal-functions.
10769 * xdisp.c (safe_eval): Rewrite.
10770 (safe_call2): New fun.
10771 * frame.c (Qdelete_frame_functions): New var.
10772 (syms_of_frame): Initialize it.
10773 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10774 * lisp.h (safe_call2, pending_funcalls): Declare.
10775
107762008-03-28 Andreas Schwab <schwab@suse.de>
10777
10778 * indent.c (Fmove_to_column): Move declaration before statements.
10779
107802008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10781
10782 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10783 (struct frame): Use bit fields for boolean vars.
10784
10785 * process.c (server_accept_connection): Simplify naming.
10786 (emacs_get_tty_pgrp): Use SDATA.
10787
10788 * coding.c (decode_coding_object): Fix last change.
10789
107902008-03-27 Jason Rumney <jasonr@gnu.org>
10791
10792 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10793
107942008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10795
10796 * charset.c (Fdefine_charset_internal): Change the way of
10797 registering charsets in Vcharset_order_list.
10798 (syms_of_charset): Make the charset `eight-bit' supplementary.
10799
108002008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10801
10802 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10803 operations, to avoid having the difference between pointers
10804 overflow.
10805
108062008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10807
10808 * indent.c (check_display_width): New fun.
10809 (scan_for_column): Use it.
10810
10811 * data.c (syms_of_data): Mark most-positive-fixnum and
10812 most-negative-fixnum as constants.
10813
10814 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10815
10816 * indent.c (scan_for_column): Extract from current_column_1.
10817 Merge with the same code from Fmove_to_column.
10818 (current_column_1, Fmove_to_column): Use it.
10819
108202008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10821
10822 * keymap.c (map_keymap_internal): New fun.
10823 (map_keymap): Use it.
10824 (Fmap_keymap_internal): New fun.
10825 (Fmap_keymap): Remove left-out test from before make_save_value.
10826
10827 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10828
10829 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10830 Use XCAR/XCDR.
10831
10832 * process.h (struct Lisp_Process): Remove filter_multibyte.
10833 * process.c (QCfilter_multibyte): Remove.
10834 (setup_process_coding_systems): Don't use filter_multibyte.
10835 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10836 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10837 (Fset_process_filter_multibyte): Change the coding-system to
10838 approximate the previous behavior.
10839 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10840 coding-system.
10841
10842 * coding.c (decode_coding_object): When not decoding into a buffer,
10843 obey the coding system's preference of (uni|multi)byte.
10844
108452008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10846
10847 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10848 every char is changed and has a different byte-length.
10849 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10850 Fix int -> EMACS_INT.
10851
108522008-03-23 David Hansen <david.hansen@gmx.net>
10853
10854 * dbusbind.c (xd_read_message): Remove extra copying of message
10855 strings. Check for NULL `interface' or `member'.
10856
108572008-03-22 Eli Zaretskii <eliz@gnu.org>
10858
10859 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10860 cFileName a file name that includes `?' characters, use the 8+3
10861 alias in cAlternateFileName instead.
10862
108632008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10864
10865 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10866
108672008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10868
10869 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10870 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10871 work on current_buffer only instead (that was already the case
10872 for some of the code anyway).
10873 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10874 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10875 (SET_PT, SET_PT_BOTH): Adjust.
10876 * intervals.h (set_point, temp_set_point, set_point_both)
10877 (temp_set_point_both): Remove redundant declarations.
10878
108792008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10880
10881 * fileio.c (Finsert_file_contents):
10882 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10883 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10884 when buffer != current_buffer anyway.
10885
108862008-03-20 Andreas Schwab <schwab@suse.de>
10887
10888 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10889 as default.
10890
108912008-03-19 Jason Rumney <jasonr@gnu.org>
10892
10893 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10894 (syms_of_w32fns): Initialize them.
10895 (HOURGLASS_ID): New constant.
10896 (x_window_to_frame): Don't check hourglass_window.
10897 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10898 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10899 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10900 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10901 Only change the cursor if hourglass is not active.
10902 (Fx_create_frame): Initialize frame's current_cursor.
10903 (hourglass_atimer): Remove.
10904 (hourglass_started): New function.
10905 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10906 (show_hourglass): Adapt to w32, changing argument to frame.
10907
10908 * w32term.h (struct w32_output): Remove hourglass_window.
10909 Add current_cursor.
10910
10911 * eval.c (call_debugger, Fsignal):
10912 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10913 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10914 (Fexecute_extended_command, cancel_hourglass_unwind):
10915 * minibuf.c (read_minibuf):
10916 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10917
109182008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10919
10920 * window.c (run_funs): New fun.
10921 (run_window_configuration_change_hook): Use it to run the buffer-local
10922 and the global part of the hook.
10923
10924 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10925 (unwind_format_mode_line): Restore selected window.
10926 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10927
109282008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10929
10930 * editfns.c (Fchar_equal): Check they are valid characters.
10931
10932 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10933
109342008-03-17 Andreas Schwab <schwab@suse.de>
10935
10936 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10937 against a charset.
10938
10939 * lisp.h (Fbuffer_list): Declare.
10940
109412008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 10942
aac0c6e3
MR
10943 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10944 handlebox_widget is != 0.
10945
109462008-03-16 Juri Linkov <juri@jurta.org>
10947
10948 * callint.c (Fcall_interactively): For interactive code letters
10949 'b' and 'B' put the buffer list into the list of default "future"
10950 values of the minibuffer.
10951
109522008-03-16 Andreas Schwab <schwab@suse.de>
10953
10954 * keyboard.c (read_key_sequence): Fix downcasing of letters with
10955 modifiers.
10956
10957 * regex.c (re_match_2_internal): Correct matching of a charset
10958 against latin-1 characters.
10959
109602008-03-16 Kenichi Handa <handa@m17n.org>
10961
10962 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10963 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10964 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10965 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10966 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10967 CHAR_STRING_ADVANCE.
10968 (produce_chars): Fix for the case that the source and the
10969 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
10970 instead of CHAR_STRING_ADVANCE.
10971 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10972 STRING_CHAR_ADVANCE.
10973
109742008-03-15 Andreas Schwab <schwab@suse.de>
10975
10976 * regex.c (re_match_2_internal): Correct matching of eight bit
10977 characters in unibyte strings.
10978
109792008-03-15 Martin Rudalics <rudalics@gmx.at>
10980
10981 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
10982 at end of range when it coincides with the end of the buffer.
10983
109842008-03-14 Eli Zaretskii <eliz@gnu.org>
10985
10986 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
10987
10988 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
10989
109902008-03-14 Jason Rumney <jasonr@gnu.org>
10991
10992 * editfns.c (initial_tz): New variable.
10993 (syms_of_editfns): Initialize it.
10994 (Fset_time_zone_rule): Set it when first called.
10995 Use it when TZSTRING is nil.
10996
10997 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
10998 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
10999 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11000 (globals_of_w32fns): Initialize them.
11001 (compute_tip_xy): Use them to position tooltips.
11002
110032008-03-14 Glenn Morris <rgm@gnu.org>
11004
11005 * emacs.c (main): Revert previous change.
11006 (standard_args): Revert -internal-script back to -scriptload,
11007 and remove the long-option form.
11008
110092008-03-13 Glenn Morris <rgm@gnu.org>
11010
11011 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11012 Remove option -enable-font-backend.
11013
110142008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11015
11016 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11017
110182008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11019
11020 * xterm.c (x_connection_closed): For GTK: If this is the last
11021 terminal just exit without closing the display.
11022
110232008-03-11 Jason Rumney <jasonr@gnu.org>
11024
11025 * w32font.c (w32font_full_name): Use floor to round.
11026
f0131492 110272008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11028
11029 * sound.c (alsa_configure): Declare vol at beginning of block.
11030
11031 * fontset.c (Ffontset_info): Remove extra semicolon.
11032
110332008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11034
11035 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11036 size of resulting string.
11037
110382008-03-10 Jason Rumney <jasonr@gnu.org>
11039
11040 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11041
110422008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11043
11044 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11045 Don't pretend as if characters with display property haven't been
11046 consumed for string-replacing-string case.
11047
110482008-03-08 Kim F. Storm <storm@cua.dk>
11049
11050 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11051 (get_next_display_element, next_element_from_string)
11052 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11053
110542008-03-08 Andreas Schwab <schwab@suse.de>
11055
11056 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11057
110582008-03-06 Jason Rumney <jasonr@gnu.org>
11059
11060 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11061 when charset not specified. Only translate ANSI to unicode when
11062 font_type is truetype.
11063 (w32font_coverage_ok): New function.
11064 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11065
110662008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11067
11068 * lread.c (Fread_char): Resolve modifiers.
11069 (Fread_char_exclusive): Likewise.
11070
11071 * character.c (char_resolve_modifier_mask): New function.
11072 (char_string): Use char_resolve_modifier_mask.
11073 (Fchar_resolve_modifiers): New function.
11074 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11075 function.
11076
110772008-03-04 Jason Rumney <jasonr@gnu.org>
11078
11079 * makefile.w32-in: Always include w32font.c in the build.
11080 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11081
110822008-03-04 Andreas Schwab <schwab@suse.de>
11083
11084 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11085 (versionclean): Likewise.
11086
110872008-03-04 Juanma Barranquero <lekktu@gmail.com>
11088
11089 * .cvsignore: Add oo.
11090
110912008-03-03 Andreas Schwab <schwab@suse.de>
11092
11093 * coding.c (decode_coding_object): Inhibit gap shrinking while
11094 decoding in place.
11095
110962008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11097
11098 * w32term.c: Remove unused include "gnu.h".
11099 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11100
11101 * gnu.h: Rename to ...
11102 * emacs-icon.h: ... this.
11103 * xterm.c: Use emacs-icon.h instead of gnu.h.
11104 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11105
111062008-03-03 Juanma Barranquero <lekktu@gmail.com>
11107
11108 * w32font.c: Include math.h.
11109
111102008-03-03 Jason Rumney <jasonr@gnu.org>
11111
11112 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11113 Compute options separately.
11114 (w32font_open_internal): Set glyph_idx before caching metrics.
11115
11116 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11117 Define if system headers don't.
11118 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11119 (w32font_encode_char): Don't declare here.
11120
11121 * w32font.c (Quniscribe, QCformat): New symbols.
11122 (syms_of_w32font): Define them.
11123 (w32font_has_char): Indicate uncertainty.
11124 (w32font_encode_char): Encode as glyph point. Make static.
11125 (recompute_cached_metrics): New function.
11126 (w32font_open_internal): Use it. Set font to use glyph points
11127 initially. Set format based on type of font.
11128 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11129 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11130 on it. Set format based on information available here.
11131 (add_font_entity_to_list): Identify backend based on opentype_only.
11132
111332008-03-02 Andreas Schwab <schwab@suse.de>
11134
11135 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11136
11137 * coding.c (decode_coding_big5, produce_chars):
11138 Fix typos in last change.
11139
111402008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11141
11142 * gnu.h: New icon.
11143
111442008-03-02 Kenichi Handa <handa@m17n.org>
11145
11146 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11147 `dos', don't decode '\r' if that is the last in the source.
11148 (decode_coding_utf_16, decode_coding_emacs_mule)
11149 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11150 (decode_coding_raw_text, decode_coding_charset): Likewise.
11151 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11152
111532008-03-01 Jason Rumney <jasonr@gnu.org>
11154
11155 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11156
111572008-03-01 Kim F. Storm <storm@cua.dk>
11158
11159 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11160
111612008-03-01 Jason Rumney <jasonr@gnu.org>
11162
11163 * w32font.c (w32font_full_name): New function.
11164 (w32font_open_internal): Use it.
11165
111662008-03-01 Kim F. Storm <storm@cua.dk>
11167
11168 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11169
111702008-03-01 Jason Rumney <jasonr@gnu.org>
11171
11172 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11173
111742008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11175
11176 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11177 xg_frame_resized when the event is for the edit widget.
11178
11179 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11180
11181 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11182 set_char_size.
11183 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11184 operations on widgets here. Just set frame size if needed.
11185 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11186 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11187 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11188 the whole frame.
11189 (xg_create_tool_bar): Move attachment of the tool bar to
11190 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11191 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11192
111932008-03-01 Jason Rumney <jasonr@gnu.org>
11194
11195 * w32fns.c (w32_msg_pump): Disable debug code.
11196
111972008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11198
11199 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11200
112012008-02-29 Chong Yidong <cyd@stupidchicken.com>
11202
11203 * xdisp.c (next_overlay_string): Don't set
11204 overlay_strings_at_end_processed_p if we're currently reading from
11205 a display string.
11206
112072008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11208
11209 * xdisp.c (get_overlay_strings_1): Fix typo.
11210
112112008-02-29 Chong Yidong <cyd@stupidchicken.com>
11212
11213 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11214
112152008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11216
11217 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11218
11219 * xdisp.c (display_mode_element): Cancel the previous change.
11220 (decode_mode_spec): Likewise.
11221 (handle_auto_composed_prop): Don't make composition if it->string
11222 is a string.
11223
112242008-02-27 Kim F. Storm <storm@cua.dk>
11225
11226 * lisp.h (GLYPH): Change type from int to struct with separate char
11227 and face_id members.
11228 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11229 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11230 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11231 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11232 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11233 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11234 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11235 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11236 handle new Lisp glyph code encoding, either an integer or a cons.
11237
11238 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11239 (GLYPH_ALIAS): Delete.
11240 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11241 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11242 (GLYPH_FROM_CHAR): Replace macro by ...
11243 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11244
11245 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11246 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11247 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11248 (GLYPH_INVALID_P): New macro.
11249 (spec_glyph_lookup_face): Update prototype.
11250
11251 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11252 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11253 new glyph code encoding.
11254 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11255 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11256
11257 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11258 Adapt to new glyph type and new glyph code encoding.
11259
11260 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11261
11262 * indent.c (current_column, current_column_1, Fmove_to_column)
11263 (compute_motion): Adapt to new glyph code encoding.
11264
11265 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11266
112672008-02-27 Chong Yidong <cyd@stupidchicken.com>
11268
11269 * process.c (wait_reading_process_output): Check for window
11270 changes caused by timers.
11271 Suggested by Johan Bockgård.
11272
112732008-02-27 Glenn Morris <rgm@gnu.org>
11274
11275 * emacs.c (USAGE1): Add `--disable-font-backend'.
11276
112772008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11278
11279 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11280 is made to the buffer.
11281
112822008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11283
11284 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11285 (face_at_string_position):
11286 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11287 (face_at_string_position):
11288 * xdisp.c (display_string, next_overlay_change):
11289 * buffer.h (overlays_at):
11290 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11291 Update callers.
11292
112932008-02-26 Chong Yidong <cyd@stupidchicken.com>
11294
11295 * editfns.c (Fformat): Doc fix.
11296
112972008-02-26 Juanma Barranquero <lekktu@gmail.com>
11298
11299 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11300 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11301 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11302
113032008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11304
11305 * buffer.c (Fbuffer_swap_text): New function.
11306 (syms_of_buffer): Defsubr it.
11307
113082008-02-25 Chong Yidong <cyd@stupidchicken.com>
11309
11310 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11311
113122008-02-25 Jason Rumney <jasonr@gnu.org>
11313
11314 * w32font.c (w32font_draw): Draw one character at a time when padding.
11315
113162008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11317
11318 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11319 Handle a nil arg. Use run_window_configuration_change_hook.
11320 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11321 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11322 Use run_window_configuration_change_hook.
11323
113242008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11325
11326 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11327 1-pixel width.
11328
113292008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11330
11331 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11332 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11333 if the glyph in the font is zero pixel with.
11334
11335 * dispextern.h (struct glyph_string): New member padding_p.
11336
11337 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11338
11339 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11340
11341 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11342
11343 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11344
11345 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11346
113472008-02-25 Jason Rumney <jasonr@gnu.org>
11348
11349 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11350
113512008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11352
11353 Allow fine-grained image-cache flushing.
11354 * dispextern.h (struct image): Add `dependencies' field.
11355 (clear_image_caches): Change arg to Lisp_Object.
11356 * image.c (make_image): Initialize `dependencies' field.
11357 (clear_image_cache): Change arg to allow fine-grained flushing.
11358 Perform the flush even if image-cache-eviction-delay is nil.
11359 (clear_image_caches): Change arg to Lisp_Object.
11360 (Fclear_image_cache): Expand meaning of the argument.
11361 (mark_image): Mark `dependencies' field.
11362 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11363 (lface_hash): Use XHASH rather than XFASTINT.
11364 (face_at_buffer_position): Fix int -> EMACS_INT position.
11365 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11366 (select_frame_for_redisplay): Remove code duplication.
11367 (redisplay_internal): Adapt arg to call to clear_image_caches.
11368
113692008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11370
11371 * s/vms4-0.h:
11372 * s/vms4-2.h:
11373 * s/vms4-4.h:
11374 * s/vms5-5.h: Remove, unused.
11375
11376 * s/irix5-2.h:
11377 * s/irix6-0.h:
11378 * s/riscos5.h:
11379 * s/mach-bsd4-3.h:
11380 * m/mips4.h: Remove files for obsolete systems.
11381
11382 * Makefile.in:
11383 * filelock.c:
11384 * unexmips.c:
11385 * m/hp9000s300.h:
11386 * m/iris4d.h:
11387 * s/aix3-1.h:
11388 * s/hpux.h:
11389 * s/msdos.h:
11390 * s/usg5-0.h:
11391 * s/usg5-2-2.h:
11392 * s/usg5-2.h:
11393 * s/usg5-3.h: Remove references to obsolete variables.
11394
11395 * s/irix5-0.h: Remove, move all the contents ...
11396 * s/irix6-5.h: ... here. Simplify.
11397 * config.in: Regenerate.
11398
113992008-02-24 Jason Rumney <jasonr@gnu.org>
11400
11401 * w32term.c (x_draw_glyph_string_background): Clear the background
11402 manually when cleartype is in use.
11403 (x_draw_glyph_string_foreground): Draw text transparently when
11404 cleartype is in use.
11405
11406 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11407 a font into it unless we have to.
11408
114092008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11410
11411 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11412 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11413
aac0c6e3
MR
114142008-02-18 Jason Rumney <jasonr@gnu.org>
11415
11416 * w32fns.c (Fw32_shell_execute): Encode parameters.
11417
114182008-02-09 Eli Zaretskii <eliz@gnu.org>
11419
11420 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11421
114222008-02-05 Juanma Barranquero <lekktu@gmail.com>
11423
11424 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11425
114262008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11427
11428 * xterm.c (x_set_offset): Don't change the gravity if
11429 CHANGE_GRAVITY is -1.
11430
114312008-02-23 Chong Yidong <cyd@stupidchicken.com>
11432
11433 * fileio.c (auto_save_error_occurred): New var.
11434 (auto_save_error): Set it.
11435 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11436 error occurred.
11437
114382008-02-23 Eli Zaretskii <eliz@gnu.org>
11439
11440 * w32.c (globals_of_w32): Add initializations for
11441 g_b_init_get_sid_sub_authority and
11442 g_b_init_get_sid_sub_authority_count.
11443
114442008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11445
11446 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11447 (font_parse_xlfd): Use them for sanity check.
11448 (Finternal_set_font_style_table): Make sure the table is bijective.
11449
11450 Consolidate the image_cache to the terminal struct.
11451 * termhooks.h (P_): Remove redundant def.
11452 (struct terminal): New field `image_cache'.
11453 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11454 of FRAME_X_IMAGE_CACHE.
11455 * xterm.h (struct x_display_info): Remove image_cache field.
11456 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11457 * w32term.h (struct w32_display_info): Remove image_cache field.
11458 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11459 * macterm.h (struct mac_display_info): Remove image_cache field.
11460 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11461 * xterm.c (x_term_init):
11462 * w32term.c (w32_term_init):
11463 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11464 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11465 Remove declarations.
11466 (clear_image_caches, mark_image_cache): New declarations.
11467 * xfaces.c (clear_face_cache):
11468 * xdisp.c (redisplay_internal): Use clear_image_caches.
11469 * image.c (clear_image_cache): Don't check that a frame is on
11470 a window-system before checking if it shares the same cache.
11471 (clear_image_caches): New function.
11472 (Fclear_image_cache): Use it.
11473 (mark_image): Move from allo.c.
11474 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11475 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11476 (mark_object): Don't call mark_image_cache for frames.
11477 (mark_terminals): Call mark_image_cache.
11478
11479 * lisp.h (Fdelete_terminal): Declare.
11480
11481 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11482 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11483 wrong_type_argument.
11484
114852008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11486
11487 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11488 malayalam.el, and tamil.el. Add sinhala.el.
11489
114902008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11491
11492 * xterm.c (x_connection_closed): Consolidate identical tests.
11493 (x_delete_terminal): Don't crash if called via x_connection_closed.
11494
114952008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11496
11497 * xdisp.c (decode_mode_spec): New arg string.
11498 (display_mode_element): Adjust for the above change.
11499
115002008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11501
11502 * callint.c (Fcall_interactively): Use AREF.
11503
115042008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11505
11506 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11507
115082008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11509
11510 * xfns.c (Fx_show_tip): Set string to " " if empty.
11511
115122008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11513
11514 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11515 with Qt.
11516
115172008-02-17 Kenichi Handa <handa@m17n.org>
11518
11519 * ftfont.c (ftfont_shape): Return Lispy number.
11520
11521 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11522 for GCs.
11523 (Finternal_set_font_selection_order): Call font_update_sort_order
11524 only when enable_font_backend is set.
11525 (realize_x_face): Set face->font_info to that of default face only
11526 when enable_font_backend is set.
11527
11528 * xdisp.c (handle_composition_prop): Set it->c to the fist
11529 character of the composed region.
11530 (fill_composite_glyph_string): Set base_face->font_info to
11531 s->font_info. Get a face for ascii from base_face->ascii_face.
11532 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11533 with a face already decided.
11534 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11535 non-negative.
11536 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11537 call font_prepare_composition unconditionally.
11538
11539 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11540
11541 * xterm.h (struct x_display_info): New member font.
11542
11543 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11544 (x_set_mouse_face_gc, x_new_font): Likewise.
11545 (x_term_init): Setup display_info->font.
11546 (x_delete_terminal): Free display_info->font.
11547
11548 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11549
11550 * ftxfont.c (ftxfont_default_fid): Delete it.
11551 (ftxfont_open): Set xfont->fid to 0.
11552 (ftxfont_end_for_frame): Clear data specific to the frame and the
11553 font-driver.
11554
11555 * xftfont.c (xftfont_default_fid): Delete it.
11556 (xftfont_open): Set xfont->fid to 0.
11557
11558 * fontset.c (FONTSET_OBJLIST): New macro.
11559 (fontset_find_font): Update font-object list of the fontset.
11560 (free_realized_fontset): New function.
11561 (free_face_fontset): Call free_realized_fontset.
11562 (Ffont_info): Call font_close_object only when enable_font_backend
11563 is set.
11564
11565 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11566 [HAVE_NTGUI]: Include w32term.h.
11567 [MAC_OS]: Include macterm.ch.
11568 (font_otf_ValueRecord): Use make_number.
11569 (font_finish_cache): Fix handling of reference count.
11570 (font_clear_cache): Update num_fonts.
11571 (font_open_entity): Update smallest_char_width and
11572 smallest_font_height of the frame.
11573 (font_close_object): Update num_fonts.
11574 (Fclear_font_cache): Fix finding the target cache data.
11575
115762008-02-16 Glenn Morris <rgm@gnu.org>
11577
11578 * fontset.c (Finternal_char_font): Fix compilation warning.
11579
115802008-02-16 Eli Zaretskii <eliz@gnu.org>
11581
11582 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11583 instead of char arrays. Enlarge the size of array passed to
11584 get_token_information.
11585
11586 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11587 warnings.
11588
115892008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11590
11591 * .gdbinit: Don't set `args', it breaks gdb --args.
11592
115932008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11594
11595 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11596 within a narrowed buffer.
11597
115982008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11599
11600 * coding.c (decode_coding_object, encode_coding_object):
11601 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11602
116032008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11604
11605 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11606 hardcoding 1.
11607 (detect_coding_system):
11608 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11609 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11610 * insdel.c (insert_from_gap):
11611 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11612 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11613 (string_to_multibyte):
11614 * character.c (chars_in_text, multibyte_chars_in_text):
11615 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11616
11617 * character.h (FETCH_STRING_CHAR_ADVANCE)
11618 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11619 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11620 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11621
11622 * casefiddle.c (casify_region): Only call after-change and composition
11623 functions on the part of the region that was changed.
11624
11625 * keyboard.c (read_avail_input):
11626 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11627
116282008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11629
11630 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11631 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11632
116332008-02-11 Juanma Barranquero <lekktu@gmail.com>
11634
11635 * w32menu.c (push_submenu_start, push_submenu_end)
11636 (push_left_right_boundary, push_menu_pane, push_menu_item):
11637 * keyboard.c (read_key_sequence): Don't pass args with side effects
11638 to AREF, it fails when compiling with -DENABLE_CHECKING.
11639
116402008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11641
11642 * Makefile.in (${lispsource}international/charprop.el):
11643 Delete this target.
11644
11645 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11646 emacs-unicode-2.
11647
116482008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11649
11650 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11651
116522008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11653
11654 * frame.c (Qnoelisp): New symbol.
11655 (syms_of_frame): Initialize it.
11656 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11657 harmless Elisp code, from a strong `force' from x_connection_closed.
11658 * frame.h (Qnoelisp): Declare.
11659 * xterm.c (x_connection_closed): Pass `noelisp'.
11660
11661 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11662 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11663 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11664 rather than `int' for the type of `type'.
11665
116662008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11667
11668 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11669
11670 * Makefile.in (GNUC): Remove support for gcc-1.x.
11671
116722008-02-10 Richard Stallman <rms@gnu.org>
11673
11674 * lisp.h (ASET): Use AREF, not ASLOT.
11675
116762008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11677
11678 * lisp.h (ASET): Check bounds.
11679
116802008-02-10 Glenn Morris <rgm@gnu.org>
11681
11682 * buffer.c (mode-name): Doc fix.
11683
116842008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11685
11686 * Makefile.in:
11687 * emacs.c:
11688 * gmalloc.c:
11689 * keyboard.c:
11690 * lisp.h:
11691 * m/ibm370aix.h:
11692 * process.c:
11693 * regex.c:
11694 * s/hpux.h:
11695 * sysdep.c:
11696 * sysselect.h:
11697 * systty.h:
11698 * unexec.c:
11699 * w32term.c:
11700 * xsmfns.c:
11701 * xterm.c: Remove code that deals with obsolete variables.
11702
11703 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11704
11705 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11706 nothing else needs it anymore.
11707
117082008-02-09 Eli Zaretskii <eliz@gnu.org>
11709
11710 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11711 instead of unibyte_char_to_multibyte.
11712
117132008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11714
11715 * s/gnu-linux.h: Remove commented out code.
11716
11717 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11718
11719 * Makefile.in: Update what RMS says about using autoconf.
11720 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11721 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11722 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11723 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11724
117252008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11726
11727 * keymap.c (Fkey_description): Move side effect outside of macro call.
11728
11729 * xfaces.c (Finternal_make_lisp_face):
11730 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11731
11732 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11733 (syms_of_fontset): Use ASET.
11734
11735 * fns.c (concat): Move side effect outside of macro call.
11736 (hash_clear): Use ASET.
11737
117382008-02-08 Richard Stallman <rms@gnu.org>
11739
11740 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11741 If FORCE, and frame has a surrogate minibuffer for another frame,
11742 delete the other frame first.
11743
117442008-02-07 Timo Savola <timo.savola@iki.fi>
11745
11746 * xterm.c (x_detect_focus_change): Handle embed client message.
11747 (handle_one_xevent): Ditto.
11748 (handle_one_xevent): If embedded and we get a button press/release,
11749 request focus.
11750 (xembed_set_info, xembed_send_message): New functions.
11751 (x_make_frame_visible): Call xembed_set_info if embedded.
11752 (x_make_frame_invisible): Call xembed_set_info if embedded.
11753 (x_term_init): Initialize Xatom_XEMBED.
11754 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11755 (x_iconify_frame): Ditto.
11756
11757 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11758 (enum xembed_info, enum xembed_message, enum xembed_focus)
11759 (enum xembed_modifier, enum xembed_accelerator): New.
11760 (xembed_set_info, xembed_send_message): Declare.
11761 (FRAME_X_EMBEDDED_P): New.
11762
11763 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11764 gtk_plug_new.
11765
11766 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11767 window ID of a frame.
11768 (x_window): Reparent frame if embedded.
11769 (Fx_create_frame): Don't set border width if embedded.
11770
11771 * emacs.c (USAGE3): Add --parent-id.
11772 (standard_args): Ditto.
11773
117742008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11775
11776 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11777
117782008-02-07 Jim Meyering <meyering@redhat.com>
11779
11780 Use "do...while (0)", not "if (1)...else" in macro definitions.
11781 The latter provokes a warning from gcc about the empty else, when
11782 followed by ";". Also, without that trailing semicolon, it would
11783 silently swallow up any following statement.
11784 * syntax.h (SETUP_SYNTAX_TABLE)
11785 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11786 * buffer.h (DECODE_POSITION): Likewise.
11787 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11788 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11789 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11790 (FETCH_CHAR_ADVANCE): Likewise.
11791 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11792
117932008-02-07 Jim Meyering <meyering@redhat.com>
11794
11795 * lread.c [lint]: Don't include <sys/inode.h>.
11796
117972008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11798
11799 * xselect.c (x_handle_dnd_message):
11800 * xmenu.c (digest_single_submenu, xmenu_show):
11801 * xdisp.c (with_echo_area_buffer_unwind_data)
11802 (format_mode_line_unwind_data, unwind_format_mode_line)
11803 (display_menu_bar):
11804 * eval.c (Ffetch_bytecode):
11805 * doc.c (store_function_docstring):
11806 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11807 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11808 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11809
118102008-02-07 Kenichi Handa <handa@m17n.org>
11811
11812 * ftxfont.c (ftxfont_open): Don't set
11813 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11814
11815 * ftfont.c (ftfont_open): Fix previous change.
11816
118172008-02-06 Jason Rumney <jasonr@gnu.org>
11818
11819 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11820 Use cached metrics for ASCII characters.
11821 (w32font_open_internal): Don't set font's owning_frame.
11822 Cache metrics for ASCII characters.
11823
11824 * w32font.h (struct w32font_info): Add ascii_metrics.
11825 Remove owning_frame.
11826
118272008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11828
11829 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11830 to negative value.
11831
11832 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11833
11834 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11835
11836 * charset.c (syms_of_charset): Set QCtest and Qeq.
11837
118382008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11839
11840 * process.c (Fstart_process):
11841 * callproc.c (Fcall_process): Handle the case where
11842 Funhandled_file_name_directory returns nil.
11843
11844 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11845 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11846 * font.c (check_gstring): Use them and AREF to access the vector before
11847 we know it's really a gstring.
11848 (Ffont_shape_text): Fix typo.
46e722a9 11849 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
11850
11851 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11852 Declare.
11853
11854 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11855
118562008-02-05 Jason Rumney <jasonr@gnu.org>
11857
11858 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11859 Set smallest_font_height and smallest_char_width in display info.
11860
118612008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11862
11863 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11864
118652008-02-05 Miles Bader <miles@gnu.org>
11866
11867 * xfaces.c (get_lface_attributes, merge_named_face)
11868 (lookup_named_face, lookup_derived_face, realize_named_face):
11869 Revert 2008-02-01 change by cyd@stupidchicken.com.
11870
118712008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11872
11873 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11874 fallback fonts.
11875 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11876
118772008-02-04 Jason Rumney <jasonr@gnu.org>
11878
11879 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11880 set full_name.
11881 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11882
118832008-02-03 Jason Rumney <jasonr@gnu.org>
11884
11885 * makefile.w32-in (OBJ1): Include font.o here.
11886 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11887
118882008-02-02 Jason Rumney <jasonr@gnu.org>
11889
11890 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11891
118922008-02-01 Jason Rumney <jasonr@gnu.org>
11893
11894 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11895
11896 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11897
118982008-02-01 Andreas Schwab <schwab@suse.de>
11899
11900 * Makefile.in (shortlisp, lisp): Update for rename of
11901 ../lisp/language/myanmar.el.
11902
119032008-02-01 Chong Yidong <cyd@stupidchicken.com>
11904
11905 * xfaces.c (get_lface_attributes): Delete function.
11906 (merge_named_face, lookup_named_face, lookup_derived_face)
11907 (realize_named_face): Call lface_from_face_name directly, and use
11908 the fact that merge_face_vectors does not alter its FROM argument.
11909
119102008-02-01 Jason Rumney <jasonr@gnu.org>
11911
11912 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11913 input in the default locale. Handle non-Unicode multibyte input.
11914
119152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11916
11917 * fontset.c (reorder_font_vector): Exclude nil elements from the
11918 font group. Don't try multiple fonts.
11919 (fontset_font): Adjust for the above change.
11920 (Finternal_char_font): Return nil if the found font doesn't
11921 contain the character ch.
11922
11923 * Makefile.in (lisp, shortlisp): Add cham.el.
11924
119252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11926
11927 * font.h (FONTP): Make it return 1 also for a font-object.
11928
11929 * .gdbinit (xfontset): New function.
11930
11931 * font.c (font_find_for_lface): Check if the character C is
11932 supported or not only for the first font.
11933
11934 * fontset.c (reorder_font_vector): Fix typo.
11935 (fontset_find_font): Don't add a font-spec specifying a script.
11936 Use 0 (not Qt) for the indication of empty font-group. Change the
11937 format of RFONT-DEF. Return Qt if no font in the font-group
11938 support the character.
11939 (fontset_font): Adjust for the above change. If no font was
11940 found the character, remember that.
11941 (face_for_char): Adjust for the change of RFONT-DEF.
11942 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11943 no font for the target.
11944 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11945
119462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11947
11948 * font.c (font_load_for_face): Handle the case that the font in
11949 face->lface is a string.
11950
119512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11952
11953 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11954
119552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11956
11957 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11958 Fix previous change. If the frame is not on a window system,
11959 signal an error.
11960
119612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11962
11963 * coding.c (decode_coding_object, encode_coding_object): Adjust
11964 marker positions after conversion.
11965
11966 * lisp.h (struct Lisp_Marker): New member need_adjustment.
11967
119682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11969
11970 * font.c (font_find_for_lface): Fix the handling of the return
11971 value of font_has_char.
11972 (Ffont_shape_text): Fix previous change.
11973
11974 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11975 (fontset_ref_and_range): Delete it.
11976 (fontset_find_font): Call char_table_ref_and_range instead of
11977 FONTSET_REF_AND_RANGE.
11978 (make_fontset): Don't setup font groups of Latin here.
11979 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11980 (new_fontset_from_font): Make the specified font the default for
11981 all Latin characters.
11982
119832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11984
11985 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
11986 is on a window system before accessing the fontset of the frame.
11987
119882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11989
11990 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
11991
11992 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
11993 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
11994
11995 * font.c (Ffont_shape_text): If the font driver doesn't have a
11996 shaper function, make zero-width glyphs to have at least one-pixel
11997 width. Fix setting of `to' field of glyphs.
11998
119992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12000
12001 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12002 glyphs.
12003
12004 * font.h (struct font_driver): Improve docstring of member `shape'.
12005
120062008-02-01 Kenichi Handa <handa@m17n.org>
12007
12008 * composite.c (syms_of_composite): Fix docstring of
12009 auto-composition-function.
12010
12011 * font.h (LGLYPH_SIZE): New macro.
12012
12013 * font.c (Ffont_fill_gstring): Stop filling when a character not
12014 supported by the font is found.
12015 (Ffont_shape_text): When a shape callback function returns nil,
12016 try at most two more times with larger gstring.
12017 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12018
12019 * xdisp.c (handle_auto_composed_prop): Change the argument to
12020 auto-composition-function.
12021
12022 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12023 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12024 Lispy glyph and store it in the lgstring.
12025
12026 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12027
12028 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12029
120302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12031
12032 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12033
12034 * fontset.c (Vfont_encoding_charset_alist): New variable.
12035 (syms_of_fontset): DEFVAR it.
12036 (reorder_font_vector, fontset_find_font): Optimize for the case of
12037 no need of reordering.
12038 (face_for_char): Map the charset property by
12039 Vfont_encoding_charset_alist.
12040
120412008-02-01 Jason Rumney <jasonr@gnu.org>
12042
12043 * w32font.c (logfonts_match): Don't check adstyle here.
12044 (font_matches_spec): Check here against physical font instead.
12045 (add_font_entity_to_list): Avoid some substitutions.
12046
12047 * font.c (font_parse_fcname): Default weight and slant to normal.
12048 (font_score): Prefer normal fonts if weight or slant unspecified.
12049 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12050 match freetype scores.
12051
120522008-02-01 Jason Rumney <jasonr@gnu.org>
12053
12054 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12055 font, as it may have been deleted.
12056 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12057 most common hyphenless variation.
12058 (logfonts_match): Check generic family.
12059 (font_matches_spec): Don't check generic family here.
12060 (fill_in_logfont): Set generic family based on adstyle.
12061
12062 * w32font.h (w32font_get_cache): Update declaration.
12063
120642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12065
12066 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12067
12068 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12069 If none of the new drivers are available, call font_update_drivers
12070 with the old drivers.
12071
12072 * w32font.c (w32font_get_cache): Adjust the argument type.
12073
12074 * xfont.c (xfont_get_cache): Adjust the argument type.
12075
12076 * font.h (struct font_driver): Change argument type of get_cache.
12077
12078 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12079
12080 * font.c (Ffont_get): Fix arguments to Fassoc.
12081 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12082 (font_clear_cache): New function.
12083 (font_list_entities, font_matching_entity): Use font_get_cache.
12084 (font_update_drivers): Call font_clear_cache when finishing a driver.
12085
12086 * fontset.c (fontset_find_font): Fix previous change.
12087
120882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12089
12090 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12091 dpyinfo->font_table.
12092 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12093 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12094
12095 * font.c (font_at): Handle the case that the arg C is negative.
12096 Handle the unibyte case.
12097 (Ffont_at): Call font_at with the arg C -1.
12098
12099 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12100 the position here, and call font_at with the arg C -1.
12101 Don't check the range of the existing composition at the point.
12102
121032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12104
12105 * fontset.c (fontset_add): New args charset_id and family.
12106 Change caller.
12107 (load_font_get_repertory, fontset_find_font): Assume that
12108 font_spec is always a font-spec object.
12109 (Fset_fontset_font): Always store a font-spec object in a fontset.
12110
12111 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12112 instead of get_property_and_range.
12113
121142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12115
12116 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12117 (xftfont_open): Don't keep locking face.
12118 (xftfont_close): Don't unlock face.
12119 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12120
12121 * fontset.c (fontset_find_font): Don't prefer a font of
12122 supplementary charset.
12123
121242008-02-01 Kenichi Handa <handa@m17n.org>
12125
12126 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12127 script, langsys_tag to langsys, new member script.
12128 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12129 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12130 listing to the script specified in that property. Fix arg to
12131 OTF_check_features.
12132
121332008-02-01 Jason Rumney <jasonr@gnu.org>
12134
12135 * w32font.h: New file.
12136
12137 * w32font.c: Include it.
12138 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12139 (w32font_open): Set owning_frame.
12140 (w32font_text_extents): Use owning_frame.
12141 (struct font_callback_data): Add opentype_only field.
12142 (add_font_entity_to_list): Use it to filter fonts.
12143 Don't check against full name.
12144 (w32font_list_internal): New function.
12145 (w32font_list): Use it.
12146 (w32font_match_internal): New function.
12147 (w32font_match): Use it.
12148 (w32font_open_internal): New function.
12149 (w32font_open): Use it.
12150 (w32font_get_cache, w32font_close, w32font_has_char)
12151 (w32font_encode_char, w32font_text_extents, w32font_draw):
12152 Make non-static.
12153
12154 * makefile.w32-in (w32font.o): Depend on w32font.h.
12155
121562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12157
12158 * charset.c (Fdefine_charset_internal): Record a supplementary
12159 charset at the tail of Vcharset_order_list.
12160
12161 * font.c (Ffont_shape_text): Fix the return value.
12162
12163 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12164
12165 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12166
121672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12168
12169 * ftfont.c (struct OpenTypeSpec): New struct.
12170 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12171 (ftfont_get_open_type_spec): New function.
12172 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12173
12174 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12175
121762008-02-01 Jason Rumney <jasonr@gnu.org>
12177
12178 * w32font.c (add_font_entity_to_list): Compare only the beginning
12179 of full name.
12180
121812008-02-01 Kenichi Handa <handa@m17n.org>
12182
12183 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12184 Never return HANDLED_RECOMPUTE_PROPS.
12185
121862008-02-01 Kenichi Handa <handa@m17n.org>
12187
12188 * font.c (font_gstring_produce): Delete it.
12189
12190 * composite.h (COMPOSITION_METHOD):
12191 Handle COMPOSITION_WITH_GLYPH_STRING.
12192
121932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12194
12195 * xfont.c (Qx): Delete.
12196 (syms_of_xfont): Don't initialize Qx.
12197
12198 * composite.h (enum composition_method):
12199 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12200
122012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12202
12203 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12204 (choose_face_font): Accept new form of font-spec.
12205
12206 * frame.h (font_driver_list): Declare it unconditionally.
12207 (struct frame): Define members font_driver_list and font_data_list
12208 unconditionally.
12209
12210 * fontset.c: Include "font.h" unconditionally.
12211 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12212 (Fset_fontset_font): Accept a font-spec object.
12213
12214 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12215 PIXEL_SIZE part a wild card.
12216
12217 * dispextern.h (struct glyph_string): Define members clip and
12218 num_clips unconditionally.
12219 (struct face): Define members font_info and extra unconditionally.
12220
12221 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12222 ftfont_info only when HAVE_LIBOTF is defined.
12223
122242008-02-01 Andreas Schwab <schwab@suse.de>
12225
12226 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12227 and end.
12228
122292008-02-01 Jason Rumney <jasonr@gnu.org>
12230
12231 * w32font.c (w32font_driver): Add new fields.
12232
122332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12234
12235 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12236 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12237 (LIBES): Add @M17N_FLT_CFLAGS@.
12238
12239 * composite.c (compose_text): Don't treat the new style
12240 composition specially.
12241
12242 * emacs.c (main): Call syms_of_font unconditionally.
12243
12244 * font.h (FONT_ENTITY_NOT_LOADABLE)
12245 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12246 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12247 (struct font_driver): New member shape.
12248 (font_registry_charsets): Extern it.
12249 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12250 (font_otf_capability, font_drive_otf): Delete their externs.
12251
12252 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12253 (font_charset_alist, font_registry_charsets): Move from xfont.c
12254 and rename.
12255 (font_prop_validate_otf): New function.
12256 (font_property_table): Register it for QCotf.
12257 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12258 (font_drive_otf): Delete.
12259 (font_prepare_composition): New arg F. Adjust for the change of
12260 lispy gstring.
12261 (font_find_for_lface): New arg C.
12262 (font_load_for_face): Adjust for the change of font_find_for_lface.
12263 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12264 lispy gstring.
12265 (Ffont_shape_text): New function.
12266 (Fopen_font): If the font size is not given, use 12-pixel.
12267 (Ffont_at): New arg STRING.
12268 (syms_of_font): Initalize font_charset_alist.
12269 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12270 conditionally.
12271
12272 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12273 fonts of the same font-spec. Change the format of RFONT-DEF.
12274 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12275 Adjust for the change of RFONT-DEF.
12276 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12277
12278 * ftfont.h: New file.
12279
12280 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12281 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12282 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12283 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12284 font_otf_capability and font_drive_otf, set ftfont_shape.
12285 (ftfont_list): Adjust for the change of :otf property value.
12286 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12287 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12288 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12289 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12290 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12291 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12292
12293 * w32term.c (x_draw_composite_glyph_string_foreground):
12294 Adjust for the change of lispy gstring.
12295
12296 * xdisp.c (handle_composition_prop): Adjust for the change of
12297 lispy gstring. Call a function for auto-composition with the
12298 third arg it->window.
12299 (fill_composite_glyph_string): Adjust for the change of lispy string.
12300 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12301
12302 * xfaces.c (set_font_frame_param): Adjust for the change of
12303 font_find_for_lface.
12304
12305 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12306 (xfont_registry_charsets): Likewise. Change caller.
12307 (syms_of_xfont): Don't handle x_font_charset_alist.
12308
12309 * xftfont.c: Include "ftfont.h".
12310 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12311 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12312 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12313 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12314 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12315 Set xftfont_driver.shape to xftfont_shape.
12316
12317 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12318 the change of lispy gstring.
12319
123202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12321
12322 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12323
123242008-02-01 Jason Rumney <jasonr@gnu.org>
12325
12326 * w32font.c (w32font_draw): Fill background manually.
12327
123282008-02-01 Jason Rumney <jasonr@gnu.org>
12329
12330 * font.c (Qfontp): Remove unused symbol.
12331 (QCantialias): New symbol.
12332 (syms_of_font): Define it.
12333 (font_property_table): Set a validator for QCantialias.
12334
12335 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12336 Define if not already.
12337 (QCfamily): Share with xfaces.c.
12338 (Qstandard, Qsubpixel, Qnatural): New symbols.
12339 (syms_of_w32font): Define them. Don't define QCfamily here.
12340 (w32_antialias_type, lispy_antialias_type): New functions.
12341 (w32_enumfont_pattern_entity): New arg requested_font.
12342 Set antialias parameter if non-default was requested.
12343 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12344
123452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12346
12347 * lread.c (read1): Undo the previous change.
12348
123492008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12350
12351 * frame.c (Fdelete_frame): Call font_update_drivers only when
12352 USE_FONT_BACKEND is defined.
12353
123542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12355
12356 * font.h (struct font_bitmap): New member bits_per_pixel.
12357 (struct font_driver): New members start_for_frame and end_for_frame.
12358 (struct font_data_list): New struct.
12359 (font_put_frame_data, font_get_frame_data): Extern them.
12360
12361 * frame.h (struct frame): New member font_data_list.
12362
12363 * font.c (font_update_drivers): Call driver->start_for_frame and
12364 driver->end_for_frame at proper timings.
12365 (font_put_frame_data, font_get_frame_data): New functions.
12366 (Ffont_spec): Add usage in the docstring.
12367
12368 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12369 (Fdelete_frame): Call font_update_drivers.
12370
12371 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12372 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12373 (xftfont_get_xft_draw): New function.
12374 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12375 (xftfont_end_for_frame): New function.
12376 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12377
12378 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12379 Change argument. Cache GCs in the per-frame data.
12380 (struct ftxfont_frame_data): New struct.
12381 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12382 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12383 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12384 (ftxfont_end_for_frame): New function.
12385 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12386
12387 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12388
123892008-02-01 Kenichi Handa <handa@m17n.org>
12390
12391 * xselect.c (Vselection_coding_system)
12392 (Vnext_selection_coding_system): Delete them.
12393 (syms_of_xselect): Don't declare selection-coding-system and
12394 next-selection-coding-system. They are declared in select.el.
12395
123962008-02-01 Jason Rumney <jasonr@gnu.org>
12397
12398 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12399
12400 * w32fns.c: Include imm.h.
12401 (get_composition_string_fn, get_ime_context_fn): New optional
12402 system functions.
12403 (globals_of_w32fns): Load them from imm32.dll.
12404 (ignore_ime_char): New flag.
12405 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12406 WM_IME_ENDCOMPOSITION messages.
12407
12408 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12409 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12410
124112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12412
12413 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12414 (READCHAR_REPORT_MULTIBYTE): New macro.
12415 (readchar): New 2nd arg MULTIBYTE.
12416 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12417 Make symbol's name multibyte according to the multibyteness of the
12418 source.
12419
124202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12421
12422 * xfaces.c (face_for_overlay_string): Call lookup_face with
12423 correct arguments (fix of synching with the trunk).
12424
124252008-02-01 Kenichi Handa <handa@m17n.org>
12426
12427 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12428 (font_prop_validate_non_neg, font_prop_validate_spacing):
12429 Delete argument prop_index.
12430 (font_property_table): Change arguments to validater. Change Callers.
12431 (font_lispy_object): Delete.
12432 (font_at): Use font_find_object instead fo font_lispy_object.
12433
124342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12435
12436 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12437 and file names.
12438
124392008-02-01 Jason Rumney <jasonr@gnu.org>
12440
12441 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12442 (font_matches_spec): Remove debug output.
12443 (add_font_entity_to_list): Avoid using substituted fonts.
12444
124452008-02-01 Jason Rumney <jasonr@gnu.org>
12446
12447 * doc.c (Fsnarf_documentation):
12448 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12449
124502008-02-01 Miles Bader <miles@gnu.org>
12451
12452 * dispextern.h (struct glyph_row): Only define "clip" field if
12453 HAVE_WINDOW_SYSTEM is defined.
12454
124552008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12456
12457 Fix up multi-tty merge.
12458
12459 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12460 and indentation.
12461
12462 * xfaces.c (free_realized_face, clear_face_gcs):
12463 Include font_done_for_face in the input_blocked section, just in case.
12464
12465 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12466 (get_char_face_and_encoding): Undo last change and remove the *other*
12467 duplicate definition (i.e. keep the one that's better scoped and that
12468 includes code for the font-backend).
12469
12470 * terminal.c (create_terminal): Default keyboard_coding to
12471 `no-conversion' and terminal_coding to `undecided'.
12472
12473 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12474
12475 * fontset.c (free_realized_fontsets): Check that the table entry does
12476 contain a fontset before trying to compare it to `base'.
12477
12478 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12479 syms_of_charset, and syms_of_coding earlier because init_window_once
12480 now needs Vcoding_system_hash_table to be setup.
12481
12482 * coding.h (default_buffer_file_coding): Remove.
12483
12484 * coding.c (default_buffer_file_coding): Remove.
12485 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12486 than ->symbol, and use the terminal-local coding system.
12487 (syms_of_coding): Don't setup the coding-systems that are not
12488 terminal-local.
12489 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12490
12491 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12492 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12493
12494 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12495 in chartab.c and were re-added here by mistake.
12496 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12497
12498 * doc.c (Fsnarf_documentation):
12499 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12500 src to etc.
12501
12502 * ChangeLog.10: Add mistakenly removed entry.
12503
125042008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12505
12506 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12507
125082008-02-01 Miles Bader <miles@gnu.org>
12509
12510 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12511 Add extra args to FACE_FOR_CHAR.
12512
125132008-02-01 Kenichi Handa <handa@m17n.org>
12514
12515 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12516 in sequence.
12517
12518 * chartab.c (map_sub_char_table, map_char_table): If the range
12519 contains just one character, call the function with that character
12520 even if the depth is not 3.
12521
125222008-02-01 Jason Rumney <jasonr@gnu.org>
12523
12524 * w32font.c (w32font_text_extents): Calculate metrics for the
12525 whole string.
12526
125272008-02-01 Jason Rumney <jasonr@gnu.org>
12528
12529 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12530
125312008-02-01 Jason Rumney <jasonr@gnu.org>
12532
12533 * w32term.c (x_set_glyph_string_clipping): Use
12534 get_glyph_string_clip_rects.
12535 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12536 Adjust for the change of struct glyph_string.
12537
12538 * w32font.c (w32font_draw): Do clipping here.
12539
125402008-02-01 Kenichi Handa <handa@m17n.org>
12541
12542 * xftfont.c (xftfont_draw): Adjust for the change of struct
12543 glyph_string.
12544
12545 * xterm.c (x_set_glyph_string_clipping): Use
12546 get_glyph_string_clip_rects.
12547 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12548 Adjust for the change of struct glyph_string.
12549
12550 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12551 the resulting clip(s}.
12552 (expose_overlaps): Add arg r. Change callers. Set it to
12553 row->clip temporarily.
12554 (expose_window): Redraw rows overlapping the exposed area.
12555
12556 * dispextern.h (struct glyph_row): New member clip.
12557 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12558 clip_height, new member clip, and num_clips.
12559
125602008-02-01 Kenichi Handa <handa@m17n.org>
12561
12562 * data.c (Fchar_or_string_p): Fix docstring.
12563
125642008-02-01 Kenichi Handa <handa@m17n.org>
12565
12566 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12567 create a temporary XftDraw object.
12568
125692008-02-01 Kenichi Handa <handa@m17n.org>
12570
12571 * font.c (Ffontp): Fix docstring.
12572
12573 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12574 strong evidence of ISO-2022.
12575
125762008-02-01 Kenichi Handa <handa@m17n.org>
12577
12578 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12579 SYNTAX_ENTRY_FOLLOW_PARENT.
12580
125812008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12582
12583 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12584 its type.
12585 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12586 Update to the new type of weak_hash_tables and next_weak.
12587
12588 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12589 a plain C pointer to Lisp_Hash_Table.
12590
12591 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12592 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12593 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12594 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12595 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12596 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12597 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12598 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12599 (GC_EQ): Remove since they've been identical to their non-GC_
12600 alter-egos ever since the markbit was eradicated.
12601
12602 * alloc.c:
12603 * buffer.c:
12604 * buffer.h:
12605 * data.c:
12606 * fileio.c:
12607 * filelock.c:
12608 * fns.c:
12609 * frame.h:
12610 * lisp.h:
12611 * macterm.c:
12612 * print.c:
12613 * process.c:
12614 * w32fns.c:
12615 * w32menu.c:
12616 * w32term.c:
12617 * xfns.c:
12618 * xmenu.c:
12619 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12620
126212008-02-01 Kenichi Handa <handa@m17n.org>
12622
12623 * chartab.c (map_sub_char_table): Make it work for the top-level
12624 char-table. Fix handling of parent char-table.
12625 (map_char_table): Adjust for the above change.
12626
126272008-02-01 Jason Rumney <jasonr@gnu.org>
12628
12629 * w32font.c (Qgdi): Rename from Qw32.
12630
126312008-02-01 Jason Rumney <jasonr@gnu.org>
12632
12633 * w32bdf.c (get_quoted_string): Make function static.
12634
126352008-02-01 Kenichi Handa <handa@m17n.org>
12636
12637 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12638 bigger ascent and descent than those of the font, use them as
12639 font's ascent and descent.
12640
126412008-02-01 Kenichi Handa <handa@m17n.org>
12642
12643 * Makefile.in (${lispsource}international/charprop.el): Move this
12644 target within "#ifdef HAVE_UNIDATA" and "#endif".
12645
126462008-02-01 Kenichi Handa <handa@m17n.org>
12647
12648 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12649 (shortlisp): Add ../lisp/language/tai-viet.el.
12650
126512008-02-01 Ulrich Mueller <ulm@gentoo.org>
12652
12653 * Makefile.in (${lispsource}international/charprop.el): Depend on
12654 temacs${EXEEXT}.
12655
126562008-02-01 Jason Rumney <jasonr@gnu.org>
12657
12658 * w32font.c (w32font_close): Delete the GDI font object.
12659
12660 * w32menu.c: Include character.h.
12661
12662 * w32proc.c: Likewise.
12663
12664 * w32select.c: Likewise.
12665
12666 * makefile.w32-in (w32proc.o): Depend on character.h.
12667
126682008-02-01 Jason Rumney <jasonr@gnu.org>
12669
12670 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12671
12672 * w32menu.c (syms_of_w32menu): Likewise.
12673
12674 * w32proc.c (syms_of_ntproc): Likewise.
12675
12676 * w32select.c (syms_of_w32select): Likewise.
12677
12678 * w32term.c (syms_of_w32term): Likewise.
12679
126802008-02-01 Jason Rumney <jasonr@gnu.org>
12681
12682 * w32font.c (w32font_draw): Delete brush after using it.
12683
126842008-02-01 Jason Rumney <jasonr@gnu.org>
12685
12686 * w32font.c (w32font_open): Don't set font_idx.
12687 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12688 to font settings.
12689 (w32font_draw): Fill background explicitly.
12690
126912008-02-01 Jason Rumney <jasonr@gnu.org>
12692
12693 * w32term.c (w32_initialize): Don't call w32font_initialize.
12694
12695 * w32font.c (w32font_info): Remove subranges.
12696 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12697 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12698 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12699 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12700 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12701 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12702 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12703 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12704 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12705 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12706 New symbols.
12707 (font_callback_data): New struct.
12708 (w32font_list, w32font_match): Use it.
12709 (w32font_open): Don't populate subranges.
12710 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12711 (w32font_encode_char): Always return unicode code-point as-is.
12712 (w32font_text_extents): Supply a transformation matrix to
12713 GetGlyphOutline. Never look up by glyph index. Avoid looping
12714 twice. Use unicode version of GetTexExtentPoint32 instead of
12715 glyph index version.
12716 (set_fonts_frame): Remove.
12717 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12718 set frame parameter. Use backward compatible fake foundries.
12719 Save generic family in extra slot under QCfamily. Make width slot
12720 constant. Save QCspacing value. Save list of scripts instead of
12721 binary subranges.
12722 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12723 (add_font_entity_to_list): Use font_callback_data struct. Filter
12724 unwanted fonts.
12725 (add_one_font_entity_to_list): Use font_callback_data struct.
12726 (w32_registry): Default to iso10646_1.
12727 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12728 string font registries. Don't fill in font name if it is a generic
12729 family name, fill family instead. Use spacing, family and script
12730 extra info to fill pitch, family and charset fields.
12731 (list_all_matching_fonts): Use font_callback_data struct.
12732 (unicode_range_for_char): Remove.
12733 (font_supported_scripts): New function.
12734 (w32font_initialize): Remove.
12735 (syms_of_w32font): Update which symbols are defined.
12736
127372008-02-01 Jason Rumney <jasonr@gnu.org>
12738
12739 * font.c (font_pixel_size): Reverse assq_no_quit args.
12740
12741 * w32term.h (FONT_WIDTH): Report max width, not average.
12742 (FONT_MAX_WIDTH): Remove.
12743 (FONT_AVG_WIDTH): New macro.
12744
12745 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12746 redefinition of FONT_WIDTH.
12747
12748 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12749 (w32_cache_char_metrics): Use FONT_WIDTH.
12750
12751 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12752
127532008-02-01 Jason Rumney <jasonr@gnu.org>
12754
12755 * w32font.c (w32font_open): Make lfHeight negative.
12756
12757 * w32fns.c (x_default_font_parameter): Use new style font name.
12758 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12759
127602008-02-01 Jason Rumney <jasonr@gnu.org>
12761
12762 * w32font.c (QCsubranges): New symbol.
12763 (w32font_open, w32font_has_char): Get subranges from subproperty
12764 of extra.
12765 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12766 (syms_of_w32font): Define :subranges symbol.
12767
12768 * font.c (font_put_extra): Expose externally.
12769
12770 * font.h (font_put_extra): Move declaration from font.c.
12771
12772 * font.c (Ffont_get): Use font driver to determine otf capability.
12773 (adjust_anchor): Check if driver defines anchor_point before using.
12774
12775 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12776 (w32font_draw): Use options.
12777 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12778 Fix detection of truetype fonts.
12779 (registry_to_w32_charset): Handle charsets other than iso8859-1
12780 expressed as lisp symbols.
12781 (w32_registry): Express charset as lisp symbol.
12782 (fill_in_logfont): Reverse pixel and point height logic.
12783 Don't set width here. Set quality to default.
12784
12785 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12786 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12787
12788 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12789 Remove redundant loop and allocation.
12790
12791 * makefile.w32-in (font.o, w32font.o): New objects.
12792 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12793 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12794
12795 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12796 STORE_XCHARB a valid l-value.
12797
12798 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12799 calculations for non-Truetype fonts.
12800 (x_draw_glyph_string): Sync with xterm.c.
12801 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12802 Remove redundant code.
12803 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12804
12805 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12806 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12807
12808 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12809 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12810
12811 * w32font.c: New file for w32 font backend.
12812
128132008-02-01 Kenichi Handa <handa@m17n.org>
12814
12815 * term.c: Don't include "buffer.h" twice.
12816
128172008-02-01 Kenichi Handa <handa@m17n.org>
12818
12819 * character.c (Funibyte_string): New function.
12820 (syms_of_character): Defsubr it.
12821
128222008-02-01 Jason Rumney <jasonr@gnu.org>
12823
12824 * w32term.c [USE_FONT_BACKEND]:
12825 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12826 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12827 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12828 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12829 (x_free_frame_resources): Sync with xterm.c.
12830
128312008-02-01 Andreas Schwab <schwab@suse.de>
12832
12833 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12834 char-table size.
12835
128362008-02-01 Kenichi Handa <handa@m17n.org>
12837
12838 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12839
128402008-02-01 Kenichi Handa <handa@m17n.org>
12841
12842 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12843 font_otf_gpos, add font_drive_otf.
12844
12845 * fontset.c (fontset_find_font): Pay attention to font size
12846 specified for a font.
12847 (reorder_font_vector): Check contents of font_def.
12848
12849 * font.c (struct otf_list): Delete it.
12850 (otf_list): Make it a lisp variable.
12851 (otf_open): Use lispy otf_list.
12852 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12853 (check_otf_features): New function.
12854 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12855 New functions.
12856 (font_drive_otf): New function merging font_otf_gsub and
12857 font_otf_gpos.
12858 (font_open_for_lface): New arg spec. Change argument order.
12859 (font_load_for_face): Adjust for the change of font_open_for_lface.
12860 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12861 Ffont_otf_gpos.
12862 (syms_of_font): Staticpro otf_list. Delete defsubr of
12863 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12864
12865 * xfaces.c (set_font_frame_param): Adjust for the change of
12866 font_open_for_lface.
12867
12868 * font.h (font_open_for_lface): Adjust prototype.
12869 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12870 member otf_drive.
12871 (font_otf_gsub, font_otf_gpos): Delete externs.
12872 (font_drive_otf): Extern it.
12873
128742008-02-01 Kenichi Handa <handa@m17n.org>
12875
12876 * font.c (font_at): If the window W is not on a window system,
12877 return Qnil.
12878
12879 * coding.c (produce_chars, encode_coding): Don't call
12880 insert_from_gap if no characters to produce.
12881
128822008-02-01 Kenichi Handa <handa@m17n.org>
12883
12884 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12885 Fclear_face_cache.
12886
12887 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12888
128892008-02-01 Miles Bader <miles@gnu.org>
12890
12891 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12892 Parse "--disable-font-backend" option.
12893 (standard_args): Add "--disable-font-backend" option.
12894
128952008-02-01 Kenichi Handa <handa@m17n.org>
12896
12897 * fontset.c (fontset_find_font): New function.
12898 (fontset_font): Use fontset_find_font.
12899 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12900 Register the specified font for all Latin characters.
12901 (new_fontset_from_font): Register the specified font for all Latin
12902 characters.
12903 (dump_fontset): For a realized fontset, include the base fontset
12904 name in the returned vector.
12905
129062008-02-01 Kenichi Handa <handa@m17n.org>
12907
12908 * character.h (CHAR_STRING): Cast C to unsigned on calling
12909 char_string.
12910
12911 * character.c (char_string): Type of arg C changed to unsigned.
12912 Signal an error if C is an invalid character code.
12913
12914 * editfns.c (general_insert_function, Fchar_to_string):
12915 Use CHARACTERP, not INTEGERP.
12916
129172008-02-01 Kenichi Handa <handa@m17n.org>
12918
12919 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12920 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12921
12922 * regex.c (analyse_first): Fix for multibyte characters in "case
12923 charset:" and "case categoryspec:".
12924
129252008-02-01 Andreas Schwab <schwab@suse.de>
12926
12927 * Makefile.in (LIBES): Move standard libraries to the end.
12928
129292008-02-01 Kenichi Handa <handa@m17n.org>
12930
12931 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12932 nonzero, don't shrink the buffer nextb.
12933
12934 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12935
12936 * coding.c (coding_alloc_by_making_gap): New arg offset.
12937 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12938 offset.
12939 (decode_coding_iso_2022): Update coding->safe_charsets.
12940 (decode_coding_gap): Temporarily set
12941 current_buffer->text->inhibit_shrinking to 1.
12942
129432008-02-01 Kenichi Handa <handa@m17n.org>
12944
12945 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12946 indexing into elements of s->cmp and s->char2b.
12947
129482008-02-01 Juanma Barranquero <lekktu@gmail.com>
12949
12950 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12951
129522008-02-01 Kenichi Handa <handa@m17n.org>
12953
12954 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12955 target_multibyte instead of multibyte.
12956 (re_match_2_internal): Call bcmp_translate with target_multibyte.
12957 (bcmp_translate): Change the argument name from multibyte to
12958 target_multibyte.
12959
129602008-02-01 Kenichi Handa <handa@m17n.org>
12961
12962 These changes are to compile a regexp into a pattern that can be
12963 used both for multibyte and unibyte targets.
12964
12965 * Makefile.in (search.o): Depend on charset.h.
12966
12967 * character.c (multibyte_char_to_unibyte_safe): New function.
12968
12969 * search.c: Include "charset.h".
12970 (compile_pattern_1): Delete argument multibyte. Don't set
12971 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
12972 (compile_pattern): Don't compare cp->buf.target_multibyte.
12973 Compare cp->buf.charset_unibyte.
12974 (compile_pattern): Set cp->buf.target_multibyte.
12975
12976 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12977
12978 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12979
12980 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
12981 multibyte. Change callers.
12982 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
12983 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
12984 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
12985 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
12986 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
12987 (regex_compile): Make the compiled pattern usable both for
12988 multibyte and unibyte targets.
12989 (analyse_first): Make the fastmap usable both for multibyte and
12990 unibyte targets.
12991 (TRANSLATE_VIA_MULTIBYTE): Delete.
12992 (re_match_2_internal): Pay attention to the case that the
12993 multibyteness of bufp and target may be different.
12994
129952008-02-01 Kenichi Handa <handa@m17n.org>
12996
12997 * xdisp.c (x_produce_glyphs): When a font is not found, make the
12998 empty box occupy at least one column width.
12999
130002008-02-01 Miles Bader <miles@gnu.org>
13001
13002 * Makefile.in: Remove redundant HAVE_XFT clause.
13003
130042008-02-01 Kenichi Handa <handa@m17n.org>
13005
13006 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13007
130082008-02-01 Kenichi Handa <handa@m17n.org>
13009
13010 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13011 being nil.
13012
130132008-02-01 Kenichi Handa <handa@m17n.org>
13014
13015 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13016
130172008-02-01 Kenichi Handa <handa@m17n.org>
13018
13019 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13020
130212008-02-01 Kenichi Handa <handa@m17n.org>
13022
13023 * search.c (simple_search): Fix previous change.
13024
130252008-02-01 Kenichi Handa <handa@m17n.org>
13026
13027 * xftfont.c (ftfont_font_format): Extern declaration.
13028
13029 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13030
13031 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13032 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13033
13034 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13035 (ftfont_font_format): Fix previous change.
13036
13037 * font.h (Ffont_xlfd_name): EXFUN it.
13038
13039 * font.c (font_parse_xlfd): Fix the array size of `f'.
13040 (register_font_driver): Use EQ to compare driver->type.
13041
13042 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13043 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13044 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13045
130462008-02-01 Kenichi Handa <handa@m17n.org>
13047
13048 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13049 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13050
130512008-02-01 Kenichi Handa <handa@m17n.org>
13052
13053 * xfont.c (xfont_open): Set font->format.
13054
13055 * xftfont.c (xftfont_open): Set font->format.
13056
13057 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13058 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13059 (ftfont_open): Set font->format.
13060 (ftfont_font_format): New function.
13061
13062 * font.h (struct font): New member format.
13063
13064 * font.c (Qopentype): New variable.
13065 (syms_of_font): Defsym it.
13066 (Fquery_font): Change the format of the last element of the return
13067 value.
13068
130692008-02-01 Kenichi Handa <handa@m17n.org>
13070
13071 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13072 last resort.
13073
130742008-02-01 Kenichi Handa <handa@m17n.org>
13075
13076 * coding.c (detect_coding_charset): Fix detection of multi-byte
13077 charset.
13078
130792008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13080
13081 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13082
130832008-02-01 Kenichi Handa <handa@m17n.org>
13084
13085 * xdisp.c (get_next_display_element): Set it->face_id for the
13086 first component of a composition.
13087 (x_produce_glyphs): Check if the font is changed or not for composition.
13088
130892008-02-01 Kenichi Handa <handa@m17n.org>
13090
13091 * fontset.c (Qlatin): New variable.
13092 (syms_of_fontset): Define it as a lisp symbol.
13093 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13094
130952008-02-01 Kenichi Handa <handa@m17n.org>
13096
13097 * font.c (font_unparse_fcname): Pay attention to the case that
13098 some of font property is a null string.
13099
131002008-02-01 Kenichi Handa <handa@m17n.org>
13101
13102 * term.c: Include "composite.h".
13103 (encode_terminal_code): Output all components of composition.
13104 Check the size of encode_terminal_src.
13105 (produce_glyphs): For composition, call produce_composite_glyph.
13106 (append_composite_glyph, produce_composite_glyph): New functions.
13107
13108 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13109 is not found, get font_info from the current ascii face.
13110
131112008-02-01 Kenichi Handa <handa@m17n.org>
13112
13113 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13114 buffer-file-name to Qnil before calling insert_from_buffer.
13115
13116 * font.c (font_unparse_fcname): Pay attention to the case that
13117 foundry is a null string.
13118
131192008-02-01 Kenichi Handa <handa@m17n.org>
13120
13121 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13122
13123 * font.c (Qunicode_sip): New variable.
13124 (syms_of_font): Declare it as a Lisp symbol.
13125
13126 * font.h (Qunicode_sip): Extern it.
13127
131282008-02-01 Kenichi Handa <handa@m17n.org>
13129
13130 * composite.c (get_composition_id): Pay attention to TAB component.
13131
13132 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13133 TAB. Adjust for the change of s->char2b which always points to
13134 the first element of allocated memory.
13135
13136 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13137
13138 * xdisp.c (handle_composition_prop): Set it->c to the first
13139 non-TAB component.
13140 (fill_composite_glyph_string): Change argument.
13141 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13142 (x_produce_glyphs): Fix handling of left/right padding.
13143
131442008-02-01 Kenichi Handa <handa@m17n.org>
13145
13146 * coding.c (detect_coding_system): Fix for handling off
13147 inhibit_iso_escape_detection. Fix for the case that no coding
13148 system is defined for a specific coding category.
13149
131502008-02-01 Kenichi Handa <handa@m17n.org>
13151
13152 * font.c (font_matching_entity): Delete unused local var.
13153
13154 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13155 opening a font.
13156
13157 * fileio.c (Finsert_file_contents): On recovering a file, assume
13158 Unix-like eol.
13159 (choose_write_coding_system): On auto-saving a file, force
13160 Unix-like eol.
13161
13162 * coding.c (setup_coding_system): Fix setting of
13163 coding->common_flags based on eol_type.
13164 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13165 inherit from it.
13166
131672008-02-01 Kenichi Handa <handa@m17n.org>
13168
13169 * alloc.c (NSTATICS): Increas to 0x600.
13170
131712008-02-01 Kenichi Handa <handa@m17n.org>
13172
13173 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13174 (ftfont_list): Don't check :name property.
13175 (ftfont_match): New function.
13176 (ftfont_pattern_entity): If the pattern doesn't contain
13177 FC_SPACING, don't assume FC_MONO.
13178
13179 * font.h (struct font_driver): New member `match'.
13180 (font_update_drivers): Adjust prototype.
13181
13182 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13183 property of FONT.
13184 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13185 them unconditionally.
13186 (font_matching_entity): New function.
13187 (font_open_by_name): Try font_matching_entity if exact match is
13188 not found.
13189 (font_update_drivers): Delete the arg FONT. Return a list of
13190 actually used backends. Don't free faces, font caches here.
13191 Don't store data in frame parameters. Don't call x_set_font.
13192 (Ffont_spec): Store :name property as is.
13193 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13194 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13195 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13196 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13197 Call font->driver->otf_gsub instead of font_otf_gsub.
13198
13199 * frame.c (x_set_font_backend): Do more works that were done in
13200 font_update_drivers before.
13201
13202 * xfont.c (xfont_match): New function.
13203 (xfont_driver): Set xfont_driver.match to xfont_match.
13204 (xfont_draw): Set font in GC if necessary.
13205
13206 * ftxfont.c (ftxfont_match): New function.
13207 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13208
13209 * xftfont.c (xftfont_match): New function.
13210 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13211
132122008-02-01 Kenichi Handa <handa@m17n.org>
13213
13214 * font.h (struct font): New member scalable.
13215 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13216 (font_otf_gsub): Adjust prototype.
13217
13218 * font.c (font_otf_capability): Fix handling of the default langsys.
13219 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13220 Check the contents of SPEC.
13221 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13222 (check_gstring): New function.
13223 (REPLACEMENT_CHARACTER): New macro.
13224 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13225 glyph codes of GSTRING.
13226 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13227 (font_prepare_composition): Set cmp->glyph_len.
13228 (font_open_entity): Set font->scalable.
13229 (Ffont_get): Handle :otf property.
13230 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13231 functions.
13232 (Fquery_font): Use font->font.full_name.
13233 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13234 Sfont_otf_alternates.
13235
13236 * ftfont.c (ftfont_open): Set font->font.full_name and
13237 font->font.name properly. Fix calculation of font->font.height
13238 and font->min_width.
13239
13240 * ftxfont.c (ftxfont_create_gcs): New function.
13241 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13242 (ftxfont_draw_backgrond): Fix filling region.
13243 (ftxfont_default_fid): New function.
13244 (ftxfont_open): Set xfont->fid to the return value of
13245 ftxfont_default_fid.
13246 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13247 (ftxfont_done_face): Free only GCs that are created by
13248 ftxfont_create_gcs.
13249 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13250
13251 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13252 Clip to src->width, etc (not src->clip_XXX).
13253
13254 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13255 FontBackend frame parameter.
13256
132572008-02-01 Kenichi Handa <handa@m17n.org>
13258
13259 * font.h (struct font_driver_list): New member `on'.
13260 (Fclear_font_cache): EXFUN it.
13261 (font_update_drivers): Extern it.
13262
13263 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13264 (font_list_entities): Check driver_list->on.
13265 (register_font_driver): Initalize `on' member to 0.
13266 (font_update_drivers): New function.
13267 (Fclear_font_cache): Check driver_list->on.
13268
13269 * frame.h (Qfont_backend): Extern it.
13270 (x_set_font_backend): Extern it.
13271
13272 * frame.c (Qfont_backend): New variable.
13273 (frame_parms): New element for font-backend.
13274 (x_set_font_backend): New function.
13275
13276 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13277 FontBackend frame parameter.
13278 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13279 x_set_font_backend.
13280
13281 * xfont.c (xfont_list): Don't try listing by :name property if the
13282 name is not for XLFD.
13283
132842008-02-01 Kenichi Handa <handa@m17n.org>
13285
13286 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13287 (LGLYPH_SET_TO): New macros.
13288 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13289 element of G is vector or not.
13290 (font_at): Extern it.
13291
13292 * font.c: Include window.h.
13293 (font_lispy_object): New function.
13294 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13295 end of valid glyph.
13296 (font_close_object): Fix getting (struct font *).
13297 (font_at): New function.
13298 (Ffont_get): If FONT is a font-object, get entity from it.
13299 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13300 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13301 range check.
13302 (Ffont_at): New function.
13303 (syms_of_font): Defsubr Sfont_at.
13304
13305 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13306 before the entry for Qcomposition.
13307 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13308 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13309 the font in gstring.
13310 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13311 LGLYPH_FORM (g) to detect the end of valid glyph.
13312 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13313 we are composing with gstring.
13314
13315 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13316 Check if adjustment is vector or not.
13317
13318 * Makefile.in (font.o): Make it depends on window.h.
13319
133202008-02-01 Kenichi Handa <handa@m17n.org>
13321
13322 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13323 adjustment is vector or not.
13324
133252008-02-01 Miles Bader <miles@gnu.org>
13326
13327 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13328
133292008-02-01 Kenichi Handa <handa@m17n.org>
13330
13331 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13332 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13333 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13334
13335 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13336 (DEVICE_DELTA): Fix typo.
13337 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13338 LGLYPH format.
13339
13340 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13341 the change of LGLYPH format.
13342
133432008-02-01 Kenichi Handa <handa@m17n.org>
13344
13345 * ftfont.c (ftfont_list): Fix typo.
13346 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13347
133482008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13349
13350 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13351
13352 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13353 xftface_info is non-NULL.
13354
133552008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13356
13357 * ftfont.c (ftfont_list): Move misplaced #endif.
13358
133592008-02-01 Kenichi Handa <handa@m17n.org>
13360
13361 * ftfont.c (ftfont_list): Pay attention to the case that
13362 FC_CAPABILITY is not defined.
13363
133642008-02-01 Kenichi Handa <handa@m17n.org>
13365
13366 * xftfont.c (xftfont_open): Set charset related members to -1.
13367
13368 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13369 QCname.
13370 (ftfont_open): Set charset related members to -1.
13371
13372 * fontset.c (Votf_script_alist): New variable.
13373 (syms_of_fontset): Initialize it.
13374 (fontset_font): Delete unused variable.
13375
13376 * fontset.h (Votf_script_alist): Extern it.
13377
13378 * font.c (font_find_for_lface): Optimize code.
13379
13380 * font.h (font_close_object, font_merge_old_spec): Extern them.
13381
133822008-02-01 Kenichi Handa <handa@m17n.org>
13383
13384 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13385 (syms_of_font): Initialize them.
13386 (font_pixel_size): Allow float value in dpi.
13387 (font_prop_validate_type): Delete.
13388 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13389 Change caller.
13390 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13391 (font_prop_validate_extra): Delete.
13392 (font_prop_validate_spacing): New function.
13393 (font_property_table): Add elements for all known properties.
13394 (get_font_prop_index): Rename from check_font_prop_name. New
13395 argument FROM. Change caller.
13396 (font_prop_validate): Validate all known properties.
13397 (font_put_extra): Delete argument force. Change caller.
13398 (font_expand_wildcards): Make it static. Fix the way of shrinking
13399 the possible range.
13400 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13401 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13402 Change caller.
13403 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13404 (font_parse_fcname): Delete argument merge. Fix parsing of point
13405 size. Don't validate properties values here. Change caller.
13406 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13407 (font_open_by_name): Delete unused variable.
13408 (Ffont_spec): Likewise. Validate property values.
13409 (Ffont_match_p): New function.
13410
13411 * font.h (QCscalable): Extern it.
13412 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13413
13414 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13415
13416 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13417 (xfont_list_pattern): New function.
13418 (xfont_list): Use xfont_list_pattern.
13419
134202008-02-01 Kenichi Handa <handa@m17n.org>
13421
13422 * font.h (Flist_fonts): EXFUN it.
13423
134242008-02-01 Jason Rumney <jasonr@gnu.org>
13425
13426 * w32term.c (w32_initialize): Add back smoothing_type and
13427 smoothing_enabled definitions.
13428
134292008-02-01 Kenichi Handa <handa@m17n.org>
13430
13431 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13432 s->face->font on determining underline position.
13433
134342008-02-01 Kenichi Handa <handa@m17n.org>
13435
13436 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13437 (font_has_char): Accept font-object too.
13438 (font_find_for_lface): Try at first with a size specified in face.
13439
134402008-02-01 Kenichi Handa <handa@m17n.org>
13441
13442 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13443 font_open_by_name.
13444
134452008-02-01 Kenichi Handa <handa@m17n.org>
13446
13447 * font.h (QCspacing, QCdpi): Extern them.
13448 (enum font_spacing): New enum.
13449 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13450
13451 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13452 (QCspacing, QCdpi): New variables.
13453 (syms_of_font): Initialize them.
13454 (font_pixel_size): New function.
13455 (font_put_extra): New function.
13456 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13457 in FONT_EXTRA.
13458 (font_parse_fcname): Handle enumerated values (e.g. bold).
13459 Fix handling font size. Add QCname property that contains only
13460 unknown properties.
13461 (font_score): Change argument. Change caller. Pay attention to
13462 FONT_PIXEL_SIZE_QUANTUM.
13463 (font_sort_entites, font_list_entities, font_find_for_lface)
13464 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13465 (Ffont_spec): Add QCname property that contains only unknown properties.
13466
13467 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13468 include weight in listing pattern, instead check weight of each
13469 listed font. Don't include scalable in pattern. Pay attention to
13470 FONT_PIXEL_SIZE_QUANTUM.
13471
134722008-02-01 Kenichi Handa <handa@m17n.org>
13473
13474 * font.c (font_parse_fcname): Fix parsing of point-size.
13475 (font_unparse_fcname): Produce symbolic names for style properties.
13476 (font_list_entities): Handle float size correctly.
13477 (font_open_by_name): Prefer `normal' property values if the name
13478 doesn't specify them.
13479
13480 * fontset.c (Finternal_char_font): Use font_get_name, not
13481 Ffont_xlfd_name.
13482
13483 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13484 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13485 pattern. Don't force scalable.
13486
13487 * xftfont.c (xftfont_open): For generating a name, start from
13488 96-byte buffer.
13489
134902008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13491
13492 * frame.h (x_new_fontset2): Fix prototype.
13493
134942008-02-01 Kenichi Handa <handa@m17n.org>
13495
13496 * font.h (struct font_driver): Delete member parse_name.
13497 (font_match_p, font_get_spec, font_parse_fcname)
13498 (font_unparse_fcname): Extern them.
13499 (font_get_name): Adjust prototype.
13500
13501 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13502 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13503 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13504 unnecessary checks for weight, slant, and swidth.
13505 (font_parse_fcname): New function.
13506 (font_unparse_fcname): New function.
13507 (font_parse_name): New function.
13508 (font_match_p): New function.
13509 (font_get_name): Change return value to Lisp string.
13510 (font_get_spec): New function.
13511 (Qunspecified, Qignore_defface): Don't extern them.
13512 (font_find_for_lface): Assume that LFACE is fully specified.
13513 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13514 object, use it for FACE.
13515 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13516 driver->parse_name.
13517 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13518
13519 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13520 prototype.
13521
13522 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13523 argument F. Don't call Fnew_fontset. Instead, directly call
13524 make_fontset.
13525
13526 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13527
13528 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13529 of x_new_fontset2.
13530
13531 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13532 (Qsans__serif): New variables.
13533 (ftfont_generic_family_list): New variable.
13534 (syms_of_ftfont): Initialize the above variables.
13535 (ftfont_pattern_entity): Delete argument NAME.
13536 (ftfont_list_generic_family): New function.
13537 (ftfont_parse_name): Delete this function.
13538 (ftfont_list): Try generic family only when FcFontList found no font.
13539 (ftfont_list_family): Fix args to FcObjectSetBuild.
13540
13541 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13542 object in attrs[LFACE_FONT_INDEX].
13543 (set_lface_from_font_name): Cancel all changes for font-backend.
13544 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13545 function.
13546 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13547 font object in QCfont attribute.
13548 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13549 (realize_default_face) [USE_FONT_BACKEND]: Call
13550 set_lface_from_font_and_fontset.
13551
13552 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13553 "fixed", and signal error here if no suitable font was found.
13554
13555 * xfont.c (xfont_parse_name): Delete this function.
13556
13557 * xftfont.c (xftfont_open): Change coding style of error
13558 handling. Generate fontconfig's fontname pattern.
13559
13560 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13561 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13562
13563 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13564 Both args FONTSET and FONT_OBJECT must be existing ones.
13565
135662008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13567
13568 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13569
135702008-02-01 Kenichi Handa <handa@m17n.org>
13571
13572 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13573
13574 * font.h (struct font): Fix typo.
13575
13576 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13577 XLFD_XXX_INDEX.
13578 (enum xlfd_field_mask): New enum.
13579 (intern_font_field): Changed argument. Change caller. If digits
13580 are followed by non-digits, return a symbol.
13581 (font_expand_wildcards): New function.
13582 (font_parse_xlfd): Fix wildcard handling.
13583 (Ffont_spec): If :name is specified, reflect the info in the other
13584 properties.
13585
13586 * ftfont.c (ftfont_pattern_entity): Fix typo.
13587 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13588 locale.
13589
135902008-02-01 Kenichi Handa <handa@m17n.org>
13591
13592 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13593
13594 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13595 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13596 registry doesn't specify encoding part.
13597 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13598 (font_open_by_name): At first try parsing the name.
13599 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13600 as Lisp symbols.
13601
13602 * fontset.c (reorder_font_vector): Pay attention to the case that
13603 the 3rd element of font_def is nil.
13604 (fontset_font): For the default fontset, append one more fontset
13605 elements for a script-based font specification. Don't add script
13606 attribute on finding a font.
13607 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13608 font name.
13609 (fontset_ascii_font): If a font can't be opened, return nil.
13610
13611 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13612 (ftfont_pattern_entity): New function.
13613 (ftfont_get_cache): Assume that freetype_font_cache is already
13614 initialized.
13615 (ftfont_list): Handle the case that a file is specified in font
13616 name. Use ftfont_pattern_entity to generate entities.
13617 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13618 (syms_of_ftfont): Initialize freetype_font_cache.
13619
13620 * xftfont.c (xftfont_open): Make the font name fontconfig's
13621 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13622 (xftfont_close): Free font->font.name if not NULL.
13623
13624 * xfont.c (xfont_list): If script is specified for a font, return
13625 null_vector.
13626 (xfont_list_family): Declare argument type.
13627
13628 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13629 name, set LFACE_FONT (lface) to nil.
13630
13631 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13632 return Qnil.
13633
136342008-02-01 Kenichi Handa <handa@m17n.org>
13635
13636 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13637 (standard_args): Add "-enable-font-backend".
13638
136392008-02-01 Kenichi Handa <handa@m17n.org>
13640
13641 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13642 (struct xftdraw_list, xftdraw_list): Delete them.
13643 (register_xftdraw, check_xftdraw): Delete them.
13644 (xftfont_prepare_face): Don't call register_xftdraw.
13645 (xftfont_done_face): Don't call check_xftdraw.
13646 (xftfont_draw): Get background color only when with_background is
13647 nonzero.
13648
13649 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13650
136512008-02-01 Kenichi Handa <handa@m17n.org>
13652
13653 These changes are for the new font handling codes.
13654
13655 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13656 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13657 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13658 (FONTSRC, FONTOBJ): New variables.
13659 (obj): Add $(FONTOBJ).
13660 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13661 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13662 @LIBOTF_LIBS@.
13663 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13664 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13665
13666 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13667
13668 * character.h (Vscript_representative_chars): Extern it.
13669
13670 * character.c (Vscript_representative_chars): New variable.
13671 (syms_of_character): Declare it as a Lisp variable.
13672
13673 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13674 enable_font_backend is nonzero, accept the composition method
13675 COMPOSITION_WITH_GLYPH_STRING.
13676
13677 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13678 enumeration COMPOSITION_WITH_GLYPH_STRING.
13679
13680 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13681 members clip_x, clip_y, clip_width, and clip_height.
13682 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13683
13684 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13685 --enable-font-backend. Call syms_of_font.
13686
13687 * fns.c (assoc_no_quit): New function.
13688
13689 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13690 (face_for_font, new_fontset_from_font)
13691 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13692
13693 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13694 (fontset_font, fontset_ascii, face_for_char)
13695 (make_fontset_for_ascii_face, Ffont_info)
13696 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13697 is nonzero, use font-backend mechanism.
13698 (find_font_encoding): Make it non-static.
13699 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13700 New functions.
13701
13702 * frame.h (struct frame): New members resx and resy.
13703 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13704 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13705
13706 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13707 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13708
13709 * lisp.h (assoc_no_quit): Extern it.
13710
13711 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13712 Through out the file, use FONT_INFO_FROM_FACE instead of
13713 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13714 rif->per_char_metric.
13715 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13716 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13717 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13718 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13719 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13720 nonzero, use font-backend mechanism.
13721 (get_per_char_metric): New function.
13722
13723 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13724 (set_lface_from_font_name)
13725 (set_font_frame_param, free_realized_face)
13726 (prepare_face_for_display, clear_face_gcs)
13727 (Finternal_set_font_selection_order, realize_x_face)
13728 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13729 font-backend mechanism.
13730 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13731 (load_face_font) [USE_FONT_BACKEND]: Abort.
13732 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13733 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13734
13735 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13736 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13737 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13738 nonzero, register all available font drivers. Call
13739 x_default_font_parameter for deciding a font.
13740 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13741
13742 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13743 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13744 (x_set_glyph_string_clipping_exactly)
13745 (x_compute_glyph_string_overhangs)
13746 (x_draw_glyph_string_foreground)
13747 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13748 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13749 enable_font_backend is nonzero, use font-backend mechanism.
13750 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13751
137522008-02-01 Kenichi Handa <handa@m17n.org>
13753
13754 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13755 system_eol_type.
13756 (syms_of_coding): Initialize system_eol_type.
13757
13758 * process.c (Fset_process_coding_system): Inherit system's eol
13759 format if necessary.
13760
137612008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13762
13763 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13764
137652008-02-01 Kenichi Handa <handa@m17n.org>
13766
13767 * coding.c (decode_eol): Pay attention to buffer relocation in
13768 del_range_2.
13769 (decode_coding): Call decode_eol before restoring undo_list.
13770
137712008-02-01 Kenichi Handa <handa@m17n.org>
13772
13773 * charset.c (Fdefine_charset_internal): Fix setting of
13774 emacs_mule_bytes.
13775
137762008-02-01 Kenichi Handa <handa@m17n.org>
13777
13778 * keyboard.c (read_char): Check if C is a character or not before
13779 looking up Vkeyboard_translate_table.
13780
137812008-02-01 Kenichi Handa <handa@m17n.org>
13782
13783 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13784 condition to terminate the loop.
13785
137862008-02-01 Kenichi Handa <handa@m17n.org>
13787
13788 * coding.c (produce_composition): Compare charbuf[i] instead of
13789 args[i] against 0.
13790 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13791
137922008-02-01 Kenichi Handa <handa@m17n.org>
13793
13794 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13795 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13796 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13797 detect_coding.
13798 (emacs_mule_char): Handle old style (Emacs 20) component character
13799 of a composition.
13800 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13801 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13802 composition rule.
13803 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13804
138052008-02-01 Kenichi Handa <handa@m17n.org>
13806
13807 * coding.c (encode_coding_ccl): Allocate destination dynamically
13808 when necessary.
13809
138102008-02-01 Kenichi Handa <handa@m17n.org>
13811
13812 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13813 the loop. When quitted, show a proper error message.
13814
138152008-02-01 Kenichi Handa <handa@m17n.org>
13816
13817 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13818 src->clip_head and src->clip_tail temporarily instead of src->hl.
13819
13820 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13821 character sequence.
13822 (Fccl_execute_on_string): Use ASET, not XSET.
13823
138242008-02-01 Kenichi Handa <handa@m17n.org>
13825
13826 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13827
138282008-02-01 Kenichi Handa <handa@m17n.org>
13829
13830 * coding.c (decode_coding): Fix the condition of terminating the
13831 decoding loop.
13832
138332008-02-01 Kenichi Handa <handa@m17n.org>
13834
13835 * data.c (Faset): On setting a character bigger than 255 in a
13836 unibyte string, signal an error instead of make the string multibyte.
13837
138382008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13841 made by a mapping table.
13842
138432008-02-01 Kenichi Handa <handa@m17n.org>
13844
13845 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13846 not.
13847 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13848 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13849
13850 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13851 s->face is NULL or not.
13852
138532008-02-01 Kenichi Handa <handa@m17n.org>
13854
13855 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13856 (x_draw_glyph_string): Fix drawing of right_overhang and
13857 left_overhang around/on cursor.
13858
13859 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13860
138612008-02-01 Kenichi Handa <handa@m17n.org>
13862
13863 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13864
138652008-02-01 Kenichi Handa <handa@m17n.org>
13866
13867 * coding.c (Fdefine_coding_system_internal)
13868 (Fdefine_coding_system_alias): Avoid a duplicated element in
13869 Vcoding_system_alist.
13870
138712008-02-01 Kenichi Handa <handa@m17n.org>
13872
13873 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13874
13875 * coding.c (Qcoding_system_define_form): New variable.
13876 (syms_of_coding): Intern and staticpro it.
13877 (Fcoding_system_p): Check Qcoding_system_define_form.
13878 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13879
13880 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13881 Fcoding_system_p.
13882 (CHECK_CODING_SYSTEM): If ID is not available, call
13883 Fcheck_coding_system.
13884 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13885 Try also Fcheck_coding_system.
13886
138872008-02-01 Kenichi Handa <handa@m17n.org>
13888
13889 * coding.c (code_conversion_restore): GCPRO arg.
13890
138912008-02-01 Kenichi Handa <handa@m17n.org>
13892
13893 * character.c (lisp_string_width): Check multibyteness of STRING.
13894
138952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13896
13897 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13898 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13899 (decode_mac_font_name): Use decode_coding_c_string instead of
13900 decode_coding.
13901 (x_load_font): Initialize fontp->fontset to -1. Set
13902 fontp->encoding_type.
13903
139042008-02-01 Kenichi Handa <handa@m17n.org>
13905
13906 * search.c (search_buffer): Give up BM search on case-fold-search
13907 if one of a target character has a case-equivalence of different
13908 byte length even if that target charcter is an ASCII.
13909 (simple_search): Fix calculation of byte length of matched text.
13910 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13911
139122008-02-01 Kenichi Handa <handa@m17n.org>
13913
13914 * coding.c (decode_coding): Fix handling of invalid bytes.
13915
139162008-02-01 Kenichi Handa <handa@m17n.org>
13917
13918 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13919 Unicode characters.
13920
139212008-02-01 Kenichi Handa <handa@m17n.org>
13922
13923 * coding.c (encode_coding_object): If a pre-write-conversion
13924 function makes a new buffer, kill it.
13925
139262008-02-01 Kenichi Handa <handa@m17n.org>
13927
13928 * coding.c (QCascii_compatible_p): New variable.
13929 (syms_of_coding): Initialize it.
13930 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13931 calling string_char.
13932 (record_conversion_result): Add `default:' case.
13933 (coding_charset_list): Delete unused variable `coding_type'.
13934 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13935 property in the plist of the coding system.
13936 (Fcoding_system_put): Check QCascii_compatible_p.
13937
139382008-02-01 Miles Bader <miles@gnu.org>
13939
13940 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13941 removed calculation of frame `f', as it's now used.
13942
139432008-02-01 Kenichi Handa <handa@m17n.org>
13944
13945 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13946 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13947 (UNIDATA): New variable.
13948 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13949 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13950 $(RUN_TEMACS) unconditionally.
13951
139522008-02-01 Kenichi Handa <handa@m17n.org>
13953
13954 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13955 (admindir): New variable.
13956 ($(lispsource)international/charprop.el): New target.
13957
139582008-02-01 Miles Bader <miles@gnu.org>
13959
13960 * character.c (chars-in-region): Remove obsolete function.
13961 (syms_of_character): Remove its initialization.
13962
139632008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
13964
13965 * w32select.c (validate_coding_system)
13966 (setup_windows_coding_system): New functions.
13967 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13968 setup_windows_coding_system.
13969 (setup_config, Fw32_get_clipboard_data): Use
13970 validate_coding_system.
13971 (Fx_selection_exists): Move call to setup_config to a place
13972 where signals are allowed.
13973
13974 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13975 (Fcheck_coding_system): Add declarations.
13976
139772008-02-01 Kenichi Handa <handa@m17n.org>
13978
13979 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13980
139812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13982
13983 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
13984 string as the second argument for x_new_fontset.
13985
139862008-02-01 Kenichi Handa <handa@m17n.org>
13987
13988 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
13989 (encode_coding_object): Use safe_call instead of call2.
13990
139912008-02-01 Kenichi Handa <handa@m17n.org>
13992
13993 * fontset.c (Fset_fontset_font): Check family element of a given vector.
13994
13995 * Makefile.in (lisp): Include charprop.el.
13996
139972008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13998
13999 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14000 Not sure if it's unnecessary.
14001
140022008-02-01 Steven Tamm <steventamm@mac.com>
14003
14004 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14005 some possibly unnecessary fontset checking code that crashed
14006 when creating a new frame.
14007
140082008-02-01 Kenichi Handa <handa@m17n.org>
14009
14010 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14011 lookup_face.
14012
14013 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14014
14015 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14016
140172008-02-01 Kenichi Handa <handa@m17n.org>
14018
14019 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14020 (coding_charset_list): New function.
14021
14022 * coding.h (coding_charset_list): Extern it.
14023
140242008-02-01 Kenichi Handa <handa@m17n.org>
14025
14026 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14027 concatenation of family and registry.
14028
140292008-02-01 Kenichi Handa <handa@m17n.org>
14030
14031 * character.h (BYTE8_STRING): Fix typo.
14032
14033 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14034 string to multibyte (sync to HEAD).
14035
14036 * casefiddle.c (casify_region): Handle changes in byte-length
14037 using replace_range_2 (sync to HEAD).
14038
140392008-02-01 Andreas Schwab <schwab@suse.de>
14040
14041 * chartab.c (map_char_table): GCPRO table and arg.
14042
140432008-02-01 Kenichi Handa <handa@m17n.org>
14044
14045 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14046 already at limit.
14047
140482008-02-01 Kenichi Handa <handa@m17n.org>
14049
14050 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14051 instead of fast_c_string_match_ignore_case.
14052 (find_font_encoding): Change argument to Lisp_Object. Use
14053 fast_string_match_ignore_case instead of
14054 fast_c_string_match_ignore_case. Change caller.
14055
140562008-02-01 Kenichi Handa <handa@m17n.org>
14057
14058 * xdisp.c (get_next_display_element): In unibyte case, decide to
14059 display in octal form by checking a character by
14060 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14061
14062 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14063
14064 * character.c (unibyte_has_multibyte_table): New variable.
14065
14066 * character.h (unibyte_has_multibyte_table): Extern it.
14067 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14068
140692008-02-01 Kenichi Handa <handa@m17n.org>
14070
14071 * coding.c (encode_coding_iso_2022): Fix handling of charset
14072 annotation.
14073
140742008-02-01 Kenichi Handa <handa@m17n.org>
14075
14076 * coding.c (setup_coding_system): If coding_system is nil, use
14077 Qundecided.
14078 (Fterminal_coding_system): Return nil if terminal coding system is
14079 `undecided'.
14080 (syms_of_coding): Define coding-system `undecided' here. Setup
14081 terminal_coding as `undecided'.
14082
140832008-02-01 Kenichi Handa <handa@m17n.org>
14084
14085 * xdisp.c (message_dolog, set_message_1): Call
14086 unibyte_char_to_multibyte with arg type int.
14087
14088 * lread.c (read1): Fix reading of a char-table.
14089
14090 * print.c (print_object): Include sub char-table in circularities
14091 detection.
14092
140932008-02-01 Kenichi Handa <handa@m17n.org>
14094
14095 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14096 Append the found sequences in car of ARGS instead of prepending.
14097
140982008-02-01 Kenichi Handa <handa@m17n.org>
14099
14100 * fileio.c (report_file_error): Make a unibyte string from
14101 strerror (errorno).
14102 (Fsubstitute_in_file_name): Fix the arg to
14103 unibyte_char_to_multibyte. It is evaluated twice.
14104
141052008-02-01 Kenichi Handa <handa@m17n.org>
14106
14107 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14108
141092008-02-01 Kenichi Handa <handa@m17n.org>
14110
14111 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14112 BOM is not found.
14113 (detect_coding, detect_coding_system): Optimization for ISO-2022
14114 when no 8-bit data is found.
14115
141162008-02-01 Jason Rumney <jasonr@gnu.org>
14117
14118 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14119
141202008-02-01 Kenichi Handa <handa@m17n.org>
14121
14122 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14123 CHARS.
14124
141252008-02-01 Steven Tamm <steventamm@mac.com>
14126
14127 * macterm.c (mac_encode_char): Add charset argument and update
14128 to use encoding_type.
14129 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14130 switch to pure fontset.
14131 (decode_mac_font_name): Temporarily remove decoding.
14132 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14133 (x_load_font): Temporarily remove encoding.
14134
141352008-02-01 Kenichi Handa <handa@m17n.org>
14136
14137 * xfaces.c (Fface_font): If frame is not on a window system,
14138 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14139 refer to face->font.
14140 (split_font_name_into_vector, build_font_name_from_vector)
14141 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14142 when HAVE_WINDOW_SYSTEM is defined.
14143
141442008-02-01 Kenichi Handa <handa@m17n.org>
14145
14146 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14147 (x_produce_glyphs): Fix setting of members of cmp in case
14148 cmp->glyph_len is zero.
14149
14150 * fontset.c (Fset_fontset_font): Fix docstring.
14151 (Ffontset_info): Make it backward compatible. New arg ALL.
14152
141532008-02-01 Kim F. Storm <storm@cua.dk>
14154
14155 * process.c (read_process_output): Grow decoding_buf when needed;
14156 this could cause a crash in allocate_string and compact_small_strings.
14157
141582008-02-01 Kenichi Handa <handa@m17n.org>
14159
14160 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14161
141622008-02-01 Kenichi Handa <handa@m17n.org>
14163
14164 * coding.c (setup_coding_system): Set coding->common_flags
14165 correctly for raw-text.
14166 (consume_chars): On encoding unibyte text by raw-text, don't check
14167 multibyte form.
14168 (encode_coding): On encoding by raw-text, never use translation tables.
14169
14170 * fileio.c (e_write): Short cut for the case of no encoding.
14171
141722008-02-01 Kenichi Handa <handa@m17n.org>
14173
14174 * coding.c (detect_coding, detect_coding_system): Delete unused
14175 variables.
14176
141772008-02-01 Kenichi Handa <handa@m17n.org>
14178
14179 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14180 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14181
141822008-02-01 Kenichi Handa <handa@m17n.org>
14183
14184 * coding.c (Ffind_coding_systems_region_internal): Include
14185 raw-text and no-conversion in the result.
14186
141872008-02-01 Kenichi Handa <handa@m17n.org>
14188
14189 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14190 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14191 FONT_DEF.
14192 (font_def_arg, add_arg, from_arg, to_arg): New args.
14193 (set_fontset_font): Change argument.
14194 (Fset_fontset_font): Fix for the case that TARGET is a script
14195 name and charset name.
14196 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14197
141982008-02-01 Kenichi Handa <handa@m17n.org>
14199
14200 * fontset.c (fontset_font): Rename from fontset_face. Change return
14201 value.
14202 (face_suitable_for_char_p, face_for_char): Adjust for the change
14203 of fontset_font.
14204 (make_fontset_for_ascii_face): Fix setting of the fontset element
14205 for ASCII.
14206 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14207 to get a font name.
14208 (Ffontset_info): Adjust for the change of fontset_font.
14209
14210 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14211
14212 * character.h (LEADING_CODE_LATIN_1_MIN)
14213 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14214
142152008-02-01 Kenichi Handa <handa@m17n.org>
14216
14217 * editfns.c (check_translation): New function.
14218 (Ftranslate_region_internal): Handle M:N mapping.
14219
142202008-02-01 Kenichi Handa <handa@m17n.org>
14221
14222 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14223
142242008-02-01 Kenichi Handa <handa@m17n.org>
14225
14226 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14227 goto invalid_code.
14228 (decode_coding_iso_2022): Fix handling of invalid designation.
14229
14230 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14231 after calling code_conversion_save.
14232
142332008-02-01 Kenichi Handa <handa@m17n.org>
14234
14235 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14236
14237 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14238
14239 * fontset.c: Include "intervals.h".
14240 (fontset_face): Fix comparing of Lisp_Objects.
14241 (free_face_fontset, new_fontset_from_font_name): Fix
14242 Lisp_Object/int mixup.
14243
14244 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14245
14246 * coding.c: Add many prototypes for static functions.
14247 (get_translation_table): Allow max_lookup to be NULL.
14248 (decode_coding, Ffind_coding_systems_region_internal)
14249 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14250 get_translation_table with max_lookup NULL.
14251
142522008-02-01 Kenichi Handa <handa@m17n.org>
14253
14254 * coding.c (get_translation_table): Declare it as Lisp_Object.
14255 (LOOKUP_TRANSLATION_TABLE): New macro.
14256 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14257 instead of CHAR_TABLE_REF.
14258
142592008-02-01 Kenichi Handa <handa@m17n.org>
14260
14261 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14262 annotation data format.
14263 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14264 Change arguments FROM and TO to single argument NCHARS. Change caller.
14265 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14266 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14267 (decode_coding_ccl, decode_coding_charset): Pay attention to
14268 coding->charbuf_used.
14269 (get_translation): New function.
14270 (produce_chars): New arguments translation_table and last_block.
14271 Translate characters here. Return number of carryover chars.
14272 Change caller.
14273 (produce_composition): New argument pos. Change caller.
14274 Adjust for the change of annotation data format.
14275 (produce_charset, produce_annotation): Likewise.
14276 (decode_coding, encode_coding): Don't call translate_chars.
14277 (consume_chars): New arg translation_table. Change caller.
14278 (translate_chars): Delete.
14279 (syms_of_coding): Make translation-table's number of extra slots 2.
14280
142812008-02-01 Kenichi Handa <handa@m17n.org>
14282
14283 * search.c (simple_search): Fix setting this_pos_byte in backward
14284 search.
14285
14286 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14287 byte sequence.
14288 (detect_coding_ccl): Fix setting of the variable valids.
14289
142902008-02-01 Kenichi Handa <handa@m17n.org>
14291
14292 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14293
14294 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14295
14296 * editfns.c (Ftranslate_region_internal): Rename from
14297 Ftranslate_region. Accept a char-table in TABLE.
14298 (syms_of_editfns): Defsubr Stranslate_region_internal.
14299
14300 * xfaces.c (set_lface_from_font_name): If a font is specified for
14301 a frame, generate a fontset from the font.
14302 (build_scalable_font_name): If the scalable font is requested for
14303 a specific size, don't change that size.
14304 (try_font_list): Try a scalable font also in the case that a
14305 pattern string is specified.
14306
143072008-02-01 Kenichi Handa <handa@m17n.org>
14308
14309 * xfaces.c (Fface_font): New optional arg CHARACTER.
14310
143112008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * charset.h (CHARSET_OFFSET): New macro.
14314
143152008-02-01 Kenichi Handa <handa@m17n.org>
14316
14317 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14318
14319 * fontset.c (fontset_face): Handle the case that repertory is a
14320 char-table.
14321 (find_font_encoding): Return nil for unknown encoding.
14322 (Fset_fontset_font): Ignore a font of unknown encoding.
14323
143242008-02-01 Kenichi Handa <handa@m17n.org>
14325
14326 * keymap.c (describe_vector): Handle default value of a char table.
14327
14328 * fontset.c (fontset_face): Handle fallback fonts correctly.
14329 (Ffontset_info): Return infomation about fallback fonts.
14330
143312008-02-01 Kenichi Handa <handa@m17n.org>
14332
14333 * fontset.c (FONTSET_DEFAULT): New macro.
14334 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14335 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14336 the case that it is nil.
14337 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14338 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14339
14340 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14341 subset or superset.
14342
143432008-02-01 Kenichi Handa <handa@m17n.org>
14344
14345 * emacs.c (main): Call init_charset after syms_of_XXX.
14346
14347 * charset.c (Vcharset_map_directory): Delete.
14348 (Vcharset_map_path): New variable.
14349 (load_charset_map_from_file): Use Vcharset_map_path instead.
14350 (init_charset): Initialize Vcharset_map_path.
14351 (syms_of_charset): Delete declaration of "charset-map-directory",
14352 add declaration of "charset-map-path".
14353
143542008-02-01 Kenichi Handa <handa@m17n.org>
14355
14356 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14357 ASCII only string.
14358
14359 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14360
14361 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14362 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14363
143642008-02-01 Kenichi Handa <handa@m17n.org>
14365
14366 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14367
14368 * coding.c (QCmnemonic, QCdefalut_char)
14369 (QCdecode_translation_table, QCencode_translation_table)
14370 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14371 (get_translation_table): Return a list of translation tables if
14372 necessary.
14373 (decode_coding): Call get_translation_table with ENCODEP 0.
14374 (char_encodable_p): If translation_table is non-nil, always call
14375 translate_char.
14376 (Fdefine_coding_system_internal): Accept list of translation
14377 tables as :encode-translation-table and :decode-translation-table.
14378 (Fcoding_system_put): New function.
14379 (syms_of_coding): Declare new symbols. Defsubr
14380 Scoding_system_put.
14381 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14382 typically JISX0212.
14383
14384 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14385 when the charset is superset type.
14386
14387 * character.c (translate_char): Accept list of translation tables.
14388
143892008-02-01 Kenichi Handa <handa@m17n.org>
14390
14391 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14392 (CODING_ATTR_TRANS_TBL): New macro.
14393
14394 * coding.c (get_translation_table): New function.
14395 (translate_chars): Fix the bug of skipping annotation data.
14396 (decode_coding, encode_coding): Utilize get_translation_table.
14397 (char_encodable_p, Funencodable_char_position): Translate char if
14398 necessary.
14399 (Ffind_coding_systems_region_internal)
14400 (Fcheck_coding_systems_region): Setup translation table for encode
14401 in a coding system attribute vector in advance.
14402 (Fdefine_coding_system_internal): Allow a symbol as translation
14403 table. For shift-jis type coding system, allow 4th charset.
14404
144052008-02-01 Kenichi Handa <handa@m17n.org>
14406
14407 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14408
14409 * xdisp.c (get_next_display_element): Pass -1 as POS to
14410 FACE_FOR_CHAR if displaying a C-string.
14411
144122008-02-01 Kenichi Handa <handa@m17n.org>
14413
14414 * composite.c (get_composition_id): Handle xoff and yoff in a
14415 composition rule.
14416
14417 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14418 (struct composition): New member lbearing and rbearing.
14419
14420 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14421 (x_get_glyph_overhangs): Handle a composition glyph.
14422 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14423
14424 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14425 composition glyph.
14426
144272008-02-01 Kenichi Handa <handa@m17n.org>
14428
14429 * print.c: Include charset.h.
14430 (Vprint_charset_text_property): New variable.
14431 (Qdefault): Extern it.
14432 (PRINT_STRING_NON_CHARSET_FOUND)
14433 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14434 (print_check_string_result): New variable.
14435 (print_check_string_charset_prop): New function.
14436 (print_prune_charset_plist): New variable.
14437 (print_prune_string_charset): New function.
14438 (print_object): Call print_prune_string_charset if
14439 Vprint_charset_text_property is not t.
14440 (print_interval): Print nothing if interval->plist is nil.
14441 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14442 variable. Init and staticpro print_prune_charset_plist.
14443
144442008-02-01 Kenichi Handa <handa@m17n.org>
14445
14446 * fontset.c (new_fontset_from_font_name): Use the specified font
14447 for all characters in the new fontset.
14448
14449 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14450 OBJECT args.
14451
14452 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14453 OBJECT args for composition too.
14454
14455 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14456 OBJECT args.
14457
144582008-02-01 Kenichi Handa <handa@m17n.org>
14459
14460 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14461
14462 * fontset.c (reorder_font_vector): Adjust for the change of
14463 FONT_DEF format.
14464 (fontset_face): New arg id. Change caller.
14465 (face_for_char): New args pos and object.
14466 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14467 (fs_query_fontset): Check NAME by Fassoc too.
14468 (Fset_fontset_font): Allow non-XLFD font name.
14469 (Ffontset_info): Adjust for the change of FONT_DEF format.
14470
14471 * fontset.h (face_for_char): Adjust prototype.
14472
14473 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14474 (append_space, extend_face_to_end_of_line)
14475 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14476 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14477
14478 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14479 POS and OBJECT args.
14480
14481 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14482 POS and OBJECT args.
14483
144842008-02-01 Jason Rumney <jasonr@gnu.org>
14485
14486 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14487 of GlobalAlloc'ed memory.
14488
144892008-02-01 Kenichi Handa <handa@m17n.org>
14490
14491 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14492
14493 * charset.h (charset_table_used): Delete extern.
14494
14495 * charset.c (charset_table_used): Make it static.
14496 (map_charset_chars): Fix args to c_function with.
14497
14498 * chartab.c (map_sub_char_table_for_charset): Fix args to
14499 c_function with.
14500
14501 * coding.h (enum coding_result_code): Delete
14502 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14503
14504 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14505 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14506 (Vlast_code_conversion_error): New variables.
14507 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14508 (ONE_MORE_BYTE): Record error if any instead of signaling an
14509 error. If non-ASCII multibyte char is found, return the negative
14510 value of the code. All callers changed to check it.
14511 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14512 (record_conversion_result): New function. Change all codes setting
14513 coding->result to call this function.
14514 (detect_coding_utf_8, decode_coding_utf_8)
14515 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14516 Don't use the local variable incomplete.
14517 (emacs_mule_char): Change the second arg to `const'.
14518 (decode_coding): Fix of flushing out unprocessed data.
14519 (make_conversion_work_buffer): Fix making of a work buffer.
14520 (decode_coding_object): Return coding->dst_object.
14521
14522 * fontset.c (set_fontset_font): Fix args.
14523
14524 * lisp.h (CHARACTERBITS): Define as 22.
14525
14526 * process.c (send_process): Be sure to set coding->src_multibyte.
14527
14528 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14529
145302008-02-01 Kenichi Handa <handa@m17n.org>
14531
14532 * xdisp.c (handle_auto_composed_prop): Give limit to
14533 Fnext_single_char_property_change.
14534
145352008-02-01 Kenichi Handa <handa@m17n.org>
14536
14537 * composite.c (syms_of_composite): Don't make the composition hash
14538 table weak.
14539
14540 * fontset.c (Fset_fontset_font): Fix docstring.
14541
14542 * lisp.h (detect_coding_system): Adjust prototype.
14543
14544 * fileio.c (kill_workbuf_unwind): Delete this function.
14545 (Finsert_file_contents): Adjust the call of detect_coding_system.
14546 Get conversion_buffer by code_conversion_save. Use the macro
14547 CODING_MAY_REQUIRE_DECODING. After decoding, update
14548 coding_system.
14549
14550 * coding.h (make_conversion_work_buffer): Delete extern.
14551 (code_conversion_save): Extern it.
14552
14553 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14554 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14555 (decode_coding_utf_8): Don't do eol converion.
14556 (detect_coding_utf_16): Check coding->src_chars, not
14557 coding->src_bytes. Add heuristics for those that have no signature.
14558 (decode_coding_emacs_mule, decode_coding_iso_2022)
14559 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14560 Don't do eol converion.
14561 (adjust_coding_eol_type): Return a new coding system.
14562 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14563 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14564 each change.
14565 (decode_coding): Pay attention to undo_list. Do eol conversion for
14566 all types of coding-systems (if necessary).
14567 (Vcode_conversion_work_buf_list): Delete it.
14568 (Vcode_conversion_reused_workbuf): Rename from
14569 Vcode_conversion_reused_work_buf.
14570 (Vcode_conversion_workbuf_name): New variable.
14571 (reused_workbuf_in_use): New variable.
14572 (make_conversion_work_buffer): Delete the arg DEPTH.
14573 (code_conversion_restore): Change argument to cons.
14574 (code_conversion_save): Delete the argument BUFFER. Change callers.
14575 (detect_coding_system): New argument src_chars. Change callers.
14576 Fix for utf-16 detection.
14577 (init_coding_once): Don't use ISO_carriage_return.
14578 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14579 reused_workbuf_in_use.
14580
145812008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * keymap.c (store_in_keymap): Pay attention to the case that idx
14584 is a cons specifying a character range.
14585
145862008-02-01 Kenichi Handa <handa@m17n.org>
14587
14588 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14589 HANDLED_RECOMPUTE_PROPS.
14590
14591 * coding.c (Fdefine_coding_system_internal): Fix checking of
14592 ascii compatibility.
14593
145942008-02-01 Kenichi Handa <handa@m17n.org>
14595
14596 * charset.c (find_charsets_in_text): Delete unused locale variable.
14597 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14598
14599 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14600 Resync charset_list to Vemacs_mule_charset_list.
14601
14602 * keymap.c (store_in_keymap): Pay attention to the case that idx
14603 is a cons specifying a character range.
14604
146052008-02-01 Kenichi Handa <handa@m17n.org>
14606
14607 * composite.c (update_compositions): Bind inhibit-read-only, etc
14608 to t before calling remove-list-of-text-properties.
14609
14610 * print.c (print_object): Always print ASCII chars as is.
14611
146122008-02-01 Kenichi Handa <handa@m17n.org>
14613
14614 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14615
14616 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14617 is a char table.
14618
146192008-02-01 Kenichi Handa <handa@m17n.org>
14620
14621 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14622
146232008-02-01 Kenichi Handa <handa@m17n.org>
14624
14625 * xfaces.c (set_lface_from_font_name): Fix for the case that
14626 FONTNAME is not fontset name.
14627
146282008-02-01 Kenichi Handa <handa@m17n.org>
14629
14630 * fns.c (base64_encode_1): Fix previous change.
14631
146322008-02-01 Kenichi Handa <handa@m17n.org>
14633
14634 * fontset.c (set_fontset_font): New function.
14635 (Fset_fontset_font): If a font is specified for a charset, use
14636 map_charset_chars to store the font spec in a fontset.
14637
146382008-02-01 Kenichi Handa <handa@m17n.org>
14639
14640 * fontset.c (fontset_face): Create a fallback fontset on demand.
14641 (make_fontset): Don't create a fallback fontset here.
14642 (free_face_fontset): Free a fallback fontset (if any) too.
14643 (n_auto_fontsets): Delete this variable.
14644 (auto_fontset_alist): New variable.
14645 (new_fontset_from_font_name): Check auto_fontset_alist.
14646 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14647 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14648 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14649 Defsubr Sfontset_list_all.
14650
146512008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14654
146552008-02-01 Kenichi Handa <handa@m17n.org>
14656
14657 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14658
146592008-02-01 Kenichi Handa <handa@m17n.org>
14660
14661 * editfns.c (Fgoto_char): Fix docstring.
14662
146632008-02-01 Kenichi Handa <handa@m17n.org>
14664
14665 * insdel.c (insert_from_gap): Adjust intervals correctly.
14666
146672008-02-01 Jason Rumney <jasonr@gnu.org>
14668
14669 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14670 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14671 (w32_initialize): Try to load it.
14672 (x_get_font_repertory): Use it if available.
14673 (w32_encode_char): Add shortcut for unicode output.
14674
14675 * w32fns.c (w32_load_system_font): Default charset to -1.
14676 (x_to_w32_charset): Match all fonts for unicode.
14677 (w32_to_x_charset): New parameter matching. Don't return partial
14678 or wildcard charsets.
14679 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14680 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14681 (w32_to_x_font): Match charset to real charset.
14682 (enum_font_cb2): Always list unicode versions.
14683
14684 * makefile.w32-in (temacs): Increase EMHEAP.
14685
146862008-02-01 Jason Rumney <jasonr@gnu.org>
14687
14688 * w32term.c (w32_encode_char): New charset parameter.
14689 font_info.encoding becomes encoding_type.
14690 (x_get_font_repertory): New function. Warning: stub only!
14691 (x_new_font): Return quickly if font already set.
14692 (x_new_fontset): fontsetname parameter is Lisp_Object.
14693 Use new fs_query_fontset. Try new_fontset_from_font_name.
14694 Use fontset_name for return value.
14695
14696 * w32term.h: Declare x_get_font_repertory.
14697
14698 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14699 place of find_charset_in_text. Use encode_coding_object in place
14700 of encode_coding.
14701 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14702 decode_coding.
14703
14704 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14705 of x_new_fontset.
14706 (w32_load_system_font): Initialize charset as unicode.
14707 font_info.encoding becomes encoding_type.
14708 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14709 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14710 (syms_of_w32fns): Set get_font_repertory_func.
14711
14712 * w32console.c: Include character.h. Use terminal_encode_buffer
14713 from term.c.
14714 (write_glyphs): Use new version of encode_terminal_code. Use
14715 encode_coding_object in place of encode_coding.
14716
14717 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14718 encoding becomes encoding_type.
14719
14720 * term.c (terminal_encode_buffer): Make externally visible.
14721
14722 * makefile.w32-in: Add character.h dependancies.
14723 (character.o, chartab.o): New targets.
14724
147252008-02-01 Kenichi Handa <handa@m17n.org>
14726
14727 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14728 CODING_ID_EOL_TYPE.
14729
147302008-02-01 Andreas Schwab <schwab@suse.de>
14731
14732 * coding.c (produce_chars): Revert last change.
14733
147342008-02-01 Kenichi Handa <handa@m17n.org>
14735
14736 * charset.h (charset_unicode): Extern it.
14737
14738 * charset.c (string_xstring_p): Check by (C >= 0x100).
14739 (find_charsets_in_text): Change format of the arc CHARSETS. New
14740 arg MULTIBYTE.
14741 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14742 change of find_charsets_in_text.
14743 (Fsplit_char): Fix doc. Never return unknown.
14744
14745 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14746
14747 * coding.c (Fdefine_coding_system_alias): Update
14748 Vcoding_system_list.
14749
14750 * fontset.c (load_font_get_repertory): Pay attention to the case
14751 that ENCODING of a font is specified by a char-table.
14752
14753 * xterm.c (x_get_font_repertory): Handle the case that the
14754 encoding of font is other than Unicode.
14755
147562008-02-01 Kenichi Handa <handa@m17n.org>
14757
14758 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14759 if a character is encodable by the terminal coding system. If
14760 not, produces proper number of `?'s. Update
14761 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14762 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14763
147642008-02-01 Kenichi Handa <handa@m17n.org>
14765
14766 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14767 variables.
14768 (encode_terminal_code): Change argument. Encode multiple
14769 characters at once. Store the result of encoding in
14770 terminal_encode_buffer.
14771 (write_glyphs, insert_glyphs): Adjust for the change of
14772 encode_terminal_code.
14773 (term_init): Initialize terminal_encode_buffer and
14774 terminal_encode_buf_size.
14775
14776 * coding.c (consume_chars): If coding->src_object is nil, don't
14777 check annotation.
14778
147792008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * character.c (char_string): Use ASCII_CHAR_P instead of
14782 SINGLE_BYTE_CHAR_P.
14783
147842008-02-01 Kenichi Handa <handa@m17n.org>
14785
14786 * xdisp.c (handle_auto_composed_prop): Check if the last
14787 characters of auto-composed region is newly composed with the
14788 following characters.
14789 (handle_composition_prop): Fix checking of point being inside
14790 composition.
14791
147922008-02-01 Kenichi Handa <handa@m17n.org>
14793
14794 * fns.c (concat): Don't change multibyteness of the result by
14795 concatenating an 8-bit character.
14796
14797 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14798 multibyteness of the result when newelt is an 8-bit character.
14799
148002008-02-01 Dave Love <fx@gnu.org>
14801
14802 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14803 EMACS_INT.
14804
14805 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14806
14807 * xfaces.c (face_numeric_value): Declare dim size_t.
14808 (Finternal_lisp_face_equal_p): Remove unused f.
14809
14810 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14811 (MATRIX_ROW): Remove unused vars.
14812 (draw_glyphs, x_insert_glyphs, fast_find_position)
14813 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14814 byte/char counts.
14815
14816 * regex.c (regex_compile): Remove unused var.
14817
14818 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14819
14820 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14821 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14822
14823 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14824
14825 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14826
14827 * fileio.c (Fwrite_region): Remove unused var.
14828
14829 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14830 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14831
14832 * composite.c (Fremove_list_of_text_properties): Declare.
14833
14834 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14835 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14836 (coding_inherit_eol_type): Remove unused attrs.
14837 (detect_coding): Cast arg of detect_eol.
14838
14839 * charset.c (syms_of_charset): Remove unused var p.
14840 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14841 byte/char counts.
14842
14843 * casetab.c (set_case_table): Remove unused var.
14844
14845 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14846 unused vars.
14847
148482008-02-01 Dave Love <fx@gnu.org>
14849
14850 * xterm.c (x_bitmap_mask): Declare.
14851
148522008-02-01 Dave Love <fx@gnu.org>
14853
14854 * xterm.c (x_term_init): Fix type error.
14855
14856 * lisp.h: Add Funibyte_char_to_multibyte.
14857
14858 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14859 (Fset_coding_system_priority): Doc fix.
14860
14861 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14862
14863 * indent.c (check_composition): Make start and end EMACS_INT.
14864
14865 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14866
14867 * xdisp.c (handle_composition_prop, check_point_in_composition):
14868 Make buffer positions EMACS_INT.
14869
14870 * composite.c (find_composition, run_composition_function)
14871 (update_compositions, Ffind_composition_internal): Make buffer
14872 positions EMACS_INT.
14873
14874 * composite.h (find_composition, update_compositions): Make
14875 position args EMACS_INT.
14876
14877 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14878
14879 * intervals.c (get_property_and_range):
14880 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14881
14882 * unexalpha.c: Don't include varargs.h.
14883
148842008-02-01 Dave Love <fx@gnu.org>
14885
14886 * coding.h (ENCODE_UTF_8): New.
14887
14888 * Makefile.in (gtkutil.o): Depend on coding.h.
14889
14890 * coding.c (Fset_coding_system_priority): Doc fix.
14891
148922008-02-01 Kenichi Handa <handa@m17n.org>
14893
14894 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14895 the case of auto saving.
14896
148972008-02-01 Andreas Schwab <schwab@suse.de>
14898
14899 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14900 `range' from GC.
14901
149022008-02-01 Kenichi Handa <handa@m17n.org>
14903
14904 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14905
149062008-02-01 Kenichi Handa <handa@m17n.org>
14907
14908 * fileio.c (choose_write_coding_system): Return a decided coding system.
14909 (Fwrite_region): Set Vlast_coding_system_used to the return value
14910 of choose_write_coding_system.
14911
149122008-02-01 Kenichi Handa <handa@m17n.org>
14913
14914 * charset.c (Fset_charset_priority): Pay attention to duplicated
14915 arguments.
14916
14917 * coding.c (QCcategory): New variable.
14918 (syms_of_coding): Defsym it. Set all elements of
14919 Vcoding_category_table and their symbol values.
14920 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14921 coding-category-XXX, and coding-category-list.
14922 (Fdefine_coding_system_internal): Add category in the plist.
14923
149242008-02-01 Kenichi Handa <handa@m17n.org>
14925
14926 * callproc.c (Fcall_process): Handle carryover correctly.
14927
14928 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14929 (raw_text_coding_system): Check NILP (coding_system).
14930 (coding_inherit_eol_type): Check NILP (coding_system) and
14931 NILP (parent).
14932 (consume_chars): Fix for the case of raw-text.
14933
14934 * process.c (read_process_output): Handle carryover correctly.
14935
149362008-02-01 Dave Love <fx@gnu.org>
14937
14938 * regex.c (re_search_2): Fix last change.
14939
149402008-02-01 Kenichi Handa <handa@m17n.org>
14941
14942 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14943 target_multibyte. Even in a unibyte case, return a converted
14944 multibyte char.
14945 (GET_CHAR_AFTER): New macro.
14946 (PATFETCH): Translate via multibyte char.
14947 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14948 (SETUP_MULTIBYTE_RANGE): New macro.
14949 (regex_compile): Setup compiled code so that its multibyteness
14950 matches that of a target. Fix the handling of "[X-YZ]" using
14951 SETUP_MULTIBYTE_RANGE.
14952 (analyse_first) <charset>: For filling fastmap for all multibyte
14953 characters, don't check by BASE_LEADING_CODE_P.
14954 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
14955 the same as RE_MULTIBYTE_P (bufp) now.
14956 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14957 (TARGET_CHAR_AND_LENGTH): Delete this macro.
14958 (TRANSLATE_VIA_MULTIBYTE): New macro.
14959 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14960 It is the same as RE_MULTIBYTE_P (bufp) now.
14961 <exactn>: Translate via multibyte.
14962 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
14963 translate it.
14964 <charset, charset_not>: Fetch a character by
14965 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
14966 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14967 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14968 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14969 by GET_CHAR_AFTER.
14970 (bcmp_translate): Likewise.
14971
14972 * search.c (compile_pattern): Check the member target_multibyte,
14973 not the member multibyte of buf.
14974
14975 * lread.c (read1): While reading a string, set force_singlebyte
14976 and force_multibyte correctly.
14977
14978 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14979 up of unibyte_to_multibyte_table.
14980
149812008-02-01 Kenichi Handa <handa@m17n.org>
14982
14983 * coding.c (setup_coding_system): If coding has
14984 post-read-conversion or pre-write-conversion, set
14985 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
14986 respectively.
14987 (decode_coding_gap): Run post-read-conversion if any.
14988
14989 * fileio.c (Finsert_file_contents): Even if we read into a
14990 unibyte buffer, check if we must decode the result or not.
14991
149922008-02-01 Kenichi Handa <handa@m17n.org>
14993
14994 * coding.c (make_conversion_work_buffer): Change the work buffer
14995 name to the same one as that of Emacs 21.
14996
149972008-02-01 Kenichi Handa <handa@m17n.org>
14998
14999 * coding.h (make_conversion_work_buffer): Adjust prototype.
15000 (code_conversion_restore): Don't extern it.
15001
15002 * coding.c (detected_mask): Delete unused variable.
15003 (decode_coding_iso_2022): Pay attention to the byte sequence of
15004 CTEXT extended segment, and retain those bytes as is.
15005 (decode_coding_ccl): Delete unused variable `valids'.
15006 (setup_coding_system): Delete unused variable `category'.
15007 (consume_chars): Delete unused variable `category'. Make it work
15008 for non-multibyte case.
15009 (make_conversion_work_buffer): Change argument.
15010 (saved_coding): Delete unused variable.
15011 (code_conversion_restore): Don't check saved_coding->destination.
15012 (code_conversion_save): New function.
15013 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15014 instead of record_unwind_protect.
15015 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15016 (detect_coding_system): Delete unused variable `mask'.
15017 (Fdefine_coding_system_internal): Delete unused variable id.
15018
15019 * fileio.c (kill_workbuf_unwind): New function.
15020 (Finsert_file_contents): On replacing, call
15021 make_conversion_work_buffer with correct args, and call
15022 record_unwind_protect with the first arg kill_workbuf_unwind.
15023
15024 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15025
150262008-02-01 Kenichi Handa <handa@m17n.org>
15027
15028 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15029 (fontset_add): Fix for the case that TO is less than TO1.
15030 (Ffontset_info): Don't use fallback fontset on checking the
15031 default fontset.
15032 (dump_fontset): New function for debugging.
15033
15034 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15035 coding_type is Qcharset.
15036
150372008-02-01 Kenichi Handa <handa@m17n.org>
15038
15039 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15040 (map_char_table): Don't inherit the value from the parent on
15041 initializing VAL. Adjust for the above change.
15042
150432008-02-01 Kenichi Handa <handa@m17n.org>
15044
15045 * coding.c (Qsignature, Qendian): Delete these variables.
15046 (syms_of_coding): Don't initialize them.
15047 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15048 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15049 detect_info->found.
15050 (decode_coding_utf_16): Don't detect BOM here.
15051 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15052 is NOT utf_16_without_bom.
15053 (setup_coding_system): For a coding system of type utf-16, check
15054 if the attribute :endian is Qbig or not (not nil or not), and set
15055 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15056 (detect_coding): If coding type is utf-16 and BOM detection is
15057 required, detect it.
15058 (Fdefine_coding_system_internal): For a coding system of type
15059 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15060
150612008-02-01 Kenichi Handa <handa@m17n.org>
15062
15063 * coding.c (coding_set_source): Fix for the case that the current
15064 buffer is different from coding->src_object.
15065 (decode_coding_object): Don't use the conversion work buffer if
15066 DST_OBJECT is a buffer.
15067
150682008-02-01 Dave Love <fx@gnu.org>
15069
15070 * lread.c (read_emacs_mule_char) [len==2]: Index
15071 emacs_mule_charset correctly.
15072
150732008-02-01 Dave Love <fx@gnu.org>
15074
15075 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15076 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15077 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15078 treated specially.)
15079 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15080 (detected_mask): Remove Big5 bits.
15081
150822008-02-01 Kenichi Handa <handa@m17n.org>
15083
15084 The following changes are to make the font rescaling facility
15085 compatible with Emacs 21.
15086
15087 * xfaces.c (Vface_font_rescale_alist): Rename from
15088 Vface_resizing_fonts.
15089 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15090 (font_rescale_ratio): Rename from font_resizing_ratio.
15091 (split_font_name): Set font->rescale_ratio.
15092 (better_font_p): Pay attention to font->rescale_ratio.
15093 (build_scalable_font_name): Likewise. Change RESX, and RESY
15094 fields.
15095 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15096
150972008-02-01 Kenichi Handa <handa@m17n.org>
15098
15099 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15100 (Qutf_16_le): Remove these variables.
15101 (syms_of_coding): Don't DEFSYM them.
15102 (decode_coding_utf_16): Fix handling of BOM.
15103 (encode_coding_utf_16): Fix handling of BOM.
15104
151052008-02-01 Kenichi Handa <handa@m17n.org>
15106
15107 * fileio.c (Finsert_file_contents): On replacing, before decoding
15108 the file into the work buffer, set point of the work buffer to the end.
15109
151102008-02-01 Dave Love <fx@gnu.org>
15111
15112 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15113
151142008-02-01 Dave Love <fx@gnu.org>
15115
15116 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15117 and fix C types.
15118
151192008-02-01 Kenichi Handa <handa@m17n.org>
15120
15121 * xdisp.c (SKIP_GLYPHS): New macro.
15122 (set_cursor_from_row): Pay attention to string display properties.
15123
15124 * category.c (copy_category_entry): Fix for the case that RANGE
15125 is an integer.
15126
15127 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15128
15129 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15130
151312008-02-01 Kenichi Handa <handa@m17n.org>
15132
15133 * charset.c (Fcharset_id_internal): New function.
15134 (syms_of_charset): Defsubr it.
15135
15136 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15137 with the last arg charset_list acquired from coding.
15138 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15139 the attribute coding_attr_ccl_valids.
15140
15141 * coding.h (enum define_coding_ccl_arg_index): Set the first
15142 member coding_arg_ccl_decoder to coding_arg_max.
15143
15144 * ccl.h (ccl_driver): Adjust prototype.
15145
15146 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15147 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15148 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15149 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15150 last arg Qnil.
15151
151522008-02-01 Kenichi Handa <handa@m17n.org>
15153
15154 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15155 call encode_char.
15156
15157 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15158
151592008-02-01 Dave Love <fx@gnu.org>
15160
15161 * composite.c (syms_of_composite): Make composition_hash_table weak.
15162
151632008-02-01 Kenichi Handa <handa@m17n.org>
15164
15165 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15166 (font_name_registry): Don't extern them.
15167 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15168
15169 * fontset.h (Qfontset): Don't extern it.
15170 (new_fontset_from_font_name): Extern it.
15171
15172 * fontset.c: Give 8 extra slots to fontset objects.
15173 (Qfontset_info): New variable.
15174 (syms_of_fontset): Defsym it.
15175 (FONTSET_FALLBACK): New macro.
15176 (fontset_face): Try also the default fontset.
15177 (make_fontset): Realize a fallback fontset from the default fontset.
15178 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15179 using split_font_name_into_vector and build_font_name_from_vector.
15180 (Fset_fontset_font): Access the elements of font_spec by enum
15181 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15182 name by using split_font_name_into_vector.
15183 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15184 generate a proper font name from the fontset name. Update
15185 Vfontset_alias_alist.
15186 (n_auto_fontsets): New variable.
15187 (new_fontset_from_font_name): New function.
15188 (Ffont_info): Store the information about fonts generated from the
15189 default fontset in the first extra slot of the returned char-table.
15190
15191 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15192 (font_name_registry): Delete function.
15193 (split_font_name_into_vector): New function.
15194 (build_font_name_from_vector): New function.
15195 (font_list): The argument REGISTRY is now a list of registry names.
15196 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15197 specifies an explicit font name, return the name as is. Make a
15198 list of registy names.
15199
15200 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15201 of x_new_fontset.
15202 (Fx_create_frame): Don't call x_new_fontset here. Just use
15203 x_list_fonts to check the existence of fonts.
15204
15205 * xterm.h (x_new_fontset): Adjust prototype.
15206
15207 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15208 string. Use new_fontset_from_font_name to create a fontset from a
15209 font name.
15210
152112008-02-01 Kenichi Handa <handa@m17n.org>
15212
15213 * syntax.c (Vfind_word_boundary_function_table): New name for
15214 Vnext_word_boundary_function_table.
15215 (find-word-boundary-function-table): New name for
15216 next-word-boundary-function-table.
15217
152182008-02-01 Dave Love <fx@gnu.org>
15219
15220 * Makefile.in: Fix some dependencies.
15221
15222 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15223 set it to nil before returning.
15224
15225 * composite.c (update_compositions): Fix type error.
15226
15227 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15228
152292008-02-01 Kenichi Handa <handa@m17n.org>
15230
15231 * xterm.c (x_new_font): Optimize for the case that the font is
15232 already set for the frame.
15233
152342008-02-01 Kenichi Handa <handa@m17n.org>
15235
15236 * chartab.c (char_table_ascii): Check if the char table contents
15237 is sub-char-table or not.
15238 (char_table_set, char_table_set_range): Fix argument to
15239 char_table_ascii.
15240
15241 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15242 (detect_coding_utf_8, detect_coding_utf_16)
15243 (detect_coding_emacs_mule, detect_coding_iso_2022)
15244 (detect_coding_sjis, detect_coding_big5)
15245 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15246 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15247 sequence is valid in this coding system. Change callers.
15248 (MAX_ANNOTATION_LENGTH): New macro.
15249 (ADD_ANNOTATION_DATA): New macro.
15250 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15251 ADD_ANNOTATION_DATA. Change the format of annotation data.
15252 (ADD_CHARSET_DATA): New macro.
15253 (emacs_mule_char): New argument ID. Change callers.
15254 (decode_coding_emacs_mule, decode_coding_iso_2022)
15255 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15256 Produce charset annotation data in coding->charbuf.
15257 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15258 to charset annotation data in coding->charbuf.
15259 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15260 coding->common_flags if the coding system is iso-2022 based and
15261 uses designation.
15262 (produce_composition): Adjust for the new annotation data format.
15263 (produce_charset): New function.
15264 (produce_annotation): Handle charset annotation.
15265 (handle_composition_annotation, handle_charset_annotation): New
15266 functions.
15267 (consume_chars): Handle charset annotation. Utilize the above two
15268 functions.
15269 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15270 buffer, get the deleted text as a string and set
15271 coding->src_object to that string.
15272 (detect_coding, detect_coding_system): Use the new struct
15273 coding_detection_info.
15274
15275 * coding.h (struct coding_detection_info): New structure.
15276 (struct coding_system): Adjust prototype of the member `detector'.
15277 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15278
152792008-02-01 Kenichi Handa <handa@m17n.org>
15280
15281 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15282
152832008-02-01 Dave Love <fx@gnu.org>
15284
15285 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15286 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15287 to new local and nullify apropos_accumulate before returning.
15288 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15289
152902008-02-01 Kenichi Handa <handa@m17n.org>
15291
15292 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15293 correctly.
e3eea1fc 15294
aac0c6e3
MR
152952008-02-01 Dave Love <fx@gnu.org>
15296
15297 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15298
152992008-02-01 Kenichi Handa <handa@m17n.org>
15300
15301 The following changes are to make character composition happen
15302 automatically on displaying.
15303
15304 * Makefile.in (lisp, shortlisp): Add composite.elc.
15305
15306 * composite.h (Qauto_composed, Vauto_composition_function)
15307 (Qauto_composition_function): Extern them.
15308
15309 * composite.c (Vcomposition_function_table)
15310 (Qcomposition_function_table): Delete variables.
15311 (Qauto_composed, Vauto_composition_function)
15312 (Qauto_composition_function): New variables.
15313 (run_composition_function): Don't call
15314 compose-chars-after-function.
15315 (update_compositions): Clear `auto-composed' text property.
15316 (compose_chars_in_text): Delete this function.
15317 (syms_of_composite): Staticpro Qauto_composed and
15318 Qauto_composition_function. Declare Vauto_composition_function as
15319 a Lisp variable.
15320
15321 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15322
15323 * xdisp.c (it_props): Add an entry for Qauto_composed.
15324 (handle_auto_composed_prop): New function.
15325
15326 * xselect.c (selection_data_to_lisp_data): Don't call
15327 compose_chars_in_text.
15328
153292008-02-01 Dave Love <fx@gnu.org>
15330
15331 * keyboard.c (read_char): Modify checking around use of
15332 Vkeyboard_translate_table.
15333
15334 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15335 and fix C types.
15336
153372008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15340 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15341 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15342 the case that the last byte is '\r' correctly.
15343 (decode_coding): Flush out the unprocessed data correctly.
15344 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15345
153462008-02-01 Dave Love <fx@gnu.org>
15347
15348 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15349 Add XK_ISO... case.
15350 (xaw_scroll_callback): Revert last change.
15351
153522008-02-01 Kenichi Handa <handa@m17n.org>
15353
15354 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15355
153562008-02-01 Kenichi Handa <handa@m17n.org>
15357
15358 * xfaces.c (Vface_resizing_fonts): New variable.
15359 (struct font_name): New member `resizing_ratio'.
15360 (font_resizing_ratio): New function.
15361 (split_font_name): Set font->resizing_ratio.
15362 (better_font_p): Pay attention to font->resizing_ratio.
15363 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15364 RESX, and RESY fields.
15365 (try_alternative_families): Try scalable fonts if
15366 Vscalable_fonts_allowed is not Qt.
15367 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15368
153692008-02-01 Dave Love <fx@gnu.org>
15370
15371 * xterm.c (xaw_scroll_callback): Cast correctly.
15372
153732008-02-01 Dave Love <fx@gnu.org>
15374
15375 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15376 (lispy_kana_keys): Comment out.
15377 (make_lispy_event) [XK_kana_A]: Comment out.
15378
15379 * xterm.c (xaw_scroll_callback): Cast call_data.
15380 (XTread_socket): Deal with ASCII keysyms.
15381 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15382
153832008-02-01 Dave Love <fx@gnu.org>
15384
15385 * xterm.c (Vx_keysym_table): New.
15386 (syms_of_xterm): Initialize it.
15387 (XTread_socket): Use it.
15388 From head: Eliminate incorrect optimization that tried to avoid
15389 decoding the output of X*LookupString.
15390 (x_get_font_repertory): Delete charset declaration.
15391
153922008-02-01 Kenichi Handa <handa@m17n.org>
15393
15394 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15395 return 0.
15396 (Fdefine_coding_system_internal): Setup
15397 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15398
153992008-02-01 Dave Love <fx@gnu.org>
15400
15401 * coding.c (Fcheck_coding_system): Doc fix.
15402
15403 * editfns.c (Finsert_byte): Return a proper value.
15404
154052008-02-01 Kenichi Handa <handa@m17n.org>
15406
15407 * coding.c (decode_coding): Fix args to translate_chars. Pay
15408 attention to Vstandard_translation_table_for_decode.
15409 (encode_coding): Fix args to translate_chars. Pay attention to
15410 Vstandard_translation_table_for_encode.
15411
15412 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15413 SINGLE_BYTE_CHAR_P.
15414
15415 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15416 not by SINGLE_BYTE_CHAR_P.
15417
15418 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15419 SINGLE_BYTE_CHAR_P.
15420
15421 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15422 SINGLE_BYTE_CHAR_P.
15423
15424 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15425 by SINGLE_BYTE_CHAR_P.
15426
15427 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15428 SINGLE_BYTE_CHAR_P.
15429
154302008-02-01 Dave Love <fx@gnu.org>
15431
15432 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15433
154342008-02-01 Dave Love <fx@gnu.org>
15435
15436 * fns.c (Flanginfo): Fix typo.
15437
15438 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15439
154402008-02-01 Kenichi Handa <handa@m17n.org>
15441
15442 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15443 (detect_coding_emacs_mule, detect_coding_iso_2022)
15444 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15445 incomplete byte sequence. Don't update *mask when correctly detected.
15446 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15447 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15448 (detect_coding, detect_coding_system): Adjust for the changes above.
15449
154502008-02-01 Kenichi Handa <handa@m17n.org>
15451
15452 * character.c (char_string): Rename from
15453 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15454 (string_char): Rename from string_char.
15455
15456 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15457 if C is greater than MAX_3_BYTE_CHAR.
15458 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15459 string_char instead of string_char_with_unification.
15460
154612008-02-01 Dave Love <fx@gnu.org>
15462
15463 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15464
154652008-02-01 Kenichi Handa <handa@m17n.org>
15466
15467 * keymap.c (push_key_description): Pay attention to force_multibyte.
15468
15469 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15470
154712008-02-01 Dave Love <fx@gnu.org>
15472
15473 * charset.c (define_charset_internal): Rename `supprementary'.
15474
15475 * Makefile.in (lisp, shortlisp): Remove latin-N.
15476
154772008-02-01 Dave Love <fx@gnu.org>
15478
15479 * xfns.c (x_window, x_window): Use use_xim.
15480
15481 * xterm.c (use_xim): Initialize.
15482 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15483 (x_term_init): Maybe set use_xim.
15484
15485 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15486
154872008-02-01 Kenichi Handa <handa@m17n.org>
15488
15489 * search.c (search_buffer): Fix case-fold-search of multibyte
15490 characters.
15491 (boyer_moore): Rename the last argument to char_high_bits.
15492
154932008-02-01 Kenichi Handa <handa@m17n.org>
15494
15495 * xdisp.c (display_string): Fix for the case of zero width glyph.
15496
15497 * xfns.c (x_set_font): Change the error message of the case that
15498 x_new_fontset returns Qt.
15499
15500 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15501 (Finternal_set_lisp_face_attribute): Use signal_error for the
15502 error of invalid fontset.
15503
15504 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15505 fontset, return Qt.
15506
155072008-02-01 Dave Love <fx@gnu.org>
15508
15509 * unexelf.c (unexec): Make .got handling not SGI-specific.
15510
15511 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15512
15513 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15514
15515 * keyboard.c (read_key_sequence): Fix type error.
15516
15517 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15518 type error.
15519
15520 * fontset.c (fontset_add): Return Lisp_Object.
15521
155222008-02-01 Dave Love <fx@gnu.org>
15523
15524 * charset.h (charset_ordered_list_tick): Declare extern.
15525
155262008-02-01 Kenichi Handa <handa@m17n.org>
15527
15528 The following changes (and some of 2008-02-01 changes of mine) are
15529 for handling syntax, category, and case conversion for unibyte
15530 characters by converting them to multibyte on the fly. With these
15531 changes, we don't have to setup syntax and case tables for unibyte
15532 characters in each language environment.
15533
15534 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15535 multibyte if necessary.
15536
15537 * bytecode.c (Fbyte_code): Likewise.
15538
15539 * character.h (LEADING_CODE_LATIN_1_MIN)
15540 (LEADING_CODE_LATIN_1_MAX): New macros.
15541 (unibyte_to_multibyte_table): Extern it.
15542 (unibyte_char_to_multibyte): New macro.
15543 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15544 (CHAR_LEADING_CODE): New macro.
15545 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15546
15547 * character.c (unibyte_to_multibyte_table): New variable.
15548 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15549 (multibyte_char_to_unibyte): If C is an eight-bit character,
15550 convert it to the corresponding byte value.
15551
15552 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15553 not 1, signals an error. Update the elements of
15554 unibyte_to_multibyte_table.
15555 (init_charset_once): Initialize unibyte_to_multibyte_table.
15556 (syms_of_charset): Define the charset `iso-8859-1'.
15557
15558 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15559 as is without converting it to unibyte. In a unibyte buffer,
15560 convert C to multibyte before checking the syntax.
15561
15562 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15563
15564 * minibuf.c (Fminibuffer_complete_word): Use the macro
15565 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15566
15567 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15568
15569 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15570 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15571 that is zero, convert an eight-bit char to multibyte.
15572 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15573 non-emacs case.
15574 (PATFETCH): Convert an eight-bit char to multibyte.
15575 (HANDLE_UNIBYTE_RANGE): New macro.
15576 (regex_compile): Setup the compiled pattern for multibyte chars
15577 even if the given regex string is unibyte. Use PATFETCH_RAW
15578 instead of PATFETCH in many places. To handle `charset'
15579 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15580 only for ASCII chars.
15581 (analyse_first) <exactn>: Simplify because the compiled pattern
15582 is multibyte.
15583 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15584 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15585 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15586 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15587 multibyte always 1.
15588 (re_search_2): In emacs, set the locale variable multibyte to 1,
15589 otherwise to 0. New local variable target_multibyte. Check it
15590 to decide the multibyteness of STR1 and STR2. If
15591 target_multibyte is zero, convert unibyte chars to multibyte
15592 before translating and checking fastmap.
15593 (TARGET_CHAR_AND_LENGTH): New macro.
15594 (re_match_2_internal): In emacs, set the locale variable multibyte
15595 to 1, otherwise to 0. New local variable target_multibyte. Check
15596 it to decide the multibyteness of STR1 and STR2. Use
15597 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15598 <charset, charset_not>: If multibyte is nonzero, check fastmap
15599 only for ASCII chars. Call bcmp_translate with
15600 target_multibyte, not with multibyte.
15601 <begline>: Declare the local variable C as `unsigned'.
15602 (bcmp_translate): Change the last arg name to target_multibyte.
15603
15604 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15605 the regexp pattern and the matching target. Set cp->buf.multibyte
15606 to the multibyteness of the regexp pattern. Set
15607 cp->but.target_multibyte to the multibyteness of the matching target.
15608 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15609 FETCH_STRING_CHAR_ADVANCE.
15610 (Freplace_match): Convert unibyte chars to multibyte.
15611
15612 * syntax.c (char_quoted, back_comment, scan_words)
15613 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15614 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15615 unibyte chars to multibyte.
15616 (skip_chars): Delete the arg syntaxp, and move the code for
15617 handling syntaxes to skip_syntaxes. Change callers.
15618 Fix the case that the multibyteness of STRING and the current
15619 buffer doesn't match.
15620 (skip_syntaxes): New function.
15621 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15622 SINGLE_BYTE_CHAR_P.
15623
156242008-02-01 Kenichi Handa <handa@m17n.org>
15625
15626 * xfaces.c (QCfontset): New variable.
15627 (LFACE_FONTSET): New macro.
15628 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15629 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15630 (Finternal_set_lisp_face_attribute)
15631 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15632 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15633 check also LFACE_FONTSET_INDEX.
15634 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15635 attrs[LFACE_FONT_INDEX].
15636 (syms_of_xfaces): Intern and staticpro QCfontset.
15637
15638 * dispextern.h (enum lface_attribute_index): New member
15639 LFACE_FONTSET_INDEX.
15640
15641 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15642
156432008-02-01 Kenichi Handa <handa@m17n.org>
15644
15645 * coding.c (coding_set_destination): Fix coding->destination for
15646 the case converting a region.
15647 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15648 (encode_coding_object): Fix coding->dst_pos and
15649 coding->dst_pos_byte for the case converting a region.
15650
15651 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15652
15653 * character.h (BYTE8_STRING): New macro.
15654
15655 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15656
156572008-02-01 Kenichi Handa <handa@m17n.org>
15658
15659 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15660 characters by octal form.
15661
15662 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15663
15664 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15665 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15666 _fetch_multibyte_char_len.
15667 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15668
15669 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15670
15671 * casefiddle.c (casify_object): Simplify. Handle the case that
15672 the case conversion change the byte length.
15673 (casify_region): Likewise.
15674
15675 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15676
15677 * character.c (_fetch_multibyte_char_len): Delete this variable.
15678 (syms_of_character): Setup Vprintable_chars.
15679
15680 * editfns.c (Fchar_equal): Fix for the unibyte case.
15681 (Finsert_byte): New function.
15682 (syms_of_editfns): Defsubr it.
15683
15684 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15685 of direct code 0x3ffff.
15686
15687 * search.c (Freplace_match): Fix for the unibyte case.
15688
156892008-02-01 Kenichi Handa <handa@m17n.org>
15690
15691 * lread.c (safe_to_load_p): Fix the logic.
15692
15693 * syntax.c (scan_words): Don't treat characters belonging to
15694 different scripts as constituting a word.
15695
15696 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15697
15698 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15699
15700 * emacs.c (main): In the case of --unibyte, instead of aborting on
15701 finding non-empty buffer, make it unibyte.
15702
157032008-02-01 Kenichi Handa <handa@m17n.org>
15704
15705 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15706 to create a fontset.
15707
157082008-02-01 Dave Love <fx@gnu.org>
15709
15710 * character.c (Funibyte_char_to_multibyte): Doc fix.
15711
15712 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15713
157142008-02-01 Kenichi Handa <handa@m17n.org>
15715
15716 * fontset.c (fontset_add): Make the type `int'.
15717 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15718
15719 * character.c (unibyte_char_to_multibyte)
15720 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15721 charset_unibyte, not charset_primary.
15722
15723 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15724
15725 * charset.c (charset_unibyte): Rename from charset_primary.
15726 (Funibyte_charset): Rename from Fprimary_charset.
15727 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15728 (syms_of_charset): Adjust for the above changes.
15729
15730 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15731 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15732 it->multibyte_p is zero.
15733
15734 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15735 Delete extern.
15736
157372008-02-01 Kenichi Handa <handa@m17n.org>
15738
15739 * coding.c (Fdefine_coding_system_internal): Fix category setting
15740 for a coding system of type iso-2022.
15741
157422008-02-01 Kenichi Handa <handa@m17n.org>
15743
15744 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15745
157462008-02-01 Kenichi Handa <handa@m17n.org>
15747
15748 * syntax.c (Vnext_word_boundary_function_table): New variable.
15749 (next-word-boundary-function-table): Declare it as a Lisp variable
15750 in syms_of_syntax.
15751 (scan_words): Call functions in Vnext_word_boundary_function_table
15752 if any.
15753
15754 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15755
15756 * fontset.c (fs_load_font): If fontp->charset is not negative,
15757 return fontp without setting its members.
15758
157592008-02-01 Dave Love <fx@gnu.org>
15760
15761 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15762
15763 * m/sparc.h (HAVE_ALLOCA): Delete.
15764
15765 * s/irix6-5.h: Don't include strings.h.
15766 (bcopy, bzero, bcmp): Don't undef.
15767
15768 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15769
15770 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15771 (TIOCSIGSEND): Don't test IRIX6.
15772 (bcopy, bzero, bcmp): Define conditionally.
15773
157742008-02-01 Kenichi Handa <handa@m17n.org>
15775
15776 * buffer.c (Qas, Qmake, Qto): New variables.
15777 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15778 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15779
15780 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15781 we are inserting a process output into a multibyte buffer.
15782
15783 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15784 multibyte_char_to_unibyte.
15785
15786 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15787 by the primary charset, make it eight-bit char.
15788 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15789
15790 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15791 (charset_8_bit__control, charset_8_bit_graphic)
15792 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15793 (define_charset_internal): New function.
15794 (syms_of_charset): Call define_charset_internal for pre-defined
15795 charsets.
15796
15797 * charset.h (charset_8_bit): Extern it.
15798
15799 * coding.c (make_conversion_work_buffer): Adjust for the change
15800 of Fset_buffer_multibyte.
15801 (encode_coding_raw_text): Increment p0 in the loop.
15802
15803 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15804
15805 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15806 for the change of Fset_buffer_multibyte.
15807
15808 * fns.c (Fstring_to_multibyte): New function.
15809 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15810
158112008-02-01 Dave Love <fx@gnu.org>
15812
15813 * xfns.c (x_put_x_image): Declare args.
15814
15815 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15816 (try_font_list): Declare an arg.
15817
15818 * xdisp.c (message2_nolog, set_message): Declare an arg.
15819
15820 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15821
15822 * syntax.c (scan_sexps_forward): Declare an arg.
15823
15824 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15825 Declare an arg.
15826
15827 * lisp.h (Fnew_fontset): Declare.
15828
15829 * keymap.c (push_key_description): Call CHARACTERP correctly.
15830
15831 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15832 (face_for_char): Delete unused vars.
15833 (Fset_fontset_font): Doc fix. Delete unused vars.
15834
15835 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15836
15837 * composite.c (update_compositions): Declare arg.
15838
15839 * cm.c (calccost, cmgoto): Declare args.
15840
15841 * charset.c: Remove `emacs' conditional. Doc fixes.
15842 (map_char_table_for_charset): Declare.
15843
15844 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15845
15846 * ccl.c: Remove `emacs' conditional.
15847
158482008-02-01 Kenichi Handa <handa@m17n.org>
15849
15850 The following changes are to allow specifying multiple font
15851 patterns for a character range (specified by script or charset).
15852
15853 * Makefile.in (abbrev.o): Depend on syntax.h.
15854 (xfaces.o): Depend on charset.h.
15855
15856 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15857 SINGLE_BYTE_CHAR_P.
15858
15859 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15860
15861 * character.h (Vchar_script_table): Extern it.
15862
15863 * character.c (Vscript_alist): Delete.
15864 (Vchar_script_table, Qchar_script_table): New variable.
15865 (syms_of_character): Declare Vchar_script_table as a lisp variable
15866 and initialize it.
15867
15868 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15869 have property char-table-extra-slots, make no extra slot.
15870
15871 * dispextern.h (struct face): Delete member `charset'.
15872 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15873 SINGLE_BYTE_CHAR_P.
15874 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15875 Add prototypes.
15876 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15877 (generate_ascii_font_name): Rename from generate_ascii_font.
15878
15879 * fontset.h (get_font_repertory_func): New prototype.
15880 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15881 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15882
15883 * fontset.c (Qprepend, Qappend): New variables.
15884 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15885 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15886 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15887 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15888 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15889 (load_font_get_repertory): New functions.
15890 (fontset_set): Delete.
15891 (fontset_face): New arg FACE. Return face ID, not face.
15892 Complete re-write to handle new fontset structure. Change caller.
15893 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15894 (face_for_char): Don't call lookup_face.
15895 (make_fontset_for_ascii_face): New arg FACE.
15896 (fs_load_font): New arg CHARSET_ID. Don't check
15897 Vfont_encoding_alist here.
15898 (find_font_encoding): New function.
15899 (list_fontsets): Use STRINGP, not ! NILP.
15900 (accumulate_script_ranges): New function.
15901 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15902 re-written to handle new fontset structure.
15903 (Ffontset_font): Return a copy of element.
15904 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15905 docstring of font-encoding-alist.
15906
15907 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15908 (Fset_fotset_font): Fix arguments to 5.
15909
15910 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15911
15912 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15913 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15914 (highlight_trailing_whitespace): Adjust for the change of
15915 lookup_named_face.
15916
15917 * xfaces.c: Include charset.h.
15918 (load_face_font): Delete argument C. Change caller.
15919 (generate_ascii_font_name): Rename from generate_ascii_font.
15920 (font_name_registry): New function.
15921 (cache_face): Store ascii faces before non-ascii faces in buckets.
15922 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15923 Lookup only ascii faces.
15924 (lookup_non_ascii_face): New function.
15925 (lookup_named_face): Delete argument C. Change caller.
15926 (lookup_derived_face): Delete argument C. Change caller.
15927 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15928 a string, just call font_list with it.
15929 (choose_face_font): Delete arguments FACE and C. New arg
15930 FONT_SPEC. Change caller.
15931 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15932 Change caller.
15933 (realize_non_ascii_face): New function.
15934 (realize_x_face): Call load_face_font here.
15935 (realize_tty_face): Delete argument C. Change caller.
15936 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15937 get a face ID.
15938 (dump_realized_face): Don't print charset of FACE.
15939
15940 * xfns.c (x_set_font): Always call x_new_fontset and
15941 store_frame_parameter.
15942 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15943 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15944
15945 * xterm.h (x_get_font_repertory): Extern it.
15946
15947 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15948 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15949 it->multibyte_p is zero.
15950 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15951 (x_new_fontset): If FONTSETNAME doesn't match any existing
15952 fontsets, create a new one.
15953 (x_get_font_repertory): New function.
15954
159552008-02-01 Kenichi Handa <handa@m17n.org>
15956
15957 * coding.c (Ffind_coding_systems_region_internal): Detect an
15958 ASCII only string correctly.
15959
15960 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15961 version is 0.
15962
159632008-02-01 Kenichi Handa <handa@m17n.org>
15964
15965 * lread.c: Include "coding.h".
15966 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15967 (load_each_byte, unread_char): New variables.
15968 (readchar_backlog): Delete.
15969 (readchar): Return a character unless load_each_byte is nonzero.
15970 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15971 cons. If unread_char is not -1, simply return it.
15972 (unreadchar): Handle the case that readcharfun is
15973 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
15974 (read_multibyte): Delete.
15975 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15976 (read_emacs_mule_char): New functions.
15977 (Fload): Even if the file doesn't have the extension ".elc", if
15978 safe_to_load_p returns a positive version number, assume that the
15979 file contains bytecompiled code. If the version is less than 22,
15980 load the file while decoding multibyte sequences by emacs-mule.
15981 (readevalloop): Don't use readchar_backlog.
15982 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
15983 (Fread_from_string): Pay attention to the case that STREAM is a cons.
15984 (read_escape): Delete the arg BYTEREP.
15985 (read1): Set load_each_byte to 1 temporarily while handling
15986 #@NUMBER. Don't call read_multibyte.
15987 (read_vector): Call Fread with a cons. If readcharfun is
15988 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
15989 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
15990 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
15991 and Qload_force_doc_strings.
15992
159932008-02-01 Kenichi Handa <handa@m17n.org>
15994
15995 * xdisp.c (face_before_or_after_it_pos): Call
15996 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15997
159982008-02-01 Kenichi Handa <handa@m17n.org>
15999
16000 * character.h (TRAILING_CODE_P): New macro.
16001 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16002 (string_char_with_unification): Fix prototype.
16003 (Vscript_alist): Extern it.
16004
16005 * character.c (Vscript_alist): New variable.
16006 (string_char_with_unification, str_as_unibyte)
16007 (string_escape_byte8): Add `const' to local variables.
16008 (syms_of_character): Declare script-alist as a Lisp variable.
16009
16010 * charset.h (Vcharset_ordered_list): Extern it.
16011 (charset_ordered_list_tick): Extern it.
16012 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16013 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16014 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16015 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16016 (Funify_charset): Adjust for the change of Funify_charset.
16017
16018 * charset.c (charset_ordered_list_tick): New variable.
16019 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16020 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16021 deunify intead of unify a charset.
16022 (string_xstring_p): Add `const' to local variables.
16023 (find_charsets_in_text): Add `const' to arguments and local variables.
16024 (encode_char): Adjust for the change of Funify_charset. Fix
16025 detecting of invalid code.
16026 (Fset_charset_priority): Increment charset_ordered_list_tick.
16027 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16028 and TO_CODE.
16029
16030 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16031 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16032 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16033 (decode_coding_ccl, consume_chars)
16034 (Ffind_coding_systems_region_internal)
16035 (Fcheck_coding_systems_region): Add `const' to local variables.
16036
16037 * print.c (print_object): Use octal form for printing the
16038 contents of a bool vector.
16039
160402008-02-01 Dave Love <fx@gnu.org>
16041
16042 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16043 <version == 20>: Refuse to load.
16044
160452008-02-01 Dave Love <fx@gnu.org>
16046
16047 * fns.c: Move coding.h.
16048 (Qcodeset, Qdays, Qmonths): New.
16049 (concat): Use CHARACTERP instead of INTEGERP.
16050 (Flocale_codeset): Delete.
16051 (Flanginfo): New function.
16052 (syms_of_fns): Change accordingly.
16053
16054 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16055
160562008-02-01 Dave Love <fx@gnu.org>
16057
16058 * casetab.c (init_casetab_once, init_casetab_once): Fix
16059 CHAR_TABLE_SET call.
16060
16061 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16062
16063 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16064
16065 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16066 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16067 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16068
16069 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16070
16071 * coding.c (ENCODE_DESIGNATION, decode_eol)
16072 (make_conversion_work_buffer, code_conversion_restore)
16073 (Fdefine_coding_system_internal): Convert Lisp types.
16074 (code_conversion_restore): Use EQ, not ==.
16075 (Fencode_coding_string): Fix code_convert_string call.
16076
16077 * coding.h (code_convert_region): Fix prototype.
16078
16079 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16080
16081 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16082 (Ffontset_info): Convert Lisp types.
16083
16084 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16085
16086 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16087
16088 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16089
16090 * chartab.c: Include "...h", not <...h> in some cases.
16091
16092 * callproc.c (Fcall_process): Remove unused variables.
16093
160942008-02-01 Dave Love <fx@gnu.org>
16095
16096 * coding.c (Fset_coding_system_priority): Allow null arg list.
16097
160982008-02-01 Dave Love <fx@gnu.org>
16099
16100 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16101 (Fself_insert_and_exit): Use CHARACTERP.
16102
16103 * callproc.c (Fcall_process): Remove unused vars.
16104
16105 * xterm.c (XTread_socket): Add extra dead keysyms.
16106
16107 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16108
16109 * dispextern.h: Remove prototypes for redraw_frame,
16110 redraw_garbaged_frames.
16111
16112 * cmds.c (Fself_insert_command): Use CHARACTERP.
16113
16114 * chartab.c (make_sub_char_table): Remove unused var.
16115 (Fset_char_table_default, Fmap_char_table): Doc fix.
16116
16117 * keymap.c (access_keymap): Remove generic char code.
16118 (push_key_description): Use CHARACTERP.
16119
161202008-02-01 Dave Love <fx@gnu.org>
16121
16122 * charset.c: Doc fixes.
16123 (Funify_charset): Extra checking.
16124
161252008-02-01 Dave Love <fx@gnu.org>
16126
16127 * lread.c: Remove some unused variables.
16128 (safe_to_load_p): If safe, return the magic number version byte.
16129 (Fload): Maybe use load-with-code-conversion.
16130
161312008-02-01 Kenichi Handa <handa@m17n.org>
16132
16133 * category.c (Fmodify_category_entry): Don't modify the contents
16134 of category_set for characters out of the range. Avoid
16135 unnecessary modification.
16136
16137 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16138 Vchar_unify_table. The default value of the table is now nil.
16139
16140 * character.c (syms_of_character): Setup Vchar_width_table for
16141 eight-bit-control and raw-byte chars.
16142
16143 * charset.h (enum define_charset_arg_index): Delete
16144 charset_arg_parents and add charset_arg_subset and
16145 charset_arg_superset.
16146 (enum charset_attr_index): Delete charset_parents and add
16147 charset_subset and charset_superset.
16148 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16149 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16150 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16151 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16152 (CHARSET_SUPERSET): New macros.
16153 (charset_work): Extern it.
16154 (ENCODE_CHAR): Use charset_work.
16155 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16156 (map_charset_chars): Extern it.
16157
16158 * charset.c (load_charset_map): Set the default value of encoder
16159 and deunifier char-tables to nil.
16160 (map_charset_chars): Change argument. Change callers. Use
16161 map_char_table_for_charset instead of map_char_table.
16162 (Fmap_charset_chars): New optional args from_code and to_code.
16163 (Fdefine_charset_internal): Adjust for the change of
16164 `define-charset' (:parents -> :subset or :superset).
16165 (charset_work): New variable.
16166 (encode_char, syms_of_charset): Adjust for the change of
16167 Fdefine_charset_internal.
16168 (Ffind_charset_string): Setup the vector `charsets' correctly.
16169
16170 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16171 the previous change.
16172 (char_table_ref_and_range): Adjust for the above change.
16173 (map_sub_char_table_for_charset): New function.
16174 (map_char_table_for_charset): New function.
16175
16176 * keymap.c (describe_vector): Handle a char-table directly here.
16177 (describe_char_table): Delete.
16178
16179 * lisp.h (map_charset_chars): Delete.
16180
161812008-02-01 Dave Love <fx@gnu.org>
16182
16183 * fns.c (count_combining): Comment out (unused).
16184 (Flocale_codeset): New.
16185 (syms_of_fns): Defsubr it.
16186
16187 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16188 (size_t): Remove.
16189
161902008-02-01 Dave Love <fx@gnu.org>
16191
16192 * Makefile.in (chartab.o): Depend on charset.h.
16193
161942008-02-01 Kenichi Handa <handa@m17n.org>
16195
16196 * character.c (syms_of_character): Set the default value of
16197 Vprintable_chars to Qnil.
16198
161992008-02-01 Dave Love <fx@gnu.org>
16200
16201 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16202
162032008-02-01 Kenichi Handa <handa@m17n.org>
16204
16205 * charset.c (load_charset_map): Handle the case that from < to
16206 correctly.
16207
16208 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16209 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16210 Pay attention to raw-8-bit chars.
16211
162122008-02-01 Kenichi Handa <handa@m17n.org>
16213
16214 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16215 It is not bytecompiled now.
16216
16217 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16218 (charset_jisx0208): New variables.
16219 (Fdefine_charset_internal): Setup them if appropriate.
16220 (init_charset_once): Initialize them to -1.
16221
16222 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16223 (charset_jisx0208): Extern them.
16224
16225 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16226 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16227 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16228 (setup_iso_safe_charsets): Fix arguments to Fassq.
16229 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16230 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16231 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16232 (encode_coding_iso_2022): Change the 1st arg to
16233 ENCODE_ISO_CHARACTER to a variable.
16234
162352008-02-01 Kenichi Handa <handa@m17n.org>
16236
16237 * charset.h (enum define_charset_arg_index): New enums
16238 charset_arg_min_code and charset_arg_max_code.
16239 (struct charset): New member char_index_offset.
16240
16241 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16242 Take charset->char_index_offset into account.
16243 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16244 args[charset_arg_max_code]. Setup charset.char_index_offset.
16245 (syms_of_charset): Fix args to Fdefine_charset_internal.
16246
162472008-02-01 Dave Love <fx@gnu.org>
16248
16249 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16250
162512008-02-01 Dave Love <fx@gnu.org>
16252
16253 * coding.c: Doc fixes.
16254 (Fcoding_system_aliases): Fix return value.
16255 (Qmac): Remove (duplicated) definition.
16256
162572008-02-01 Dave Love <fx@gnu.org>
16258
362654a6
JB
16259 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16260 New functions.
aac0c6e3
MR
16261
16262 * character.c (Fstring): Doc fix.
16263
16264 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16265
362654a6 16266 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16267 (font-encoding-alist): Doc fix.
16268
162692008-02-01 Dave Love <fx@gnu.org>
16270
16271 * term.c (costs_set): Declare static, non-initialized for pcc.
16272 (encode_terminal_code): Remove unused var.
16273
16274 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16275 for K&R.
16276
16277 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16278
16279 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16280 (suffixes): Move out of make_subsidiaries for K&R.
16281
16282 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16283
16284 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16285
162862008-02-01 Dave Love <fx@gnu.org>
16287
16288 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16289
16290 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16291
162922008-02-01 Yong Lu <lyongu@asia-infonet.com>
16293
16294 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16295
16296 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16297
162982008-02-01 Kenichi Handa <handa@m17n.org>
16299
16300 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16301 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16302
163032008-02-01 Kenichi Handa <handa@m17n.org>
16304
16305 * coding.c (decode_coding_charset): Adjust for the change of
16306 Fdefine_coding_system_internal.
16307 (Fdefine_coding_system_internal): For a coding system of
16308 `charset' type, store a list of charset IDs in
16309 `charset_attr_charset_valids' element of coding attributes.
16310
163112008-02-01 Kenichi Handa <handa@m17n.org>
16312
16313 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16314 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16315 caller. Handle 2-byte and 3-byte charsets correctly.
16316 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16317 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16318 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16319 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16320 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16321 sequence.
16322 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16323 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16324 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16325 and alt&rule composition.
16326 (decode_coding_iso_2022): Handle composition correctly.
16327 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16328
16329 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16330 re-defining a charset. If the charset has :emacs-mule-id, setup
16331 emacs_mule_bytes.
16332 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16333
163342008-02-01 Kenichi Handa <handa@m17n.org>
16335
16336 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16337 (encode_coding_big5, encode_coding_charset): If coding requires safe
16338 encoding, produce a character specified by
16339 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16340
163412008-02-01 Dave Love <fx@gnu.org>
16342
16343 * xterm.c (XSetIMValues): Declare.
16344
16345 * process.c: Conditionally include sys/wait.h, pty.h.
16346
16347 * print.c (print_object): Fix print format for 64-bit systems.
16348
16349 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16350
16351 * buffer.c (emacs_strerror): Declare.
16352
16353 * fontset.c (Fclear_face_cache): Declare.
16354 (accumulate_font_info): Comment-out (unused).
16355 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16356 variables.
16357
16358 * character.h (string_escape_byte8): Declare.
16359
16360 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16361 unused vars.
16362 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16363 (Fmap_charset_chars): Doc fix.
16364
16365 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16366 (Fset_coding_system_priority, Fset_coding_system_priority)
16367 (Fdefine_coding_system_internal): Doc fix.
16368
163692008-02-01 Dave Love <fx@gnu.org>
16370
16371 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16372
163732008-02-01 Kenichi Handa <handa@m17n.org>
16374
16375 * character.c (string_escape_byte8): Make multibyte string with
16376 correct size.
16377
16378 * charset.c (Fmake_char): Delete unnecessary code.
16379
163802008-02-01 Kenichi Handa <handa@m17n.org>
16381
16382 * xfns.c (x_encode_text): Allocate coding.destination here, and
16383 call encode_coding_object with dst_object Qnil.
16384
16385 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16386 multibyte form correctly.
16387
16388 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16389 against Vfont_encoding_alist.
16390
16391 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16392 handling of charset list.
16393 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16394 (decode_coding_object): Move point to coding->dst_pos before
16395 calling post-read-conversion function.
16396 (encode_coding_object): Give correct arguments to
16397 pre-write-conversion. Ignore the return value of
16398 pre-write-conversion function. Pay attention to the case that
16399 pre-write-conversion changes the current buffer. If dst_object is
16400 Qt, even if coding->src_bytes is zero, allocate at least one byte
16401 to coding->destination.
16402
16403 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16404
16405 * charset.c (Fmake_char): Make it more backward compatible.
16406 (Fmap_charset_chars): Fix docstring.
16407
164082008-02-01 Dave Love <fx@gnu.org>
16409
16410 * coding.c: Doc fixes.
16411 (Fdefine_coding_system_alias): Use names, not symbols, in
16412 coding-system-alist.
16413
164142008-02-01 Kenichi Handa <handa@m17n.org>
16415
16416 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16417 of calling free_realized_face.
16418
164192008-02-01 Yong Lu <lyongu@asia-infonet.com>
16420
16421 * charset.c (read_hex): Don't treat SPC as a comment starter.
16422 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16423 (Fdecode_char): Fix typo.
16424
164252008-02-01 Kenichi Handa <handa@m17n.org>
16426
16427 * charset.h (struct charset): New member `code_space_mask'.
16428
16429 * coding.c (coding_set_source): Delete the local variable beg_byte.
16430 (encode_coding_charset, Fdefine_coding_system_internal):
16431 Delete the local variable charset.
16432 (Fdefine_coding_system_internal): Setup
16433 attrs[coding_attr_charset_valids] correctly.
16434
16435 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16436 member to check if CODE is valid or not.
16437 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16438 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16439 is within the range of charset->min_code and carset->max_code.
16440
164412008-02-01 Dave Love <fx@gnu.org>
16442
16443 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16444
16445 * dispextern.h (generate_ascii_font): Fix return type.
16446
16447 * xfaces.c (generate_ascii_font): Fix arg declaration.
16448
16449 * coding.c (coding_inherit_eol_type)
16450 (Fset_terminal_coding_system_internal)
16451 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16452
164532008-02-01 Kenichi Handa <handa@m17n.org>
16454
16455 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16456 multiple charsets correctly.
16457
164582008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * search.c (boyer_moore): Fix handling of multibyte character
16461 translation.
16462
16463 * xdisp.c (display_mode_element): When the variable `elt' is
16464 changed, update `this' and `lisp_string'.
16465
164662008-02-01 Kenichi Handa <handa@m17n.org>
16467
16468 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16469
16470 * callproc.c (Fcall_process): Be sure to give the current buffer
16471 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16472
16473 * charset.c (struct charset_map_entries): New struct.
16474 (load_charset_map): Rename from parse_charset_map. New args
16475 entries and n_entries. Change caller.
16476 (load_charset_map_from_file): Rename from load_charset_map.
16477 Change caller. New arg control_flag. Call load_charset_map at
16478 the tail.
16479 (load_charset_map_from_vector): New function.
16480 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16481 (encode_char): If the charset is compact, change a character index
16482 to a code point.
16483
16484 * coding.c (coding_alloc_by_making_gap): Check the case that the
16485 source and destination are the same correctly.
16486 (decode_coding_raw_text): Set coding->consumed_char and
16487 coding->consumed to 0.
16488 (produce_chars): If coding->chars_at_source is nonzero, update
16489 coding->consumed_char and coding->consumed before calling
16490 alloc_destination.
16491 (Fdefine_coding_system_alias): Register ALIAS in
16492 Vcoding_system_alist.
16493 (syms_of_coding): Define `no-conversion' coding system at the tail.
16494
16495 * fileio.c (Finsert_file_contents): Set coding_system instead of
16496 val. If the current buffer is multibyte, always call
16497 decode_coding_gap.
16498
16499 * xfaces.c (try_font_list): Give higher priority to fontset's
16500 family than face's family.
16501
165022008-02-01 Kenichi Handa <handa@m17n.org>
16503
16504 * callproc.c (Fcall_process): Be sure to give the current buffer
16505 to decode_coding_c_string.
16506
16507 * xfaces.c (try_font_list): Give a family specified in a fontset
16508 higher priority than a family specified in a face.
16509
165102008-02-01 Kenichi Handa <handa@m17n.org>
16511
16512 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16513 Fix arguments to insert_from_buffer.
16514
16515 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16516
165172008-02-01 Kenichi Handa <handa@m17n.org>
16518
16519 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16520 (decode_coding_gap): Set coding->dst_multibyte correctly.
16521
165222008-02-01 Kenichi Handa <handa@m17n.org>
16523
16524 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16525 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16526 (encode_coding_utf_16): Substitute coding->default_char for
16527 non-Unicode characters.
16528 (decode_coding): Don't call record_insert here.
16529 (setup_coding_system): Initialize `surrogate' of
16530 coding->spec.utf_16 to 0.
16531 (EMIT_ONE_BYTE): Fix for multibyte case.
16532
16533 * insdel.c (insert_from_gap): Call record_insert.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * casefiddle.c (casify_region): Fix multibyte case.
16538
16539 * character.c (c_string_width): Add return type `int'.
16540 (char_string_with_unification): Delete arg ADVANCED.
16541
16542 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16543 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16544 (CHAR_STRING_ADVANCE): Make it do-while statement.
16545
16546 * chartab.c (sub_char_table_set_range): Optimize for the case
16547 DEPTH == 3. Add workaround code for a GCC optimization bug.
16548
16549 * charset.c (parse_charset_map): Remove an unused variable.
16550
16551 * coding.c: Delete unused variables.
16552
16553 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16554 earlier. If inserted is zero and the coding system doesn't
16555 require flushing, don't call decode_coding_gap.
16556
16557 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16558
165592008-02-01 Kenichi Handa <handa@m17n.org>
16560
16561 The following changes are for using Unicode as an internal
16562 character model, and use UTF-8 format for buffer/string
16563 representation.
16564
16565 * .gdbinit (xchartable): Adjust for the change of char table structure.
16566 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16567
16568 * Makefile.in (obj): Add character.o and chartab.o.
16569 (lisp, shortlisp): Remove utf-8.elc.
16570 (*.o): For many files, change dependency on charset.h to
16571 character.h, and add dependency on character.h.
16572 (character.o, chartab.o): New targets.
16573
16574 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16575 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16576 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16577 of "charset.h".
16578
16579 * dired.c, filelock.c: Include "character.h".
16580
16581 * alloc.c: Include "character.h" instead of "charset.h".
16582 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16583 (syms_of_alloc): Remove defsubr for Smake_char_table.
16584
16585 * buffer.c: Include "character.h" instead of "charset.h", don't
16586 include "coding.h".
16587 (Fset_buffer_multibyte): Adjust for UTF-8.
16588
16589 * buffer.h: EXFUN Fbuffer_live_p.
16590
16591 * callproc.c: Include "character.h" instead of "charset.h".
16592 (Fcall_process): Big change for the new code-conversion APIs.
16593
16594 * casetab.c: Include "character.h" instead of "charset.h".
16595 (set_canon, set_identity, shuffle): Adjust for the new
16596 map_char_table spec.
16597 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16598 accessing the char table structure.
16599
16600 * chartab.c: New file that implements char table.
16601
16602 * category.c: Include "character.h".
16603 (copy_category_entry): New function.
16604 (copy_category_table): Call map_char_table and copy_category_entry.
16605 (Fmake_category_table): Initialize all top-level slots.
16606 (char_category_set): New function.
16607 (modify_lower_category_set): Delete.
16608 (Fmodify_category_entry): Call char_table_ref_and_range.
16609
16610 * category.h (CATEGORY_SET): Just call char_category_set.
16611
16612 * ccl.c: Include "character.h".
16613 (Qccl, Qcclp): New variables.
16614 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16615 it's less than 256.
16616 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16617 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16618 and DST type.
16619 (ccl_driver): Change types of argument, adjust code accordingly.
16620 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16621 ccl_driver.
16622 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16623
16624 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16625 New members src_multibyte, dst_multibyte, consumed, and produced.
16626 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16627 (CODING_SPEC_CCL_PROGRAM): New macro.
16628 (ccl_driver): Update prototype.
16629 (Qccl, Qcclp, Fccl_program_p): Extern them.
16630 (CHECK_CCL_PROGRAM): New macro.
16631
16632 * character.c, character.h, chartab.c: New files.
16633
16634 * charset.c: Mostly re-written. Move character and multibyte sequence
16635 handling codes to character.c.
16636
16637 * charset.h: Mostly re-written. Move character and multibyte sequence
16638 handling codes to character.h.
16639
16640 * coding.c, coding.h: Mostly re-written.
16641
16642 * composite.c: Include "character.h" instead of "charset.h".
16643 (CHAR_WIDTH): Move to character.h.
16644 (HASH_KEY, HASH_VALUE): Delete.
16645
16646 * composite.h (enum composition_method): Change order of enumeration
16647 symbols.
16648
16649 * data.c: Include "character.h" instead of "charset.h".
16650 (Faref): Call CHAR_TABLE_REF for a char table.
16651 (Faset): Call CHAR_TABLE_SET for a char table.
16652
16653 * dispextern.h (free_realized_face, check_face_attribytes)
16654 (generate_ascii_font): Extern them.
16655 (free_realized_multibyte_face): Delete extern.
16656
16657 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16658 table structure.
16659
16660 * editfns.c: Include "character.h" instead of "charset.h".
16661 (Fchar_to_string): Always call CHAR_STRING.
16662
16663 * emacs.c (main): Call init_charset_once, init_charset,
16664 syms_of_chartab, and syms_of_character.
16665
16666 * fileio.c: Include "character.h" instead of "charset.h".
16667 (Finsert_file_contents): Big change for the new code-conversion API.
16668 (choose_write_coding_system, Fwrite_region): Likewise.
16669 (build_annotations_2): Delete.
16670 (e_write): Big change for the new code-conversion API.
16671
16672 * fns.c: Include "character.h" instead of "charset.h".
16673 (copy_sub_char_table): Move to chartab.c.
16674 (Fcopy_sequence): Call copy_char_table for a char table.
16675 (concat): Delete codes calling count_multibyte.
16676 (string_char_to_byte, string_byte_to_char): Adjust for the new
16677 multibyte form.
16678 (internal_equal): Adjust for the change of char table structure.
16679 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16680 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16681 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16682 (char_table_translate, optimize_sub_char_table)
16683 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16684 chartab.c.
16685 (char_table_ref_and_index): Delete.
16686 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16687 (Fmd5): Call preferred_coding_system instead of accessing
16688 Vcoding_category_list. Adjust for the new code-conversion API.
16689 (syms_of_fns): Move defsubr for char table related functions to
16690 chartab.c.
16691
16692 * fontset.c: Mostly re-written.
16693
16694 * fontset.h (struct font_info): Change type of the member encoding_type.
16695 (enum FONT_SPEC_INDEX): New enum.
16696 (fontset_font_pattern, fs_load_font): Update prototype.
16697 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16698
16699 * indent.c: Include "character.h" instead of "charset.h".
16700 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16701
16702 * insdel.c: Include "character.h" instead of "charset.h".
16703 (copy_text): Don't refer to Vnonascii_translation_table.
16704 (insert_from_gap): New function.
16705
16706 * keyboard.c: Include "character.h" instead of "charset.h".
16707 (command_loop_1): Never call direct_output_forward_char before
16708 a non-ASCII character.
16709 (read_char): If Vkeyboard_translate_table is a char table, always
16710 translate a character.
16711
16712 * keymap.c: Include "character.h".
16713 (store_in_keymap): Handle the case that IDX is a cons.
16714 (Fdefine_key): Handle the case that KEY is a cons and the car part
16715 is also a cons (range).
16716 (push_key_description): Adjust for the new character code.
16717 (describe_vector): Call describe_char_table for a char table.
16718 (describe_char_table): New function.
16719
16720 * keymap.h (describe_char_table): Extern it.
16721
16722 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16723 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16724 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16725 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16726 Delete.
16727 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16728 structure.
16729 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16730 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16731 (CHARTAB_SIZE_BITS_3): New macros.
16732 (chartab_size): Extern it.
16733 (struct Lisp_Char_Table): Re-design.
16734 (struct Lisp_Sub_Char_Table): New structure.
16735 (HASH_KEY, HASH_VALUE): Move from fns.c.
16736 (CHARACTERBITS): Define as 22.
16737 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16738 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16739 (GC_SUB_CHAR_TABLE_P): New macro.
16740 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16741 (code_convert_string_norecord): Deleted extern.
16742 (init_character_once, syms_of_character, init_charset)
16743 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16744
16745 * lread.c: Include "character.h".
16746 (read_multibyte): New arg NBYTES.
16747 (read_escape): Change the meaning of returned *BYTEREP.
16748 (to_multibyte): Delete.
16749 (read1): Adjust the handling of char table and string.
16750
16751 * print.c: Include "character.h" instead of "charset.h".
16752 (print_string): Convert 8-bit raw bytes to octal form by
16753 string_escape_byte8.
16754 (print_object): Adjust for the new multibyte form. Print 8-bit
16755 raw bytes always in octal form. Handle sub char table correctly.
16756
16757 * process.c: Include "character.h" instead of "charset.h".
16758 (read_process_output, send_process): Adjust for the new
16759 code-conversion API.
16760
16761 * puresize.h (BASE_PURESIZE): Increase.
16762
16763 * regex.c: Include "character.h" instead of "charset.h".
16764 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16765 (regex_compile): Accept a range whose starting and ending
16766 character have different leading bytes.
16767 (analyse_first): Adjust for the above change.
16768
16769 * search.c: Include "character.h" instead of "charset.h".
16770 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16771 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16772
16773 * syntax.c: Include "character.h" instead of "charset.h".
16774 (syntax_parent_lookup): Delete.
16775 (Fmodify_syntax_entry): Accept a cons as CHAR.
16776 (skip_chars): Adjust for the new multibyte form.
16777 (init_syntax_once): Call char_table_set_range instead of directly
16778 accessing the structure of a char table.
16779
16780 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16781 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16782 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16783 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16784
16785 * term.c: Include "buffer.h" and "character.h".
16786 (encode_terminal_code, write_glyphs): Adjust for the new
16787 code-conversion API.
16788 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16789
16790 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16791
16792 * xdisp.c: Include "character.h".
16793 (get_next_display_element): Adjust for the new multibyte form.
16794 (disp_char_vector): Adjust for the new char table structure.
16795 (decode_mode_spec_coding): Adjust for the new structure of
16796 coding system.
16797 (decode_mode_spec): Adjust for the new code-conversion API.
16798
16799 * xfaces.c: Include "character.h" instead of "charset.h".
16800 (load_face_font): Adjust for the change of choose_face_font and
16801 FS_LOAD_FONT.
16802 (generate_ascii_font): New function.
16803 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16804 (set_font_frame_param): Adjust for the change of choose_face_font.
16805 (free_realized_face): Make it public.
16806 (free_realized_faces_for_fontset): Rename from
16807 free_realized_multibyte_face. Free also faces realized for ASCII.
16808 (choose_face_font): Change arguments. Adjust for the change of
16809 fontset_font_pattern and FS_LOAD_FONT.
16810
16811 * xfns.c: Include "character.h".
16812 (x_encode_text): Adjust for the new code-conversion API.
16813
16814 * xselect.c: Don't include "charset.h".
16815 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16816
16817 * xterm.c: Include "character.h".
16818 (x_encode_char): New argument CHARSET. Change caller.
16819 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16820 Call ENCODE_CHAR instead of SPLIT_CHAR.
16821 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16822 CHAR_WIDTH instead of CHARSET_WIDTH.
16823 (XTread_socket): Adjust for the new code-conversion API.
16824 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16825 (x_load_font): Adjust for the change of struct font.
16826
168272008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16828
16829 * xfaces.c (face_at_buffer_position): Remove unused vars.
16830
168312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16832
16833 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16834 Fix overflow checking.
16835
168362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16837
16838 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16839 Cancel previous change.
16840
168412008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16842
16843 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16844 ccl->eight_bit_control. Fix check for buffer overflow.
16845 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16846 (ccl_driver): Initialize extra_bytes to 0.
16847
168482008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16849
16850 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16851 return it ORed with ctrl_modifier.
16852
168532008-01-29 Miles Bader <miles@gnu.org>
16854
16855 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16856
168572008-01-28 Jason Rumney <jasonr@gnu.org>
16858
16859 * w32.c (stat): Don't double check for networked drive.
16860
168612008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16862
16863 * window.c (run_window_configuration_change_hook): New function.
16864 Code extracted from set_window_buffer. Set the selected frame.
16865 (set_window_buffer): Use it.
16866 * window.h (run_window_configuration_change_hook): Declare.
16867 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16868
16869 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16870
168712008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16872
16873 * Makefile.in: Remove references to unused macros.
16874
168752008-01-26 Eli Zaretskii <eliz@gnu.org>
16876
16877 * w32.c (g_b_init_get_sid_sub_authority)
16878 (g_b_init_get_sid_sub_authority_count): New static variables.
16879 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16880 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16881 (init_user_info): Use them to retrieve uid and gid.
16882 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16883 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16884 st_uid and st_gid of the file.
16885
168862008-01-26 Jason Rumney <jasonr@gnu.org>
16887
16888 * w32.c (logon_network_drive): New function.
16889 (stat): Use it.
16890
168912008-01-26 Chong Yidong <cyd@stupidchicken.com>
16892
16893 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16894 invisible text covered with an ellipsis.
16895
168962008-01-25 Richard Stallman <rms@gnu.org>
16897
16898 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16899 jump back to beginning. Move some other initializations after that.
16900 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16901 New variables.
16902 (syms_of_xdisp): Init them.
16903
16904 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16905
16906 * buffer.c (reset_buffer_local_variables):
16907 Implement `permanent-local-hook'.
16908 (Qpermanent_local_hook): New variable.
16909 (syms_of_buffer): Init and staticpro it.
16910
169112008-01-25 Michael Albinus <michael.albinus@gmx.de>
16912
16913 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16914
169152008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16916
16917 * fns.c (Fclrhash): Return TABLE.
16918
169192008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16920
16921 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16922 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16923 is set even without positional changes.
16924 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16925
16926 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16927
169282008-01-23 Jason Rumney <jasonr@gnu.org>
16929
16930 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16931
16932 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16933 the unicode range available in MULE by locale-coding-system.
16934 Improve dbcs lead byte detection. Set event timestamp and modifiers
16935 earlier.
16936
169372008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16938
16939 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16940 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16941 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16942 when used on child processes.
16943
169442008-01-21 Michael Albinus <michael.albinus@gmx.de>
16945
16946 * dbusbind.c (Fdbus_method_return_internal): Rename from
16947 Fdbus_method_return.
16948 (Fdbus_unregister_object): Move to dbus.el.
16949 (Fdbus_call_method, Fdbus_method_return_internal)
16950 (Fdbus_send_signal): Improve debug messages.
16951
169522008-01-20 Martin Rudalics <rudalics@gmx.at>
16953
16954 * undo.c (undo_inhibit_record_point): New variable.
16955 (syms_of_undo): Initialize it.
16956 (record_point): Don't record point when undo_inhibit_record_point
16957 is set.
16958
169592008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
16960
16961 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16962
16963 * xdisp.c (Qauto_hscroll_mode): New var.
16964 (syms_of_xdisp): Initialize it.
16965 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16966 window's buffer.
16967 (hscroll_windows): Don't check automatic_hscrolling_p here.
16968
16969 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16970 vscroll if we're setting window-buffer to the value it already has.
16971
169722008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
16973
16974 * m/intel386.h: Remove references to XENIX.
16975
169762008-01-17 Andreas Schwab <schwab@suse.de>
16977
16978 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16979 instead of HAVE_X86_64_LIB64_DIR.
16980 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
16981
169822008-01-17 Glenn Morris <rgm@gnu.org>
16983
16984 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
16985 to HAVE_X86_64_LIB64_DIR.
16986
169872008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
16988
16989 * s/irix3-3.h:
16990 * s/irix4-0.h:
16991 * s/386-ix.h:
16992 * s/domain.h:
16993 * s/hpux9-x11r4.h:
16994 * s/hpux9shxr4.h: Remove files for systems no longer supported.
16995
16996 * sysdep.c: Remove code containing references to symbols defined
16997 by unsupported systems.
16998
169992008-01-16 Glenn Morris <rgm@gnu.org>
17000
17001 * coding.c (select-safe-coding-system-function): Doc fix.
17002
170032008-01-15 Glenn Morris <rgm@gnu.org>
17004
17005 * config.in: Revert 2008-01-13 change: this is a generated file.
17006
170072008-01-13 Tom Tromey <tromey@redhat.com>
17008
17009 * lisp.h: Fix typo.
17010
170112008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17012
17013 * m/sequent-ptx.h:
17014 * m/sequent.h:
17015 * s/ptx.h:
17016 * s/ptx4-2.h:
17017 * s/ptx4.h: Remove files for systems no longer supported.
17018
17019 * callproc.c (Fcall_process): Fix previous change.
17020
170212008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17022
17023 * unexsunos4.c: Remove file, system not supported anymore.
17024
17025 * m/mips.h:
17026 * m/intel386.h:
17027 * callproc.c:
17028 * config.in:
17029 * ecrt0.c:
17030 * emacs.c:
17031 * fileio.c:
17032 * frame.c:
17033 * getpagesize.h:
17034 * keyboard.c:
17035 * lread.c:
17036 * process.c:
17037 * puresize.h:
17038 * sysdep.c:
17039 * systty.h:
17040 * syswait.h:
17041 * unexec.c:
17042 * xdisp.c:
17043 * alloc.c: Remove code containing references to symbols defined by
17044 unsupported systems.
17045
170462008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17047
17048 * coding.c (detect_coding_mask): Fix previous change.
17049
170502008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17051
17052 * coding.c (detect_coding_iso2022): New arg
17053 latin_extra_code_state. Allow Latin extra codes only
17054 when *latin_extra_code_state is nonzero.
17055 (detect_coding_mask): If there is a NULL byte, detect the encoding
17056 as UTF-16 or binary. If Latin extra codes exist, detect the
17057 encoding as ISO-2022 only when there's no other proper encoding is
17058 found.
17059
170602008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17061
17062 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17063 #ifdef MAC_OS.
17064
170652008-01-08 Richard Stallman <rms@gnu.org>
17066
17067 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17068
170692008-01-06 Nick Roberts <nickrob@snap.net.nz>
17070
17071 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17072 menu bar in parentheses.
17073
170742008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17075
17076 * m/7300.h:
17077 * m/acorn.h:
17078 * m/alliant-2800.h:
17079 * m/alliant.h:
17080 * m/alliant1.h:
17081 * m/alliant4.h:
17082 * m/altos.h:
17083 * m/amdahl.h:
17084 * m/apollo.h:
17085 * m/att3b.h:
17086 * m/aviion-intel.h:
17087 * m/aviion.h:
17088 * m/celerity.h:
17089 * m/clipper.h:
17090 * m/cnvrgnt.h:
17091 * m/convex.h:
17092 * m/cydra5.h:
17093 * m/delta88k.h:
17094 * m/dpx2.h:
17095 * m/dual.h:
17096 * m/elxsi.h:
17097 * m/f301.h:
17098 * m/gould-np1.h:
17099 * m/gould.h:
17100 * m/i860.h:
17101 * m/ibmps2-aix.h:
17102 * m/ibmrt-aix.h:
17103 * m/ibmrt.h:
17104 * m/irist.h:
17105 * m/is386.h:
17106 * m/isi-ov.h:
17107 * m/mega68.h:
17108 * m/mg1.h:
17109 * m/news-r6.h:
17110 * m/news-risc.h:
17111 * m/news.h:
17112 * m/nh3000.h:
17113 * m/nh4000.h:
17114 * m/ns16000.h:
17115 * m/ns32000.h:
17116 * m/nu.h:
17117 * m/orion.h:
17118 * m/orion105.h:
17119 * m/paragon.h:
17120 * m/pfa50.h:
17121 * m/plexus.h:
17122 * m/pyramid.h:
17123 * m/pyrmips.h:
17124 * m/sh3el.h:
17125 * m/sps7.h:
17126 * m/sr2k.h:
17127 * m/stride.h:
17128 * m/sun1.h:
17129 * m/sun2.h:
17130 * m/sun3-68881.h:
17131 * m/sun3-fpa.h:
17132 * m/sun3-soft.h:
17133 * m/sun3.h:
17134 * m/sun386.h:
17135 * m/symmetry.h:
17136 * m/tad68k.h:
17137 * m/tahoe.h:
17138 * m/targon31.h:
17139 * m/tek4300.h:
17140 * m/tekxd88.h:
17141 * m/tower32.h:
17142 * m/tower32v3.h:
17143 * m/ustation.h:
17144 * m/wicat.h:
17145 * m/xps100.h:
17146 * s/cxux.h:
17147 * s/cxux7.h:
17148 * s/dgux.h:
17149 * s/dgux4.h:
17150 * s/dgux5-4-3.h:
17151 * s/dgux5-4r2.h:
17152 * s/esix.h:
17153 * s/esix5r4.h:
17154 * s/hiuxmpp.h:
17155 * s/hiuxwe2.h:
17156 * s/iris3-5.h:
17157 * s/iris3-6.h:
17158 * s/isc2-2.h:
17159 * s/isc3-0.h:
17160 * s/isc4-0.h:
17161 * s/isc4-1.h:
17162 * s/newsos5.h:
17163 * s/newsos6.h:
17164 * s/osf1.h:
17165 * s/osf5-0.h:
17166 * s/riscix1-1.h:
17167 * s/riscix12.h:
17168 * s/sco4.h:
17169 * s/sco5.h:
17170 * s/sunos4-0.h:
17171 * s/sunos4-1.h:
17172 * s/sunos413.h:
17173 * s/sunos4shr.h:
17174 * s/umax.h:
17175 * s/unipl5-2.h:
17176 * s/xenix.h:
17177 * cxux-crt0.s:
17178 * unexapollo.c:
17179 * unexconvex.c:
17180 * unexenix.c:
17181 * unexsni.c: Remove files for systems no longer supported.
17182
17183 * m/intel386.h: Remove references to unsupported systems.
17184
17185 * w32.c (get_emacs_configuration): Remove reference to i860.
17186
17187 * sysdep.c: Remove dead code.
17188
171892008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17190
17191 * s/rtu.h:
17192 * m/masscomp.h: Remove files. Platform is obsolete.
17193
171942008-01-04 Michael Albinus <michael.albinus@gmx.de>
17195
17196 * dbusbind.c (Fdbus_method_return): New function.
17197 (xd_read_message): Add the serial number to the event.
17198 (Fdbus_register_method): Activate the function.
17199
172002008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17201
17202 * keyboard.c (read_key_sequence): Fix typo.
17203
172042008-01-03 Michael Albinus <michael.albinus@gmx.de>
17205
17206 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17207 (xd_signature, xd_append_arg): Handle element type detection for
17208 empty arrays.
17209 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17210 SDATA () calls; this must be solved more general.
17211 (Fdbus_register_signal): Use SBYTES instead of strlen.
17212
172132008-01-03 Magnus Henoch <magnus@zemdatav>
17214
17215 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17216 unsigned int for byte values (necessary for big-endian platform).
17217 (Fdbus_call_method): Handle the case of no returned arguments.
17218
172192007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17220
17221 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17222
172232007-12-31 Magnus Henoch <mange@freemail.hu>
17224
17225 * dbusbind.c (xd_signature): Signature of variant is just "v".
17226
172272007-12-30 Michael Albinus <michael.albinus@gmx.de>
17228
17229 * dbusbind.c: Fix several errors and compiler warnings.
17230 Reported by Tom Tromey <tromey@redhat.com>.
17231 (XD_ERROR, XD_DEBUG_MESSAGE)
17232 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17233 (xd_append_arg): Part for basic D-Bus types rewritten.
17234 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17235 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17236 appropriate.
17237 (xd_read_message): Return Qnil. Don't signal an error; it is not
17238 useful during event reading.
17239 (Fdbus_register_signal): Signal an error if the check for
17240 FUNCTIONP fails.
17241 (Fdbus_register_method): New function. The implementation is not
17242 complete, the call of the function signals an error therefore.
17243 (Fdbus_unregister_object): New function, renamed from
17244 Fdbus_unregister_signal. The initial check signals an error, if
17245 the object is not well formed.
17246
172472007-12-30 Richard Stallman <rms@gnu.org>
17248
17249 * textprop.c (get_char_property_and_overlay):
17250 Signal error if POSITION is out of range in a buffer.
17251
172522007-12-29 Martin Rudalics <rudalics@gmx.at>
17253
17254 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17255 because the original parameters are in pure storage now.
17256
172572007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17258
17259 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17260
172612007-12-22 Eli Zaretskii <eliz@gnu.org>
17262
17263 * callint.c (syms_of_callint) <command-history>: Add reference to
17264 history-length in the doc string.
17265
172662007-12-17 Jason Rumney <jasonr@gnu.org>
17267
17268 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17269 before passing as wParam.
17270
172712007-12-22 Michael Albinus <michael.albinus@gmx.de>
17272
17273 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17274 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17275 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17276 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17277 as number.
17278 (Fdbus_call_method): Fix docstring.
17279
172802007-12-21 Michael Albinus <michael.albinus@gmx.de>
17281
17282 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17283 New macros.
17284 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17285 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17286 Simplify.
17287 (xd_signature): New function.
17288 (xd_append_arg): Compute also signatures. Major rewrite.
17289 (xd_retrieve_arg): Make debug messages friendly.
17290 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17291 Check for signatures of arguments.
17292
172932007-12-19 Michael Albinus <michael.albinus@gmx.de>
17294
17295 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17296 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17297 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17298 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17299 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17300 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17301 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17302 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17303 (xd_retrieve_value): Remove. Functionality included in ...
17304 (xd_append_arg): New function.
17305 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17306
173072007-12-16 Michael Albinus <michael.albinus@gmx.de>
17308
17309 * dbusbind.c (top): Include <stdio.h>.
17310 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17311 dbus_message_new_method_call and dbus_message_new_signal.
17312 (Fdbus_register_signal): Rename unique_name to uname.
17313 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17314 non-existing unique name. Fix typos in matching rule. Return an
17315 object which is useful in Fdbus_unregister_signal.
17316 (Fdbus_unregister_signal): Reimplementation, in order to remove
17317 only the corresponding entry.
17318 (Vdbus_registered_functions_table): Change the order of entries.
17319 Apply these changes in xd_read_message and Fdbus_register_signal.
17320
173212007-12-16 Andreas Schwab <schwab@suse.de>
17322
17323 * fileio.c (Finsert_file_contents): Fix overflow check to not
17324 depend on undefined integer overflow.
17325
173262007-12-14 Jason Rumney <jasonr@gnu.org>
17327
17328 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17329 for characters above 127.
17330
173312007-12-13 Jason Rumney <jasonr@gnu.org>
17332
17333 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17334 before dereferencing array.
17335 (lookup_vk_code): Remove zero comparison.
17336
173372007-12-14 Michael Albinus <michael.albinus@gmx.de>
17338
17339 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17340 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17341 Use `unsigned int' instead of `uint'.
17342 (xd_read_message, Fdbus_register_signal): Split expressions into
17343 multiple lines before operators "&&" and "||", according to the
17344 GNU Coding Standards.
17345
173462007-12-14 Eli Zaretskii <eliz@gnu.org>
17347
17348 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17349
173502007-12-12 Juri Linkov <juri@jurta.org>
17351
17352 * buffer.c (Frename_buffer): In interactive spec replace
17353 `read-buffer' with `read-string' that uses `buffer-name-history'
17354 as history, and the current buffer's name as default.
17355
173562007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17357
17358 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17359 manipulating the backtrace manually.
17360 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17361 (struct backtrace, backtrace_list): Remove.
17362 (command_loop_1): Remove dead var `no_direct'.
17363
17364 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17365 preserve non-built-in buffer-local variables.
17366 (Fkill_all_local_variables): Don't re-create&re-set permanent
17367 buffer-local variables.
17368
173692007-12-09 Juri Linkov <juri@jurta.org>
17370
17371 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17372 Lisp code that uses `read-buffer' with current buffer as default.
17373
173742007-12-08 Michael Albinus <michael.albinus@gmx.de>
17375
17376 * dbusbind.c (xd_read_message): Generate an event for every
17377 registered handler. There might be several handlers registered
17378 for the same signal.
17379 (Fdbus_register_signal): Don't overwrite a registration for the
17380 same signal. Add a new registration if handlers are different.
17381 (Vdbus_registered_functions_table): Rework doc string.
17382
173832007-12-07 Michael Albinus <michael.albinus@gmx.de>
17384
17385 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17386 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17387 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17388 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17389 Unify argument lists.
17390 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17391 arguments and hash table keys. Use unique name for service.
17392 (Fdbus_unregister_signal): Remove checks.
17393 (Vdbus_registered_functions_table): Fix doc string.
17394
173952007-12-05 Magnus Henoch <mange@freemail.hu>
17396
17397 * process.c (make_process): Initialize pty_flag to 0.
17398
173992007-12-05 Jason Rumney <jasonr@gnu.org>
17400
17401 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17402 specified XBMs.
17403
174042007-12-05 Richard Stallman <rms@gnu.org>
17405
17406 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17407
174082007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17409
17410 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17411 New variable.
17412 (mac_try_close_socket) [MAC_OSX]: New function.
17413 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17414 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17415
17416 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17417 Use mac_try_close_socket.
17418
174192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17420
17421 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17422 reloc_base.
17423 (copy_dysymtab): Compute relocation base here.
17424 (rebase_reloc_address) [__ppc64__]: New function.
17425 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17426 changed.
17427
174282007-12-05 Jason Rumney <jasonr@gnu.org>
17429
17430 * w32proc.c (sys_spawnve): Quote args with wildcards.
17431
174322007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17433
17434 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17435 __objc_* sections.
17436 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17437
174382007-12-05 Michael Albinus <michael.albinus@gmx.de>
17439
17440 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17441 Move check for Vdbus_registered_functions_table to
17442 xd_read_queued_messages.
17443 (xd_read_queued_messages): Protect xd_read_message calls by
17444 internal_condition_case_1.
17445
174462007-12-04 Michael Albinus <michael.albinus@gmx.de>
17447
17448 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17449 Qdbus_system_bus and Qdbus_session_bus, respectively.
17450 (Vdbus_intern_symbols): Remove.
17451 (Vdbus_registered_functions_table): New hash table.
17452 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17453 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17454 Rewrite in order to manage registered functions by hash table
17455 Vdbus_registered_functions_table.
17456
174572007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17458
17459 * xterm.c: Update URL to Window Manager Specification in comment.
17460
174612007-12-02 Michael Albinus <michael.albinus@gmx.de>
17462
17463 * config.in (HAVE_DBUS): Add.
17464
17465 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17466 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17467 (obj): Add $(DBUS_OBJ).
17468 (LIBES): Add $(DBUS_LIBS).
17469 (dbusbind.o): New target.
17470
17471 * dbusbind.c: New file.
17472
17473 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17474
17475 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17476 (Qdbus_event): New Lisp symbol.
17477 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17478 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17479 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17480
17481 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17482
174832007-12-01 Richard Stallman <rms@gnu.org>
17484
17485 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17486
174872007-11-30 Jason Rumney <jasonr@gnu.org>
17488
17489 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17490 (w32con_reset_terminal_modes): Clear screen buffer.
17491 (w32_face_attributes): Don't use color indexes that are out of range.
17492 Only reverse the default colors.
17493
17494 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17495 WINDOWSNT.
17496
17497 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17498
174992007-11-29 Jason Rumney <jasonr@gnu.org>
17500
17501 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17502 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17503 if the terminal colors are initialized.
17504 (unspecified_fg, unspecified_bg): Remove unused declarations.
17505
175062007-11-29 Andreas Schwab <schwab@suse.de>
17507
17508 * keyboard.c (apply_modifiers): Fix typo.
17509
175102007-11-29 Richard Stallman <rms@gnu.org>
17511
17512 * keymap.c (Fcurrent_local_map): Doc fix.
17513
175142007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17515
17516 * s/gnu-kfreebsd.h: New file.
17517
175182007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17519
17520 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17521 Don't cast redundantly.
17522
17523 * keyboard.c (KEY_TO_CHAR): New macro.
17524 (parse_modifiers, apply_modifiers): Accept integer arguments.
17525 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17526 for chars and symbol keys.
17527 After doing such remapping, apply function-key-map again.
17528
175292007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17530
17531 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17532 compiled anymore.
17533
175342007-11-26 Andreas Schwab <schwab@suse.de>
17535
17536 * process.c (list_processes_1): Fix indentation level of the
17537 command column.
17538
175392007-11-23 Andreas Schwab <schwab@suse.de>
17540
17541 * editfns.c (Fformat): Handle %c specially since it requires the
17542 argument to be of type int.
17543
175442007-11-23 Markus Triska <markus.triska@gmx.at>
17545
17546 * emacs.c (main): Call init_editfns before init_process, since
17547 init_process sets Vprocess_connection_type depending on OS release.
17548
175492007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17550
17551 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17552 (find_symbol_value): Use do_symval_forwarding.
17553
17554 * data.c (set_internal): Set the value in the `cons-cell' (for
17555 Buffer_Local_values) not only for frame-local variables.
17556
175572007-11-22 Andreas Schwab <schwab@suse.de>
17558
17559 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17560 values to sprintf.
17561 * keymap.c (Fsingle_key_description): Likewise.
17562 * print.c (print_object): Likewise.
17563
175642007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17565
17566 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17567 file for image is nil.
17568
175692007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17570
17571 * term.c: Include stdarg.h.
17572 (fatal): Implement using varargs.
17573 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17574
175752007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17576
17577 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17578 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17579 Update call to buffer_slot_type_mismatch.
17580 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17581 (buffer_slot_type_mismatch): Update.
17582 * buffer.c (buffer_local_types): Remove.
17583 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17584 (defvar_per_buffer): Set the type in the buffer_objfwd.
17585
175862007-11-21 Jason Rumney <jasonr@gnu.org>
17587
17588 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17589 CreateFileMapping returns NULL on failure.
17590
175912007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17592
17593 * search.c (Fset_match_data): Remove the `evaporate' feature.
17594 (unwind_set_match_data): Don't use the `evaporate' feature.
17595
175962007-11-21 Jason Rumney <jasonr@gnu.org>
17597
17598 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17599
17600 * w32console.c (w32con_write_glyphs): Remove unused variables.
17601
176022007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17603
17604 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17605
17606 * s/darwin.h (MULTI_KBOARD): Remove.
17607
17608 * macfns.c (x_create_tip_frame, Fx_create_frame)
17609 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17610
176112007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17612
17613 * buffer.c (Fbuffer_local_value): Remove redundant test.
17614 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17615 than in `current-buffer' to match the comment.
17616 Do the swap using swap_in_global_binding.
17617
17618 * data.c (store_symval_forwarding, set_internal):
17619 * eval.c (specbind): Remove dead code.
17620
17621 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17622 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17623 Since we do not want to see internal Lisp_*fwd objects here.
17624
176252007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17626
17627 * sysdep.c (init_system_name): Use getaddrinfo if available.
17628
17629 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17630 (x_scroll_bar_note_movement): start, end, with, height in struct
17631 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17632
176332007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17634
17635 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17636
176372007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17638
17639 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17640 This undoes Richard's change of 14-Oct-2002.
17641
17642 * alloc.c (allocate_other_vector):
17643 * lisp.h (allocate_other_vector): Remove.
17644
17645 * window.c (struct save_window_data): Move non-lisp data to the end
17646 and make it `int' rather than Lisp_Object.
17647 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17648 Done wrap/unwrap integer values.
17649 (Fset_window_configuration, compare_window_configurations):
17650 Update use of fields to their new types.
17651
17652 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17653 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17654 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17655 (SET_SCROLL_BAR_X_WINDOW): Remove.
17656 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17657 Access the new x_window field directly.
17658 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17659 Don't wrap/unwrap integers into Lisp_Objects.
17660 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17661 (x_scroll_bar_report_motion):
17662 Don't wrap/unwrap integers into Lisp_Objects.
17663 (x_term_init): Use SDATA.
17664 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17665 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17666 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17667 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17668 * xfns.c (x_set_background_color):
17669 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17670 Access the new x_window field directly.
17671
17672 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17673 (allocate_pseudovector): Make non-static.
17674
17675 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17676 (allocate_pseudovector): Declare.
17677 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17678
176792007-11-15 Andreas Schwab <schwab@suse.de>
17680
17681 * editfns.c (Fformat): Correctly format EMACS_INT values.
17682 Also take precision into account when formatting an integer.
17683
17684 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17685
176862007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17687
17688 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17689 (syms_of_keyboard): Defsubr it.
17690
17691 * data.c (swap_in_global_binding): Fix longstanding bug where
17692 store_symval_forwarding was not called with the right second argument,
17693 thus causing objfwd-ing from being dropped.
17694
176952007-11-14 Juanma Barranquero <lekktu@gmail.com>
17696
17697 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17698 (Fx_display_pixel_height, Fx_display_planes)
17699 (Fx_display_color_cells, Fx_server_max_request_size)
17700 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17701 (Fx_display_visual_class, Fx_display_save_under):
17702 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17703 (Fx_display_pixel_height, Fx_display_planes)
17704 (Fx_display_color_cells, Fx_server_max_request_size)
17705 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17706 (Fx_display_mm_height, Fx_display_mm_width)
17707 (Fx_display_backing_store, Fx_display_visual_class)
17708 (Fw32_select_font, Fx_display_save_under):
17709 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17710 (Fx_display_pixel_height, Fx_display_planes)
17711 (Fx_display_color_cells, Fx_server_max_request_size)
17712 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17713 (Fx_display_save_under): Fix typos in docstrings.
17714
177152007-11-14 Juanma Barranquero <lekktu@gmail.com>
17716
17717 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17718 corresponding to deleted entries; they are an implementation detail.
17719 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17720 Remove variables.
17721 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17722 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17723 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17724 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17725 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17726 (Fw32_define_rgb_color, Fw32_load_color_file)
17727 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17728 Fix typos in docstrings.
17729 (Fx_server_version): Reflow docstring.
17730 (Fw32_shell_execute): Doc fixes.
17731
177322007-11-13 Juanma Barranquero <lekktu@gmail.com>
17733
17734 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17735 if w32_parse_hot_key returned nil.
17736
177372007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17738
17739 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17740
177412007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17742
aac0c6e3
MR
17743 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17744
17745 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17746
17747 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17748 Remove W32_SCROLL_BAR_CLICK_EVENT.
17749
17750 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17751 Add MULTIMEDIA_KEY_EVENT.
17752
17753 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17754 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17755 (make_lispy_event) [WINDOWSNT]: Use it to translate
17756 MULTIMEDIA_KEY_EVENT.
17757
17758 * w32term.h (WM_APPCOMMAND): Define if not already.
17759 (GET_APPCOMMAND_LPARAM): Likewise.
17760
17761 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17762 WM_APPCOMMAND.
17763
17764 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17765 (syms_of_w32fns): Export and initialize it.
17766 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17767
177682007-11-09 Chong Yidong <cyd@stupidchicken.com>
17769
17770 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17771 twice.
17772
17773 * xdisp.c (handle_face_prop): Fix last change.
17774
177752007-11-09 Richard Stallman <rms@gnu.org>
17776
17777 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17778 not just for after-strings and before-strings.
17779 Call face_for_overlay_string and pass the overlay to it.
17780 (handle_display_prop): Determine whether property came from an overlay.
17781 Pass OVERLAY arg to handle_single_display_spec.
17782 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17783 (load_overlay_strings): Fill in it->string_overlays.
17784 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17785
17786 * xfaces.c (face_for_overlay_string): Function renamed from
17787 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17788
17789 * dispextern.h (struct it): New elt string_overlays.
17790 New elt from_overlay, also in stack.
17791 Rearrange a few elements.
17792 (face_for_overlay_string): Decl renamed from
17793 face_at_buffer_position_no_overlays, and add argument.
17794
177952007-11-09 Richard Stallman <rms@gnu.org>
17796
17797 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17798 to get the base face for an overlay string.
17799
17800 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17801
17802 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17803
17804 * xdisp.c (handle_stop): Move some code out of loop.
17805
178062007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17807
17808 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17809 Fix conversion from Lisp object to ATSUFontID.
17810
178112007-11-09 Jason Rumney <jasonr@gnu.org>
17812
17813 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17814
178152007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17816
17817 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17818 Don't assume regions are aligned to page boundary.
17819 (print_load_command_name): Add LC_UUID if defined.
17820
178212007-11-09 Richard Stallman <rms@gnu.org>
17822
17823 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17824
178252007-11-07 Jason Rumney <jasonr@gnu.org>
17826
17827 * s/windows95.h: Remove.
17828
178292007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17830
17831 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17832 abort with a message on unhandled store_type values.
17833
178342007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17835
17836 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17837 Remove HAVE_X11R5 and HAVE_X11R4.
17838
178392007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17840
17841 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17842
178432007-11-01 Johan Bockgård <bojohan@gnu.org>
17844
17845 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17846 Don't set s->stippled_p here, since it has already been set by
17847 x_set_glyph_string_gc from x_draw_glyph_string.
17848
178492007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17850
17851 * sunfns.c: Remove file.
17852
17853 * m/sun386.h:
17854 * m/sun2.h:
17855 * m/sparc.h: Remove Sun windows code.
17856
178572007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17858
17859 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17860 (init_keyboard): Set current_kboard's window-system to nil.
17861 (tty_read_avail_input): Typo.
17862 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17863
178642007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17865
17866 * s/usg5-4.h:
17867 * s/usg5-3.h:
17868 * s/ptx.h:
17869 * m/is386.h:
17870 * m/ibmps2-aix.h:
17871 * Makefile.in: Remove all mentions of X10.
17872
17873 * dispnew.c (syms_of_display): Don't mention version 10.
17874
178752007-10-28 Juanma Barranquero <lekktu@gmail.com>
17876
17877 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17878 ($(BLD)/abbrev.$(O)): Remove.
17879
178802007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17881
17882 Rewrite abbrev.c in Elisp.
17883 * image.c (Qcount): Don't declare as extern.
17884 (syms_of_image): Initialize and staticpro `Qcount'.
17885 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17886 * emacs.c (main): Don't call syms_of_abbrev.
17887 * Makefile.in (obj): Remove abbrev.o.
17888 (abbrev.o): Remove.
17889 * abbrev.c: Remove.
17890
178912007-10-26 Martin Rudalics <rudalics@gmx.at>
17892
17893 * window.c (window_min_size_2): Don't count header-line.
17894
178952007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17896
17897 * frame.h (struct frame): Move all bit fields after the first bit
17898 field to take advantage of the available space. Group all the
17899 chars together to reduce wasted space due to padding.
17900
179012007-10-26 Juanma Barranquero <lekktu@gmail.com>
17902
17903 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17904
17905 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17906 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17907 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17908 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17909 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17910 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17911 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17912 (last_marked, mark_object_loop_halt): Make static.
17913
17914 * frame.c (syms_of_frame) <delete-frame-functions>:
17915 Fix typo in docstring.
17916
179172007-10-25 Juanma Barranquero <lekktu@gmail.com>
17918
17919 * w32.c (init_environment): Fix tiny memory leak.
17920 (w32_get_resource): Remove unused variable `ok'.
17921
179222007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17923
17924 Make `window-system' into a keyboard-local variable (rather than
17925 frame-local as done originally by multi-tty).
17926
17927 * keyboard.h (struct kboard): Add Vwindow_system.
17928 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17929 (mark_kboards): Mark Vwindow_system.
17930
17931 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17932 (init_display): Don't set the obsolete `window-system' frame-param.
17933
17934 * xterm.c (x_term_init):
17935 * w32term.c (w32_create_terminal):
17936 * term.c (init_tty): Set Vwindow_system.
17937 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17938 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17939
17940 * xfns.c (Fx_create_frame, x_create_tip_frame):
17941 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17942 * macfns.c (Fx_create_frame):
17943 Don't set the obsolete `window-system' frame-param.
17944
17945 * frame.h (Qwindow_system): Remove.
17946 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17947 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17948
179492007-10-24 Richard Stallman <rms@gnu.org>
17950
17951 * frame.c (x_figure_window_size): For fullscreen case,
17952 set USPosition | PPosition without clobbering rest of window_prompting.
17953
17954 * keyboard.c (Fcurrent_idle_time): Doc fix.
17955
17956 * print.c (Fwith_output_to_temp_buffer): Doc fix.
17957
179582007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
17959
17960 * process.c (unwind_request_sigio): Only define if __ultrix__.
17961
17962 * callproc.c (child_setup): Remove spurious *.
17963
17964 * lisp.h (Fget_text_property): Declare.
17965 (have_menus_p): Declare it here rather than in sys-dep header files.
17966 * macterm.h (have_menus_p):
17967 * msdos.h (have_menus_p):
17968 * xterm.h (have_menus_p): Remove.
17969
17970 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17971 (Fmake_variable_frame_local): Just check the variable's const-ness
17972 rather than checking nil or t.
17973
179742007-10-22 Jason Rumney <jasonr@gnu.org>
17975
17976 * w32fns.c: Include math.h.
17977 (w32_abort): Declaration moved to nt/config.nt.
17978
17979 * s/ms-w32.h (HAVE_STDLIB_H): Define.
17980 (abort): Redefinition moved to nt/config.nt.
17981
17982 * m/windowsnt.h: Remove.
17983
179842007-10-22 Juanma Barranquero <lekktu@gmail.com>
17985
17986 * emacs.c (Fdump_emacs): Fix typo in message.
17987 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
17988 <installation-directory>: Reflow docstring.
17989
179902007-10-22 Juri Linkov <juri@jurta.org>
17991
17992 * minibuf.c: Allow minibuffer default to be a list of default values.
17993 With empty input use the first element of this list as returned default.
17994 (string_to_object)
17995 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
17996 (read_minibuf): If defalt is cons, set histstring to its car.
17997 (Fread_string): If default_value is cons, set val to its car.
17998 (Fread_buffer): If def is cons, use its car.
17999 (Fcompleting_read): If defalt is cons, set val to its car.
18000
180012007-10-21 Michael Albinus <michael.albinus@gmx.de>
18002
18003 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18004
180052007-10-20 Juanma Barranquero <lekktu@gmail.com>
18006
18007 * doc.c (Fdocumentation): Check for advice in all cases.
18008
180092007-10-19 Chong Yidong <cyd@stupidchicken.com>
18010
18011 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18012
180132007-10-19 Richard Stallman <rms@gnu.org>
18014
18015 * doc.c (Fdocumentation): Check for and handle an advised function.
18016
180172007-10-19 Juanma Barranquero <lekktu@gmail.com>
18018
18019 * process.c (Fset_process_filter): Doc fix.
18020
180212007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18022
18023 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18024 which caused key-translation-map to applied repeatedly (thus breaking
18025 double-mode).
18026
180272007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18028
18029 * xselect.c (x_own_selection, x_handle_selection_clear)
18030 (x_clear_frame_selections):
18031 * w32menu.c (list_of_panes, list_of_items):
18032 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18033 * textprop.c (validate_plist, interval_has_all_properties)
18034 (interval_has_some_properties, interval_has_some_properties_list)
18035 (add_properties, text_property_list):
18036 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18037 * minibuf.c (Fassoc_string):
18038 * macselect.c (x_own_selection, x_clear_frame_selections)
18039 (Fx_disown_selection_internal):
18040 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18041 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18042
180432007-10-17 Chong Yidong <cyd@stupidchicken.com>
18044
18045 * process.c: Link to libs for calling res_init() if available.
18046 (Fmake_network_process): Call res_init() before getaddrinfo or
18047 gethostbyname, if possible.
18048
180492007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18050
18051 * lread.c (read1): Set pvectype for char_tables.
18052
18053 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18054 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18055 Add type checks.
18056 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18057
18058 * alloc.c (free_misc): Use XMISCTYPE.
18059 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18060
180612007-10-17 Glenn Morris <rgm@gnu.org>
18062
18063 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18064 (syms_of_minibuf): Add Qcompletion_ignore_case.
18065 * dired.c (Qcompletion_ignore_case): Change to external.
18066 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18067 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18068 (Fread_file_name): Use it rather than intern'ing.
18069
18070 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18071 (Fread_coding_system): Ignore case of user input.
18072
180732007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18074
18075 * xdisp.c (handle_display_prop): Ignore display specs after
18076 replacing one when string text is being replaced.
18077 (handle_single_display_spec): Pretend as if characters with display
18078 property haven't been consumed only when buffer text is being replaced.
18079
180802007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18081
18082 * xfns.c (Fx_create_frame, Fx_display_list):
18083 * window.c (window_fixed_size_p, enlarge_window)
18084 (shrink_window_lowest_first):
18085 * macterm.c (init_font_name_table):
18086 * macfns.c (Fx_create_frame, Fx_display_list):
18087 * lread.c (close_load_descs):
18088 * keyboard.c (read_char_x_menu_prompt):
18089 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18090 * coding.c (code_convert_region_unwind): Test the type of an object
18091 rather than just !NILP before extracting data from it.
18092
18093 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18094
18095 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18096 (XMISCANY): New macro.
18097 (XMISCTYPE): Use it.
18098 (struct Lisp_Misc_Any): New type.
18099 (union Lisp_Misc): Use it.
18100 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18101 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18102 (find_symbol_value, set_internal, default_value, Fset_default)
18103 (Fmake_variable_buffer_local, Fmake_local_variable)
18104 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18105 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18106 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18107 * alloc.c (allocate_buffer): Set the size and tag.
18108 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18109 Use XMISCANY.
18110 (die): Follow the GNU convention for error messages.
18111 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18112 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18113 tag any more.
18114 (set_buffer_internal_1):
18115 * frame.c (store_frame_param):
18116 * eval.c (specbind):
18117 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18118
18119 * doc.c (Fsnarf_documentation): Simplify.
18120
181212007-10-14 Juanma Barranquero <lekktu@gmail.com>
18122
18123 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18124 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18125
181262007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18127
18128 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18129
181302007-10-14 Juanma Barranquero <lekktu@gmail.com>
18131
18132 * eval.c (do_autoload): Don't save autoloads.
18133
18134 * data.c (Ffset): Save autoload of the function being set.
18135
181362007-10-07 John Paul Wallington <jpw@pobox.com>
18137
18138 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18139 parameter before setting up faces.
18140
181412007-10-13 Eli Zaretskii <eliz@gnu.org>
18142
18143 * ccl.c (Fregister_code_conversion_map):
18144 * keyboard.c (append_tool_bar_item): Reformat last change.
18145
18146 * lisp.h (eabs): Rename from `abs'. All callers changed.
18147
181482007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18149
18150 * buffer.c (add_overlay_mod_hooklist):
18151 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18152 * fontset.c (make_fontset):
18153 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18154 (append_tool_bar_item):
18155 * macmenu.c (grow_menu_items):
18156 * w32menu.c (grow_menu_items):
18157 * xmenu.c (grow_menu_items): Use larger_vector.
18158
181592007-10-13 Eli Zaretskii <eliz@gnu.org>
18160
18161 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18162 selected frame'' on MSDOS).
18163
181642007-10-12 Martin Rudalics <rudalics@gmx.at>
18165
18166 * frame.c (Qexplicit_name): New variable.
18167 (x_report_frame_params): Report it in parameter alist.
18168 (syms_of_frame): Intern and staticpro it.
18169
181702007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18171
18172 * macfns.c (x_create_tip_frame): Set terminal for frame.
18173
181742007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18175
18176 * frame.c (Qenvironment): Remove.
18177 (syms_of_frame) <Qenvironment>: Don't initialize.
18178 (Fdelete_frame): Don't treat the `environment' param specially.
18179 * frame.h (Qenvironment): Don't declare.
18180 * callproc.c (set_initial_environment): Don't set unused frame param.
18181
18182 * frame.c (Fframe_with_environment): Remove.
18183 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18184
18185 * lisp.h (Fframe_with_environment): Don't declare.
18186
181872007-10-10 Juanma Barranquero <lekktu@gmail.com>
18188
18189 * indent.c (indent_tabs_mode, last_known_column)
18190 (last_known_column_modified): Make static.
18191 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18192
181932007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18194
18195 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18196
181972007-10-09 Jason Rumney <jasonr@gnu.org>
18198
18199 * w32term.c (x_set_window_size): Disable code that attempts to tell
18200 Lisp code about a size change before it actually happens.
18201
182022007-10-09 Richard Stallman <rms@gnu.org>
18203
18204 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18205 return HANDLED_RETURN.
18206
182072007-10-08 Martin Rudalics <rudalics@gmx.at>
18208
18209 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18210 when there's an unread command event.
18211
18212 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18213 window autoselection act appropriately when leaving selected frame.
18214 (syms_of_frame): Initialize focus_follows_mouse.
18215 * frame.h (focus_follows_mouse): Extern it.
18216 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18217 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18218 * msdos.c (dos_rawgetc): Likewise.
18219 * w32term.c (w32_read_socket): Likewise.
18220 * xterm.c (handle_one_xevent): Likewise.
18221 * xdisp.c (syms_of_xdisp): In doc-string of
18222 mouse-autoselect-window mention focus-follows-mouse.
18223
182242007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18225
18226 * macterm.c (mac_load_query_font): Fix missing return value.
18227 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18228 Add BLOCK_INPUT.
18229
182302007-10-08 Richard Stallman <rms@gnu.org>
18231
18232 * xdisp.c (get_window_cursor_type): Implement documented behavior
18233 for cursor-in-non-selected-windows = t.
18234
182352007-10-08 Jason Rumney <jasonr@gnu.org>
18236
18237 * w32.c (w32_get_resource): Always close registry keys.
18238
182392007-10-08 Jason Rumney <jasonr@gnu.org>
18240
18241 * makefile.w32-in (LIBS): Add COMCTL32.
18242
18243 * w32fns.c (globals_of_w32fns): Init common controls.
18244
182452007-10-08 Richard Stallman <rms@gnu.org>
18246
18247 * image.c (our_memory_buffer): Rename from omfib_buffer.
18248
182492007-10-08 Richard Stallman <rms@gnu.org>
18250
18251 * buffer.c (Foverlays_at): Doc fix.
18252
182532007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18254
18255 * fns.c (Fplist_put): Preserve uneven tail data.
18256
182572007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18258
18259 * termhooks.h (enum event_kind): Remove trailing comma.
18260
18261 * frame.h (enum): Remove trailing comma.
18262
182632007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18264
18265 * w32proc.c (delete_child): Don't terminate threads of zombies.
18266
182672007-10-08 Martin Rudalics <rudalics@gmx.at>
18268
18269 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18270
18271 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18272 last-repeatable-command.
18273 (init_kboard): Initialize Vlast_repeatable_command.
18274 (command_loop_1): Set it to real_this_command unless that was
18275 bound to an input event.
18276 (mark_kboards): Mark it.
18277
182782007-10-08 Richard Stallman <rms@gnu.org>
18279
18280 * eval.c (condition-case): Doc fix.
18281
182822007-10-08 Masatake YAMATO <jet@gyve.org>
18283
18284 * xfaces.c (tty_supports_face_attributes_p): Fix code
18285 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18286 was copied and not edited.
18287
182882007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18289
18290 Add new `input-decode-map' keymap and use it for terminal
18291 escape sequences.
18292 * keyboard.h (struct kboard): Add Vinput_decode_map.
18293 Remove Vlocal_key_translation_map.
18294 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18295 (init_kboard): Init input-decode-map.
18296 Replace local-key-translation-map back with key-translation-map.
18297 (syms_of_keyboard): Declare input-decode-map.
18298 Remove local-key-translation-map. Update docstrings.
18299 (mark_kboards): Mark Vinput_decode_map.
18300 Don't mark Vlocal_key_translation_map.
18301 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18302 Replace local-key-translation-map back with key-translation-map.
18303 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18304 Bind in input-decode-map rather than function-key-map.
18305
18306 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18307 This was made redundant by the previous introduction of XSETPVECTYPE.
18308
183092007-10-09 Richard Stallman <rms@gnu.org>
18310
18311 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18312
183132007-09-29 Richard Stallman <rms@gnu.org>
18314
18315 * eval.c (internal_condition_case_2, internal_condition_case_1)
18316 (internal_condition_case): Reenable abort if x_catching_errors ()
18317 to see if that really happens and why.
18318
183192007-10-06 Andreas Schwab <schwab@suse.de>
18320
18321 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18322
183232007-10-04 Juanma Barranquero <lekktu@gmail.com>
18324
18325 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18326
183272007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18328
18329 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18330
183312007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18332
18333 * window.h (struct window):
18334 * window.c (struct save_window_data, struct saved_window):
18335 * termhooks.h (struct terminal):
18336 * process.h (struct Lisp_Process):
18337 * frame.h (struct frame):
18338 * buffer.h (struct buffer):
18339 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18340 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18341 The size field of (pseudo)vectors is now unsigned.
18342 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18343
18344 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18345 Turn `count' into an integer.
18346
18347 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18348 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18349 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18350 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18351 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18352
18353 * alloc.c (allocate_pseudovector): New fun.
18354 (ALLOCATE_PSEUDOVECTOR): New macro.
18355 (allocate_window, allocate_terminal, allocate_frame)
18356 (allocate_process): Use it.
18357 (mark_vectorlike): New function.
18358 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18359 (mark_terminals): Use it.
18360 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18361 (Fmake_byte_code): Use XSETPVECTYPE.
18362
18363 * frame.c (Fframe_parameters): Minor simplification.
18364
18365 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18366
18367 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18368
18369 * buffer.c (Fget_buffer_create, init_buffer_once):
18370 * lread.c (defsubr):
18371 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18372
18373 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18374 defined differently in the m/*.h files.
18375 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18376 (XSETPVECTYPE): New macro.
18377 (XSETPSEUDOVECTOR): Use it.
18378
18379 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18380 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18381
18382 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18383 * lread.c (defvar_per_buffer):
18384 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18385
18386 * window.c (candidate_window_p): Only consider as visible frames that
18387 are on the same terminal.
18388
18389 * m/ibms390x.h (MARKBIT): Remove unused macro.
18390
183912007-10-01 Juanma Barranquero <lekktu@gmail.com>
18392
18393 * lread.c (Fload): Fix typo in docstring.
18394
183952007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18396
18397 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18398 of a non-zero value can't yield zero.
18399
184002007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18401
18402 * term.c (term_clear_mouse_face, term_mouse_highlight)
18403 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18404
18405 * print.c (safe_debug_print): Use XHASH.
18406
18407 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18408 Lisp elements such as tags.
18409 (XHASH): New macro.
18410 (EQ): Use it.
18411 (SREF, SSET, STRING_COPYIN): Use SDATA.
18412 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18413
18414 * alloc.c (mark_terminal): Remove left-over declaration.
18415 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18416 (allocate_vectorlike): Remove type argument. Adjust callers.
18417 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18418 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18419
18420 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18421 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18422 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18423 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18424 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18425 Use them.
18426
18427 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18428 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18429 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18430
184312007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18432
18433 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18434 loaded by default.
18435
184362007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18437
18438 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18439 on this tty.
18440 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18441
18442 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18443 Update all users.
18444 (handle_one_term_event): Use Gpm_DrawPointer.
18445 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18446 Signal errors instead of returning nil. Always return nil.
18447 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18448 Make it a noop if gpm-mouse was not activated.
18449 (syms_of_term): Update names.
18450
184512007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18452
18453 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18454 (init_sys_modes): Check that gpm_tty is the current tty.
18455
18456 * alloc.c (allocate_terminal): Set the vector size to only count the
18457 lisp fields. Initialize those to nil.
18458 (mark_object): Don't treat terminals specially.
18459 (mark_terminal): Remove.
18460 (mark_terminals): Use mark_object instead.
18461
18462 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18463 the GC to the beginning.
18464
18465 * indent.h:
18466 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18467
18468 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18469
184702007-09-25 Jason Rumney <jasonr@gnu.org>
18471
18472 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18473
18474 * w32console.c (create_w32cons_output): Remove.
18475
18476 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18477
18478 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18479 (reset_sys_modes): Use reset_terminal_modes_hook.
18480
184812007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18482
18483 * eval.c (do_autoload): Don't output any message.
18484
184852007-09-24 Juri Linkov <juri@jurta.org>
18486
18487 * emacs.c (standard_args): Change priority of "--no-splash"
18488 from 40 to 3. Add "--no-desktop" with the same priority.
18489
184902007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18491
18492 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18493 and optimize the case where they are all 1.
18494
184952007-09-23 Johannes Weiner <hannes@saeurebad.de>
18496
18497 * lisp.h (abs): Define if not defined.
18498 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18499 Don't define `abs', since it's defined in lisp.h.
18500
185012007-09-22 Eli Zaretskii <eliz@gnu.org>
18502
18503 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18504 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18505 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18506 (init_tty): Use DEV_TTY instead of "/dev/tty".
18507 [WINDOWSNT]: No need to protect from NAME arg being null.
18508
185092007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18510
18511 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18512 up the tty state.
18513
185142007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18515
18516 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18517 (gpm_tty): Change its type.
18518 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18519 (gpm_tty): Change its type and initialize it.
18520 (Fterm_open_connection): Check the frame is indeed a tty.
18521 Use the new gpm_tty.
18522 (Fterm_close_connection): Use the new gpm_tty.
18523 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18524 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18525
185262007-09-21 Juanma Barranquero <lekktu@gmail.com>
18527
18528 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18529 underline_color, to draw strike-through.
18530
185312007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18532
18533 * lisp.h (allocate_terminal): Declare.
18534
18535 * window.c (candidate_window_p): Consider frames that are being placed
18536 by the user as somewhere between visible and iconified.
18537 (window_loop): Prefer windows on the current frame.
18538 (Fselect_window): Move the use of select-frame to the beginning so we
18539 can just delegate all the work (it'll call us back anyway).
18540
18541 * frame.c (Qdisplay_environment_variable):
18542 * frame.h (Qdisplay_environment_variable): Delete.
18543
18544 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18545 of the first arg, since that value may be a union.
18546
18547 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18548 parameter rather than Qdisplay_environment_variable. If all else
18549 fails, look for DISPLAY in initial-environment.
18550
185512007-09-21 Glenn Morris <rgm@gnu.org>
18552
18553 * Makefile.in (emacstool): Remove target.
18554 (lisp, shortlisp): Remove termdev.elc.
18555
185562007-09-21 Markus Triska <markus.triska@gmx.at>
18557
18558 * xterm.c (x_delete_display): Compile session management conditionally.
18559
185602007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18561
18562 * callproc.c (getenv_internal_1): New function.
18563 (getenv_internal): Use it.
18564 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18565
18566 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18567 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18568 (Fset_terminal_parameter): Work with dead terminals as well.
18569 (Fmodify_terminal_parameters): Remove.
18570
18571 * terminal.c (get_terminal): Handle terminals.
18572 Make sure the terminal returned is live.
18573 (create_terminal): Use allocate_terminal.
18574 (mark_terminals): Move to alloc.c.
18575 (delete_terminal): Use terminal->name as liveness status.
18576 NULL out fields after freeing their contents.
18577 Don't deallocate the object.
18578 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18579 rather than an int.
18580 (Fterminal_live_p): Accept non-integer arguments.
18581 (Fterminal_list): Return terminal objects rather than an ints.
18582
18583 * alloc.c (enum mem_type): New member for `terminal' objects.
18584 (allocate_terminal): New function.
18585 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18586 Handle terminals.
18587 (mark_terminal): New fun.
18588 (mark_terminals): Move from terminal.c.
18589
18590 * term.c (get_tty_terminal): Don't treat output_initial specially.
18591 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18592 (delete_tty): Use terminal->name as liveness status.
18593
18594 * termhooks.h (struct terminal): Make it into a pseudovector.
18595 Remove `deleted' replaced by checking `name's nullness.
18596
18597 * print.c (print_object): Handle terminals.
18598
18599 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18600 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18601
18602 * frame.c (make_terminal_frame):
18603 * keyboard.c (tty_read_avail_input):
18604 * w32term.c (x_delete_terminal):
18605 * xfns.c (Fx_create_frame, x_create_tip_frame):
18606 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18607
186082007-09-20 Glenn Morris <rgm@gnu.org>
18609
18610 * process.c (Fmake_network_process): Doc fix.
18611
186122007-09-19 Jason Rumney <jasonr@gnu.org>
18613
18614 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18615
186162007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18617
18618 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18619 Fix a C warning regarding variable constness.
18620
18621 * xterm.c (handle_one_xevent): Fix a C warning.
18622
186232007-09-18 Jason Rumney <jasonr@gnu.org>
18624
18625 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18626
186272007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18628
18629 * gtkutil.c (gdpy_def): New variable.
18630 (xg_initialize): Initialize gdpy_def.
18631 (xg_display_close): If no other display exists, set gdpy_def to a
18632 new connection.
18633
186342007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18635
18636 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18637 when we have no file name for the icon.
18638 (xg_tool_bar_expose_callback): Remove.
18639 (xg_create_tool_bar): Don't connect expose signal to
18640 xg_tool_bar_expose_callback.
18641 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18642
186432007-09-16 Andreas Schwab <schwab@suse.de>
18644
18645 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18646 values instead of zapping them.
18647
186482007-09-14 Glenn Morris <rgm@gnu.org>
18649
18650 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18651 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18652 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18653 scope and rename to omfib_buffer for clarity.
18654 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18655
186562007-09-14 Kenichi Handa <handa@m17n.org>
18657
18658 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18659
186602007-09-13 Jason Rumney <jasonr@gnu.org>
18661
18662 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18663
18664 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18665
18666 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18667 (mac_term_init): Call here instead, passing rif.
18668
186692007-09-13 Glenn Morris <rgm@gnu.org>
18670
18671 * s/hpux.h: No longer define `static' as nothing.
18672
186732007-09-13 Johan Bockgård <bojohan@gnu.org>
18674
18675 * callint.c (Fcall_interactively): Remove unused var `fun'.
18676
186772007-09-12 Romain Francoise <romain@orebokech.com>
18678
18679 * window.c (prefer_window_split_horizontally, display_buffer):
18680 Revert 2007-09-08 change.
18681
186822007-09-12 Glenn Morris <rgm@gnu.org>
18683
18684 * alloca.c: Remove file.
18685 * Makefile.in (alloca): Do not undef.
18686 (allocaobj, alloca.o): Remove.
18687 (otherobj): Remove allocaobj.
18688 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18689 * regex.c (C_ALLOCA): Remove all references and code that was only
18690 used when this was defined.
18691 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18692 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18693 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18694
18695 * Makefile.in (SOURCES, unlock, relock): Delete.
18696
18697 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18698 (menu_grab_callback): All uses changed.
18699
18700 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18701 (x_reply_selection_request): All uses changed.
18702
187032007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18704
18705 * lread.c (load_warn_old_style_backquotes): Change message to look
18706 better when it appears in the middle of byte-compiler messages.
18707
187082007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18709
18710 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18711
18712 * xterm.c (x_create_terminal): Add comment.
18713
18714 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18715
187162007-09-10 Richard Stallman <rms@gnu.org>
18717
18718 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18719
187202007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18721
18722 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18723 (DEFUN): Document `intspec', use it instead of `prompt'.
18724
18725 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18726
18727 * data.c (Finteractive_form): If the interactive specification starts
18728 with a `(', use it as a Lisp form.
18729
18730 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18731 name and file modes.
18732
18733 * callint.c (Fcall_interactively): Comment fixes.
18734
187352007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18736
18737 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18738 and compiled functions.
18739
187402007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18741
18742 * window.c (prefer_window_split_horizontally): New variable.
18743 (display_buffer): Consider splitting window horizontally depending
18744 on prefer_window_split_horizontally.
18745
187462007-09-08 Eli Zaretskii <eliz@gnu.org>
18747
18748 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18749
187502007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18751
18752 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18753
18754 * frame.c (x_set_frame_parameters): Check number is positive before
18755 using XFASTINT.
18756
18757 * window.c (freeze_window_start): Don't presume selected_window holds
18758 a window object.
18759 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18760
187612007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18762
18763 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18764
187652007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18766
18767 * window.c (Vsplit_window_preferred_function): New var.
18768 (Fdisplay_buffer): Use it.
18769 (syms_of_window): Export, and initialize it.
18770
187712007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18772
18773 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18774
187752007-09-06 Glenn Morris <rgm@gnu.org>
18776
18777 * gtkutil.c (menu_grab_callback) <cnt>:
18778 * xselect.c (x_reply_selection_request) <cnt>: Move static
18779 variable to file scope.
18780
187812007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18782
18783 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18784 consistent values of selected_frame and selected_window.
18785
187862007-09-04 Jason Rumney <jasonr@gnu.org>
18787
18788 * w32console.c (initialize_w32_display): Zero unused hooks.
18789
187902007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18791
18792 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18793 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18794
187952007-09-04 Jason Rumney <jasonr@gnu.org>
18796
18797 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18798 in w32console.c. Set up input. Remove XXX comments that have been
18799 confirmed as correct.
18800
18801 * s/ms-w32.h (MULTI_KBOARD): Define.
18802
18803 * w32console.c (one_and_only_w32cons): Remove.
18804 (initialize_w32_display): Take terminal argument.
18805
18806 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18807 initialize_w32_display.
18808 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18809
18810 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18811
18812 * keyboard.c (discard_mouse_events): Discard it.
18813 (make_lispy_event): Translate it to a lisp event.
18814 (lispy_wheel_names): Add wheel-left and right events.
18815 (syms_of_keyboard): Enlarge wheel_syms.
18816
18817 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18818 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18819
18820 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18821
18822 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18823 from WM_MOUSEHWHEEL.
18824 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18825
18826 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18827 terminal.
18828
18829 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18830 keyboard for the terminal.
18831
188322007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18833
18834 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18835 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18836 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18837 and resume-tty-function to resume-tty-hook.
18838 (Fsuspend_tty, Fresume_tty): Use new names.
18839
188402007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18841
18842 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18843 if it starts with "n:".
18844
188452007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18846
18847 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18848
188492007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18850
18851 * frame.h:
18852 * frame.c (Qterm_environment_variable): Remove.
18853 (syms_of_frame): Don't init and staticpro it.
18854
18855 * callproc.c (getenv_internal): Remove special case for $TERM.
18856
18857 * callproc.c (Vinitial_environment): New variable.
18858 (set_initial_environment): Initialize it.
18859 (syms_of_callproc): Declare it.
18860 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18861 TERM under which a process runs is never related to the TERM in which
18862 Emacs is running.
18863
188642007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18865
18866 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18867 * s/darwin.h: ... do it here.
18868
188692007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18870
18871 * lisp.h (set_initial_environment): Rename from set_global_environment.
18872
18873 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18874 removed by mistake on the multi-tty branch.
18875
18876 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18877 (Fmodify_frame_parameters): Return a value.
18878
18879 * image.c (png_load): Comment-out var only used in commented-out code.
18880
18881 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18882 before passing it to mark_object.
18883
18884 * xfaces.c (internal_resolve_face_name): Return a value.
18885 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18886
18887 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18888 (x_icon): Comment-out var only used in commented-out code.
18889
188902007-08-29 Romain Francoise <romain@orebokech.com>
18891
18892 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18893 QUIT hasn't been provided.
18894
188952007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18896
18897 * callproc.c (child_setup, getenv_internal): Use the
18898 display-environment-variable and term-environment-variable frame params.
18899 (set_initial_environment): Initialise Vprocess_environment.
18900
18901 * config.in: Disable multi-keyboard support on a mac.
18902
18903 * frame.c (Qterm_environment_variable)
18904 (Qdisplay_environment_variable): New variables.
18905 (syms_of_frame): Intern and staticpro them.
18906 (Fmake_terminal_frame): Disable output method test.
18907
18908 * frame.h: Declare them here.
18909
18910 * macfns.c (x_set_mouse_color): Get rif from the frame.
18911 (x_set_tool_bar_lines): Don't use updating_frame.
18912 (mac_window): Add 2 new parameters for consistency with other systems.
18913 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18914 frame parameters following what is done in X11 and w32. Don't use
18915 FRAME_MAC_DISPLAY_INFO.
18916 (Fx_open_connection, start_hourglass): Remove window-system check.
18917 (x_create_tip_frame): Get the keyboard from the terminal.
18918
18919 * macmenu.c: Reorder includes.
18920 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18921
18922 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18923 terminal parameter.
18924 (x_clear_frame): Add a frame parameter.
18925 (note_mouse_movement): Get rif from the frame.
18926 (mac_term_init): Initialize the terminal.
18927 (mac_initialize): Make static and move terminal initialization ...
18928 (mac_create_terminal): ... to this new function.
18929
18930 * macterm.h (struct mac_display_info): Add terminal.
18931 (mac_initialize): Delete declaration.
18932
18933 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18934
18935 * sysdep.c: Comment out text after #endif.
18936
18937 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18938 is defined. Better initialize ttys in windows. Use terminal
18939 specific mouse_position_hook.
18940
18941 * termhooks.h (union display_info): Add mac_display_info.
18942
18943 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18944 Set the default minibuffer frame, window_system and the rest of the
18945 frame parameters following what is done in X11.
18946
18947 * w32term.c (w32_initialize): Make static.
18948
18949 * xselect.c (x_handle_selection_clear): Only access
18950 terminal->kboard when MULTI_KBOARD is defined.
18951
18952 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18953 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18954
189552007-08-29 Jason Rumney <jasonr@gnu.org>
18956
18957 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18958 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18959
18960 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18961 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18962
18963 * keyboard.c (restore_kboard_configuration): Only define when
18964 MULTI_KBOARD defined.
18965
18966 * makefile.w32-in: Update dependancies from Makefile.in.
18967 (OBJ1): Add terminal.$(O)
18968
18969 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18970 Don't define function body.
18971 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18972
18973 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18974
18975 * w32.c (request_sigio, unrequest_sigio): Remove.
18976
18977 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18978 (w32con_clear_frame, w32con_clear_end_of_line)
18979 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18980 (w32con_delete_glyphs, w32con_set_terminal_window)
18981 (scroll_line, w32_sys_ring_bell): Add frame arg.
18982 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
18983 Add terminal arg.
18984 (PICK_FRAME): Remove.
18985 (w32con_write_glyphs): Use frame specific terminal coding.
18986 (one_and_only_w32cons): New global variable.
18987 (initialize_w32_display): Use it for storing hooks.
18988 (create_w32cons_output): New function.
18989
18990 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
18991 arg a frame.
18992
18993 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
18994 Set window_system.
18995 (x_set_tool_bar_lines): Don't use updating_frame.
18996 (Fx_create_frame): Set terminal and ref count.
18997 (Fx_open_connection): Remove window-system check.
18998
18999 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19000
19001 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19002 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19003 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19004 Add frame arg.
19005 (x_delete_terminal, w32_create_terminal): New functions.
19006 (w32_term_init): Create a terminal.
19007 (w32_initialize): Move terminal specific initialization to
19008 w32_create_terminal.
19009
19010 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19011 (w32_clear_rect, w32_clear_area): Use background from frame.
19012 (w32_display_info): Add terminal.
19013 (w32_sys_ring_bell, x_delete_display): Declare here.
19014
19015 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19016
19017 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19018
190192007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19020
19021 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19022 Fix get_named_tty calls for the controlling tty.
19023
190242007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19025
19026 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19027
190282007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19029
19030 * term.c (tty_insert_glyphs): Add missing first parameter.
19031
190322007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19033
19034 * buffer.c (Fbuffer_list, Fbury_buffer):
19035 Take frame->buried_buffer_list into account.
19036
19037 * cm.c (current_tty): New variable, for cmputc().
19038 (cmputc): Use it.
19039 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19040 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19041 (cmgoto): Add tty parameter. Pass it on to calccost().
19042 Use emacs_tputs() instead of tputs().
19043
19044 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19045 tputs().
19046 (current_tty): New variable, for cmputc().
19047 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19048
19049 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19050 (internal_condition_case, internal_condition_case_1)
19051 (internal_condition_case_2): Don't abort when x_catching_errors.
19052
19053 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19054 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19055 prevent crashes caused by bogus longjmps in read_char.
19056
19057 * keymap.h (Fset_keymap_parent): Add EXFUN.
19058
19059 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19060 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19061 Remove redundant definition.
19062
19063 * macfns.c (x_set_mouse_color, x_make_gc):
19064 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19065
19066 * w32term.c (x_free_frame_resources):
19067 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19068 (w32_initialize): Use the accessor macros for terminal characteristics.
19069
19070 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19071 Use the accessor macros for terminal characteristics.
19072 * msdos.c (internal_terminal_init): Use the accessor macros for
19073 terminal characteristics.
19074 (ScreenVisualBell, internal_terminal_init):
19075 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19076
19077 * termopts.h (no_redraw_on_reenter): Declare.
19078
19079 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19080 (mark_terminals, mark_ttys): Declare.
19081 (Fgarbage_collect): Call them.
19082 (mark_object): Mark buried_buffer_list.
19083
19084 * prefix-args.c: Include stdlib.h for exit.
19085
19086 * syssignal.h: Add comment.
19087
19088 * indent.c: Include stdio.h.
19089
19090 * window.h (Vinitial_window_system): Declare.
19091 (Vwindow_system): Delete declaration.
19092
19093 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19094
19095 * image.c (lookup_image): Don't initialize `c' until the xasserts
19096 have been run.
19097
19098 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19099 FRAME_FOREGROUND_PIXEL.
19100
19101 * print.c (print_preprocess): Don't lose print_depth levels while
19102 iterating.
19103
19104 * widget.c (update_from_various_frame_slots):
19105 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19106
19107 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19108 frames.
19109 (window_internal_height): Remove bogus make_number call.
19110 (init_window_once): Call make_terminal_frame with two zero parameters.
19111
19112 * fileio.c (Fread_file_name): Update comment.
19113
19114 * callint.c (Fcall_interactively):
19115 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19116 Make sure it is correctly unwound.
19117
19118 * xsmfns.c (x_session_close): New function.
19119
19120 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19121 Delete declarations.
19122
19123 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19124 (x_output): Remove background_pixel and foreground_pixel fields.
19125 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19126 (x_delete_device, x_session_close): Declare.
19127
19128 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19129 (read_filtered_event): Call `read_char' with a local
19130 `wrong_kboard_jmpbuf'.
19131
19132 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19133 Don't call single_kboard_state. Use FRAME_RIF.
19134
19135 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19136 systems.
19137
19138 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19139 (Fframe_with_environment, Fset_input_meta_mode)
19140 (Fset_quit_char): EXFUN.
19141 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19142 (init_sys_modes, reset_sys_modes): Update prototypes.
19143 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19144
19145 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19146 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19147 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19148 Delete declarations.
19149 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19150 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19151 New declarations.
19152
19153 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19154 already does that during init_display(). Call syms_of_keymap
19155 before syms_of_keyboard. Call `syms_of_terminal'.
19156 Call set_initial_environment, not set_process_environment.
19157 (shut_down_emacs): Call reset_all_sys_modes() instead of
19158 reset_sys_modes().
19159
19160 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19161 (internal_resolve_face_name, resolve_face_name_error): New functions.
19162 (resolve_face_name): Protect against loops and errors thrown by Fget.
19163 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19164 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19165
19166 * scroll.c: Replace CURTTY() with local variables throughout the
19167 file (where applicable).
19168 (calculate_scrolling, calculate_direct_scrolling)
19169 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19170 characteristics.
19171
19172 * keymap.c (Vfunction_key_map): Remove.
19173 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19174 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19175 (Vkey_translation_map): Remove.
19176 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19177 (Fdescribe_buffer_bindings)
19178 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19179 Update for terminal-local key-translation-map.
19180
19181 * Makefile.in (callproc.o): Update dependencies.
19182 (lisp, shortlisp): Add termdev.elc.
19183 (obj): Add terminal.o.
19184 (terminal.o): Add dependencies.
19185 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19186 (data.o, fns.o): Add termhooks.h dependency.
19187 (SOME_MACHINE_LISP): Add dnd.elc.
19188 (minibuf.o): Fix typo.
19189 Update dependencies.
19190
19191 * data.c (do_symval_forwarding, store_symval_forwarding)
19192 (find_symbol_value): Use the selected frame's keyboard, not
19193 current_kboard.
19194
19195 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19196 Vwindow_system.
19197
19198 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19199 Fmenu_bar_open.
19200 (syms_of_xmenu): Update defsubr.
19201 (mouse_position_for_popup, Fx_popup_menu)
19202 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19203 (set_frame_menubar, free_frame_menubar)
b97439ce 19204 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19205 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19206 an X frame.
19207
19208 * xselect.c (x_own_selection): Abort if not an X frame.
19209 (some_frame_on_display): Check if it is an X frame.
19210 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19211
19212 * coding.c: Include frame.h and termhooks.h.
19213 (terminal_coding, keyboard_coding): Delete.
19214 (Fset_terminal_coding_system_internal)
19215 (Fset_keyboard_coding_system_internal)
19216 (Fkeyboard_coding_system)
19217 (Fterminal_coding_system): Add a terminal parameter.
19218 Get terminal_coding from the terminal.
19219 (init_coding_once): Don't call setup_coding_system here.
19220
19221 * dispextern.h (set_scroll_region, turn_off_insert)
19222 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19223 (tty_clear_end_of_line, tty_setup_colors)
19224 (delete_tty, updating_frame)
19225 (produce_special_glyphs, produce_glyphs, write_glyphs)
19226 (insert_glyphs): Remove.
19227 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19228 (tty_turn_off_highlight, get_tty_size): Add declaration.
19229 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19230
19231 * frame.h (enum output_method): Add output_initial.
19232 (struct x_output): Delete.
19233 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19234 Access foreground_pixel and background_pixel directly from the frame.
19235 (tty_display): Delete.
19236 (struct frame): Add buried_buffer_list, foreground_pixel,
19237 background_pixel and terminal. Delete kboard.
19238 (union output_data): Add tty.
19239 (FRAME_KBOARD): Get the kboard from the terminal.
19240 (FRAME_INITIAL_P): New macro.
19241 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19242 (Qterm_environment_variable, Qdisplay_environment_variable)
19243 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19244 New declarations.
19245
19246 * termchar.h (tty_output, tty_display_info): New structures.
19247 (tty_list): Declare.
19248 (FRAME_TTY, CURTTY): New macros.
19249 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19250 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19251 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19252 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19253
19254 * callproc.c: Include frame.h and termhooks.h, for terminal
19255 parameters.
19256 (add_env): New function.
19257 (child_setup): Use it.
19258 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19259 (getenv_internal): Fix get_terminal_param call.
19260 (Fgetenv_internal, egetenv): Update doc.
19261 (syms_of_callproc): Initialize Vprocess_environment to nil.
19262 Register and initialize them. Remove obsolete defvars. Update doc
19263 strings.
19264 (child_setup): Handle Vlocal_environment_variables.
19265 (getenv_internal): Add terminal parameter.
19266 Handle Vlocal_environment_variables.
19267 (Fgetenv_internal): Add terminal parameter.
19268 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19269 environment in a frame (not terminal) parameter. Update doc strings.
19270 (set_initial_environment): Rename from set_global_environment.
19271 Store Emacs environment in initial frame parameter.
19272
19273 * xdisp.c (redisplay_internal): Update references to
19274 `previous_terminal_frame'.
19275 (display_mode_line, Fformat_mode_line): Replace calls to
19276 `push_frame_kboard' with `push_kboard'.
19277 (get_glyph_string_clip_rects): Add extra parentheses and
19278 braces to prevent compiler warnings.
19279 (calc_pixel_width_or_height): Add xassert to check that the
19280 frame is alive. Don't call `lookup_image' on a termcap frame.
19281 (message2_nolog, message3_nolog, redisplay_internal)
19282 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19283 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19284 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19285 (Fx_display_pixel_width, Fx_display_pixel_height)
19286 (Fx_display_planes, Fx_display_color_cells)
19287 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19288 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19289 (Fx_display_backing_store, Fx_display_visual_class)
19290 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19291 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19292
19293 * xfns.c (x_set_foreground_color x_set_background_color)
19294 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19295 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19296 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19297 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19298 terminal that is being deleted.
19299 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19300 frame parameter, and make sure it overrides any user-supplied setting.
19301 (Fx_close_connection, Fx_synchronize): Unify argument names with
19302 the rest of the DEFUNs.
19303
19304 * dispnew.c (Fsend_string_to_terminal): Update call to
19305 `get_tty_terminal'.
19306 (Fredraw_frame, Fsend_string_to_terminal)
19307 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19308 FRAME_TERMCAP_P and FRAME_TTY.
19309 (window_change_signal): Don't believe width/height values that are
19310 impossibly small.
19311 (Vinitial_window_system): Rename from Vwindow_system.
19312 (termscript, Wcm, rif): Delete.
19313
19314 * termhooks.h (struct terminal): New struct containing the
19315 previously global text display hooks and new members NAME,
19316 DELETED and PARAM_ALIST.
19317 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19318 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19319 (FRAME_RIF): New macros.
19320 (get_terminal_param, get_device): New declarations.
19321 (termscript): Delete declaration.
19322
19323 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19324 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19325 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19326 FRAME_FOREGROUND_PIXEL.
19327 (x_fully_uncatch_errors): Disable definition.
19328 (x_scroll_bar_expose): Fix reference to foreground pixel.
19329 (XTread_socket): Disable loop on all X displays.
19330 (x_delete_terminal): Don't set terminal->deleted and let
19331 delete_terminal delete the frames on the terminal.
19332 (x_delete_display): Doc update to reflect changes in
19333 delete_terminal.
19334 (x_display_info) <terminal>: Move member earlier in the struct.
19335 (deleting_tty): Remove old variable.
19336 (Fsuspend_tty): Call clear_tty_hooks.
19337 (Fresume_tty, init_tty): Call set_tty_hooks.
19338 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19339 errors on X frames.
19340 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19341 (handle_one_xevent): Initialize `f' to NULL.
19342 (x_delete_terminal, x_create_terminal): New functions.
19343 (XTset_terminal_modes, XTreset_terminal_modes)
19344 (XTread_socket, x_connection_closed, x_term_init)
19345 (x_term_init, x_delete_display): Add terminal parameter.
19346 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19347 X connections.
19348
19349 * frame.c: Include termchar.h.
19350 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19351 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19352 (Qdisplay_environment_variable): New vars.
19353 (Fframep): Deal with output_initial.
19354 (Fframe-live-p): Doc fix.
19355 (Fwindow-system): New function.
19356 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19357 (make_terminal_frame): Don't create frames on a terminal that is
19358 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19359 (store_frame_param): Check for found_for_frame before calling XFRAME.
19360 (Fmake_terminal_frame): Handle NULL tty names correctly.
19361 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19362 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19363 frames to refer to a deleted frame in their 'environment parameter.
19364 (Fframe_with_environment): New function.
19365 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19366 (get_future_frame_param): New function.
19367 (Fmake_terminal_frame): Use it.
19368 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19369
19370 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19371 * sysdep.c (reset_sys_modes): Update for renames.
19372
19373 * keyboard.c (tty_read_avail_input): New function.
19374 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19375 (syms_of_keyboard): Defsubr them.
19376 (Fset_input_meta_mode, Fset_quit_char): New functions.
19377 (Fset_input_mode): Split to above functions.
19378 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19379 parameter. Use it in call to `read_char'.
19380 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19381 Set wrong_kboard_jmpbuf correctly in recursive calls.
19382 Use current_kboard to access Vkeyboard_translate_table.
19383 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19384 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19385 Update longjmp invocations. Remember the original current_kboard,
19386 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19387 changes it. Comment out unnecessary calls to
19388 `record_single_kboard_state' and `any_kboard_state'.
19389 Update recursive calls.
19390 (wrong_kboard_jmpbuf): Remove global variable.
19391 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19392 Handle deleted interrupted_kboards correctly; that is a legal
19393 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19394 and read_char calls. Abort if interrupted_kboard died in read_char.
19395 (any_kboard_state, single_kboard_state)
19396 (push_frame_kboard): Remove function.
19397 (pop_kboard): Switch out of single_kboard mode if the kboard has
19398 been deleted. Remove unused variable. Help debugging by not
19399 changing current_kboard unnecessarily. Set current_kboard to the
19400 kboard of the selected frame when the stored kboard object has
19401 been deleted before pop_kboard.
19402 (temporarily_switch_to_single_kboard): Change first parameter to a
19403 frame pointer. Throw an error when caller wants to change kboards
19404 while in single_kboard mode. Don't push_kboard if we weren't in
19405 single kboard state. Don't pop_kboard if we popped into any
19406 kboard state.
19407 (restore_kboard_configuration): Abort if pop_kboard changed the
19408 kboard in single_kboard mode. Call pop_kboard only after setting
19409 up single_kboard mode.
19410 (Frecursive_edit): Switch to single_kboard mode only in nested
19411 command loops.
19412 (cmd_error, command_loop, command_loop_1, timer_check):
19413 Comment out unnecessary call to `any_kboard_state' and
19414 `record_single_kboard_state'.
19415 (delete_kboard): Exit single_kboard mode if we have just deleted
19416 that kboard. Use FRAME_KBOARD.
19417 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19418 `fatal_error_signal'.
19419 (record_single_kboard_state): Don't push_kboard if we weren't in
19420 single kboard state. Don't pop_kboard if we popped into any
19421 kboard state.
19422 (push_frame_kboard): Rename to push_kboard.
19423 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19424 (read_avail_input): Read input from all terminals.
19425 (mark_kboards): Also mark Vkeyboard_translate_table.
19426 (kbd_buffer_store_event_hold): Simplify condition.
19427 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19428 (Vkeyboard_translate_table): Move to struct kboard.
19429 (init_kboard): Initialize Vkeyboard_translate_table.
19430 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19431 Vkeyboard_translate_table. Update doc strings. Update docs of
19432 local-function-key-map and function-key-map.
19433
19434 * terminal.c: New file.
19435
19436 * term.c: Include errno.h.
19437 (Vring_bell_function, device_list, initial_device)
19438 (next_device_id, ring_bell, update_begin, update_end)
19439 (set_terminal_window, cursor_to, raw_cursor_to)
19440 (clear_to_end, clear_frame, clear_end_of_line)
19441 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19442 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19443 (syms_of_term): Move their initialization to terminal.c.
19444 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19445 (Ftty_display_color_cells)
19446 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19447 (clear_tty_hooks, set_tty_hooks)
19448 (init_tty, maybe_fatal): New functions.
19449 (Ftty_type): Return nil if terminal is not on a tty instead of
19450 throwing an error. Doc update.
19451 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19452 Doc update. Initialize new subrs and variables.
19453 (delete_tty): Use terminal->deleted.
19454 (tty_set_terminal_modes): Rename from set_terminal_modes.
19455 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19456 (set_scroll_region): Rename to `tty_set_scroll_region'.
19457 (turn_on_insert): Rename to `tty_turn_on_insert'.
19458 (turn_off_insert): Rename to `tty_turn_off_insert'.
19459 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19460 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19461 (toggle_highligh): Rename to `tty_toggle_highlight'.
19462 (background_highlight): Rename to `tty_background_highlight'.
19463 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19464 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19465 (tty_set_scroll_region, tty_background_highlight)
19466 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19467 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19468 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19469 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19470 Add static modifier.
19471 (tty_reset_terminal_modes, tty_set_terminal_window)
19472 (tty_set_scroll_region, tty_background_highlight)
19473 (tty_highlight_if_desired, tty_cursor_to)
19474 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19475 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19476 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19477 renames.
19478
194792007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19480
19481 * keyboard.c: Qrtl is new.
19482 (parse_tool_bar_item): Handle :rtl keyword.
19483 (syms_of_keyboard): Intern :rtl keyword.
19484
19485 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19486
19487 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19488 so no Lisp code is executed.
19489 (file_for_image, find_rtl_image): New functions.
19490 (xg_get_image_for_pixmap): Use file_for_image.
19491 (update_frame_tool_bar): If direction is RTL, use RTL image if
19492 defined. Use Gtk stock images if defined.
19493
194942007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19495
19496 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19497 for nonexistent or zero-width glyph in composition glyph.
19498
194992007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19500
19501 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19502
19503 * xdisp.c (Finvisible_p): New function.
19504 (syms_of_xdisp): defsubr it.
19505
195062007-08-24 Juanma Barranquero <lekktu@gmail.com>
19507
19508 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19509 Doc fixes.
19510
195112007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19512
19513 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19514
195152007-08-24 Martin Rudalics <rudalics@gmx.at>
19516
19517 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19518 whether decoding has modified buffer contents.
19519
195202007-08-24 Jason Rumney <jasonr@gnu.org>
19521
19522 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19523 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19524 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19525 (init_svg_functions) [HAVE_NTGUI]: New function.
19526 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19527 (svg_load_image): Use them.
19528 (svg_load_image) [HAVE_NTGUI]: Implement background.
19529
195302007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19531
19532 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19533 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19534 (LIBX): Remove @RSVG_LIBS@.
19535 (LIBES): Add $(RSVG_LIBS).
19536
19537 * image.c (svg_load_image): Blend with specified background if exists.
19538 Use IMAGE_BACKGROUND. Add Mac OS Support.
19539
19540 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19541 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19542 Remove macros.
19543 [MAC_OSX] (socket_callback): Do nothing.
19544 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19545 ReceiveNextEvent.
19546 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19547 socket_callback.
19548 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19549
195502007-08-22 Glenn Morris <rgm@gnu.org>
19551
19552 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19553
195542007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19555
19556 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19557
19558 * image.c: Add support for SVG images. Some additional comments
19559 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19560 (svg_image_p): New function to test for SVG image.
19561 (svg_load): New function to load SVG image.
19562 (svg_load_image): New function, helper for svg_load.
19563 (Qsvg): New Lisp_object.
19564 (svg_keyword_index): New enum.
19565 (svg_format): New static `image_keyword' struct.
19566 (svg_type): New static `image_type' struct.
19567 (librsvg/rsvg.h): Include it.
19568
195692007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19570
19571 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19572
195732007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19574
19575 * lread.c (Qold_style_backquotes): New var.
19576 (syms_of_lread): Init and staticpro it.
19577 (load_warn_old_style_backquotes): New fun.
19578 (Fload): Use them to warn about old style backquotes.
19579 (end_of_file_error, Fload): Remove unused vars.
19580
19581 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19582
19583 * lread.c (Vold_style_backquotes): New var.
19584 (syms_of_lread): Init and export it to Elisp.
19585 (read1): Set it when we find an old-style (back)quote.
19586
195872007-08-22 Jason Rumney <jasonr@gnu.org>
19588
19589 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19590
195912007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19592
19593 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19594
195952007-08-19 Richard Stallman <rms@gnu.org>
19596
19597 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19598
195992007-08-19 Andreas Schwab <schwab@suse.de>
19600
19601 * alloc.c (pure): Round PURESIZE up.
19602
196032007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19604
19605 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19606 active frame.
19607
196082007-08-16 Richard Stallman <rms@gnu.org>
19609
19610 * eval.c (Fcommandp): Add parens to clarify.
19611
19612 * minibuf.c (Fall_completions): Use enum for type of table.
19613
19614 * emacs.c (USAGE2): Improve text.
19615
196162007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19617
19618 * term.c (tty_default_color_capabilities): Declare static
19619 variables in file scope, to avoid HPUX compiler problem.
19620
196212007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19622
19623 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19624 to gtk_toolbar_insert.
19625
196262007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19627
19628 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19629
19630 * insdel.c (reset_var_on_error): New fun.
19631 (signal_before_change, signal_after_change):
19632 Use it to reset (after|before)-change-functions to nil in case of error.
19633 Bind inhibit-modification-hooks to t.
19634 Don't bind (after|before)-change-functions to nil while they run.
19635
196362007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19637
19638 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19639 filling pixmap with stippled background.
19640
196412007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19642
19643 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19644 Don't use invisible frame as parent window for repositioning.
19645
196462007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19647
19648 * print.c (new_backquote_output): Rename from old_backquote_output.
19649 (print): Inverse its logic (according to its name) so as to match the
19650 behavior of new_backquote_flag in lread.c.
19651
196522007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19653
19654 * gmalloc.c (posix_memalign): New function.
19655
19656 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19657 ActivateControl/DeactivateControl here.
19658 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19659 frame-notice-user-settings is non-nil.
19660 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19661 for kEventParamFMFontStyle.
19662 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19663 mac_pass_command_to_system and mac_pass_control_to_system here.
19664 (XTread_socket): Call ActivateControl/DeactivateControl here.
19665 (XTread_socket) [TARGET_API_MAC_CARBON]:
19666 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19667 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19668 for window repositioning.
19669
196702007-08-08 Glenn Morris <rgm@gnu.org>
19671
19672 * Replace `iff' in doc-strings and comments.
19673
196742007-08-07 Chong Yidong <cyd@stupidchicken.com>
19675
19676 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19677
196782007-08-07 Martin Rudalics <rudalics@gmx.at>
19679
19680 * fileio.c (Finsert_file_contents): Run format-decode and
19681 after_insert_file_functions on entire buffer when REPLACE is
19682 non-nil and inhibit modification_hooks and point_motion_hooks.
19683 For consistency, run after_insert_file_functions iff something
19684 got inserted. Move signal_after_change and update_compositions
19685 after code running after_insert_file_functions. Make sure that
19686 undo_list doesn't record intermediate steps of the decoding process.
19687
196882007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19689
19690 * emacs.c (main)
19691 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19692 Call malloc_enable_thread on interactive startup.
19693
19694 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19695 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19696 [USE_PTHREAD]: Conditionalize with it.
19697 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19698 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19699 New functions.
19700
197012007-08-06 Chong Yidong <cyd@stupidchicken.com>
19702
19703 * xdisp.c (redisplay_window): When restoring original buffer
19704 position, make sure it is still valid.
19705
19706 * image.c (png_load): Ignore png-supplied background color.
19707
197082007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19709
19710 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19711 Use kCFAbsoluteTimeIntervalSince1970.
19712
19713 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19714 New variable.
19715 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19716 event loop should be quit.
19717 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19718 Quit dialog event loop if quit_dialog_event_loop is set.
19719
19720 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19721 (Selection): New typedef. Use instead of ScrapRef.
19722 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19723 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19724 (mac_clear_selection): Rename from clear_scrap.
19725 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19726 scrap_has_target_type. All uses changed.
19727 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19728 (mac_selection_has_target_p): New functions.
19729 (mac_put_selection_value): Rename from put_scrap_string.
19730 (mac_get_selection_value): Rename from get_scrap_string.
19731 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19732 (put_scrap_private_timestamp, scrap_has_target_type)
19733 (get_scrap_private_timestamp): Remove functions.
19734 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19735 (x_own_selection, x_get_local_selection):
19736 Use mac_valid_selection_value_p.
19737 (x_own_selection): Don't use put_scrap_private_timestamp.
19738 Record OWNERSHIP-INFO into Vselection_alist instead.
19739 (x_get_local_selection): Don't check type if request is local.
19740 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19741 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19742
197432007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19744
19745 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19746 add comment explaining why.
19747
197482007-08-03 Richard Stallman <rms@gnu.org>
19749
19750 * fileio.c (Fvisited_file_modtime): Use make_time.
19751
197522007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19753
19754 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19755 build.
19756
197572007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19758
19759 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19760
197612007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19762
19763 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19764
197652007-07-30 Richard Stallman <rms@gnu.org>
19766
19767 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19768
197692007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19770
19771 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19772
197732007-07-28 Nick Roberts <nickrob@snap.net.nz>
19774
19775 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19776 remote default-directory.
19777
19778 * buffer.c (mode-line-format): Update doc string.
19779
197802007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19781
19782 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19783 scroll bar gap.
19784 (x_scroll_bar_create): Set bar->fringe_extended_p.
19785 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19786 on frame edge. Check fringe background extension. Don't clear
19787 extended fringe background area.
19788
19789 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19790 (w32_fill_area): Enclose multiple statements with do ... while (0).
19791
19792 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19793 Extend fringe background to scroll bar gap.
19794 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19795 Set bar->fringe_extended_p.
19796 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19797 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19798 background extension. Don't clear extended fringe background area.
19799
19800 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19801 New member fringe_extended_p.
19802
198032007-07-25 Glenn Morris <rgm@gnu.org>
19804
19805 * Relicense all FSF files to GPLv3 or later.
19806
19807 * COPYING: Switch to GPLv3.
19808
198092007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19810
19811 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19812
19813 * data.c (Finteractive_form): Check for the presence of an
19814 `interactive-form' symbol property more thoroughly.
19815
19816 * data.c (Finteractive_form): Use an `interactive-form' property if
19817 present, analogous to the function-documentation property.
19818
198192007-07-24 Jason Rumney <jasonr@gnu.org>
19820
19821 * w32fns.c (x_real_positions): Get real position from OS instead of
19822 calculating it.
19823
198242007-07-23 Jason Rumney <jasonr@gnu.org>
19825
19826 * filelock.c (current_lock_owner): Allow for @ sign in username.
19827
198282007-07-22 Nick Roberts <nickrob@snap.net.nz>
19829
19830 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19831 remote default-directory.
19832
19833 * buffer.c (mode-line-format): Describe above case in doc string.
19834
198352007-07-20 Eli Zaretskii <eliz@gnu.org>
19836
19837 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19838 Define if not defined.
19839
198402007-07-18 Jason Rumney <jasonr@gnu.org>
19841
19842 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19843
198442007-07-18 Richard Stallman <rms@gnu.org>
19845
19846 * data.c (Fsetq_default): Doc fix.
19847
19848 * eval.c (Fsetq): Doc fix.
19849
198502007-07-18 Juanma Barranquero <lekktu@gmail.com>
19851
19852 * coding.c (Ffind_operation_coding_system):
19853 * eval.c (For, Fand): Doc fixes.
19854 Reported by Johan Bockgård.
19855
198562007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19857
19858 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19859
19860 * xterm.h: Declare x_ewmh_activate_frame.
19861
19862 * xterm.c (x_ewmh_activate_frame): New function.
19863 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19864
198652007-07-17 Martin Rudalics <rudalics@gmx.at>
19866
19867 * window.c (Fdisplay_buffer): If largest or LRU window is the
19868 only window, split it even if it is not eligible for splitting.
19869 This restores the original behavior broken by the 2007-07-15
19870 change.
19871
198722007-07-17 Glenn Morris <rgm@gnu.org>
19873
19874 * abbrev.c (abbrev_check_chars): New function.
19875 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19876 Call abbrev_check_chars to check abbrev characters are word
19877 constituents. Doc fix.
19878
198792007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19880
19881 * process.c (Fstart_process, Fmake_network_process)
19882 (read_process_output): Fix up last changes.
19883
198842007-07-16 Eli Zaretskii <eliz@gnu.org>
19885
19886 * makefile.w32-in (clean): Don't delete *~.
19887
198882007-07-16 Andreas Schwab <schwab@suse.de>
19889
19890 * window.c (Fdisplay_buffer): Use NILP.
19891 (Fset_window_scroll_bars): Likewise.
19892
198932007-07-15 Martin Rudalics <rudalics@gmx.at>
19894
19895 * window.c (window_min_size_2): New function.
19896 (window_min_size_1, size_window, Fdisplay_buffer)
19897 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19898 windows without mode- or header-lines when window-min-height is
19899 too small.
19900 (size_window): Reset nodelete_p after testing it, following an
19901 earlier note by Kim F. Storm.
19902 (display_buffer): Do not set split_height_threshold to twice the
19903 value of window_min_height to avoid changing the value of a
19904 customizable variable. Rather explicitly check whether the
19905 height of the window that shall be splitted is at least as large
19906 as split_height_threshold.
19907 (Fwindow_full_width_p): New defun.
19908 (syms_of_window): Defsubr it.
19909
19910 * window.h: Add EXFUN for Fwindow_full_width_p.
19911
199122007-07-14 Jason Rumney <jasonr@gnu.org>
19913
19914 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19915
199162007-07-14 Richard Stallman <rms@gnu.org>
19917
19918 * eval.c (maybe_call_debugger): New function.
19919 (find_handler_clause): Use maybe_call_debugger.
19920 Call it when the handler says `debug'.
19921 Eliminate DEBUGGER_VALUE_PTR.
19922 (Fsignal): Eliminate debugger_value.
19923 (Qdebug): New variable.
19924 (syms_of_eval): Initialize it.
19925
199262007-07-14 Juanma Barranquero <lekktu@gmail.com>
19927
19928 * eval.c (Fprogn):
19929 * keyboard.c (Ftrack_mouse):
19930 * print.c (Fwith_output_to_temp_buffer):
19931 * window.c (Fsave_window_excursion): Doc fix.
19932
199332007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19934
19935 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19936
199372007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19938
19939 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19940 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19941 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19942 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19943 Remove unused encoding_carryover.
19944 * process.c: Adjust all functions accordingly.
19945
199462007-07-12 Richard Stallman <rms@gnu.org>
19947
19948 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19949
199502007-07-11 Jason Rumney <jasonr@gnu.org>
19951
19952 * makefile.w32-in (LIBS): Include OLE32.
19953
19954 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19955 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19956
199572007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
19958
19959 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19960 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19961 from a Lisp_Object into a bare pointer.
19962 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19963 Adjust the code correspondingly.
19964
19965 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19966
19967 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19968 (term_show_mouse_face): Remove unused var `j'.
19969 (handle_one_term_event): Remove unused vars `i' and `j'.
19970 Don't cast return value of ttyname since it's not necessary.
19971
199722007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
19973
19974 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19975 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19976
19977 * fns.c (map_char_table): Use an array of int for `indices' rather than
19978 an array of Lisp_Objects (which are only ever integers anyway).
19979 (Fmap_char_table): Update caller.
19980 * lisp.h: Update prototype.
19981 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
19982 * fontset.c (Ffontset_info):
19983 * casetab.c (set_case_table): Update callers.
19984
19985 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
19986
19987 * keymap.c (struct accessible_keymaps_data)
19988 (struct where_is_internal_data): New structures.
19989 (accessible_keymaps_1, where_is_internal_1): Use them to change
19990 interface to adhere to the one used by map_keymap.
19991 (Faccessible_keymaps, where_is_internal): Use map_keymap.
19992 (accessible_keymaps_char_table, where_is_internal_2): Remove.
19993
19994 * keymap.h (map_keymap_function_t): More informative prototype.
19995
199962007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
19997
19998 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
19999 (looking_at_1): Don't change search_regs and last_thing_searched
20000 if `inhibit-changing-match-data' is non-nil.
20001 (string_match_1, search_buffer, set_search_regs): Likewise.
20002 (syms_of_search): Add Lisp level definition for
20003 `inhibit-changing-match-data' and set it to nil.
20004 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20005 start and end of the match, instead of using values in search_regs.
20006
200072007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20008
20009 * minibuf.c (Fcompleting_read): New value `confirm-only'
20010 for `require-match'.
20011
200122007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20013
20014 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20015 part of the 2007-06-27 change to syms_of_fileio.
20016
200172007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20018
20019 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20020 Check WINDOWP before using XWINDOW. Consolidate return statements.
20021
200222007-06-27 Richard Stallman <rms@gnu.org>
20023
20024 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20025
200262007-06-27 Juanma Barranquero <lekktu@gmail.com>
20027
20028 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20029
200302007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20031
20032 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20033 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20034 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20035 (_free_internal, memalign): Use them.
20036 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20037 Initialize to PTHREAD_MUTEX_INITIALIZER.
20038 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20039 (morecore_nolock): Rename from morecore. All uses changed.
20040 Use only nolock versions of internal allocation functions.
20041 (_malloc_internal_nolock, _realloc_internal_nolock)
20042 (_free_internal_nolock): New functions created from
20043 _malloc_internal, _realloc_internal, and _free_internal.
20044 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20045 Copy hook value to automatic variable before its use.
20046 (memalign): Copy hook value to automatic variable before its use.
20047
200482007-06-26 Kenichi Handa <handa@m17n.org>
20049
20050 * coding.c (Ffind_operation_coding_system): Docstring improved.
20051 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20052
200532007-06-25 David Kastrup <dak@gnu.org>
20054
20055 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20056 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20057 cater for additional parameter.
20058
20059 * keymap.h: Adjust number of parameters to `current-active-maps'.
20060
20061 * doc.c (Fsubstitute_command_keys): Adjust call of
20062 `current-active-maps'.
20063
200642007-06-25 David Kastrup <dak@gnu.org>
20065
20066 * callint.c (Fcall_interactively): Make the parsing of interactive
20067 specs somewhat more readable.
20068
200692007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20070
20071 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20072 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20073 if extended background has already been filled.
20074
200752007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20076
20077 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20078 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20079
20080 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20081 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20082 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20083 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20084 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20085 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20086 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20087 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20088 Run timers during dialog popup.
20089 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20090
200912007-06-21 Jason Rumney <jasonr@gnu.org>
20092
20093 * image.c (convert_mono_to_color_image): Swap fore and background.
20094
200952007-06-20 Jason Rumney <jasonr@gnu.org>
20096
20097 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20098 (w32_free_bdf_font): Unmap memory not handle.
20099
201002007-06-20 Sam Steingold <sds@gnu.org>
20101
20102 * gmalloc.c (__morecore): Fix the declaration to comply with the
20103 definition.
20104
201052007-06-20 Juanma Barranquero <lekktu@gmail.com>
20106
20107 * w32term.c (w32_delete_display): Remove leftover declaration.
20108 (w32_define_cursor, w32_initialize): Make static.
20109
20110 * w32.c (_wsa_errlist): Fix typo in error message.
20111 (init_environment): Ignore any environment variable from the
20112 registry having a null value.
20113
201142007-06-20 Glenn Morris <rgm@gnu.org>
20115
20116 * Makefile.in (LIBGIF): Default to -lgif.
20117
201182007-06-17 Jason Rumney <jasonr@gnu.org>
20119
20120 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20121 unicode strings.
20122
201232007-06-16 Juanma Barranquero <lekktu@gmail.com>
20124
20125 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20126 Fix typo in docstring.
20127
201282007-06-16 Eli Zaretskii <eliz@gnu.org>
20129
20130 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20131 and their keybindings.
20132
201332007-06-15 Chong Yidong <cyd@stupidchicken.com>
20134
20135 * composite.c (update_compositions): Fix last fix.
20136
201372007-06-14 Jason Rumney <jasonr@gnu.org>
20138
20139 * w32.c (get_process_times_fn): New function pointer.
20140 (globals_of_w32): Intialize it if present in kernel32.dll.
20141 (w32_get_internal_run_time): New function.
20142
20143 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20144
201452007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20146
20147 * composite.c (update_compositions): Check the validness of
20148 compositions.
20149
201502007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20151
20152 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20153 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20154
20155 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20156 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20157
20158 * macgui.h (USE_MAC_TOOLBAR): New define.
20159
20160 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20161 Return immediately unless popup is activated.
20162
20163 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20164 background to scroll bar gap.
20165 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20166 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20167 scroll bars on frame edge. Check fringe background extension.
20168 Don't clear extended fringe background area.
20169 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20170 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20171 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20172 [USE_MAC_TOOLBAR]: New macros.
20173 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20174 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20175 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20176 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20177 [USE_MAC_TOOLBAR]: New functions.
20178 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20179 manually if previous repositioning has failed.
20180 (mac_handle_keyboard_event): Use precomputed event kind.
20181 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20182 as tool bar item click. Handle mouse movement over tool bar items.
20183
20184 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20185 toolbar_win_gravity.
20186 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20187 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20188 Add externs.
20189
20190 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20191 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20192
201932007-06-14 Chong Yidong <cyd@stupidchicken.com>
20194
20195 * image.c (search_image_cache): Remove unused variable.
20196
201972007-06-13 Chong Yidong <cyd@stupidchicken.com>
20198
20199 * xfns.c, xmenu.c: Link to xaw3d if available.
20200
202012007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20202
20203 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20204 frame_foreground and frame_background.
20205
20206 * image.c (lookup_image): Save frame foreground and background colors.
20207 (search_image_cache): Check if saved and current frame colors match.
20208
202092007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20210
20211 * regex.c (regex_compile): Remove the `regnum' counter.
20212 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20213
202142007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20215
20216 * term.c: Include intervals.h to declare Fget_text_property.
20217
202182007-06-10 Jason Rumney <jasonr@gnu.org>
20219
20220 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20221
202222007-06-08 Juanma Barranquero <lekktu@gmail.com>
20223
20224 * callint.c (Fcall_interactively):
20225 * editfns.c (Fdelete_and_extract_region):
20226 * fileio.c (Fread_file_name):
20227 * fns.c (Fmapconcat):
20228 * keyboard.c (cmd_error_internal):
20229 * keymap.c (Fkey_description):
20230 * lread.c (openp):
20231 * minibuf.c (read_minibuf):
20232 * search.c (wordify):
20233 * sunfns.c (sel_read):
20234 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20235 * xfns.c (x_default_scroll_bar_color_parameter):
20236 * xmenu.c (menu_help_callback):
20237 * xselect.c (Fx_get_atom_name):
20238 * xterm.c (x_term_init): Use empty_unibyte_string.
20239
202402007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20241
20242 * alloc.c (init_strings): Initialize canonical empty strings.
20243 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20244 canonical empty string when the requested size is 0.
20245
20246 * emacs.c (empty_unibyte_string): Rename from empty_string.
20247 (empty_multibyte_string): New canonical empty string.
20248 (syms_of_emacs): Don't initialize empty_string.
20249
20250 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20251 string, if appropriate.
20252 (empty_unibyte_string, empty_multibyte_string): New externs.
20253 (empty_string): Remove extern.
20254
20255 * lread.c (syms_of_lread): Use empty_unibyte_string.
20256
202572007-06-07 Jason Rumney <jasonr@gnu.org>
20258
20259 * s/ms-w32.h: Don't define HAVE_TZNAME.
20260
20261 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20262
202632007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20264
20265 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20266
20267 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20268 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20269
20270 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20271 Don't call next handler.
20272 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20273 Remove argument. Install handler to application.
20274 (set_frame_menubar): Don't change deep_p.
20275 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20276 FRAME_OUTER_TO_INNER_DIFF_Y.
20277 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20278 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20279 [HAVE_DIALOGS]: New macros.
20280 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20281 Use them.
20282 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20283
20284 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20285 init_service_handler. All callers changed. Return OSStatus value.
20286
20287 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20288 All callers changed so as not to call SetPortWindowPort.
20289 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20290 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20291 mac_draw_string_common.
20292 (mac_draw_image_string_qd): Likewise.
20293 (mac_draw_string_common): Use them. Add INLINE.
20294 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20295 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20296 GetGlobalMouse.
20297 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20298 and FRAME_OUTER_TO_INNER_DIFF_Y.
20299 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20300 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20301 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20302 repositioning window to mac_handle_window_event.
20303 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20304 saving window location to mac_handle_window_event
20305 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20306 (install_menu_target_item_handler): Remove argument in extern.
20307 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20308 Also accept command events.
20309 (do_keystroke): New function created from XTread_socket.
20310 (init_command_handler): Remove functions.
20311 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20312 and save window location by kEventWindowShowing and kEventWindowHiding
20313 handlers here. Don't call next handler for window state change and
20314 focus events.
20315 (mac_handle_application_event, mac_handle_keyboard_event)
20316 [TARGET_API_MAC_CARBON]: New functions.
20317 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20318 kEventWindowShowing and kEventWindowHiding events. Move installation
20319 of mouse, font, text input and menu target item handlers to
20320 install_application_handler.
20321 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20322 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20323 New function.
20324 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20325 Register it.
20326 (XTread_socket) [TARGET_API_MAC_CARBON]:
20327 Consolidate SendEventToEventTarget calls.
20328 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20329 Move application activation handler to mac_handle_application_event.
20330 Move keyboard handler to mac_handle_keyboard_event.
20331 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20332 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20333 init_command_handler. Call install_application_handler.
20334
20335 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20336 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20337
203382007-06-07 Glenn Morris <rgm@gnu.org>
20339
20340 * emacs.c (main): Use `emacs-copyright' in --version output.
20341
203422007-06-06 Chong Yidong <cyd@stupidchicken.com>
20343
20344 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20345
203462007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20347
20348 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20349
20350 * macgui.h: Replace WindowPtr with WindowRef.
20351
20352 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20353 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20354 Replace ControlHandle with ControlRef.
20355 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20356
20357 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20358 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20359 Replace ControlHandle with ControlRef.
20360 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20361 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20362
20363 * macterm.h (struct scroll_bar): Rename member control_handle_low
20364 and control_handle_high to control_ref_low and control_ref_high.
20365 All uses changed.
20366 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20367 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20368 respectively. All uses changed.
20369 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20370 (install_window_handler, remove_window_handler): Replace WindowPtr
20371 with WindowRef in externs.
20372
203732007-06-05 Juanma Barranquero <lekktu@gmail.com>
20374
20375 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20376
203772007-06-03 Nick Roberts <nickrob@snap.net.nz>
20378
20379 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20380
20381 * frame.c (Fmouse_position, Fmouse_pixel_position):
20382 Condition on HAVE_GPM too.
20383
20384 * term.c (term_mouse_highlight): Remove unused variables.
20385 (Fterm_open_connection): Set gpm_zerobased to 1.
20386 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20387 Use zero based co-ordinates.
20388 (handle_one_term_event): Report a drag as mouse movement too.
20389
20390 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20391
203922007-06-03 Chong Yidong <cyd@stupidchicken.com>
20393
20394 * image.c (search_image_cache): New function. Require background
20395 color match if background color is unspecified in the image spec.
20396 (uncache_image, lookup_image): Use it.
20397
203982007-06-01 Juanma Barranquero <lekktu@gmail.com>
20399
20400 * window.c (Fshrink_window): Reflow docstring.
20401
204022007-06-02 Chong Yidong <cyd@stupidchicken.com>
20403
20404 * Version 22.1 released.
20405
204062007-06-01 Richard Stallman <rms@gnu.org>
20407
20408 * xfns.c (x_encode_text): Add GCPRO.
20409
204102007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20411
20412 * xfns.c (x_set_name_internal): Save encoded name before
20413 x_encode_text in case string data is relocated.
20414
204152007-05-31 Richard Stallman <rms@gnu.org>
20416
20417 * buffer.c (syms_of_buffer): Doc fix.
20418
204192007-05-30 Nick Roberts <nickrob@snap.net.nz>
20420
20421 * sysdep.c (init_sys_modes): Add rather than replace with
20422 O_NONBLOCK.
20423
20424 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20425 term_mouse_moveto.
20426
20427 * termhooks.h (term_mouse_moveto): New extern.
20428
20429 * term.c (mouse_face_window): Rename...
20430 (Qmouse_face_window): ...to this.
20431 (term_show_mouse_face, term_clear_mouse_face)
20432 (term_mouse_highlight): Use Qmouse_face_window.
20433 (term_mouse_moveto): New function.
20434 (term_mouse_position): Make it work.
20435 (syms_of_term): Uncomment assignment to mouse_position_hook.
20436 Staticpro Qmouse_face_window.
20437
204382007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20439
20440 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20441 around current_column call.
20442
204432007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20444
20445 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20446 * xdisp.c (next_element_from_buffer):
20447 * window.c (delete_window):
20448 * term.c (term_mouse_highlight):
20449 * msdos.c (getdefdir):
20450 * macterm.c (mac_create_bitmap_from_bitmap_data)
20451 (init_font_name_table):
20452 * fns.c (Fsxhash):
20453 * data.c (Fmake_local_variable):
20454 * ccl.c (ccl_driver): Likewise.
20455
204562007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20457
20458 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20459 Call mac_wakeup_from_rne on window size change.
20460
204612007-05-25 Chong Yidong <cyd@stupidchicken.com>
20462
20463 * image.c (uncache_image): Fix typo.
20464
204652007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20466
20467 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20468
204692007-05-22 Richard Stallman <rms@gnu.org>
20470
20471 * xterm.c (x_connection_closed): Remove NO_RETURN.
20472
204732007-05-22 Martin Rudalics <rudalics@gmx.at>
20474
20475 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20476
204772007-05-21 Chong Yidong <cyd@stupidchicken.com>
20478
20479 * image.c (uncache_image): New function.
20480 (Fimage_refresh): New function.
20481
204822007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20483
20484 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20485
204862007-05-20 Nick Roberts <nickrob@snap.net.nz>
20487
20488 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20489 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20490
204912007-05-20 Nick Roberts <nickrob@snap.net.nz>
20492
20493 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20494 conditional on [HAVE_GPM_H].
20495
204962007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20497
20498 * syntax.c (skip_chars): Update syntax-table only after we checked that
20499 the new location is valid.
20500
205012007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20502
20503 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20504 mac_get_window_bounds.
20505
205062007-05-20 Nick Roberts <nickrob@snap.net.nz>
20507
20508 * Makefile.in (LIBGPM): Allow it to be set from configure.
20509 If set then link Emacs with it.
20510
20511 * config.in: Regenerate.
20512
20513 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20514 New externs.
20515
20516 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20517 Include gpm.h.
20518 (handle_one_term_event, term_gpm): New externs.
20519
20520 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20521 and allow it to be interrupted by SIGIO.
20522
20523 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20524 (wait_reading_process_output): Wait on gpm_fd too.
20525 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20526 (add_gpm_wait_descriptor_called_flag): New variable.
20527 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20528
20529 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20530 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20531 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20532 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20533 (make_lispy_event): Add case GPM_CLICK_EVENT.
20534 (read_avail_input): Handle mouse input.
20535
20536 * term.c (write_glyphs_with_face): New function.
20537 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20538 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20539 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20540 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20541 (last_mouse_x, last_mouse_y): New variables.
20542 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20543 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20544 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20545 (Fterm_close_connection): New functions.
20546 (term_init): Initialise mouse_face_window.
20547
205482007-05-19 Chong Yidong <cyd@stupidchicken.com>
20549
20550 * xdisp.c (redisplay_window): If first window line is a
20551 continuation line, recompute the new window start instead of
20552 recentering.
20553
205542007-05-18 Glenn Morris <rgm@gnu.org>
20555
20556 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20557 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20558
205592007-05-17 Glenn Morris <rgm@gnu.org>
20560
20561 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20562
205632007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20564
20565 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20566 dead key repeat and up events.
20567
205682007-05-14 Chong Yidong <cyd@stupidchicken.com>
20569
20570 * image.c (pbm_load): Check image size for monochrome pbm.
20571
205722007-05-13 Chong Yidong <cyd@stupidchicken.com>
20573
20574 * xterm.c (XTread_socket): Revert last change.
20575
205762007-05-12 Chong Yidong <cyd@stupidchicken.com>
20577
20578 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20579
20580 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20581
205822007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20583
20584 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20585 mixup (YAILOM).
20586
205872007-05-07 Andreas Schwab <schwab@suse.de>
20588
20589 * keymap.c (Flookup_key): Fix typo in last change.
20590
205912007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20592
20593 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20594 mapping for unibyte strings.
20595
205962007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20597
20598 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20599 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20600
206012007-04-29 Richard Stallman <rms@gnu.org>
20602
20603 * insdel.c (replace_range): For undo, record insertion first.
20604
206052007-04-29 Andreas Schwab <schwab@suse.de>
20606
20607 * lisp.h (VECSIZE): Use OFFSETOF.
20608
206092007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20610
20611 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20612 disabled lines.
20613
206142007-04-28 Richard Stallman <rms@gnu.org>
20615
20616 * lread.c (read_escape): In a string, \s is always space.
20617
206182007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20619
20620 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20621
20622 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20623 submenu for menu bar items.
20624
20625See ChangeLog.10 for earlier changes.
20626
20627;; Local Variables:
20628;; coding: utf-8
20629;; add-log-time-zone-rule: t
aac0c6e3
MR
20630;; End:
20631
76b6f707 20632 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20633
20634 This file is part of GNU Emacs.
20635
20636 GNU Emacs is free software: you can redistribute it and/or modify
20637 it under the terms of the GNU General Public License as published by
20638 the Free Software Foundation, either version 3 of the License, or
20639 (at your option) any later version.
20640
20641 GNU Emacs is distributed in the hope that it will be useful,
20642 but WITHOUT ANY WARRANTY; without even the implied warranty of
20643 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20644 GNU General Public License for more details.
20645
20646 You should have received a copy of the GNU General Public License
20647 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20648
20649;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40