(minibuffer-default-add-completions): Drop deprecated 4th arg.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8a605fe8
KH
12009-11-13 Kenichi Handa <handa@m17n.org>
2
3 * category.c (word_boundary_p): Adjusted for the change of the
4 semantics of Vword_combining_categories.
5 (Vword_combining_categories): Describe the slight change of the
6 semantics.
7
241c4680
EZ
82009-11-13 Eli Zaretskii <eliz@gnu.org>
9
10 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11
12 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
13
5d58e44c
SM
142009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
15
16 * xdisp.c (syms_of_xdisp): Fix typo in last change.
17
5e13f9d3
JB
182009-11-12 Juanma Barranquero <lekktu@gmail.com>
19
20 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
21
cf54c754
DR
222009-11-11 David Reitter <david.reitter@gmail.com>
23
24 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
25 variables to fix 2009-11-09 change.
26
a4ada374
DN
272009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
28
91433552
DN
29 * process.c (ifflag_def): Make flag_sym constant.
30 (Fnetwork_interface_info): Use a constant pointer.
31 (ifflag_table):
32 * xfns.c (cursor_bits):
33 * xdisp.c (power_letter):
34 * termcap.c (speeds, esctab):
35 * sysdep.c (baud_convert):
36 * keyboard.c (lispy_accent_codes, modifier_names):
37 * image.c (xbm_format, xpm_format, pbm_format, png_format)
38 (jpeg_format, tiff_format, gif_format, svg_format)
39 (interlace_start, interlace_increment, gs_format):
40 * gtkutil.c (separator_names):
41 * fringe.c (swap_nibble):
42 * fns.c (base64_value_to_char, base64_char_to_value):
43 * fileio.c (make_temp_name_tbl):
44 * coding.c (suffixes): Make constant.
45
f4265f6c
DN
46 * frame.c (make_initial_frame):
47 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
48 build_string.
49 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
50
04420943
DN
51 * s/freebsd.h:
52 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
53
0a5d24ae
DN
54 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
55 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
56
a4ada374
DN
57 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
58 * xterm.c (syms_of_xterm):
59 * xfaces.c (syms_of_xfaces):
60 * xdisp.c (syms_of_xdisp):
61 * lread.c (syms_of_lread):
62 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
63 build_string.
91433552 64
a4ada374
DN
65 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
66
af98fc7f
SM
672009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
68
69 * fns.c (Fplist_get): Merge the active and the uncommented code.
70
e90292a9
JD
712009-11-10 Jan Djärv <jan.h.d@swipnet.se>
72
73 * keyboard.h: Declare timer_check.
74
75 * keyboard.c (timer_check_2): New function that does what the old
76 timer_check did.
77 (timer_check): Call timer_check_2 until -1 or a non-zero time is
78 returned, i.e. don't return -1 with timers pending.
79
80 * process.c: Remove extern declaration of timer_check.
81
82 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
83 even if timer_check returned -1.
84
af98fc7f
SM
85 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
86 xg_dialog_data.
e90292a9
JD
87 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
88 the event loop.
89 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
90 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
91 Destroy the dialog after xg_dialog_run.
92
045b83c0
SM
932009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
94
95 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
96
1fb99a3a
JD
972009-11-10 Jan Djärv <jan.h.d@swipnet.se>
98
99 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
100
04e452cb
JB
1012009-11-09 Juanma Barranquero <lekktu@gmail.com>
102
103 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
104
ef7417fd
SM
1052009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
106
107 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
108 w32menu.c, and nsmenu.m.
109 Simplify the obsolete case where position is nil.
110 (cleanup_popup_menu): New function, moved from nsmenu.m.
111 (struct skp): Remove slot `notreal'.
112 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
113 adjust callers.
114 (single_menu_item): Adjust call to parse_menu_item.
115 (syms_of_menu): Defsubr x-popup-menu.
116 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
117 (keymap_panes): Don't export any more.
118 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
119 (xmenu_show): Declare.
120 * keyboard.c (parse_menu_item): Remove arg `notreal'.
121 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
122 * keyboard.h (parse_menu_item): Update declaration.
123 * xmenu.c (Fx_popup_menu): Remove.
124 (syms_of_xmenu): Don't defsubr x-popup-menu.
125 * w32menu.c (Fx_popup_menu): Remove.
126 (syms_of_w32menu): Don't defsubr x-popup-menu.
127 * nsmenu.m (cleanup_popup_menu): Remove.
128 (ns_menu_show): Rename from ns_popup_menu and remove all the code
129 moved to menu.c's Fx_popup_menu.
130 (Fx_popup_menu): Remove.
131 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
132 menu_items (it's done in menu.c already).
133
424d6179
SM
1342009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
135
136 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
137 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
138
c0df13a6 1392009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
140
141 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 142 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
143 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
144 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
145
2de9f71c
SM
1462009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
147
148 Let integers use up 2 tags to give them one extra bit and thus double
149 their range.
150 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
151 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
152 New macros.
153 (enum Lisp_Type): Use them. Give explicit values.
154 (Lisp_Type_Limit): Remove.
155 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
156 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
157 Pay attention to USE_2_TAGS_FOR_INTS.
158 (INTEGERP): Use LISP_INT_TAG_P.
159 * fns.c (internal_equal): Simplify the default case.
160 (sxhash): Use case_Lisp_Int.
161 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
162 any more.
163 (Ftype_of): Use case_Lisp_Int.
164 (store_symval_forwarding): Take into account the fact that Ints can
165 now have more than one tag.
166 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
167 buffer_slot_type_mismatch):
168 * xfaces.c (face_attr_equal_p):
169 * print.c (print_object):
170 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
171 Use case_Lisp_Int.
172
323637a2
EZ
1732009-11-06 Eli Zaretskii <eliz@gnu.org>
174
7ac65b38
EZ
175 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
176
323637a2
EZ
177 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
178 warning.
179
e511451f
JD
1802009-11-06 Jan Djärv <jan.h.d@swipnet.se>
181
182 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
183
184 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
185
186 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
187 ButtonPressRelease and MotionNotify (bug#4870).
188
5e2327cf
DN
1892009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
190
5adc433e
DN
191 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
192
d67b4f80
DN
193 * xterm.c (syms_of_xterm):
194 * xselect.c (syms_of_xselect):
195 * xmenu.c (syms_of_xmenu):
196 * xfns.c (syms_of_xfns):
197 * xfaces.c (syms_of_xfaces):
198 * xdisp.c (syms_of_xdisp):
199 * window.c (syms_of_window):
200 * w32fns.c (syms_of_w32fns):
201 * undo.c (syms_of_undo):
202 * textprop.c (syms_of_textprop):
203 * terminal.c (syms_of_terminal):
204 * syntax.c (syms_of_syntax):
205 * sound.c (syms_of_sound):
206 * search.c (syms_of_search):
207 * print.c (syms_of_print):
208 * minibuf.c (syms_of_minibuf):
209 * macros.c (syms_of_macros):
210 * keymap.c (syms_of_keymap, initial_define_key)
211 (initial_define_lispy_key):
212 * keyboard.c (syms_of_keyboard):
213 * insdel.c (syms_of_insdel):
214 * image.c (syms_of_image):
215 * fringe.c (syms_of_fringe):
216 * frame.c (syms_of_frame):
217 * fontset.c (syms_of_fontset):
218 * fns.c (syms_of_fns):
219 * fns.c (syms_of_fns):
220 * fileio.c (syms_of_fileio):
221 * fileio.c (syms_of_fileio):
222 * eval.c (syms_of_eval):
223 * doc.c (syms_of_doc):
224 * dispnew.c (syms_of_display):
225 * dired.c (syms_of_dired):
226 * dbusbind.c (syms_of_dbusbind):
227 * data.c (syms_of_data):
228 * composite.c (syms_of_composite):
229 * coding.c (syms_of_coding):
230 * cmds.c (syms_of_cmds):
231 * charset.c (define_charset_internal, syms_of_character):
232 * ccl.c (syms_of_ccl):
233 * category.c (syms_of_category, init_category_once):
234 * casetab.c (syms_of_casetab):
235 * casefiddle.c (syms_of_casefiddle):
236 * callint.c (syms_of_callint):
237 * bytecode.c (syms_of_bytecode):
238 * buffer.c (keys_of_buffer, syms_of_buffer):
239 * alloc.c (syms_of_alloc):
240 * process.c (syms_of_process, init_process):
241 * lread.c (syms_of_lread, init_obarray):
242 * font.c (build_style_table):
243 * emacs.c (syms_of_emacs, main): Replace calls to intern with
244 intern_c_string, calls to make_pure_string with
245 make_pure_c_string. Use pure_cons instead of Fcons.
246
5e2327cf
DN
247 * process.c (socket_options): Make it const.
248 (set_socket_option, init_process): Use a const pointer.
249
250 * lread.c (intern_c_string): New function.
251 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
252 (defvar_int): Uset it. Make the name const char*.
253
254 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
255 (defvar_int): Update prototypes.
256 (DEFUN, EXFUN): Support for prototypes is now required.
257 (intern_c_string): New prototype.
258 (struct Lisp_Subr): Make symbol_name constant.
259
260 * font.c (struct table_entry): Remove unused member. Make NAMES
261 constant.
262 (weight_table, slant_table, width_table): Make constant.
263
264 * emacs.c (struct standard_args): Make name and longname constant.
265
266 * character.h (DEFSYM): Use intern_c_string.
267
a56eaaef
DN
2682009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
269
270 * alloc.c (make_pure_c_string): New function.
271
272 * eval.c (Fautoload): Purecopy all arguments.
273
f6a07420
KH
2742009-11-05 Kenichi Handa <handa@m17n.org>
275
276 * fileio.c (Finsert_file_contents): Be sure set coding-system of
277 the buffer in case of replace.
278
5d28d4b1
DN
2792009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
280
281 * puresize.h (BASE_PURESIZE): Increase to 1620000.
282
b349d111
SM
2832009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
284
d528b1ce
SM
285 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
286 when applicable (bug#4851).
287
b349d111
SM
288 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
289 (P_): Support for prototypes is now required.
290
c38eb027
CY
2912009-10-31 Chong Yidong <cyd@stupidchicken.com>
292
293 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
294 (Bug#4827).
295
0405f8d9
EZ
2962009-10-30 Eli Zaretskii <eliz@gnu.org>
297
d528b1ce 298 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 299
ca0a881a
DN
3002009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
301
302 * puresize.h (BASE_PURESIZE): Increase to 1470000.
303
d528b1ce
SM
304 * lread.c (Fload): Purecopy the file name when building
305 Vpreloaded_file_list.
ca0a881a 306
47e0e0e4
JR
3072009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
308
309 * w32fns.c (syms_of_w32fns): Change default value of
310 w32-scroll-lock-modifier to nil. (Bug#2827)
311
057bce6f
JB
3122009-10-26 Juanma Barranquero <lekktu@gmail.com>
313
782a943e 314 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 315
242bc74c
AS
3162009-10-26 Andreas Schwab <schwab@redhat.com>
317
318 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
319
522d013a
JB
3202009-10-26 Juanma Barranquero <lekktu@gmail.com>
321
322 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
323 For delta < 0, skip check that only makes sense when the mini-window
324 is going to be enlarged. (Bug#4534)
325
18060980
CY
3262009-10-25 Chong Yidong <cyd@stupidchicken.com>
327
328 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
329 string in menu maps (Bug#4471).
330
fec8f0fe
CY
3312009-10-24 Chong Yidong <cyd@stupidchicken.com>
332
333 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
334 FRAME_NS_VIEW on terminal frames (Bug#4765).
335
10d66ec0
AS
3362009-10-24 Andreas Schwab <schwab@linux-m68k.org>
337
1cae01f7
AS
338 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
339 DBUS_TYPE_UINTnn separately to get proper sign extension.
340
58a12889
AS
341 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
342 can properly handle unsigned types.
d528b1ce 343 (make_uid, make_gid): Remove.
58a12889 344
987c9327
AS
345 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
346 types again.
347
522d013a 348 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
349 (system_process_attributes): Likewise.
350
905a9ed3
DN
3512009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
352
353 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
354
355 * eval.c (Fautoload): Purecopy the filename. Simplify.
356
357 * category.c (Fdefine_category): Purecopy docstring.
358
a599b3e8
AS
3592009-10-23 Andreas Schwab <schwab@linux-m68k.org>
360
7b792fc9
AS
361 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
362
a599b3e8
AS
363 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
364
b35ac83e
CY
3652009-10-23 Chong Yidong <cyd@stupidchicken.com>
366
367 * window.c (Fwindow_edges, Fwindow_pixel_edges)
368 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
369 (Bug#4775).
370
e8903e00
SM
3712009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
372
373 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
374 (init_fileio_once):
375 * lisp.h (init_fileio_once): Remove.
376 * emacs.c (main): Don't call init_fileio_once.
377
8f43cbf3
DN
3782009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
379
380 * puresize.h (BASE_PURESIZE): Increase to 1430000.
381
26898943
AS
3822009-10-21 Andreas Schwab <schwab@linux-m68k.org>
383
384 * doprnt.c (doprnt): Fix overflow check.
385
5c646d5a
JD
3862009-10-21 Jan Djärv <jan.h.d@swipnet.se>
387
3132a7ea
JD
388 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
389
5c646d5a
JD
390 * xterm.h (x_wait_for_event): Declare it.
391
392 * xterm.c (pending_event_wait): New variable.
393 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
394 see pending_event_wait.eventtype.
395 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
396 (x_new_font): Call change_frame_size with new rows/columns before we
397 try to resize the frame.
5c646d5a 398 (x_wait_for_event): New function.
d528b1ce
SM
399 (x_set_window_size_1): Don't change gravity unless change_gravity
400 is set.
5c646d5a
JD
401 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
402 don't change frame size, instead wait for the ConfigureNotify.
403 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
404 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
405 (x_initialize): Initialize pending_event_wait.
406
407 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
408 size.
409
410 * widget.c (EmacsFrameSetValues): Add comment.
411 (EmacsFrameSetCharSize): Just call x_set_window_size.
412
413 * gtkutil.c (xg_frame_set_char_size): Flush events and call
414 x_wait_for_event.
d528b1ce 415 (flush_and_sync): Remove again.
5c646d5a
JD
416 (xg_get_font_name): Suggest monospace if no previous font is known.
417
e9c1637d
SM
4182009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
419
420 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 421 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 422
5a72cccb
YM
4232009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
424
425 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
426 processing pending events when event is filtered for input method.
ab04798f 427 (Bug#3681)
5a72cccb 428
2629aa37
JB
4292009-10-20 Juanma Barranquero <lekktu@gmail.com>
430
431 * fns.c: Add #endif accidentally removed in previous change.
432
c3417a74
DN
4332009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
434
435 * fns.c: Remove code for unsupported system: MAC_OS.
436 * image.c: Likewise. Include setjmp.h.
437
9685cef2
JD
4382009-10-19 Jan Djärv <jan.h.d@swipnet.se>
439
440 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
441 pixel -1 (bug #4742).
442
d7306fe6
DN
4432009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
444
019d2c4c
DN
445 * process.c (create_pty): Remove conditionals for no longer
446 supported systems: UNIPLUS and RTU.
447
ee6bacd4
DN
448 * xterm.c:
449 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
450
d7306fe6
DN
451 * alloc.c: Do not define struct catchtag.
452 * eval.c: Move struct catchtag definition ...
453 * lisp.h: ... here.
454
455 * image.c: Move png.h #include earlier to avoid warnings.
456
457 * xterm.c:
458 * xsmfns.c:
459 * xselect.c:
460 * xrdb.c:
461 * xmenu.c:
462 * xftfont.c:
463 * xfont.c:
464 * xfns.c:
465 * xfaces.c:
466 * xdisp.c:
467 * window.c:
468 * widget.c:
469 * w32xfns.c:
470 * w32uniscribe.c:
471 * w32term.c:
472 * w32select.c:
473 * w32reg.c:
474 * w32proc.c:
475 * w32menu.c:
476 * w32inevt.c:
477 * w32heap.c:
478 * w32font.c:
479 * w32fns.c:
480 * w32console.c:
481 * w32.c:
482 * w16select.c:
483 * vm-limit.c:
484 * unexsol.c:
485 * unexec.c:
486 * unexcw.c:
487 * unexaix.c:
488 * undo.c:
489 * tparam.c:
490 * textprop.c:
491 * terminfo.c:
492 * terminal.c:
493 * termcap.c:
494 * term.c:
495 * syntax.c:
496 * sound.c:
497 * sheap.c:
498 * search.c:
499 * scroll.c:
500 * region-cache.c:
501 * regex.c:
502 * ralloc.c:
503 * process.c:
504 * print.c:
b024548b
DN
505 * nsterm.m:
506 * nsselect.m:
507 * nsmenu.m:
508 * nsimage.m:
509 * nsfont.m:
510 * nsfns.m:
d7306fe6
DN
511 * msdos.c:
512 * minibuf.c:
513 * menu.c:
514 * marker.c:
515 * macros.c:
516 * keymap.c:
517 * keyboard.c:
518 * intervals.c:
519 * insdel.c:
520 * indent.c:
521 * gtkutil.c:
522 * ftxfont.c:
523 * ftfont.c:
524 * fringe.c:
525 * frame.c:
526 * fontset.c:
527 * font.c:
528 * fns.c:
529 * floatfns.c:
530 * filelock.c:
531 * fileio.c:
532 * emacs.c:
533 * editfns.c:
534 * dosfns.c:
535 * doprnt.c:
536 * doc.c:
537 * dispnew.c:
538 * dired.c:
539 * dbusbind.c:
540 * data.c:
541 * composite.c:
542 * coding.c:
543 * cmds.c:
544 * cm.c:
545 * chartab.c:
546 * charset.c:
547 * character.c:
548 * ccl.c:
549 * category.c:
550 * casetab.c:
551 * casefiddle.c:
552 * callproc.c:
553 * callint.c:
554 * bytecode.c:
555 * buffer.c:
556 * atimer.c: Include setjmp.h. (Bug#4643)
557
fd5f21e6
SM
5582009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
559
4c0354d7
SM
560 Remove leftover table unibyte_to_multibyte_table.
561 * character.c (unibyte_to_multibyte_table): Remove.
562 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
563 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
564 * character.h (UNIBYTE_TO_CHAR): New macro.
565 (MAKE_CHAR_MULTIBYTE): Use it.
566 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
567 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
568 (message_dolog, set_message_1):
569 * search.c (Freplace_match):
570 * editfns.c (Fcompare_buffer_substrings):
571 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
572 (concat):
573 * insdel.c (copy_text, count_size_as_multibyte):
574 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
575 * term.c (produce_glyphs):
576 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
577 * regex.c (RE_CHAR_TO_MULTIBYTE):
578 * cmds.c (internal_self_insert):
579 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
580
fd5f21e6
SM
581 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
582
4418646e
DN
5832009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
584
585 * puresize.h (BASE_PURESIZE): Increase to 1310000.
586
35f5c1d2
JB
5872009-10-16 Juanma Barranquero <lekktu@gmail.com>
588
589 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
590
a0cd8f6b
AR
5912009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
592
593 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
594 still needed under Tiger.
595
596 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
597
598 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
599 __Apple__.
600
601 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
602
01a8d3fa
KH
6032009-10-15 Kenichi Handa <handa@m17n.org>
604
605 * print.c (print_object): Escape a symbol like "2E10" too.
606
bf6c75c9 6072009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
608
609 Cleanups and changes for 64-bit compile under Snow Leopard.
610 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
611
612 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
613
c5959062 614 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
615 (ns_findfonts, nsfont_list_family): Use long format in printf, and
616 cast argument.
617 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 618 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
619
620 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
621
622 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
623 where appropriate.
624
625 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
626 where appropriate.
6e4780c5
JB
627 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
628 Use stringWithUTF8String.
bf6c75c9
AR
629 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
630
6e4780c5
JB
631 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
632 Add formal protocol mention to inheritance.
bf6c75c9
AR
633 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
634
6e4780c5
JB
635 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
636 Fix printf format.
bf6c75c9
AR
637 (ns_query_color): Use CGFloat where appropriate.
638 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
639 (EmacsScroller-mouseDown:) Use long format in printf, and cast
640 argument.
641
3d87f118
AR
642 * config.in (NS_HAVE_NSINTEGER): Drop.
643
a95c8102
AR
644 * dbusbind.c (dbus-method-return-internal)
645 (dbus-method-error-internal): Use long format in printf, and cast
646 argument.
647
648 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
649 in printf, and cast argument.
650
6873acca 651 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
652 cast argument.
653
9ec6f100
GM
6542009-10-11 Glenn Morris <rgm@gnu.org>
655
656 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
657
5be883cd
JD
6582009-10-08 Jan Djärv <jan.h.d@swipnet.se>
659
660 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
661 menu bar with a small width so it doesn't enlarge the frame.
662
d7a39b51
JB
6632009-10-08 Juanma Barranquero <lekktu@gmail.com>
664
665 * fontset.c (Fset_fontset_font): Fix typos in error messages.
666
0c2b6f8e
GM
6672009-10-06 Glenn Morris <rgm@gnu.org>
668
669 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
670 SOME_MACHINE_LISP (this enters indirectly via DOC).
671
e02131a2
EZ
6722009-10-05 Eli Zaretskii <eliz@gnu.org>
673
674 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
675
b4744254
EZ
6762009-10-04 Eli Zaretskii <eliz@gnu.org>
677
678 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
679 Doc fix.
680
dbf64827
JB
6812009-10-03 Martin Rudalics <rudalics@gmx.at>
682
683 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
684
e9a0aef8
MA
6852009-10-02 Michael Albinus <michael.albinus@gmx.de>
686
d528b1ce 687 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
688 used anymore outside fileio.c.
689
690 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
691
64eb2b56
JB
6922009-10-01 Juanma Barranquero <lekktu@gmail.com>
693
694 * lisp.h (Qdelete_directory_internal):
695 Declare, instead of Qdelete_directory.
696
697 * w32fns.c (Fsystem_move_file_to_trash): Use it.
698
9d28c33e
SM
6992009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
700
701 * eval.c (Fcalled_interactively_p): Add `kind' argument.
702
9d8f3bd9
MA
7032009-10-01 Michael Albinus <michael.albinus@gmx.de>
704
9d28c33e 705 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
706 Fdelete_directory. It is not a command anymore. It has no file
707 name handler.
708
9694740b
SM
7092009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
710
711 * xdisp.c (get_next_display_element): Use an enum in last change.
712
748e162f
KH
7132009-09-28 Kenichi Handa <handa@m17n.org>
714
9694740b 715 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
716 unibyte_display_via_language_environment in handling
717 Vnobreak_char_display.
718
17efd58d
AR
7192009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
720
721 * nsterm.h (ns_app_name): New extern variable.
722
723 * nsterm.m (ns_app_name): New variable.
724 (ns_term_init): Set and use it.
725 (ns_term_shutdown): Use it.
726
727 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
728 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
729
730 * nsfns.m (ns_set_name_iconic, ns_set_name)
731 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
732 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
733
9694740b
SM
734 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
735 Remove double-casting in client_data comparison.
31c2d412 736
3208cb35
YM
7372009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
738
739 * keyboard.c (make_lispy_event): Remember last wheel direction.
740 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
741
b7d552d6
GM
7422009-09-26 Glenn Morris <rgm@gnu.org>
743
744 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
745 internal.elc. Add term/pc-win.elc.
746 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
747 term/x-win.elc.
748 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
749 term/w32-win.elc.
750 (NS_SUPPORT): New.
751 (lisp): Add NS_SUPPORT.
752 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
753
4ff670a8
DR
7542009-09-25 David Reitter <david.reitter@gmail.com>
755
756 * nsmenu.m (EmacsMenu-clear): Recognize application menu
757 on Mac OS X 10.6+ (bug#4513).
758
feabfb6c
JB
7592009-09-24 Juanma Barranquero <lekktu@gmail.com>
760
761 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
762 some parts of Emacs code (like font selection) don't grok them.
763 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 764
de59072a
AS
7652009-09-24 Andreas Schwab <schwab@redhat.com>
766
767 * coding.c (decode_coding_iso_2022): Fix operator precedence.
768
a489517b
JB
7692009-09-24 Juanma Barranquero <lekktu@gmail.com>
770
771 * dired.c (Fdirectory_files): Fix typo in docstring.
772
0592970c
AR
7732009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
774
775 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
776 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
777 (EmacsScroller-setPosition:portion:whole:): Remove -display call
778 under GNUstep.
779 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
780
781 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
782 glyph advancement.
783
48e8a88b
AR
7842009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
785
786 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 787 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
788
789 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
790 deleted (bug #4492).
791
e14f0a78
AR
792 * nsfont.m (Vns_reg_to_script): New lisp variable.
793 (syms_of_nsfont): Declare it.
794 (ns_registry_to_script): New function.
795 (ns_get_req_script): Call it.
796 (ns_findfonts): Don't give up on non-unicode registry.
797
798 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
799
5b650faa
SM
8002009-09-20 Tom Tromey <tromey@redhat.com>
801
802 * eval.c (find_handler_clause): Make stack-trace-on-error work in
803 batch mode (bug#4228).
804
a489517b 8052009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
806
807 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 808 carefully. (Bug #4339)
0bae4e09 809
fcfe06f3
CY
8102009-09-18 Chong Yidong <cyd@stupidchicken.com>
811
d798ba87 812 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 813
31642728
AR
8142009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
815
816 * emacs.c (inhibit_x_resources): Update doc string for NS.
817 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 818 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
819
820 * nsterm.h (ns_no_defaults): Remove.
821
822 * nsterm.m (ns_no_defaults): Remove.
823 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
824 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
825 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
826 don't update the NSWindow itself.
827 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 828 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
829
830 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
831 ns_use_qd_smoothing.
832
833 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
834 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 835 (x-close-connection): Drop PSFlush() under OS X.
a489517b 836 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 837
8686ac71
JB
8382009-09-17 Juanma Barranquero <lekktu@gmail.com>
839
840 * emacs.c (inhibit_x_resources): New variable.
841 (main) [HAVE_NS]: Don't process --quick command line option.
842 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
843
844 * lisp.h (inhibit_x_resources): Declare it extern.
845
846 * w32reg.c (x_get_string_resource):
847 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
848
e227ba05
EZ
8492009-09-17 Eli Zaretskii <eliz@gnu.org>
850
362654a6
JB
851 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
852 Add lisp/term/internal.elc.
e227ba05 853
742d40e8
SM
8542009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
855
856 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
857 (bug#4461).
858
005bd5a2
DN
8592009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
860
861 * puresize.h (BASE_PURESIZE): Increase to 1290000.
862
863 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
864 (OBJECTS_MACHINE): Remove, unused.
865
f9af9719
SM
8662009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
867
868 * frame.c (x_get_resource_string): Remove unused.
869
0307c7d2
JD
8702009-09-15 Jan Djärv <jan.h.d@swipnet.se>
871
872 * xterm.c (x_new_font): Call change_frame_size before calling
873 x_set_window_size, in case frame size won't change.
874
875 * frame.c (x_set_font): Remove dead code.
876
428b13d6
SM
8772009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
878
879 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
880
5766c380
SM
8812009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
882
883 * lread.c (Fload): Don't output a message after loading an obsolete
884 package any more (done in Lisp now).
885
2fd0161b
CY
8862009-09-12 Chong Yidong <cyd@stupidchicken.com>
887
888 * fns.c (syms_of_fns): Doc fix (Bug#4227).
889
bc5e75b6
SM
8902009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
891
892 * keymap.c (Fwhere_is_internal): Use nconc2.
893
c31c985e
AM
8942009-09-11 Alan Mackenzie <acm@muc.de>
895
896 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
897 batch mode.
898
78012bd2
AS
8992009-09-11 Andreas Schwab <schwab@linux-m68k.org>
900
901 * xdisp.c (display_mode_element): Detect cycles.
902
9d889332
SM
9032009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
904
905 * keymap.c (where_is_internal): Don't erroneously return nil right after
906 filling the cache.
907 (where_is_internal_1): Fix up typo.
908
7ab5d780
GM
9092009-09-11 Glenn Morris <rgm@gnu.org>
910
911 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
912 share a common doc-string.
913
5238a749
SM
9142009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
915
66d77eda
SM
916 * keymap.c (get_keymap): Return the actual keymap symbol rather than
917 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
918
5238a749
SM
919 * keymap.c (QCadvertised_binding): New constant.
920 (syms_of_keymap): Initialize it.
921 (Fwhere_is_internal): Try and use bindings from :advertised-binding
922 if applicable.
923
19f48442
SM
9242009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
925
50d4ba39
SM
926 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
927 (parse_menu_item): Streamline since bindings are recomputed all the
928 time anyway. Don't bother checking Vdefine_key_rebound_commands any
929 more and don't support lmenu's menu-alias any more either.
930
a88a5372
SM
931 * keymap.c (where_is_internal_data): Make noindirect a boolean.
932 (where_is_internal): Strip it down to only traverse the keymaps.
933 Move the cache handling from Fwhere_is_internal to here.
934 (Fwhere_is_internal): Move the handling of remapping and the choice of
935 the best binding from where_is_internal to here.
936 Unify the cached/noncached paths, so remapping is also handled
937 correctly when the cache is used, and so the cache can be used to
938 speed up remap-handling when applicable.
939 Give preference to non-remapped bindings.
940 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
941 non-remapped bindings.
942 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
943 command remapping.
944
19f48442
SM
945 * xdisp.c (display_mode_element): Move list length limit from 50 to
946 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
947
599498c3 9482009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
949
950 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
951
f9b7b5ac
SM
9522009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
953
a53af587
JB
954 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
955 (Bug#4334)
956
f9b7b5ac
SM
957 * keymap.c (where_is_internal): Filter out shadowed remappings.
958 Assume that where_is_internal returns unshadowed bindings to simplify
959 the code and get rid of the gotos. Use ASIZE.
960
04f4b72d
JD
9612009-09-04 Jan Djärv <jan.h.d@swipnet.se>
962
4da146f2
JD
963 * xterm.c (x_focus_changed): If we get a focusout and pointer
964 is invisible, make it visible.
965
04f4b72d
JD
966 * xterm.h: Remove condition for declaration of
967 x_*_window_to_frame.
968
7cef7ce3
SM
9692009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
970
971 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
972 initial terminal as well.
973
a54fa5b7
JD
9742009-09-02 Jan Djärv <jan.h.d@swipnet.se>
975
976 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 977 x_menubar_window_to_frame.
a54fa5b7
JD
978
979 * xterm.c: Remove declarations also in xterm.h
980 (XTmouse_position): Do not return valid positions
981 for clicks in the menubar and the toolbar for Gtk+.
982
983 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
984 if the widget for the event has the same top level as a frame,
985 return the frame.
986 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
987 internal windows, bug #4122.
988 (x_non_menubar_window_to_frame): Remove.
989
5a021dd0
GM
9902009-09-02 Glenn Morris <rgm@gnu.org>
991
992 * buffer.c (default-major-mode): Move most of the doc from here...
993 (major-mode): ... to here.
994
548fe2f3
NR
9952009-08-30 Nick Roberts <nickrob@snap.net.nz>
996
997 * process.c (wait_reading_process_output): Keep the descriptor
998 when pty is used by a non-child process, e.g., in I/O buffer of
999 GDB this allows inferior to be restarted.
1000
e0840eef
EZ
10012009-08-29 Eli Zaretskii <eliz@gnu.org>
1002
1003 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1004 both branches into one.
1005
82e98df4
SM
10062009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1007
1008 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1009 (main): Use enable-multibyte-characters rather than
1010 default-enable-multibyte-characters. Output a warning message when
1011 running a unibyte session.
1012
890617cb
YM
10132009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1014
1015 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1016 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1017 (copy_data_segment): Also copy __program_vars section.
1018 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1019 (dump_it) [LC_DYLD_INFO]: Use it.
1020
1021 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1022
e7adeadc
EZ
10232009-08-28 Eli Zaretskii <eliz@gnu.org>
1024
1025 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1026 $(SRC)/buildobj.h.
1027 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1028 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1029 $(SRC)/buildobj.h.
1030 (clean): Add buildobj.h.
1031
3ed8bbdc
TZ
10322009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1033
1034 * print.c (print_object): Set escapeflag to 1 when printing
1035 hashtable keys and values.
1036
155a6764
SM
10372009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1038
1039 * lread.c (read_integer): Use doubles (and potentially return a float
1040 number) as we do in string-to-number.
1041 (read1): Use strtol to read integers, signal errors on strtol's
1042 overflow and use floats if strtol's output is too large for
1043 Elisp integers.
1044
877610de
EZ
10452009-08-27 Eli Zaretskii <eliz@gnu.org>
1046
1047 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1048 (make-buildobj-SH): Fix last change.
1049 (SRC): Move to before where it's first used.
1050
ef73e7be
KH
10512009-08-27 Kenichi Handa <handa@m17n.org>
1052
550c8289
KH
1053 * process.c (send_process): Use encode_coding_object instead of
1054 encode_coding_string to perform eol-conversion even if the string
1055 is unibyte.
1056
60afa08d
KH
1057 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1058 character.
1059
ef73e7be 1060 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1061 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1062
7b3a82d7
DN
10632009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1064
5654bf63
DN
1065 * callproc.c (Fcall_process): Remove always true #if.
1066
7b3a82d7
DN
1067 * lisp.h: Replace #if 0 code for checking with text pointing to
1068 the --enable-checking configure flag.
1069
1070 * emacs.c (main): Mention the --enable-profiling configure flag
1071 instead of using CFLAGS.
1072
878bde49
KR
10732009-08-26 Ken Raeburn <raeburn@raeburn.org>
1074
1075 * Makefile.in (buildobj.h): New target.
1076 (doc.o): Depend on it.
1077 (temacs${EXEEXT}): Don't generate buildobj.lst.
1078 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1079 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1080 ($(BLD)/doc.$(O)): Depend on it.
1081 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1082 provided by Eli Zaretskii.)
1083 ($(TEMACS)): Don't generate buildobj.lst.
1084 * doc.c: Include buildobj.h.
1085 (buildobj): New static variable.
1086 (Fsnarf_documentation): Use it, instead of opening and reading
1087 buildobj.lst.
1088
1574224c
MA
10892009-08-25 Michael Albinus <michael.albinus@gmx.de>
1090
1091 * dbusbind.c (Fdbus_call_method)
1092 (Fdbus_call_method_asynchronously): Use English numeric format for
1093 timeout values in doc string.
1094
d9da2f45
KH
10952009-08-25 Kenichi Handa <handa@m17n.org>
1096
ef73e7be
KH
1097 * alloc.c (mark_char_table): New function.
1098 (mark_object): Use mark_char_table for a char-table.
1099
d9da2f45
KH
1100 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1101 (CHAR_TABLE_REF): Use it.
1102
c8edcc01
KR
11032009-08-23 Ken Raeburn <raeburn@raeburn.org>
1104
1105 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1106 before invoking the newly build emacs to check for load-path
1107 shadowing.
1108
7763401b
GM
11092009-08-22 Glenn Morris <rgm@gnu.org>
1110
1111 * Makefile.in (bootstrap_exe): New variable.
1112 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1113 Use ${bootstrap_exe}.
1114
729eadda
EZ
11152009-08-22 Eli Zaretskii <eliz@gnu.org>
1116
1117 * coding.h (encode_coding_string): Don't encode unibyte strings.
1118 (Bug#4047)
1119
eb4c6ace
MA
11202009-08-22 Michael Albinus <michael.albinus@gmx.de>
1121
1122 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1123
1124 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1125 intended as hotfix only.
1126 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1127
36e34d1b
AR
11282009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1129
1130 * nsterm.m (ns_get_color): Update documentation properly for last
1131 change, and clean up loose ends in the code left by it. Fix
1132 longstanding bug with 16-bit hex parsing, and add support for
1133 yet another X11 format (rgb:r/g/b) for compatibility.
1134 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1135 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1136
f983eb8a
SM
11372009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1138
1139 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1140
3f56d3c6
MA
11412009-08-20 Michael Albinus <michael.albinus@gmx.de>
1142
1143 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1144 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1145 (xd_initialize, xd_pending_messages): Check, whether
1146 $DBUS_SESSION_BUS_ADDRESS is set.
1147
fb641d68
YM
11482009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1149
1150 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1151
1152 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1153
cf59a374
GM
11542009-08-20 Glenn Morris <rgm@gnu.org>
1155
1156 * emacs.c (system-type): Doc fix.
1157
1373f3be
SM
11582009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1159
1160 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1161 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1162
058ed861
MA
11632009-08-18 Michael Albinus <michael.albinus@gmx.de>
1164
1373f3be
SM
1165 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1166 New functions.
058ed861
MA
1167 (xd_initialize): Revert change from 2009-08-16.
1168
563a866e 11692009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1170
1171 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1172 font-group vector, return nil.
5fc05db0 1173
e42bdf01
CY
11742009-08-17 Chong Yidong <cyd@stupidchicken.com>
1175
1176 * process.c (status_notify): Don't perform redisplay.
1177 (Fdelete_process, list_processes_1, process_send_signal):
1178 Expliticly perform redisplay.
1179 (wait_reading_process_output): Always check process status, but
1180 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1181
4230ab74
KR
11822009-08-17 Ken Raeburn <raeburn@raeburn.org>
1183
1373f3be 1184 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1185 (XFLOAT_INIT): New macro for storing a float value.
1186 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1187 * fns.c (sxhash): Copy out the value of a float in order to
1188 examine its bytes.
1189 * dbusbind.c (xd_append_arg): Likewise.
1190
4230ab74
KR
1191 * emacs.c (main): Don't call syms_of_data twice.
1192
a0645cdd
MA
11932009-08-16 Michael Albinus <michael.albinus@gmx.de>
1194
1195 * dbusbind.c (xd_initialize): Add connection file descriptor to
1196 input_wait_mask, in order to let select() detect, whether a new
1197 message has been arrived.
ca4f31ea 1198 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1199
485db0ba
MA
12002009-08-15 Michael Albinus <michael.albinus@gmx.de>
1201
1373f3be
SM
1202 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1203 New functions.
485db0ba
MA
1204
1205 * lisp.h (xd_pending_messages): Declare.
1206
1207 * keyboard.c (readable_events): Call xd_pending_messages.
1208
b5b98ff4
CY
12092009-08-15 Chong Yidong <cyd@stupidchicken.com>
1210
1373f3be 1211 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1212
f8354c6e
CY
1213 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1214
b5b98ff4
CY
1215 * buffer.c (set_buffer_internal_1)
1216 (swap_out_buffer_local_variables): Check for unbound local
1217 variables (Bug#4138).
1218
8b9fc636
EZ
12192009-08-14 Eli Zaretskii <eliz@gnu.org>
1220
1221 * process.c (create_pty): Fix last change.
1222
ce959360
CY
12232009-08-13 Chong Yidong <cyd@stupidchicken.com>
1224
1225 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1226 (xbm_load_image): Caller changed.
64b807c9 1227 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1228
c7baf7e9
NR
12292009-08-13 Nick Roberts <nickrob@snap.net.nz>
1230
1231 * process.c (create_pty): New function.
1232 (Fstart_process): Use it to allow Emacs to just associate a pty
1233 with the buffer. See associated change in gdb-mi.el.
1234 (list_processes_1): Deal with no program name.
1235 (start_process_unwind): Use pid == -2 to mean no process.
1236
1ac9108a
SM
12372009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1238
1239 * cmds.c (nonundocount): New global variable.
1240 (keys_of_cmds): Initialize it.
1241 (Fself_insert_command): Use it to combine upto 20 sequential chars
1242 into a single undo entry, just like the Qself_insert_command code in
1243 keyboard.c does.
1244 Call frame_make_pointer_invisible, also like the Qself_insert_command
1245 code in keyboard.c does.
1246 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1247 than its own local replacement for it.
1248
e267324c
KR
12492009-08-10 Ken Raeburn <raeburn@raeburn.org>
1250
1ac9108a 1251 * fns.c (concat): Don't re-set string length to its current value.
77437343 1252
1ac9108a
SM
1253 * coding.h (decode_coding_string, encode_coding_string):
1254 Use SBYTES macro.
f0bed503 1255
1ac9108a 1256 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1257 (doprnt): Merge with doprnt1, discarding lispstrings code.
1258 * lisp.h (doprnt_lisp): Don't declare.
1259
416e006d
JL
12602009-08-07 Juri Linkov <juri@jurta.org>
1261
1262 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1263
6f7d5780
DN
12642009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1265
1266 * print.c (syms_of_print): Undo previous change.
1267
f19a0f5b
TZ
12682009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1269
1270 * lread.c (read1, syms_of_lread): Read hashtables back from the
1271 readable format.
1272
1273 * print.c (print_preprocess, print_object): Print hashtables fully
1274 and readably.
1275 (syms_of_print): Provide 'hashtable-print-readable.
1276
b9173dc2
AR
12772009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1278
1279 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1280 no family set.
1281 (nsfont_open): Handle case when entity has no family.
1282
1586503c
AR
12832009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1284
1285 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1286 element, not a list, for match case.
1287
087048cd
KH
12882009-07-28 Kenichi Handa <handa@m17n.org>
1289
1290 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1291 rigidly.
1292
1293 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1294 font_parse_xlfd. Check font properties more rigidly.
1295
780c2506
DN
12962009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1297
31fd7c5c
JB
1298 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1299 bsd-common.h.
780c2506 1300
a8c0cc18
KH
13012009-07-27 Kenichi Handa <handa@m17n.org>
1302
1303 * xfaces.c (face_with_height): Call font_clear_prop.
1304
4fbe2306
CY
13052009-07-26 Chong Yidong <cyd@stupidchicken.com>
1306
111d9af3
CY
1307 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1308
1309 * xterm.c (x_term_init): Use Qx.
1310
4fbe2306
CY
1311 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1312
1ac9108a 1313 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1314 (ns_get_color): Revert 2009-07-16 change.
1315
beb0b7f9
EZ
13162009-07-25 Eli Zaretskii <eliz@gnu.org>
1317
1318 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1319 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1320
2baf5e76
KR
13212009-07-25 Ken Raeburn <raeburn@raeburn.org>
1322
1ac9108a
SM
1323 * coding.h (decode_coding_string, encode_coding_string):
1324 Use SCHARS macro.
8890e5f5 1325
2baf5e76 1326 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1327 (load_depth): Delete.
2baf5e76
KR
1328 (Qload_in_progress): New variable.
1329 (load_unwind): Don't reference load_depth or load_in_progress.
1330 (Fload): Likewise; specbind Qload_in_progress instead.
1331 (init_lread): Don't initialize load_depth.
1332 (syms_of_lread): Initialize and protect Qload_in_progress.
1333
1395c6f5
AR
13342009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1335
1336 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1337
4e2f36cf
AR
13382009-07-23 Yavor Doganov <yavor@gnu.org>
1339
1340 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1341
5dd9a6f7
AR
13422009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1343
1344 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1345 Bugs 3792, 3720, 2402.
1346 (ns_lookup_indexed_color): Check for bad index.
1347 (ns_index_color): Init unused slot to 0.
1348 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1349 Bug 3714, possibly 3082.
5dd9a6f7 1350
c902b920
JR
13512009-07-22 Jason Rumney <jasonr@gnu.org>
1352
1ac9108a
SM
1353 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1354 Position IME window at cursor (Bug#2570).
c902b920
JR
1355 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1356 (globals_of_w32fns): Dynamically load functions required above.
1357
1358 * w32term.c (w32_draw_window_cursor): Send message to reposition
1359 any IME window.
1360
090101cf
CY
13612009-07-21 Chong Yidong <cyd@stupidchicken.com>
1362
1363 * fileio.c: Revert 2009-07-16 changes.
1364 (Vauto_save_include_big_deletions): New variable.
1365 (Fdo_auto_save): Disable auto-save only if
1366 auto-save-include-big-deletions is nil.
1367
e6583e3d
CY
13682009-07-21 Chong Yidong <cyd@stupidchicken.com>
1369
1370 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1371 the overflowed pixels into account (Bug#3879).
1372
ece435a5
KR
13732009-07-21 Ken Raeburn <raeburn@raeburn.org>
1374
1375 * lread.c (load_depth): New variable.
1376 (Fload, load_unwind, init_lread): Set it to the load recursion
1377 depth; set load_in_progress as a simple boolean based on the
1378 current load_depth. (Bug#3892)
1379
40b2d973
AR
13802009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1381
1382 * nsfont.m (ns_has_attribute): Remove.
1383 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1384
10be7e0d
JL
13852009-07-18 Juri Linkov <juri@jurta.org>
1386
1387 * process.c (Fset_process_query_on_exit_flag): Mention killing
1388 a buffer in docstring.
1389
fa055055
KH
13902009-07-17 Kenichi Handa <handa@m17n.org>
1391
1392 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1393
042f7b69
YM
13942009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1395
1396 * nsfns.m (Fns_set_alpha): Remove function.
1397 (syms_of_nsfns): Don't defsubr it.
1398
1399 * nsterm.m (ns_get_color): Remove incompatible color formats.
1400 (ns_color_to_lisp): Generate #rrggbb color format string.
1401
4be941e3
RS
14022009-07-16 Richard Stallman <rms@gnu.org>
1403
1404 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1405 (Fset_buffer_auto_saved): Handle save_length = -2.
1406
4e6b227d
CY
14072009-07-16 Chong Yidong <cyd@stupidchicken.com>
1408
1409 * xterm.c (Qx_gtk_map_stock): New var.
1410
1411 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1412 of calling intern each time.
1413
a1856973
YM
14142009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1415
1416 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1417 does tiling.
1418
1419 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1420
497e54d8
KH
14212009-07-14 Kenichi Handa <handa@m17n.org>
1422
72d36834
KH
1423 * font.c (font_vconcat_entity_vectors): New function.
1424 (struct font_sort_data): New member font_driver_preference.
1425 (font_compare): Check font_driver_preference.
1426 (font_sort_entities): The format of the first argument changed.
1427 (font_delete_unmatched): Likewise.
1428 (font_list_entities): The return type changed.
1429 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1430 (font_find_for_lface): Adjuste for the above changes.
1431 Don't suppress the checking of C even if the repertory supports it.
1432 (Flist_fonts): Adjust for the above changes.
72d36834 1433
1ac9108a
SM
1434 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1435 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1436 Reject a font who has adstyle property that is different from a
1437 langname derived from registry property.
1ac9108a 1438 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1439
b6046155
EZ
14402009-07-13 Eli Zaretskii <eliz@gnu.org>
1441
1442 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1443 local copy of dirfilename.
1444
fb6b6049
KH
14452009-07-13 Kenichi Handa <handa@m17n.org>
1446
e2402a5e
KH
1447 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1448 against max_char.
1449
fb6b6049
KH
1450 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1451 calling XSYMBOL (sym).
1452
65156807
EZ
14532009-07-11 Eli Zaretskii <eliz@gnu.org>
1454
1ac9108a
SM
1455 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1456 New function.
1457 (directory_files_internal) [WINDOWSNT]:
1458 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1459 the filesystem of the directory is fast or slow.
1460
1461 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1462 file name.
1463 (is_slow_fs): New function.
1464 (stat): Use it to determine whether to issue more system calls to
1465 get accurate file attributes, when w32-get-true-file-attributes is
1466 `local'.
1467
e0ab5fcf
JD
14682009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1469
1470 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1471 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1472 parameter font-parameter as default to the font dialog.
1473
784ceded
KH
14742009-07-10 Kenichi Handa <handa@m17n.org>
1475
1476 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1477
fb8edc0b
EZ
14782009-07-09 Eli Zaretskii <eliz@gnu.org>
1479
1ac9108a 1480 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1481
fb8edc0b
EZ
1482 * w32.c (stat): Treat UNC file names as residing on remote
1483 drives. (Bug#3542)
1484
635c75b1
KH
14852009-07-09 Kenichi Handa <handa@m17n.org>
1486
1487 * fontset.c (fontset_find_font): Fix previous change.
1488
c1d5ce94
MA
14892009-07-08 Michael Albinus <michael.albinus@gmx.de>
1490
1491 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1492 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1493 error flag.
1494
edb61b39
KH
14952009-07-08 Kenichi Handa <handa@m17n.org>
1496
374bf7e4
KH
1497 * fontset.c (fontset_find_font): Fix the logic of handling
1498 charset_matched.
1499 (font_for_char): Delete unused var.
1500 (generate_ascii_font_name): Delete it.
1501
edb61b39
KH
1502 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1503
1504 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1505 (encode_coding_sjis): Fix the code range check.
1506
0f3f018c
CY
15072009-07-07 Chong Yidong <cyd@stupidchicken.com>
1508
1509 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1510 (Fexpand_file_name): Copy string data properly (Bug#3772).
1511
fcaf6f3a
JD
15122009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1513
1514 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1515 first MapNotify.
1516
6809ca75
KH
15172009-07-07 Kenichi Handa <handa@m17n.org>
1518
1519 * character.h (unibyte_has_multibyte_table): Delete extern.
1520 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1521
1522 * charset.c (Fset_charset_priority): Update charset_unibyte.
1523 (syms_of_charset): Initialize charset_unibyte.
1524
1525 * character.c (unibyte_has_multibyte_table): Delete it.
1526 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1527 charset_unibyte.
1528 (multibyte_char_to_unibyte_safe): Likewise.
1529 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1530
1ac9108a 1531 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1532 (x_produce_glyphs): Likewise.
1533
1534 * .gdbinit (xcharset): Fix the treating $arg0.
1535
ad9e2d54
EZ
15362009-07-04 Eli Zaretskii <eliz@gnu.org>
1537
1538 Emulation of `getloadavg' on MS-Windows.
1539 * w32.c: Include float.h
1540 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1541 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1542 (get_native_system_info, get_system_times): New functions.
1543 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1544 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1545 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1546 g_b_init_get_system_times, and num_of_processors.
1547
0a3472c7
JR
15482009-07-03 Jason Rumney <jasonr@gnu.org>
1549
1550 * w32term.c (w32_initialize): Use standard types.
1551
80904120
EZ
15522009-07-03 Eli Zaretskii <eliz@gnu.org>
1553
1554 * dired.c (Ffile_attributes): Decode user and group names by the
1555 locale's encoding. (Bug#3443)
1556
6978862d
DN
15572009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1558
f8d23104
DN
1559 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1560 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1561
1562 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1563
1564 * term.c (init_tty): Remove spurious #ifdef.
1565
6978862d
DN
1566 * m/mips.h: Mention this file is also used for netbsd.
1567 * m/pmax.h: Remove file.
1568
e044e4fc
JD
15692009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1570
1571 * xterm.h (struct x_display_info): Add invisible_cursor.
1572 (struct x_output): Add current_cursor.
1573
1574 * xterm.c (XTtoggle_invisible_pointer): New function.
1575 (x_define_frame_cursor): Don't define cursor if invisible or the
1576 same as before. Set current_cursor.
1577 (x_create_terminal): Set toggle_invisible_pointer_hook.
1578
1579 * xfns.c (make_invisible_cursor): New function.
1580 (x_set_mouse_color): Call make_invisible_cursor.
1581 Set current_cursor.
1582 (x_window): Set current_cursor.
1583
1584 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1585
1586 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1587 inserting a character.
1588 (read_avail_input): Call frame_make_pointer_visible.
1589
1590 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1591 (frame_make_pointer_invisible, frame_make_pointer_visible):
1592 New functions.
e044e4fc
JD
1593 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1594
1595 * frame.h: Declare frame_make_pointer_invisible and
1596 frame_make_pointer_visible.
1597 (struct frame): Add pointer_invisible.
1598
574c8efa
JD
15992009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1600
7b507248
JD
1601 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1602 frame isn't visible.
1603 (xg_frame_resized): If width/height is -1, get size of window
1604 from X server.
1605
1606 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1607 for MapNotify.
1608
835bdaa7 1609 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1610 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1611 (flush_and_sync): Reintroduce.
574c8efa 1612
3f1c6666 16132009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1614
31fd7c5c 1615 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1616
1617 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1618 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1619
1620 * frame.h: Declare Qsticky.
1621
cad9ef74
JD
1622 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1623
1624 * nsfns.m (ns_frame_parm_handlers): Ditto.
1625
1626 * frame.c: Declare Qsticky.
1627 (frame_parms): Add sticky.
1628
1629 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1630
1631 * xterm.h: Declare x_set_sticky.
1632
1633 * xterm.c (x_set_sticky): New function.
1634
69b16610
JD
1635 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1636 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1637 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1638
1639 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1640
1641 * frame.c: Qmaximized is new.
1642 (x_set_frame_parameters): Do not handle fullscreen specially.
1643 Only set width and height if explicitly set.
1644 (x_set_fullscreen): Handle Qmaximized.
1645 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1646 (syms_of_frame): Initialize Qmaximized.
1647
1ac9108a
SM
1648 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1649 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1650
1651 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1652 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1653 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1654 set gravity to NorthWestGravity when USE_GTK.
1655 (set_wm_state): New function.
31fd7c5c 1656 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1657 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1658 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1659 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1660 to x_real_positions and x_fullscreen_adjust.
1661
1662 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1663 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1664 flush_and_sync.
1665 (xg_height_changed): New function.
1666 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1667 and gtk_window_set_policy. Set frame gravity after parsing the
1668 geometry string.
3f1c6666
JD
1669 (xg_update_frame_menubar, free_frame_menubar)
1670 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1671 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1672 Remove calls to xg_frame_set_char_size.
1673
fd503d99
KH
16742009-07-01 Kenichi Handa <handa@m17n.org>
1675
1676 * keyboard.c (decode_keyboard_code): New function.
1677 (tty_read_avail_input): Decode the input bytes if necessary.
1678
1ac9108a
SM
1679 * coding.c (setup_coding_system):
1680 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1681 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1682 use Qno_conversion.
1683
24ed93fb
YM
16842009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1685
1686 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1687
99061dfc
CY
16882009-06-30 Chong Yidong <cyd@stupidchicken.com>
1689
1ac9108a 1690 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1691
ff90fbde
JR
16922009-06-30 Jason Rumney <jasonr@gnu.org>
1693
1694 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1695 is already loaded.
1696 Set user model ID if supported (bug#1849).
1697
5f445726
JM
16982009-06-29 Jim Meyering <meyering@redhat.com>
1699
1700 Remove useless if-before-xfree test.
1701 * nsfont.m (nsfont_close): Remove useless test.
1702 * term.c (delete_tty): Likewise.
1703 * w32.c (system_process_attributes): Likewise.
1704 * w32font.c (w32font_close): Likewise.
1705 * xfaces.c (x_free_gc): Likewise.
1706 * xselect.c (buffer): Likewise.
1707
b9607587
AS
17082009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1709
1710 * process.c (send_process): Keep decoded string in a local
1711 variable and protect it from GC. (Bug#3521)
1712
89ba96f4
EZ
17132009-06-28 Eli Zaretskii <eliz@gnu.org>
1714
1715 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1716 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1717
098a1589
CY
17182009-06-28 Chong Yidong <cyd@stupidchicken.com>
1719
485422be
CY
1720 * xdisp.c (start_display, handle_face_prop)
1721 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1722 (redisplay_window, try_window_id, produce_image_glyph):
1723 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1724
098a1589
CY
1725 * xterm.c (x_update_window_begin, x_new_focus_frame)
1726 (x_scroll_bar_handle_click, handle_one_xevent)
1727 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1728 (x_make_frame_visible, x_make_frame_invisible)
1729 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1730 code chunks that are now obsolete.
1731
78c38319
MA
17322009-06-28 Michael Albinus <michael.albinus@gmx.de>
1733
1734 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1735 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1736 for hours, when optimzation is enabled.
1737 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1738 (xd_read_message): Make them static.
1739
4189ed40
CY
17402009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1741
1742 * term.c (turn_on_face): Allow simultaneously bold and dim
1743 terminal faces (Bug#3530).
1744
cd9b5e16
CY
17452009-06-27 Chong Yidong <cyd@stupidchicken.com>
1746
4e23bedb
CY
1747 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1748
cd9b5e16
CY
1749 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1750 truncation glyphs (Bug#3686).
1751
07cc3c35
GM
17522009-06-27 Glenn Morris <rgm@gnu.org>
1753
1754 * m/pmax.h: Restore file, with only netbsd portions.
1755
31fd7c5c 17562009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1757
cd9b5e16 1758 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1759
42d4a64f
KH
17602009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1761
1762 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1763 the arg FORCE_SYMBOL.
1764
930fe55b 17652009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1766
1767 * fontset.c (fontset_find_font): When a usable rfont_def is found
1768 in a fallback font-group, make it the first element of the group.
1769
57ebc3fd
CY
17702009-06-24 Chong Yidong <cyd@stupidchicken.com>
1771
1772 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1773
f084f942
KH
17742009-06-24 Kenichi Handa <handa@m17n.org>
1775
1776 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1777 set for C.
1778 (fontset_font): Record the availability of a font for C both in
1779 the realized fontsets of the current one and the default one.
1780
2f686c87
DN
17812009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1782
1783 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1784 conditional, it is always defined on AIX.
1785
666e158e
MB
17862009-06-23 Miles Bader <miles@gnu.org>
1787
1788 * window.c (Vrecenter_redisplay): New variable.
1789 (syms_of_window): Initialize it.
1790 (Qtty): New extern declaration.
1791 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1792
c6da7cd2
JM
17932009-06-23 Jim Meyering <meyering@redhat.com>
1794
1ac9108a
SM
1795 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1796 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 1797 pointer dereferences are guaranteed to be valid.
c6da7cd2 1798
678dca3d
KH
17992009-06-23 Kenichi Handa <handa@m17n.org>
1800
74d75424
KH
1801 * emacs.c (main): Call init_font ().
1802
1803 * font.h (Vfont_log): Extern it.
1804 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1805
1806 * font.c (font_sort_entities, font_list_entities)
1807 (font_matching_entity, font_open_entity)
1808 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1809 (Vfont_log): Delete static.
1810 (font_log_env_checked): Delete this variable.
1811 (font_add_log): Don't check font_log_env_checked.
1812 (font_deferred_log): Check Vfont_log.
1813 (init_font): New function.
1814
678dca3d
KH
1815 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1816
1817 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1818
1819 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1820
1821 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1822
1823 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1824 (face_for_char): Don't call font_deferred_log here.
1825 (font_for_char): Likewise.
1826
8a668709
CY
18272009-06-22 Chong Yidong <cyd@stupidchicken.com>
1828
9a01ee33
CY
1829 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1830 rather than its background_width for drawing the overline and
1831 underline (Bug#489).
1832
1833 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1834 rather than its background_width for drawing the overline and
1835 underline (Bug#489).
ec7c9926
CY
1836 (xg_default_icon_file): New variable.
1837 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1838 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1839
8a668709
CY
1840 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1841 (load_overlay_strings): Remove externs.
1842 (fast_find_position): Function deleted.
1843 (mouse_face_from_buffer_pos): New function, based on
1844 fast_find_position. Correctly handle before-strings,
1845 display-strings, and after-strings (Bug#1220).
1846 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1847
4d4c02d8
CY
18482009-06-21 Chong Yidong <cyd@stupidchicken.com>
1849
1ac9108a 1850 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
1851 (move_it_in_display_line_to, move_it_in_display_line_to)
1852 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1853
70243478
CY
18542009-06-21 Chong Yidong <cyd@stupidchicken.com>
1855
1856 * Branch for 23.1.
1857
13087e59
JR
18582009-06-21 Jason Rumney <jasonr@gnu.org>
1859
1860 * w32term.c (keyboard_codepage): New static variable.
1861 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1862 (w32_read_socket) [WM_CHAR]: Use it to decode character
1863 input (bug#3237).
1864 (w32_initialize): Initialize it.
1865 (codepage_for_locale): New function.
1866
4735b74e
KR
18672009-06-20 Ken Raeburn <raeburn@raeburn.org>
1868
1869 * process.c (status_message): Pass Faset index argument as a lisp
1870 object, so as to work with USE_LISP_UNION_TYPE.
1871
0e727afa
YM
18722009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1873
1874 * coding.c (Ffind_coding_systems_region_internal):
1875 Cache checked characters.
1876
cf299835
KH
18772009-06-18 Kenichi Handa <handa@m17n.org>
1878
1ac9108a 1879 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 1880
90f20d94
AS
18812009-06-18 Andreas Schwab <aschwab@redhat.com>
1882
1883 * xdisp.c (redisplay_internal): Check that the frame is still
1884 live after redisplay of its windows.
1885 (redisplay_windows): Check that the window is still live.
1886
7f1faf1c
KH
18872009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1888
1889 * coding.c (detect_coding_utf_16): Fix previous change.
1890
cc13543e
KH
18912009-06-16 Kenichi Handa <handa@m17n.org>
1892
1893 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1894 UTF-16 by checking the dispersion of Eth and Oth bytes.
1895
977b85f4
AS
18962009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1897
1898 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1899
66bd43d1
KH
19002009-06-15 Kenichi Handa <handa@m17n.org>
1901
1902 * process.c (status_message): Fix previous change. Be sure to
1903 decode a localized string.
1904
cb5ca9c5
YM
19052009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1906
1907 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1908 add comment explaining why.
1909
ec7709ba 19102009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 1911
ec7709ba 1912 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 1913
4b7f335c
AR
19142009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1915
1916 * nsfont.m (ns_attribute_value): Remove.
1917 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1918 (ns_has_attribute): Shrink the normal range.
1919 (ns_findfonts): Don't worry about requested spec in determining
1920 need for synthItal.
e41820ee 1921 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 1922
73b26103
SZ
19232009-06-14 Seiji Zenitani <zenitani@mac.com>
1924
1925 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1926
5753e4da
KH
19272009-06-11 Kenichi Handa <handa@m17n.org>
1928
1929 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1930 overhang for the static composition case.
1931
3561b671
KH
19322009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1933
5753e4da
KH
1934 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1935 overhang for the automatic composition case.
1936
3561b671
KH
1937 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1938 composition case.
1939
852bbd41
CY
19402009-06-10 Chong Yidong <cyd@stupidchicken.com>
1941
1942 * xdisp.c (get_next_display_element): When handling wrap-prefix
1943 and line-prefix, treat \n as a control character (bug#3502).
1944
9903d1e6
KH
19452009-06-10 Kenichi Handa <handa@m17n.org>
1946
1947 * font.c (font_parse_family_registry): Fix for one-char foundry.
1948 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1949
0bcbaaaa
CY
19502009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1951
1952 * process.c (status_message): Fix handling of multibyte signal
1953 string (Bug#3499).
1954
40aa3f13
JM
19552009-06-09 Jim Meyering <meyering@redhat.com>
1956
1f80c7e2
CY
1957 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1958 color name is missing.
40aa3f13 1959
72d51285
KH
19602009-06-09 Kenichi Handa <handa@m17n.org>
1961
1962 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1963 FROM-CODE and TO-CODE are codepoints of CHARSET.
1964
c1d04d84
AR
19652009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1966
1967 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1968
19692009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1970
1971 Changes to support :script/:lang/:otf in NS font driver.
1972 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1973 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1974 indicate not part of font driver interface, and change callers.
1975 (ns_get_family): Remove pointless null check.
1976 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1977 ns_spec_to_descriptor, ns_descriptor_to_entity.
1978 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1979 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1980 (ns_spec_to_descriptor, ns_descriptor_to_entity)
1981 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1982 (ns_get_req_script, ns_accumulate_script_ranges)
1983 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1984 New functions.
1985 (nsfont_list, nsfont_match): Use ns_findfonts.
1986 (nsfont_open): Use font descriptor instead of traits.
1987 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1988 (dump_glyphstring): Rename to ns_dump_glyphstring.
1989
c7eb9816
AR
1990 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1991
c1d04d84
AR
1992 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1993
1994 * fontset.c (fontset_from_font): Remove NS-specific code.
1995
ec7709ba 19962009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
1997
1998 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
1999 nonactive windows.
2000
31fd7c5c 20012009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2002
1ac9108a 2003 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2004
68852c13 20052009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2006
2007 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2008
6756cd1d
CY
20092009-06-07 Chong Yidong <cyd@stupidchicken.com>
2010
2011 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2012 account for the overflowing of newlines into the last glyph on the
2013 display line (Bug#3482).
2014
28bf482a
DR
20152009-06-05 David Reitter <david.reitter@gmail.com>
2016
ec7709ba
JB
2017 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2018 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2019 Fns_selection_exists_p, Fns_selection_owner_p.
2020
fdb55376
JR
20212009-06-03 Jason Rumney <jasonr@gnu.org>
2022
2023 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2024 available. (Bug#3379)
2025
05129fbe
KH
20262009-05-29 Kenichi Handa <handa@m17n.org>
2027
1ac9108a
SM
2028 * coding.c (get_translation_table):
2029 Check Venable_character_translation.
05129fbe 2030
ec7709ba 20312009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2032
ec7709ba
JB
2033 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2034 (x_make_frame_visible): Move frame to front rather than calling
15891144 2035 ns_raise_frame().
ec7709ba 2036 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2037 isn't key window.
ec7709ba 2038 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2039 drawRect may be called by NSView even if the frame is hidden.
2040
ec7709ba
JB
2041 * nsfns.m (Fx_create_frame): Follow other ports in
2042 determining visibility; default to t. Ensure async_visible is set.
15891144 2043
21f73755
EZ
20442009-05-23 Eli Zaretskii <eliz@gnu.org>
2045
2046 * dired.c (Ffile_attributes): Doc fix.
2047
34001e41
CY
20482009-05-22 Chong Yidong <cyd@stupidchicken.com>
2049
2050 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2051
46306a17
SM
20522009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2053
2054 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2055 and xfont_scratch_props.
2056 (syms_of_xfont): Do it here instead.
2057 (xfont_find_ccl_program): Delete, unused.
2058 (xfont_open): Delete unused var `i'.
2059
ef6e0694
KH
20602009-05-21 Kenichi Handa <handa@m17n.org>
2061
2062 * fontset.c (Qlatin): Don't make it static.
2063
46306a17
SM
2064 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2065 New functions.
ef6e0694
KH
2066 (xfont_scripts_cache, xfont_scratch_props): New variables.
2067 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2068 (xfont_list_pattern): Argument changed. Callers changed.
2069 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2070 (xfont_list): Don't reject a font spec with :script property.
2071 (xfont_has_char): Fix setting of encoding.
2072 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2073 xfont_scratch_props.
2074
20752009-05-19 Kenichi Handa <handa@m17n.org>
2076
46306a17 2077 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2078 Callers changed.
2079
20802009-05-18 Kenichi Handa <handa@m17n.org>
2081
2082 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2083
ac71ced7
SM
20842009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2085
2086 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2087 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2088
1c6d1051
YM
20892009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2090
2091 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2092 (x_delete_terminal): Dissociate resource database from display and
2093 then call XrmDestroyDatabase before closing display.
2094
9b9b779c
AR
20952009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2096
2097 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2098 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2099 whether selected frame is viable before raising it (based on patch
2100 by David Reitter), and improve commentary.
2101 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2102
cccd42d5
KH
21032009-05-15 Kenichi Handa <handa@m17n.org>
2104
2105 * font.c (Ffont_spec): Check arguments.
2106
337fbd17
CY
21072009-05-14 Chong Yidong <cyd@stupidchicken.com>
2108
2109 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2110 weight when testing attributes (Bug#3282).
2111
47a6002f
JD
21122009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2113
2114 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2115 what we expect to get in the next ConfigureNotify event.
2116
9cb363db
YM
2117 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2118 before Xft one (Bug#1696).
2119
b9126609
CY
21202009-05-07 David Reitter <david.reitter@gmail.com>
2121
2122 * nsfns.m (Fx_display_planes): Compute bitplanes using
2123 NSBitsPerPixelFromDepth (Bug#3207).
2124
27a69fd9
CY
21252009-05-10 Chong Yidong <cyd@stupidchicken.com>
2126
2127 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2128
00f37552
TTN
21292009-05-10 Ulrich Mueller <ulm@gentoo.org>
2130
2131 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2132
2d82a920
DR
21332009-05-07 David Reitter <david.reitter@gmail.com>
2134
ec7709ba
JB
2135 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2136 Respect mouse face background.
2d82a920 2137
46b0d52d
DR
21382009-05-07 David Reitter <david.reitter@gmail.com>
2139
ec7709ba
JB
2140 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2141 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2142 in ns_update_begin and ns_update_end.
2143
ce1b23bb
SM
21442009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2145
5996e1b7
SM
2146 * nsfns.m (ns_get_screen): Rewrite.
2147 Don't presume selected-frame is of type `ns'.
2148
ba98e3a0
SM
2149 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2150 all drivers.
2151
ce1b23bb
SM
2152 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2153
bcda200f
YM
21542009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2155
2156 * keyboard.h (add_user_signal): Fix typo in extern.
2157
2158 * lisp.h (add_user_signal): Remove extern.
2159
2160 * unexelf.c (unexec): Consider a section to precede the .bss section
2161 if its addresses overlap that of .bss.
2162 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2163 instead of dumping process.
2164
864660a2
SM
21652009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2166
2167 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2168
50da4e56
SM
21692009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2170
2171 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2172
51520a1a
DN
21732009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2174
2175 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2176 any statements.
2177
409ea3a1
AS
21782009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2179
59c4c60f
AS
2180 * process.c (read_process_output): Make sure the current buffer is
2181 always restored.
2182
409ea3a1
AS
2183 * coding.c (record_conversion_result): Don't modify
2184 Vlast_code_conversion_error for successful result.
2185 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2186
56f00ed2
KH
21872009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2188
2189 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2190 (load_charset_map): Remove unnecessary code.
56f00ed2 2191
4491c9d2
DR
21922009-04-30 David Reitter <david.reitter@gmail.com>
2193
35f5b128 2194 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2195 through f24.
2196
6970f632
CY
21972009-04-30 Chong Yidong <cyd@stupidchicken.com>
2198
2199 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2200
2201 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2202 face_at_buffer_position.
2203 (face_before_or_after_it_pos, get_next_display_element)
2204 (note_mouse_highlight): Update face_at_buffer_position call.
2205
2206 * term.c (term_mouse_highlight):
2207 * msdos.c (IT_note_mouse_highlight):
2208 * fontset.c (Finternal_char_font):
35f5b128 2209 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2210
2211 * dispextern.h (face_at_buffer_position): Update prototype.
2212
0c616f63
KH
22132009-04-30 Kenichi Handa <handa@m17n.org>
2214
35f5b128 2215 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2216
ad3aaf33
AS
22172009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2218
2219 * callproc.c (Fcall_process): Fix GC protection. Make sure
2220 current buffer is always restored.
2221
c3c963a0
YM
22222009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2223
2224 * atimer.c (init_atimer): Also clear stopped_atimers.
2225
2226 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2227
7e3386cb
YM
2228 * process.c (create_process): Clean up merger residues of
2229 2008-07-17 change.
2230
91f68422
CY
22312009-04-29 Ulrich Mueller <ulm@gentoo.org>
2232
2233 * lread.c (Vread_circle): New variable.
2234 (read1): Disable recursive read if Vread_circle is nil.
2235
24b34550
KH
22362009-04-29 Kenichi Handa <handa@m17n.org>
2237
2238 * fontset.h (set_default_ascii_font): Delete extern.
2239
2240 * fontset.c (set_default_ascii_font): Delete this unused function.
2241
2242 * frame.c (x_set_font): When ARG is a font-object, check if the
2243 font-object matches with the ASCII font-spec of the frame's
9c358bda 2244 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2245
77bf07e1
AS
22462009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2247
2248 * fns.c (Flocale_info): Protect vector from GC during decoding.
2249
2250 * process.c (Fstart_process): Protect argv strings from GC during
2251 encoding.
2252
2c55aacf
AS
22532009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2254
2255 * sysdep.c: Include <ctype.h>.
2256
b892d3c9
DR
22572009-04-27 David Reitter <david.reitter@gmail.com>
2258
35f5b128 2259 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2260 Remove commented-out code.
2261
9d0644c4
JB
22622009-04-26 Johan Bockgård <bojohan@gnu.org>
2263
2264 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2265
b7053016
JR
22662009-04-25 Jason Rumney <jasonr@gnu.org>
2267
2268 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2269
4e8231f3
YM
22702009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2271
2272 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2273 Swap bytes in short integer if fringe bitmap width > 8.
2274
493dcf2c
KH
22752009-04-23 Kenichi Handa <handa@m17n.org>
2276
2277 * xfaces.c (Fx_list_fonts): If a font size is specified in
2278 PATTERN, set it in returned scalable fonts.
2279
401e9e57
CY
22802009-04-22 Chong Yidong <cyd@stupidchicken.com>
2281
708e05dc
CY
2282 * keyboard.c (Fset_input_meta_mode): Doc fix.
2283
2284 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2285
1ac9108a 2286 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2287
2288 * coding.c (Fterminal_coding_system): Doc fix.
2289
2290 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2291 (Fx_display_pixel_height, Fx_display_planes)
2292 (Fx_display_color_cells, Fx_server_max_request_size)
2293 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2294 (Fx_display_mm_height, Fx_display_mm_width)
2295 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2296 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2297 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2298 (check_x_display_info): Handle terminal objects instead of
2299 terminal ids.
2300
401e9e57
CY
2301 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2302 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2303 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2304 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2305
df80c7f0
KH
23062009-04-21 Kenichi Handa <handa@m17n.org>
2307
5a8f12af 2308 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2309 (font_score): Check AVGWIDTH too.
908567ef 2310
df80c7f0
KH
2311 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2312 worst case.
1ac9108a
SM
2313 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2314 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2315
705af33f
JR
23162009-04-19 Jason Rumney <jasonr@gnu.org>
2317
2318 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2319 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2320
2321 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2322 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2323 get_phys_cursor_geometry.
2324
b71ac3dd 2325 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2326 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2327 using get_phys_cursor_geometry.
2328
2329 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2330 correctly calculated.
2331
dc2933eb
JD
23322009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2333
1ac9108a
SM
2334 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2335 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2336 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2337 is deprecated.
2338
973e7849
AS
23392009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2340
2341 * font.c (font_put_frame_data): Use xfree instead of free.
2342
314d66f4
JB
23432009-04-17 Juanma Barranquero <lekktu@gmail.com>
2344
2345 * w32font.c (Qja, Qko): Remove declarations.
2346 (syms_of_w32font): Don't DEFSYM them.
2347
cf702558
CY
23482009-04-17 Chong Yidong <cyd@stupidchicken.com>
2349
2350 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2351
2352 * font.h (Qja, Qko): Extern them.
2353
2354 * ftfont.c (Qja, Qko): Remove declarations.
2355
2356 * xfont.c (Qja, Qko): Remove declarations.
2357
b50504f5
KH
23582009-04-17 Kenichi Handa <handa@m17n.org>
2359
bde25748
KH
2360 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2361 string from a vector to handle Latin-1 characters correctly.
2362
b50504f5
KH
2363 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2364 entity even if the cache hits.
2365
f4646fff
AS
23662009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2367
2368 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2369 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2370
e7deaab0
AS
2371 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2372 * lisp.h: Adjust prototypes.
2373
0a0e7d49
CY
23742009-04-16 Chong Yidong <cyd@stupidchicken.com>
2375
2376 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2377 change (Bug#3003).
2378
3c908a57
KH
23792009-04-16 Kenichi Handa <handa@m17n.org>
2380
1ac9108a 2381 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2382
2383 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2384 adstyle.
2385
2386 * ftfont.c (Qja, Qko): Don't make them static.
2387 (enum ftfont_cache_for): New enum.
2388 (fc_charset_table): Undo the previous change.
2389 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2390 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2391 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2392 non-scarable font, try to get AVERAGE_WIDTH.
2393 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2394 Change ft_face_cache from a list of a hash-table. Don't check
2395 `ja' and `ko' adstyle here.
2396 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2397 FTFONT_CACHE_FOR_CHARET.
2398 (ftfont_get_charset): Undo the previous change.
1ac9108a 2399 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2400 (ftfont_close): Likewise.
2401 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2402
2403 * font.c (font_sort_entites): Change the meaning of the arg
2404 BEST-ONLY. Don't optimize for VEC of lenght 1.
2405 (font_select_entity): Just return the value of font_sort_entites.
2406
2407 * xfaces.c (merge_face_vectors): Reflect font properties in
2408 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2409 font_clear_prop if a face attribute doesn't change.
2410
3c908a57
KH
2411 * charset.h (charset_ksc5601): Extern it.
2412
2413 * charset.c (charset_ksc5601): New variable.
2414 (Fdefine_charset_internal): Set charset_ksc5601.
2415 (init_charset_once): Initialize charset_ksc5601 to -1.
2416
d65859c3
DN
24172009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2418
2419 * fileio.c (history_delete_duplicates): Remove unused declaration.
2420
2421 * callint.c (history_delete_duplicates): New declaration.
2422 (Fcall_interactively): Remove command history duplicates when
2423 history_delete_duplicates is true.
2424
3ba010e5
EZ
24252009-04-14 Eli Zaretskii <eliz@gnu.org>
2426
2427 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2428
06f19b91
KH
24292009-04-14 Kenichi Handa <handa@m17n.org>
2430
2431 * font.c (Ffont_info): Fix docstring. Fix the second element of
2432 the returned value (bug#2949).
2433
2cce8bfc
CY
24342009-04-14 Chong Yidong <cyd@stupidchicken.com>
2435
2436 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2437
d156542d
KH
24382009-04-14 Kenichi Handa <handa@m17n.org>
2439
2440 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2441 encoding charset is ascii_compatible.
2442
2443 * charset.c (Fdefine_charset_internal): Make charset
2444 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2445 code_offset is 0, and covers all ASCII characters.
2446
86fa089e
SM
24472009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2448
2449 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2450 (ns_string_to_pasteboard_internal):
2451 * nsmenu.m (process_dialog):
2452 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2453 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2454 * lisp.h (Fx_load_color_file): Declare.
2455
a8a3728b
KH
24562009-04-13 Kenichi Handa <handa@m17n.org>
2457
1ac9108a 2458 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2459 (font_select_entity): Suppress the code to optimize for the same
2460 kind of fonts.
2461 (font_load_for_lface): Get a font that supports at least ASCII
2462 characters.
2463
2464 * ftfont.c (Qja, Qko): New variables.
2465 (fc_charset_table): Delete uniquifier data for iso8859-1.
2466 (ftfont_get_latin1_charset): New function.
2467 (get_adstyle_property): New function.
2468 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2469 bitmap fonts.
2470 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2471 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2472 `ko' or `ja'.
2473 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2474 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2475 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2476 property.
2477 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2478 (syms_of_ftfont): DEFSYM Qja and Qko.
2479
483670b5
KH
24802009-04-09 Kenichi Handa <handa@m17n.org>
2481
12b55765
KH
2482 * charset.c (map_charset_chars): For a charset of `superset'
2483 method, fix calculation of code range.
2484
483670b5
KH
2485 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2486 from the list of extra properties.
2487 (font_clear_prop): Be sure to delete `:name' font property.
2488
57d3b93b
KH
24892009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2490
b4b2c2ca
YM
2491 * dispnew.c (redraw_overlapping_rows): Fix detection of
2492 overlapping for topmost and bottommost rows.
2493
1ac9108a 2494 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2495
472c3609
JR
24962009-04-06 Jason Rumney <jasonr@gnu.org>
2497
2498 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2499
ab193662
KH
25002009-04-06 Kenichi Handa <handa@m17n.org>
2501
2502 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2503
2504 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2505
0c26f026
KH
25062009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2507
2508 * ftfont.c (ftfont_open): Fix checking of the return value of
2509 FT_Load_Char. Fix setting font->underline_thickness.
2510
e173bbce
CY
25112009-04-04 Chong Yidong <cyd@stupidchicken.com>
2512
2513 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2514 (Fterminal_parameters, Fterminal_parameter)
2515 (Fset_terminal_parameter): In doc string, refer to terminal
2516 objects rather than terminal ids.
2517
693a2698
EZ
25182009-04-04 Eli Zaretskii <eliz@gnu.org>
2519
2520 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2521 ret_lim_data. (Bug#2867)
2522
d5221487
CY
25232009-04-03 Chong Yidong <cyd@stupidchicken.com>
2524
2525 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2526 so they don't get wider than the window, matching 2006-01-23
2527 change to the partner function in xdisp.c (Bug#2800).
2528
223509a3
KH
25292009-04-03 Kenichi Handa <handa@m17n.org>
2530
2531 * print.c (print_object): Make each lowest sub_char_table start a
2532 new line (Bug#2866).
2533
74fcd0b1
KH
25342009-04-02 Kenichi Handa <handa@m17n.org>
2535
2536 * fontset.c (fontset_font): Record no-font when a fontset
2537 explicitly tells not to try another font-specs.
2538
c542407d
SM
25392009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2540
2541 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2542
e3869731
KH
25432009-03-30 Kenichi Handa <handa@m17n.org>
2544
d8d2f142
KH
2545 * fontset.c (fontset_from_font): Specify only registry in a
2546 font-spec for all characters supported by that registry.
2547
e3869731
KH
2548 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2549 even if HAVE_M17N_FLT is not defined.
2550
5da5f805
CY
25512009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2552
2553 * ftfont.c: Conditionalize prototyping and use of
2554 ftfont_variation_glyphs.
2555
ab226c50
SM
25562009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2557
9628fed7
SM
2558 * frame.c (delete_frame): Work around compiler bug.
2559
2560 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2561 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2562 Some more EMACS_INT.
2563 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2564
2565 * xdisp.c (dump_glyph): Fix typo.
2566
ae19ba7c
SM
2567 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2568 (adjust_markers_gap_motion, adjust_markers_for_delete)
2569 (adjust_markers_for_insert, adjust_point)
2570 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2571 (make_gap, copy_text, count_size_as_multibyte, insert)
2572 (insert_and_inherit, insert_before_markers)
2573 (insert_before_markers_and_inherit, insert_1)
2574 (count_combining_before, count_combining_after, insert_1_both)
2575 (insert_from_string, insert_from_string_before_markers)
2576 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2577 (insert_from_buffer_1, adjust_after_replace)
2578 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2579 (replace_range_2, del_range, del_range_1, del_range_byte)
2580 (del_range_both, del_range_2, modify_region)
2581 (prepare_to_modify_buffer, signal_before_change)
2582 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2583 for buffer positions and sizes.
2584 * lisp.h: Adjust prototypes accordingly.
2585
2586 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2587 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2588 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2589
ab226c50
SM
2590 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2591
46dfb8fb
JD
25922009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2593
2594 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2595 lines and columns so we keep the same pixel height and width.
2596
2597 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2598 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2599 (x_handle_net_wm_state): New function to update frame parameter
2600 fullscreen.
2601 (x_term_init): Initialize atoms for _NET_WM_STATE.
2602
2603 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2604
d347e494
SM
26052009-03-27 Kevin Ryde <user42@zip.com.au>
2606
2607 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2608 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2609 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2610 (Fgpm_mouse_stop): Pass that new parameter.
2611 * termhooks.h (close_gpm): Adjust prototype.
2612
84db11d6
SM
26132009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2614
c95a5008
SM
2615 * lisp.h (Fx_focus_frame): Declare.
2616
84db11d6
SM
2617 * callint.c (Fcall_interactively): For '^' just delegate the work to
2618 handle-shift-selection.
2619 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2620
0a1958d6
CY
26212009-03-24 Chong Yidong <cyd@stupidchicken.com>
2622
0bfdff23
CY
2623 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2624
0a1958d6
CY
2625 * data.c (Qinteractive_form): New variable.
2626 (Finteractive_form): Use it.
2627
2628 * eval.c (Fcommandp): Use Qinteractive_form.
2629
58aec0d6
JR
26302009-03-24 Jason Rumney <jasonr@gnu.org>
2631
2632 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2633 Calculate total size precisely. Decode environment variables
2634 before substituting. (Bug#38)
2635
553dd618
KH
26362009-03-24 Kenichi Handa <handa@m17n.org>
2637
2638 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2639 encoding (Bug#2722).
553dd618 2640
c39ea606
JD
26412009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2642
2643 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2644 that gdpy is set.
2645
bc9b2b5e
AM
26462009-03-22 Alan Mackenzie <acm@muc.de>
2647
2648 * callint.c (Finteractive): Clarify the doc string - even
2649 promptless elements need \n separators.
2650
9f995a76
JR
26512009-03-22 Jason Rumney <jasonr@gnu.org>
2652
2653 * w32term.c (syms_of_w32term): Doc fix for
2654 x-use-underline-position-properties.
2655
22749e9a
EZ
26562009-03-21 Eli Zaretskii <eliz@gnu.org>
2657
2658 * w32.c (getpwuid): Change argument type to unsigned.
2659 (struct w32_id): Change type of `rid' member to unsigned.
2660 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2661 argument ID to unsigned. All callers changed.
2662 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2663
e00553bf
EZ
26642009-03-20 Eli Zaretskii <eliz@gnu.org>
2665
2666 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2667 negative, produce a float value.
2668
2669 * dired.c (make_uid, make_gid): New functions.
2670 (Ffile_attributes): Use them to avoid negative UID and GID.
2671
f761d6b6
JB
26722009-03-20 Juanma Barranquero <lekktu@gmail.com>
2673
2674 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2675 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2676 Fix typos in docstrings.
2677
d507f8d7
KH
26782009-03-19 Kenichi Handa <handa@m17n.org>
2679
2680 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2681 changed, use font_load_for_lface to get a new font object.
2682 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2683
2684 * frame.c (x_set_font): Handle the case that ARG is a cons.
2685
c68845e0
GM
26862009-03-19 Glenn Morris <rgm@gnu.org>
2687
2688 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2689
bfa49dd1
CY
26902009-03-19 Chong Yidong <cyd@stupidchicken.com>
2691
2692 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2693
8458d4c1
KH
26942009-03-19 Kenichi Handa <handa@m17n.org>
2695
2696 * charset.c (load_charset_map_from_file): When a mapfile can't be
2697 loaded, signal an error.
2698
78e7d1fe
EZ
26992009-03-18 Eli Zaretskii <eliz@gnu.org>
2700
2701 * dired.c (Ffile_attributes): Make sure UID and GID are always
2702 positive, even if the value is too large for a positive EMACS_INT.
2703 Doc fix.
2704
2705 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2706
5da9fdfa
YM
27072009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2708
2709 * xmenu.c (xdialog_show): Move Fredisplay call ...
2710 (Fx_popup_dialog): ... here.
2711
7519c40d
SM
27122009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2713
2714 * dired.c (file_name_completion): Disable the first optimization just
2715 installed, since it is not implemented correctly.
2716
2cd298e2
SM
27172009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2718
2719 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2720 only if the entry can affect bestmatch.
2cd298e2
SM
2721 Stop the search early, as Ftry_completion already does.
2722
48d37adf
CY
27232009-03-17 Chong Yidong <cyd@stupidchicken.com>
2724
e10c9c93 2725 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2726
9286b16a
CY
27272009-03-15 Chong Yidong <cyd@stupidchicken.com>
2728
2729 * keyboard.c (parse_menu_item): Don't display remappings as menu
2730 equivalent bindings (Bug#788).
2731
f7b146dc
JR
27322009-03-15 Jason Rumney <jasonr@gnu.org>
2733
2734 * w32term.h (WM_EMACS_PAINT): New message.
2735 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2736 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2737 before passing to lisp thread. (Bug#950)
2738
f761d6b6 27392009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2740
d93f9575
CY
2741 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2742 variable as it was never reset.
2743 (ns_term_init): Remove initialization of Lisp-settable defaults
2744 and ns_expand_space.
2745 (-setPanelFromDefaultValues): Remove ns_expand_space.
2746 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2747 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2748 i.e. no additional spacing, similar to Carbon port.
2749
d93f9575
CY
2750 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2751 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2752
305018ec
JD
27532009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2754
2755 * sound.c (alsa_configure): Remove call to deprecated
2756 snd_pcm_sw_params_set_xfer_align.
2757
f761d6b6 27582009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2759
2760 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2761 after clicking in a detached tool bar.
2762 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2763
46e722a9
SM
27642009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2765
348db3dd
SM
2766 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2767 int/Lisp_Object mixup).
46e722a9 2768
a3d16f39
KH
27692009-03-13 Kenichi Handa <handa@m17n.org>
2770
2771 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2772 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2773 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2774 (set_fontset_font): Change ARG to a vector. Handle range_list in
2775 ARG correctly.
2776 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2777 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2778 the above change.
2779 (fontset_from_font): Fix previous change.
fe24f56a 2780 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2781 entry. If FONTSET is the default fontset, don't set the extra
2782 slot of the returning char-table.
2783
b066e6b6
JB
27842009-03-12 Juanma Barranquero <lekktu@gmail.com>
2785
2786 * nsfns.m (Fx_close_connection): Doc fix.
2787 (Fns_do_applescript): Reflow docstring.
2788 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2789 (Fx_display_pixel_width, Fx_display_pixel_height)
2790 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2791 Fix typos in docstrings.
2792 (Fns_set_alpha): Fix typos in error messages.
2793
d472514e 27942009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 2795
d472514e 2796 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
2797 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2798 were used for such events.
2799
d472514e
JB
2800 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2801 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 2802
d472514e 2803 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
2804 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2805
fb930676
KH
28062009-03-11 Kenichi Handa <handa@m17n.org>
2807
ff85581a
KH
2808 * font.h (font_open_by_spec): Extern it.
2809
c50b7e98
KH
2810 * font.c (font_open_by_spec): New function.
2811 (font_open_by_name): Use font_open_by_spec.
2812
fb930676
KH
2813 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2814 fontset of the frame.
2815
2816 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2817 modify the default font of frames that use this fontset.
2818 (num_auto_fontsets): New variable.
2819 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2820 name. Be sure to set FONTSET_ASCII to the correct font name.
2821 (update_auto_fontset_alist): New function.
2822
df4e8455
JB
28232009-03-11 Juanma Barranquero <lekktu@gmail.com>
2824
2825 * makefile.w32-in: Update dependencies.
2826
0a375797
AR
28272009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2828
2829 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2830
61313fa3
SM
28312009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2832
2833 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2834
b55103fb
CY
28352009-03-10 Chong Yidong <cyd@stupidchicken.com>
2836
2837 * lread.c (Feval_buffer): Doc fix.
2838
dde2559c
KH
28392009-03-09 Kenichi Handa <handa@m17n.org>
2840
2841 * charset.c (Qfile_name_handler_alist): Extern it.
2842 (load_charset_map_from_file): Temporarily bind
2843 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2844
df4e8455 28452009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2846
47f588bb
GM
2847 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2848 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2849
4ddf94bd
AR
28502009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2851
4c9bdfc2
AR
2852 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2853 (x_set_window_size): Change back to calculated method of setting
2854 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
2855 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2856 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2857
fe41ae9e
AR
2858 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2859
4c9bdfc2
AR
2860 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2861 accelerator in parens under GNUstep.
2862
825d0875
KH
28632009-03-06 Kenichi Handa <handa@m17n.org>
2864
2865 These changes are to detect incorrect composition sequence without
f3b3be74 2866 looking ahead the source. (Bug#2370)
825d0875
KH
2867
2868 * coding.h: Include "composite.h".
2869 (enum compisition_state): New enum.
2870 (struct compisition_status): New struct.
2871 (struct iso_2022_spec): New member cmp_status.
2872 (struct emacs_mule_spec): New struct.
2873 (struct coding_system): New members ctext_extended_segment_len and
2874 embedded_utf_8. Change the union member
2875 spec.emacs_mule_full_support to spec.emacs_mule.
2876
2877 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2878 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 2879 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
2880 (ADD_COMPOSITION_DATA): New arg nbytes.
2881 (emacs_mule_char): New arg cmp_status.
2882 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2883 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2884 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2885 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2886 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2887 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2888 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2889 (EMACS_MULE_COMPOSITION_END): New macro.
2890 (emacs_mule_finish_composition): New function.
2891 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2892 (decode_coding_emacs_mule): Avoid long looking ahead while
2893 handling composition.
2894 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2895 (ENCODE_COMPOSITION_RULE): New macro.
2896 (finish_composition): New function.
2897 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2898 (DECODE_COMPOSITION_START): New implementation.
2899 (DECODE_COMPOSITION_END): Likewise.
2900 (STORE_COMPOSITION_RULE): New macro.
2901 (decode_coding_iso_2022): Avoid long looking ahead while handling
2902 composition, CTEXT extended segment, and embedded UTF-8.
2903 (setup_coding_system): For a coding of type iso-2022, reset
2904 CODING_ISO_EXTSEGMENT_LEN (coding) and
2905 CODING_ISO_EMBEDDED_UTF_8 (coding).
2906 (get_translation): Delete arguments last_block, from_nchars,
2907 to_nchars. Callers changed.
2908 (produce_chars): Don't modify charbuf. Adjusted for the change of
2909 get_translation.
98a326f7 2910 (produce_composition): Adjust for the new annotation sequence.
825d0875 2911 (handle_composition_annotation): Likewise.
98a326f7 2912 (consume_chars): Adjust for the change of get_translation.
825d0875 2913
ccbc4452
AR
29142009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2915
4ddf94bd 2916 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 2917
988a7ddb
KH
29182009-03-05 Kenichi Handa <handa@m17n.org>
2919
2920 * font.c (font_select_entity): New function.
2921 (font_find_for_lface): Use font_select_entity to select a font.
2922
2923 * fontset.c (fontset_find_font): If a font found without
a8a3728b 2924 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
2925 font with C restriction.
2926
98a326f7 29272009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 2928
be1bce46 2929 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 2930
10ea2b82
JR
29312009-03-04 Jason Rumney <jasonr@gnu.org>
2932
2c93b248 2933 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 2934 characters that have already been read. (Bug#2569)
2c93b248 2935
10ea2b82
JR
2936 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2937 Log an error message if check_image_size failed.
2938 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 2939 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 2940
71a0c011
EZ
29412009-03-02 Eli Zaretskii <eliz@gnu.org>
2942
2943 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2944 when decoding process output.
2945
2f63bba8
RS
29462009-03-01 Richard M Stallman <rms@gnu.org>
2947
2948 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2949
2950 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2951
0a9564cb
EZ
29522009-02-28 Eli Zaretskii <eliz@gnu.org>
2953
2954 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2955 (decode_coding_emacs_mule, decode_coding_iso_2022)
2956 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2957 (decode_coding_raw_text, decode_coding_charset)
2958 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2959 Honor inhibit-eol-conversion. (Bug #2186)
2960
449148b3
JR
29612009-02-28 Jason Rumney <jasonr@gnu.org>
2962
2963 * coding.c (detect_coding_charset): If not checking latin extra,
2964 fail on characters between 0x80 and 0xA0. (Bug#2354)
2965
a4aee864
EZ
29662009-02-28 Eli Zaretskii <eliz@gnu.org>
2967
2968 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 2969 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 2970
d88bee5a
GM
29712009-02-27 Glenn Morris <rgm@gnu.org>
2972
2973 * callint.c (Finteractive): Doc fix.
2974
a808f22d
KH
29752009-02-27 Kenichi Handa <handa@m17n.org>
2976
2977 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2978
caf8d60c
CY
29792009-02-27 Chong Yidong <cyd@stupidchicken.com>
2980
2981 * font.c (font_style_to_value): Set value for unknown symbols to
2982 100 instead of 255.
b61137ea
CY
2983 (weight_table, slant_table, width_table): Treat "unspecified" as
2984 the default value.
caf8d60c 2985
1a0de25c
JB
29862009-02-26 Juanma Barranquero <lekktu@gmail.com>
2987
2988 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2989
8fc45744
JB
29902009-02-25 Juanma Barranquero <lekktu@gmail.com>
2991
107bd7d1
JB
2992 * lread.c (Fload): Stop checking Vloads_in_progress and signal
2993 error as soon as a recursive load is detected.
8fc45744 2994
f097e223
AR
29952009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2996
2997 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
2998 before caching.
2999
8810a12f
KH
30002009-02-24 Kenichi Handa <handa@m17n.org>
3001
3002 * fontset.c (fontset_find_font): Fix the condition for checking
3003 unavailable font.
3004
2c7d1565
GM
30052009-02-24 Glenn Morris <rgm@gnu.org>
3006
3007 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3008 whitespace that confuses documentation.
3009
a20878b6
MB
30102009-02-23 Miles Bader <miles@gnu.org>
3011
3012 * process.c (Flist_system_processes, Fprocess_attributes)
3013 (syms_of_process): Rename `system-process-attributes' to
3014 `process-attributes'.
3015
b3b58c01
AS
30162009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3017
1b3b981b
AS
3018 * coding.h (struct coding_system): Make safe_charsets a pointer to
3019 unsigned char.
3020 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3021 being 255.
3022 (SAFE_CHARSET_P): Likewise.
3023 (setup_iso_safe_charsets): Properly setup safe_charsets.
3024 (Fdefine_coding_system_internal): Likewise.
3025 (setup_coding_system): Likewise. Remove unneeded casts.
3026 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3027 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3028 unneeded casts.
3029
b3b58c01
AS
3030 * insdel.c (del_range_2): Don't modify gap contents when called
3031 from decode_coding_object. (Bug#1809)
3032
0b6f228c
CY
30332009-02-21 Chong Yidong <cyd@stupidchicken.com>
3034
3035 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3036 Qfont_object.
3037 (Ftype_of): Recognize font objects.
3038
3039 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3040
3041 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3042 moved to data.c.
3043
52f8870b
AR
30442009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3045
3046 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3047 async_iconified. Based on a patch by Christian Lynbech
3048 <christian.lynbech@tieto.com>.
3049 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3050
7087d5e9
GM
30512009-02-20 Glenn Morris <rgm@gnu.org>
3052
3053 * syntax.c (Fskip_chars_forward): Fix doc typo.
3054
41d2ceef
CY
30552009-02-20 Chong Yidong <cyd@stupidchicken.com>
3056
3057 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3058
1a3b7ca6
CY
30592009-02-19 Chong Yidong <cyd@stupidchicken.com>
3060
3061 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3062
73cce38d
KH
30632009-02-19 Kenichi Handa <handa@m17n.org>
3064
3065 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3066 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3067
a51092ee
DN
30682009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3069
3070 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3071
c423ecca
KH
30722009-02-18 Kenichi Handa <handa@m17n.org>
3073
3074 * font.c (font_check_otf_features): Fix handling of `nil' element.
3075 (Ffont_spec): Describe :lang and :otf in the docstring.
3076
4c1958f4
AS
30772009-02-16 Andreas Schwab <schwab@suse.de>
3078
3079 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3080 string.
3081
5704f39a
KH
30822009-02-16 Kenichi Handa <handa@m17n.org>
3083
3084 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3085 (Bug#1723)
5704f39a 3086
8f0085aa
CY
30872009-02-14 Chong Yidong <cyd@stupidchicken.com>
3088
a057d86a 3089 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3090
3091 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3092 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3093
aff01dd9
EZ
30942009-02-14 Eli Zaretskii <eliz@gnu.org>
3095
3096 * msdos.c (MAX_SCREEN_BUF): New macro.
3097 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3098 Encode the entire run of glyphs sharing the same face, instead of
3099 doing that one glyph at a time (fixes a bug with displaying
3100 double-size characters).
3101
ba301db3
AR
31022009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3103
3104 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3105
3106 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3107 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3108 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3109
3110 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3111 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3112
51d861de
SM
31132009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3114
3115 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3116 invisible areas.
3117
7fed8996
JR
31182009-02-12 Jason Rumney <jasonr@gnu.org>
3119
631ea4fb
JR
3120 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3121 (add_font_entity_to_list): Call check_face_name even when family
3122 is unspecified.
3123
cb4a3e42
JR
3124 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3125 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3126 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3127
7fed8996 3128 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3129 raster fonts. (Bug#2219)
7fed8996 3130
895416e3
KH
31312009-02-12 Kenichi Handa <handa@m17n.org>
3132
3133 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3134 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3135 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3136 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3137 (find_automatic_composition): While looking forward and backward,
3138 check static composition. Fix where to stop looking forward.
3139 (composition_adjust_point): Fix checking of static composition.
3140 (Fcomposition_get_gstring): Pay attention to
1dacf998 3141 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3142
3143 * lisp.h (fast_looking_at): Extern it.
3144
3145 * search.c (fast_looking_at): New function.
3146
51d861de 3147 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3148 <struct glyph>.u.cmp.to.
3149 (append_composite_glyph): Likewise.
3150
51d861de 3151 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3152 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3153 composition.
51d861de 3154 (append_composite_glyph): Adjust for the change of
895416e3
KH
3155 <strcut glyph>.u.cmp.to.
3156
8510724d
JB
31572009-02-11 Juanma Barranquero <lekktu@gmail.com>
3158
3159 * casetab.c (init_casetab_once):
3160 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3161 * font.c (font_update_lface):
3162 * fontset.c (Fnew_fontset):
3163 * ftfont.c (ftfont_drive_otf):
3164 * xfont.c (xfont_open):
3165 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3166
294fa707
SM
31672009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3168
3169 * fileio.c (Fwrite_region): !NILP -> CONSP.
3170
b5bfebec
AS
31712009-02-10 Andreas Schwab <schwab@suse.de>
3172
3173 * process.c (send_process): Properly relocate pointer into data
adab88bd 3174 when using encoded data. (Bug#2272)
b5bfebec 3175
cb84a2be
KH
31762009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3177
3178 * coding.c (detect_coding_charset): Fix previous change.
3179
89e09428
JR
31802009-02-08 Jason Rumney <jasonr@gnu.org>
3181
3182 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3183 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3184
4470a277
AS
31852009-02-07 Andreas Schwab <schwab@suse.de>
3186
3187 * unexelf.c (unexec): Fix error message.
3188
3175b12a
AR
31892009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3190
3191 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3192 when modal window is active. (Bug #2152)
3175b12a
AR
3193 (applicationShouldTerminate:): Remove now-unneeded while loop
3194 around NSRunAlertPanel.
3195
3196 * nsmenu.m (popupSession): New file-global variable.
3197 (pop_down_menu): End the popupSession before closing dialog.
3198 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3199 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3200 don't query NSApp for events (just sleep instead).
3201
8434d0b8
EZ
32022009-02-07 Eli Zaretskii <eliz@gnu.org>
3203
51d861de
SM
3204 * coding.c (syms_of_coding) <translation-table-for-input>:
3205 Modify doc string to discourage use for character code unification.
8434d0b8 3206
aa82edfd
CY
32072009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3208
3209 * atimer.c (run_timers): Update pending_atimers.
3210
2d283c7c
CY
32112009-02-06 Chong Yidong <cyd@stupidchicken.com>
3212
eb306cab
CY
3213 * image.c (svg_load_image): Fix last change.
3214
2d283c7c
CY
3215 * xfns.c (Fx_create_frame): Signal an error if no font is
3216 found (Bug#2147).
3217
4d8e170e
JB
32182009-02-05 Juanma Barranquero <lekktu@gmail.com>
3219
3220 * character.c (syms_of_character) <script-representative-chars>:
3221 Fix typo in docstring.
3222
c96169a0
AR
32232009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3224
3225 * nsmenu.m (pop_down_menu): New function.
3226 (ns_popup_dialog): Call it on unwind.
3227 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3228 call timer_check() (Bug#2154).
3229 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3230 handling_signal is set.
3231 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3232
31fd7c5c 3233 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3234
3235 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3236
3237 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3238
51d861de
SM
3239 * keyboard.c (poll_for_input_1, handle_async_input):
3240 Set handling_signal under HAVE_NS.
c96169a0 3241
aacd8ba1
GM
32422009-02-04 Glenn Morris <rgm@gnu.org>
3243
3244 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3245
4cb75c4b
KH
32462009-02-04 Kenichi Handa <handa@m17n.org>
3247
3248 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3249
3250 * charset.c (Fchar_charset): New optional arg restriction.
3251
3252 * coding.h (coding_system_charset_list): Extern it.
3253
3254 * coding.c (coding_system_charset_list): New function.
3255
3256 * composite.c: Include coding.h and termhooks.h.
3257 (composition_gstring_p): Fix for the terminal case.
3258 (composition_gstring_width): Likewise.
3259 (fill_gstring_body): Likewise.
3260 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3261 the frame.
3262 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3263 is within a composition.
867d4bb3 3264 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3265
3266 * term.c (encode_terminal_code): Fix handling of composition.
3267 (produce_composite_glyph): For static composition, get pixel_width
3268 from struct composition.
3269
826ba17e
AS
32702009-02-02 Andreas Schwab <schwab@suse.de>
3271
3272 * unexelf.c (unexec): Handle unaligned bss offset.
3273
8ad093db
AR
32742009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3275
3276 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3277 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3278
8ad093db
AR
3279 * keyboard.c (handle_interrupt): Don't call
3280 quit_throw_to_read_char() under NS.
d0a76a6e 3281
8ad093db
AR
3282 * blockinput.h: Remove NS-specific code.
3283
4d18a7a2
DN
32842009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3285
db878925
DN
3286 * dispnew.c (window_change_signal): Don't try to get the size of a
3287 suspended tty frame.
3288 * term.c (Fresume_tty): Resize if the size has changed while the
3289 tty was suspended.
3290
4d18a7a2
DN
3291 * alloc.c (mark_stack): Properly conditionalize previous change.
3292
8984df7c
JB
32932009-01-30 Juanma Barranquero <lekktu@gmail.com>
3294
3295 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3296 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3297 Remove; this code is not used on Windows.
3298
75f4f1ac
EZ
32992009-01-30 Eli Zaretskii <eliz@gnu.org>
3300
3301 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3302 EOLs that also has stray ^M characters.
3303
07a1e794
JB
33042009-01-30 Juanma Barranquero <lekktu@gmail.com>
3305
3306 * atimer.c (run_timers, alarm_signal_handler):
3307 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3308 * w32inevt.c (w32_console_read_socket):
3309 * w32term.c (w32_read_socket):
3310 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3311
a8b11cc9
CY
33122009-01-30 Chong Yidong <cyd@stupidchicken.com>
3313
3314 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3315 Initialize it as a relative filename pattern.
3316 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3317 (Fcall_process_region): Simplify temp file creation using
3318 temporary-file-directory.
3319
c279587b
EZ
33202009-01-29 Eli Zaretskii <eliz@gnu.org>
3321
3322 * msdos.c: Rename pending_signals to msdos_pending_signals.
3323 (sig_suspender, sigprocmask): Adjust.
3324
a8fe3242
CY
33252009-01-29 Chong Yidong <cyd@stupidchicken.com>
3326
3327 * keyboard.c (pending_signals): New var.
3328 (poll_for_input, input_available_signal, init_keyboard): Set it.
3329 (process_pending_signals): New function.
3330
3331 * lisp.h (QUIT): Check pending_signals instead of
3332 interrupt_input_pending. Use process_pending_signals.
3333
51d861de 3334 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3335
51d861de 3336 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3337
3338 * sysdep.c (emacs_write): Use process_pending_signals.
3339
3340 * xterm.c (XTread_socket): Update pending_signals.
3341
3342 * w32term.c (w32_read_socket): Update pending_signals.
3343
3344 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3345
6570a1c4
KH
33462009-01-29 Kenichi Handa <handa@m17n.org>
3347
3348 * xftfont.c (xftfont_has_char): New function.
3349 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3350
d72a4afa
AR
33512009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3352
3353 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3354 under GNUstep.
3355 (ns_query_color): New declaration.
3356
3357 * nsterm.m (ns_confirm_quit): New variable.
3358 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3359 (EmacsApp-applicationShouldTerminate:): Use it.
3360 (EmacsPrefsController): Let user set it.
3361 (ns_query_color): New function.
3362 (ns_defined_color): Use it.
3363 (ns_initialize): Drop.
3364 (ns_term_init): Add two lines from ns_initialize(), and set
3365 input_interrupt_mode to nil.
3366
3367 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3368 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3369
9fe78804
KH
33702009-01-28 Kenichi Handa <handa@m17n.org>
3371
3372 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3373 (fontset_get_font_group): Remember that no font-group is specified
3374 for C.
9fe78804 3375
fa57de36
CY
33762009-01-27 Chong Yidong <cyd@stupidchicken.com>
3377
930600e9
CY
3378 * fns.c (concat): Check for string overflow (bug#1787).
3379
fa57de36
CY
3380 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3381 Quadruple undo limits (bug#1501).
3382
7179ce7b
KH
33832009-01-27 Kenichi Handa <handa@m17n.org>
3384
3385 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3386 directly use GT_Get_Char_index.
3387
3388 * xftfont.c (struct xftfont_info): New member `index'.
3389
3390 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3391 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3392
5be8fcc0
CY
33932009-01-26 Kenichi Handa <handa@m17n.org>
3394
3395 * fontset.c (fontset_find_font): Fix handling of non-cons return
3396 value of fontset_get_font_group.
3397 (fontset_font): Revert last change.
3398
19ae3e61
JR
33992009-01-26 Jason Rumney <jasonr@gnu.org>
3400
3401 * w32font.c (w32font_list_internal): Return quickly if registry is
3402 unknown. Simplify final return.
3403 (add_font_entity_to_list): Break complex logic down into more
3404 manageable chunks. Move unknown registry check to
3405 w32font_list_internal.
3406
8612b71a
AR
34072009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3408
3409 Changes to remove Feval calls from GUI under NS.
3410
d8038940
JB
3411 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3412 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3413 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3414
3415 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3416 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3417 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3418 instead of NON_ASCII_KEYSTROKE_EVENT.
3419 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3420 (EmacsApp-applicationShouldTerminate:): Query user.
3421 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3422 instead of Feval.
3423
3424 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3425
3426 * keyboard.c (kbd_buffer_get_event): Check for it.
3427 (keys_of_keyboard): Define lispy keys for
3428 ns-put/unput-working-text.
3429
3430 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3431 versions.
3432 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3433
6288ae55
CY
34342009-01-25 Chong Yidong <cyd@stupidchicken.com>
3435
3436 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3437 setting current_buffer directly. (Bug#2044)
6288ae55 3438
289e7f8f
CY
34392009-01-24 Chong Yidong <cyd@stupidchicken.com>
3440
5ce87308 3441 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3442 any work. (Bug#1952, bug#1990).
5ce87308 3443
64cc3cf6 3444 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3445
b3243e6f
AR
34462009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3447
3448 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3449 (ns_no_defaults): New declaration.
3450 (main): Use it.
e0d2e69a 3451
d900b2af 3452 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3453
d900b2af 3454 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3455
d900b2af
AR
3456 * nsterm.m (ns_no_defaults): New variable.
3457 (ns_initialize): Don't read defaults when ns_no_defaults.
3458 (EmacsView-readSelectionFromPasteboard:)
3459 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3460 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3461 (ns_dumpglyphs_stretch): New function.
3462 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3463 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3464
e0d2e69a
AR
3465 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3466
3ac71f5d
CY
34672009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3468
3469 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3470 call for Sparc64.
3471
3fe53a83
AR
34722009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3473
3474 * nsfns.m:
3475 * nsgui.h:
3476 * nsmenu.m:
3477 * nsselect.m:
3478 * nsterm.h:
3479 * nsterm.m: Remove '23' comments that indicated code added during
3480 update from emacs-20 -> emacs-23.
3481
10f87c6f 34822009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3483
3484 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3485 ns_alternate_modifier. (Bug#1217)
a3b53a85 3486
c7cef62d
AR
3487 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3488 Display all shortcuts, including those w/o super modifier.
3489
575fb8bd
AR
3490 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3491
918b848b
CY
34922009-01-22 Chong Yidong <cyd@stupidchicken.com>
3493
3494 * fileio.c (Vwrite_region_post_annotation_function)
3495 (Vwrite_region_annotation_buffers): New vars.
3496 (build_annotations_unwind): Just reset
3497 Vwrite_region_annotation_buffers.
3498 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3499 Call write-region-post-annotation-function.
3500 (build_annotations): Add to Vwrite_region_annotation_buffers if
3501 buffer changes.
3502
a39e2539
AR
35032009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3504
3505 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3506 Tiger.
51d861de
SM
3507 * nsfns.m (ns_do_applescript):
3508 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3509
35ed44db
AR
35102009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3511
3512 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3513
cbe0b5bf
AR
35142009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3515
3516 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3517
6049d3a0
AR
3518 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3519
3520 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3521 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3522 handle Ctrl-tab. (Bug#1841)
3523 (ns_get_color): Use unsigned long long for scanned hex string value.
3524 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3525 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3526 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3527 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3528 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3529 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3530 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3531
d3810c21 3532 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3533 DPI. (Bug#1316)
d3810c21
AR
3534 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3535 values in onTiger section.
4c7077c3 3536
e301e634
CY
35372009-01-19 Chong Yidong <cyd@stupidchicken.com>
3538
7f82490b
CY
3539 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3540 Check return value of font_spec_from_name.
64cc3cf6 3541 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3542
3543 * font.c (font_spec_from_name): Return Qnil if font name could not
3544 be parsed.
3545 (font_parse_name): Treat a `?' character as part of an XLFD.
3546
e301e634
CY
3547 * fns.c (Fsubstring): Doc fix.
3548
1c0db158
KH
35492009-01-19 Kenichi Handa <handa@m17n.org>
3550
51d861de 3551 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3552 (ftfont_list): Likewise.
3553
acf20901
JB
35542009-01-18 Juanma Barranquero <lekktu@gmail.com>
3555
fff4e459
JB
3556 * dbusbind.c (Fdbus_register_signal):
3557 * process.c (conv_sockaddr_to_lisp):
3558 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3559
acf20901
JB
3560 * callproc.c (Fgetenv_internal): Doc fix.
3561
e7abcdfb
CY
35622009-01-16 Chong Yidong <cyd@stupidchicken.com>
3563
3564 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3565 it is not even used.
3566
b60861e6
GM
35672009-01-16 Glenn Morris <rgm@gnu.org>
3568
3569 * font.c (Ffont_variation_glyphs): Silence compiler.
3570
8db52afe
JB
35712009-01-15 Juanma Barranquero <lekktu@gmail.com>
3572
3573 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3574 Reported by David Robinow <drobinow@gmail.com>.
3575
4cddb209
KH
35762009-01-15 Kenichi Handa <handa@m17n.org>
3577
51d861de 3578 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3579
f247f67b
JR
35802009-01-14 Jason Rumney <jasonr@gnu.org>
3581
3582 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3583 never a fontset. (Bug#1562)
f247f67b 3584
f56a4450
KH
35852009-01-14 Kenichi Handa <handa@m17n.org>
3586
3587 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3588 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3589
4e99855e
CY
35902009-01-13 Chong Yidong <cyd@stupidchicken.com>
3591
3592 * font.c (font_clear_prop): If clearing the family, clear the font
3593 width index too.
3594
fff4e459 3595 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3596
24f01470
JB
35972009-01-12 Juanma Barranquero <lekktu@gmail.com>
3598
3599 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3600 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3601 functions, use sizeof.
3602
a41240a3
MR
36032009-01-12 Martin Rudalics <rudalics@gmx.at>
3604
3605 * keyboard.c (read_char): Fix case where last_nonmenu_event
3606 returned a bad value with submenus. (Bug#447)
3607
944636b8
CY
36082009-01-12 Chong Yidong <cyd@stupidchicken.com>
3609
3610 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3611 family, clear the font width index too.
3612
0dad7c6f
JR
36132009-01-11 Jason Rumney <jasonr@gnu.org>
3614
3615 * keyboard.c (cmd_error_internal): Exit when errors occur before
3616 frame creation and not in daemon mode. (Bug#1836)
3617
7c2363af
CY
36182009-01-10 Chong Yidong <cyd@stupidchicken.com>
3619
3620 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3621 of a display vector, backtrack.
3622 (try_window_reusing_current_matrix): Check glyph type before
3623 referencing charpos member.
3624
97b1b294
EZ
36252009-01-10 Eli Zaretskii <eliz@gnu.org>
3626
3627 Fix Bug #876:
3628
3629 * coding.c (inhibit_null_byte_detection): New variable.
3630 (detect_coding, detect_coding_system): Don't pay attention to null
3631 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3632 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3633 <inhibit-iso-escape-detection>: Doc fix.
3634
4624b6e3
JR
36352009-01-09 Jason Rumney <jasonr@gnu.org>
3636
3637 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3638 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3639 Only report Unicode Plane 2 fonts as unicode-sip.
3640
323b840c
CY
36412009-01-09 Chong Yidong <cyd@stupidchicken.com>
3642
51d861de
SM
3643 * xfaces.c (Fx_font_family_list): Delete function.
3644 Move compatibility version to faces.el.
323b840c 3645
51d861de 3646 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3647
eba7400d
MR
36482009-01-09 Martin Rudalics <rudalics@gmx.at>
3649
3650 * frame.c (x_set_frame_parameters): Remember requested value for
3651 fullscreen before it's reset by the parameter handler.
3652
4b09796d
GM
36532009-01-09 Glenn Morris <rgm@gnu.org>
3654
3655 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3656 (last_command_event): ... and update all users.
4b09796d
GM
3657 (last_input_char): For clarity, rename to...
3658 (last_input_event): ... and update all users.
3659 (last-command-char, last-input-char): Move to subr.el as aliases.
3660 * cmds.c, commands.h: Update for last_command_char rename.
3661
14ccea62
CY
36622009-01-08 Chong Yidong <cyd@stupidchicken.com>
3663
51d861de 3664 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3665
5f004711
JR
36662009-01-08 Jason Rumney <jasonr@gnu.org>
3667
3668 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3669 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3670 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3671 Don't declare.
fff4e459 3672 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3673 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3674
b71f6f73
KH
36752009-01-07 Kenichi Handa <handa@m17n.org>
3676
50b06221 3677 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3678 remember the coding system used for decoding in
50b06221
KH
3679 coding_system (Bug#1039).
3680
b71f6f73 3681 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3682 breaking the loop. (Bug#870)
b71f6f73
KH
3683 (decode_coding_utf_16, decode_coding_emacs_mule)
3684 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3685 (decode_coding_charset): Likewise.
3686
56f668f7
MR
36872009-01-05 Martin Rudalics <rudalics@gmx.at>
3688
3689 * frame.c (x_set_frame_parameters): Make sure height (width) get
3690 applied when fullwidth (fullheight) is set. (Bug#1522)
3691
5da9424d
JB
36922009-01-04 Juanma Barranquero <lekktu@gmail.com>
3693
3694 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3695 (utc_base): Declare as ULONGLONG, not long double.
3696 (convert_time_raw): Delete.
3697 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3698 (initialize_utc_base): New function.
3699 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3700 (convert_from_time_t): Use initialize_utc_base; compute result with
3701 64-bit arithmetic.
3702 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3703
c4605e09
EZ
37042009-01-03 Eli Zaretskii <eliz@gnu.org>
3705
9acef61c 3706 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3707 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3708 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3709 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3710 [!subprocesses]: Define.
3711 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3712 (Flist_system_processes, Fsystem_process_attributes)
3713 [!subprocesses]: Call list_system_processes and
3714 system_process_attributes instead of returning Qnil.
3715
9acef61c
JB
3716 * dosfns.c (system_process_attributes, list_system_processes):
3717 New functions.
c4605e09
EZ
3718
3719 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3720
3721 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3722 Don't use the default (no-op) implementation.
3723
8b7d0a16
JR
37242009-01-03 Jason Rumney <jasonr@gnu.org>
3725
a6d46bc1
JR
3726 * keyboard.c (parse_modifiers_uncached): Wheel events are
3727 clicks (bug#687).
3728
8b7d0a16
JR
3729 * w32term.c (x_query_colors, x_query_color): New functions.
3730
3731 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3732 (svg_load_image): Cast returned pointers from dynamically loaded
3733 functions. Eliminate W32 specific code.
3734
bfe11752
DN
37352009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3736
89e2438a
DN
3737 * nsfns.m (x_set_foreground_color, x_set_background_color)
3738 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3739 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3740 x_ prefix instead of ns_. Update references.
3741 (syms_of_nsfns): Add a FIXME comment.
3742
3743 * nsterm.m (x_set_cursor_type): New prototype.
3744 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3745
bfe11752
DN
3746 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3747 for Solaris instead of incorrectly providing Qutime and Qcutime.
3748
031da700
EZ
37492009-01-02 Eli Zaretskii <eliz@gnu.org>
3750
3751 * w32.c (process_times): Compute sum of utime and stime.
3752 (system_process_attributes): Add Qtime to the alist.
3753
3754 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3755 and add them to the alist.
3756
3757 * process.c (top level) <Qtime, Qctime>: New variables.
3758 (syms_of_process): staticpro them.
3759 (Fsystem_process_attributes): Add their documentation to the doc
3760 string.
3761
3762 * process.h: Declare Qtime and Qctime.
3763
df23bf08
JR
37642009-01-02 Jason Rumney <jasonr@gnu.org>
3765
9acef61c 3766 * image.c (Qgobject): New symbol.
df23bf08
JR
3767 (syms_of_image): Initialize it.
3768 (init_svg_functions): Load some functions from gobject library.
3769
5bbdf7aa
DN
37702009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3771
3772 * frame.c (make_terminal_frame): Remove redundant code and useless
3773 block.
3774
63136da6
AS
37752009-01-01 Andreas Schwab <schwab@suse.de>
3776
3777 * process.c (conv_sockaddr_to_lisp): Add workaround for
3778 getsockname bug on BSD.
3779
9ef69046
CY
37802009-01-01 Chong Yidong <cyd@stupidchicken.com>
3781
d6fafbe0
CY
3782 * xfns.c (x_create_tip_frame): Set border width of the X window.
3783
51d861de 3784 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3785
f9c34147
JR
37862009-01-01 Jason Rumney <jasonr@gnu.org>
3787
9acef61c 3788 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
3789 Don't block input, as per earlier xterm.c changes.
3790
f5497e45
AR
37912008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3792
3793 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3794 (ns_appkit_version_int): New function.
3795 (x-server-version): Use ns_appkit_version_int and follow 21+
3796 convention of returning 3 integers.
3797
c19cab20
KH
37982008-12-30 Kenichi Handa <handa@m17n.org>
3799
3800 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3801 (CHAR_SURROGATE_PAIR_P): New macro.
3802
3803 * font.h (struct font_driver): New member get_variation_glyphs.
3804
9acef61c 3805 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
3806 (Ffont_variation_glyphs): New function.
3807 (syms_of_font): Defsubr it.
3808
3809 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3810 ftfont_variation_glyphs.
3811 (setup_otf_gstring): New function.
3812 (ftfont_drive_otf): Use it.
3813 (ftfont_shape_by_flt): Handle variation selector.
3814 (ftfont_variation_glyphs): New function.
3815
28cd591f
MR
38162008-12-30 Martin Rudalics <rudalics@gmx.at>
3817
3818 * frame.c (Vemacs_iconified): Remove.
3819
7f714baf
JR
38202008-12-30 Jason Rumney <jasonr@gnu.org>
3821
3822 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3823 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3824
9d2d22ab
CY
38252008-12-30 Chong Yidong <cyd@stupidchicken.com>
3826
3827 * indent.c (Fvertical_motion): Don't advance iterator if we have
3828 reseated to the desired position.
3829
3830 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3831 checking for pos match.
3832
545312c2
KH
38332008-12-30 Kenichi Handa <handa@m17n.org>
3834
1ede3eb6
KH
3835 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3836 just get the low 8-bit of the code.
3837
545312c2
KH
3838 * font.c (font_intern_prop): Validate str as multibyte.
3839
bd7bbf29
DN
38402008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3841
31e0750e
DN
3842 * dispextern.h (struct face): Move lface and hash from the middle
3843 of bitfields.
3844
bd7bbf29
DN
3845 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3846
b5672e7c
DN
38472008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3848
3849 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3850 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3851 instead of intervals.h.
3852
d704470f
AS
38532008-12-26 Andreas Schwab <schwab@suse.de>
3854
3855 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3856 cons.
3857
54b33868
MR
38582008-12-26 Martin Rudalics <rudalics@gmx.at>
3859
3860 * textprop.c (Qminibuffer_prompt): New variable.
3861 (syms_of_textprop): Initialize it.
3862 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3863 in minibuffer-prompt face. (Bug#1662)
3864
40b615d6
JR
38652008-12-25 Jason Rumney <jasonr@gnu.org>
3866
3867 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3868
baae5c2d
JR
38692008-12-24 Jason Rumney <jasonr@gnu.org>
3870
3871 * ralloc.c (r_alloc_reset_variable): New function.
3872
3873 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 3874 record of what points where. (Bug#716)
baae5c2d 3875
a9051c88
DN
38762008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3877
3878 * minibuf.c (read_minibuf): Follow the non-interactive case when
3879 running as a daemon, before detaching.
3880
8b146312
AS
38812008-12-22 Andreas Schwab <schwab@suse.de>
3882
3883 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3884 * gtkutil.c (free_widget_value): Use xfree instead of free.
3885
56f2de10
MR
38862008-12-22 Martin Rudalics <rudalics@gmx.at>
3887
3888 * frame.c (delete_frame): New function derived from
3889 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3890 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3891 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3892 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3893 * frame.h: Extern delete_frame.
3894 * window.c (window_loop):
3895 * terminal.c (delete_terminal):
3896 * xterm.c (x_connection_closed):
3897 * xfns.c (Fx_hide_tip):
9acef61c 3898 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 3899
1fc200d6
JR
39002008-12-21 Jason Rumney <jasonr@gnu.org>
3901
3902 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3903 when character maps to .notdef character.
3904
5e252df2
SM
39052008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3906
3907 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3908
99b72cc4
JR
39092008-12-20 Jason Rumney <jasonr@gnu.org>
3910
3911 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 3912 a graphical frame on Windows. (Bug#1325)
99b72cc4 3913
acc49a52
JD
39142008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3915
3916 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3917
6ea15123
CY
39182008-12-20 Chong Yidong <cyd@stupidchicken.com>
3919
3920 * minibuf.c (Fread_buffer): Doc fix.
3921
b2dab6c8
JR
39222008-12-20 Jason Rumney <jasonr@gnu.org>
3923
54ea0c87 3924 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 3925 server name in UNC paths. (Bug#719)
54ea0c87 3926
b2dab6c8 3927 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 3928 charbuf. (Bug#1035)
b2dab6c8 3929
6d1921be
DN
39302008-12-19 Daniel Engeler <engeler@gmail.com>
3931
3932 * sysdep.c (serial_configure): Fix typo.
3933
53934c98
DN
39342008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3935
3936 * sysdep.c: Include alloca.h.
f4f634e8
DN
3937 (system_process_attributes): Add implementation for Solaris.
3938
3939 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 3940
06e111a6
DN
39412008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3942
3943 Reorganize implementation of Flist_system_processes and
3944 Fsystem_process_attributes. No functional changes.
3945 * process.c: Don't #include pwd.h, grp.h and limits.h.
3946 (Flist_system_processes): Just call list_system_processes.
3947 (Fsystem_process_attributes): Just call system_process_attributes.
3948 (procfs_list_system_processes, time_from_jiffies)
3949 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3950 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3951
3952 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3953 (list_system_processes): Rename from
3954 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3955 Provide a do nothing implementation.
3956 (system_process_attributes): Rename from
3957 procfs_list_system_processes.
3958 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 3959 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
3960
3961 * w32.c (list_system_processes): Rename from
3962 w32_list_system_processes.
3963 (system_process_attributes): Rename from
3964 w32_system_process_attributes.
3965
3966 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3967
3968 * process.h (w32_list_system_processes)
3969 (w32_system_process_attributes): Remove.
362654a6
JB
3970 (list_system_processes, system_process_attributes):
3971 New prototypes.
06e111a6 3972
6a705b23
KH
39732008-12-19 Kenichi Handa <handa@m17n.org>
3974
3975 * xfont.c (xfont_decode_coding_xlfd): New function.
3976 (xfont_encode_coding_xlfd): New function.
3977 (xfont_list_pattern): Decode XLFD by iso-8859-1.
3978 (xfont_list): Decode and encode XLFD by iso-8859-1.
3979 (xfont_match): Likewise.
3980 (xfont_list_family): Likewise.
3981 (xfont_open): Likewise.
3982
d66c0241 3983 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
3984 names are utf-8.
3985
d66c0241 3986 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
3987 names are utf-8.
3988
5a130941
JD
39892008-12-18 Jan Djärv <jan.h.d@swipnet.se>
3990
3991 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3992 changed.
bfd20325
JD
3993 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
3994 clicked on a detached tool bar button.
5a130941 3995
fd95644b
DN
39962008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3997
3998 * emacs.c (main): Print and error and exit when no data is read
3999 from the pipe.
4000
e6eee6ae
JR
40012008-12-17 Jason Rumney <jasonr@gnu.org>
4002
4003 * w32font.c (w32font_has_char): Always return -1.
4004
a35dd56b
KH
40052008-12-16 Kenichi Handa <handa@m17n.org>
4006
4007 * font.c (font_open_entity): Fix previous change.
4008
0e3635c2
DN
40092008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4010
4011 * process.c: Include <limits.h>.
4012
d4835507 40132008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4014
4015 * font.c (font_update_drivers): Fix mistake in reconstructing the
4016 driver list.
4017
40182008-12-16 Chong Yidong <cyd@stupidchicken.com>
4019
4020 * font.c (font_clear_cache): Fix format of font cache data.
4021
e2cbc401
CY
40222008-12-15 Chong Yidong <cyd@stupidchicken.com>
4023
4024 * xftfont.c (xftfont_open): Free Xft font pattern if
4025 XftFontOpenPattern fails.
4026
4027 * xterm.c (x_free_frame_resources): Remove extraneous call to
4028 free_frame_faces.
4029
b131d535
CY
40302008-12-13 Chong Yidong <cyd@stupidchicken.com>
4031
4032 * xterm.c (x_delete_display): Move xim_close_dpy call to
4033 x_delete_terminal.
4034 (x_delete_terminal): Call xim_close_dpy.
4035
e6df5336
JR
40362008-12-13 Jason Rumney <jasonr@gnu.org>
4037
4038 * w32font.c (intern_font_name): New function.
4039 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4040 (w32font_open_internal, Fx_select_font): Decode font name.
4041 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4042
4043 * w32font.h (intern_font_name): Declare new function.
4044
4045 * w32uniscribe.c (add_opentype_font_name_to_list):
4046 Use intern_font_name.
4047
20d68145
CY
40482008-12-13 Chong Yidong <cyd@stupidchicken.com>
4049
9f2554de
CY
4050 * frame.c (Fdelete_frame): Call free_font_driver_list.
4051
3d9bec9a
CY
4052 * font.c (free_font_driver_list): Implement missing function.
4053
20d68145
CY
4054 * w32term.c (w32_term_init): Don't initialize the image cache
4055 here; it will be done in init_frame_faces.
4056
4057 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4058 (struct x_display_info): Remove unused member null_pixel. New
4059 member xim_callback_data.
4060
4061 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4062 (xim_initialize): Save pointer to callback function data.
4063 (xim_close_dpy): Free callback function data. Call XCloseIM,
4064 reverting 2008-11-04 change by David Smith.
4065 (x_term_init): Don't initialize the image cache here; it will be
4066 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4067 (x_delete_display): Free x_dnd_atoms member.
4068
96f9306b
KH
40692008-12-13 Kenichi Handa <handa@m17n.org>
4070
6dec9044
JB
4071 * font.c (font_rescale_ratio): Moved from xfaces.c.
4072 Argument type changed. Handle a font-spec too.
96f9306b 4073 (font_score): Check Vface_font_rescale_alist.
6dec9044 4074 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4075
4076 * xfaces.c (font_rescale_ratio): Moved to font.c.
4077
8d5b4964
CY
40782008-12-13 Chong Yidong <cyd@stupidchicken.com>
4079
4080 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4081
e6df5336
JR
40822008-12-12 Jason Rumney <jasonr@gnu.org>
4083
4084 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4085 Vwindow_system_version to the real w32 major version.
4086
97c6058a
DN
40872008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4088
4089 * term.c (init_tty): Move setting the terminal name before the
4090 potential user: maybe_fatal.
4091
ec4e88d7
CY
40922008-12-11 Chong Yidong <cyd@stupidchicken.com>
4093
d4835507
JB
4094 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4095 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4096
b4233ec9
JR
40972008-12-11 Jason Rumney <jasonr@gnu.org>
4098
8ec71e23 4099 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4100 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4101
b4233ec9 4102 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4103 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4104
011a0143
JB
41052008-12-11 Juanma Barranquero <lekktu@gmail.com>
4106
4107 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4108
3c309f34
JB
41092008-12-11 Juanma Barranquero <lekktu@gmail.com>
4110
4111 * process.c (Fsystem_process_attributes, syms_of_process):
4112 Fix typo in name of Ssystem_process_attributes.
4113 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4114
fedc6ab5
JB
41152008-12-11 Juanma Barranquero <lekktu@gmail.com>
4116
4117 * syntax.c (Fmodify_syntax_entry): Doc fix.
4118
ba3de0e8
JB
41192008-12-10 Juanma Barranquero <lekktu@gmail.com>
4120
4121 * font.c (Ffont_spec): Move usage to end of docstring.
4122
174f1c74
JR
41232008-12-10 Jason Rumney <jasonr@gnu.org>
4124
4125 * w32font.c (Qcham): New symbol.
4126 (font_supported_scripts): Add cham, and comments for other new
4127 scripts in bitfield from OpenType spec.
9d32f818
JR
4128 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4129 contain characters beyond the bmp.
174f1c74 4130
7b649478
KH
41312008-12-10 Kenichi Handa <handa@m17n.org>
4132
4133 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4134 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4135 Qunicode_sip.
4136
2133e2d1
JB
41372008-12-10 Juanma Barranquero <lekktu@gmail.com>
4138
4139 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4140 (Fcoding_system_put): Use QCdefault_char.
4141 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4142
9af886ee
CY
41432008-12-09 Chong Yidong <cyd@stupidchicken.com>
4144
74d819eb
CY
4145 * xftfont.c (syms_of_xftfont): Fix typo.
4146
4ccfa1c0 4147 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4148
7c19d3ae
DN
41492008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4150
4151 * emacs.c (main): Close daemon_pipe on exec.
4152
567826bb
CY
41532008-12-08 Chong Yidong <cyd@stupidchicken.com>
4154
4155 * termchar.h (struct tty): New members termcap_term_buffer and
4156 termcap_strings_buffer.
4157
4158 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4159 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4160 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4161 All callers changed.
4162 (init_tty): Store termcap data and string buffers in new struct
4163 tty members termcap_term_buffer and termcap_strings_buffer.
4164 (delete_tty): Free them.
4ccfa1c0 4165 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4166
aa96c42b
SZ
41672008-12-07 Seiji Zenitani <zenitani@mac.com>
4168
4169 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4170 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4171
b7e1d896
CY
41722008-12-06 Chong Yidong <cyd@stupidchicken.com>
4173
4174 * coding.c (make_conversion_work_buffer): Disable buffer
4175 modification hooks in the work buffer.
4176
b5ec91a5
EZ
41772008-12-05 Eli Zaretskii <eliz@gnu.org>
4178
4179 * process.c (procfs_system_process_attributes): If `nread' has a
4180 negative value, assign zero to it.
4181
a5d2a52b
CY
41822008-12-05 Chong Yidong <cyd@stupidchicken.com>
4183
68c5540b 4184 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4185
7bf1bb21
KH
41862008-12-05 Kenichi Handa <handa@m17n.org>
4187
4188 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4189 second character is a combining character.
4190
2fdc7d00
EZ
41912008-12-05 Eli Zaretskii <eliz@gnu.org>
4192
4193 * process.c (procfs_system_process_attributes): Don't use cmd,
4194 cmdsize, and q without initializing them first.
4195
bf6bfba8
JR
41962008-12-04 Jason Rumney <jasonr@gnu.org>
4197
4198 * w32font.c (w32font_draw): Initialize orig_clip before getting
4199 it, and delete it when finished.
4200
a3b1a468
DN
42012008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4202
4203 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4204 case when running as a daemon before detaching.
4205
8b8be8eb
JB
42062008-12-03 Juanma Barranquero <lekktu@gmail.com>
4207
805f2638 4208 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4209
b1bde622
KH
42102008-12-03 Kenichi Handa <handa@m17n.org>
4211
e500c47d
KH
4212 * font.c (font_at): Set `multibyte' at first.
4213
ca516334
KH
4214 * coding.c (decode_coding_charset): Check type of an element of
4215 vector VALIDS.
7bf1bb21 4216 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4217
4ccfa1c0 4218 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4219 (font_for_char): Likewise.
4220
1e5ecd37
CY
42212008-12-03 Chong Yidong <cyd@stupidchicken.com>
4222
d5b01609 4223 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4224 (font_update_lface): Handle fonts with corrupted size specs,
4225 i.e. non-int and non-float.
d5b01609 4226
11e3a6e4 4227 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4228 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4229 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4230
ab06788b
CY
4231 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4232
1e5ecd37 4233 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4234 underline_minimum_offset for underline position.
1e5ecd37 4235
63c125ab
DN
42362008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4237
4238 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4239
4240 * character.c (c_string_width): Specify the type for LEN.
4241
3a8406e1
KH
42422008-12-03 Kenichi Handa <handa@m17n.org>
4243
4ccfa1c0 4244 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4245 (decode_coding_utf_8): Likewise.
4ccfa1c0 4246 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4247 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4248
651df7d9
CY
42492008-12-02 Chong Yidong <cyd@stupidchicken.com>
4250
4251 * keyboard.c (make_lispy_position): Only use PT if the selected
4252 window is current.
4253
1f625c6c
AS
42542008-12-02 Andreas Schwab <schwab@suse.de>
4255
f7741ce9
AS
4256 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4257
1f625c6c
AS
4258 * doprnt.c (doprnt1): Fix size of charbuf.
4259
92bc2678
CY
42602008-12-02 Chong Yidong <cyd@stupidchicken.com>
4261
4262 * keyboard.c (timer_check): Revert last change.
4263
93b9e8cc
JB
42642008-12-02 Juanma Barranquero <lekktu@gmail.com>
4265
4266 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4267
fd7a37d5
JB
42682008-12-01 Juanma Barranquero <lekktu@gmail.com>
4269
4270 * makefile.w32-in: Update dependencies.
4271 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4272
c115043b
AS
42732008-12-01 Andreas Schwab <schwab@suse.de>
4274
4275 * font.c (register_font_driver): Use xmalloc.
4276 (font_put_frame_data): Likewise.
4277
f5668d2a
CY
42782008-12-01 Chong Yidong <cyd@stupidchicken.com>
4279
860d96be
CY
4280 * xfaces.c (realize_x_face): Make abort condition clearer.
4281
f5668d2a
CY
4282 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4283
379c17e7
CY
42842008-11-30 Chong Yidong <cyd@stupidchicken.com>
4285
4286 * keyboard.c (timer_check): After a timer runs, ensure that the
4287 selected window's buffer is current.
4288
35f36d65
JB
42892008-11-30 Juanma Barranquero <lekktu@gmail.com>
4290
f952c61c
JB
4291 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4292 It was accidentally restored by the Unicode merge.
4293
35f36d65
JB
4294 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4295
b23077df
JB
42962008-11-29 Juanma Barranquero <lekktu@gmail.com>
4297
4298 * w32proc.c: Include "coding.h".
4299 (Fw32_short_file_name): Encode filename passed to Windows API.
4300 (Fw32_long_file_name): Encode filename passed to Windows API and
4301 decode back the result. (Bug#1433)
4302
b8ebe9dd
KH
43032008-11-29 Kenichi Handa <handa@m17n.org>
4304
8cc53f96
KH
4305 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4306 not before accessing it.
4307
b8ebe9dd
KH
4308 * charset.c (Fdefine_charset_internal): After calculating
4309 min_char, max_char, and fastmap, copy the charset structure again.
4310 (encode_char): Fix the previous change.
4311
59bc82c0
SZ
43122008-11-28 Seiji Zenitani <zenitani@mac.com>
4313
4314 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4315
4316 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4317
4318 * nsterm.m (x_set_frame_alpha): New function.
4319
32247e3d
EZ
43202008-11-27 Eli Zaretskii <eliz@gnu.org>
4321
4322 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4323
b003e5ff
JB
43242008-11-27 Juanma Barranquero <lekktu@gmail.com>
4325
4326 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4327 pointer to check_face_name.
4328
708550f5
KH
43292008-11-27 Kenichi Handa <handa@m17n.org>
4330
4331 * category.h (SET_CATEGORY_SET): Call set_category_set.
4332 (set_category_set): Extern it.
4333
4334 * category.c (hash_get_category_set): New function.
4335 (Fmodify_category_entry): Adjusted for the change of
4336 char_table_ref_and_range. Call hash_get_category_set to get a
4337 category set to store in the table.
4338
4339 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4340 Funify_charset.
4341
2ae37cf0 4342 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4343 (DECODE_CHAR): Check if the decoder vector is ready.
4344 (ENCODE_CHAR): Check if the encoder char-table is ready.
4345 (maybe_unify_char): Extern it.
4346
4347 * charset.c (Vchar_unified_charset_table): Delete it.
4348 (inhibit_load_charset_map): New variable.
4349 (temp_charset_work): New variable.
4350 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4351 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4352 New macros.
4353 (load_charset_map): Meaning of control_flag changed. If
4354 inhibit_load_charset_map is nonzero, setup a table in
4355 temp_charset_work.
4356 (load_charset): New argument control_flag.
4357 (map_charset_for_dump): New function.
4358 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4359 map_charset_for_dump.
4360 (Fdefine_charset_internal): If the charset method is MAP, load
4361 mapping tables by calling load_charset.
4362 (Funify_charset): Don't load a mapping table but directly set
4363 Vchar_unify_table.
4364 (maybe_unify_char): New function.
4365 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4366 Handle the case of inhibit_load_charset_map being nonzero.
4367 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4368 Handle the case of inhibit_load_charset_map being nonzero.
4369 (Fclear_charset_maps): Just free temp_charset_work.
4370 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4371 variable.
4372
4373 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4374 change of char_table_ref_and_range.
4375 (char_table_ref_and_range): Change the meaning of argument FROM
4376 and TO. Now the caller must provide initial values for *FROM
4377 and *TO.
4378
4379 * fontset.c (fontset_add): Adjusted for the change of
4380 char_table_ref_and_range.
4381 (fontset_get_font_group): Likewise.
4382 (Ffontset_info): Likewise.
4383
4384 * keymap.c (describe_vector): Adjusted for the change of
4385 char_table_ref_and_range. For char-table, put boundary between
4386 non-ASCII and 8-bit characters.
4387
4388 * print.c (print_object): For bool-vector, delete unnecessary
4389 check of ASCII_BYTE_P.
4390
9196133b
JR
43912008-11-26 Jason Rumney <jasonr@gnu.org>
4392
4393 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4394 leading in font height. (Bug#879)
9196133b 4395
9f688acf
GM
43962008-11-26 Glenn Morris <rgm@gnu.org>
4397
4398 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4399 redefinition with ifdef. (Bug#1383)
4400
90d19aff
AR
44012008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4402
4403 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4404
4ccfa1c0 44052008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4406
4407 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4408 New EmacsView methods.
4409 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4410 Fixes bug #1048,1357,1414.
4411
44122008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4413
4414 Fix bug #1362.
4415 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4416 is not an indexed color.
4417 * nsterm.m (free_indexed_color): Add argument checking.
4418 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4419
e7d5ecb3
CY
44202008-11-24 Chong Yidong <cyd@stupidchicken.com>
4421
4422 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4423 Document confirm-after-completion value for
4424 minibuffer-completion-confirm.
4425
c285743c
JR
44262008-11-24 Jason Rumney <jasonr@gnu.org>
4427
4428 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4429 warning.
4430
b0857706
JR
44312008-11-23 Jason Rumney <jasonr@gnu.org>
4432
4433 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4434 restored before returning.
4435
4436 * w32font.c (check_face_name): New function.
4437 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4438 fonts. (Bug#642)
b0857706 4439
ee50ff07
MR
44402008-11-22 Martin Rudalics <rudalics@gmx.at>
4441
4442 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4443 confirm-nonexistent-file-or-buffer in doc-string.
4444
b8ff72fa
SM
44452008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4446
4447 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4448 Fix copy/paste typo. Add checks.
4449
cee53ed4
KH
44502008-11-21 Kenichi Handa <handa@m17n.org>
4451
4452 * coding.c (detect_coding_iso_2022): Reject invalid composition
4453 sequence.
4454 (DECODE_COMPOSITION_START): If the current source is the last
4455 block, and the current composition doesn't end, regard this
4456 sequence as invalid.
4457 (decode_coding_iso_2022): Handle invalid composition sequence.
4458
f6ef1e65
MR
44592008-11-20 Martin Rudalics <rudalics@gmx.at>
4460
4461 * window.c (coordinates_in_window): Don't return
4462 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4463 line when the window is not the rightmost one. (Bug#1372)
4464
e08b1705
MR
44652008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4466
4467 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4468
ad98e89f
EZ
44692008-11-15 Eli Zaretskii <eliz@gnu.org>
4470
4471 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4472 and bright_bg if noninteractive is non-zero.
4473
fb098a4b
CY
44742008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4475
4476 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4477 x_draw_glyph_string_background.
4478
4479 * w32term.c (x_draw_glyph_string): Likewise.
4480
ce952b6e
CY
44812008-11-15 Chong Yidong <cyd@stupidchicken.com>
4482
4483 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4484 the next glyph string once past the overhang width.
4485
4486 * nsterm.m (ns_draw_glyph_string): Likewise.
4487
4488 * w32term.c (x_draw_glyph_string): Likewise.
4489
26ea7079
CY
44902008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4491
4492 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4493 double file close.
4494
1c33c906
MR
44952008-11-14 Martin Rudalics <rudalics@gmx.at>
4496
4497 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4498 dedicated status of window before attempting to display another
4499 buffer in it.
4500
8fc29035
JB
45012008-11-14 Juanma Barranquero <lekktu@gmail.com>
4502
4503 * msdos.c (Fmsdos_long_file_names):
4504 (syms_of_msdos) <dos-unsupported-char-glyph>:
4505 * dosfns.c (Fint86): Fix typos in docstrings.
4506
55fb4286
EZ
45072008-11-14 Eli Zaretskii <eliz@gnu.org>
4508
4509 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4510
3fda0315
KY
45112008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4512
4513 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4514
7e849c17
CY
45152008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4516
4517 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4518
4519 * frame.h: Negative alpha means "don't touch".
4520
4521 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4522
4523 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4524
b9fd67bd
DN
45252008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4526
4527 * hftctl.c:
4528 * chpdef.h:
4529 * acldef.h: Remove files used only for systems no longer supported.
4530
4531 * Makefile.in: Fix .o alphabetical ordering.
4532 (hftctl.o): Remove dependency, file removed.
4533 (keymap.o, print.o): Depend on charset.h.
4534
d5998e03
KH
45352008-11-10 Kenichi Handa <handa@m17n.org>
4536
2ae37cf0 4537 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4538
be70e183
CY
45392008-11-08 Chong Yidong <cyd@stupidchicken.com>
4540
4541 * dired.c (file_name_completion): If completion_ignore_case is
4542 enabled, ignore case when checking completion-regexp-list.
4543
7cf94eac
EZ
45442008-11-08 Eli Zaretskii <eliz@gnu.org>
4545
4546 * vm-limit.c (get_lim_data): Fix last change.
4547
ee107a89
KH
45482008-11-08 Kenichi Handa <handa@m17n.org>
4549
4550 * character.c (Fget_byte): New function.
4551 (syms_of_character): Defsubr Fget_byte.
4552
5fd15622
CY
45532008-11-07 Chong Yidong <cyd@stupidchicken.com>
4554
4555 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4556 cursor position is valid after scrolling.
4557
13d62fad
JB
45582008-11-06 Juanma Barranquero <lekktu@gmail.com>
4559
4560 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4561
a1dd2936
GM
45622008-11-06 Glenn Morris <rgm@gnu.org>
4563
4564 * xterm.c (handle_one_xevent): Don't let popup menus cause
4565 mouse-autoselect-window related window switching. (Bug#1261)
4566
860cd236
CY
45672008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4568
4569 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4570
653a3150
AS
45712008-11-04 Andreas Schwab <schwab@suse.de>
4572
4573 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4574
870f5cac
CY
45752008-11-03 Chong Yidong <cyd@stupidchicken.com>
4576
4577 * xfns.c (Fx_wm_set_size_hint): New function.
4578
1e02f3cb
MR
45792008-11-03 Martin Rudalics <rudalics@gmx.at>
4580
4581 * textprop.c (Fprevious_single_char_property_change): Return 0
4582 when there's no change in a string. (Bug#1301)
4583
e630dfc6
MR
45842008-11-02 Martin Rudalics <rudalics@gmx.at>
4585
4586 * frame.c (do_switch_frame): New argument NORECORD passed to
4587 Fselect_window.
4588 (Fselect_frame): New argument NORECORD passed to
4589 do_switch_frame.
4590 (Fset_frame_selected_window): New argument NORECORD passed to
4591 Fselect_frame.
4592 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4593 in call of do_switch_frame.
4594 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4595 Handle NORECORD argument in call of Fselect_frame.
4596 * lisp.h (do_switch_frame, Fselect_frame)
4597 (Fset_frame_selected_window): Adjust declarations.
4598 * window.c (select_frame_norecord): New function.
4599 (run_window_configuration_change_hook): Use it and call
4600 Fselect_frame with NORECORD set.
4601 (Fselect_window): Pass NORECORD to Fselect_frame.
4602 (Fset_window_configuration): Handle NORECORD argument in call of
4603 do_switch_frame.
4604 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4605 Fset_frame_selected_window.
4606 * keyboard.c (command_loop_1): Handle NORECORD in call of
4607 Fselect_frame (currently ifdefd).
4608
9020b223
GM
46092008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4610
4611 * emacs.c (USAGE2): Untabify.
4612
793ffee8
SM
46132008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4614
4615 * composite.c (fill_gstring_header): Fix copy/paste typo.
4616
ab6d1131
MR
46172008-10-31 Martin Rudalics <rudalics@gmx.at>
4618
4619 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4620 (Fother_window): Rename argument and rewrite doc-string.
4621 (select_window_norecord): Fix return value. (Bug#1276)
4622
601a9cf1
JB
46232008-10-30 Juanma Barranquero <lekktu@gmail.com>
4624
4625 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4626 new frames overriding foreground for tooltips. Based on similar patch
4627 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4628
813b0652
CY
46292008-10-29 Chong Yidong <cyd@stupidchicken.com>
4630
4631 * emacs.c (Fdaemon_initialized): Initialize nfd.
4632
4414f58f
MR
46332008-10-29 Martin Rudalics <rudalics@gmx.at>
4634
4635 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4636 (Fwindow_text_height): Clarify doc-strings.
4637 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4638 doc-string of window-scroll-functions.
4639
ecdcaa09
RS
46402008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4641
4642 * category.c (syms_of_category): Fix typo in docstring.
4643
23fe745a
JB
46442008-10-28 Juanma Barranquero <lekktu@gmail.com>
4645
4646 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4647 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4648 Fix typos in docstrings.
4649
ff808935
DN
46502008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4651
4652 * emacs.c (daemon_pipe): Make non-static.
4653 (IS_DAEMON): Move definition ...
4654 * lisp.h (IS_DAEMON): ... here.
4655 (daemon_pipe): Declare.
4656 (is_daemon): Remove.
4657 * dispnew.c (init_display): Use IS_DAEMON.
4658
fc012771
SM
46592008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4660
4661 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4662 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4663
4664 * emacs.c (is_daemon): Remove.
4665 (main): Don't set is_daemon.
4666 (IS_DAEMON): New macro.
4667 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4668 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4669 parent exits.
4670 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4671
d8bdbe6f
CY
46722008-10-27 Chong Yidong <cyd@stupidchicken.com>
4673
d1a072bf
CY
4674 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4675 over-sized glyph, draw it with the default glyph width.
4676
e2e325aa
CY
4677 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4678 glyph, draw it with the default glyph width.
4679
4680 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4681 glyph, draw it with the default glyph width.
4682
d8bdbe6f
CY
4683 * xdisp.c (try_scrolling): When computing the distance from the
4684 scroll margin to PT, try moving some distance past the window
4685 bottom before giving up.
4686
7bfac547
MR
46872008-10-27 Martin Rudalics <rudalics@gmx.at>
4688
4689 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4690 (Fset_window_buffer): Explain in doc-string that a window can be
4691 "strongly" dedicated to its buffer.
4692
4ff029f6
DN
46932008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4694
4695 * emacs.c (daemon_name): New variable.
4696 (main): Deal with --daemon=SERVER_NAME.
4697 (Fdaemonp): Return a name if one was passed to --daemon.
4698
5790ef40
DN
46992008-10-26 Romain Francoise <romain@orebokech.com>
4700
f9bd0df9 4701 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4702 (main): Create a pipe before forking, make the parent exit only after
4703 the child has closed its end of the pipe. Move closing the
4704 descriptors ...
4705 (Fdaemon_initialized): ... here. New function.
4706
f5385255
SM
47072008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4708
4d632321
SM
4709 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4710 the previous unoptimized table.
4711
f5385255
SM
4712 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4713 the distinction between non-nil and non-t value of `dedicated'.
4714
6c56a0f3
CY
47152008-10-25 Chong Yidong <cyd@stupidchicken.com>
4716
4717 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4718 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4719
fec89261
MR
47202008-10-25 Martin Rudalics <rudalics@gmx.at>
4721
4722 * window.c (Fget_buffer_window, Fdelete_windows_on)
4723 (Freplace_buffer_in_windows): Make buffer argument optional and
4724 rename to buffer_or_name.
4725
34fcddd0
CY
47262008-10-24 Chong Yidong <cyd@stupidchicken.com>
4727
f5385255
SM
4728 * xdisp.c (handle_single_display_spec, handle_display_prop):
4729 Undo 2005-05-16 change.
34fcddd0
CY
4730 (handle_stop): Pop iterator if it's loaded with an empty string.
4731 (get_overlay_strings_1): Don't save iterator if it's loaded with
4732 an empty string (bug#1201).
4733
064766f2
KH
47342008-10-24 Kenichi Handa <handa@m17n.org>
4735
4736 * ftfont.c (ftfont_otf_features): Fix previous change.
4737 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4738 calling ftfont_otf_features.
4739
f9bd0df9 47402008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4741
4742 * font.c (font_match_p): Fix for the case that a vector of
4743 characters is in script-representative-chars.
4744
1dae9197
MA
47452008-10-24 Michael Albinus <michael.albinus@gmx.de>
4746
4747 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4748 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4749 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4750 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4751 macro. (Bug#1186).
4752
f9bd0df9 47532008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4754
4755 * s/sol2-10.h: New file.
4756
878a4584
JB
47572008-10-23 Juanma Barranquero <lekktu@gmail.com>
4758
4759 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4760 poor beast has survived 9+ years and the jump from xterm.c!).
4761
cd265ca6
MR
47622008-10-23 Martin Rudalics <rudalics@gmx.at>
4763
4764 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4765 Reword doc-string.
f5385255 4766 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4767
472a4dc9
JB
47682008-10-23 Juanma Barranquero <lekktu@gmail.com>
4769
4770 * character.c (syms_of_character) <script-representative-chars>:
4771 <unicode-category-table>: Doc fixes.
4772
159bd5a2
NF
47732008-10-23 Noah Friedman <friedman@splode.com>
4774
4775 * coding.c (make_conversion_work_buffer): Check that
4776 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4777 Fget_buffer_create.
4778
49f9c344
KH
47792008-10-23 Kenichi Handa <handa@m17n.org>
4780
4781 * font.c (font_add_log): Check the values of extra properties.
4782
12bb3111
MR
47832008-10-22 Martin Rudalics <rudalics@gmx.at>
4784
4785 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4786 Reword doc-string.
4787 (Fset_window_parameter): Use NILP.
4788 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 4789 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 4790
bbeb4e99
JB
47912008-10-22 Juanma Barranquero <lekktu@gmail.com>
4792
4793 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4794
47952008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
4796
4797 * nsfns.m (ns_appkit_version): New function.
4798 (x-server-version): Use it.
4799 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4800 (x-server-vendor): Don't check_ns().
4801
4802 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4803
a9b555d3
JB
48042008-10-22 Juanma Barranquero <lekktu@gmail.com>
4805
4806 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4807 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4808
4626499f
KH
48092008-10-22 Kenichi Handa <handa@m17n.org>
4810
e3681952
KH
4811 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4812 scripts.
4813
4626499f
KH
4814 * category.c (word_boundary_p): Check scripts instead of charset.
4815 Handle nil value in word-separating-categories and
4816 word-combining-categories.
4817 (syms_of_category): Fix docstrings of word-separating-categories
4818 and word-combining-categories.
4819
1560f91a
EZ
48202008-10-21 Eli Zaretskii <eliz@gnu.org>
4821
4822 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4823 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4824
f4668441
MR
48252008-10-21 Martin Rudalics <rudalics@gmx.at>
4826
4827 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4828 Rename arg "buffer" to "buffer_or_name".
4829 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4830 it optional.
4831 (no_switch_window): Remove since the return value is not used.
a9b555d3 4832 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4833 Consider window as dedicated when Fwindow_dedicated_p returns a
4834 non-nil value.
4835 * lisp.h: Remove prototype for no_switch_window.
4836
fd75ddb2
JD
48372008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4838
4839 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4840 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4841
07295713
KH
48422008-10-21 Kenichi Handa <handa@m17n.org>
4843
4844 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4845 check Vlatin_extra_code_table.
4846
712adc82
EZ
48472008-10-20 Eli Zaretskii <eliz@gnu.org>
4848
4849 * fileio.c (Fset_file_modes): Doc fix.
4850
f549eb0b
MA
48512008-10-19 Michael Albinus <michael.albinus@gmx.de>
4852
4853 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4854 in arrays.
4855
aac0c6e3
MR
48562008-10-19 Martin Rudalics <rudalics@gmx.at>
4857
4858 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4859 Mention kill-buffer in doc-string.
4860 (Fset_window_buffer): Reinsert tem check removed in last commit.
4861 (Fenlarge_window, Fshrink_window): Have argument names and
4862 doc-string follow Elisp manual more closely.
4863
48642008-10-18 Eli Zaretskii <eliz@gnu.org>
4865
4866 * fileio.c (Fset_file_modes): Doc fix.
4867
48682008-10-18 Martin Rudalics <rudalics@gmx.at>
4869
4870 * window.c (Fwindow_width, Fset_window_start)
4871 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
4872 (Fdelete_windows_on, Freplace_buffer_in_windows):
4873 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
4874 (Fwindow_dedicated_p): Make window argument optional.
4875 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4876 (Fset_window_buffer): Respect any non-nil dedicated value for
4877 window. Rename "buffer" argument to "buffer_or_name".
4878
48792008-10-18 Ulrich Mueller <ulm@gentoo.org>
4880
4881 * m/sh3.h: New file, machine description for SuperH.
4882
48832008-10-17 Martin Rudalics <rudalics@gmx.at>
4884
4885 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4886
48872008-10-17 Kenichi Handa <handa@m17n.org>
4888
4889 * ftfont.c (ftfont_otf_features): Fix indexing
4890 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4891
48922008-10-16 Magnus Henoch <mange@freemail.hu>
4893
4894 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4895 (Fdbus_call_method_asynchronously): Ditto.
4896 This change makes C-h f display the argument list.
4897
48982008-10-16 Chong Yidong <cyd@stupidchicken.com>
4899
4900 * fileio.c (Fexpand_file_name): Doc fix.
4901
4902 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4903 of :foreground and :background equivalent to unspecified (20.x
4904 compatibility).
4905
49062008-10-15 Eli Zaretskii <eliz@gnu.org>
4907
4908 * buffer.c (syms_of_buffer): Doc fix.
4909
49102008-10-14 Kenichi Handa <handa@m17n.org>
4911
4912 * font.c (font_clear_prop): When clearing font width, clear the
4913 average width field too.
4914
49152008-10-12 Andreas Schwab <schwab@suse.de>
4916
4917 * ftfont.c (ftfont_shape_by_flt): Make static.
4918 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4919
4920 * font.c: Don't include <m17n-flt.h>.
4921
49222008-10-10 Eli Zaretskii <eliz@gnu.org>
4923
4924 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4925
49262008-10-09 Eli Zaretskii <eliz@gnu.org>
4927
4928 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4929 away code.
4930
49312008-10-09 Chong Yidong <cyd@stupidchicken.com>
4932
4933 * dispnew.c (update_text_area): Avoid looping due to large glyph
4934 overhangs (bug#1070).
4935
49362008-10-09 Kenichi Handa <handa@m17n.org>
4937
4938 * fontset.c (face_for_char): If face->fontset is negative, just
4939 return ascii_face.
4940
f5385255
SM
4941 * font.c (font_delete_unmatched): Fix previous change.
4942 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
4943
49442008-10-09 Martin Rudalics <rudalics@gmx.at>
4945
4946 * frame.c (Fraise_frame): On text-only terminals select frame in
4947 order to make it visible. (Bug#1061)
4948
49492008-10-08 Chong Yidong <cyd@stupidchicken.com>
4950
4951 * fontset.c (fontset_find_font): Check frame validity.
4952
49532008-10-07 Chong Yidong <cyd@stupidchicken.com>
4954
a9b555d3 4955 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
4956 (xg_display_close): Allow Emacs to close all displays (bug#985).
4957
49582008-10-06 Andreas Schwab <schwab@suse.de>
4959
f5385255 4960 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
4961
49622008-10-06 Chong Yidong <cyd@stupidchicken.com>
4963
f5385255 4964 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 4965
a9b555d3 4966 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
4967
4968 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4969 during initialization.
4970
49712008-10-04 Eli Zaretskii <eliz@gnu.org>
4972
4973 * xdisp.c (redisplay_internal): If frame switched, redisplay the
4974 whole thing on MSDOS frames as well as on a TTY.
4975
4976 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4977 well as for TTY.
4978 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4979 well as on a TTY.
4980
4981 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4982 as well as for TTY.
4983
4984 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4985
4986 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4987 MSDOS frames as well.
4988
49892008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4990
4991 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4992 correct arguments.
b71ac3dd 4993 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
4994
49952008-10-03 Glenn Morris <rgm@gnu.org>
4996
4997 * emacs.c (USAGE1): Add --daemon.
4998
49992008-10-02 Eli Zaretskii <eliz@gnu.org>
5000
5001 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5002 100, so it's in percents as advertised.
5003
50042008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5005
5006 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5007 (ns_output.current_cursor, ns_output.desired_cursor)
5008 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5009 (FRAME_NEW_CURSOR_COLOR): Remove.
5010
5011 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5012 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5013 enumeration (HOLLOW_BOX_CURSOR, etc.).
5014
5015 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5016 (draw_window_cursor): Simplify code.
f5385255
SM
5017 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5018 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5019 updates manually.
a9b555d3
JB
5020 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5021 Use core Emacs cursor types.
aac0c6e3 5022
b8ff72fa 5023 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5024
50252008-10-02 Martin Rudalics <rudalics@gmx.at>
5026
5027 * process.c (Faccept_process_output): Fix doc-string.
5028
50292008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5030
5031 * gmalloc.c (__sbrk): Also define for uClibc.
5032
5033 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5034 for uClibc.
5035
50362008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5037
5038 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5039 styles.
5040 (nsfont_open): Reenable the cache.
5041
50422008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5043
5044 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5045 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5046
50472008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5048
5049 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5050 a suspended terminal.
5051
50522008-09-30 Michael Albinus <michael.albinus@gmx.de>
5053
5054 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5055
50562008-09-30 Eli Zaretskii <eliz@gnu.org>
5057
5058 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5059
50602008-09-30 Chong Yidong <cyd@stupidchicken.com>
5061
5062 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5063 in a continued line coincides with a line beginning.
5064
50652008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5066
5067 * nsfont.m (nsfont_trait_distance): Fix bug.
5068 (nsfont_list): Return a list rather than a vector (syncs with Handa
5069 changes of 2008-05-14).
5070 (nsfont_open): Improve logging.
5071
50722008-09-29 Andreas Schwab <schwab@suse.de>
5073
5074 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5075
50762008-09-28 Martin Rudalics <rudalics@gmx.at>
5077
5078 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5079 name as char-resolve-modifiers.
5080 Reported by: Markus Triska <markus.triska@gmx.at>
5081
50822008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5083
5084 * dispnew.c (init_display): Return earlier when running as a daemon.
5085
50862008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5087
5088 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5089
50902008-09-27 Eli Zaretskii <eliz@gnu.org>
5091
5092 * composite.c (Fcomposition_get_gstring)
5093 (Fcompose_region_internal, Fcompose_string_internal)
5094 (Ffind_composition_internal): Doc fix.
5095 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5096 (syms_of_composite) <auto-composition-function>: Doc fix.
5097 (syms_of_composite) <composition-function-table>: Doc fix.
5098
50992008-09-25 Chong Yidong <cyd@stupidchicken.com>
5100
5101 * search.c (wordify): New argument for lax word-ends.
5102 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5103
51042008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5105
5106 * lisp.h (is_daemon): Declare.
5107 * dispnew.c (init_display): Do not try to initialize the terminal
5108 when running as a daemon.
5109
51102008-09-22 Chong Yidong <cyd@stupidchicken.com>
5111
5112 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5113 x_display_pixel_height.
5114
51152008-09-22 Martin Rudalics <rudalics@gmx.at>
5116
5117 * undo.c (record_point): Don't call Fundo_boundary for first
5118 change. (Bug#731)
5119
51202008-09-22 Juanma Barranquero <lekktu@gmail.com>
5121
5122 * emacs.c (Fdaemonp): Doc fix.
5123
51242008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5125
5126 * emacs.c (main): Place #ifdef in the proper place.
5127
51282008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5129
5130 * emacs.c (standard_args): Add --daemon.
5131 (main): Disconnect from the terminal when --daemon is passed.
5132 (is_daemon): New variable.
5133 (Fdaemonp): New function.
5134 (syms_of_emacs): Defsubr it.
5135
51362008-09-20 Chong Yidong <cyd@stupidchicken.com>
5137
5138 * xdisp.c (get_next_display_element): Handle string display
5139 correctly when checking for the end of a box run.
5140
51412008-09-20 Glenn Morris <rgm@gnu.org>
5142
5143 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5144 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5145 (Frename_file): Avoid copying to trash if a rename involves
5146 a delete. (Bug#964).
5147
51482008-09-20 Eli Zaretskii <eliz@gnu.org>
5149
5150 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5151 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5152 frames as well as termcap frames.
5153 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5154 get_named_tty.
5155
51562008-09-19 Eli Zaretskii <eliz@gnu.org>
5157
5158 * process.c (procfs_system_process_attributes): Fix cmdline in
5159 case /proc/PID/cmdline is empty.
5160
5161 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5162 x_display_pixel_height.
5163
51642008-09-19 Juanma Barranquero <lekktu@gmail.com>
5165
5166 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5167
5168 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5169 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5170
51712008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5172
5173 * dispextern.h (struct it): Move line_wrap away from the middle of
5174 bitfields. Move voffset in struct iterator_stack_entry after the
5175 bitfields. Move tab_width near after another short.
5176
51772008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5178
5179 * frame.h (struct frame): Move alpha from the middle of bitfields.
5180
5181 * window.h (struct window): Move frozen_window_start_p after the
5182 rest of the bitfields to reduce padding.
5183
51842008-09-18 Chong Yidong <cyd@stupidchicken.com>
5185
5186 * xterm.h (x_display_info): Remove `height' and `width' members.
5187
5188 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5189
5190 * w32term.h (w32_display_info): Remove `height', `width',
5191 `height_in', and `width_in' members.
5192
b8ff72fa
SM
5193 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5194 New functions.
aac0c6e3
MR
5195 (x_calc_absolute_position): Use them.
5196 (x_term_init): Omit removed `height' and `width' members.
5197
b8ff72fa
SM
5198 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5199 New functions.
aac0c6e3
MR
5200 (w32_read_socket, x_calc_absolute_position): Use them.
5201 (w32_initialize_display_info, w32_term_init): Omit removed members
5202 of w32_display_info.
5203
b8ff72fa
SM
5204 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5205 New functions.
5206 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5207
b8ff72fa
SM
5208 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5209 New functions.
aac0c6e3
MR
5210 (x_calc_absolute_position): Use them.
5211 (x_term_init): Omit removed `height' and `width' members.
5212
5213 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5214 (compute_tip_xy):
5215 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5216 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5217 x_display_pixel_width.
5218
52192008-09-18 Kenichi Handa <handa@m17n.org>
5220
5221 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5222 (composition_compute_stop_pos): Fix handling of static composition.
5223 (Fcomposition_get_gstring): Check FROM and TO at first.
5224
52252008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5226
46e722a9 5227 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5228 mixup (YAILOM).
5229
52302008-09-17 Chong Yidong <cyd@stupidchicken.com>
5231
5232 * indent.c (Fvertical_motion): Use position reported by iterator
5233 instead of PT for determining screen motion (bug#943).
5234
52352008-09-17 Romain Francoise <romain@orebokech.com>
5236
5237 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5238
52392008-09-17 Kenichi Handa <handa@m17n.org>
5240
5241 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5242
5243 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5244 if necessary.
5245
52462008-09-16 Kenichi Handa <handa@m17n.org>
5247
5248 * coding.c (make_conversion_work_buffer): Avoid calling
5249 Fget_buffer_create if it is not necessary.
5250
52512008-09-15 Martin Rudalics <rudalics@gmx.at>
5252
5253 * window.c (Fselect_window): Don't update window_select_count and
5254 use_time when norecord is not nil.
5255
52562008-09-14 Kenichi Handa <handa@m17n.org>
5257
5258 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5259 specpdl_ptr.
5260
52612008-09-12 Kenichi Handa <handa@m17n.org>
5262
5263 * indent.c (scan_for_column): Don't handle automatic composition
5264 if the current buffer is not associated with a window.
5265
5266 * composite.c (composition_reseat_it): If the current buffer is
5267 not associated with a window, ignore the automatic composition.
5268 (find_automatic_composition): Likewise.
5269
52702008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5271
5272 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5273 (Fgpm_mouse_stop): Use it.
5274 * termhooks.h (close_gpm): Declare.
5275 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5276 connection if Gpm_GetEvent fails.
5277
5278 * window.c (set_window_buffer): Always preserve current-buffer.
5279
52802008-09-12 Glenn Morris <rgm@gnu.org>
5281
5282 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5283
52842008-09-11 Glenn Morris <rgm@gnu.org>
5285
5286 * charset.c (charset-map-path): Doc fix.
5287
52882008-09-10 Kenichi Handa <handa@m17n.org>
5289
5290 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5291
5292 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5293 compose a grapheme cluster with the preceding base glyph.
5294
5295 * composite.c (composition_compute_stop_pos): Fix previous change.
5296 Reset cmp_it->id to -1 at first.
5297
52982008-09-10 Glenn Morris <rgm@gnu.org>
5299
5300 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5301
53022008-09-09 Chong Yidong <cyd@stupidchicken.com>
5303
5304 * keyboard.c (read_key_sequence): Reapply translation maps when
5305 switching keyboards.
5306
53072008-09-09 Kenichi Handa <handa@m17n.org>
5308
5309 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5310 characters.
5311
5312 * composite.c (FORWARD_CHAR): Fix calculation
5313 of (POSITION).pos_byte.
5314 (composition_compute_stop_pos): Limit the search of composition to
5315 at most 500 characters ahead. If we reach the limit or find a
5316 newline, set cmp_it->ch to -2 and return 0.
5317 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5318
53192008-09-08 Kenichi Handa <handa@m17n.org>
5320
5321 * indent.c (Fvertical_motion): Be sure to set
5322 it_overshoot_expected if it.cmp_it.id is non-negative.
5323
53242008-09-07 Andreas Schwab <schwab@suse.de>
5325
5326 * callproc.c (Fcall_process): Don't hold references to string data
5327 across garbage collection. Move initialisation of new_argv down
5328 to avoid compiler bug.
5329
53302008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5331
5332 * process.c (Fsystem_process_attributes): Doc fix.
5333
53342008-09-07 Chong Yidong <cyd@stupidchicken.com>
5335
5336 * callproc.c (Fcall_process): Canonicalize current directory name.
5337
5338 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5339 iterator advances to the next line if the current line ends in a
5340 continued tab.
5341
53422008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5343
5344 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5345 member to point to cmp_from.
5346
5347 * xdisp.c: Doc fix for references to gidx data member.
5348
53492008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5350
5351 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5352
53532008-09-07 Kenichi Handa <handa@m17n.org>
5354
5355 * composite.c (FORWARD_CHAR): Check STOP after
5356 incrementing (POSITION).pos.
5357
53582008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5359
5360 * process.c (Fsystem_process_attributes): Doc fix.
5361
53622008-09-06 Chong Yidong <cyd@stupidchicken.com>
5363
5364 * keyboard.c (Ftop_level): Doc fix.
5365
53662008-09-06 Eli Zaretskii <eliz@gnu.org>
5367
5368 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5369 minibuffer, don't let lower part of menu invade the echo area.
5370
5371 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5372 "char *q" to access menu text and advance through it. Revert the
5373 change that displayed ">" instead of ASCII character 0x10.
5374
53752008-09-05 Eli Zaretskii <eliz@gnu.org>
5376
5377 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5378 toggle boxes and radio buttons on MS-DOS as well.
5379
53802008-09-05 Kenichi Handa <handa@m17n.org>
5381
5382 * composite.c (autocmp_chars): Check lookback count.
5383 (composition_compute_stop_pos): Set cmp_it->lookback.
5384 (composition_reseat_it): Check lookback count.
5385 (struct position_record): New struct.
5386 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5387 (find_automatic_composition): New function.
5388 (composition_adjust_point): Use find_automatic_composition.
5389
5390 * dispextern.h (struct composition_it): New member lookback.
5391
53922008-09-02 Chong Yidong <cyd@stupidchicken.com>
5393
5394 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5395 if moving by a single line.
5396
53972008-09-02 Andreas Schwab <schwab@suse.de>
5398
5399 * xterm.c (x_delete_display): Fix merge error.
5400
5401 * fileio.c (Fexpand_file_name): Remove unused variables.
5402
54032008-09-02 Eli Zaretskii <eliz@gnu.org>
5404
5405 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5406 storage on all platforms, not just on DOS_NT.
5407
54082008-09-02 Jason Rumney <jasonr@gnu.org>
5409
b8ff72fa
SM
5410 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5411 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5412
54132008-09-01 Chong Yidong <cyd@stupidchicken.com>
5414
5415 * xfaces.c (Finternal_set_alternative_font_family_alist)
5416 (Finternal_set_alternative_font_registry_alist): Properly copy
5417 entire alist structure.
5418
54192008-09-01 Kenichi Handa <handa@m17n.org>
5420
d66c0241 5421 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5422 representative chars of the script is a vector.
d66c0241
JB
5423 (ftfont_list): Handle the case where the representative chars of
5424 the script is a vector.
aac0c6e3
MR
5425
5426 * character.c (syms_of_character): Docstring of
5427 script-representative-chars fixed.
5428
54292008-08-31 Eli Zaretskii <eliz@gnu.org>
5430
5431 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5432 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5433 the menu. Allocate larger buffer for `text', to account for
5434 possible ^C characters.
5435
54362008-08-31 Martin Rudalics <rudalics@gmx.at>
5437
5438 * xdisp.c (prepare_menu_bars): Don't call
5439 Vwindow_size_change_functions with arg Qt.
5440
54412008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5442
5443 * font.h (font_range):
5444 * fileio.c (report_file_error):
46e722a9
SM
5445 * composite.c (composition_update_it): Yet another int/Lisp_Object
5446 mixup (YAILOM).
aac0c6e3
MR
5447
54482008-08-30 Glenn Morris <rgm@gnu.org>
5449
5450 * data.c (Fmake_variable_frame_local): Doc fix.
5451
5452 * frame.c (Fmodify_frame_parameters): Doc fix.
5453
54542008-08-30 Eli Zaretskii <eliz@gnu.org>
5455
5456 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5457 needed by GetTokenInformation.
5458 (w32_system_process_attributes): Check return values of all system
5459 APIs.
5460
5461 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5462 only when the state changes.
5463 (IT_update_begin, IT_update_end): Add termscript trace.
5464
5465 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5466 clipboard is unavailable. Set dst to NULL if it doesn't point to
5467 malloc'ed data.
5468 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5469 passing random values to xfree.
5470
5471 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5472 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5473
54742008-08-29 Jason Rumney <jasonr@gnu.org>
5475
5476 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5477
54782008-08-29 Eli Zaretskii <eliz@gnu.org>
5479
5480 * composite.c (fill_gstring_body): Avoid compiler warnings.
5481
5482 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5483 LGLYPH_SET_CODE to avoid compiler warnings.
5484
2ae37cf0 5485 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5486
5487 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5488
5489 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5490 LGLYPH_SET_CODE.
5491
54922008-08-29 Kenichi Handa <handa@m17n.org>
5493
5494 * fileio.c (report_file_error): Don't downcase the first character
5495 of errstring if it is still unibyte.
5496
54972008-08-29 Kenichi Handa <handa@m17n.org>
5498
5499 These changes are to re-implement the automatic composition so
5500 that it doesn't use text properties.
5501
5502 * Makefile.in (ftfont.o): Depend on composite.h.
5503 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5504
5505 * character.h (Vunicode_category_table): Extern it.
5506
5507 * character.c (Vunicode_category_table): New variable.
5508 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5509
5510 * chartab.c (optimize_sub_char_table): Perform more greedy
5511 optimization.
5512
b8ff72fa
SM
5513 * composite.h (enum composition_method):
5514 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5515 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5516 (Vcomposition_function_table): Extern it.
5517 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5518 (composition_gstring_put_cache, composition_gstring_from_id)
5519 (composition_gstring_p, composition_gstring_width)
5520 (composition_compute_stop_pos, composition_reseat_it)
5521 (composition_update_it, composition_adjust_point): Extern them.
5522 (Fcomposition_get_gstring): EXFUN it.
5523
d66c0241 5524 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5525 (Vcomposition_function_table)
5526 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5527 (gstring_hash_table, gstring_work, gstring_work_headers):
5528 New variables.
aac0c6e3
MR
5529 (gstring_lookup_cache, composition_gstring_put_cache)
5530 (composition_gstring_from_id, composition_gstring_p)
5531 (composition_gstring_width, fill_gstring_header)
5532 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5533 (composition_reseat_it, composition_update_it)
b8ff72fa 5534 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5535 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5536 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5537 Defsubr compostion_get_gstring.
5538
5539 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5540 cmp_id.
5541 (struct glyph_string): Delete the member gidx. New members
5542 cmp_id, cmp_from, and cmp_to.
5543 (enum it_method): Delete GET_FROM_COMPOSITION.
5544 (struct composition_it): New struct.
5545 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5546 Delete c, len, cmp_id, cmp_len in u.comp.
5547
5548 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5549 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5550 (enum lglyph_indices): Likewise.
b8ff72fa 5551 (font_range): Adjust extern.
aac0c6e3
MR
5552 (font_fill_lglyph_metrics): Extern it.
5553
5554 * font.c (QCf): New variable.
5555 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5556 (font_prepare_composition): Delete this function.
5557 (font_range): Type and arguments changed.
5558 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5559 (font_fill_lglyph_metrics): New function.
b8ff72fa 5560 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5561 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5562 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5563 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5564
5565 * fontset.h (font_for_char): Extern it.
5566
5567 * fontset.c (font_for_char): New function.
5568
5569 * ftfont.c: Include composite.h.
5570 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5571 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5572
5573 * indent.c: Include composite.h and dispextern.h.
5574 (check_composition): Delete this function.
5575 (scan_for_column): Handle composition by
5576 composition_compute_stop_pos, composition_reseat_it, and
5577 composition_update_it.
5578 (compute_motion): Likewise.
5579 (Fvertical_motion): Fix checking of composition.
5580
5581 * keyboard.c (adjust_point_for_property): Check composition by
5582 composition_adjust_point.
5583
b8ff72fa 5584 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5585 struct glyph_string.
5586
b8ff72fa
SM
5587 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5588 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5589 struct glyph.
5590 (produce_composite_glyph): Likewise.
5591
b8ff72fa
SM
5592 * w32term.c (x_draw_composite_glyph_string_foreground):
5593 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5594 (x_draw_glyph_string): Likewise.
5595
5596 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5597 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5598
5599 * xdisp.c: Include font.h.
5600 (it_props): Delete the entry for Qauto_composed.
5601 (init_iterator): Initialize it->cmp_it.id to -1.
5602 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5603 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5604 (handle_auto_composed_prop): Delete it.
5605 (handle_composition_prop): Handle only static composition.
5606 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5607 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5608 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5609 (pop_it): Likewise.
5610 (get_next_element): Delete next_element_from_composition.
5611 (CHAR_COMPOSED_P): New macro.
5612 (get_next_display_element): For automatic composition, get a face
5613 from the font in the glyph-string.
5614 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5615 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5616 (next_element_from_string): Check if the character at the current
5617 position is composed by CHAR_COMPOSED_P.
5618 (next_element_from_buffer): Likewise.
d66c0241
JB
5619 (next_element_from_composition): Adjust for the change of struct it.
5620 Update it->cmp_it.
b8ff72fa
SM
5621 (dump_glyph): Adjust for the change of struct glyph.
5622 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5623 it and struct glyph. Don't handle automatic composition here.
5624 (fill_gstring_glyph_string): New function.
5625 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5626 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5627 (BUILD_GSTRING_GLYPH_STRING): New macro.
5628 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5629 automatic composition.
b8ff72fa 5630 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5631 struct glyph.
b8ff72fa 5632 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5633
b8ff72fa 5634 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5635 the change of struct glyph_string.
5636 (x_draw_glyph_string): Likewise.
5637
56382008-08-29 Glenn Morris <rgm@gnu.org>
5639
5640 * buffer.c (word-wrap): Doc fix.
5641 * xdisp.c (truncate-partial-width-windows): Doc fix.
5642 Increase default to 50.
5643
56442008-08-29 Chong Yidong <cyd@stupidchicken.com>
5645
5646 * xdisp.c (update_tool_bar_unwind): New function.
5647 (update_tool_bar): Temporarily set selected frame before building
5648 tool-bar items.
5649
56502008-08-28 Michael Albinus <michael.albinus@gmx.de>
5651
5652 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5653 snprintf, respectively.
5654 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5655
56562008-08-28 Chong Yidong <cyd@stupidchicken.com>
5657
5658 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5659 LDFLAGS to GNUstep CC invocation.
5660
56612008-08-27 Chong Yidong <cyd@stupidchicken.com>
5662
5663 * indent.c (Fvertical_motion): Revert last change. Handle the
5664 general case where we are moving forward, and PT spans multiple
5665 screen lines.
5666
5667 * eval.c (find_handler_clause): Temporarily increase
5668 max-lisp-eval-depth while printing the backtrace buffer, to
5669 guarantee that help-mode code can run.
5670
56712008-08-27 Eli Zaretskii <eliz@gnu.org>
5672
5673 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5674 colors under -rv.
5675 (IT_set_frame_parameters): Don't swap foreground and background
5676 colors if `(reverse . t)' is present in the frame properties.
5677 (internal_terminal_init): Call init_frame_faces only for the
5678 initial frame.
5679
56802008-08-27 Andreas Schwab <schwab@suse.de>
5681
5682 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5683
56842008-08-27 Andreas Schwab <schwab@suse.de>
5685
5686 * search.c (search_buffer): Set char_base to zero only at the end.
5687
56882008-08-27 Kenichi Handa <handa@m17n.org>
5689
b8ff72fa 5690 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5691
56922008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5693
5694 * xterm.c (x_term_init): Temporarily hide the partially
5695 initialized terminal while calling vendor-specific-keysyms.
5696
56972008-08-26 Eli Zaretskii <eliz@gnu.org>
5698
5699 * msdos.c (internal_terminal_init): Most initializations done only
5700 once, especially initial_screen_colors[] and termscript open.
5701
57022008-08-26 Chong Yidong <cyd@stupidchicken.com>
5703
5704 * eval.c (Fcondition_case): Doc fix.
5705
5706 * widgetprv.h (EmacsFramePart): Change font member to the new font
5707 struct.
5708
5709 * widget.c: Include character.h and font.h for XSETFONT.
5710 (setup_frame_gcs): Compute X font id from font struct, just once.
5711
57122008-08-26 Eli Zaretskii <eliz@gnu.org>
5713
5714 * term.c (get_named_tty): Fix last change.
5715
57162008-08-26 Chong Yidong <cyd@stupidchicken.com>
5717
5718 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5719 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5720
57212008-08-25 Eli Zaretskii <eliz@gnu.org>
5722
5723 * frame.c (do_switch_frame): Mark previously displayed frame as
5724 obscured for FRAME_MSDOS_P frames as well.
5725
57262008-08-24 Eli Zaretskii <eliz@gnu.org>
5727
5728 * frame.c (make_terminal_frame): Initialize f->terminal,
5729 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5730 Set the top frame to newly created frame.
5731 (Fmake_terminal_frame): Reuse the_only_display_info.
5732
5733 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5734 estimating available memory.
5735
b97439ce 57362008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5737
5738 * nsterm.m (ns_draw_window_cursor): Don't call
5739 NSDisableScreenUpdates and NSEnableScreenUpdates on
5740 non-NS_IMPL_COCOA systems.
5741
57422008-08-23 Andreas Schwab <schwab@suse.de>
5743
5744 * process.c (procfs_system_process_attributes): Fix use of
5745 uninitialized variables.
5746
57472008-08-23 Eli Zaretskii <eliz@gnu.org>
5748
5749 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5750
5751 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5752 calling tty-set-up-initial-frame-faces.
5753
b8ff72fa
SM
5754 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5755 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5756
5757 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5758 addition to output_termcap.
5759
5760 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5761
5762 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5763 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5764 highlight.
5765
5766 * process.c [!subprocesses]: Define QCname.
5767 (syms_of_process): Intern and staticpro it.
5768
5769 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5770 Adjust for changes in encoding/decoding routines.
5771 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5772 encode_coding and decode_coding.
5773
b8ff72fa 5774 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5775
5776 * dosfns.c: Include frame.h before termhooks.h.
5777 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5778 variable termscript.
5779
5780 * s/msdos.h (USER_FULL_NAME): Define.
5781 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5782
5783 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5784 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5785 pw->pw_gecos.
5786
5787 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5788 SELECTED_FRAME as additional (1st) argument.
5789 (tty_read_avail_input): Handle output_msdos_raw in
5790 addition to output_termcap.
5791
5792 * msdos.c: Include frame.h before termhooks.h.
5793 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5794 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5795 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5796 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5797 (IT_set_terminal_modes, IT_reset_terminal_modes)
5798 (IT_set_frame_parameters): Use tty->termscript instead of a global
5799 variable termscript.
5800 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5801 global variable terminal_coding. Don't refer to
5802 Vnonascii_translation_table.
5803 (internal_terminal_init): Set Vwindow_system in current_kboard.
5804 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5805 Announce date and time of session start, if termscript is open.
5806 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5807 term.c:init_tty). Open termscript only of not already open.
5808 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5809 here instead of dos_ttraw. Don't initialize display if this is an
5810 initial tty. Don't set FRAME_FONT.
5811 (Vwindow_system_version): Bump to 23.
5812 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5813 is available, set up mouse_position_hook.
5814 (dos_ttraw, IT_set_terminal_modes): If called with initial
5815 terminal, do nothing.
5816 (IT_set_frame_parameters): Handle the Qtty_type frame
5817 parameter by calling internal_terminal_init.
5818 (dos_set_window_size, show_mouse_face)
5819 (clear_mouse_face, IT_note_mode_line_highlight)
5820 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5821 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5822 (initialize_msdos_display): New function.
5823 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5824 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5825 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5826 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5827 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5828 (request_sigio, unrequest_sigio): Don't define, now defined on
5829 sysdep.c.
5830 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5831
5832 * term.c [MSDOS]: Include msdos.h.
5833 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5834 conditional to DOS_NT. Allow only one call to this function in a
5835 session. Don't allocate a new struct tty_display_info; instead,
5836 reuse the_only_display_info. Call get_tty_size to get screen
5837 dimensions. Call init_baud_rate to set bad_rate.
5838 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5839 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5840 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5841 (get_tty_terminal, get_named_tty, Ftty_type)
5842 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5843 output_termcap.
b8ff72fa
SM
5844 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5845 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5846 only when subprocesses are supported.
aac0c6e3
MR
5847
5848 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5849 f->output_data.x.
5850 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5851 terminal devices.
5852
5582fbc7 5853 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
5854 x_output.
5855 (FRAME_FONT): Use output_data.tty.
5856 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
5857 (struct x_display_info): Rename from display_info. Update all users in
5858 msdos.c.
aac0c6e3 5859 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 5860 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
5861 (dos_ttraw): Update prototype.
5862
5863 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5864 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5865
58662008-08-23 Jason Rumney <jasonr@gnu.org>
5867
5868 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5869 (fn_TIFFSetDirectory): New library function used.
5870 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5871 (tiff_load): Use :index to select among multiple images. Set count
5872 property when multiple images exist.
5873 (gif_format): Use :index, not :image.
5874
58752008-08-23 Chong Yidong <cyd@stupidchicken.com>
5876
5877 * xdisp.c (try_scrolling): Check INT_MAX instead of
5878 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5879 to obtain INT_MAX.
5880
58812008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5882
5883 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5884
58852008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5886
5887 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5888 GNUstep library location.
5889
58902008-08-21 Chong Yidong <cyd@stupidchicken.com>
5891
5892 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5893 before using it.
5894
5895 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5896
58972008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5898
5899 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5900 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5901 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5902 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5903 (EmacsApp-cursor_blink_handler): Remove declaration.
5904 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5905 match 01 Feb 2008 changes in xterm.c.
5906 (ns_read_socket): Add cast to avoid warning.
5907 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5908 GNUstep.
5909
59102008-08-20 Chong Yidong <cyd@stupidchicken.com>
5911
5912 * xselect.c (x_get_foreign_selection): Return nil if desired
5913 selection could not be obtained, instead of signalling an error.
5914
59152008-08-20 David Reitter <david.reitter@gmail.com>
5916
5917 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5918 * nsterm.m: Remove ns-specific code for cursor blinking.
5919 (ns_draw_window_cursor): Clear cursor properly rather than
5920 redrawing the area. Respect width of bar cursors.
5921 These changes enable the use of generic blink-cursor-mode and
5922 generic cursor types in NS and support smooth cursor movements (do
5923 not blink off after command).
5924 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5925 Nextstep, too.
5926
59272008-08-19 Kenichi Handa <handa@m17n.org>
5928
5929 * font.c (Vfont_log_deferred): New variable.
5930 (font_add_log): Check Vfont_log_deferred.
5931 (font_deferred_log): New function.
5932
5933 * font.h (font_deferred_log): Extern it.
5934
5935 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5936 for sorting.
5937 (face_for_char): Use deferred log.
5938
59392008-08-18 Kenichi Handa <handa@m17n.org>
5940
5941 * fontset.c (face_for_char): Add font log.
5942
5943 * font.c (font_add_log): Add the font properties :script, :lang,
5944 and :otf in the log.
5945
59462008-08-17 Chong Yidong <cyd@stupidchicken.com>
5947
5948 * xdisp.c: Remove dead code.
5949 (handle_invisible_prop, next_overlay_string): Defer call to
5950 setup_for_ellipsis.
5951 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5952
59532008-08-15 Chong Yidong <cyd@stupidchicken.com>
5954
5955 * xfaces.c (lookup_derived_face): Properly handle possible zero
5956 return value of get_lface_attributes.
5957 (merge_faces): Don't tell lookup_derived_face to signal an error
5958 if face is not found.
5959
5960 * dired.c (Fdirectory_files): Doc fix.
5961
5962 * process.c (make_process): Initialize kill_without_query struct
5963 member.
5964
59652008-08-15 Eli Zaretskii <eliz@gnu.org>
5966
5967 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5968 Alternative calculation of totphys for Visual Studio 6.
5969
5970 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5971
5972 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5973 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5974 All users changed.
5975 (stat): Only root directory passed to GetDriveType. Allow RAM
5976 disk as well as local fixed disk when w32-get-true-file-attributes
5977 is set to `local'.
5978 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5979 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5980 (w32_cached_id, w32_add_to_cache): New functions.
5981 (get_name_and_id): Look account names in the cache before calling
5982 lookup_account_sid.
5983 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5984 New initialization flags.
5985 (globals_of_w32): Initialize them to zero.
5986 (w32_system_process_attributes): Use w32_cached_id and
5987 w32_add_to_cache.
5988
59892008-08-14 Lawrence Mitchell <wence@gmx.li>
5990
5991 * lread.c (Fread_char, Fread_char_exclusive): If no character
5992 event is read before timeout is reached, return nil, rather than
5993 converting to a number.
5994
59952008-08-14 Chong Yidong <cyd@stupidchicken.com>
5996
5997 * fns.c (use_dialog_box): Doc fix.
5998
5999 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6000 on OS X.
6001
60022008-08-13 Chong Yidong <cyd@stupidchicken.com>
6003
6004 * frame.c (Qns_parse_geometry): New var.
6005 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6006
60072008-08-11 Chong Yidong <cyd@stupidchicken.com>
6008
6009 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6010 space character in calculating tabs.
6011
60122008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6013
6014 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6015
60162008-08-10 Glenn Morris <rgm@gnu.org>
6017
6018 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6019 silence gcc "limited range of data type" warnings in some
6020 make_fixnum_or_float calls.
6021
60222008-08-09 Eli Zaretskii <eliz@gnu.org>
6023
6024 * w32.c (w32_system_process_attributes): If the process does not
6025 exist, return nil.
6026
6027 * w32.c: Include thelp32.h, psapi.h and coding.h.
6028 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6029 declarations.
6030 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6031 (Process32Next_Proc): New typedefs.
6032 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6033 (g_b_init_process32_next, g_b_init_open_thread_token)
6034 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6035 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6036 (g_b_init_get_process_working_set_size)
6037 (g_b_init_global_memory_status_ex): New static variables.
6038 (globals_of_w32): Initialize them.
6039 (create_toolhelp32_snapshot, process32_first, process32_next)
6040 (open_thread_token, impersonate_self, revert_to_self)
6041 (get_process_memory_info, get_process_working_set_size)
6042 (global_memory_status, global_memory_status_ex): New wrapper
6043 functions.
6044 (w32_list_system_processes, w32_system_process_attributes)
6045 (enable_privilege, restore_privilege, ltime, process_times):
6046 New functions.
6047 (convert_time_raw): New function.
6048 (convert_time): Remove conversion of FILETIME into time in 100
6049 nsec units, call convert_time_raw instead.
6050
6051 * process.h (w32_list_system_processes, w32_system_process_attributes):
6052 Add prototypes.
6053 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6054 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6055 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6056 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6057
6058 * process.c (Fsystem_process_attributes): Doc fix.
6059
60602008-08-08 Chong Yidong <cyd@stupidchicken.com>
6061
6062 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6063 a continued multi-char glyph; if so, advance to the actual glyph.
6064
60652008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6066
6067 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6068
6069 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6070 (.m.o): Use it.
6071 * config.in: Regenerate.
6072
60732008-08-07 Chong Yidong <cyd@stupidchicken.com>
6074
6075 * xdisp.c (redisplay_window): Revert last change.
6076 (try_window): Check bottom scroll margin too.
6077
60782008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6079
6080 * config.in: Regenerate.
6081
6082 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6083 -list-load-path-shadows'.
6084 (nsgui.h): Reduce number of things depending on it.
6085
60862008-08-06 Chong Yidong <cyd@stupidchicken.com>
6087
6088 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6089 instead of window-end which does the wrong thing at eob.
6090 (try_cursor_movement): Minor optimization.
6091 (redisplay_window): If scroll margin is defined, don't assume
6092 window doesn't need scrolling.
6093
60942008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6095
6096 * config.in: Regenerate.
6097
6098 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6099 (mostlyclean): Don't delete *.d under NS.
6100
6101 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6102
61032008-08-06 Kenichi Handa <handa@m17n.org>
6104
6105 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6106
61072008-08-06 Andreas Schwab <schwab@suse.de>
6108
6109 * config.in: Regenerate.
6110
61112008-08-05 Chong Yidong <cyd@stupidchicken.com>
6112
6113 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6114 forcing a window start.
6115
6116 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6117 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6118
61192008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6120
6121 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6122 argument.
6123
61242008-08-05 Juanma Barranquero <lekktu@gmail.com>
6125
6126 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6127 <scroll-down-aggressively, before-change-functions>:
6128 <after-change-functions>: Reflow docstrings.
6129
61302008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6131 Ken Raeburn <raeburn@gnu.org>
6132
6133 Dock menu customization, based on a patch by Ken Raeburn, plus some
6134 other fixes.
6135 * nsmenu.m (dockMenu): New variable.
6136 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6137
6138 * nsterm.h (dockMenu): Declare.
6139
6140 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6141 (ns_term_init): Initialize dockMenu.
6142 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6143 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6144 left.
6145
6146 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6147
61482008-08-04 Chong Yidong <cyd@stupidchicken.com>
6149
6150 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6151
6152 * config.in: Regenerate.
6153
61542008-08-04 Seiji Zenitani <zenitani@mac.com>
6155
6156 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6157
61582008-08-04 Chong Yidong <cyd@stupidchicken.com>
6159
6160 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6161
61622008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6163
6164 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6165
6166 * keyboard.h: Comment an #endif.
6167
6168 * lisp.h (have_menus_p): Adjust comment.
6169
6170 * menu.c (find_and_return_menu_selection): Fix comparison with
6171 client_data.
6172
6173 * nsmenu.m (popup_activated_flag): New variable.
6174 (popup_activated): New function.
6175 (menu-or-popup-active-p): New exported lisp definition.
6176 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6177 when popup done.
6178 (ns_popup_dialog): Set popup_activated_flag.
6179
6180 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6181 version for GNUstep (handled by conditional typedef in nsterm.m).
6182 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6183 in rgb.txt).
6184
6185 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6186
6187 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6188
6189 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6190
6191 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6192 shortcircuit if popup_activated like GTK and X toolkit.
6193
6194 * m/inter386.h: Change DARWIN to DARWIN_OS.
6195
6196 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6197 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6198 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6199 comment on NO_SOCK_SIGIO.
6200
62012008-08-03 Chong Yidong <cyd@stupidchicken.com>
6202
6203 * nsterm.m (windowDidResize): Remove stopModal call.
6204
62052008-08-03 Andreas Schwab <schwab@suse.de>
6206
6207 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6208 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6209
62102008-08-02 Chong Yidong <cyd@stupidchicken.com>
6211
6212 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6213 Don't use uninitialized pointer variable when using getrlimit.
6214
62152008-08-02 Jason Rumney <jasonr@gnu.org>
6216
6217 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6218
62192008-08-02 Eli Zaretskii <eliz@gnu.org>
6220
6221 * alloc.c (NSTATICS): Bump to 0x640.
6222
6223 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6224
6225 * lisp.h: Add prototype for directory_files_internal.
6226
6227 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6228 New functions.
6229 (syms_of_process): Defsubr them. Add initializations for various
6230 Q* symbols used in procfs_system_process_attributes.
6231 (procfs_list_system_processes, procfs_system_process_attributes)
6232 [HAVE_PROCFS]: New functions.
6233 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6234 (procfs_get_total_memory): New functions.
6235
62362008-08-01 Juanma Barranquero <lekktu@gmail.com>
6237
6238 * xfaces.c (Fx_load_color_file): Fix previous change;
6239 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6240
62412008-08-01 Michael Albinus <michael.albinus@gmx.de>
6242
6243 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6244
62452008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6246
6247 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6248
62492008-08-01 Chong Yidong <cyd@stupidchicken.com>
6250
6251 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6252
6253 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6254 define NSApplicationDelegateReplySuccess.
6255 (EmacsView -converstationIdentifier): Use long instead of
6256 NSInteger for GNUstep, since it doesn't have NSInteger.
6257
6258 * xmenu.c: Revert last change.
6259
6260 * keyboard.h: Fix last change.
6261
62622008-08-01 Juanma Barranquero <lekktu@gmail.com>
6263
6264 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6265 on Windows.
6266
62672008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6268
6269 Warning clearing and clean-up in NS port.
6270 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6271 Add prototypes.
6272 * nsgui.h (FACE_DEFAULT): Remove, unused.
6273 (XGCValues): Change colors to unsigned long.
6274 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6275 nsterm.m.
6276 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6277 (ns_list_fonts): Remove, unused.
6278 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6279 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6280 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6281 (nsfont_draw): Compare face colors to 0, not nil.
6282 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6283 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6284 (-addSubmenuWithTitle:): Use NSMenuItem class.
6285 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6286 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6287 (ns_clip_to_row): Make gc arg a BOOL.
6288 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6289 ns_clip_to_row() call.
6290 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6291 used). Cast FRAME_FONT assignments.
6292 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6293 (ns_string_to_lispmod): Change arg to const char.
6294 (ns_term_init): Use NSMenuItem class.
6295 (EmacsApp -openFile:): Move to different section of file.
6296 (EmacsApp -application:openFiles:): Don't return a value, call
6297 -replyToOpenOrPrint:.
6298 (EmacsView -keyDown:): Fix up cast.
6299 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6300 (EmacsView -menuDown:): Cast tag in call to
6301 find_and_call_menu_selection().
6302 (ns_list_fonts): Remove, unused.
6303 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6304 (ns_fontname_to_xlfd): Make static.
6305 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6306 Remove prototypes (now in keyboard.h).
6307 (next_menubar_widget_id): Remove, unused.
6308 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6309 Remove prototypes (now in keyboard.h).
6310 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6311
63122008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6313
6314 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6315 (floatfns.o): Depend on syssignal.h.
6316 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6317
6318 * systty.h: Fix previous change that removed BSD_TERMIOS.
6319 Add comments to #ifdefs.
6320
63212008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6322
6323 * w32fns.c (w32-load-color-file): Remove.
6324 (x-open-connection): Use renamed Fx_load_color_file.
6325 * xfaces.c (x-load-color-file): Add.
6326 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6327 Emacs.clr.
6328 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6329
63302008-07-31 Michael Albinus <michael.albinus@gmx.de>
6331
6332 * dbusbind.c (Fdbus_call_method_asynchronously)
6333 (Fdbus_method_error_internal): New defuns.
6334 (xd_read_message): Handle also reply messages.
6335 (Vdbus_registered_functions_table): Extend docstring.
6336
63372008-07-31 Juanma Barranquero <lekktu@gmail.com>
6338
6339 * keyboard.c (gobble_input): Fix previous change.
6340
63412008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6342
6343 * bitmaps/README:
6344 * xfns.c:
6345 * termcap.c:
6346 * term.c:
6347 * syswait.h:
6348 * systty.h:
6349 * systime.h:
6350 * syssignal.h:
6351 * sysdep.c:
6352 * process.h:
6353 * process.c:
6354 * print.c:
6355 * ndir.h:
6356 * lread.c:
6357 * keyboard.c:
6358 * getpagesize.h:
6359 * floatfns.c:
6360 * fileio.c:
6361 * emacs.c:
6362 * doc.c:
6363 * dispnew.c:
6364 * dired.c:
6365 * data.c:
6366 * callproc.c:
6367 * buffer.c:
6368 * README:
6369 * Makefile.in:
6370 * s/template.h:
6371 * s/msdos.h:
6372 * m/vax.h: Remove VMS support.
6373 * s/vms.h:
6374 * vlimit.h:
6375 * uaf.h:
6376 * temacs.opt:
6377 * param.h:
6378 * ioctl.h: Remove file.
6379
63802008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6381
6382 * s/ms-w32.h (MULTI_KBOARD): Remove.
6383 * xterm.c:
6384 * xselect.c:
6385 * xfns.c:
6386 * window.c:
6387 * w32term.c:
6388 * w32fns.c:
6389 * terminal.c:
6390 * termhooks.h:
6391 * term.c:
6392 * sysdep.c:
6393 * keyboard.h:
6394 * keyboard.c:
6395 * frame.h:
6396 * frame.c:
6397 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6398 * config.in: Regenerate.
6399
64002008-07-30 Jason Rumney <jasonr@gnu.org>
6401
6402 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6403
6404 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6405 (w32font_open_internal): Get unicode version of textmetrics.
6406 Don't enable or disable glyph indices here.
6407 (w32font_open): Disable use of glyph indices.
6408
6409 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6410
64112008-07-30 Chong Yidong <cyd@stupidchicken.com>
6412
6413 * minibuf.c (Vread_buffer_function): Doc fix.
6414
64152008-07-30 John Paul Wallington <jpw@pobox.com>
6416
6417 * minibuf.c (read_buffer_completion_ignore_case): New var.
6418 (Fread_buffer): Use it.
6419
64202008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6421
6422 * systty.h (sensemode): Remove empty #if. Remove reference to
6423 BSD_TERMIOS, unused.
6424
6425 * sysdep.c: Remove reference to DGUX.
6426 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6427
6428 * config.in: Regenerate.
6429
64302008-07-30 Jason Rumney <jasonr@gnu.org>
6431
6432 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6433
64342008-07-29 Jason Rumney <jasonr@gnu.org>
6435
6436 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6437 is populated.
6438 (uniscribe_encode_char): Always use uniscribe.
6439 Avoid using context if cache is populated.
6440
64412008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6442
6443 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6444 open menu.
6445
6446 * gtkutil.c (menu_nav_ended): Remove.
6447 (create_menus): Remove signal connect for menu_nav_ended.
6448
64492008-07-28 Chong Yidong <cyd@stupidchicken.com>
6450
6451 * xdisp.c (redisplay_window): Check return value of
6452 compute_window_start_on_continuation_line before forcing a window
6453 start.
6454
64552008-07-28 Jason Rumney <jasonr@gnu.org>
6456
6457 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6458
6459 * w32term.c (w32_enable_unicode_output, cleartype_active):
6460 Remove obsolete display options.
6461 (x_draw_glyph_string_background): Don't use old cleartype_active
6462 workaround.
6463 (w32_initialize): Remove cleartype_active initialization.
6464 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6465
64662008-07-28 Andreas Schwab <schwab@suse.de>
6467
6468 * lisp.h (init_weak_hash_tables, syms_of_font)
6469 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6470 (remove_hash_entry): Don't declare.
6471 * eval.c (maybe_call_debugger): Make static and move before use.
6472 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6473 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6474 * xterm.h (x_set_frame_alpha): Declare.
6475
64762008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6477
6478 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6479 (create_menus): Connect selection-done to menu_nav_ended.
6480
64812008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6482
6483 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6484 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6485 parameter with read of 'alpha' one.
6486 (Qns_frame_parameter): Remove.
5582fbc7 6487 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6488 (next-selection-coding-system, Vselection_coding_system)
6489 (Vnext_selection_coding_system): Drop.
6490
64912008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6492
6493 * nsfns.m (do-applescript, do_applescript): Rename to
6494 ns-do-applescript, ns_do_applescript, and move within file.
6495
64962008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6497
6498 Remove support for Mac Carbon.
6499 * mactoolbox.c:
6500 * macterm.h:
6501 * macterm.c:
6502 * macselect.c:
6503 * macmenu.c:
6504 * macgui.h:
6505 * macfns.c:
6506 * mac.c: Remove file.
6507 * s/darwin.h:
6508 * m/intel386.h:
6509 * xfaces.c:
6510 * xdisp.c:
6511 * window.c:
6512 * tparam.c:
6513 * termhooks.h:
6514 * termcap.c:
6515 * term.c:
6516 * syssignal.h:
6517 * sysselect.h:
6518 * sysdep.c:
6519 * process.c:
6520 * lread.c:
6521 * lisp.h:
6522 * keyboard.c:
6523 * image.c:
6524 * fringe.c:
6525 * frame.h:
6526 * frame.c:
6527 * fontset.c:
6528 * font.h:
6529 * font.c:
6530 * fns.c:
6531 * fileio.c:
6532 * emacs.c:
6533 * dispnew.c:
6534 * dispextern.h:
6535 * config.in:
6536 * atimer.c:
2ae37cf0 6537 * Makefile.in: Remove code for Carbon.
aac0c6e3 6538
f0131492 65392008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6540
6541 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6542
65432008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6544
6545 * macterm.h (kCGBitmapByteOrder32Host): New define for
6546 non-universal SDKs.
6547
6548 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6549 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6550
6551 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6552 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6553
65542008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6555
6556 * w32inevt.c: Include dispextern.h.
6557
65582008-07-26 Andreas Schwab <schwab@suse.de>
6559
6560 * print.c (print_object): Fix off-by-one in last change.
6561
65622008-07-25 Juanma Barranquero <lekktu@gmail.com>
6563
6564 * term.c (syms_of_term): Don't initialize default_orig_pair,
6565 default_set_foreground and default_set_background on Windows.
6566
65672008-07-25 Jason Rumney <jasonr@gnu.org>
6568
6569 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6570 ScriptItemize. Clean up return value checking. Remove unused
6571 variables.
6572 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6573 shaping engine.
6574
6575 * w32font.c (w32font_has_char): Handle the case where we can't
6576 determine the script for a character.
6577
65782008-07-25 Chong Yidong <cyd@stupidchicken.com>
6579
6580 * term.c (syms_of_term): Initialize default_orig_pair,
6581 default_set_foreground, and default_set_background.
6582
6583 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6584 clash (bug#86).
6585 (getloadavg): Callers changed.
6586
6587 * image.c (svg_load_image): Fix last change.
6588 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6589 image size is valid. Use g_object_unref instead of deprecated
6590 rsvg_handle_free to free rsvg handle.
6591 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6592
65932008-07-25 Jason Rumney <jasonr@gnu.org>
6594
6595 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6596 surrogates before looking up glyph index.
6597 (w32font_text_extents): Encode as surrogates if falling back to
6598 functions that need UTF-16 wide chars.
6599
6600 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6601 BMP as surrogates before looking up glyph index.
6602
66032008-07-25 Chong Yidong <cyd@stupidchicken.com>
6604
6605 * image.c (svg_load_image): Check for failure in return value of
6606 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6607
66082008-07-25 Jason Rumney <jasonr@gnu.org>
6609
6610 * w32font.c (Fx_select_font): Reverse sense of second arg.
6611
66122008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6613
6614 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6615 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6616
6617 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6618 (PURESIZE): Use it.
6619
66202008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6621
6622 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6623 * m/alpha.h (TEXT_END):
6624 * m/ibmrs6000.h (TEXT_END):
6625 * m/macppc.h (TEXT_END):
6626 * s/darwin.h (TEXT_END):
6627 * s/msdos.h (TEXT_END): Remove, unused.
6628 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6629 * s/cygwin.h: Remove comment.
6630
6631 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6632 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6633 * m/intel386.h (DOT_GLOBAL_START):
6634 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6635 (USG): Remove, file not used on USG platforms.
6636
6637 * Makefile.in (HAVE_X11): Remove empty #else.
6638
66392008-07-24 Andreas Schwab <schwab@suse.de>
6640
6641 * fileio.c (Finsert_file_contents): Properly adjust undo list
6642 after format conversion.
6643
66442008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6645
6646 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6647 (menu_nav_ended): Remove.
6648 (create_menus): Remove signal connect for menu_nav_ended.
6649 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6650 create_menus.
6651 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6652
66532008-07-23 Jason Rumney <jasonr@gnu.org>
6654
6655 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6656 with opened font.
6657 (w32font_open): Set font type to gdi.
6658
6659 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6660
66612008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6662
6663 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6664 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6665 defines it.
6666 * unexec.c (ADDR_CORRECT): Define unconditionally.
6667
6668 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6669
6670 * unexec.c: Remove code depending on !COFF and USG, the file is
6671 not used for such systems.
6672
6673 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6674 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6675 (LD_SWITCH_SYSTEM_1): Remove, update users.
6676
6677 * s/darwin.h (DATA_END):
6678 * m/intel386.h (DATA_END):
6679 * m/ibmrs6000.h (DATA_END):
6680 * m/alpha.h (DATA_END): Remove, unused.
6681
6682 * config.in: Regenerate.
6683 * s/ms-w32.h (subprocesses): Define unconditionally.
6684 * s/template.h (subprocesses): Update comment.
6685 * s/vms.h (subprocesses):
6686 * s/usg5-4.h (subprocesses):
6687 * s/hpux10-20.h (subprocesses):
6688 * s/gnu-linux.h (subprocesses):
6689 * s/cygwin.h (subprocesses):
6690 * s/bsd-common.h (subprocesses):
6691 * s/aix4-2.h (subprocesses):
6692 * s/darwin.h (subprocesses): Do not define, defined by default now.
6693
6694 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6695 Remove all references.
6696 (temacs): Add GNUstep specific ld flags.
6697
6698 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6699 similarly to what X does.
6700
67012008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6702
6703 * nsfns.m (x-list-fonts): Remove.
6704 (syms_of_nsfns): Drop the x-list-fonts declaration.
6705 * nsterm.m: Get rid of remaining "//" comments.
6706
67072008-07-22 Chong Yidong <cyd@stupidchicken.com>
6708
6709 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6710
6711 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6712 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6713 (Fns_own_selection_internal, Fx_disown_selection_internal)
6714 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6715
6716 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6717 ... */' style of docstrings. Doc fixes.
6718
67192008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6720
6721 * terminfo.c (UP, BC, PC): Undo previous change.
6722
6723 * nsfns.m: Rename ns prefixed functions/variables to the
6724 corresponding x versions. Update references.
6725
67262008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6727
6728 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6729
67302008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6731
6732 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6733 Remove forwarding functions.
6734 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6735 non-static.
6736 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6737 non-static.
6738 (ns_frame_parm_handlers): Use the new names.
6739 (syms_of_nsfns): Move to the end of file.
6740
6741 * nsterm.m (syms_of_nsterm): Move to the end of file.
6742
6743 * dispnew.c (init_display): Remove code for X10.
6744
67452008-07-22 Jason Rumney <jasonr@gnu.org>
6746
6747 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6748 bare drive.
6749
67502008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6751
6752 * nsterm.m (syms_of_nsterm): Remove debugging println.
6753
67542008-07-22 David Reitter <david.reitter@gmail.com>
6755
6756 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6757 Carbon implementation of the same functionality: execute arbitrary
6758 AppleScript code.
6759
67602008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6761
6762 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6763 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6764 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6765 (Fx_display_mm_height, Fx_display_mm_width)
6766 (Fx_display_backing_store, Fx_display_visual_class)
6767 (Fx_display_save_under, Fx_open_connection)
6768 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6769 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6770 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6771 (Fx_display_pixel_width, Fx_display_pixel_height)
6772 (Fx_display_usable_bounds, Fx_display_planes)
6773 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6774 ... */' style of docstrings.
6775
67762008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6777
6778 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6779 on this platform.
6780 (mips):
6781 * m/iris4d.h (mips): Do not define.
6782 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6783
6784 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6785
6786 * image.c:
6787 * nsfns.m:
6788 * nsselect.m:
6789 * nsterm.h:
6790 * nsterm.m: Rename ns prefixed functions/variables to the
6791 corresponding x versions. Update references.
6792
6793 * m/ibms390x.h (NO_REMAP): Do not undefine.
6794
6795 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6796
67972008-07-21 Chong Yidong <cyd@stupidchicken.com>
6798
6799 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6800 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6801 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6802 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6803 (Fns_display_mm_height, Fns_display_mm_width)
6804 (Fns_display_backing_store, Fns_display_visual_class)
6805 (Fns_display_save_under, Fns_open_connection)
6806 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6807 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6808 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6809 (Fns_display_pixel_width, Fns_display_pixel_height)
6810 (Fns_display_usable_bounds, Fx_display_planes)
6811 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6812
68132008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6814
6815 * print.c (print_object): Check print_depth before searching for
6816 circularities.
6817
68182008-07-21 Michael Albinus <michael.albinus@gmx.de>
6819
6820 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6821 only sprintf.
6822
68232008-07-21 Kenichi Handa <handa@m17n.org>
6824
6825 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6826
68272008-07-20 Andreas Schwab <schwab@suse.de>
6828
6829 * syntax.c (find_start_pos, find_start_value)
6830 (find_start_value_byte, find_start_begv, find_defun_start)
6831 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6832
68332008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6834
6835 * s/sol2-3.h: Insert contents of s/sol2.h.
6836 (LD_SWITCH_SYSTEM): Remove redundant definition.
6837 * s/sol2.h: Remove, unused.
6838
68392008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6840
6841 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6842
68432008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6844
6845 * Makefile.in (ns_appdir): Fix typo in find command.
6846
68472008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6848
6849 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6850
6851 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6852 added not supported anymore.
6853
6854 * s/usg5-4-2.h (LIBS_SYSTEM):
6855 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6856
6857 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6858 * s/lynxos.h (GETPGRP_NO_ARG):
6859 * s/hpux10-20.h (NO_SIOCTL_H):
6860 * s/gnu.h (GETPGRP_NO_ARG):
6861 * s/gnu-linux.h (NO_SIOCTL_H):
6862 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6863 * s/cygwin.h (GETPGRP_NO_ARG):
6864 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6865 (C_DEBUG_SWITCH): Remove duplicate definition.
6866
6867 * m/ibms390.h: Remove boilerplate comments.
6868
6869 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6870
6871 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6872 (wait_reading_process_output): Remove code for SunOS, platform not
6873 supported anymore. Use SOLARIS2 instead of sun.
6874
68752008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6876
6877 * font.c (font_open_by_name): Under NS, default lface height to zero.
6878 (font_open_for_lface): Under NS, set size based on frame fontsize.
6879 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6880 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6881
68822008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6883
6884 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6885 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6886 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6887 YES/NO.
6888 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6889 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6890 * Makefile.in (clean): Clear out build destination dir.
6891
68922008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6893
6894 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6895 xterm, xselect.
6896 * lisp.h: Remove declaration of hash_remove.
6897 * nsgui.h: Remove redefinitions of hash_remove.
6898 * fns.c (hash_remove): Rename to hash_remove_from_table.
6899
69002008-07-19 Seiji Zenitani <zenitani@mac.com>
6901
6902 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6903 strdup() the family UTF8String before modifying it.
6904
69052008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6906
6907 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6908 NS_FACE_BACKGROUND with 0 instead of nil.
6909 * nsfont.m (nsfont_draw): Same.
6910
69112008-07-19 Chong Yidong <cyd@stupidchicken.com>
6912
6913 * nsfns.m (ns_set_background_color): Fix crash.
6914
69152008-07-18 Chong Yidong <cyd@stupidchicken.com>
6916
6917 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6918
69192008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6920
6921 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6922
69232008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6924
6925 * gtkutil.c: Include <config.h> instead of "config.h".
6926
6927 * lisp.h (Foverlay_buffer): Add EXFUN.
6928
6929 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6930 child process to complete child_setup. Undo 2005-09-21 change.
6931
6932 * s/darwin.h: Mention setsid after vfork.
6933
69342008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6935
6936 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6937 Depend on macgui.h.
6938
6939 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6940 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6941
6942 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6943 and f19.
6944 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6945
6946 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6947 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6948 Remove enumerators.
6949
6950 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6951 Check if FACE_FROM_ID returns NULL.
6952
69532008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6954
6955 * w32inevt.c (change_frame_size): Remove extern declaration.
6956 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6957 change_frame_size.
6958
69592008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6960
6961 * getloadavg.c: Revert last change (2008-07-15).
6962
69632008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6964
6965 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 6966 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
6967 from configure.
6968
69692008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
6970
6971 * s/sol2.h:
6972 * s/sol2-4.h: Reorganize conditionals.
6973
6974 * ecrt0.c: Remove code depending on m68000, not used anymore.
6975
6976 * fns.c (hash_remove): Make static.
6977 * lisp.h (hash_remove): Don't prototype.
6978
6979 * m/ibmrs6000.h:
6980 * m/ibms390x.h:
6981 * m/macppc.h: Remove boilerplate comments.
6982
6983 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6984 Solaris, which does not need them.
6985
6986 * m/vax.h: Remove comments about unsupported systems.
6987
6988 * s/darwin.h: Reorganize ifdefs.
6989
69902008-07-17 Andreas Schwab <schwab@suse.de>
6991
6992 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6993
69942008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
6995
6996 Use SDATA. Follow coding convention of placing operators at
6997 beginning of next line rather than end of previous line, and placing
6998 spaces around infix operators.
6999
7000 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7001 in case it was defined already.
7002 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7003 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7004 ns_default.
7005 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7006 Lisp_Objects.
7007 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7008 (ns_defined_color, ns_color_to_lisp): Declare.
7009 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7010 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7011 it's accepted even with USE_LISP_UNION_TYPE.
7012 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7013 (update_frame_tool_bar): Remove apparently obsolete tests for
7014 non-integerness of f->tool_bar_lines.
7015 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7016 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7017 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7018 (nsfont_open): Don't confuse NULL for Qnil.
7019 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7020 * menu.h (find_and_call_menu_selection):
7021 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7022 (find_and_return_menu_selection): Always return something.
7023 * frame.h: Include dispextern.h for Display_Info.
7024 (display_x_get_resource): Declare.
7025
70262008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7027
7028 * syntax.c: Remove stdio.h include accidentally introduced in
7029 Emacs.app commit.
7030 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7031 NS_IMPL_COCOA.
7032 * keyboard.c (handle_async_input, input_available_signal): Remove
7033 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7034
70352008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7036
7037 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7038 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7039 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7040 Use SDATA.
7041
7042 * keymap.c: Remove all NS-specific code.
7043 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7044 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7045 where_is_preferred_modifier, return a different value depending on how
7046 preferred is the binding.
7047 (where_is_internal): Adjust accordingly.
7048 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7049 Adjust to new preferred_sequence_p.
7050 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7051 * keyboard.c (parse_solitary_modifier): Not static any more.
7052 * keyboard.h (parse_solitary_modifier): Declare.
7053
70542008-07-16 Andreas Schwab <schwab@suse.de>
7055
7056 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7057 of easymenu.
7058
70592008-07-16 Chong Yidong <cyd@stupidchicken.com>
7060
7061 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7062 that we don't move off the line.
7063
70642008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7065
7066 * keyboard.c (Qsuper): Remove.
7067 (parse_menu_item): Don't call where_is_internal specially for NS.
7068
70692008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7070
7071 * s/gnu-linux.h: Remove boilerplate comments.
7072
7073 * m/alpha.h (__ELF__): Consolidate conditions.
7074
7075 * m/m68k.h (linux): Use GNU_LINUX instead.
7076 Remove boilerplate comments.
7077
7078 * m/intel386.h: Undo refactoring from previous change.
7079 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7080 too, remove dead code.
7081 (linux): Use GNU_LINUX instead.
7082
70832008-07-16 Jason Rumney <jasonr@gnu.org>
7084
7085 * w32gui.h: Repeat 26 June changes lost by last change.
7086
70872008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7088
7089 * systty.h: Remove code for Aix on 386, unsupported platform.
7090
7091 * s/ms-w32.h: Remove boilerplate comments.
7092 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7093
7094 * s/gnu-linux.h (TERM): Remove support.
7095 (HAVE_SYSVIPC): Remove, unused.
7096 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7097 for this system.
7098
7099 * process.c: Remove support for IRIS, unused.
7100 Remove support for TERM, not relevant anymore.
7101
7102 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7103 used with the definition.
7104
7105 * s/aix4-2.h (static): Do not undef.
7106
7107 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7108 only used on Aix.
7109 (HAVE_SYSVIPC): Remove, unused.
7110
7111 * m/hp800.h (CANNOT_DUMP): Do not undef.
7112
7113 * m/alpha.h: Fix comment.
7114
7115 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7116 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7117 used by this configuration.
7118 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7119 * unexec.c: Remove code depending on HPUX and
7120 USG_SHARED_LIBRARIES, not used with this file. Remove code
7121 depending on IRIS, unused. Remove if 0-ed code.
7122
7123 * s/template.h: Remove comments about static.
7124
7125 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7126 Remove if 0-ed code.
7127 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7128 were the same as the default.
7129 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7130 Remove boilerplate comments.
7131 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7132 (HAVE_SYSVIPC): Remove, unused.
7133 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7134
7135 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7136 Remove boilerplate comments.
7137 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7138 Remove boilerplate comments.
7139 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7140 Remove boilerplate comments.
7141 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7142
7143 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7144 USG systems which do not use DATA_SEG_BITS.
7145 Refactor code. Remove boilerplate comments.
7146
7147 * m/ibms390.h:
7148 * m/m68k.h:
7149 * s/bsd-common.h:
7150 * s/cygwin.h:
7151 * s/darwin.h:
7152 * s/freebsd.h:
7153 * s/gnu.h:
7154 * s/msdos.h: Remove boilerplate comments.
7155
7156 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7157 do not use this file.
aac0c6e3
MR
7158 (IRIS_4D): Remove, unused.
7159
7160 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7161 do not use this file.
aac0c6e3
MR
7162 (SIGN_EXTEND_CHAR):
7163 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7164 * unexmips.c: Remove file, unused.
7165
7166 * editfns.c (Fuser_full_name): Replace the only use of
7167 USER_FULL_NAME with its value.
7168 * config.in: Regenerate.
7169
71702008-07-16 David Reitter <david.reitter@gmail.com>
7171
7172 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7173 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7174
71752008-07-16 Glenn Morris <rgm@gnu.org>
7176
7177 * emacs.c (system-type): Doc fix.
7178
71792008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7180
7181 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7182 If the cache doesn't work, let's fix it, rather than work around it.
7183
71842008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7185
7186 * Makefile.in: Correct additions for nsfont.o in last commit.
7187 * nsfont.m: New file (forgot last commit).
7188
71892008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7190
7191 * callproc.c (set_initial_environment): Initialize
7192 Vprocess_environment under CANNOT_DUMP (fixes crash when
7193 batch-compiling for bootstrap).
7194
71952008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7196 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7197
7198 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7199 fix crash due to different init order.
7200
72012008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7202
7203 Changes and additions for NeXTstep windowing system (Cocoa and
7204 GNUstep) support.
7205
7206 * Makefile.in:
7207 * config.in: Support defines and build commands for NS port.
7208 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7209 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7210 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7211 windowing.
7212 (struct face): Add synth_ital field.
7213 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7214 (init_display): Initialize Vinitial_window_system to "ns" when so
7215 compiled.
7216 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7217 (display_arg): Use under NS.
7218 (main): Under NS, allocate autorelease pool and handle command line
7219 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7220 (standard_args): Add NS-specific args.
7221 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7222 * font.c (DEFAULT_ENCODING): New variable.
7223 (font_find_for_lface): Use it.
7224 (syms_of_font): Load syms_of_nsfont under NS.
7225 * font.h: Declare nsfont_driver when compiled under NS.
7226 * fontset.c: When compiling under NS, include nsterm.h.
7227 (fontset_from_font): Autoconstruct fontset under NS.
7228 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7229 symbol, document and use it.
7230 (do_switch_frame): When for_deletion under Cocoa, add
7231 Fraise_frame(Qnil).
7232 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7233 (x_get_arg): Allow "yes" and "no" as boolean values.
7234 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7235 Qright under Cocoa.
7236 (focus-follows-mouse): Default to 0 under NS.
7237 * frame.h (enum output_method): Add output_ns.
7238 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7239 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7240 (FRAME_WINDOW_P): NS-specific definition.
7241 * fringe.c (max_used_fringe_bitmap): Make public.
7242 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7243 (getloadavg): Use NeXT code under descendant OS's.
7244 * image.c (includes and header section, x_create_bitmap_from_data)
7245 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7246 (image_background_transparent, x_clear_image_1)
7247 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7248 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7249 (x_to_xcolors, x_from_xcolors, x_disable_image)
7250 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7251 other GUIs, including XPM support using code originally written for
7252 Carbon GUI.
7253 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7254 using NS API.
7255 (image_ascent): Use font metrics macros instead of direct struct field
7256 access.
7257 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7258 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7259 Also, handle NS as GTK for menu bar purposes.
7260 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7261 toolkit where they differ.
7262 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7263 use cachelist, still needed under NS.
7264 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7265 (struct widget_value): Define it here for menu.c.
7266 * keymap.c (includes): Include modifier internals.
7267 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7268 NS.
7269 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7270 support for preferring sequences using certain modifiers, specified by
7271 the FIRSTONLY argument.
7272 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7273 under NS GNUstep implementation.
7274 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7275 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7276 * menu.c: Include nsterm.h under NS.
7277 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7278 (free_menubar_widget_tree_value, update_submenu_strings)
7279 (find_and_call_menu_selection): Treat NS as X and NT.
7280 (find_and_return_menu_selection): New function, used for popup menus.
7281 * nsgui.h:
7282 * nsterm.h:
7283 * nsfns.m:
7284 * nsimage.m:
7285 * nsmenu.m:
7286 * nsselect.m:
7287 * nsterm.m: New files.
7288 * process.c (wait_reading_process_output): Under NS, call ns_select()
7289 instead of plain select().
7290 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7291 beginning of buffer.
7292 * sysselect.h (init_process): Rename when compiling under Cocoa to
7293 avoid name conflict.
7294 * termhooks.h (display_info): Add ns_display_info to union.
7295 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7296 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7297 COCOA environment.
7298 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7299 unexec() signature. (Note, this will dump, but the resulting file
7300 crashes; unexosx is used instead; keeping around for reference and
7301 possible aid in getting dump working under GNUstep.)
7302 * w32gui.h (button_type, widget_value): Remove definitions (now in
7303 keyboard.h).
7304 * window.c: Include nsterm.h when compiling under NS.
7305 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7306 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7307 other GUI windowing systems.
7308 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7309 GTK.
7310 (x_consider_frame_title): Under NS, set icon type and frame
7311 modified-state indicator; use ns_set_name_as_filename() when using
7312 formatted title.
7313 (update_window_cursor): Make public when compiling under NS.
7314 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7315 (hourglass_atimer, Vhourglass_delay
7316 * xfaces.c (header section, init_frame_faces, clear_font_table)
7317 (defined_color, unload_color, x_face_list_fonts)
7318 (prepare_face_for_display): Add NS support parallel to other GUIs.
7319 Emulate GCs like other non-X GUIs.
7320 (split_font_name): Don't lowercase font name under NS.
7321 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7322 under NS.
7323 * s/darwin.h: Add support for compilation under NS.
7324
73252008-07-15 Jason Rumney <jasonr@gnu.org>
7326
7327 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7328 (w32_show_hourglass): Rename from show_hourglass.
7329 (w32_hide_hourglass): Rename from hide_hourglass.
7330 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7331 (Vhourglass_delay): Declare extern.
7332 (hourglass_started): Remove.
7333
7334 * xdisp.c (Vhourglass_delay): Remove static.
7335 (hourglass_started, start_hourglass, cancel_hourglass):
7336 Don't include these versions on WINDOWSNT.
7337
73382008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7339
7340 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7341 variables (formerly in xfns.c).
7342 (show_hourglass, hide_hourglass): New prototypes (same).
7343 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7344 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7345 in xfns.c).
7346 (syms_of_xdisp): Declare/initialize display-hourglass,
7347 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7348 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7349 formerly in xfns.c.
7350 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7351 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7352 (start_hourglass, cancel_hourglass): Remove.
7353 (show_hourglass, hide_hourglass): Remove prototypes and static
7354 modifiers.
7355 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7356 hourglass_atimer, hourglass_shown_p declaration/initialization.
7357 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7358 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7359 (start_hourglass, cancel_hourglass): Remove.
7360 (show_hourglass, hide_hourglass): Remove prototypes and static
7361 modifiers.
7362 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7363 hourglass_atimer, hourglass_shown_p declaration/initialization.
7364 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7365 (DEFAULT_HOURGLASS_DELAY): Remove.
7366 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7367 hourglass_shown_p declaration/initialization.
7368
73692008-07-14 Jason Rumney <jasonr@gnu.org>
7370
7371 * w32fns.c (w32_get_arg): Remove wrapper function.
7372 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7373 directly.
7374 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7375
73762008-07-14 Kenichi Handa <handa@m17n.org>
7377
7378 * xfont.c (xfont_open): Add workaround for X's bug.
7379
73802008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7381
7382 * fontset.c: Include <stdio.h> unconditionally.
7383
73842008-07-13 Michael Albinus <michael.albinus@gmx.de>
7385
7386 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7387 for filtering.
7388
73892008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7390
7391 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7392
7393 * m/macppc.h:
7394 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7395
7396 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7397 (SPECIAL_EMACS_INT):
7398 * m/ia64.h (SPECIAL_EMACS_INT):
7399 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7400 * s/gnu.h (NLIST_STRUCT):
7401 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7402 * s/gnu-linux.h (LINUX):
7403 * s/msdos.h (HAVE_FACES):
7404 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7405
7406 * systty.h:
7407 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7408 anymore.
7409
74102008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7411
7412 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7413 always defined as int.
7414
7415 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7416 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7417 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7418 * s/freebsd.h (HAVE_WAIT_HEADER):
7419 * s/bsd-common.h (HAVE_UNION_WAIT):
7420 * s/aix4-2.h (HAVE_WAIT_HEADER):
7421 * m/mips.h (HAVE_UNION_WAIT):
7422 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7423 (COFF, static): Do not define, they are undefined later in the file.
7424
7425 * process.c (update_status): Don't use a union.
7426 (status_convert):
7427 (sigchld_handler): Use int instead of WAITTYPE.
7428
74292008-07-12 Chong Yidong <cyd@stupidchicken.com>
7430
7431 * indent.c (Fvertical_motion): Restore hscroll before moving to
7432 goal column.
7433
74342008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7435
7436 * lisp.h: Remove left over code.
7437
74382008-07-11 Andreas Schwab <schwab@suse.de>
7439
7440 * lisp.h: Fix logic in last change.
7441
7442 * menu.h: New file.
7443 * menu.c: Include it.
7444 * xmenu.c: Likewise.
7445 * Makefile.in: Update dependencies.
7446
74472008-07-11 Kenichi Handa <handa@m17n.org>
7448
7449 * fontset.c (fontset_from_font): Cancel the previous change.
7450
74512008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7452
7453 * lisp.h:
7454 * w32heap.c:
7455 * emacs.c:
7456 * alloc.c: Replace all references of NO_UNION_TYPE with
7457 USE_LISP_UNION_TYPE.
7458
7459 * m/xtensa.h (NO_UNION_TYPE):
7460 * m/vax.h (NO_UNION_TYPE):
7461 * m/template.h (NO_UNION_TYPE):
7462 * m/sparc.h (NO_UNION_TYPE):
7463 * m/mips.h (NO_UNION_TYPE):
7464 * m/macppc.h (NO_UNION_TYPE):
7465 * m/m68k.h (NO_UNION_TYPE):
7466 * m/iris4d.h (NO_UNION_TYPE):
7467 * m/intel386.h (NO_UNION_TYPE):
7468 * m/ibms390x.h (NO_UNION_TYPE):
7469 * m/ibms390.h (NO_UNION_TYPE):
7470 * m/ibmrs6000.h (NO_UNION_TYPE):
7471 * m/ia64.h (NO_UNION_TYPE):
7472 * m/hp800.h (NO_UNION_TYPE):
7473 * m/arm.h (NO_UNION_TYPE):
7474 * m/amdx86-64.h (NO_UNION_TYPE):
7475 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7476 defining it the same.
7477
74782008-07-10 Chong Yidong <cyd@stupidchicken.com>
7479
7480 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7481
74822008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7483
7484 * fileio.c:
7485 * sysdep.c
7486 * systty.h:
7487 * m/ibmrs6000.h:
7488 * m/iris4d.h:
7489 * s/aix4-2.h:
7490 * s/freebsd.h:
7491 * s/gnu-linux.h:
7492 * s/hpux10-20.h:
7493 * s/hpux11.h:
7494 * s/netbsd.h:
7495 * s/sol2-3.h:
7496 * s/sol2-4.h:
7497 * s/sol2.h:
7498 * s/usg5-4.h:
7499 * s/vms.h: Remove references to unused variables.
7500
75012008-07-10 Andreas Schwab <schwab@suse.de>
7502
7503 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7504 pattern before matching the generic family.
7505
75062008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7507
7508 * unexec.c:
7509 * s/vms.h:
7510 * s/usg5-4-2.h:
7511 * s/sol2-5.h:
7512 * s/freebsd.h:
7513 * s/darwin.h: Remove dead code.
7514
7515 * m/template.h:
7516 * m/sparc.h:
7517 * m/mips.h:
7518 * m/m68k.h:
7519 * m/iris4d.h:
7520 * m/intel386.h:
7521 * m/ibms390x.h:
7522 * m/ibms390.h:
7523 * m/ia64.h:
7524 * m/hp800.h:
7525 * m/arm.h:
7526 * m/amdx86-64.h: Remove dead code and references to unused
7527 and compiler defined symbols.
7528
7529 * unexmips.c:
7530 * unexelf.c: Remove references to desupported systems.
7531
7532 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7533
7534 * m/powermac.h: Remove boilerplate comments.
7535 (NO_REMAP): Remove unused definition.
7536
7537 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7538 define them.
7539
75402008-07-10 Kenichi Handa <handa@m17n.org>
7541
7542 * xfont.c (xfont_open): Log the reason of failure.
7543
75442008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7545
7546 * fontset.c (fontset_get_font_group):
7547 * font.c (font_check_otf): Specify argument types.
7548
75492008-07-09 Kenichi Handa <handa@m17n.org>
7550
7551 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7552 non-ASCII char is found.
7553
7554 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7555 (reorder_font_vector): Change the arg preferred_family to font.
7556 Prefer the spec matching with font.
7557 (fontset_get_font_group): New function.
7558 (fontset_find_font): Change the format of an element of a realized
7559 fontset. Use fontset_get_font_group.
7560 (fontset_font): Try the current fontset, the default fontset, the
7561 fallbacks of the current fontset, and the fallbacks of the default
7562 fontset in this order.
7563 (face_for_char): Delete the shortcut to use the current font.
7564 (fontset_from_font): Don't set fonts for Latin in the fontset.
7565
7566 * font.h (font_make_object, font_match_p): Adjust prototypes.
7567
7568 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7569
7570 * font.c (font_make_object): New arg entity and pixelsize.
7571 (font_check_otf_features, font_check_otf): New functions.
7572 (font_match_p): Check :lang, :script, and :otf properties.
7573
7574 * xfont.c (xfont_open): Adjust it for the change of
7575 font_make_object.
7576 (xfont_text_extents): Fix initial setting of metrics.
7577
7578 * ftfont.c (struct ftfont_info): New member index, delete member
7579 fc_charset_idx. Make the member order compatible with struct
7580 xftfont_info.
7581 (fc_charset_table): Change charset names to registry names.
7582 (ftfont_pattern_entity): Delete the args registry and
7583 fc_charset_idx. Change the value of :font-entity property
7584 to (FONTNAME . INDEX). Always set :registry property to
7585 `iso10646-1'.
7586 (struct ftfont_cache_data): New struct.
7587 (ftfont_lookup_cache): New arg for_face.
7588 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7589 (ftfont_driver): Set the member otf_capability.
7590 (ftfont_get_charset): Adjust it for the change of
7591 fc_charset_table.
7592 (OTF_TAG_SYM): New macro.
7593 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7594 for the change of fc_charset_table.
7595 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7596 ftfont_pattern_entity. Add FC_INDEX to objset.
7597 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7598 and ftfont_pattern_entity.
7599 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7600 font_make_object, struct ftfont_info.
7601 (ftfont_has_char): Use ftfont_get_fc_charset.
7602 (ftfont_otf_features, ftfont_otf_capability): New functions.
7603 (ftfont_shape): Use ftfont_get_otf.
7604 (ftfont_text_extents): Fix initial setting of metrics.
7605
7606 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7607 member order compatible with struct ftfont_info.
7608 (xftfont_open): Add FC_CHARSET to the pattern. Set
7609 xftfont_info->ft_size. Don't unlock the face. Check BDF
7610 properties if appropriate.
7611 (xftfont_close): Unlock the face.
7612 (xftfont_anchor_point, xftfont_shape): Deleted.
7613 (syms_of_xftfont): Don't set members anchor_point and shape of
7614 xftfont_driver.
7615
7616 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7617 font_make_object.
7618
7619 * w32font.c (w32font_open): Adjust it for the change of
7620 font_make_object.
7621 (w32font_open_internal): Don't set properties of font_object here.
7622
76232008-07-08 Chong Yidong <cyd@stupidchicken.com>
7624
7625 * macfns.c (x_create_tip_frame):
7626 * w32fns.c (x_create_tip_frame):
7627 * xfns.c (x_create_tip_frame): Pass parameter argument to
7628 face-set-after-frame-default.
7629
7630 * xfaces.c (Finternal_merge_in_global_face): Save merged
7631 attributes for the default face back into the face vector.
7632
76332008-07-08 Andreas Schwab <schwab@suse.de>
7634
7635 * fontset.h: Declare fontset_from_font. Don't declare
7636 new_fontset_from_font and fontset_from_font_name.
7637 * xterm.c: Include "fontset.h".
7638 * Makefile.in (xterm.o): Update dependencies.
7639
76402008-07-08 Glenn Morris <rgm@gnu.org>
7641
7642 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7643 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7644
76452008-07-07 Chong Yidong <cyd@stupidchicken.com>
7646
7647 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7648 (x_set_frame_parameters): Don't bind it.
7649
76502008-07-07 Juanma Barranquero <lekktu@gmail.com>
7651
7652 * w32fns.c (map_w32_filename): Declare extern.
7653
76542008-07-07 Jason Rumney <jasonr@gnu.org>
7655
7656 * w32term.c (WS_EX_LAYERED): Define if not already.
7657
76582008-07-06 Chong Yidong <cyd@stupidchicken.com>
7659
7660 * xfaces.c (set_font_frame_param): Don't try to set the font
7661 parameter if it is still unspecified in the lface.
7662
76632008-07-05 Chong Yidong <cyd@stupidchicken.com>
7664
7665 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7666 face if it didn't already exist.
7667
7668 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7669
76702008-07-05 Andreas Schwab <schwab@suse.de>
7671
7672 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7673
76742008-07-05 Chong Yidong <cyd@stupidchicken.com>
7675
7676 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7677 word-wrapping.
7678 (IT_DISPLAYING_WHITESPACE): New macro.
7679 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7680 when word-wrapping. Simplify word-wrapping logic. Use correct
7681 pixel positions when saving copies of the iterator.
7682 (display_line): Use proper wrap point if the last character on a
7683 line was preceded by whitespace.
7684
76852008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7686
7687 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7688
76892008-07-04 Kenichi Handa <handa@m17n.org>
7690
7691 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7692
7693 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7694
76952008-07-02 Jason Rumney <jasonr@gnu.org>
7696
7697 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7698 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7699
7700 * xdisp.c (next_element_from_display_vector): Move assignment out
7701 of if statement.
7702
77032008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7704
7705 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7706
7707 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7708 (syms_of_fileio): Initialize and export them.
7709 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7710
7711 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7712 (Fsystem_move_file_to_trash): New function.
7713 (syms_of_w32fns): Export it to lisp.
7714
77152008-07-01 Jason Rumney <jasonr@gnu.org>
7716
7717 * w32font.c (w32font_text_extents): Don't count overhang as part
7718 of width.
7719
77202008-06-30 Miles Bader <miles@gnu.org>
7721
7722 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7723 Add `avoid_cursor_p' field.
7724
7725 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7726 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7727 (append_glyph, append_composite_glyph, produce_image_glyph)
7728 (append_stretch_glyph): Initialize avoid_cursor_p.
7729 (get_it_property): Rename from `get_line_height_property'.
7730 (x_produce_glyphs): Use get_it_property.
7731 (handle_line_prefix, push_display_prop): New functions.
7732 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7733 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7734 New variables.
7735 (syms_of_xdisp): Initialize them.
7736
77372008-06-30 Kenichi Handa <handa@m17n.org>
7738
7739 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7740 XftDefaultSubstitute (they are called in XftFontMatch).
7741 (xftfont_open): Fix args to ftfont_font_format.
7742
7743 * ftfont.c (fc_charset_table): New member lang.
7744 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7745 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7746 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7747 (ftfont_open): Fix args to ftfont_font_format.
7748 (ftfont_font_format): New arg filename.
7749
77502008-06-30 Chong Yidong <cyd@stupidchicken.com>
7751
7752 * xfaces.c (Finternal_merge_in_global_face): If default face was
7753 modified, realize it again. Update the font face attribute.
7754
77552008-06-29 Jason Rumney <jasonr@gnu.org>
7756
7757 * w32term.c (x_set_frame_alpha): Fix logic.
7758
77592008-06-29 Kenichi Handa <handa@m17n.org>
7760
7761 * fontset.c (Finternal_char_font): Return font-object instead of
7762 font-name.
7763
7764 * composite.c (get_composition_id): Fix the width calculation for TAB.
7765
77662008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7767
7768 * indent.c (Fvertical_motion): Properly handle float column arg.
7769
77702008-06-28 Jason Rumney <jasonr@gnu.org>
7771
7772 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7773 (pfnSetLayeredWindowAttributes): New function pointer.
7774 (w32_initialize): Initialize it when supported.
7775 (x_set_frame_alpha): New function.
7776
7777 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7778 (w32_frame_parm_handlers): Set alpha handler.
7779
7780 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7781
77822008-06-27 Jason Rumney <jasonr@gnu.org>
7783
7784 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7785 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7786 (w32_to_x_charset, x_to_w32_charset)
7787 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7788 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7789 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7790 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7791 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7792 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7793 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7794 (Qw32_charset_unicode): Remove.
7795 (syms_of_w32fns): Update for above changes.
7796
7797 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7798 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7799 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7800 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7801 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7802 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7803 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7804 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7805 (syms_of_w32font): Update for above changes.
7806
78072008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7808
7809 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7810 removed #if.
7811 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7812
78132008-06-26 Juanma Barranquero <lekktu@gmail.com>
7814 Eli Zaretskii <eliz@gnu.org>
7815
7816 * makefile.w32-in (LOCAL_FLAGS):
7817 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7818
7819 * sysdep.c (_spawnlp, _getpid):
7820 Declare with explicit _cdecl instead of _CRTAPI1.
7821
7822 * editfns.c (Fget_internal_run_time):
7823 Check for WINDOWSNT with #ifdef, not #if.
7824
78252008-06-26 Jason Rumney <jasonr@gnu.org>
7826
7827 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7828
7829 * w32term.c (x_draw_glyph_string_foreground)
7830 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7831 Use FONT_HANDLE macro.
7832 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7833
7834 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7835 (uniscribe_encode_char): Use FONT_HANDLE macro.
7836
7837 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7838 (w32font_text_extents): Use precast w32_font.
7839 (w32font_close): Free cached metrics.
7840 (w32font_open_internal): Allocate space for name on stack.
7841
78422008-06-26 Chong Yidong <cyd@stupidchicken.com>
7843
7844 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7845
78462008-06-26 Jason Rumney <jasonr@gnu.org>
7847
7848 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7849 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7850
78512008-06-26 Juanma Barranquero <lekktu@gmail.com>
7852
7853 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7854
78552008-06-26 Jason Rumney <jasonr@gnu.org>
7856
7857 * w32bdf.c, w32bdf.h: Remove obsolete files.
7858
7859 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7860
7861 * w32gui.h: Don't include w32bdf.h.
7862 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7863 Remove obsolete font support.
7864
7865 * w32font.h (struct w32font_info): Remove compat_w32_font.
7866 Add hfont member.
7867 (FONT_COMPAT): Remove obsolete macro.
7868
7869 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7870 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7871 (w32font_open_internal): Remove compat code. Set new hfont member.
7872 (Fx_select_font): Use new hfont member.
7873
7874 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7875 (uniscribe_encode_char): Use new hfont member.
7876
7877 * w32term.c (x_draw_glyph_string_foreground)
7878 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7879 (x_draw_glyph_string): Use metrics in w32font_info.
7880
78812008-06-26 Kenichi Handa <handa@m17n.org>
7882
7883 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7884
78852008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7886
7887 * unexnext.c:
7888 * m/ews4800.h:
7889 * m/hp9000s300.h:
7890 * m/ibm370aix.h:
7891 * m/mips-siemens.h:
7892 * m/ncr386.h:
7893 * m/next.h:
7894 * m/pmax.h:
7895 * m/powerpcle.h:
7896 * m/tandem-s2.h:
7897 * s/386bsd.h:
7898 * s/bsd386.h:
7899 * s/bsd4-1.h:
7900 * s/bsd4-2.h:
7901 * s/bsdos2-1.h:
7902 * s/bsdos2.h:
7903 * s/bsdos3.h:
7904 * s/bsdos4.h:
7905 * s/nextstep.h:
7906 * s/ultrix4-3.h:
7907 * s/usg5-0.h:
7908 * s/usg5-2-2.h:
7909 * s/usg5-2.h:
7910 * s/usg5-4-3.h:
7911 * s/ux4800.h:
7912 * s/uxpds.h:
7913 * s/uxpv.h: Remove support for obsolete systems.
7914 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 7915 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
7916 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7917 Remove, insert contents in s/aix4-2.h.
7918 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7919 * s/bsd4-3.h: Rename to ...
7920 * s/bsd-common.h: ... this.
7921 * data.c:
7922 * doc.c:
7923 * ecrt0.c:
7924 * emacs.c:
7925 * fileio.c:
7926 * floatfns.c:
7927 * keyboard.c:
7928 * mem-limits.h:
7929 * print.c:
7930 * process.c:
7931 * sysdep.c:
7932 * syssignal.h:
7933 * systty.h:
7934 * syswait.h:
7935 * term.c:
7936 * unexec.c:
7937 * unexelf.c:
7938 * unexhp9k800.c:
7939 * m/hp800.h:
7940 * m/ibmrs6000.h:
7941 * m/mips.h:
7942 * m/vax.h:
7943 * s/darwin.h:
7944 * s/freebsd.h:
7945 * s/gnu.h:
7946 * s/ms-w32.h:
7947 * s/msdos.h:
7948 * s/netbsd.h:
7949 * s/template.h: Remove references to obsolete variables.
7950
7951 * Makefile.in: Add dependencies for all unexec files.
7952 (admindir): Remove unused variable.
7953 (UNEXEC_SRC): Remove references.
7954
79552008-06-25 Chong Yidong <cyd@stupidchicken.com>
7956
7957 * xfns.c (x_default_font_parameter): If Xft is available, first
7958 try Monospace-12 for the default font.
7959
79602008-06-25 Jason Rumney <jasonr@gnu.org>
7961
7962 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7963
79642008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7965
7966 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7967
7968 * buffer.c (syms_of_buffer): Remove default-word-wrap.
7969
79702008-06-25 Juanma Barranquero <lekktu@gmail.com>
7971
7972 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7973 <scroll-conservatively>: Fix typo in docstring.
7974
7975 * xselect.c (Fx_send_client_event): Doc fix.
7976
79772008-06-25 Kenichi Handa <handa@m17n.org>
7978
7979 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7980
7981 * font.c (font_parse_fcname): Remove unused variables.
7982 (font_sort_entites): Delete the arg SPEC. Caller changed.
7983 Fix for the case of ! best_only.
7984 (font_delete_unmatched): Check DPI and AVGWIDTH too.
7985
7986 * lisp.h (Fstring_to_unibyte): EXFUN it.
7987
7988 * character.h (str_to_unibyte): Extern it.
7989
7990 * character.c (str_to_unibyte): New function.
7991
7992 * fns.c (Fstring_to_unibyte): New function.
7993 (syms_of_fns): Defsubr it.
7994
79952008-06-24 Kenichi Handa <handa@m17n.org>
7996
7997 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
7998 DPI too.
7999 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8000
80012008-06-24 Andreas Schwab <schwab@suse.de>
8002
8003 * Makefile.in (${lispsource}loaddefs.el): Rename from
8004 ../lisp/loaddefs.el.
8005 (bootstrap-clean): Do what distclean does but don't remove
8006 Makefile.
8007 (distclean): Depend on bootstrap-clean and remove Makefile.
8008
80092008-06-24 Chong Yidong <cyd@stupidchicken.com>
8010
8011 * buffer.h (struct buffer): New member word_wrap.
8012
8013 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8014 word-wrap.
8015 (init_buffer_once): Initialize them.
8016
8017 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8018 line_wrap enum possessing three possible values.
8019
8020 * termopts.h: Replace truncate_partial_width_windows with
8021 Vtruncate_partial_width_windows.
8022
8023 * dispnew.c (direct_output_for_insert): Avoid direct output when
8024 inserting a space with word wrap on.
8025
8026 * indent.c (compute_motion): Obey integer values of
8027 truncate-partial-width-windows.
8028
8029 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8030 replacing truncate_partial_width_windows.
8031 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8032 truncate only if the window width is below that integer.
8033 (start_display, resize_mini_window, produce_stretch_glyph)
8034 (display_string, move_it_in_display_line_to): Use line_wrap.
8035 (back_to_previous_visible_line_start, reseat_1): Reset
8036 string_from_display_prop_p.
8037 (display_line): Extend default face to end of line when wrapping.
8038
80392008-06-24 Kim F. Storm <storm@cua.dk>
8040
8041 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8042 to wrap continued lines at word boundaries.
8043
80442008-06-24 Jason Rumney <jasonr@gnu.org>
8045
8046 * font.c (Ffont_face_attributes): Multiply pixel size before point
8047 conversion to avoid multiplying rounding error.
8048
80492008-06-23 Jason Rumney <jasonr@gnu.org>
8050
8051 * w32term.c (x_draw_glyph_string_background)
8052 (x_draw_glyph_string): Remove old bdf font code.
8053
8054 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8055
80562008-06-22 Kenichi Handa <handa@m17n.org>
8057
8058 * font.c (font_find_for_lface): Try the adstyle specified in
8059 the property of LFACE_FONT of LFACE (if any).
8060
80612008-06-21 Seiji Zenitani <zenitani@mac.com>
8062 Ryo Yoshitake <ryo@shiftmode.net>
8063
8064 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8065
80662008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8067
8068 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8069 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8070 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8071 (witness-emacs): Remove.
8072 (lisp, shortlisp): Move loaddefs.el earlier.
8073 (mostlyclean): Forget about witness-emacs.
8074
80752008-06-22 Glenn Morris <rgm@gnu.org>
8076
8077 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8078 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8079
80802008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8081
8082 * Makefile.in (PRECOMP): Remove.
8083 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8084 (witness-emacs): Run `compile-first'.
8085 (.el.elc): Use the new compile-onefile target.
8086
80872008-06-21 Kenichi Handa <handa@m17n.org>
8088
8089 * xftfont.c (xftfont_open): Handle QCembolden only when
8090 FC_EMBOLDEN is defined.
8091
80922008-06-21 Andreas Schwab <schwab@suse.de>
8093
8094 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8095 (.el.elc): Likewise.
8096
80972008-06-21 Miles Bader <miles@gnu.org>
8098
8099 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8100 build dir, not the lisp source dir.
8101
81022008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8103
8104 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8105 (bootstrapclean): Remove.
8106 (.el.elc): New rule.
8107 (PRECOMP): New var.
8108 (../lisp/subdirs.el): Remove.
8109 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8110 (witness-emacs): New target.
8111 (mostlyclean): Remove witness-emacs as well.
8112 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8113 Add witness-emacs dependency.
8114
81152008-06-20 Chong Yidong <cyd@stupidchicken.com>
8116
8117 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8118 defined by the font.
8119
81202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8121
8122 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8123 (bootstrap-clean): New target that keeps TAGS around.
8124 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8125 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8126
81272008-06-20 Jason Rumney <jasonr@gnu.org>
8128
8129 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8130 Remove obsolete font code.
8131
8132 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8133 to determine language support.
8134
81352008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8136
8137 * sysdep.c (cfsetspeed): New fun extracted from the code.
8138 (cfmakeraw): Move before first use.
8139
81402008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8141
8142 * sysdep.c (cfmakeraw): Provide fallback implementation.
8143 (serial_configure): Provide fallback implementation of cfsetspeed.
8144
81452008-06-20 Kenichi Handa <handa@m17n.org>
8146
8147 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8148 the pattern.
8149
8150 * fontset.c (fontset_from_font): Copy font_spec before changing
8151 the elements.
8152
8153 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8154
81552008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8156
8157 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8158 for explicit `font' parameters.
8159
8160 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8161
81622008-06-19 Kenichi Handa <handa@m17n.org>
8163
8164 * frame.c: Include <ctype.h>.
8165 (x_set_font_backend): Allow spacing characters in the X resource
8166 for FontBackend.
8167
81682008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8169
8170 * w32fns.c, xfns.c (Qfont_param): New var.
8171 (syms_of_w32fns): Initialize it.
8172 (x_default_font_parameter): Record explicit `font' into
8173 `font-parameter'.
8174
81752008-06-18 Kenichi Handa <handa@m17n.org>
8176
8177 * font.c (font_parse_xlfd): Fix previous change.
8178 (font_parse_fcname): Don't use :fc-unknown-spec.
8179 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8180 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8181 (font_add_log): Prepend the driver name to the resulting fonts.
8182
8183 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8184 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8185 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8186
8187 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8188 (QCembolden): New variables.
8189 (syms_of_xftfont): DEFSYM them.
8190 (xftfont_open): Call XftFontMatch. Don't trust the result of
8191 XftTextExtents8 if the pixel_size is less than 5.
8192
81932008-06-18 Andreas Schwab <schwab@suse.de>
8194
8195 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8196 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8197
81982008-06-18 Jason Rumney <jasonr@gnu.org>
8199
8200 * w32font.c (w32font_list, w32font_match): Add logging.
8201
8202 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8203
82042008-06-17 Chong Yidong <cyd@stupidchicken.com>
8205
8206 * font.c (font_parse_fcname): Store divider characters for
8207 unknown-spec list. For known key symbols, intern using correct
8208 symbol name.
8209
82102008-06-17 Kenichi Handa <handa@m17n.org>
8211
8212 * xfaces.c (realize_default_face): If the frame is not on window
8213 system, set the fontset of face to nil.
8214
82152008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8216
8217 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8218
82192008-06-16 Juanma Barranquero <lekktu@gmail.com>
8220
8221 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8222 (build_font_name_from_vector): Delete externs.
8223
8224 * xfaces.c (struct font_name): Don't declare.
8225
82262008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8227
8228 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8229
82302008-06-16 Chong Yidong <cyd@stupidchicken.com>
8231
8232 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8233
82342008-06-16 Juanma Barranquero <lekktu@gmail.com>
8235
8236 * font.c (Ffont_spec): Fix usage in docstring.
8237 (Ffont_face_attributes): Doc fix.
8238
82392008-06-16 Andreas Schwab <schwab@suse.de>
8240
8241 * font.c (Ffont_face_attributes): Fix definition.
8242
82432008-06-16 Jason Rumney <jasonr@gnu.org>
8244
8245 * font.h (font_style_symbolic_from_value): Remove.
8246
8247 * font.c (font_style_symbolic_from_value): Remove.
8248 (font_style_symbolic): Revert to pre 2008-06-13 version.
8249
8250 * w32font.c (w32_to_fc_weight): New function.
8251 (w32font_full_name, logfont_to_fcname): Use it.
8252
82532008-06-16 Kenichi Handa <handa@m17n.org>
8254
8255 * font.c (font_check_object): Delete it.
8256 (font_clear_cache): Check if a font-object is alive.
8257 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8258 font-object to nil.
8259 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8260 (font_at): Don't call font_check_object.
8261 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8262
82632008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8264
8265 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8266
82672008-06-16 Chong Yidong <cyd@stupidchicken.com>
8268
8269 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8270
82712008-06-15 Chong Yidong <cyd@stupidchicken.com>
8272
8273 * font.c (font_parse_fcname): Only one decimal point.
8274 (font_unparse_fcname): Handle data in family and foundry indices
8275 as symbols, not strings.
8276 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8277
8278 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8279
8280 * font.h (font_unparse_gtkname): Add prototype.
8281
82822008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8283
8284 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8285
82862008-06-15 Andreas Schwab <schwab@suse.de>
8287
8288 * font.c (font_update_drivers): Fix crash when no drivers match.
8289
82902008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8291
8292 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8293 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8294
82952008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8296
8297 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8298
82992008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8300
8301 * process.c (Fserial_process_configure, Fprocess_send_eof):
8302 Use EQ to compare Lisp_Objects.
8303
83042008-06-13 Jason Rumney <jasonr@gnu.org>
8305
8306 * w32fns.c (Fw32_select_font): Remove old font API function.
8307
8308 * w32font.c (logfont_to_fcname): New function.
8309 (Fx_select_font): New font dialog function compatible with
8310 GTK/fontconfig version.
8311
8312 * font.c (font_style_symbolic_from_value): New function.
8313 (font_style_symbolic): Use it.
8314
8315 * font.h (font_style_symbolic_from_value): Declare new function.
8316
83172008-06-13 Juanma Barranquero <lekktu@gmail.com>
8318
8319 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8320 <font-width-table>: Fix typos in docstrings.
8321
83222008-06-13 Daniel Engeler <engeler@gmail.com>
8323
8324 These changes add serial port access.
8325 * process.c: Add HAVE_SERIAL.
8326 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8327 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8328 (list_processes_1, select_wrapper, Fstop_process)
8329 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8330 (status_notify): Modify to handle serial processes.
8331 [HAVE_SERIAL] (Fserial_process_configure)
8332 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8333 New functions.
8334 * process.h (struct Lisp_Process): Add `type'.
8335 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8336 New functions.
8337 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8338 serial ports.
b71ac3dd 8339 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8340 * w32.h: Add FILE_SERIAL.
8341 (struct _child_process): Add ovl_read, ovl_write.
8342
83432008-06-13 Kenichi Handa <handa@m17n.org>
8344
8345 * dispextern.h (enum lface_attribute_index): New member
8346 LFACE_FOUNDRY_INDEX.
8347
8348 * font.c (font_score): Delete arg alternate_families. Check only
8349 weight, slant, width, and size. Ignore the difference of alias
8350 style symbols.
8351 (font_sort_entites): Adjust for the above change. Reflect the
8352 order of font-driver to scores.
8353 (font_list_entities): Don't check alternate_familes here.
8354 (font_clear_prop): Handle foundry.
8355 (font_update_lface): Don't parse "foundry-family" form here.
8356 Handle FONT_FOUNDRY_INDEX.
8357 (font_find_for_lface): Likewise. Handle alternate families here.
8358 If registry is nil, try iso8859-1 and ascii-0.
8359 (font_open_for_lface): Pay attention to size in ENTITY.
8360 (font_open_by_name): Simplify by calling font_load_for_lface.
8361 (free_font_driver_list): Delete it.
8362 (font_update_drivers): Preserve the order of backends.
8363 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8364 of font_score and font_sort_entites.
8365 (font_update_sort_order): Likewise.
8366
8367 * xfaces.c (LFACE_FOUNDRY): New macro.
8368 (check_lface_attrs): Check foundry.
8369 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8370 (merge_face_vectors): Check foundry.
8371 (merge_face_ref): Likewise.
8372 (Finternal_set_lisp_face_attribute): Likewise.
8373 (x_update_menu_appearance): Likewise.
8374 (Finternal_get_lisp_face_attribute): Likewise.
8375 (lface_hash): Likewise.
8376 (lface_same_font_attributes_p): Likewise.
8377 (x_supports_face_attributes_p): Likewise.
8378 (tty_supports_face_attributes_p): Likewise.
8379 (Finternal_set_alternative_font_family_alist): Intern strings.
8380 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8381 (realize_default_face): Set LFACE_FOUNDRY (lface).
8382
8383 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8384 font-driver at first.
8385
8386 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8387
83882008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8389
8390 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8391
83922008-06-12 Jim Meyering <meyering@redhat.com>
8393
8394 Make unexec_free handle NULL the same way free does.
8395 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8396
83972008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8398
8399 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8400 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8401 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8402 (WEAK_ALIAS): Simplify.
8403 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8404 when searching a unibyte buffer.
8405
84062008-06-12 Chong Yidong <cyd@stupidchicken.com>
8407
8408 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8409
84102008-06-12 Juanma Barranquero <lekktu@gmail.com>
8411
8412 * w32font.c: Include ctype.h.
8413
84142008-06-11 Jason Rumney <jasonr@gnu.org>
8415
8416 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8417 misreported as space.
8418 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8419 as aliases for registry iso10646-1.
8420
84212008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8422
8423 * buffer.c (clone_per_buffer_values): Skip `name'.
8424
84252008-06-11 Chong Yidong <cyd@stupidchicken.com>
8426
8427 * font.c (font_parse_fcname): Fix last change; accept decimal
8428 points in font size.
8429
84302008-06-10 Jason Rumney <jasonr@gnu.org>
8431
8432 * w32uniscribe.c (add_opentype_font_name_to_list):
8433 Skip non unicode fonts.
8434
84352008-06-10 Chong Yidong <cyd@stupidchicken.com>
8436
8437 * xfns.c (Fx_font_dialog): New function.
8438
8439 * gtkutil.c (xg_dialog_response_cb): Rename from
8440 xg_file_response_callback.
8441 (pop_down_dialog): Rename from pop_down_file_dialog.
8442 (xg_get_file_name): Callers changed.
8443 (xg_get_font_name): New function.
8444
8445 * gtkutil.h (xg_get_font_name): Insert prototype.
8446
84472008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8448
8449 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8450 x_underline_minimum_display_offset.
8451 (syms_of_xdisp): Declare it here rather than in xterm.c.
8452 * dispextern.h (underline_minimum_offset): Declare it.
8453 * w32term.c (x_draw_glyph_string): Use it.
8454 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8455 (syms_of_xterm): Don't declare it any more.
8456 (x_draw_glyph_string): Adjust to the new name.
8457
84582008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8459
8460 * xterm.c (x_underline_minimum_display_offset): New var.
8461 (x_draw_glyph_string): Use it.
8462 (syms_of_xterm): Declare it.
8463
84642008-06-10 Chong Yidong <cyd@stupidchicken.com>
8465
8466 * font.c (font_parse_fcname): Accept GTK-style font names too.
8467
84682008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8469
8470 * dired.c (file_name_completion): Don't return t if the match is exact
8471 but with different capitalization.
8472 * minibuf.c (Ftry_completion): Simplify.
8473
8474 * window.c (Vwindow_point_insertion_type): New var.
8475 (set_window_buffer): Use it.
8476 (syms_of_window): Init and export it to Lisp.
8477
84782008-06-10 Kenichi Handa <handa@m17n.org>
8479
8480 * font.h (font_intern_prop): Prototype adjusted.
8481
8482 * font.c (font_intern_prop): New arg force_symbol.
8483 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8484 Adjust for the change of font_intern_prop.
8485
8486 * ftfont.c (ftfont_pattern_entity):
8487 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8488 (w32_registry):
8489 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8490 the change of font_intern_prop.
8491
84922008-06-09 Juanma Barranquero <lekktu@gmail.com>
8493
8494 * w32menu.c (digest_single_submenu): Declare extern.
8495
84962008-06-09 Jason Rumney <jasonr@gnu.org>
8497
8498 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8499
8500 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8501 (parse_single_submenu): Remove.
8502 (digest_single_submenu): Remove.
8503 (syms_of_w32menu): Don't initialise variables that have moved
8504 to menu.c.
8505 (set_frame_menubar): Sync with version in xmenu.c.
8506 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8507
8508 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8509 Make static again.
8510
85112008-06-09 Jason Rumney <jasonr@gnu.org>
8512
8513 Changes to w32 files related to the move of common menu code
8514 to menu.c on 2008-06-08 by Chong Yidong.
8515
8516 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8517 defs to w32gui.h.
8518 (single_keymap_panes, push_menu_item, push_menu_pane):
8519 Make globally visible.
8520
8521 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8522 (local_free, malloc_widget_value, free_widget_value)
8523 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8524 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8525 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8526 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8527 (menu_items, menu_items_allocated, menu_items_used)
8528 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8529 (init_menu_items, finish_menu_items, discard_menu_items)
8530 (grow_menu_items, push_submenu_start, push_submenu_end)
8531 (push_left_right_boundary, push_menu_pane, push_menu_item)
8532 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8533 (free_menubar_widget_tree_value, parse_single_submenu)
8534 (update_submenu_strings): Remove functions.
8535 (xmalloc_widget_value): Remove and declare extern.
8536
8537 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8538 (OBJ1): Build it.
8539
8540 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8541 (local_heap, local_alloc, local_free, malloc_widget_value)
8542 (free_widget_value): Define here.
8543
85442008-06-09 Kenichi Handa <handa@m17n.org>
8545
8546 * font.h (Qascii_0): Extern it.
8547
8548 * font.c (Qascii_0): New variable.
8549 (syms_of_font): DEFSYM it.
8550 (font_open_by_name): If the registry "iso8859-1" fails, try also
8551 "ascii-0".
8552
8553 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8554
85552008-06-08 Kenichi Handa <handa@m17n.org>
8556
8557 * .gdbinit (xfont): New command.
8558
85592008-06-08 Andreas Schwab <schwab@suse.de>
8560
8561 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8562 * Makefile.in (menu.o): Update dependencies.
8563
8564 * Makefile.in (obj): Always add menu.o.
8565 * emacs.c (main): Always call syms_of_menu.
8566 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8567
85682008-06-08 Chong Yidong <cyd@stupidchicken.com>
8569
8570 * Makefile.in: Compile menu.c.
8571
8572 * lisp.h: Declare syms_of_menu.
8573
8574 * emacs.c (main): Call syms_of_menu.
8575
8576 * keyboard.h: Relocate platform-independent menu definitions from
8577 xmenu.c.
8578
8579 * menu.c: New file. Relocate platform-independent menu
8580 definitions from xmenu.c. Suggested by Adrian Robert.
8581
8582 * xmenu.c: Remove platform-independent menu definitions.
8583 (menu_items menu_items_inuse, menu_items_allocated)
8584 (menu_items_used, menu_items_n_panes)
8585 (menu_items_submenu_depth): Move to keyboard.h.
8586 (init_menu_items, finish_menu_items, unuse_menu_items)
8587 (discard_menu_items, restore_menu_items, save_menu_items)
8588 (grow_menu_items, push_submenu_start, push_submenu_end)
8589 (push_left_right_boundary, push_menu_pane, push_menu_item)
8590 (keymap_panes, single_keymap_panes, single_menu_item)
8591 (list_of_panes, list_of_items, find_and_call_menu_selection)
8592 (xmalloc_widget_value, free_menubar_widget_value_tree)
8593 (parse_single_submenu, digest_single_submenu)
8594 (update_submenu_strings): Move to menu.c.
8595
85962008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8597
8598 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8599
86002008-06-06 Miles Bader <miles@gnu.org>
8601
8602 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8603 face, not frame default.
8604
86052008-06-05 Martin Rudalics <rudalics@gmx.at>
8606
8607 * window.c (pop_up_windows, pop_up_frames)
8608 (display_buffer_reuse_frames, Vpop_up_frame_function)
8609 (Vdisplay_buffer_function, Veven_window_heights)
8610 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8611 (Vspecial_display_function, Vsame_window_buffer_names)
8612 (Vsame_window_regexps, split_height_threshold)
8613 (Vsplit_window_preferred_function): Move those vars to window.el.
8614 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8615 (Fdisplay_buffer): Move those functions to window.el.
8616 (syms_of_window): Remove corresponding declarations.
8617 (display_buffer): New function.
8618 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8619 * dispnew.c (Flast_nonminibuf_frame): New function.
8620 * buffer.c (Fpop_to_buffer): Move to window.el.
8621
86222008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8623
8624 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8625
86262008-06-05 Kenichi Handa <handa@m17n.org>
8627
8628 * coding.c (detect_coding): Fix previous change.
8629 (detect_coding_system): Likewise.
8630
86312008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8632
8633 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8634
8635 * keymap.c (Vminibuffer_local_filename_must_match_map):
8636 Rename from Vminibuffer_local_must_match_filename_map.
8637 (syms_of_keymap):
8638 * minibuf.c (Fcompleting_read): Adjust accordingly.
8639 * commands.h: Rename declaration as well.
8640
86412008-06-05 Kenichi Handa <handa@m17n.org>
8642
8643 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8644 family name.
8645 (Ffont_put): Likewise.
8646
8647 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8648 current font-spec.
8649
8650 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8651 is unspecified.
8652
8653 * xfaces.c (realize_x_face): If the font-related face attributes
8654 are the same as those of default face, realize a new fontset from
8655 default->fontset.
8656 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8657
86582008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8659
8660 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8661 (move_it_in_display_line): New wrapper.
8662
8663 * window.c (window_scroll_pixel_based_preserve_x)
8664 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8665 (window_scroll_pixel_based, window_scroll_line_based):
8666 Use them to preserve column positions.
8667 (syms_of_window): Initialize them.
8668
8669 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8670 (HPOS . VPOS) pair.
8671
8672 * dispextern.h (move_it_in_display_line): Declare.
8673
86742008-06-05 Juanma Barranquero <lekktu@gmail.com>
8675
8676 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8677 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8678 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8679
86802008-06-04 Juanma Barranquero <lekktu@gmail.com>
8681
8682 * window.c (Fset_window_parameter): Doc fix.
8683 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8684
86852008-06-04 Joakim Verona <joakim@verona.se>
8686
8687 * window.h (struct window): Add new member window_parameters.
8688
8689 * window.c (Fwindow_parameters, Fwindow_parameter)
8690 (Fset_window_parameter): New defuns.
8691 (syms_of_window): Defsubr the new defuns.
8692 (make_window): Initialize window_parameters to nil.
8693
86942008-06-04 John Paul Wallington <jpw@pobox.com>
8695
8696 * eval.c (Fdefmacro): Doc fix.
8697
86982008-06-04 Kenichi Handa <handa@m17n.org>
8699
8700 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8701 Be sure to call setup_coding_system when we find a proper coding system.
8702 (detect_coding_system): Fix handling of coding->head_ascii.
8703
87042008-06-03 Andreas Schwab <schwab@suse.de>
8705
8706 * font.c (font_prop_validate_spacing): Fix last change.
8707
87082008-06-03 Kenichi Handa <handa@m17n.org>
8709
8710 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8711 (font_parse_fcname): Fix handling of unknown key.
8712
8713 * xfont.c (xfont_list): Try an alias.
8714
8715 * charset.c (char_charset): Return NULL if the arg charset_list is
8716 specified and C doesn't belong to any of them.
8717
87182008-06-02 Chip Coldwell <coldwell@redhat.com>
8719
8720 * font.c (font_pixel_size): Don't take cdr of an integer.
8721
87222008-06-02 Jim Meyering <meyering@redhat.com>
8723
8724 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8725 * alloc.c (xfree): Return right away for a NULL arg.
8726 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8727 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8728 * mac.c (create_apple_event_from_event_ref): Likewise.
8729 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8730 Likewise.
8731 * doprnt.c (doprnt1): Likewise.
8732 * frame.c (frame): Likewise.
8733 * keyboard.c (wipe_kboard): Likewise.
8734 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8735 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8736 * term.c (tty_default_color_capabilities, maybe_fatal)
8737 (delete_tty): Likewise.
8738 * w16select.c (string): Likewise.
8739 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8740 * w32bdf.c (w32_free_bdf_font): Likewise.
8741 * w32fns.c (w32_unload_font): Likewise.
8742 * w32font.c (w32font_close): Likewise.
8743 * window.c (size_window): Likewise.
8744 * xselect.c (receive_incremental_selection): Likewise.
8745 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8746 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8747 * w32.c (stat): Likewise.
8748
8749 Remove useless if-before-free tests.
8750 * editfns.c (Fset_time_zone_rule): Likewise.
8751 * lread.c (nosuffix): Likewise.
8752 * ralloc.c (get_bloc): Likewise.
8753 * regex.c (reg_free): Likewise.
8754 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8755 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8756 * xsmfns.c (smc_save_yourself_CB): Likewise.
8757
87582008-06-02 Kenichi Handa <handa@m17n.org>
8759
8760 * font.c (font_find_for_lface): Handle float font size.
8761 (font_open_for_lface): Likewise.
8762
8763 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8764 comparing the properties.
8765
87662008-06-01 Jason Rumney <jasonr@gnu.org>
8767
8768 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8769 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8770 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8771 Don't add empty script list.
8772 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8773
87742008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8775
8776 * Makefile.in (dot, dotdot): Remove, update users.
8777 ".." has been used elsewhere in the file for a long time.
8778 (LIBXT_STATIC): Remove conditional based on unused variable.
8779
87802008-06-01 Miles Bader <miles@gnu.org>
8781
8782 * xfaces.c (Vface_remapping_alist): New variable.
8783 (syms_of_xfaces): Initialize it.
8784 (enum named_merge_point_kind): New type.
8785 (struct named_merge_point): Add `named_merge_point_kind' field.
8786 (push_named_merge_point): Make cycle detection respect different
8787 named-merge-point kinds.
8788 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8789 Remove face-name alias resolution.
8790 (lface_from_face_name): New definition using
8791 `lface_from_face_name_no_resolve'.
8792 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8793 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8794 (get_lface_attributes): New definition that layers face-remapping on
8795 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8796 (lookup_basic_face): New function.
8797 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8798 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8799 `get_lface_attributes'.
8800 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8801 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8802 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8803
8804 * xdisp.c (init_iterator): Pass base_face_id through
8805 `lookup_basic_face' when we actually use it as a face-id.
8806 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8807 DEFAULT_FACE_ID.
8808
8809 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8810 lookup the initial face-id.
8811
8812 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8813
88142008-06-01 Juanma Barranquero <lekktu@gmail.com>
8815
8816 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8817 (Fremove_text_properties): Fix typos in docstrings.
8818
88192008-05-31 Kenichi Handa <handa@m17n.org>
8820
8821 * font.c (font_list_entities): Fix the car part of data to be
8822 stored in the cache.
8823
8824 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8825
88262008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8827
8828 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8829 Add a `test' argument so another predicate than `equal' can be used.
8830 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8831 (map_char_table): Remove unused vars `c' and `i'.
8832 * lisp.h (Foptimize_char_table): Adjust declaration.
8833 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8834
88352008-05-30 Kenichi Handa <handa@m17n.org>
8836
8837 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8838 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8839 defined.
8840
88412008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8842
8843 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8844 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8845 frame-local settings for the same variable.
8846
88472008-05-30 Kenichi Handa <handa@m17n.org>
8848
8849 * fontset.c (Ffont_info): Move to font.c.
8850 (syms_of_fontset): Delete defsubr of Sfont_info.
8851
8852 * font.c (font_style_to_value, font_score): Delete casting of the
8853 args to xstcasecmp.
8854 (register_font_driver): Increment num_font_drivers only when
8855 registering the driver globally.
8856 (Ffont_info): Move from fontset.c. Handle a font object too.
8857 (syms_of_font): Defsubr Sfont_info.
8858
88592008-05-29 Kenichi Handa <handa@m17n.org>
8860
8861 * coding.h (enum define_coding_utf8_arg_index): New enum.
8862 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8863 coding_attr_utf_bom.
8864 (enum utf_bom_type): Rename from utf_16_bom_type.
8865 (struct utf_16_spec): Adjust for the above change.
8866 (struct coding_system): Add utf_8_bom in `spec' union.
8867
8868 * coding.c (CODING_UTF_8_BOM): New macro.
8869 (enum coding_category): Delete coding_category_utf_8, add
8870 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8871 coding_category_utf_8_sig.
8872 (CATEGORY_MASK_UTF_8): Delete it.
8873 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8874 (CATEGORY_MASK_UTF_8_SIG): New macros.
8875 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8876 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8877 CATEGORY_MASK_UTF_8_SIG.
8878 (CATEGORY_MASK_UTF_8): New macro.
8879 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8880 (detect_coding_utf_8): Check BOM.
8881 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8882 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8883 (encode_coding_utf_16): Likewise.
8884 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8885 (detect_coding, detect_coding_system): Handle utf-8-auto.
8886 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8887 (syms_of_coding): Fix setting up of Vcoding_category_table.
8888
88892008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8890
8891 * process.c (Faccept_process_output): If `millisec' is non-nil,
8892 `seconds' default to 0.
8893 (wait_reading_process_output): Also return non-nil if we read output
8894 from a non-running process.
8895
88962008-05-29 Jason Rumney <jasonr@gnu.org>
8897
8898 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8899 `raster' specified.
8900 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8901 in the uniscribe backend, but disallow any font that has no
8902 unicode subrange support.
8903
89042008-05-29 Juanma Barranquero <lekktu@gmail.com>
8905
8906 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8907 Fix typos in docstrings.
8908
89092008-05-29 Kenichi Handa <handa@m17n.org>
8910
8911 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8912 (Fx_family_fonts): Set frame correctly.
8913
89142008-05-28 Jason Rumney <jasonr@gnu.org>
8915
8916 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8917
89182008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8919
8920 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8921 calling build_annotations.
8922
89232008-05-28 Juanma Barranquero <lekktu@gmail.com>
8924
8925 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8926 (Fencode_coding_string):
8927 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8928 <latin-extra-code-table>: Fix typos in docstrings.
8929 (syms_of_coding) <coding-system-alist>: Doc fix.
8930 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8931
89322008-05-28 Kenichi Handa <handa@m17n.org>
8933
8934 * fontset.c (Ffont_info): Don't call font_close_object.
8935
8936 * font.c (font_parse_family_registry): Use Ffont_put to validate
8937 foundry and family.
8938 (font_delete_unmatched): Don't check spacing.
8939 (font_list_entities): Add spacing to the spec to list fonts.
8940
8941 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8942 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8943
8944 * coding.c (encode_coding_raw_text): Fix previous change.
8945 (encode_coding_object): When the dst_object is a buffer and is
8946 different from src_object, move gap to PT.
8947
89482008-05-27 Chong Yidong <cyd@stupidchicken.com>
8949
8950 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8951
89522008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8953
8954 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8955 all branches. Compute it differently.
8956
8957 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8958
89592008-05-27 Juanma Barranquero <lekktu@gmail.com>
8960
8961 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8962 into "else if () ... else ...".
8963
89642008-05-27 Jason Rumney <jasonr@gnu.org>
8965
8966 * w32font.c (w32font_open_internal): Determine if glyph indices
8967 are likely to work here.
8968
89692008-05-27 Chong Yidong <cyd@stupidchicken.com>
8970
8971 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8972 draw overlap glyphs with appropriate highlighting.
8973
89742008-05-27 Kenichi Handa <handa@m17n.org>
8975
8976 * xfont.c (xfont_open): Fix calculation of font->average_width.
8977
89782008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8979
8980 * casefiddle.c (casify_object): Try to guess better whether the
8981 argument is a byte or a char.
8982
89832008-05-26 Andreas Schwab <schwab@suse.de>
8984
8985 * xselect.c (x_reply_selection_request): Properly handle format == 32.
8986 Always send multiples of format size.
8987
8988 * xterm.c (x_set_frame_alpha): Fix type mismatch.
8989
89902008-05-26 Jason Rumney <jasonr@gnu.org>
8991
8992 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8993 (compute_metrics): Don't set failure if we just cleared the cache.
8994 (w32_weight_table): Remove unused variable.
8995 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
8996 backwards compatibility.
8997
89982008-05-25 Kenichi Handa <handa@m17n.org>
8999
9000 * w32term.c (x_draw_glyph_string):
9001 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9002
9003 * xfaces.c: Delete unused function prototypes.
9004 (xstrlwr, font_frame): Delete them.
9005 (clear_face_cache): Delete unused variable.
9006
9007 * xftfont.c (xftfont_open): Delete unused variable.
9008 If underline_thickness is not 1, adjust underline_position.
9009
9010 * ftxfont.c (ftxfont_open): Delete unused variable.
9011
9012 * fontset.c (face_for_char): Optimize for the case of no charset
9013 property.
9014
9015 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9016 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9017 (otf_open, font_otf_capability, generate_otf_features)
9018 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9019 Comment out by surrounding "#if 0" and "#endif" for the moment.
9020 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9021 (syms_of_font): Codes for accessing above commented out.
9022
90232008-05-24 Eli Zaretskii <eliz@gnu.org>
9024
9025 * w32proc.c: Include dispextern.h.
9026
9027 * w32.c: Include dispextern.h.
9028
90292008-05-23 Juanma Barranquero <lekktu@gmail.com>
9030
9031 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9032 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9033 Fix typos in docstrings.
9034
90352008-05-23 Jason Rumney <jasonr@gnu.org>
9036
9037 * xsmfns.c: Remove includes that are already included by config.h.
9038
90392008-05-23 Kenichi Handa <handa@m17n.org>
9040
9041 * charset.c (Qemacs, charset_emacs): New variables.
9042 (char_charset): Fix for non-Unicode characters.
9043 (syms_of_charset): Define charset_emacs.
9044
9045 * w32term.c (x_draw_glyph_string): Be sure to update
9046 s->underline_thickness and s->underline_position. Be sure to draw
9047 underline within the current line area.
9048
9049 * xterm.c (x_draw_glyph_string): Be sure to update
9050 s->underline_thickness and s->underline_position. Be sure to draw
9051 underline within the current line area.
9052
9053 * fontset.c: Delete unused variables and add casting for char *
9054 throughout the file.
9055 (fontset_font): Try the fallback fonts of the current fontset
9056 before consulting the default fontset.
9057
9058 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9059
9060 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9061
90622008-05-22 Jason Rumney <jasonr@gnu.org>
9063
9064 * font.c: Don't include strings.h.
9065
9066 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9067
9068 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9069 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9070 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9071 to call xstrcasecmp.
9072
9073 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9074
9075 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9076
9077 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9078
9079 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9080
90812008-05-22 Kenichi Handa <handa@m17n.org>
9082
9083 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9084
9085 * font.c (font_prop_validate_style): Adjust for the format
9086 change of font_style_table.
9087
9088 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9089 two args.
9090
9091 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9092 two args.
9093
90942008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9095
9096 * minibuf.c (keys_of_minibuf): Delete.
9097 * lisp.h (keys_of_minibuf): Delete.
9098 * emacs.c (main): Don't call keys_of_minibuf.
9099
91002008-05-22 Kenichi Handa <handa@m17n.org>
9101
9102 * ftfont.c (ftfont_resolve_generic_family): Rename from
9103 ftfont_list_generic_family. Return a single family for each
9104 generic family.
9105 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9106 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9107 Call font_add_log.
9108 (ftfont_match): Call font_add_log.
9109
9110 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9111 (FONT_DEBUG): Define it.
9112 (font_add_log): Extern it.
9113 (font_assert): Rename from xassert.
9114
9115 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9116 (xfont_list_family): Call font_add_log.
9117 (xfont_match): Likewise.
9118 (memq_no_quit): Delete.
9119
9120 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9121 call of Ffont_xlfd_name.
9122
9123 * xfaces.c (struct table_entry, slant_table, weight_table)
9124 (swidth_table): Move to font.c.
9125
9126 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9127 xassert are changed to font_assert. Delete many unused variables.
9128 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9129 New variables.
9130 (struct table_entry): Move from xfaces.c and modified.
9131 (weight_table, slant_table, width_table): Move from xfaces.c and
9132 contents adjusted for the change of struct table_entry.
9133 (font_style_to_value, font_style_symbolic): Adjust for the
9134 format change of font_style_table.
9135 (font_parse_family_registry): Don't overwrite existing foundry and
9136 family of font_spec.
9137 (font_score): Fix calculation of diff for sizes.
9138 (font_sort_entites): Call font_add_log.
9139 (font_delete_unmatched): Return a newly created list.
9140 (font_list_entities): Fix previous change. Call font_add_log.
9141 (font_matching_entity, font_open_entity, font_close_entity):
9142 Call font_add_log.
9143 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9144 (Finternal_set_font_style_table): Delete.
9145 (BUILD_STYLE_TABLE): New macro.
9146 (build_style_table): New function.
9147 (Vfont_log, font_log_env_checked): New variables.
9148 (font_add_log): New function.
9149 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9150 Declare Lisp variables "font-weight-table", "font-slant-table",
9151 "font-width-table", and "font-log". Initialize font_style_table.
9152
91532008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9154
9155 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9156
91572008-05-21 Seiji Zenitani <zenitani@mac.com>
9158 Ryo Yoshitake <ryo@shiftmode.net>
9159
9160 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9161 (Vframe_alpha_lower_limit): New variable.
9162 (x_set_alpha): New function.
9163
9164 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9165
9166 * xfns.c (x-create-frame, Qalpha):
9167 Initialize the frame parameter `alpha'.
9168 * xterm.c (OPAQUE, OPACITY): New.
9169 (x_set_frame_alpha): New function.
9170 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9171
9172 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9173 * w32fns.c (w32_frame_parm_handlers): Likewise.
9174
91752008-05-20 Jason Rumney <jasonr@gnu.org>
9176
9177 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9178 truetype fonts to opentype list.
9179
91802008-05-20 Juanma Barranquero <lekktu@gmail.com>
9181
9182 * fontset.c (Ffontset_info): Doc fix.
9183 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9184 <ignore-relative-composition>: Fix typos in docstrings.
9185
9186 * font.c (syms-of-font) <font-encoding-alist>:
9187 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9188 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9189 (Ffont_otf_alternates): Doc fixes.
9190
91912008-05-20 Kenichi Handa <handa@m17n.org>
9192
9193 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9194 font.h through out the file.
9195 (FONT_DRIVERS): Rename from FONTOBJ.
9196 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9197 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9198
9199 * emacs.c (main): Call syms_of_font unconditionally.
9200
9201 * font.h (find_font_encoding): Extern it.
9202
9203 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9204 fontset.c.
9205 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9206 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9207 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9208 only when HAVE_WINDOW_SYSTEM is defined.
9209 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9210 when HAVE_WINDOW_SYSTEM is defined.
9211
9212 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9213 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9214
9215 * xfaces.c: Include font.h unconditionally.
9216 (merge_face_ref, merge_face_vectors)
9217 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9218
92192008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9220
9221 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9222 indirect_variable.
9223 * eval.c (lisp_indirect_variable): New fun.
9224 (Fuser_variable_p): Use it.
9225
92262008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9227
9228 * lisp.h (indirect_variable):
9229 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9230 Use Lisp_Symbol pointers rather than Lisp_Object.
9231 Adjust callers.
9232 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9233 To this end, change calling-convention.
9234
9235 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9236 if some non-hidden buffers are selected by string&pred.
9237
92382008-05-19 Chong Yidong <cyd@stupidchicken.com>
9239
9240 * process.c (wait_reading_process_output): Always check status
9241 when in batch mode.
9242
92432008-05-19 Kenichi Handa <handa@m17n.org>
9244
9245 * font.c (font_list_entities): Fix handling of cache.
9246 (font_matching_entity): Likewise.
9247
9248 * ftfont.c (cs_iso8859_1): Delete.
9249 (ft_face_cache): New variable.
9250 (struct ftfont_info): New member fc_charset_idx.
9251 (ftfont_build_basic_charsets): Delete.
9252 (fc_charset_table): New variable.
9253 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9254 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9255 Callers changed.
9256 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9257 (ftfont_spec_pattern): New argument fc_charset_idx.
9258 Check registry more rigidly. Change callers.
9259 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9260 change of :font-entity property of the font.
9261
9262 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9263 property of the font.
9264
92652008-05-18 Juanma Barranquero <lekktu@gmail.com>
9266
9267 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9268 (Funencodable_char_position, Fcheck_coding_systems_region)
9269 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9270 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9271 (Ffind_operation_coding_system, Fset_coding_system_priority)
9272 (Fcoding_system_eol_type): Doc fixes.
9273
92742008-05-17 Glenn Morris <rgm@gnu.org>
9275
9276 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9277
92782008-05-16 Eli Zaretskii <eliz@gnu.org>
9279
9280 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9281 and st_gid.
9282
9283 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9284 HAVE_WINDOW_SYSTEM is not defined.
9285
9286 * xfaces.c (merge_face_ref, merge_face_vectors)
9287 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9288 HAVE_WINDOW_SYSTEM is defined.
9289 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9290
92912008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9292
9293 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9294
92952008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9296
9297 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9298
92992008-05-15 Kenichi Handa <handa@m17n.org>
9300
9301 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9302 preference.
9303
93042008-05-15 Glenn Morris <rgm@gnu.org>
9305
9306 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9307
93082008-05-15 Chong Yidong <cyd@stupidchicken.com>
9309
9310 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9311 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9312
9313 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9314
93152008-05-15 Kenichi Handa <handa@m17n.org>
9316
9317 * ftfont.c (ftfont_list): Downcase family name to check generic
9318 families.
9319
9320 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9321 font-spec for QCfont value.
9322
9323 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9324 buffer. Check the return value of it.
9325
93262008-05-14 Jason Rumney <jasonr@gnu.org>
9327
9328 * w32term.c (w32_get_glyph_overhangs): Remove.
9329 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9330
93312008-05-14 Kenichi Handa <handa@m17n.org>
9332
9333 * font.c (font_prop_validate): Make nil a valid value.
9334 (font_clear_cache): Check if the cached vector of entities is nil
9335 or not.
9336
93372008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9338
9339 * emacs.c (main_thread): Conditionalize on
9340 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9341 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9342
9343 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9344 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9345 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9346
93472008-05-14 Kenichi Handa <handa@m17n.org>
9348
9349 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9350 has no corresponding coding system.
9351
93522008-05-14 Jason Rumney <jasonr@gnu.org>
9353
9354 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9355
9356 * w32font.h (w32font_open_internal): Update declaration.
9357
9358 * w32font.c (w32font_open_internal): Change last argument from
9359 w32font_info struct to font object. Fill in font object from
9360 font_entity. Get Outline metrics if possible. Use them to
9361 calculate underline position and thickness. Use xlfd name as name
9362 property. Don't set codepage.
9363 (w32font_open): Pass font_object to w32font_open_internal. Don't
9364 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9365 (w32font_draw): Use s->font.
9366 (clear_cached_metrics): Don't clear non-existent blocks.
9367
9368 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9369 font was not found.
9370 (x_draw_glyph_string): Use underline position and thickness from font.
9371
9372 * w32uniscribe.c (uniscribe_open): Pass font_object to
9373 w32font_open_internal.
9374
93752008-05-14 Kenichi Handa <handa@m17n.org>
9376
9377 These changes are to delete all legacy font-handling codes, and
9378 make Emacs use only font-backends.
9379
9380 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9381 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9382
9383 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9384
9385 * charset.h (Vcharset_non_preferred_head)
9386 (Vcurrent_iso639_language): Extern them.
9387
9388 * charset.c (Vcharset_non_preferred_head): New variable.
9389 (Vcurrent_iso639_language): New variable.
9390 (syms_of_charset): Declare it as a Lisp variable.
9391 (char_charset): Don't check non preferred charsets. As a last
9392 resort, return charset_unicode.
9393 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9394
9395 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9396 conditionals. Don't check enable_font_backend. Delete all codes
9397 used only when USE_FONT_BACKEND is not defined.
9398
9399 * dispextern.h (struct glyph_string): Change type of `font' to
9400 `struct font *'.
9401 (struct glyph_string): New member underline_position and
9402 underline_thickness.
9403 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9404 (struct face): Change type of `font' to `struct font *'. Remove
9405 members `font_name', `font_info_id'.
9406 (per_char_metric, encode_char): Delete externs.
9407 (calc_pixel_width_or_height): Adjust the prototype.
9408
9409 * emacs.c (enable_font_backend): Delete extern.
9410 (main): Don't set enable_font_backend. Don't check the command
9411 line argument "-disable-font-backend".
9412
9413 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9414 (enum font_property_index): New members FONT_DPI_INDEX,
9415 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9416 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9417 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9418 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9419 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9420 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9421 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9422 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9423 (struct font_spec, struct font_entity): New structs.
9424 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9425 (struct font): Many members from old "struct font_info" moved to
9426 here. Members font and entity deleted.
9427 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9428 the new font-related objects.
9429 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9430 (CHECK_FONT_GET_OBJECT): Likewise.
9431 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9432 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9433 (struct font_driver): New members case_sensitive anc check. Type
9434 of the member list and open changed.
9435 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9436 (font_symbolic_width, font_find_object, font_get_spec)
9437 (font_set_lface_from_name): Delete extern.
9438 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9439
9440 * font.c: Include <strings.h>.
9441 (enable_font_backend): Delete it.
9442 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9443 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9444 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9445 (null_string): Delete it.
9446 (null_vector): Make it static.
9447 (font_family_alist): Delete it.
9448 (Qnormal): Extern it.
9449 (QCextra, QClanguage): Delete it.
9450 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9451 (font_make_spec, font_make_entity, font_make_object)
9452 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9453 the string. Callers changed.
9454 (font_pixel_size): Adjusted for the format change of font-related
9455 objects.
9456 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9457 (font_style_to_value, font_style_symbolic): New function.
9458 (build_font_family_alist): Delete it.
9459 (font_registry_charsets): Use Fassoc_string instead of
9460 assq_no_quit.
9461 (font_prop_validate_symbol): Don't return null_string.
9462 (font_prop_validate_style): Adjusted for the change of
9463 style-related values in a font vector.
9464 (font_property_table): Delete entries for QClanguage and
9465 QCantialias, add entries for QCavgwidth.
9466 (get_font_prop_index): Delete the 2nd argument FROM.
9467 (font_prop_validate): Arguments changed.
9468 (font_put_extra): Adjusted for the change of font-related objects.
9469 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9470 (font_parse_fcname, font_unparse_fcname)
9471 (font_prepare_composition): Likewise.
9472 (font_parse_family_registry): Renamed from font_merge_old_spec.
9473 (otf_open): Delete the 1st arg entity.
9474 (font_otf_capability): Adjusted for the above change.
9475 (font_score): New arg alternate_families. Adjusted for the change
9476 of font-related objects.
9477 (font_sort_entites): New arg best_only.
9478 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9479 Delete them.
9480 (font_match_p): Check alternate families.
9481 (font_find_object): Delete it.
9482 (font_check_object): New function.
9483 (font_clear_cache): Adjusted for the change of font-related objects.
9484 (font_delete_unmatched): New arg.
9485 (font_list_entities): Call font_driver->list with a spec that
9486 doesn't specify style-related properties.
9487 (font_matching_entity): Arguments changed. Caller changed.
9488 (font_open_entity): Adjusted for the change of font-related objects.
9489 (font_close_object, font_has_char, font_encode_char)
9490 (font_get_name, font_get_spec): Likewise.
9491 (font_spec_from_name, font_clear_prop, font_update_lface):
9492 New functions.
9493 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9494 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9495 (font_at): Adjusted for the change of font-related objects.
9496 (font_range): New function.
9497 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9498 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9499 (Fcopy_font_spec, Fmerge_font_spec): New function.
9500 (Ffont_family_list): Renamed from list-families.
9501 (Finternal_set_font_style_table): Arguments changed.
9502 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9503 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9504 change of font-related objects.
9505 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9506
9507 * fontset.h (struct font_info): Delete it. Most members go to
9508 struct font.
9509 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9510 (enum FONT_SPEC_INDEX): Delete it.
9511 (font_info, list_fonts_func, load_font_func, query_font_func)
9512 (set_frame_fontset_func, find_ccl_program_func)
9513 (get_font_repertory_func, new_fontset_from_font_name): Delete
9514 externs.
9515 (fontset_from_font_name): Extern it.
9516 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9517 (FONT_INFO_FROM_FACE): Deleted.
9518 (face_for_font): Adjust prototype.
9519
9520 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9521 conditionals. Don't check enable_font_backend. Delete all codes
9522 used only when USE_FONT_BACKEND is not defined.
9523 (get_font_info_func, list_font_func, load_font_func)
9524 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9525 (get_font_repertory_func): Delete them.
9526 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9527 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9528 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9529 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9530 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9531 (fontset_compare_rfontdef): New function.
9532 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9533 rfont-defs by qsort. Adjusted for the change of font-group vector.
9534 (load_font_get_repertory): Deleted.
9535 (fontset_find_font): Use new macros to ref/set elements of
9536 font-def and rfont-def.
9537 (fontset_font): Fix the timing of remembering that no font for C.
9538 (free_face_fontset): Do nothing if the face has no fontset.
9539 (face_suitable_for_char_p): Use new macros to ref/set elements of
9540 rfont-def.
9541 (face_for_char): Likewise. Call face_for_char with font_object.
9542 (fs_load_font): Delete. Delete #pragma surrounding it.
9543 (fs_query_fontset): Use strcasecmp instead of strcmp.
9544 (generate_ascii_font_name): Adjusted for the format change of
9545 font-spec.
9546 (Fset_fontset_font): Likewise. Use new macros to set elements of
9547 font-def.
9548 (Fnew_fontset): Use font_unparse_xlfd to generate
9549 FONTSET_ASCII (fontset).
9550 (new_fontset_from_font_name): Deleted.
9551 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9552 a fontset is already created for the font. FIx updating of
9553 Vfontset_alias_alist.
9554 (fontset_ascii_font): Deleted.
9555 (Ffont_info): Adjusted for the format change of font-spec.
9556 (Finternal_char_font): Likewise.
9557 (Ffontset_info): Likewise.
9558 (syms_of_fontset): Don't check load_font_func.
9559
9560 * fns.c (internal_equal): Handle PREV_FONT.
9561
9562 * frame.h: Delete USE_FONT_BACKEND conditional.
9563
9564 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9565 conditionals. Don't check enable_font_backend. Delete all codes
9566 used only when USE_FONT_BACKEND is not defined.
9567 (x_set_font): Call x_new_font, not x_new_fontset2.
9568 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9569 already set for the frame.
9570
9571 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9572 a font-entity by font_make_entity. Use font_intern_prop instead
9573 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9574 font property. If a font is scalable, set avgwidth property to 0.
9575 Set font-entity property by font_put_extra.
9576 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9577 (ffont_driver): Adjusted for the change of struct font_driver.
9578 (ftfont_spec_pattern): New function.
9579 (ftfont_list): Return a list, not vector.
9580 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9581 (ftfont_list_family): Don't downcase names.
9582 (ftfont_free_entity): Deleted.
9583 (ftfont_open): Return a font-object. Adjusted for the change of
9584 struct font. Get underline_thickness and underline_position from
9585 font property. Don't update dpyinfo->smallest_font_height and
9586 dpyinfo->smallest_char_width.
9587 (ftfont_close): Don't free `struct font'.
9588 (ftfont_has_char): Adjusted for the format change of font-entity.
9589 (ftfont_encode_char, ftfont_text_extents): Likewise.
9590
9591 * ftxfont.c (ftxfont_list): Return a list, not vector.
9592 (ftxfont_open): Return a font-object. Adjusted for the change of
9593 struct font. Get underline_thickness and underline_position from
9594 font property. Don't update dpyinfo->smallest_font_height and
9595 dpyinfo->smallest_char_width.
9596 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9597 (ftxfont_draw): Adjusted for the change of struct font.
9598
9599 * image.c (image_ascent): Don't include "charset.h". Include
9600 "character.h" and "font.h".
9601
9602 * lisp.h (enum pvec_type): New member PREV_FONT.
9603 (Fassoc_string): EXFUN it.
9604
9605 * print.c: Include font.h.
9606 (print_object): Handle font-related objects.
9607
9608 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9609 conditionals. Don't check enable_font_backend. Delete all codes
9610 used only when USE_FONT_BACKEND is not defined.
9611 (handle_auto_composed_prop): Do nothing if it->f is not on a
9612 window system. Check how many following characters can be
9613 displayed by the same font.
9614 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9615 'struct font *'.
9616 (get_char_face_and_encoding): Assign the whole encoding task to
9617 the `encode-char' method of a font driver.
9618 (fill_composite_glyph_string): Adjusted for the change of `struct
9619 face' and `struct glyph_string'.
9620 (fill_glyph_string): Likewise.
9621 (get_per_char_metric): Arguments changed.
9622 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9623 and `struct glyph_string'.
9624 (produce_stretch_glyph, calc_line_height_property)
9625 (x_produce_glyphs): Likewise.
9626
9627 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9628 conditionals. Don't check enable_font_backend. Delete all codes
9629 used only when USE_FONT_BACKEND is not defined. Use
9630 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9631 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9632 (Qp): Extern them.
9633 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9634 Deleted.
9635 (struct font_name): Deleted.
9636 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9637 (compare_fonts_by_sort_order): New function.
9638 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9639 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9640 Deleted.
9641 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9642 compare_fonts_by_sort_order.
9643 (Fx_font_family_list): Call Ffont_family_list.
9644 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9645 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9646 (face_symbolic_slant, face_symbolic_swidth)
9647 (split_font_name_into_vector, build_font_name_from_vector)
9648 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9649 (font_rescale_ratio, split_font_name, build_font_name)
9650 (free_font_names, sort_fonts, x_face_list_fonts)
9651 (face_font_available_p, sorted_font_list, cmp_font_names)
9652 (font_list_1, concat_font_list, font_list, remove_duplicates):
9653 Deleted.
9654 (Fx_list_fonts): Use Ffont_list.
9655 (LFACE_AVGWIDTH): Deleted.
9656 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9657 by FONTP.
9658 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9659 (set_lface_from_font_name): Delete it.
9660 (set_lface_from_font): Renamed from
9661 set_lface_from_font_and_fontset. Caller changed. Don't set
9662 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9663 for face.
9664 (merge_face_vectors): Copy font-spec if necessary.
9665 Clear properties of the font-spec if necessary.
9666 (merge_face_ref): Clear properties of the font-spec if necessary.
9667 (Finternal_set_lisp_face_attribute): Likewise.
9668 (set_font_frame_param): Use font_load_for_lface to load a
9669 font-object, and call Fmodify_frame_parameters with it.
9670 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9671 font name by Ffont_xlfd_name.
9672 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9673 QCslant, and QCwidth.
9674 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9675 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9676 Compare fonts by EQ.
9677 (lookup_non_ascii_face): Deleted.
9678 (face_for_font): The 2nd argument changed.
9679 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9680 Check atomic font properties by case insensitive.
9681 (realize_non_ascii_face): Set face->overstrike correctly.
9682 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9683 (dump_realized_face): Get font name from
9684 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9685
9686 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9687 conditionals. Don't check enable_font_backend. Delete all codes
9688 used only when USE_FONT_BACKEND is not defined.
9689 (xic_create_xfontset): Original code deleted and renamed from
9690 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9691 (x_make_gc): Don't set GCFont in GCs.
9692 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9693 opened by "fixed".
9694 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9695 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9696 get_font_repertory_func.
9697
9698 * xfont.c: Include <stdlib.h> and "ccl.h".
9699 (struct xfont_info): New structure.
9700 (xfont_query_font): Deleted.
9701 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9702 moved from xterm.c.
9703 (xfont_driver): Adjusted for the change of struct font_driver.
9704 (compare_font_names): New function.
9705 (xfont_list_pattern): Sort font names case insensitively. Make
9706 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9707 (xfont_list): Return a list, not vector.
9708 (xfont_match): If the font doesn't have QCname property, generate
9709 a name from the other font properties.
9710 (xfont_open): Return a font-object. Adjusted for the change of
9711 struct font. Get underline_thickness and underline_position from
9712 font property. Don't update dpyinfo->smallest_font_height and
9713 dpyinfo->smallest_char_width.
9714 (xfont_close): Don't free struct font.
9715 (xfont_prepare_face): Adjusted for the change of struct font.
9716 (xfont_done_face): Deleted.
9717 (xfont_has_char): Adjusted for the change of struct font.
9718 (xfont_encode_char, xfont_draw): Likewise.
9719 (xfont_check): New function.
9720
9721 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9722 callback function.
9723 (xftfont_match): Adjusted for the format change of font-entity.
9724 (xftfont_open): Adjusted for the format change of font-entity and
9725 font-object. Adjusted for the change of struct font. Return a
9726 font-object. Don't update dpyinfo->smallest_font_height and
9727 dpyinfo->smallest_char_width.
9728 (xftfont_close): Block input while calling XftFontClose.
9729 (xftfont_prepare_face): Don't block input while calling
9730 xftfont_get_colors. Adjusted for the change of struct font.
9731 (xftfont_shape): Return value of error case fixed.
9732
9733 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9734
9735 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9736 conditionals.
9737 (FONT_WIDTH): Return (f)->max_width.
9738 (struct x_display_info): Delete member `font'.
9739 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9740 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9741 (struct x_output): Change type of `font' to `struct font *'.
9742
9743 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9744 conditionals. Don't check enable_font_backend. Delete all codes
9745 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9746 (x_per_char_metric, x_encode_char): Deleted.
9747 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9748 (x_compute_glyph_string_overhangs): Adjusted for the change of
9749 `struct face'.
9750 (x_draw_glyph_string_foreground)
9751 (x_draw_composite_glyph_string_foreground): Likewise.
9752 (x_draw_glyph_string): Likewise. Use font->underline_position and
9753 font->underline_thickness.
9754 (x_new_font): Renamed from x_new_fontset2.
9755 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9756 (x_check_font): Call `check' method of a font driver.
9757 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9758 (x_query_font, x_get_font_repertory): Deleted.
9759 (x_find_ccl_program): Renamed and moved to xfont.c.
9760 (x_redisplay_interface): Adjusted for the change of `struct
9761 redisplay_interface'.
9762
9763 * w32fns.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. Surround non-used
9766 code by "#ifdef OLD_FONT" and "endif".
9767 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9768
9769 * w32font.h (struct w32font_info): New member.
9770 (FONT_COMPAT): New macro.
9771 (w32font_open_internal): Prototype adjusted.
9772
9773 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9774 OLD_FONT" and "endif".
9775
9776 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9777 conditionals. Don't check enable_font_backend. Delete all codes
9778 used only when USE_FONT_BACKEND is not defined.
9779 (w32font_open): Return a font-object. Make a font-object by
9780 font_make_object. Adjusted for the change of struct w32font_info.
9781 (w32font_close): Don't free struct font. Adjusted for the change
9782 of struct w32font_info.
9783 (w32font_encode_char, w32font_text_extents, w32font_draw):
9784 Adjusted for the change of struct w32font_info.
9785 (w32font_draw): Likewise.
9786 (w32font_list_internal): Return a list, not vector.
9787 (w32font_open_internal): Change the 4th arg to font-object.
9788 Adjusted for the change of struct w32font_info and font-object format.
9789 (add_font_name_to_list): Don't downcase names.
9790 (w32_enumfont_pattern_entity): Make a font-entity by
9791 font_make_entity. Adjusted for the format change of font-entity.
9792 Use FONT_SET_STYLE to set a style-related font property. If a
9793 font is scalable, set avgwidth property to 0. Set font-entity
9794 property by font_put_extra.
9795 (font_matches_spec): Adjusted for the format change of font-entity.
9796 (w32_weight_table, w32_decode_weight): New variables.
9797 (w32_encode_weight): New function.
9798 (fill_in_logfont): Adjusted for the format change of font-spec.
9799 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9800 weight value.
9801 (w32font_driver): Adjusted for the change of struct font_driver.
9802
9803 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9804 conditionals. Don't check enable_font_backend. Surround non-used
9805 code by "#ifdef OLD_FONT" and "endif".
9806 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9807 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9808
9809 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9810 conditionals. Don't check enable_font_backend. Delete all codes
9811 used only when USE_FONT_BACKEND is not defined. Surround non-used
9812 code by "#ifdef OLD_FONT" and "endif".
9813
9814 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9815 (uniscribe_open): Return value changed to font-object.
9816 Adjusted for the format change of font-object.
9817 (uniscribe_otf_capability): Adjusted for the change of struct font.
9818 (add_opentype_font_name_to_list): Don't downcase names.
9819 (uniscribe_font_driver): Adjusted for the change of struct
9820 font_driver.
9821
98222008-05-13 Chong Yidong <cyd@stupidchicken.com>
9823
9824 * dispnew.c (update_frame_1): Check if tty output is still valid
9825 before flushing it.
9826
98272008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9828
9829 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9830 to Gtk+ menus.
9831
98322008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9833
9834 * dired.c (file_name_completion): Tweak the code so as to always do it
9835 in a single pass. Tighten the scope of some variables.
9836
9837 * dired.c (Qdefault_directory): New var.
9838 (file_name_completion): Use it instead of Fexpand_file_name.
9839 (syms_of_dired): Initialize it.
9840
98412008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9842
9843 * fileio.c (double_dollars): Remove dead code.
9844
98452008-05-10 Eli Zaretskii <eliz@gnu.org>
9846
9847 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9848 Mention w32-get-true-file-attributes in doc string.
9849
9850 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9851
98522008-05-09 Glenn Morris <rgm@gnu.org>
9853
9854 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9855 2008-04-23.
9856
98572008-05-09 Eli Zaretskii <eliz@gnu.org>
9858
9859 Support for reporting owner and group of each file on MS-Windows:
9860 * dired.c (stat_uname, stat_gname): New functions, with special
9861 implementation for w32.
9862 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9863
9864 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9865 (dflt_group_name): New static variable.
9866 (dflt_group): Rename from the_group.
9867 (init_user_info): Init dflt_group fields. Get user's group name
9868 from LookupAccountSid.
9869 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9870 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9871 New initialization states.
9872 (globals_of_w32): Initialize them to zero. Initialize the default
9873 group name to "None".
9874 (GetFileSecurity_Name): New global var, the name of the function
9875 to call for GetFileSecurity.
9876 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9877 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9878 (get_file_security, get_security_descriptor_owner)
9879 (get_security_descriptor_group, is_valid_sid)
9880 (get_file_security_desc, get_rid, get_name_and_id)
9881 (get_file_owner_and_group): New functions.
9882 (stat): Use get_file_security_desc and get_file_owner_and_group to
9883 report the owner and primary group of each file. Don't ignore the
9884 high 32 bits of file's size, now that st_size is 64-bit wide.
9885 Fix test when to get true file attributes.
9886 (init_user_info): Use get_rid instead of equivalent inline code.
9887 (fstat): Don't ignore the high 32 bits of file's size.
9888
98892008-05-09 Chong Yidong <cyd@stupidchicken.com>
9890
9891 * image.c (png_load): Use correct bit-depth for setting background
9892 color.
9893
98942008-05-08 Eli Zaretskii <eliz@gnu.org>
9895
9896 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9897 epa-hook.elc.
9898
98992008-05-08 Juanma Barranquero <lekktu@gmail.com>
9900
9901 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9902
99032008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9904
9905 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9906 because the original parameters are in pure storage now.
9907 (mac_window): Remove unused params. Update callers.
9908
99092008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9910
9911 * lread.c (substitute_object_recurse): Use lower-level primitives.
9912 Don't signal errors when traversing sub-char-tables.
9913 Don't loop over all the possible characters when traversing char-tables.
9914
9915 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9916 just like we do in print.c.
9917
99182008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9919
9920 * minibuf.c (Ftry_completion): Remove code left over from when we used
9921 scmp instead of Fcompare_strings.
9922
99232008-05-04 Juanma Barranquero <lekktu@gmail.com>
9924
9925 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9926
99272008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9928
9929 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9930 Create bitmap context in native byte order.
9931
9932 * macterm.c (XDrawLine)
9933 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9934 context in native byte order.
9935
99362008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9937
9938 * config.in: Regenerate.
9939
9940 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9941 New definitions for Image I/O support.
9942 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9943 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9944 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9945 (mac_data_provider_release_data, image_load_image_io)
9946 [USE_MAC_IMAGE_IO]: New functions.
9947 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9948 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9949 (init_image_func_pointer) [MAC_OSX]: Remove function.
9950 (image_load_quartz2d) [MAC_OSX]: Check availability of
9951 CGImageCreateWithPNGDataProvider at compile time.
9952 Use lowercase `false' for boolean constant.
9953 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9954 Use image_load_image_io.
9955 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9956 Don't check MyCGImageCreateWithPNGDataProvider.
9957 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9958 Don't call init_image_func_pointer.
9959
9960 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9961
9962 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9963 Make variable non-static.
9964 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9965 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9966
9967 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9968 (RED_FROM_ULONG): Mask off higher bits.
9969 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9970
9971 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9972 Include AvailabilityMacros.h.
9973 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9974 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9975
99762008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
9977
9978 * chartab.c (Fset_char_table_range): If range is t, really set all
9979 chars to that value.
9980
99812008-05-03 Eli Zaretskii <eliz@gnu.org>
9982
9983 * dired.c (Ffile_attributes): Don't allow the device number become
9984 negative.
9985
99862008-05-02 Daiki Ueno <ueno@unixuser.org>
9987
9988 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9989
99902008-05-02 Juri Linkov <juri@jurta.org>
9991
9992 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9993 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
9994 DEFAULT argument as a list of default values in docstrings.
9995
99962008-05-01 Chong Yidong <cyd@stupidchicken.com>
9997
9998 * puresize.h (BASE_PURESIZE): Increase to 1210000.
9999
100002008-05-01 Martin Rudalics <rudalics@gmx.at>
10001
10002 * dispnew.c (change_frame_size_1): Preserve small windows when
10003 shrinking frames by calling set_window_height|width with third
10004 arg 2.
10005
10006 * window.h (struct window): Replace field too_small_ok by field
10007 resize_proportionally.
10008
10009 * window.c (make_window): Initialize resize_proportionally.
10010 (enlarge_window): Temporarily set resize_proportionally to make
10011 sure that shrink_windows does scale the window proportionally.
10012 (shrink_windows): When window has resize_proportionally set try
10013 to shrink it proportionally by stealing from other windows.
10014 (struct saved_window, Fset_window_configuration)
10015 (compare_window_configurations): Handle resize_proportionally.
10016 (WINDOW_TOTAL_SIZE): New macro.
10017 (window_min_size, shrink_windows, size_window): Use it.
10018 (check_min_window_sizes): Remove. Invalid values of
10019 window-min-height|width are handled by window_min_size_2 now.
10020 (size_window, Fsplit_window, enlarge_window)
10021 (adjust_window_trailing_edge, grow_mini_window): Don't call
10022 check_min_window_sizes.
10023 (window_min_size_2, window_min_size_1, window_min_size):
10024 New argument safe_p for retrieving "safe" minimum sizes.
10025 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10026 (adjust_window_trailing_edge, grow_mini_window):
10027 Adjust arguments of window_min_size... functions.
10028 (shrink_windows): Argument min_size removed. New argument
10029 safe_p allows shrinking windows to their safe minimum sizes.
10030 Calculate minimum size and decide whether a window shall be
10031 deleted for each window individually.
10032 (size_window): When nodelete_p equals 2, tell shrink_windows to
10033 delete windows only if their new minimum size is no more safe.
10034 (shrink_window_lowest_first): Call window_min_size_1 to make
10035 sure to preserve modeline of bottom-most window when resizing
10036 the minibuffer.
10037 (Fset_window_configuration, Fcurrent_window_configuration)
10038 (compare_window_configurations): Do not handle
10039 window-min-height|width any more.
10040 (syms_of_window): Clarify window-min-height|width doc-strings.
10041
100422008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10043
10044 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10045 some more. Copy some of the code from Ftry_completions.
10046 Remove special case code that dates back to initial revision when the
10047 slash was only added when necessary and that can't trigger nowadays.
10048
100492008-04-27 Kenichi Handa <handa@m17n.org>
10050
10051 * font.c (font_prop_validate): Signal `error' instead of `font'.
10052
100532008-04-29 Jason Rumney <jasonr@gnu.org>
10054
10055 * w32fns.c (Fw32_battery_status): New defun.
10056 (syms_of_w32fns): Defsubr it.
10057
100582008-04-28 Andreas Schwab <schwab@suse.de>
10059
10060 * dired.c (file_name_completion): Fix another mixing of encoded
10061 and decoded names.
10062
100632008-04-28 Juanma Barranquero <lekktu@gmail.com>
10064
10065 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10066
100672008-04-27 Juanma Barranquero <lekktu@gmail.com>
10068
10069 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10070
100712008-04-27 Andreas Schwab <schwab@suse.de>
10072
10073 * dired.c (file_name_completion): Fix inappropriate mixing of
10074 encoded and decoded names.
10075
10076 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10077
10078 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10079
100802008-04-26 Eli Zaretskii <eliz@gnu.org>
10081
10082 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10083 2008-03-31, it's not needed anymore with `struct stat' definition
10084 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10085 for the same reasons.
10086
100872008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10088
10089 * m/sparc.h: Additional redefinitions for GNU/Linux.
10090
100912008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10092
10093 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10094 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10095 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10096 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10097 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10098 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10099 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10100 Likewise.
10101
10102 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10103 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10104 (mac_ax_number_of_characters): Add externs.
10105 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10106 [USE_MAC_TSM]: Likewise.
10107 (mac_handle_text_input_event) [MAC_OSX]:
10108 Handle kEventTextInputOffsetToPos for no active input area case.
10109 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10110 (mac_handle_document_access_event)
10111 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10112 (install_application_handler) [MAC_OSX]: Register handlers for
10113 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10114 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10115 Register mac_handle_document_access_event.
10116
10117 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10118 Make functions non-static.
10119
101202008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10121
10122 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10123 (read_file_name_completion_ignore_case, insert_default_directory)
10124 (Qdefault_directory): Move to minibuffer.el.
10125 (Fread_file_name): Call the new `read-file-name' instead.
10126
101272008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10128
10129 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10130 Make function non-static.
10131 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10132 Remove function.
10133 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10134 Move to mactoolbox.c.
10135 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10136
10137 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10138 (mac_rect_make): New macro.
10139
10140 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10141 instead of float.
10142 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10143 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10144 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10145 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10146 CGRectMake.
10147 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10148 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10149 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10150 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10151 instead of WindowRef in argument type.
10152 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10153 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10154 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10155 instead of DISPLAY. All uses changed.
10156 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10157 (x_calc_absolute_position): Simplify so as not to use
10158 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10159
10160 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10161 instead of WindowRef in argument type.
10162 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10163 [TARGET_API_MAC_CARBON]: Remove externs.
10164 (create_apple_event, mac_event_parameters_to_lisp)
10165 [TARGET_API_MAC_CARBON]: Add externs.
10166
10167 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10168 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10169 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10170 is clicked.
10171 (x_activate_menubar): Remove extern for saved_menu_event_location.
10172 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10173 Move from mac.c.
10174
101752008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10176
10177 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10178 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10179
101802008-04-23 Jason Rumney <jasonr@gnu.org>
10181
10182 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10183 attributes only for local files.
10184
10185 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10186 default to Qlocal.
10187
101882008-04-22 Juri Linkov <juri@jurta.org>
10189
10190 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10191 read-buffer-to-switch instead of using the letter "B".
10192
101932008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10194
10195 * fileio.c (Qdefault_directory): New variable.
10196 (Fread_file_name): Use it to pass `dir' to the completion functions.
10197
101982008-04-20 Chong Yidong <cyd@stupidchicken.com>
10199
10200 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10201
102022008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10203
10204 * keyboard.c (Vpre_help_message): Remove.
10205 (show_help_echo): Remove default C code.
10206
10207 * dired.c (directory_files_internal, file_name_completion):
10208 Only call ENCODE_FILE if the string is indeed decoded.
10209
102102008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10211
10212 * Makefile.in (TOOLKIT_DEFINES): Remove.
10213 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10214
102152008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10216
10217 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10218 (mactoolbox.o): New target.
10219
10220 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10221 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10222
10223 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10224 Use mac_set_frame_window_background instead of XSetWindowBackground.
10225 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10226 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10227 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10228 instead of SetWindowTitleWithCFString.
10229 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10230 Move function to mactoolbox.c.
10231 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10232 Use mac_set_window_modified instead of SetWindowModified.
10233 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10234 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10235 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10236 FrontNonFloatingWindow. Use mac_activate_window instead of
10237 ActivateWindow. Use mac_active_non_floating_window instead of
10238 ActiveNonFloatingWindow.
10239 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10240 Use mac_show_hourglass and mac_hide_hourglass.
10241 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10242 instead of GetGlobalMouse.
10243 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10244 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10245 Use mac_bring_window_to_front instead of BringToFront.
10246 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10247 mactoolbox.c.
10248 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10249 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10250 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10251 mactoolbox.c.
10252
10253 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10254 (XtPointer): Move typedef from macmenu.c.
10255 (enum button_type): Move enum from macmenu.c.
10256 (widget_value): Move typedef from macmenu.c.
10257 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10258 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10259 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10260 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10261 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10262 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10263 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10264 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10265 (Selection): Move typedef from macselect.c.
10266 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10267 macterm.c.
10268 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10269 (mac_is_window_collapsed, mac_bring_window_to_front)
10270 (mac_send_window_behind, mac_hide_window, mac_show_window)
10271 (mac_collapse_window, mac_front_non_floating_window)
10272 (mac_active_non_floating_window, mac_activate_window)
10273 (mac_move_window_structure, mac_move_window, mac_size_window)
10274 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10275
10276 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10277 (enum mac_menu_kind): Move enum to mactoolbox.c.
10278 (min_menu_id): Move variable to mactoolbox.c.
10279 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10280 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10281 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10282 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10283 [TARGET_API_MAC_CARBON]: Likewise.
10284 (XtPointer): Move typedef to macgui.h.
10285 (enum button_type): Move enum to macgui.h.
10286 (widget_value): Move typedef to macgui.h.
10287 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10288 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10289 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10290 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10291 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10292 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10293 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10294 (popup_activated_flag): Make variable non-static.
10295 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10296 (add_menu_item, fill_menu, dispose_menus):
10297 Move functions to mactoolbox.c.
10298 (restore_show_help_function, menu_target_item_handler)
10299 (install_menu_target_item_handler, mac_handle_dialog_event)
10300 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10301 [TARGET_API_MAC_CARBON]: Likewise.
10302 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10303 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10304 (find_and_call_menu_selection, name_is_separator): Make function
10305 non-static.
10306 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10307 to mactoolbox.c.
10308 (set_frame_menubar): Don't call install_menu_quit_handler.
10309 (menu_item_selection): New variable.
10310 (mac_menu_show): Use create_and_show_popup_menu.
10311 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10312 selection but set variable menu_item_selection. All uses changed.
10313 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10314 Call install_menu_quit_handler. Move to mactoolbox.c.
10315
10316 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10317 (Selection): Move typedef to macgui.h.
10318 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10319 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10320 Make variables non-static.
10321 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10322 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10323 Make functions non-static.
10324 (Vmac_service_selection) [MAC_OSX]: Likewise.
10325 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10326 (mac_valid_selection_target_p, mac_clear_selection)
10327 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10328 (mac_put_selection_value, mac_selection_has_target_p)
10329 (mac_get_selection_value, mac_get_selection_target_list)
10330 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10331 Move functions to mactoolbox.c.
10332 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10333 Likewise.
10334 (copy_scrap_flavor_data, mac_handle_service_event)
10335 (install_service_handler) [MAC_OSX]: Likewise.
10336 (syms_of_macselect) <Vmac_dnd_known_types>:
10337 Use mac_dnd_default_known_types.
10338
10339 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10340 Move to mactoolbox.c.
10341 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10342 (Fx_selection_owner_p): Add EXFUN.
10343 (install_window_handler, remove_window_handler, XSetWindowBackground):
10344 Remove externs.
10345 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10346 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10347 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10348 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10349 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10350 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10351 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10352 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10353 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10354 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10355 (mac_valid_selection_target_p, mac_clear_selection)
10356 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10357 (mac_put_selection_value, mac_selection_has_target_p)
10358 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10359 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10360 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10361 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10362 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10363 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10364 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10365 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10366 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10367
10368 * mactoolbox.c: New file.
10369
103702008-04-18 Jason Rumney <jasonr@gnu.org>
10371
10372 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10373
103742008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10375
10376 * character.c (Fmultibyte_char_to_unibyte):
10377 Return latin1 chars unchanged.
10378
10379 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10380 relocated if it points to `name'.
10381
103822008-04-17 Kenichi Handa <handa@m17n.org>
10383
10384 * data.c (Faset): Allow setting a multibyte character in an
10385 ASCII-only unibyte string.
10386
10387 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10388
103892008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10390
10391 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10392 done in config.h.
10393
103942008-04-16 Juanma Barranquero <lekktu@gmail.com>
10395
10396 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10397 (Fchar_direction): Add usage in the docstring.
10398
103992008-04-15 Chong Yidong <cyd@stupidchicken.com>
10400
10401 * keyboard.c (read_key_sequence): Remove always-true checks.
10402
104032008-04-14 Jason Rumney <jasonr@gnu.org>
10404
10405 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10406 compatibility struct, for better underline positioning.
10407
104082008-04-13 David Hansen <david.hansen@gmx.net>
10409
10410 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10411 string.
10412
104132008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10414
10415 * m/hp800.h (XUINT, XSET): Remove.
10416
104172008-04-12 Juanma Barranquero <lekktu@gmail.com>
10418
10419 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10420 previous change.
10421
104222008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10423
10424 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10425 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10426
104272008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10428
10429 * keymap.h (map_keymap_canonical): Declare.
10430 * xmenu.c (single_keymap_panes): Use it.
10431
104322008-04-11 Glenn Morris <rgm@gnu.org>
10433
10434 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10435 set the target's value to that of the alias.
10436
104372008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10438
10439 * term.c (set_tty_color_mode): Left over typo.
10440
104412008-04-10 Michael Albinus <michael.albinus@gmx.de>
10442
10443 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10444 only after check for file name handler functions. Signal, when
10445 native functionality is not supported.
10446 (syms_of_fileio): Declare it unconditionally.
10447
104482008-04-10 Jason Rumney <jasonr@gnu.org>
10449
10450 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10451 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10452
10453 * w32.c (logon_network_drive): Also logon to remote drives that
10454 are mapped to drive letters.
10455
104562008-04-10 Glenn Morris <rgm@gnu.org>
10457
10458 * xdisp.c (truncate-partial-width-windows): Doc fix.
10459
104602008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10461
10462 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10463 Move functions to minibuffer.el.
10464 (syms_of_fileio): Don't declare them.
10465
104662008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10467
10468 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10469 (syms_of_minibuf): Remove its initialization.
10470
10471 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10472
104732008-04-09 Juanma Barranquero <lekktu@gmail.com>
10474
10475 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10476
104772008-04-09 Jason Rumney <jasonr@gnu.org>
10478
10479 * makefile.w32-in (distclean): Delete makefile too.
10480 (maintainer-clean): New target.
10481
10482 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10483
10484 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10485 for new font backend and composite cases.
10486
104872008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10488
10489 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10490 Most of the code moved to run_timers.
10491 (do_pending_atimers): Call run_timers.
10492 (run_timers): New function.
10493
10494 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10495 run atimers.
10496
10497 * process.c (wait_reading_process_output): The same as above.
10498
104992008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10500
10501 * minibuf.c (last_exact_completion): Remove variable.
10502 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10503 (complete_and_exit_1, complete_and_exit_2)
10504 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10505 (Fdisplay_completion_list, display_completion_list_1)
10506 (Fminibuffer_completion_help, Fself_insert_and_exit)
10507 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10508 minibuffer.el.
10509 (syms_of_minibuf): Remove corresponding initializations.
10510
10511 * keyboard.c (Qdeactivate_mark): New var.
10512 (command_loop_1): Use it to call `deactivate-mark'.
10513 (syms_of_keyboard): Initialize it.
10514
10515 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10516 to another frame.
10517 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10518 Don't call set_tty_color_mode.
10519 (store_frame_param): Reset previous_frame rather than call
10520 set_tty_color_mode.
10521 * term.c (set_tty_color_mode): Rewrite.
10522 * dispextern.h (set_tty_color_mode): New type.
10523 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10524
105252008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10526
10527 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10528 for generic chars, which do not exist any more in emacs-unicode.
10529
105302008-04-08 Michael Albinus <michael.albinus@gmx.de>
10531
10532 * coding.c (detect_coding_emacs_mule)
10533 (Ffind_operation_coding_system): Fix typo.
10534
105352008-04-08 Jason Rumney <jasonr@gnu.org>
10536
10537 * w32uniscribe.c (SNAME): Extract only symbol name.
10538
10539 * w32font.h (struct w32_metric_cache): New struct.
10540 (w32font_info): Use it.
10541 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10542 (CACHE_BLOCKSIZE): New constants.
10543
10544 * w32font.c (Qja, Qko, Qzh): New symbols.
10545 (syms_of_w32font): Initialise them.
10546 (font_matches_spec): Use them to filter by language.
10547 (recompute_cached_metrics): Remove function.
10548 (compute_metrics, clear_cached_metrics): New functions.
10549 (w32font_encode_char): Use them to manage metric cache.
10550 (w32font_text_extents): Cache metrics for all glyphs on demand.
10551 Delay converting glyph indices to WORD until needed.
10552 (w32font_open_internal): Initialize metric cache to empty.
10553 (registry_to_w32_charset): Charset should always be a symbol.
10554 (fill_in_logfont, list_all_matching_fonts): Family should
10555 always be a symbol.
10556
105572008-04-06 Jason Rumney <jasonr@gnu.org>
10558
10559 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10560 Give up if glyph indices not supported. Use uniscribe obtained
10561 ABC widths for individual metrics. Map glyph clusters back to
10562 characters using fClusterStart flag. Return number of glyphs
10563 produced, not chars processed.
10564 (uniscribe_shape): Map char at FROM to current glyph.
10565
105662008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10567
10568 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10569 Use SetMenuItemHierarchicalMenu.
10570
105712008-04-05 Jason Rumney <jasonr@gnu.org>
10572
10573 * image.c (pbm_load): Allow color values up to 65535.
10574 Throw an error if max_color_idx is outside the supported range.
10575 Report an error when image size is invalid.
10576 Read two bytes at a time when raw images have max_color_idx above 255.
10577
105782008-04-05 Eli Zaretskii <eliz@gnu.org>
10579
10580 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10581 cFileName a file name that includes `?' characters, use the 8+3
10582 alias in cAlternateFileName instead.
10583
105842008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10585
10586 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10587 append "CCL: Quitted" when the CCL program is quitted.
10588 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10589
10590 * ccl.h (struct ccl_program): New member quit_silently.
10591
105922008-04-05 Chong Yidong <cyd@stupidchicken.com>
10593
10594 * search.c (compile_pattern_1): Treat non-nil and non-string of
10595 search-spaces-regexp as nil.
10596
10597 * minibuf.c (Fassoc_string): Tweak docstring.
10598
105992008-04-05 Eli Zaretskii <eliz@gnu.org>
10600
10601 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10602 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10603 2008-03-14 to force inode be positive.
10604
10605 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10606 _S_* ones, since we now use our own sys/stat.h.
10607 (stat, fstat): Don't mangle the inode number.
10608 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10609
106102008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10611
10612 * frame.h (struct frame): Give one more bit to `visible' since we use
10613 values larger than 1 to indicate obscured frames on ttys.
10614
10615 * keymap.c (Qkeymap_canonicalize): New var.
10616 (Fmap_keymap_internal): New fun.
10617 (describe_map): Use keymap-canonicalize.
10618
10619 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10620 (Fundo_boundary): Set them.
10621 (syms_of_undo): Initialize them.
10622 (record_point): Use them instead of last_point_position*.
10623 (last_undo_buffer): Change type.
10624
106252008-04-04 Jason Rumney <jasonr@gnu.org>
10626
10627 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10628 (recompute_cached_metrics): Don't set ascent and descent per char.
10629
10630 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10631 (uniscribe_check_otf): Add GC protection before consing.
10632 Rearrange loop for counting features.
10633
106342008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10635
10636 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10637 buffer with byte-size of source buffer.
10638
106392008-04-03 Chong Yidong <cyd@stupidchicken.com>
10640
10641 * callint.c (Fcall_interactively): Handle temporary region even
10642 when shift-select-mode is off.
10643
106442008-04-03 Jason Rumney <jasonr@gnu.org>
10645
10646 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10647
106482008-04-03 Kenichi Handa <handa@m17n.org>
10649
10650 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10651 (CATEGORY_MASK_UTF_16): Likewise.
10652 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10653 binary file.
10654 (detect_coding): Add null-byte detection for a binary file.
10655 (detect_coding_system): Likewise.
10656
106572008-04-03 Jason Rumney <jasonr@gnu.org>
10658
10659 * w32uniscribe.c: New file.
10660
10661 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10662
10663 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10664
10665 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10666 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10667 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10668 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10669 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10670 (Qphonetic): New symbols.
10671 (syms_of_w32font): Initialize them.
10672 (font_supported_scripts): Use them.
10673 (w32font_list_family): List all charsets.
10674 (w32font_text_extents, recompute_cached_metrics): Fix metric
10675 calculations.
10676 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10677 Give opentype fonts their own format.
10678 (font_matches_spec): New arguments backend and logfont.
10679 Handle :otf spec for uniscribe backend.
10680 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10681 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10682
10683 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10684 font backend.
10685 (globals_of_w32fns): Initialize uniscribe font backend.
10686
10687 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10688 dependencies.
10689 (w32uniscribe.$(O)): New file to build.
10690 (FONT_OBJ): Include w32uniscribe.$(O).
10691 (LIBS): Add uniscribe libraries.
10692
10693 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10694
106952008-04-02 Chong Yidong <cyd@stupidchicken.com>
10696
10697 * callint.c (Vshift_select_mode): New var.
10698 (Finteractive): Document new ^ spec.
10699 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10700 is present.
10701
10702 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10703 (command_loop_1): Avoid running the direct display versions of
10704 forward-char and backward-char if shift-selection may occur.
10705 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10706 shift-translation takes place.
10707
10708 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10709 avoid clobbering by define-minor-mode.
10710
10711 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10712 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10713
10714 * syntax.c (Fforward_word): Add ^ interactive spec.
10715
10716 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10717 (Fscroll_right): Add ^ interactive spec.
10718
107192008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10720
10721 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10722
10723 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10724
10725 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10726
107272008-03-31 Juri Linkov <juri@jurta.org>
10728
10729 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10730
107312008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10732
10733 * gtkutil.c (xg_set_geometry): Fix indentation.
10734 (xg_resize_outer_widget): Remove.
10735 (x_wm_size_hint_off): Fix indentation.
10736 (xg_frame_set_char_size): Call flush_and_sync after
10737 gtk_window_resize.
10738 (x_wm_set_size_hint): Pass NULL as geometry window to
10739 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10740 Add menu bar and tool bar height to base height.
10741 (xg_update_frame_menubar, free_frame_menubar)
10742 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10743 (update_frame_tool_bar, free_frame_tool_bar):
10744 Change xg_resize_outer_widget to xg_frame_set_char_size.
10745
107462008-03-30 Michael Albinus <michael.albinus@gmx.de>
10747
10748 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10749 (Fdbus_call_method): New parameter TIMEOUT.
10750 (dbus-send-signal): Optimize UNGCPRO call.
10751
107522008-03-29 Juri Linkov <juri@jurta.org>
10753
10754 * window.c (Fdisplay_buffer): Move call to
10755 Vsplit_window_preferred_function out of conditions that check
10756 if window is eligible for vertical splitting.
10757 When Vsplit_window_preferred_function is non-nil, call it and use
10758 its non-nil return value as window. Otherwise, continue doing
10759 vertical splitting using Fsplit_window with arg horflag=nil.
10760 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10761 default value from `split-window' to nil.
10762
107632008-03-29 Juri Linkov <juri@jurta.org>
10764
10765 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10766 for interactive code letters 'b' and 'B'.
10767
107682008-03-29 Eli Zaretskii <eliz@gnu.org>
10769
10770 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10771 multibyte string.
10772
107732008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10774
10775 * keyboard.c (pending_funcalls): New var.
10776 (timer_check): Run it.
10777 (syms_of_keyboard): Initialize it.
10778 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10779 (Vdelete_terminal_functions): New vars.
10780 (syms_of_terminal): Initialize them.
10781 (Fdelete_terminal): Run delete-terminal-functions.
10782 * xdisp.c (safe_eval): Rewrite.
10783 (safe_call2): New fun.
10784 * frame.c (Qdelete_frame_functions): New var.
10785 (syms_of_frame): Initialize it.
10786 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10787 * lisp.h (safe_call2, pending_funcalls): Declare.
10788
107892008-03-28 Andreas Schwab <schwab@suse.de>
10790
10791 * indent.c (Fmove_to_column): Move declaration before statements.
10792
107932008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10794
10795 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10796 (struct frame): Use bit fields for boolean vars.
10797
10798 * process.c (server_accept_connection): Simplify naming.
10799 (emacs_get_tty_pgrp): Use SDATA.
10800
10801 * coding.c (decode_coding_object): Fix last change.
10802
108032008-03-27 Jason Rumney <jasonr@gnu.org>
10804
10805 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10806
108072008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10808
10809 * charset.c (Fdefine_charset_internal): Change the way of
10810 registering charsets in Vcharset_order_list.
10811 (syms_of_charset): Make the charset `eight-bit' supplementary.
10812
108132008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10814
10815 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10816 operations, to avoid having the difference between pointers
10817 overflow.
10818
108192008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10820
10821 * indent.c (check_display_width): New fun.
10822 (scan_for_column): Use it.
10823
10824 * data.c (syms_of_data): Mark most-positive-fixnum and
10825 most-negative-fixnum as constants.
10826
10827 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10828
10829 * indent.c (scan_for_column): Extract from current_column_1.
10830 Merge with the same code from Fmove_to_column.
10831 (current_column_1, Fmove_to_column): Use it.
10832
108332008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10834
10835 * keymap.c (map_keymap_internal): New fun.
10836 (map_keymap): Use it.
10837 (Fmap_keymap_internal): New fun.
10838 (Fmap_keymap): Remove left-out test from before make_save_value.
10839
10840 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10841
10842 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10843 Use XCAR/XCDR.
10844
10845 * process.h (struct Lisp_Process): Remove filter_multibyte.
10846 * process.c (QCfilter_multibyte): Remove.
10847 (setup_process_coding_systems): Don't use filter_multibyte.
10848 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10849 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10850 (Fset_process_filter_multibyte): Change the coding-system to
10851 approximate the previous behavior.
10852 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10853 coding-system.
10854
10855 * coding.c (decode_coding_object): When not decoding into a buffer,
10856 obey the coding system's preference of (uni|multi)byte.
10857
108582008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10859
10860 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10861 every char is changed and has a different byte-length.
10862 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10863 Fix int -> EMACS_INT.
10864
108652008-03-23 David Hansen <david.hansen@gmx.net>
10866
10867 * dbusbind.c (xd_read_message): Remove extra copying of message
10868 strings. Check for NULL `interface' or `member'.
10869
108702008-03-22 Eli Zaretskii <eliz@gnu.org>
10871
10872 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10873 cFileName a file name that includes `?' characters, use the 8+3
10874 alias in cAlternateFileName instead.
10875
108762008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10877
10878 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10879
108802008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10881
10882 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10883 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10884 work on current_buffer only instead (that was already the case
10885 for some of the code anyway).
10886 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10887 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10888 (SET_PT, SET_PT_BOTH): Adjust.
10889 * intervals.h (set_point, temp_set_point, set_point_both)
10890 (temp_set_point_both): Remove redundant declarations.
10891
108922008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10893
10894 * fileio.c (Finsert_file_contents):
10895 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10896 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10897 when buffer != current_buffer anyway.
10898
108992008-03-20 Andreas Schwab <schwab@suse.de>
10900
10901 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10902 as default.
10903
109042008-03-19 Jason Rumney <jasonr@gnu.org>
10905
10906 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10907 (syms_of_w32fns): Initialize them.
10908 (HOURGLASS_ID): New constant.
10909 (x_window_to_frame): Don't check hourglass_window.
10910 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10911 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10912 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10913 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10914 Only change the cursor if hourglass is not active.
10915 (Fx_create_frame): Initialize frame's current_cursor.
10916 (hourglass_atimer): Remove.
10917 (hourglass_started): New function.
10918 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10919 (show_hourglass): Adapt to w32, changing argument to frame.
10920
10921 * w32term.h (struct w32_output): Remove hourglass_window.
10922 Add current_cursor.
10923
10924 * eval.c (call_debugger, Fsignal):
10925 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10926 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10927 (Fexecute_extended_command, cancel_hourglass_unwind):
10928 * minibuf.c (read_minibuf):
10929 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10930
109312008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10932
10933 * window.c (run_funs): New fun.
10934 (run_window_configuration_change_hook): Use it to run the buffer-local
10935 and the global part of the hook.
10936
10937 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10938 (unwind_format_mode_line): Restore selected window.
10939 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10940
109412008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10942
10943 * editfns.c (Fchar_equal): Check they are valid characters.
10944
10945 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10946
109472008-03-17 Andreas Schwab <schwab@suse.de>
10948
10949 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10950 against a charset.
10951
10952 * lisp.h (Fbuffer_list): Declare.
10953
109542008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 10955
aac0c6e3
MR
10956 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10957 handlebox_widget is != 0.
10958
109592008-03-16 Juri Linkov <juri@jurta.org>
10960
10961 * callint.c (Fcall_interactively): For interactive code letters
10962 'b' and 'B' put the buffer list into the list of default "future"
10963 values of the minibuffer.
10964
109652008-03-16 Andreas Schwab <schwab@suse.de>
10966
10967 * keyboard.c (read_key_sequence): Fix downcasing of letters with
10968 modifiers.
10969
10970 * regex.c (re_match_2_internal): Correct matching of a charset
10971 against latin-1 characters.
10972
109732008-03-16 Kenichi Handa <handa@m17n.org>
10974
10975 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10976 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10977 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10978 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10979 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10980 CHAR_STRING_ADVANCE.
10981 (produce_chars): Fix for the case that the source and the
10982 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
10983 instead of CHAR_STRING_ADVANCE.
10984 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10985 STRING_CHAR_ADVANCE.
10986
109872008-03-15 Andreas Schwab <schwab@suse.de>
10988
10989 * regex.c (re_match_2_internal): Correct matching of eight bit
10990 characters in unibyte strings.
10991
109922008-03-15 Martin Rudalics <rudalics@gmx.at>
10993
10994 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
10995 at end of range when it coincides with the end of the buffer.
10996
109972008-03-14 Eli Zaretskii <eliz@gnu.org>
10998
10999 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11000
11001 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11002
110032008-03-14 Jason Rumney <jasonr@gnu.org>
11004
11005 * editfns.c (initial_tz): New variable.
11006 (syms_of_editfns): Initialize it.
11007 (Fset_time_zone_rule): Set it when first called.
11008 Use it when TZSTRING is nil.
11009
11010 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11011 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11012 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11013 (globals_of_w32fns): Initialize them.
11014 (compute_tip_xy): Use them to position tooltips.
11015
110162008-03-14 Glenn Morris <rgm@gnu.org>
11017
11018 * emacs.c (main): Revert previous change.
11019 (standard_args): Revert -internal-script back to -scriptload,
11020 and remove the long-option form.
11021
110222008-03-13 Glenn Morris <rgm@gnu.org>
11023
11024 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11025 Remove option -enable-font-backend.
11026
110272008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11028
11029 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11030
110312008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11032
11033 * xterm.c (x_connection_closed): For GTK: If this is the last
11034 terminal just exit without closing the display.
11035
110362008-03-11 Jason Rumney <jasonr@gnu.org>
11037
11038 * w32font.c (w32font_full_name): Use floor to round.
11039
f0131492 110402008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11041
11042 * sound.c (alsa_configure): Declare vol at beginning of block.
11043
11044 * fontset.c (Ffontset_info): Remove extra semicolon.
11045
110462008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11047
11048 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11049 size of resulting string.
11050
110512008-03-10 Jason Rumney <jasonr@gnu.org>
11052
11053 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11054
110552008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11056
11057 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11058 Don't pretend as if characters with display property haven't been
11059 consumed for string-replacing-string case.
11060
110612008-03-08 Kim F. Storm <storm@cua.dk>
11062
11063 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11064 (get_next_display_element, next_element_from_string)
11065 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11066
110672008-03-08 Andreas Schwab <schwab@suse.de>
11068
11069 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11070
110712008-03-06 Jason Rumney <jasonr@gnu.org>
11072
11073 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11074 when charset not specified. Only translate ANSI to unicode when
11075 font_type is truetype.
11076 (w32font_coverage_ok): New function.
11077 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11078
110792008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11080
11081 * lread.c (Fread_char): Resolve modifiers.
11082 (Fread_char_exclusive): Likewise.
11083
11084 * character.c (char_resolve_modifier_mask): New function.
11085 (char_string): Use char_resolve_modifier_mask.
11086 (Fchar_resolve_modifiers): New function.
11087 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11088 function.
11089
110902008-03-04 Jason Rumney <jasonr@gnu.org>
11091
11092 * makefile.w32-in: Always include w32font.c in the build.
11093 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11094
110952008-03-04 Andreas Schwab <schwab@suse.de>
11096
11097 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11098 (versionclean): Likewise.
11099
111002008-03-04 Juanma Barranquero <lekktu@gmail.com>
11101
11102 * .cvsignore: Add oo.
11103
111042008-03-03 Andreas Schwab <schwab@suse.de>
11105
11106 * coding.c (decode_coding_object): Inhibit gap shrinking while
11107 decoding in place.
11108
111092008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11110
11111 * w32term.c: Remove unused include "gnu.h".
11112 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11113
11114 * gnu.h: Rename to ...
11115 * emacs-icon.h: ... this.
11116 * xterm.c: Use emacs-icon.h instead of gnu.h.
11117 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11118
111192008-03-03 Juanma Barranquero <lekktu@gmail.com>
11120
11121 * w32font.c: Include math.h.
11122
111232008-03-03 Jason Rumney <jasonr@gnu.org>
11124
11125 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11126 Compute options separately.
11127 (w32font_open_internal): Set glyph_idx before caching metrics.
11128
11129 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11130 Define if system headers don't.
11131 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11132 (w32font_encode_char): Don't declare here.
11133
11134 * w32font.c (Quniscribe, QCformat): New symbols.
11135 (syms_of_w32font): Define them.
11136 (w32font_has_char): Indicate uncertainty.
11137 (w32font_encode_char): Encode as glyph point. Make static.
11138 (recompute_cached_metrics): New function.
11139 (w32font_open_internal): Use it. Set font to use glyph points
11140 initially. Set format based on type of font.
11141 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11142 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11143 on it. Set format based on information available here.
11144 (add_font_entity_to_list): Identify backend based on opentype_only.
11145
111462008-03-02 Andreas Schwab <schwab@suse.de>
11147
11148 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11149
11150 * coding.c (decode_coding_big5, produce_chars):
11151 Fix typos in last change.
11152
111532008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11154
11155 * gnu.h: New icon.
11156
111572008-03-02 Kenichi Handa <handa@m17n.org>
11158
11159 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11160 `dos', don't decode '\r' if that is the last in the source.
11161 (decode_coding_utf_16, decode_coding_emacs_mule)
11162 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11163 (decode_coding_raw_text, decode_coding_charset): Likewise.
11164 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11165
111662008-03-01 Jason Rumney <jasonr@gnu.org>
11167
11168 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11169
111702008-03-01 Kim F. Storm <storm@cua.dk>
11171
11172 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11173
111742008-03-01 Jason Rumney <jasonr@gnu.org>
11175
11176 * w32font.c (w32font_full_name): New function.
11177 (w32font_open_internal): Use it.
11178
111792008-03-01 Kim F. Storm <storm@cua.dk>
11180
11181 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11182
111832008-03-01 Jason Rumney <jasonr@gnu.org>
11184
11185 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11186
111872008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11188
11189 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11190 xg_frame_resized when the event is for the edit widget.
11191
11192 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11193
11194 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11195 set_char_size.
11196 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11197 operations on widgets here. Just set frame size if needed.
11198 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11199 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11200 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11201 the whole frame.
11202 (xg_create_tool_bar): Move attachment of the tool bar to
11203 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11204 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11205
112062008-03-01 Jason Rumney <jasonr@gnu.org>
11207
11208 * w32fns.c (w32_msg_pump): Disable debug code.
11209
112102008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11211
11212 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11213
112142008-02-29 Chong Yidong <cyd@stupidchicken.com>
11215
11216 * xdisp.c (next_overlay_string): Don't set
11217 overlay_strings_at_end_processed_p if we're currently reading from
11218 a display string.
11219
112202008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11221
11222 * xdisp.c (get_overlay_strings_1): Fix typo.
11223
112242008-02-29 Chong Yidong <cyd@stupidchicken.com>
11225
11226 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11227
112282008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11229
11230 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11231
11232 * xdisp.c (display_mode_element): Cancel the previous change.
11233 (decode_mode_spec): Likewise.
11234 (handle_auto_composed_prop): Don't make composition if it->string
11235 is a string.
11236
112372008-02-27 Kim F. Storm <storm@cua.dk>
11238
11239 * lisp.h (GLYPH): Change type from int to struct with separate char
11240 and face_id members.
11241 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11242 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11243 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11244 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11245 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11246 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11247 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11248 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11249 handle new Lisp glyph code encoding, either an integer or a cons.
11250
11251 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11252 (GLYPH_ALIAS): Delete.
11253 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11254 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11255 (GLYPH_FROM_CHAR): Replace macro by ...
11256 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11257
11258 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11259 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11260 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11261 (GLYPH_INVALID_P): New macro.
11262 (spec_glyph_lookup_face): Update prototype.
11263
11264 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11265 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11266 new glyph code encoding.
11267 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11268 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11269
11270 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11271 Adapt to new glyph type and new glyph code encoding.
11272
11273 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11274
11275 * indent.c (current_column, current_column_1, Fmove_to_column)
11276 (compute_motion): Adapt to new glyph code encoding.
11277
11278 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11279
112802008-02-27 Chong Yidong <cyd@stupidchicken.com>
11281
11282 * process.c (wait_reading_process_output): Check for window
11283 changes caused by timers.
11284 Suggested by Johan Bockgård.
11285
112862008-02-27 Glenn Morris <rgm@gnu.org>
11287
11288 * emacs.c (USAGE1): Add `--disable-font-backend'.
11289
112902008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11291
11292 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11293 is made to the buffer.
11294
112952008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11296
11297 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11298 (face_at_string_position):
11299 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11300 (face_at_string_position):
11301 * xdisp.c (display_string, next_overlay_change):
11302 * buffer.h (overlays_at):
11303 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11304 Update callers.
11305
113062008-02-26 Chong Yidong <cyd@stupidchicken.com>
11307
11308 * editfns.c (Fformat): Doc fix.
11309
113102008-02-26 Juanma Barranquero <lekktu@gmail.com>
11311
11312 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11313 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11314 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11315
113162008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11317
11318 * buffer.c (Fbuffer_swap_text): New function.
11319 (syms_of_buffer): Defsubr it.
11320
113212008-02-25 Chong Yidong <cyd@stupidchicken.com>
11322
11323 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11324
113252008-02-25 Jason Rumney <jasonr@gnu.org>
11326
11327 * w32font.c (w32font_draw): Draw one character at a time when padding.
11328
113292008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11330
11331 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11332 Handle a nil arg. Use run_window_configuration_change_hook.
11333 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11334 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11335 Use run_window_configuration_change_hook.
11336
113372008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11338
11339 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11340 1-pixel width.
11341
113422008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11343
11344 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11345 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11346 if the glyph in the font is zero pixel with.
11347
11348 * dispextern.h (struct glyph_string): New member padding_p.
11349
11350 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11351
11352 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11353
11354 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11355
11356 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11357
11358 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11359
113602008-02-25 Jason Rumney <jasonr@gnu.org>
11361
11362 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11363
113642008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11365
11366 Allow fine-grained image-cache flushing.
11367 * dispextern.h (struct image): Add `dependencies' field.
11368 (clear_image_caches): Change arg to Lisp_Object.
11369 * image.c (make_image): Initialize `dependencies' field.
11370 (clear_image_cache): Change arg to allow fine-grained flushing.
11371 Perform the flush even if image-cache-eviction-delay is nil.
11372 (clear_image_caches): Change arg to Lisp_Object.
11373 (Fclear_image_cache): Expand meaning of the argument.
11374 (mark_image): Mark `dependencies' field.
11375 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11376 (lface_hash): Use XHASH rather than XFASTINT.
11377 (face_at_buffer_position): Fix int -> EMACS_INT position.
11378 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11379 (select_frame_for_redisplay): Remove code duplication.
11380 (redisplay_internal): Adapt arg to call to clear_image_caches.
11381
113822008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11383
11384 * s/vms4-0.h:
11385 * s/vms4-2.h:
11386 * s/vms4-4.h:
11387 * s/vms5-5.h: Remove, unused.
11388
11389 * s/irix5-2.h:
11390 * s/irix6-0.h:
11391 * s/riscos5.h:
11392 * s/mach-bsd4-3.h:
11393 * m/mips4.h: Remove files for obsolete systems.
11394
11395 * Makefile.in:
11396 * filelock.c:
11397 * unexmips.c:
11398 * m/hp9000s300.h:
11399 * m/iris4d.h:
11400 * s/aix3-1.h:
11401 * s/hpux.h:
11402 * s/msdos.h:
11403 * s/usg5-0.h:
11404 * s/usg5-2-2.h:
11405 * s/usg5-2.h:
11406 * s/usg5-3.h: Remove references to obsolete variables.
11407
11408 * s/irix5-0.h: Remove, move all the contents ...
11409 * s/irix6-5.h: ... here. Simplify.
11410 * config.in: Regenerate.
11411
114122008-02-24 Jason Rumney <jasonr@gnu.org>
11413
11414 * w32term.c (x_draw_glyph_string_background): Clear the background
11415 manually when cleartype is in use.
11416 (x_draw_glyph_string_foreground): Draw text transparently when
11417 cleartype is in use.
11418
11419 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11420 a font into it unless we have to.
11421
114222008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11423
11424 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11425 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11426
aac0c6e3
MR
114272008-02-18 Jason Rumney <jasonr@gnu.org>
11428
11429 * w32fns.c (Fw32_shell_execute): Encode parameters.
11430
114312008-02-09 Eli Zaretskii <eliz@gnu.org>
11432
11433 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11434
114352008-02-05 Juanma Barranquero <lekktu@gmail.com>
11436
11437 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11438
114392008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11440
11441 * xterm.c (x_set_offset): Don't change the gravity if
11442 CHANGE_GRAVITY is -1.
11443
114442008-02-23 Chong Yidong <cyd@stupidchicken.com>
11445
11446 * fileio.c (auto_save_error_occurred): New var.
11447 (auto_save_error): Set it.
11448 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11449 error occurred.
11450
114512008-02-23 Eli Zaretskii <eliz@gnu.org>
11452
11453 * w32.c (globals_of_w32): Add initializations for
11454 g_b_init_get_sid_sub_authority and
11455 g_b_init_get_sid_sub_authority_count.
11456
114572008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11458
11459 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11460 (font_parse_xlfd): Use them for sanity check.
11461 (Finternal_set_font_style_table): Make sure the table is bijective.
11462
11463 Consolidate the image_cache to the terminal struct.
11464 * termhooks.h (P_): Remove redundant def.
11465 (struct terminal): New field `image_cache'.
11466 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11467 of FRAME_X_IMAGE_CACHE.
11468 * xterm.h (struct x_display_info): Remove image_cache field.
11469 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11470 * w32term.h (struct w32_display_info): Remove image_cache field.
11471 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11472 * macterm.h (struct mac_display_info): Remove image_cache field.
11473 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11474 * xterm.c (x_term_init):
11475 * w32term.c (w32_term_init):
11476 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11477 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11478 Remove declarations.
11479 (clear_image_caches, mark_image_cache): New declarations.
11480 * xfaces.c (clear_face_cache):
11481 * xdisp.c (redisplay_internal): Use clear_image_caches.
11482 * image.c (clear_image_cache): Don't check that a frame is on
11483 a window-system before checking if it shares the same cache.
11484 (clear_image_caches): New function.
11485 (Fclear_image_cache): Use it.
11486 (mark_image): Move from allo.c.
11487 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11488 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11489 (mark_object): Don't call mark_image_cache for frames.
11490 (mark_terminals): Call mark_image_cache.
11491
11492 * lisp.h (Fdelete_terminal): Declare.
11493
11494 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11495 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11496 wrong_type_argument.
11497
114982008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11499
11500 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11501 malayalam.el, and tamil.el. Add sinhala.el.
11502
115032008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11504
11505 * xterm.c (x_connection_closed): Consolidate identical tests.
11506 (x_delete_terminal): Don't crash if called via x_connection_closed.
11507
115082008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11509
11510 * xdisp.c (decode_mode_spec): New arg string.
11511 (display_mode_element): Adjust for the above change.
11512
115132008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11514
11515 * callint.c (Fcall_interactively): Use AREF.
11516
115172008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11518
11519 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11520
115212008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11522
11523 * xfns.c (Fx_show_tip): Set string to " " if empty.
11524
115252008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11526
11527 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11528 with Qt.
11529
115302008-02-17 Kenichi Handa <handa@m17n.org>
11531
11532 * ftfont.c (ftfont_shape): Return Lispy number.
11533
11534 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11535 for GCs.
11536 (Finternal_set_font_selection_order): Call font_update_sort_order
11537 only when enable_font_backend is set.
11538 (realize_x_face): Set face->font_info to that of default face only
11539 when enable_font_backend is set.
11540
11541 * xdisp.c (handle_composition_prop): Set it->c to the fist
11542 character of the composed region.
11543 (fill_composite_glyph_string): Set base_face->font_info to
11544 s->font_info. Get a face for ascii from base_face->ascii_face.
11545 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11546 with a face already decided.
11547 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11548 non-negative.
11549 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11550 call font_prepare_composition unconditionally.
11551
11552 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11553
11554 * xterm.h (struct x_display_info): New member font.
11555
11556 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11557 (x_set_mouse_face_gc, x_new_font): Likewise.
11558 (x_term_init): Setup display_info->font.
11559 (x_delete_terminal): Free display_info->font.
11560
11561 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11562
11563 * ftxfont.c (ftxfont_default_fid): Delete it.
11564 (ftxfont_open): Set xfont->fid to 0.
11565 (ftxfont_end_for_frame): Clear data specific to the frame and the
11566 font-driver.
11567
11568 * xftfont.c (xftfont_default_fid): Delete it.
11569 (xftfont_open): Set xfont->fid to 0.
11570
11571 * fontset.c (FONTSET_OBJLIST): New macro.
11572 (fontset_find_font): Update font-object list of the fontset.
11573 (free_realized_fontset): New function.
11574 (free_face_fontset): Call free_realized_fontset.
11575 (Ffont_info): Call font_close_object only when enable_font_backend
11576 is set.
11577
11578 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11579 [HAVE_NTGUI]: Include w32term.h.
11580 [MAC_OS]: Include macterm.ch.
11581 (font_otf_ValueRecord): Use make_number.
11582 (font_finish_cache): Fix handling of reference count.
11583 (font_clear_cache): Update num_fonts.
11584 (font_open_entity): Update smallest_char_width and
11585 smallest_font_height of the frame.
11586 (font_close_object): Update num_fonts.
11587 (Fclear_font_cache): Fix finding the target cache data.
11588
115892008-02-16 Glenn Morris <rgm@gnu.org>
11590
11591 * fontset.c (Finternal_char_font): Fix compilation warning.
11592
115932008-02-16 Eli Zaretskii <eliz@gnu.org>
11594
11595 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11596 instead of char arrays. Enlarge the size of array passed to
11597 get_token_information.
11598
11599 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11600 warnings.
11601
116022008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11603
11604 * .gdbinit: Don't set `args', it breaks gdb --args.
11605
116062008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11609 within a narrowed buffer.
11610
116112008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11612
11613 * coding.c (decode_coding_object, encode_coding_object):
11614 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11615
116162008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11617
11618 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11619 hardcoding 1.
11620 (detect_coding_system):
11621 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11622 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11623 * insdel.c (insert_from_gap):
11624 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11625 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11626 (string_to_multibyte):
11627 * character.c (chars_in_text, multibyte_chars_in_text):
11628 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11629
11630 * character.h (FETCH_STRING_CHAR_ADVANCE)
11631 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11632 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11633 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11634
11635 * casefiddle.c (casify_region): Only call after-change and composition
11636 functions on the part of the region that was changed.
11637
11638 * keyboard.c (read_avail_input):
11639 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11640
116412008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11642
11643 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11644 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11645
116462008-02-11 Juanma Barranquero <lekktu@gmail.com>
11647
11648 * w32menu.c (push_submenu_start, push_submenu_end)
11649 (push_left_right_boundary, push_menu_pane, push_menu_item):
11650 * keyboard.c (read_key_sequence): Don't pass args with side effects
11651 to AREF, it fails when compiling with -DENABLE_CHECKING.
11652
116532008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11654
11655 * Makefile.in (${lispsource}international/charprop.el):
11656 Delete this target.
11657
11658 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11659 emacs-unicode-2.
11660
116612008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11662
11663 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11664
116652008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11666
11667 * frame.c (Qnoelisp): New symbol.
11668 (syms_of_frame): Initialize it.
11669 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11670 harmless Elisp code, from a strong `force' from x_connection_closed.
11671 * frame.h (Qnoelisp): Declare.
11672 * xterm.c (x_connection_closed): Pass `noelisp'.
11673
11674 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11675 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11676 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11677 rather than `int' for the type of `type'.
11678
116792008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11680
11681 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11682
11683 * Makefile.in (GNUC): Remove support for gcc-1.x.
11684
116852008-02-10 Richard Stallman <rms@gnu.org>
11686
11687 * lisp.h (ASET): Use AREF, not ASLOT.
11688
116892008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11690
11691 * lisp.h (ASET): Check bounds.
11692
116932008-02-10 Glenn Morris <rgm@gnu.org>
11694
11695 * buffer.c (mode-name): Doc fix.
11696
116972008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11698
11699 * Makefile.in:
11700 * emacs.c:
11701 * gmalloc.c:
11702 * keyboard.c:
11703 * lisp.h:
11704 * m/ibm370aix.h:
11705 * process.c:
11706 * regex.c:
11707 * s/hpux.h:
11708 * sysdep.c:
11709 * sysselect.h:
11710 * systty.h:
11711 * unexec.c:
11712 * w32term.c:
11713 * xsmfns.c:
11714 * xterm.c: Remove code that deals with obsolete variables.
11715
11716 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11717
11718 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11719 nothing else needs it anymore.
11720
117212008-02-09 Eli Zaretskii <eliz@gnu.org>
11722
11723 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11724 instead of unibyte_char_to_multibyte.
11725
117262008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11727
11728 * s/gnu-linux.h: Remove commented out code.
11729
11730 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11731
11732 * Makefile.in: Update what RMS says about using autoconf.
11733 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11734 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11735 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11736 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11737
117382008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11739
11740 * keymap.c (Fkey_description): Move side effect outside of macro call.
11741
11742 * xfaces.c (Finternal_make_lisp_face):
11743 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11744
11745 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11746 (syms_of_fontset): Use ASET.
11747
11748 * fns.c (concat): Move side effect outside of macro call.
11749 (hash_clear): Use ASET.
11750
117512008-02-08 Richard Stallman <rms@gnu.org>
11752
11753 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11754 If FORCE, and frame has a surrogate minibuffer for another frame,
11755 delete the other frame first.
11756
117572008-02-07 Timo Savola <timo.savola@iki.fi>
11758
11759 * xterm.c (x_detect_focus_change): Handle embed client message.
11760 (handle_one_xevent): Ditto.
11761 (handle_one_xevent): If embedded and we get a button press/release,
11762 request focus.
11763 (xembed_set_info, xembed_send_message): New functions.
11764 (x_make_frame_visible): Call xembed_set_info if embedded.
11765 (x_make_frame_invisible): Call xembed_set_info if embedded.
11766 (x_term_init): Initialize Xatom_XEMBED.
11767 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11768 (x_iconify_frame): Ditto.
11769
11770 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11771 (enum xembed_info, enum xembed_message, enum xembed_focus)
11772 (enum xembed_modifier, enum xembed_accelerator): New.
11773 (xembed_set_info, xembed_send_message): Declare.
11774 (FRAME_X_EMBEDDED_P): New.
11775
11776 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11777 gtk_plug_new.
11778
11779 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11780 window ID of a frame.
11781 (x_window): Reparent frame if embedded.
11782 (Fx_create_frame): Don't set border width if embedded.
11783
11784 * emacs.c (USAGE3): Add --parent-id.
11785 (standard_args): Ditto.
11786
117872008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11788
11789 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11790
117912008-02-07 Jim Meyering <meyering@redhat.com>
11792
11793 Use "do...while (0)", not "if (1)...else" in macro definitions.
11794 The latter provokes a warning from gcc about the empty else, when
11795 followed by ";". Also, without that trailing semicolon, it would
11796 silently swallow up any following statement.
11797 * syntax.h (SETUP_SYNTAX_TABLE)
11798 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11799 * buffer.h (DECODE_POSITION): Likewise.
11800 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11801 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11802 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11803 (FETCH_CHAR_ADVANCE): Likewise.
11804 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11805
118062008-02-07 Jim Meyering <meyering@redhat.com>
11807
11808 * lread.c [lint]: Don't include <sys/inode.h>.
11809
118102008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11811
11812 * xselect.c (x_handle_dnd_message):
11813 * xmenu.c (digest_single_submenu, xmenu_show):
11814 * xdisp.c (with_echo_area_buffer_unwind_data)
11815 (format_mode_line_unwind_data, unwind_format_mode_line)
11816 (display_menu_bar):
11817 * eval.c (Ffetch_bytecode):
11818 * doc.c (store_function_docstring):
11819 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11820 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11821 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11822
118232008-02-07 Kenichi Handa <handa@m17n.org>
11824
11825 * ftxfont.c (ftxfont_open): Don't set
11826 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11827
11828 * ftfont.c (ftfont_open): Fix previous change.
11829
118302008-02-06 Jason Rumney <jasonr@gnu.org>
11831
11832 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11833 Use cached metrics for ASCII characters.
11834 (w32font_open_internal): Don't set font's owning_frame.
11835 Cache metrics for ASCII characters.
11836
11837 * w32font.h (struct w32font_info): Add ascii_metrics.
11838 Remove owning_frame.
11839
118402008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11841
11842 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11843 to negative value.
11844
11845 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11846
11847 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11848
11849 * charset.c (syms_of_charset): Set QCtest and Qeq.
11850
118512008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11852
11853 * process.c (Fstart_process):
11854 * callproc.c (Fcall_process): Handle the case where
11855 Funhandled_file_name_directory returns nil.
11856
11857 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11858 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11859 * font.c (check_gstring): Use them and AREF to access the vector before
11860 we know it's really a gstring.
11861 (Ffont_shape_text): Fix typo.
46e722a9 11862 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
11863
11864 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11865 Declare.
11866
11867 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11868
118692008-02-05 Jason Rumney <jasonr@gnu.org>
11870
11871 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11872 Set smallest_font_height and smallest_char_width in display info.
11873
118742008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11875
11876 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11877
118782008-02-05 Miles Bader <miles@gnu.org>
11879
11880 * xfaces.c (get_lface_attributes, merge_named_face)
11881 (lookup_named_face, lookup_derived_face, realize_named_face):
11882 Revert 2008-02-01 change by cyd@stupidchicken.com.
11883
118842008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11885
11886 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11887 fallback fonts.
11888 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11889
118902008-02-04 Jason Rumney <jasonr@gnu.org>
11891
11892 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11893 set full_name.
11894 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11895
118962008-02-03 Jason Rumney <jasonr@gnu.org>
11897
11898 * makefile.w32-in (OBJ1): Include font.o here.
11899 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11900
119012008-02-02 Jason Rumney <jasonr@gnu.org>
11902
11903 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11904
119052008-02-01 Jason Rumney <jasonr@gnu.org>
11906
11907 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11908
11909 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11910
119112008-02-01 Andreas Schwab <schwab@suse.de>
11912
11913 * Makefile.in (shortlisp, lisp): Update for rename of
11914 ../lisp/language/myanmar.el.
11915
119162008-02-01 Chong Yidong <cyd@stupidchicken.com>
11917
11918 * xfaces.c (get_lface_attributes): Delete function.
11919 (merge_named_face, lookup_named_face, lookup_derived_face)
11920 (realize_named_face): Call lface_from_face_name directly, and use
11921 the fact that merge_face_vectors does not alter its FROM argument.
11922
119232008-02-01 Jason Rumney <jasonr@gnu.org>
11924
11925 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11926 input in the default locale. Handle non-Unicode multibyte input.
11927
119282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11929
11930 * fontset.c (reorder_font_vector): Exclude nil elements from the
11931 font group. Don't try multiple fonts.
11932 (fontset_font): Adjust for the above change.
11933 (Finternal_char_font): Return nil if the found font doesn't
11934 contain the character ch.
11935
11936 * Makefile.in (lisp, shortlisp): Add cham.el.
11937
119382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11939
11940 * font.h (FONTP): Make it return 1 also for a font-object.
11941
11942 * .gdbinit (xfontset): New function.
11943
11944 * font.c (font_find_for_lface): Check if the character C is
11945 supported or not only for the first font.
11946
11947 * fontset.c (reorder_font_vector): Fix typo.
11948 (fontset_find_font): Don't add a font-spec specifying a script.
11949 Use 0 (not Qt) for the indication of empty font-group. Change the
11950 format of RFONT-DEF. Return Qt if no font in the font-group
11951 support the character.
11952 (fontset_font): Adjust for the above change. If no font was
11953 found the character, remember that.
11954 (face_for_char): Adjust for the change of RFONT-DEF.
11955 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11956 no font for the target.
11957 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11958
119592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11960
11961 * font.c (font_load_for_face): Handle the case that the font in
11962 face->lface is a string.
11963
119642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11965
11966 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11967
119682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11969
11970 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11971 Fix previous change. If the frame is not on a window system,
11972 signal an error.
11973
119742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11975
11976 * coding.c (decode_coding_object, encode_coding_object): Adjust
11977 marker positions after conversion.
11978
11979 * lisp.h (struct Lisp_Marker): New member need_adjustment.
11980
119812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11982
11983 * font.c (font_find_for_lface): Fix the handling of the return
11984 value of font_has_char.
11985 (Ffont_shape_text): Fix previous change.
11986
11987 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11988 (fontset_ref_and_range): Delete it.
11989 (fontset_find_font): Call char_table_ref_and_range instead of
11990 FONTSET_REF_AND_RANGE.
11991 (make_fontset): Don't setup font groups of Latin here.
11992 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11993 (new_fontset_from_font): Make the specified font the default for
11994 all Latin characters.
11995
119962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11997
11998 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
11999 is on a window system before accessing the fontset of the frame.
12000
120012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12002
12003 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12004
12005 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12006 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12007
12008 * font.c (Ffont_shape_text): If the font driver doesn't have a
12009 shaper function, make zero-width glyphs to have at least one-pixel
12010 width. Fix setting of `to' field of glyphs.
12011
120122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12013
12014 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12015 glyphs.
12016
12017 * font.h (struct font_driver): Improve docstring of member `shape'.
12018
120192008-02-01 Kenichi Handa <handa@m17n.org>
12020
12021 * composite.c (syms_of_composite): Fix docstring of
12022 auto-composition-function.
12023
12024 * font.h (LGLYPH_SIZE): New macro.
12025
12026 * font.c (Ffont_fill_gstring): Stop filling when a character not
12027 supported by the font is found.
12028 (Ffont_shape_text): When a shape callback function returns nil,
12029 try at most two more times with larger gstring.
12030 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12031
12032 * xdisp.c (handle_auto_composed_prop): Change the argument to
12033 auto-composition-function.
12034
12035 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12036 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12037 Lispy glyph and store it in the lgstring.
12038
12039 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12040
12041 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12042
120432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12044
12045 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12046
12047 * fontset.c (Vfont_encoding_charset_alist): New variable.
12048 (syms_of_fontset): DEFVAR it.
12049 (reorder_font_vector, fontset_find_font): Optimize for the case of
12050 no need of reordering.
12051 (face_for_char): Map the charset property by
12052 Vfont_encoding_charset_alist.
12053
120542008-02-01 Jason Rumney <jasonr@gnu.org>
12055
12056 * w32font.c (logfonts_match): Don't check adstyle here.
12057 (font_matches_spec): Check here against physical font instead.
12058 (add_font_entity_to_list): Avoid some substitutions.
12059
12060 * font.c (font_parse_fcname): Default weight and slant to normal.
12061 (font_score): Prefer normal fonts if weight or slant unspecified.
12062 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12063 match freetype scores.
12064
120652008-02-01 Jason Rumney <jasonr@gnu.org>
12066
12067 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12068 font, as it may have been deleted.
12069 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12070 most common hyphenless variation.
12071 (logfonts_match): Check generic family.
12072 (font_matches_spec): Don't check generic family here.
12073 (fill_in_logfont): Set generic family based on adstyle.
12074
12075 * w32font.h (w32font_get_cache): Update declaration.
12076
120772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12078
12079 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12080
12081 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12082 If none of the new drivers are available, call font_update_drivers
12083 with the old drivers.
12084
12085 * w32font.c (w32font_get_cache): Adjust the argument type.
12086
12087 * xfont.c (xfont_get_cache): Adjust the argument type.
12088
12089 * font.h (struct font_driver): Change argument type of get_cache.
12090
12091 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12092
12093 * font.c (Ffont_get): Fix arguments to Fassoc.
12094 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12095 (font_clear_cache): New function.
12096 (font_list_entities, font_matching_entity): Use font_get_cache.
12097 (font_update_drivers): Call font_clear_cache when finishing a driver.
12098
12099 * fontset.c (fontset_find_font): Fix previous change.
12100
121012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12102
12103 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12104 dpyinfo->font_table.
12105 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12106 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12107
12108 * font.c (font_at): Handle the case that the arg C is negative.
12109 Handle the unibyte case.
12110 (Ffont_at): Call font_at with the arg C -1.
12111
12112 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12113 the position here, and call font_at with the arg C -1.
12114 Don't check the range of the existing composition at the point.
12115
121162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12117
12118 * fontset.c (fontset_add): New args charset_id and family.
12119 Change caller.
12120 (load_font_get_repertory, fontset_find_font): Assume that
12121 font_spec is always a font-spec object.
12122 (Fset_fontset_font): Always store a font-spec object in a fontset.
12123
12124 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12125 instead of get_property_and_range.
12126
121272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12128
12129 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12130 (xftfont_open): Don't keep locking face.
12131 (xftfont_close): Don't unlock face.
12132 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12133
12134 * fontset.c (fontset_find_font): Don't prefer a font of
12135 supplementary charset.
12136
121372008-02-01 Kenichi Handa <handa@m17n.org>
12138
12139 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12140 script, langsys_tag to langsys, new member script.
12141 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12142 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12143 listing to the script specified in that property. Fix arg to
12144 OTF_check_features.
12145
121462008-02-01 Jason Rumney <jasonr@gnu.org>
12147
12148 * w32font.h: New file.
12149
12150 * w32font.c: Include it.
12151 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12152 (w32font_open): Set owning_frame.
12153 (w32font_text_extents): Use owning_frame.
12154 (struct font_callback_data): Add opentype_only field.
12155 (add_font_entity_to_list): Use it to filter fonts.
12156 Don't check against full name.
12157 (w32font_list_internal): New function.
12158 (w32font_list): Use it.
12159 (w32font_match_internal): New function.
12160 (w32font_match): Use it.
12161 (w32font_open_internal): New function.
12162 (w32font_open): Use it.
12163 (w32font_get_cache, w32font_close, w32font_has_char)
12164 (w32font_encode_char, w32font_text_extents, w32font_draw):
12165 Make non-static.
12166
12167 * makefile.w32-in (w32font.o): Depend on w32font.h.
12168
121692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12170
12171 * charset.c (Fdefine_charset_internal): Record a supplementary
12172 charset at the tail of Vcharset_order_list.
12173
12174 * font.c (Ffont_shape_text): Fix the return value.
12175
12176 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12177
12178 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12179
121802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12181
12182 * ftfont.c (struct OpenTypeSpec): New struct.
12183 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12184 (ftfont_get_open_type_spec): New function.
12185 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12186
12187 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12188
121892008-02-01 Jason Rumney <jasonr@gnu.org>
12190
12191 * w32font.c (add_font_entity_to_list): Compare only the beginning
12192 of full name.
12193
121942008-02-01 Kenichi Handa <handa@m17n.org>
12195
12196 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12197 Never return HANDLED_RECOMPUTE_PROPS.
12198
121992008-02-01 Kenichi Handa <handa@m17n.org>
12200
12201 * font.c (font_gstring_produce): Delete it.
12202
12203 * composite.h (COMPOSITION_METHOD):
12204 Handle COMPOSITION_WITH_GLYPH_STRING.
12205
122062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12207
12208 * xfont.c (Qx): Delete.
12209 (syms_of_xfont): Don't initialize Qx.
12210
12211 * composite.h (enum composition_method):
12212 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12213
122142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12215
12216 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12217 (choose_face_font): Accept new form of font-spec.
12218
12219 * frame.h (font_driver_list): Declare it unconditionally.
12220 (struct frame): Define members font_driver_list and font_data_list
12221 unconditionally.
12222
12223 * fontset.c: Include "font.h" unconditionally.
12224 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12225 (Fset_fontset_font): Accept a font-spec object.
12226
12227 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12228 PIXEL_SIZE part a wild card.
12229
12230 * dispextern.h (struct glyph_string): Define members clip and
12231 num_clips unconditionally.
12232 (struct face): Define members font_info and extra unconditionally.
12233
12234 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12235 ftfont_info only when HAVE_LIBOTF is defined.
12236
122372008-02-01 Andreas Schwab <schwab@suse.de>
12238
12239 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12240 and end.
12241
122422008-02-01 Jason Rumney <jasonr@gnu.org>
12243
12244 * w32font.c (w32font_driver): Add new fields.
12245
122462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12247
12248 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12249 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12250 (LIBES): Add @M17N_FLT_CFLAGS@.
12251
12252 * composite.c (compose_text): Don't treat the new style
12253 composition specially.
12254
12255 * emacs.c (main): Call syms_of_font unconditionally.
12256
12257 * font.h (FONT_ENTITY_NOT_LOADABLE)
12258 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12259 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12260 (struct font_driver): New member shape.
12261 (font_registry_charsets): Extern it.
12262 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12263 (font_otf_capability, font_drive_otf): Delete their externs.
12264
12265 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12266 (font_charset_alist, font_registry_charsets): Move from xfont.c
12267 and rename.
12268 (font_prop_validate_otf): New function.
12269 (font_property_table): Register it for QCotf.
12270 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12271 (font_drive_otf): Delete.
12272 (font_prepare_composition): New arg F. Adjust for the change of
12273 lispy gstring.
12274 (font_find_for_lface): New arg C.
12275 (font_load_for_face): Adjust for the change of font_find_for_lface.
12276 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12277 lispy gstring.
12278 (Ffont_shape_text): New function.
12279 (Fopen_font): If the font size is not given, use 12-pixel.
12280 (Ffont_at): New arg STRING.
12281 (syms_of_font): Initalize font_charset_alist.
12282 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12283 conditionally.
12284
12285 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12286 fonts of the same font-spec. Change the format of RFONT-DEF.
12287 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12288 Adjust for the change of RFONT-DEF.
12289 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12290
12291 * ftfont.h: New file.
12292
12293 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12294 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12295 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12296 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12297 font_otf_capability and font_drive_otf, set ftfont_shape.
12298 (ftfont_list): Adjust for the change of :otf property value.
12299 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12300 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12301 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12302 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12303 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12304 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12305
12306 * w32term.c (x_draw_composite_glyph_string_foreground):
12307 Adjust for the change of lispy gstring.
12308
12309 * xdisp.c (handle_composition_prop): Adjust for the change of
12310 lispy gstring. Call a function for auto-composition with the
12311 third arg it->window.
12312 (fill_composite_glyph_string): Adjust for the change of lispy string.
12313 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12314
12315 * xfaces.c (set_font_frame_param): Adjust for the change of
12316 font_find_for_lface.
12317
12318 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12319 (xfont_registry_charsets): Likewise. Change caller.
12320 (syms_of_xfont): Don't handle x_font_charset_alist.
12321
12322 * xftfont.c: Include "ftfont.h".
12323 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12324 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12325 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12326 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12327 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12328 Set xftfont_driver.shape to xftfont_shape.
12329
12330 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12331 the change of lispy gstring.
12332
123332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12334
12335 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12336
123372008-02-01 Jason Rumney <jasonr@gnu.org>
12338
12339 * w32font.c (w32font_draw): Fill background manually.
12340
123412008-02-01 Jason Rumney <jasonr@gnu.org>
12342
12343 * font.c (Qfontp): Remove unused symbol.
12344 (QCantialias): New symbol.
12345 (syms_of_font): Define it.
12346 (font_property_table): Set a validator for QCantialias.
12347
12348 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12349 Define if not already.
12350 (QCfamily): Share with xfaces.c.
12351 (Qstandard, Qsubpixel, Qnatural): New symbols.
12352 (syms_of_w32font): Define them. Don't define QCfamily here.
12353 (w32_antialias_type, lispy_antialias_type): New functions.
12354 (w32_enumfont_pattern_entity): New arg requested_font.
12355 Set antialias parameter if non-default was requested.
12356 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12357
123582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12359
12360 * lread.c (read1): Undo the previous change.
12361
123622008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12363
12364 * frame.c (Fdelete_frame): Call font_update_drivers only when
12365 USE_FONT_BACKEND is defined.
12366
123672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12368
12369 * font.h (struct font_bitmap): New member bits_per_pixel.
12370 (struct font_driver): New members start_for_frame and end_for_frame.
12371 (struct font_data_list): New struct.
12372 (font_put_frame_data, font_get_frame_data): Extern them.
12373
12374 * frame.h (struct frame): New member font_data_list.
12375
12376 * font.c (font_update_drivers): Call driver->start_for_frame and
12377 driver->end_for_frame at proper timings.
12378 (font_put_frame_data, font_get_frame_data): New functions.
12379 (Ffont_spec): Add usage in the docstring.
12380
12381 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12382 (Fdelete_frame): Call font_update_drivers.
12383
12384 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12385 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12386 (xftfont_get_xft_draw): New function.
12387 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12388 (xftfont_end_for_frame): New function.
12389 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12390
12391 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12392 Change argument. Cache GCs in the per-frame data.
12393 (struct ftxfont_frame_data): New struct.
12394 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12395 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12396 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12397 (ftxfont_end_for_frame): New function.
12398 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12399
12400 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12401
124022008-02-01 Kenichi Handa <handa@m17n.org>
12403
12404 * xselect.c (Vselection_coding_system)
12405 (Vnext_selection_coding_system): Delete them.
12406 (syms_of_xselect): Don't declare selection-coding-system and
12407 next-selection-coding-system. They are declared in select.el.
12408
124092008-02-01 Jason Rumney <jasonr@gnu.org>
12410
12411 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12412
12413 * w32fns.c: Include imm.h.
12414 (get_composition_string_fn, get_ime_context_fn): New optional
12415 system functions.
12416 (globals_of_w32fns): Load them from imm32.dll.
12417 (ignore_ime_char): New flag.
12418 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12419 WM_IME_ENDCOMPOSITION messages.
12420
12421 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12422 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12423
124242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12425
12426 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12427 (READCHAR_REPORT_MULTIBYTE): New macro.
12428 (readchar): New 2nd arg MULTIBYTE.
12429 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12430 Make symbol's name multibyte according to the multibyteness of the
12431 source.
12432
124332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12434
12435 * xfaces.c (face_for_overlay_string): Call lookup_face with
12436 correct arguments (fix of synching with the trunk).
12437
124382008-02-01 Kenichi Handa <handa@m17n.org>
12439
12440 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12441 (font_prop_validate_non_neg, font_prop_validate_spacing):
12442 Delete argument prop_index.
12443 (font_property_table): Change arguments to validater. Change Callers.
12444 (font_lispy_object): Delete.
12445 (font_at): Use font_find_object instead fo font_lispy_object.
12446
124472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12448
12449 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12450 and file names.
12451
124522008-02-01 Jason Rumney <jasonr@gnu.org>
12453
12454 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12455 (font_matches_spec): Remove debug output.
12456 (add_font_entity_to_list): Avoid using substituted fonts.
12457
124582008-02-01 Jason Rumney <jasonr@gnu.org>
12459
12460 * doc.c (Fsnarf_documentation):
12461 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12462
124632008-02-01 Miles Bader <miles@gnu.org>
12464
12465 * dispextern.h (struct glyph_row): Only define "clip" field if
12466 HAVE_WINDOW_SYSTEM is defined.
12467
124682008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12469
12470 Fix up multi-tty merge.
12471
12472 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12473 and indentation.
12474
12475 * xfaces.c (free_realized_face, clear_face_gcs):
12476 Include font_done_for_face in the input_blocked section, just in case.
12477
12478 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12479 (get_char_face_and_encoding): Undo last change and remove the *other*
12480 duplicate definition (i.e. keep the one that's better scoped and that
12481 includes code for the font-backend).
12482
12483 * terminal.c (create_terminal): Default keyboard_coding to
12484 `no-conversion' and terminal_coding to `undecided'.
12485
12486 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12487
12488 * fontset.c (free_realized_fontsets): Check that the table entry does
12489 contain a fontset before trying to compare it to `base'.
12490
12491 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12492 syms_of_charset, and syms_of_coding earlier because init_window_once
12493 now needs Vcoding_system_hash_table to be setup.
12494
12495 * coding.h (default_buffer_file_coding): Remove.
12496
12497 * coding.c (default_buffer_file_coding): Remove.
12498 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12499 than ->symbol, and use the terminal-local coding system.
12500 (syms_of_coding): Don't setup the coding-systems that are not
12501 terminal-local.
12502 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12503
12504 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12505 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12506
12507 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12508 in chartab.c and were re-added here by mistake.
12509 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12510
12511 * doc.c (Fsnarf_documentation):
12512 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12513 src to etc.
12514
12515 * ChangeLog.10: Add mistakenly removed entry.
12516
125172008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12518
12519 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12520
125212008-02-01 Miles Bader <miles@gnu.org>
12522
12523 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12524 Add extra args to FACE_FOR_CHAR.
12525
125262008-02-01 Kenichi Handa <handa@m17n.org>
12527
12528 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12529 in sequence.
12530
12531 * chartab.c (map_sub_char_table, map_char_table): If the range
12532 contains just one character, call the function with that character
12533 even if the depth is not 3.
12534
125352008-02-01 Jason Rumney <jasonr@gnu.org>
12536
12537 * w32font.c (w32font_text_extents): Calculate metrics for the
12538 whole string.
12539
125402008-02-01 Jason Rumney <jasonr@gnu.org>
12541
12542 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12543
125442008-02-01 Jason Rumney <jasonr@gnu.org>
12545
12546 * w32term.c (x_set_glyph_string_clipping): Use
12547 get_glyph_string_clip_rects.
12548 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12549 Adjust for the change of struct glyph_string.
12550
12551 * w32font.c (w32font_draw): Do clipping here.
12552
125532008-02-01 Kenichi Handa <handa@m17n.org>
12554
12555 * xftfont.c (xftfont_draw): Adjust for the change of struct
12556 glyph_string.
12557
12558 * xterm.c (x_set_glyph_string_clipping): Use
12559 get_glyph_string_clip_rects.
12560 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12561 Adjust for the change of struct glyph_string.
12562
12563 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12564 the resulting clip(s}.
12565 (expose_overlaps): Add arg r. Change callers. Set it to
12566 row->clip temporarily.
12567 (expose_window): Redraw rows overlapping the exposed area.
12568
12569 * dispextern.h (struct glyph_row): New member clip.
12570 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12571 clip_height, new member clip, and num_clips.
12572
125732008-02-01 Kenichi Handa <handa@m17n.org>
12574
12575 * data.c (Fchar_or_string_p): Fix docstring.
12576
125772008-02-01 Kenichi Handa <handa@m17n.org>
12578
12579 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12580 create a temporary XftDraw object.
12581
125822008-02-01 Kenichi Handa <handa@m17n.org>
12583
12584 * font.c (Ffontp): Fix docstring.
12585
12586 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12587 strong evidence of ISO-2022.
12588
125892008-02-01 Kenichi Handa <handa@m17n.org>
12590
12591 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12592 SYNTAX_ENTRY_FOLLOW_PARENT.
12593
125942008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12595
12596 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12597 its type.
12598 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12599 Update to the new type of weak_hash_tables and next_weak.
12600
12601 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12602 a plain C pointer to Lisp_Hash_Table.
12603
12604 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12605 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12606 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12607 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12608 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12609 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12610 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12611 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12612 (GC_EQ): Remove since they've been identical to their non-GC_
12613 alter-egos ever since the markbit was eradicated.
12614
12615 * alloc.c:
12616 * buffer.c:
12617 * buffer.h:
12618 * data.c:
12619 * fileio.c:
12620 * filelock.c:
12621 * fns.c:
12622 * frame.h:
12623 * lisp.h:
12624 * macterm.c:
12625 * print.c:
12626 * process.c:
12627 * w32fns.c:
12628 * w32menu.c:
12629 * w32term.c:
12630 * xfns.c:
12631 * xmenu.c:
12632 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12633
126342008-02-01 Kenichi Handa <handa@m17n.org>
12635
12636 * chartab.c (map_sub_char_table): Make it work for the top-level
12637 char-table. Fix handling of parent char-table.
12638 (map_char_table): Adjust for the above change.
12639
126402008-02-01 Jason Rumney <jasonr@gnu.org>
12641
12642 * w32font.c (Qgdi): Rename from Qw32.
12643
126442008-02-01 Jason Rumney <jasonr@gnu.org>
12645
12646 * w32bdf.c (get_quoted_string): Make function static.
12647
126482008-02-01 Kenichi Handa <handa@m17n.org>
12649
12650 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12651 bigger ascent and descent than those of the font, use them as
12652 font's ascent and descent.
12653
126542008-02-01 Kenichi Handa <handa@m17n.org>
12655
12656 * Makefile.in (${lispsource}international/charprop.el): Move this
12657 target within "#ifdef HAVE_UNIDATA" and "#endif".
12658
126592008-02-01 Kenichi Handa <handa@m17n.org>
12660
12661 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12662 (shortlisp): Add ../lisp/language/tai-viet.el.
12663
126642008-02-01 Ulrich Mueller <ulm@gentoo.org>
12665
12666 * Makefile.in (${lispsource}international/charprop.el): Depend on
12667 temacs${EXEEXT}.
12668
126692008-02-01 Jason Rumney <jasonr@gnu.org>
12670
12671 * w32font.c (w32font_close): Delete the GDI font object.
12672
12673 * w32menu.c: Include character.h.
12674
12675 * w32proc.c: Likewise.
12676
12677 * w32select.c: Likewise.
12678
12679 * makefile.w32-in (w32proc.o): Depend on character.h.
12680
126812008-02-01 Jason Rumney <jasonr@gnu.org>
12682
12683 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12684
12685 * w32menu.c (syms_of_w32menu): Likewise.
12686
12687 * w32proc.c (syms_of_ntproc): Likewise.
12688
12689 * w32select.c (syms_of_w32select): Likewise.
12690
12691 * w32term.c (syms_of_w32term): Likewise.
12692
126932008-02-01 Jason Rumney <jasonr@gnu.org>
12694
12695 * w32font.c (w32font_draw): Delete brush after using it.
12696
126972008-02-01 Jason Rumney <jasonr@gnu.org>
12698
12699 * w32font.c (w32font_open): Don't set font_idx.
12700 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12701 to font settings.
12702 (w32font_draw): Fill background explicitly.
12703
127042008-02-01 Jason Rumney <jasonr@gnu.org>
12705
12706 * w32term.c (w32_initialize): Don't call w32font_initialize.
12707
12708 * w32font.c (w32font_info): Remove subranges.
12709 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12710 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12711 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12712 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12713 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12714 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12715 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12716 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12717 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12718 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12719 New symbols.
12720 (font_callback_data): New struct.
12721 (w32font_list, w32font_match): Use it.
12722 (w32font_open): Don't populate subranges.
12723 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12724 (w32font_encode_char): Always return unicode code-point as-is.
12725 (w32font_text_extents): Supply a transformation matrix to
12726 GetGlyphOutline. Never look up by glyph index. Avoid looping
12727 twice. Use unicode version of GetTexExtentPoint32 instead of
12728 glyph index version.
12729 (set_fonts_frame): Remove.
12730 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12731 set frame parameter. Use backward compatible fake foundries.
12732 Save generic family in extra slot under QCfamily. Make width slot
12733 constant. Save QCspacing value. Save list of scripts instead of
12734 binary subranges.
12735 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12736 (add_font_entity_to_list): Use font_callback_data struct. Filter
12737 unwanted fonts.
12738 (add_one_font_entity_to_list): Use font_callback_data struct.
12739 (w32_registry): Default to iso10646_1.
12740 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12741 string font registries. Don't fill in font name if it is a generic
12742 family name, fill family instead. Use spacing, family and script
12743 extra info to fill pitch, family and charset fields.
12744 (list_all_matching_fonts): Use font_callback_data struct.
12745 (unicode_range_for_char): Remove.
12746 (font_supported_scripts): New function.
12747 (w32font_initialize): Remove.
12748 (syms_of_w32font): Update which symbols are defined.
12749
127502008-02-01 Jason Rumney <jasonr@gnu.org>
12751
12752 * font.c (font_pixel_size): Reverse assq_no_quit args.
12753
12754 * w32term.h (FONT_WIDTH): Report max width, not average.
12755 (FONT_MAX_WIDTH): Remove.
12756 (FONT_AVG_WIDTH): New macro.
12757
12758 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12759 redefinition of FONT_WIDTH.
12760
12761 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12762 (w32_cache_char_metrics): Use FONT_WIDTH.
12763
12764 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12765
127662008-02-01 Jason Rumney <jasonr@gnu.org>
12767
12768 * w32font.c (w32font_open): Make lfHeight negative.
12769
12770 * w32fns.c (x_default_font_parameter): Use new style font name.
12771 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12772
127732008-02-01 Jason Rumney <jasonr@gnu.org>
12774
12775 * w32font.c (QCsubranges): New symbol.
12776 (w32font_open, w32font_has_char): Get subranges from subproperty
12777 of extra.
12778 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12779 (syms_of_w32font): Define :subranges symbol.
12780
12781 * font.c (font_put_extra): Expose externally.
12782
12783 * font.h (font_put_extra): Move declaration from font.c.
12784
12785 * font.c (Ffont_get): Use font driver to determine otf capability.
12786 (adjust_anchor): Check if driver defines anchor_point before using.
12787
12788 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12789 (w32font_draw): Use options.
12790 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12791 Fix detection of truetype fonts.
12792 (registry_to_w32_charset): Handle charsets other than iso8859-1
12793 expressed as lisp symbols.
12794 (w32_registry): Express charset as lisp symbol.
12795 (fill_in_logfont): Reverse pixel and point height logic.
12796 Don't set width here. Set quality to default.
12797
12798 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12799 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12800
12801 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12802 Remove redundant loop and allocation.
12803
12804 * makefile.w32-in (font.o, w32font.o): New objects.
12805 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12806 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12807
12808 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12809 STORE_XCHARB a valid l-value.
12810
12811 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12812 calculations for non-Truetype fonts.
12813 (x_draw_glyph_string): Sync with xterm.c.
12814 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12815 Remove redundant code.
12816 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12817
12818 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12819 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12820
12821 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12822 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12823
12824 * w32font.c: New file for w32 font backend.
12825
128262008-02-01 Kenichi Handa <handa@m17n.org>
12827
12828 * term.c: Don't include "buffer.h" twice.
12829
128302008-02-01 Kenichi Handa <handa@m17n.org>
12831
12832 * character.c (Funibyte_string): New function.
12833 (syms_of_character): Defsubr it.
12834
128352008-02-01 Jason Rumney <jasonr@gnu.org>
12836
12837 * w32term.c [USE_FONT_BACKEND]:
12838 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12839 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12840 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12841 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12842 (x_free_frame_resources): Sync with xterm.c.
12843
128442008-02-01 Andreas Schwab <schwab@suse.de>
12845
12846 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12847 char-table size.
12848
128492008-02-01 Kenichi Handa <handa@m17n.org>
12850
12851 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12852
128532008-02-01 Kenichi Handa <handa@m17n.org>
12854
12855 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12856 font_otf_gpos, add font_drive_otf.
12857
12858 * fontset.c (fontset_find_font): Pay attention to font size
12859 specified for a font.
12860 (reorder_font_vector): Check contents of font_def.
12861
12862 * font.c (struct otf_list): Delete it.
12863 (otf_list): Make it a lisp variable.
12864 (otf_open): Use lispy otf_list.
12865 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12866 (check_otf_features): New function.
12867 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12868 New functions.
12869 (font_drive_otf): New function merging font_otf_gsub and
12870 font_otf_gpos.
12871 (font_open_for_lface): New arg spec. Change argument order.
12872 (font_load_for_face): Adjust for the change of font_open_for_lface.
12873 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12874 Ffont_otf_gpos.
12875 (syms_of_font): Staticpro otf_list. Delete defsubr of
12876 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12877
12878 * xfaces.c (set_font_frame_param): Adjust for the change of
12879 font_open_for_lface.
12880
12881 * font.h (font_open_for_lface): Adjust prototype.
12882 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12883 member otf_drive.
12884 (font_otf_gsub, font_otf_gpos): Delete externs.
12885 (font_drive_otf): Extern it.
12886
128872008-02-01 Kenichi Handa <handa@m17n.org>
12888
12889 * font.c (font_at): If the window W is not on a window system,
12890 return Qnil.
12891
12892 * coding.c (produce_chars, encode_coding): Don't call
12893 insert_from_gap if no characters to produce.
12894
128952008-02-01 Kenichi Handa <handa@m17n.org>
12896
12897 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12898 Fclear_face_cache.
12899
12900 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12901
129022008-02-01 Miles Bader <miles@gnu.org>
12903
12904 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12905 Parse "--disable-font-backend" option.
12906 (standard_args): Add "--disable-font-backend" option.
12907
129082008-02-01 Kenichi Handa <handa@m17n.org>
12909
12910 * fontset.c (fontset_find_font): New function.
12911 (fontset_font): Use fontset_find_font.
12912 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12913 Register the specified font for all Latin characters.
12914 (new_fontset_from_font): Register the specified font for all Latin
12915 characters.
12916 (dump_fontset): For a realized fontset, include the base fontset
12917 name in the returned vector.
12918
129192008-02-01 Kenichi Handa <handa@m17n.org>
12920
12921 * character.h (CHAR_STRING): Cast C to unsigned on calling
12922 char_string.
12923
12924 * character.c (char_string): Type of arg C changed to unsigned.
12925 Signal an error if C is an invalid character code.
12926
12927 * editfns.c (general_insert_function, Fchar_to_string):
12928 Use CHARACTERP, not INTEGERP.
12929
129302008-02-01 Kenichi Handa <handa@m17n.org>
12931
12932 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12933 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12934
12935 * regex.c (analyse_first): Fix for multibyte characters in "case
12936 charset:" and "case categoryspec:".
12937
129382008-02-01 Andreas Schwab <schwab@suse.de>
12939
12940 * Makefile.in (LIBES): Move standard libraries to the end.
12941
129422008-02-01 Kenichi Handa <handa@m17n.org>
12943
12944 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12945 nonzero, don't shrink the buffer nextb.
12946
12947 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12948
12949 * coding.c (coding_alloc_by_making_gap): New arg offset.
12950 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12951 offset.
12952 (decode_coding_iso_2022): Update coding->safe_charsets.
12953 (decode_coding_gap): Temporarily set
12954 current_buffer->text->inhibit_shrinking to 1.
12955
129562008-02-01 Kenichi Handa <handa@m17n.org>
12957
12958 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12959 indexing into elements of s->cmp and s->char2b.
12960
129612008-02-01 Juanma Barranquero <lekktu@gmail.com>
12962
12963 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12964
129652008-02-01 Kenichi Handa <handa@m17n.org>
12966
12967 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12968 target_multibyte instead of multibyte.
12969 (re_match_2_internal): Call bcmp_translate with target_multibyte.
12970 (bcmp_translate): Change the argument name from multibyte to
12971 target_multibyte.
12972
129732008-02-01 Kenichi Handa <handa@m17n.org>
12974
12975 These changes are to compile a regexp into a pattern that can be
12976 used both for multibyte and unibyte targets.
12977
12978 * Makefile.in (search.o): Depend on charset.h.
12979
12980 * character.c (multibyte_char_to_unibyte_safe): New function.
12981
12982 * search.c: Include "charset.h".
12983 (compile_pattern_1): Delete argument multibyte. Don't set
12984 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
12985 (compile_pattern): Don't compare cp->buf.target_multibyte.
12986 Compare cp->buf.charset_unibyte.
12987 (compile_pattern): Set cp->buf.target_multibyte.
12988
12989 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12990
12991 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12992
12993 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
12994 multibyte. Change callers.
12995 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
12996 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
12997 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
12998 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
12999 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13000 (regex_compile): Make the compiled pattern usable both for
13001 multibyte and unibyte targets.
13002 (analyse_first): Make the fastmap usable both for multibyte and
13003 unibyte targets.
13004 (TRANSLATE_VIA_MULTIBYTE): Delete.
13005 (re_match_2_internal): Pay attention to the case that the
13006 multibyteness of bufp and target may be different.
13007
130082008-02-01 Kenichi Handa <handa@m17n.org>
13009
13010 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13011 empty box occupy at least one column width.
13012
130132008-02-01 Miles Bader <miles@gnu.org>
13014
13015 * Makefile.in: Remove redundant HAVE_XFT clause.
13016
130172008-02-01 Kenichi Handa <handa@m17n.org>
13018
13019 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13020
130212008-02-01 Kenichi Handa <handa@m17n.org>
13022
13023 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13024 being nil.
13025
130262008-02-01 Kenichi Handa <handa@m17n.org>
13027
13028 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13029
130302008-02-01 Kenichi Handa <handa@m17n.org>
13031
13032 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13033
130342008-02-01 Kenichi Handa <handa@m17n.org>
13035
13036 * search.c (simple_search): Fix previous change.
13037
130382008-02-01 Kenichi Handa <handa@m17n.org>
13039
13040 * xftfont.c (ftfont_font_format): Extern declaration.
13041
13042 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13043
13044 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13045 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13046
13047 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13048 (ftfont_font_format): Fix previous change.
13049
13050 * font.h (Ffont_xlfd_name): EXFUN it.
13051
13052 * font.c (font_parse_xlfd): Fix the array size of `f'.
13053 (register_font_driver): Use EQ to compare driver->type.
13054
13055 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13056 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13057 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13058
130592008-02-01 Kenichi Handa <handa@m17n.org>
13060
13061 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13062 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13063
130642008-02-01 Kenichi Handa <handa@m17n.org>
13065
13066 * xfont.c (xfont_open): Set font->format.
13067
13068 * xftfont.c (xftfont_open): Set font->format.
13069
13070 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13071 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13072 (ftfont_open): Set font->format.
13073 (ftfont_font_format): New function.
13074
13075 * font.h (struct font): New member format.
13076
13077 * font.c (Qopentype): New variable.
13078 (syms_of_font): Defsym it.
13079 (Fquery_font): Change the format of the last element of the return
13080 value.
13081
130822008-02-01 Kenichi Handa <handa@m17n.org>
13083
13084 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13085 last resort.
13086
130872008-02-01 Kenichi Handa <handa@m17n.org>
13088
13089 * coding.c (detect_coding_charset): Fix detection of multi-byte
13090 charset.
13091
130922008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13093
13094 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13095
130962008-02-01 Kenichi Handa <handa@m17n.org>
13097
13098 * xdisp.c (get_next_display_element): Set it->face_id for the
13099 first component of a composition.
13100 (x_produce_glyphs): Check if the font is changed or not for composition.
13101
131022008-02-01 Kenichi Handa <handa@m17n.org>
13103
13104 * fontset.c (Qlatin): New variable.
13105 (syms_of_fontset): Define it as a lisp symbol.
13106 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13107
131082008-02-01 Kenichi Handa <handa@m17n.org>
13109
13110 * font.c (font_unparse_fcname): Pay attention to the case that
13111 some of font property is a null string.
13112
131132008-02-01 Kenichi Handa <handa@m17n.org>
13114
13115 * term.c: Include "composite.h".
13116 (encode_terminal_code): Output all components of composition.
13117 Check the size of encode_terminal_src.
13118 (produce_glyphs): For composition, call produce_composite_glyph.
13119 (append_composite_glyph, produce_composite_glyph): New functions.
13120
13121 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13122 is not found, get font_info from the current ascii face.
13123
131242008-02-01 Kenichi Handa <handa@m17n.org>
13125
13126 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13127 buffer-file-name to Qnil before calling insert_from_buffer.
13128
13129 * font.c (font_unparse_fcname): Pay attention to the case that
13130 foundry is a null string.
13131
131322008-02-01 Kenichi Handa <handa@m17n.org>
13133
13134 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13135
13136 * font.c (Qunicode_sip): New variable.
13137 (syms_of_font): Declare it as a Lisp symbol.
13138
13139 * font.h (Qunicode_sip): Extern it.
13140
131412008-02-01 Kenichi Handa <handa@m17n.org>
13142
13143 * composite.c (get_composition_id): Pay attention to TAB component.
13144
13145 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13146 TAB. Adjust for the change of s->char2b which always points to
13147 the first element of allocated memory.
13148
13149 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13150
13151 * xdisp.c (handle_composition_prop): Set it->c to the first
13152 non-TAB component.
13153 (fill_composite_glyph_string): Change argument.
13154 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13155 (x_produce_glyphs): Fix handling of left/right padding.
13156
131572008-02-01 Kenichi Handa <handa@m17n.org>
13158
13159 * coding.c (detect_coding_system): Fix for handling off
13160 inhibit_iso_escape_detection. Fix for the case that no coding
13161 system is defined for a specific coding category.
13162
131632008-02-01 Kenichi Handa <handa@m17n.org>
13164
13165 * font.c (font_matching_entity): Delete unused local var.
13166
13167 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13168 opening a font.
13169
13170 * fileio.c (Finsert_file_contents): On recovering a file, assume
13171 Unix-like eol.
13172 (choose_write_coding_system): On auto-saving a file, force
13173 Unix-like eol.
13174
13175 * coding.c (setup_coding_system): Fix setting of
13176 coding->common_flags based on eol_type.
13177 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13178 inherit from it.
13179
131802008-02-01 Kenichi Handa <handa@m17n.org>
13181
13182 * alloc.c (NSTATICS): Increas to 0x600.
13183
131842008-02-01 Kenichi Handa <handa@m17n.org>
13185
13186 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13187 (ftfont_list): Don't check :name property.
13188 (ftfont_match): New function.
13189 (ftfont_pattern_entity): If the pattern doesn't contain
13190 FC_SPACING, don't assume FC_MONO.
13191
13192 * font.h (struct font_driver): New member `match'.
13193 (font_update_drivers): Adjust prototype.
13194
13195 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13196 property of FONT.
13197 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13198 them unconditionally.
13199 (font_matching_entity): New function.
13200 (font_open_by_name): Try font_matching_entity if exact match is
13201 not found.
13202 (font_update_drivers): Delete the arg FONT. Return a list of
13203 actually used backends. Don't free faces, font caches here.
13204 Don't store data in frame parameters. Don't call x_set_font.
13205 (Ffont_spec): Store :name property as is.
13206 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13207 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13208 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13209 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13210 Call font->driver->otf_gsub instead of font_otf_gsub.
13211
13212 * frame.c (x_set_font_backend): Do more works that were done in
13213 font_update_drivers before.
13214
13215 * xfont.c (xfont_match): New function.
13216 (xfont_driver): Set xfont_driver.match to xfont_match.
13217 (xfont_draw): Set font in GC if necessary.
13218
13219 * ftxfont.c (ftxfont_match): New function.
13220 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13221
13222 * xftfont.c (xftfont_match): New function.
13223 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13224
132252008-02-01 Kenichi Handa <handa@m17n.org>
13226
13227 * font.h (struct font): New member scalable.
13228 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13229 (font_otf_gsub): Adjust prototype.
13230
13231 * font.c (font_otf_capability): Fix handling of the default langsys.
13232 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13233 Check the contents of SPEC.
13234 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13235 (check_gstring): New function.
13236 (REPLACEMENT_CHARACTER): New macro.
13237 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13238 glyph codes of GSTRING.
13239 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13240 (font_prepare_composition): Set cmp->glyph_len.
13241 (font_open_entity): Set font->scalable.
13242 (Ffont_get): Handle :otf property.
13243 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13244 functions.
13245 (Fquery_font): Use font->font.full_name.
13246 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13247 Sfont_otf_alternates.
13248
13249 * ftfont.c (ftfont_open): Set font->font.full_name and
13250 font->font.name properly. Fix calculation of font->font.height
13251 and font->min_width.
13252
13253 * ftxfont.c (ftxfont_create_gcs): New function.
13254 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13255 (ftxfont_draw_backgrond): Fix filling region.
13256 (ftxfont_default_fid): New function.
13257 (ftxfont_open): Set xfont->fid to the return value of
13258 ftxfont_default_fid.
13259 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13260 (ftxfont_done_face): Free only GCs that are created by
13261 ftxfont_create_gcs.
13262 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13263
13264 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13265 Clip to src->width, etc (not src->clip_XXX).
13266
13267 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13268 FontBackend frame parameter.
13269
132702008-02-01 Kenichi Handa <handa@m17n.org>
13271
13272 * font.h (struct font_driver_list): New member `on'.
13273 (Fclear_font_cache): EXFUN it.
13274 (font_update_drivers): Extern it.
13275
13276 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13277 (font_list_entities): Check driver_list->on.
13278 (register_font_driver): Initalize `on' member to 0.
13279 (font_update_drivers): New function.
13280 (Fclear_font_cache): Check driver_list->on.
13281
13282 * frame.h (Qfont_backend): Extern it.
13283 (x_set_font_backend): Extern it.
13284
13285 * frame.c (Qfont_backend): New variable.
13286 (frame_parms): New element for font-backend.
13287 (x_set_font_backend): New function.
13288
13289 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13290 FontBackend frame parameter.
13291 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13292 x_set_font_backend.
13293
13294 * xfont.c (xfont_list): Don't try listing by :name property if the
13295 name is not for XLFD.
13296
132972008-02-01 Kenichi Handa <handa@m17n.org>
13298
13299 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13300 (LGLYPH_SET_TO): New macros.
13301 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13302 element of G is vector or not.
13303 (font_at): Extern it.
13304
13305 * font.c: Include window.h.
13306 (font_lispy_object): New function.
13307 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13308 end of valid glyph.
13309 (font_close_object): Fix getting (struct font *).
13310 (font_at): New function.
13311 (Ffont_get): If FONT is a font-object, get entity from it.
13312 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13313 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13314 range check.
13315 (Ffont_at): New function.
13316 (syms_of_font): Defsubr Sfont_at.
13317
13318 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13319 before the entry for Qcomposition.
13320 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13321 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13322 the font in gstring.
13323 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13324 LGLYPH_FORM (g) to detect the end of valid glyph.
13325 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13326 we are composing with gstring.
13327
13328 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13329 Check if adjustment is vector or not.
13330
13331 * Makefile.in (font.o): Make it depends on window.h.
13332
133332008-02-01 Kenichi Handa <handa@m17n.org>
13334
13335 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13336 adjustment is vector or not.
13337
133382008-02-01 Miles Bader <miles@gnu.org>
13339
13340 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13341
133422008-02-01 Kenichi Handa <handa@m17n.org>
13343
13344 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13345 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13346 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13347
13348 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13349 (DEVICE_DELTA): Fix typo.
13350 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13351 LGLYPH format.
13352
13353 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13354 the change of LGLYPH format.
13355
133562008-02-01 Kenichi Handa <handa@m17n.org>
13357
13358 * ftfont.c (ftfont_list): Fix typo.
13359 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13360
133612008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13362
13363 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13364
13365 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13366 xftface_info is non-NULL.
13367
133682008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13369
13370 * ftfont.c (ftfont_list): Move misplaced #endif.
13371
133722008-02-01 Kenichi Handa <handa@m17n.org>
13373
13374 * ftfont.c (ftfont_list): Pay attention to the case that
13375 FC_CAPABILITY is not defined.
13376
133772008-02-01 Kenichi Handa <handa@m17n.org>
13378
13379 * xftfont.c (xftfont_open): Set charset related members to -1.
13380
13381 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13382 QCname.
13383 (ftfont_open): Set charset related members to -1.
13384
13385 * fontset.c (Votf_script_alist): New variable.
13386 (syms_of_fontset): Initialize it.
13387 (fontset_font): Delete unused variable.
13388
13389 * fontset.h (Votf_script_alist): Extern it.
13390
13391 * font.c (font_find_for_lface): Optimize code.
13392
13393 * font.h (font_close_object, font_merge_old_spec): Extern them.
13394
133952008-02-01 Kenichi Handa <handa@m17n.org>
13396
13397 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13398 (syms_of_font): Initialize them.
13399 (font_pixel_size): Allow float value in dpi.
13400 (font_prop_validate_type): Delete.
13401 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13402 Change caller.
13403 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13404 (font_prop_validate_extra): Delete.
13405 (font_prop_validate_spacing): New function.
13406 (font_property_table): Add elements for all known properties.
13407 (get_font_prop_index): Rename from check_font_prop_name. New
13408 argument FROM. Change caller.
13409 (font_prop_validate): Validate all known properties.
13410 (font_put_extra): Delete argument force. Change caller.
13411 (font_expand_wildcards): Make it static. Fix the way of shrinking
13412 the possible range.
13413 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13414 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13415 Change caller.
13416 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13417 (font_parse_fcname): Delete argument merge. Fix parsing of point
13418 size. Don't validate properties values here. Change caller.
13419 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13420 (font_open_by_name): Delete unused variable.
13421 (Ffont_spec): Likewise. Validate property values.
13422 (Ffont_match_p): New function.
13423
13424 * font.h (QCscalable): Extern it.
13425 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13426
13427 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13428
13429 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13430 (xfont_list_pattern): New function.
13431 (xfont_list): Use xfont_list_pattern.
13432
134332008-02-01 Kenichi Handa <handa@m17n.org>
13434
13435 * font.h (Flist_fonts): EXFUN it.
13436
134372008-02-01 Jason Rumney <jasonr@gnu.org>
13438
13439 * w32term.c (w32_initialize): Add back smoothing_type and
13440 smoothing_enabled definitions.
13441
134422008-02-01 Kenichi Handa <handa@m17n.org>
13443
13444 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13445 s->face->font on determining underline position.
13446
134472008-02-01 Kenichi Handa <handa@m17n.org>
13448
13449 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13450 (font_has_char): Accept font-object too.
13451 (font_find_for_lface): Try at first with a size specified in face.
13452
134532008-02-01 Kenichi Handa <handa@m17n.org>
13454
13455 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13456 font_open_by_name.
13457
134582008-02-01 Kenichi Handa <handa@m17n.org>
13459
13460 * font.h (QCspacing, QCdpi): Extern them.
13461 (enum font_spacing): New enum.
13462 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13463
13464 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13465 (QCspacing, QCdpi): New variables.
13466 (syms_of_font): Initialize them.
13467 (font_pixel_size): New function.
13468 (font_put_extra): New function.
13469 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13470 in FONT_EXTRA.
13471 (font_parse_fcname): Handle enumerated values (e.g. bold).
13472 Fix handling font size. Add QCname property that contains only
13473 unknown properties.
13474 (font_score): Change argument. Change caller. Pay attention to
13475 FONT_PIXEL_SIZE_QUANTUM.
13476 (font_sort_entites, font_list_entities, font_find_for_lface)
13477 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13478 (Ffont_spec): Add QCname property that contains only unknown properties.
13479
13480 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13481 include weight in listing pattern, instead check weight of each
13482 listed font. Don't include scalable in pattern. Pay attention to
13483 FONT_PIXEL_SIZE_QUANTUM.
13484
134852008-02-01 Kenichi Handa <handa@m17n.org>
13486
13487 * font.c (font_parse_fcname): Fix parsing of point-size.
13488 (font_unparse_fcname): Produce symbolic names for style properties.
13489 (font_list_entities): Handle float size correctly.
13490 (font_open_by_name): Prefer `normal' property values if the name
13491 doesn't specify them.
13492
13493 * fontset.c (Finternal_char_font): Use font_get_name, not
13494 Ffont_xlfd_name.
13495
13496 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13497 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13498 pattern. Don't force scalable.
13499
13500 * xftfont.c (xftfont_open): For generating a name, start from
13501 96-byte buffer.
13502
135032008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13504
13505 * frame.h (x_new_fontset2): Fix prototype.
13506
135072008-02-01 Kenichi Handa <handa@m17n.org>
13508
13509 * font.h (struct font_driver): Delete member parse_name.
13510 (font_match_p, font_get_spec, font_parse_fcname)
13511 (font_unparse_fcname): Extern them.
13512 (font_get_name): Adjust prototype.
13513
13514 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13515 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13516 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13517 unnecessary checks for weight, slant, and swidth.
13518 (font_parse_fcname): New function.
13519 (font_unparse_fcname): New function.
13520 (font_parse_name): New function.
13521 (font_match_p): New function.
13522 (font_get_name): Change return value to Lisp string.
13523 (font_get_spec): New function.
13524 (Qunspecified, Qignore_defface): Don't extern them.
13525 (font_find_for_lface): Assume that LFACE is fully specified.
13526 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13527 object, use it for FACE.
13528 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13529 driver->parse_name.
13530 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13531
13532 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13533 prototype.
13534
13535 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13536 argument F. Don't call Fnew_fontset. Instead, directly call
13537 make_fontset.
13538
13539 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13540
13541 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13542 of x_new_fontset2.
13543
13544 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13545 (Qsans__serif): New variables.
13546 (ftfont_generic_family_list): New variable.
13547 (syms_of_ftfont): Initialize the above variables.
13548 (ftfont_pattern_entity): Delete argument NAME.
13549 (ftfont_list_generic_family): New function.
13550 (ftfont_parse_name): Delete this function.
13551 (ftfont_list): Try generic family only when FcFontList found no font.
13552 (ftfont_list_family): Fix args to FcObjectSetBuild.
13553
13554 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13555 object in attrs[LFACE_FONT_INDEX].
13556 (set_lface_from_font_name): Cancel all changes for font-backend.
13557 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13558 function.
13559 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13560 font object in QCfont attribute.
13561 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13562 (realize_default_face) [USE_FONT_BACKEND]: Call
13563 set_lface_from_font_and_fontset.
13564
13565 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13566 "fixed", and signal error here if no suitable font was found.
13567
13568 * xfont.c (xfont_parse_name): Delete this function.
13569
13570 * xftfont.c (xftfont_open): Change coding style of error
13571 handling. Generate fontconfig's fontname pattern.
13572
13573 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13574 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13575
13576 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13577 Both args FONTSET and FONT_OBJECT must be existing ones.
13578
135792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13580
13581 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13582
135832008-02-01 Kenichi Handa <handa@m17n.org>
13584
13585 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13586
13587 * font.h (struct font): Fix typo.
13588
13589 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13590 XLFD_XXX_INDEX.
13591 (enum xlfd_field_mask): New enum.
13592 (intern_font_field): Changed argument. Change caller. If digits
13593 are followed by non-digits, return a symbol.
13594 (font_expand_wildcards): New function.
13595 (font_parse_xlfd): Fix wildcard handling.
13596 (Ffont_spec): If :name is specified, reflect the info in the other
13597 properties.
13598
13599 * ftfont.c (ftfont_pattern_entity): Fix typo.
13600 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13601 locale.
13602
136032008-02-01 Kenichi Handa <handa@m17n.org>
13604
13605 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13606
13607 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13608 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13609 registry doesn't specify encoding part.
13610 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13611 (font_open_by_name): At first try parsing the name.
13612 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13613 as Lisp symbols.
13614
13615 * fontset.c (reorder_font_vector): Pay attention to the case that
13616 the 3rd element of font_def is nil.
13617 (fontset_font): For the default fontset, append one more fontset
13618 elements for a script-based font specification. Don't add script
13619 attribute on finding a font.
13620 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13621 font name.
13622 (fontset_ascii_font): If a font can't be opened, return nil.
13623
13624 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13625 (ftfont_pattern_entity): New function.
13626 (ftfont_get_cache): Assume that freetype_font_cache is already
13627 initialized.
13628 (ftfont_list): Handle the case that a file is specified in font
13629 name. Use ftfont_pattern_entity to generate entities.
13630 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13631 (syms_of_ftfont): Initialize freetype_font_cache.
13632
13633 * xftfont.c (xftfont_open): Make the font name fontconfig's
13634 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13635 (xftfont_close): Free font->font.name if not NULL.
13636
13637 * xfont.c (xfont_list): If script is specified for a font, return
13638 null_vector.
13639 (xfont_list_family): Declare argument type.
13640
13641 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13642 name, set LFACE_FONT (lface) to nil.
13643
13644 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13645 return Qnil.
13646
136472008-02-01 Kenichi Handa <handa@m17n.org>
13648
13649 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13650 (standard_args): Add "-enable-font-backend".
13651
136522008-02-01 Kenichi Handa <handa@m17n.org>
13653
13654 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13655 (struct xftdraw_list, xftdraw_list): Delete them.
13656 (register_xftdraw, check_xftdraw): Delete them.
13657 (xftfont_prepare_face): Don't call register_xftdraw.
13658 (xftfont_done_face): Don't call check_xftdraw.
13659 (xftfont_draw): Get background color only when with_background is
13660 nonzero.
13661
13662 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13663
136642008-02-01 Kenichi Handa <handa@m17n.org>
13665
13666 These changes are for the new font handling codes.
13667
13668 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13669 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13670 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13671 (FONTSRC, FONTOBJ): New variables.
13672 (obj): Add $(FONTOBJ).
13673 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13674 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13675 @LIBOTF_LIBS@.
13676 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13677 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13678
13679 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13680
13681 * character.h (Vscript_representative_chars): Extern it.
13682
13683 * character.c (Vscript_representative_chars): New variable.
13684 (syms_of_character): Declare it as a Lisp variable.
13685
13686 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13687 enable_font_backend is nonzero, accept the composition method
13688 COMPOSITION_WITH_GLYPH_STRING.
13689
13690 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13691 enumeration COMPOSITION_WITH_GLYPH_STRING.
13692
13693 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13694 members clip_x, clip_y, clip_width, and clip_height.
13695 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13696
13697 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13698 --enable-font-backend. Call syms_of_font.
13699
13700 * fns.c (assoc_no_quit): New function.
13701
13702 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13703 (face_for_font, new_fontset_from_font)
13704 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13705
13706 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13707 (fontset_font, fontset_ascii, face_for_char)
13708 (make_fontset_for_ascii_face, Ffont_info)
13709 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13710 is nonzero, use font-backend mechanism.
13711 (find_font_encoding): Make it non-static.
13712 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13713 New functions.
13714
13715 * frame.h (struct frame): New members resx and resy.
13716 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13717 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13718
13719 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13720 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13721
13722 * lisp.h (assoc_no_quit): Extern it.
13723
13724 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13725 Through out the file, use FONT_INFO_FROM_FACE instead of
13726 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13727 rif->per_char_metric.
13728 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13729 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13730 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13731 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13732 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13733 nonzero, use font-backend mechanism.
13734 (get_per_char_metric): New function.
13735
13736 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13737 (set_lface_from_font_name)
13738 (set_font_frame_param, free_realized_face)
13739 (prepare_face_for_display, clear_face_gcs)
13740 (Finternal_set_font_selection_order, realize_x_face)
13741 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13742 font-backend mechanism.
13743 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13744 (load_face_font) [USE_FONT_BACKEND]: Abort.
13745 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13746 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13747
13748 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13749 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13750 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13751 nonzero, register all available font drivers. Call
13752 x_default_font_parameter for deciding a font.
13753 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13754
13755 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13756 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13757 (x_set_glyph_string_clipping_exactly)
13758 (x_compute_glyph_string_overhangs)
13759 (x_draw_glyph_string_foreground)
13760 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13761 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13762 enable_font_backend is nonzero, use font-backend mechanism.
13763 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13764
137652008-02-01 Kenichi Handa <handa@m17n.org>
13766
13767 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13768 system_eol_type.
13769 (syms_of_coding): Initialize system_eol_type.
13770
13771 * process.c (Fset_process_coding_system): Inherit system's eol
13772 format if necessary.
13773
137742008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13775
13776 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13777
137782008-02-01 Kenichi Handa <handa@m17n.org>
13779
13780 * coding.c (decode_eol): Pay attention to buffer relocation in
13781 del_range_2.
13782 (decode_coding): Call decode_eol before restoring undo_list.
13783
137842008-02-01 Kenichi Handa <handa@m17n.org>
13785
13786 * charset.c (Fdefine_charset_internal): Fix setting of
13787 emacs_mule_bytes.
13788
137892008-02-01 Kenichi Handa <handa@m17n.org>
13790
13791 * keyboard.c (read_char): Check if C is a character or not before
13792 looking up Vkeyboard_translate_table.
13793
137942008-02-01 Kenichi Handa <handa@m17n.org>
13795
13796 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13797 condition to terminate the loop.
13798
137992008-02-01 Kenichi Handa <handa@m17n.org>
13800
13801 * coding.c (produce_composition): Compare charbuf[i] instead of
13802 args[i] against 0.
13803 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13804
138052008-02-01 Kenichi Handa <handa@m17n.org>
13806
13807 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13808 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13809 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13810 detect_coding.
13811 (emacs_mule_char): Handle old style (Emacs 20) component character
13812 of a composition.
13813 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13814 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13815 composition rule.
13816 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13817
138182008-02-01 Kenichi Handa <handa@m17n.org>
13819
13820 * coding.c (encode_coding_ccl): Allocate destination dynamically
13821 when necessary.
13822
138232008-02-01 Kenichi Handa <handa@m17n.org>
13824
13825 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13826 the loop. When quitted, show a proper error message.
13827
138282008-02-01 Kenichi Handa <handa@m17n.org>
13829
13830 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13831 src->clip_head and src->clip_tail temporarily instead of src->hl.
13832
13833 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13834 character sequence.
13835 (Fccl_execute_on_string): Use ASET, not XSET.
13836
138372008-02-01 Kenichi Handa <handa@m17n.org>
13838
13839 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13840
138412008-02-01 Kenichi Handa <handa@m17n.org>
13842
13843 * coding.c (decode_coding): Fix the condition of terminating the
13844 decoding loop.
13845
138462008-02-01 Kenichi Handa <handa@m17n.org>
13847
13848 * data.c (Faset): On setting a character bigger than 255 in a
13849 unibyte string, signal an error instead of make the string multibyte.
13850
138512008-02-01 Kenichi Handa <handa@m17n.org>
13852
13853 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13854 made by a mapping table.
13855
138562008-02-01 Kenichi Handa <handa@m17n.org>
13857
13858 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13859 not.
13860 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13861 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13862
13863 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13864 s->face is NULL or not.
13865
138662008-02-01 Kenichi Handa <handa@m17n.org>
13867
13868 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13869 (x_draw_glyph_string): Fix drawing of right_overhang and
13870 left_overhang around/on cursor.
13871
13872 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13873
138742008-02-01 Kenichi Handa <handa@m17n.org>
13875
13876 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13877
138782008-02-01 Kenichi Handa <handa@m17n.org>
13879
13880 * coding.c (Fdefine_coding_system_internal)
13881 (Fdefine_coding_system_alias): Avoid a duplicated element in
13882 Vcoding_system_alist.
13883
138842008-02-01 Kenichi Handa <handa@m17n.org>
13885
13886 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13887
13888 * coding.c (Qcoding_system_define_form): New variable.
13889 (syms_of_coding): Intern and staticpro it.
13890 (Fcoding_system_p): Check Qcoding_system_define_form.
13891 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13892
13893 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13894 Fcoding_system_p.
13895 (CHECK_CODING_SYSTEM): If ID is not available, call
13896 Fcheck_coding_system.
13897 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13898 Try also Fcheck_coding_system.
13899
139002008-02-01 Kenichi Handa <handa@m17n.org>
13901
13902 * coding.c (code_conversion_restore): GCPRO arg.
13903
139042008-02-01 Kenichi Handa <handa@m17n.org>
13905
13906 * character.c (lisp_string_width): Check multibyteness of STRING.
13907
139082008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13909
13910 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13911 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13912 (decode_mac_font_name): Use decode_coding_c_string instead of
13913 decode_coding.
13914 (x_load_font): Initialize fontp->fontset to -1. Set
13915 fontp->encoding_type.
13916
139172008-02-01 Kenichi Handa <handa@m17n.org>
13918
13919 * search.c (search_buffer): Give up BM search on case-fold-search
13920 if one of a target character has a case-equivalence of different
13921 byte length even if that target charcter is an ASCII.
13922 (simple_search): Fix calculation of byte length of matched text.
13923 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13924
139252008-02-01 Kenichi Handa <handa@m17n.org>
13926
13927 * coding.c (decode_coding): Fix handling of invalid bytes.
13928
139292008-02-01 Kenichi Handa <handa@m17n.org>
13930
13931 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13932 Unicode characters.
13933
139342008-02-01 Kenichi Handa <handa@m17n.org>
13935
13936 * coding.c (encode_coding_object): If a pre-write-conversion
13937 function makes a new buffer, kill it.
13938
139392008-02-01 Kenichi Handa <handa@m17n.org>
13940
13941 * coding.c (QCascii_compatible_p): New variable.
13942 (syms_of_coding): Initialize it.
13943 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13944 calling string_char.
13945 (record_conversion_result): Add `default:' case.
13946 (coding_charset_list): Delete unused variable `coding_type'.
13947 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13948 property in the plist of the coding system.
13949 (Fcoding_system_put): Check QCascii_compatible_p.
13950
139512008-02-01 Miles Bader <miles@gnu.org>
13952
13953 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13954 removed calculation of frame `f', as it's now used.
13955
139562008-02-01 Kenichi Handa <handa@m17n.org>
13957
13958 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13959 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13960 (UNIDATA): New variable.
13961 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13962 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13963 $(RUN_TEMACS) unconditionally.
13964
139652008-02-01 Kenichi Handa <handa@m17n.org>
13966
13967 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13968 (admindir): New variable.
13969 ($(lispsource)international/charprop.el): New target.
13970
139712008-02-01 Miles Bader <miles@gnu.org>
13972
13973 * character.c (chars-in-region): Remove obsolete function.
13974 (syms_of_character): Remove its initialization.
13975
139762008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
13977
13978 * w32select.c (validate_coding_system)
13979 (setup_windows_coding_system): New functions.
13980 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13981 setup_windows_coding_system.
13982 (setup_config, Fw32_get_clipboard_data): Use
13983 validate_coding_system.
13984 (Fx_selection_exists): Move call to setup_config to a place
13985 where signals are allowed.
13986
13987 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13988 (Fcheck_coding_system): Add declarations.
13989
139902008-02-01 Kenichi Handa <handa@m17n.org>
13991
13992 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13993
139942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13995
13996 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
13997 string as the second argument for x_new_fontset.
13998
139992008-02-01 Kenichi Handa <handa@m17n.org>
14000
14001 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14002 (encode_coding_object): Use safe_call instead of call2.
14003
140042008-02-01 Kenichi Handa <handa@m17n.org>
14005
14006 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14007
14008 * Makefile.in (lisp): Include charprop.el.
14009
140102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14011
14012 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14013 Not sure if it's unnecessary.
14014
140152008-02-01 Steven Tamm <steventamm@mac.com>
14016
14017 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14018 some possibly unnecessary fontset checking code that crashed
14019 when creating a new frame.
14020
140212008-02-01 Kenichi Handa <handa@m17n.org>
14022
14023 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14024 lookup_face.
14025
14026 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14027
14028 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14029
140302008-02-01 Kenichi Handa <handa@m17n.org>
14031
14032 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14033 (coding_charset_list): New function.
14034
14035 * coding.h (coding_charset_list): Extern it.
14036
140372008-02-01 Kenichi Handa <handa@m17n.org>
14038
14039 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14040 concatenation of family and registry.
14041
140422008-02-01 Kenichi Handa <handa@m17n.org>
14043
14044 * character.h (BYTE8_STRING): Fix typo.
14045
14046 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14047 string to multibyte (sync to HEAD).
14048
14049 * casefiddle.c (casify_region): Handle changes in byte-length
14050 using replace_range_2 (sync to HEAD).
14051
140522008-02-01 Andreas Schwab <schwab@suse.de>
14053
14054 * chartab.c (map_char_table): GCPRO table and arg.
14055
140562008-02-01 Kenichi Handa <handa@m17n.org>
14057
14058 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14059 already at limit.
14060
140612008-02-01 Kenichi Handa <handa@m17n.org>
14062
14063 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14064 instead of fast_c_string_match_ignore_case.
14065 (find_font_encoding): Change argument to Lisp_Object. Use
14066 fast_string_match_ignore_case instead of
14067 fast_c_string_match_ignore_case. Change caller.
14068
140692008-02-01 Kenichi Handa <handa@m17n.org>
14070
14071 * xdisp.c (get_next_display_element): In unibyte case, decide to
14072 display in octal form by checking a character by
14073 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14074
14075 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14076
14077 * character.c (unibyte_has_multibyte_table): New variable.
14078
14079 * character.h (unibyte_has_multibyte_table): Extern it.
14080 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14081
140822008-02-01 Kenichi Handa <handa@m17n.org>
14083
14084 * coding.c (encode_coding_iso_2022): Fix handling of charset
14085 annotation.
14086
140872008-02-01 Kenichi Handa <handa@m17n.org>
14088
14089 * coding.c (setup_coding_system): If coding_system is nil, use
14090 Qundecided.
14091 (Fterminal_coding_system): Return nil if terminal coding system is
14092 `undecided'.
14093 (syms_of_coding): Define coding-system `undecided' here. Setup
14094 terminal_coding as `undecided'.
14095
140962008-02-01 Kenichi Handa <handa@m17n.org>
14097
14098 * xdisp.c (message_dolog, set_message_1): Call
14099 unibyte_char_to_multibyte with arg type int.
14100
14101 * lread.c (read1): Fix reading of a char-table.
14102
14103 * print.c (print_object): Include sub char-table in circularities
14104 detection.
14105
141062008-02-01 Kenichi Handa <handa@m17n.org>
14107
14108 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14109 Append the found sequences in car of ARGS instead of prepending.
14110
141112008-02-01 Kenichi Handa <handa@m17n.org>
14112
14113 * fileio.c (report_file_error): Make a unibyte string from
14114 strerror (errorno).
14115 (Fsubstitute_in_file_name): Fix the arg to
14116 unibyte_char_to_multibyte. It is evaluated twice.
14117
141182008-02-01 Kenichi Handa <handa@m17n.org>
14119
14120 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14121
141222008-02-01 Kenichi Handa <handa@m17n.org>
14123
14124 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14125 BOM is not found.
14126 (detect_coding, detect_coding_system): Optimization for ISO-2022
14127 when no 8-bit data is found.
14128
141292008-02-01 Jason Rumney <jasonr@gnu.org>
14130
14131 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14132
141332008-02-01 Kenichi Handa <handa@m17n.org>
14134
14135 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14136 CHARS.
14137
141382008-02-01 Steven Tamm <steventamm@mac.com>
14139
14140 * macterm.c (mac_encode_char): Add charset argument and update
14141 to use encoding_type.
14142 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14143 switch to pure fontset.
14144 (decode_mac_font_name): Temporarily remove decoding.
14145 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14146 (x_load_font): Temporarily remove encoding.
14147
141482008-02-01 Kenichi Handa <handa@m17n.org>
14149
14150 * xfaces.c (Fface_font): If frame is not on a window system,
14151 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14152 refer to face->font.
14153 (split_font_name_into_vector, build_font_name_from_vector)
14154 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14155 when HAVE_WINDOW_SYSTEM is defined.
14156
141572008-02-01 Kenichi Handa <handa@m17n.org>
14158
14159 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14160 (x_produce_glyphs): Fix setting of members of cmp in case
14161 cmp->glyph_len is zero.
14162
14163 * fontset.c (Fset_fontset_font): Fix docstring.
14164 (Ffontset_info): Make it backward compatible. New arg ALL.
14165
141662008-02-01 Kim F. Storm <storm@cua.dk>
14167
14168 * process.c (read_process_output): Grow decoding_buf when needed;
14169 this could cause a crash in allocate_string and compact_small_strings.
14170
141712008-02-01 Kenichi Handa <handa@m17n.org>
14172
14173 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14174
141752008-02-01 Kenichi Handa <handa@m17n.org>
14176
14177 * coding.c (setup_coding_system): Set coding->common_flags
14178 correctly for raw-text.
14179 (consume_chars): On encoding unibyte text by raw-text, don't check
14180 multibyte form.
14181 (encode_coding): On encoding by raw-text, never use translation tables.
14182
14183 * fileio.c (e_write): Short cut for the case of no encoding.
14184
141852008-02-01 Kenichi Handa <handa@m17n.org>
14186
14187 * coding.c (detect_coding, detect_coding_system): Delete unused
14188 variables.
14189
141902008-02-01 Kenichi Handa <handa@m17n.org>
14191
14192 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14193 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14194
141952008-02-01 Kenichi Handa <handa@m17n.org>
14196
14197 * coding.c (Ffind_coding_systems_region_internal): Include
14198 raw-text and no-conversion in the result.
14199
142002008-02-01 Kenichi Handa <handa@m17n.org>
14201
14202 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14203 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14204 FONT_DEF.
14205 (font_def_arg, add_arg, from_arg, to_arg): New args.
14206 (set_fontset_font): Change argument.
14207 (Fset_fontset_font): Fix for the case that TARGET is a script
14208 name and charset name.
14209 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14210
142112008-02-01 Kenichi Handa <handa@m17n.org>
14212
14213 * fontset.c (fontset_font): Rename from fontset_face. Change return
14214 value.
14215 (face_suitable_for_char_p, face_for_char): Adjust for the change
14216 of fontset_font.
14217 (make_fontset_for_ascii_face): Fix setting of the fontset element
14218 for ASCII.
14219 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14220 to get a font name.
14221 (Ffontset_info): Adjust for the change of fontset_font.
14222
14223 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14224
14225 * character.h (LEADING_CODE_LATIN_1_MIN)
14226 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14227
142282008-02-01 Kenichi Handa <handa@m17n.org>
14229
14230 * editfns.c (check_translation): New function.
14231 (Ftranslate_region_internal): Handle M:N mapping.
14232
142332008-02-01 Kenichi Handa <handa@m17n.org>
14234
14235 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14236
142372008-02-01 Kenichi Handa <handa@m17n.org>
14238
14239 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14240 goto invalid_code.
14241 (decode_coding_iso_2022): Fix handling of invalid designation.
14242
14243 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14244 after calling code_conversion_save.
14245
142462008-02-01 Kenichi Handa <handa@m17n.org>
14247
14248 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14249
14250 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14251
14252 * fontset.c: Include "intervals.h".
14253 (fontset_face): Fix comparing of Lisp_Objects.
14254 (free_face_fontset, new_fontset_from_font_name): Fix
14255 Lisp_Object/int mixup.
14256
14257 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14258
14259 * coding.c: Add many prototypes for static functions.
14260 (get_translation_table): Allow max_lookup to be NULL.
14261 (decode_coding, Ffind_coding_systems_region_internal)
14262 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14263 get_translation_table with max_lookup NULL.
14264
142652008-02-01 Kenichi Handa <handa@m17n.org>
14266
14267 * coding.c (get_translation_table): Declare it as Lisp_Object.
14268 (LOOKUP_TRANSLATION_TABLE): New macro.
14269 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14270 instead of CHAR_TABLE_REF.
14271
142722008-02-01 Kenichi Handa <handa@m17n.org>
14273
14274 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14275 annotation data format.
14276 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14277 Change arguments FROM and TO to single argument NCHARS. Change caller.
14278 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14279 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14280 (decode_coding_ccl, decode_coding_charset): Pay attention to
14281 coding->charbuf_used.
14282 (get_translation): New function.
14283 (produce_chars): New arguments translation_table and last_block.
14284 Translate characters here. Return number of carryover chars.
14285 Change caller.
14286 (produce_composition): New argument pos. Change caller.
14287 Adjust for the change of annotation data format.
14288 (produce_charset, produce_annotation): Likewise.
14289 (decode_coding, encode_coding): Don't call translate_chars.
14290 (consume_chars): New arg translation_table. Change caller.
14291 (translate_chars): Delete.
14292 (syms_of_coding): Make translation-table's number of extra slots 2.
14293
142942008-02-01 Kenichi Handa <handa@m17n.org>
14295
14296 * search.c (simple_search): Fix setting this_pos_byte in backward
14297 search.
14298
14299 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14300 byte sequence.
14301 (detect_coding_ccl): Fix setting of the variable valids.
14302
143032008-02-01 Kenichi Handa <handa@m17n.org>
14304
14305 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14306
14307 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14308
14309 * editfns.c (Ftranslate_region_internal): Rename from
14310 Ftranslate_region. Accept a char-table in TABLE.
14311 (syms_of_editfns): Defsubr Stranslate_region_internal.
14312
14313 * xfaces.c (set_lface_from_font_name): If a font is specified for
14314 a frame, generate a fontset from the font.
14315 (build_scalable_font_name): If the scalable font is requested for
14316 a specific size, don't change that size.
14317 (try_font_list): Try a scalable font also in the case that a
14318 pattern string is specified.
14319
143202008-02-01 Kenichi Handa <handa@m17n.org>
14321
14322 * xfaces.c (Fface_font): New optional arg CHARACTER.
14323
143242008-02-01 Kenichi Handa <handa@m17n.org>
14325
14326 * charset.h (CHARSET_OFFSET): New macro.
14327
143282008-02-01 Kenichi Handa <handa@m17n.org>
14329
14330 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14331
14332 * fontset.c (fontset_face): Handle the case that repertory is a
14333 char-table.
14334 (find_font_encoding): Return nil for unknown encoding.
14335 (Fset_fontset_font): Ignore a font of unknown encoding.
14336
143372008-02-01 Kenichi Handa <handa@m17n.org>
14338
14339 * keymap.c (describe_vector): Handle default value of a char table.
14340
14341 * fontset.c (fontset_face): Handle fallback fonts correctly.
14342 (Ffontset_info): Return infomation about fallback fonts.
14343
143442008-02-01 Kenichi Handa <handa@m17n.org>
14345
14346 * fontset.c (FONTSET_DEFAULT): New macro.
14347 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14348 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14349 the case that it is nil.
14350 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14351 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14352
14353 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14354 subset or superset.
14355
143562008-02-01 Kenichi Handa <handa@m17n.org>
14357
14358 * emacs.c (main): Call init_charset after syms_of_XXX.
14359
14360 * charset.c (Vcharset_map_directory): Delete.
14361 (Vcharset_map_path): New variable.
14362 (load_charset_map_from_file): Use Vcharset_map_path instead.
14363 (init_charset): Initialize Vcharset_map_path.
14364 (syms_of_charset): Delete declaration of "charset-map-directory",
14365 add declaration of "charset-map-path".
14366
143672008-02-01 Kenichi Handa <handa@m17n.org>
14368
14369 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14370 ASCII only string.
14371
14372 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14373
14374 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14375 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14376
143772008-02-01 Kenichi Handa <handa@m17n.org>
14378
14379 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14380
14381 * coding.c (QCmnemonic, QCdefalut_char)
14382 (QCdecode_translation_table, QCencode_translation_table)
14383 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14384 (get_translation_table): Return a list of translation tables if
14385 necessary.
14386 (decode_coding): Call get_translation_table with ENCODEP 0.
14387 (char_encodable_p): If translation_table is non-nil, always call
14388 translate_char.
14389 (Fdefine_coding_system_internal): Accept list of translation
14390 tables as :encode-translation-table and :decode-translation-table.
14391 (Fcoding_system_put): New function.
14392 (syms_of_coding): Declare new symbols. Defsubr
14393 Scoding_system_put.
14394 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14395 typically JISX0212.
14396
14397 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14398 when the charset is superset type.
14399
14400 * character.c (translate_char): Accept list of translation tables.
14401
144022008-02-01 Kenichi Handa <handa@m17n.org>
14403
14404 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14405 (CODING_ATTR_TRANS_TBL): New macro.
14406
14407 * coding.c (get_translation_table): New function.
14408 (translate_chars): Fix the bug of skipping annotation data.
14409 (decode_coding, encode_coding): Utilize get_translation_table.
14410 (char_encodable_p, Funencodable_char_position): Translate char if
14411 necessary.
14412 (Ffind_coding_systems_region_internal)
14413 (Fcheck_coding_systems_region): Setup translation table for encode
14414 in a coding system attribute vector in advance.
14415 (Fdefine_coding_system_internal): Allow a symbol as translation
14416 table. For shift-jis type coding system, allow 4th charset.
14417
144182008-02-01 Kenichi Handa <handa@m17n.org>
14419
14420 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14421
14422 * xdisp.c (get_next_display_element): Pass -1 as POS to
14423 FACE_FOR_CHAR if displaying a C-string.
14424
144252008-02-01 Kenichi Handa <handa@m17n.org>
14426
14427 * composite.c (get_composition_id): Handle xoff and yoff in a
14428 composition rule.
14429
14430 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14431 (struct composition): New member lbearing and rbearing.
14432
14433 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14434 (x_get_glyph_overhangs): Handle a composition glyph.
14435 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14436
14437 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14438 composition glyph.
14439
144402008-02-01 Kenichi Handa <handa@m17n.org>
14441
14442 * print.c: Include charset.h.
14443 (Vprint_charset_text_property): New variable.
14444 (Qdefault): Extern it.
14445 (PRINT_STRING_NON_CHARSET_FOUND)
14446 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14447 (print_check_string_result): New variable.
14448 (print_check_string_charset_prop): New function.
14449 (print_prune_charset_plist): New variable.
14450 (print_prune_string_charset): New function.
14451 (print_object): Call print_prune_string_charset if
14452 Vprint_charset_text_property is not t.
14453 (print_interval): Print nothing if interval->plist is nil.
14454 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14455 variable. Init and staticpro print_prune_charset_plist.
14456
144572008-02-01 Kenichi Handa <handa@m17n.org>
14458
14459 * fontset.c (new_fontset_from_font_name): Use the specified font
14460 for all characters in the new fontset.
14461
14462 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14463 OBJECT args.
14464
14465 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14466 OBJECT args for composition too.
14467
14468 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14469 OBJECT args.
14470
144712008-02-01 Kenichi Handa <handa@m17n.org>
14472
14473 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14474
14475 * fontset.c (reorder_font_vector): Adjust for the change of
14476 FONT_DEF format.
14477 (fontset_face): New arg id. Change caller.
14478 (face_for_char): New args pos and object.
14479 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14480 (fs_query_fontset): Check NAME by Fassoc too.
14481 (Fset_fontset_font): Allow non-XLFD font name.
14482 (Ffontset_info): Adjust for the change of FONT_DEF format.
14483
14484 * fontset.h (face_for_char): Adjust prototype.
14485
14486 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14487 (append_space, extend_face_to_end_of_line)
14488 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14489 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14490
14491 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14492 POS and OBJECT args.
14493
14494 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14495 POS and OBJECT args.
14496
144972008-02-01 Jason Rumney <jasonr@gnu.org>
14498
14499 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14500 of GlobalAlloc'ed memory.
14501
145022008-02-01 Kenichi Handa <handa@m17n.org>
14503
14504 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14505
14506 * charset.h (charset_table_used): Delete extern.
14507
14508 * charset.c (charset_table_used): Make it static.
14509 (map_charset_chars): Fix args to c_function with.
14510
14511 * chartab.c (map_sub_char_table_for_charset): Fix args to
14512 c_function with.
14513
14514 * coding.h (enum coding_result_code): Delete
14515 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14516
14517 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14518 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14519 (Vlast_code_conversion_error): New variables.
14520 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14521 (ONE_MORE_BYTE): Record error if any instead of signaling an
14522 error. If non-ASCII multibyte char is found, return the negative
14523 value of the code. All callers changed to check it.
14524 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14525 (record_conversion_result): New function. Change all codes setting
14526 coding->result to call this function.
14527 (detect_coding_utf_8, decode_coding_utf_8)
14528 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14529 Don't use the local variable incomplete.
14530 (emacs_mule_char): Change the second arg to `const'.
14531 (decode_coding): Fix of flushing out unprocessed data.
14532 (make_conversion_work_buffer): Fix making of a work buffer.
14533 (decode_coding_object): Return coding->dst_object.
14534
14535 * fontset.c (set_fontset_font): Fix args.
14536
14537 * lisp.h (CHARACTERBITS): Define as 22.
14538
14539 * process.c (send_process): Be sure to set coding->src_multibyte.
14540
14541 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14542
145432008-02-01 Kenichi Handa <handa@m17n.org>
14544
14545 * xdisp.c (handle_auto_composed_prop): Give limit to
14546 Fnext_single_char_property_change.
14547
145482008-02-01 Kenichi Handa <handa@m17n.org>
14549
14550 * composite.c (syms_of_composite): Don't make the composition hash
14551 table weak.
14552
14553 * fontset.c (Fset_fontset_font): Fix docstring.
14554
14555 * lisp.h (detect_coding_system): Adjust prototype.
14556
14557 * fileio.c (kill_workbuf_unwind): Delete this function.
14558 (Finsert_file_contents): Adjust the call of detect_coding_system.
14559 Get conversion_buffer by code_conversion_save. Use the macro
14560 CODING_MAY_REQUIRE_DECODING. After decoding, update
14561 coding_system.
14562
14563 * coding.h (make_conversion_work_buffer): Delete extern.
14564 (code_conversion_save): Extern it.
14565
14566 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14567 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14568 (decode_coding_utf_8): Don't do eol converion.
14569 (detect_coding_utf_16): Check coding->src_chars, not
14570 coding->src_bytes. Add heuristics for those that have no signature.
14571 (decode_coding_emacs_mule, decode_coding_iso_2022)
14572 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14573 Don't do eol converion.
14574 (adjust_coding_eol_type): Return a new coding system.
14575 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14576 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14577 each change.
14578 (decode_coding): Pay attention to undo_list. Do eol conversion for
14579 all types of coding-systems (if necessary).
14580 (Vcode_conversion_work_buf_list): Delete it.
14581 (Vcode_conversion_reused_workbuf): Rename from
14582 Vcode_conversion_reused_work_buf.
14583 (Vcode_conversion_workbuf_name): New variable.
14584 (reused_workbuf_in_use): New variable.
14585 (make_conversion_work_buffer): Delete the arg DEPTH.
14586 (code_conversion_restore): Change argument to cons.
14587 (code_conversion_save): Delete the argument BUFFER. Change callers.
14588 (detect_coding_system): New argument src_chars. Change callers.
14589 Fix for utf-16 detection.
14590 (init_coding_once): Don't use ISO_carriage_return.
14591 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14592 reused_workbuf_in_use.
14593
145942008-02-01 Kenichi Handa <handa@m17n.org>
14595
14596 * keymap.c (store_in_keymap): Pay attention to the case that idx
14597 is a cons specifying a character range.
14598
145992008-02-01 Kenichi Handa <handa@m17n.org>
14600
14601 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14602 HANDLED_RECOMPUTE_PROPS.
14603
14604 * coding.c (Fdefine_coding_system_internal): Fix checking of
14605 ascii compatibility.
14606
146072008-02-01 Kenichi Handa <handa@m17n.org>
14608
14609 * charset.c (find_charsets_in_text): Delete unused locale variable.
14610 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14611
14612 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14613 Resync charset_list to Vemacs_mule_charset_list.
14614
14615 * keymap.c (store_in_keymap): Pay attention to the case that idx
14616 is a cons specifying a character range.
14617
146182008-02-01 Kenichi Handa <handa@m17n.org>
14619
14620 * composite.c (update_compositions): Bind inhibit-read-only, etc
14621 to t before calling remove-list-of-text-properties.
14622
14623 * print.c (print_object): Always print ASCII chars as is.
14624
146252008-02-01 Kenichi Handa <handa@m17n.org>
14626
14627 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14628
14629 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14630 is a char table.
14631
146322008-02-01 Kenichi Handa <handa@m17n.org>
14633
14634 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14635
146362008-02-01 Kenichi Handa <handa@m17n.org>
14637
14638 * xfaces.c (set_lface_from_font_name): Fix for the case that
14639 FONTNAME is not fontset name.
14640
146412008-02-01 Kenichi Handa <handa@m17n.org>
14642
14643 * fns.c (base64_encode_1): Fix previous change.
14644
146452008-02-01 Kenichi Handa <handa@m17n.org>
14646
14647 * fontset.c (set_fontset_font): New function.
14648 (Fset_fontset_font): If a font is specified for a charset, use
14649 map_charset_chars to store the font spec in a fontset.
14650
146512008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * fontset.c (fontset_face): Create a fallback fontset on demand.
14654 (make_fontset): Don't create a fallback fontset here.
14655 (free_face_fontset): Free a fallback fontset (if any) too.
14656 (n_auto_fontsets): Delete this variable.
14657 (auto_fontset_alist): New variable.
14658 (new_fontset_from_font_name): Check auto_fontset_alist.
14659 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14660 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14661 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14662 Defsubr Sfontset_list_all.
14663
146642008-02-01 Kenichi Handa <handa@m17n.org>
14665
14666 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14667
146682008-02-01 Kenichi Handa <handa@m17n.org>
14669
14670 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14671
146722008-02-01 Kenichi Handa <handa@m17n.org>
14673
14674 * editfns.c (Fgoto_char): Fix docstring.
14675
146762008-02-01 Kenichi Handa <handa@m17n.org>
14677
14678 * insdel.c (insert_from_gap): Adjust intervals correctly.
14679
146802008-02-01 Jason Rumney <jasonr@gnu.org>
14681
14682 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14683 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14684 (w32_initialize): Try to load it.
14685 (x_get_font_repertory): Use it if available.
14686 (w32_encode_char): Add shortcut for unicode output.
14687
14688 * w32fns.c (w32_load_system_font): Default charset to -1.
14689 (x_to_w32_charset): Match all fonts for unicode.
14690 (w32_to_x_charset): New parameter matching. Don't return partial
14691 or wildcard charsets.
14692 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14693 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14694 (w32_to_x_font): Match charset to real charset.
14695 (enum_font_cb2): Always list unicode versions.
14696
14697 * makefile.w32-in (temacs): Increase EMHEAP.
14698
146992008-02-01 Jason Rumney <jasonr@gnu.org>
14700
14701 * w32term.c (w32_encode_char): New charset parameter.
14702 font_info.encoding becomes encoding_type.
14703 (x_get_font_repertory): New function. Warning: stub only!
14704 (x_new_font): Return quickly if font already set.
14705 (x_new_fontset): fontsetname parameter is Lisp_Object.
14706 Use new fs_query_fontset. Try new_fontset_from_font_name.
14707 Use fontset_name for return value.
14708
14709 * w32term.h: Declare x_get_font_repertory.
14710
14711 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14712 place of find_charset_in_text. Use encode_coding_object in place
14713 of encode_coding.
14714 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14715 decode_coding.
14716
14717 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14718 of x_new_fontset.
14719 (w32_load_system_font): Initialize charset as unicode.
14720 font_info.encoding becomes encoding_type.
14721 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14722 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14723 (syms_of_w32fns): Set get_font_repertory_func.
14724
14725 * w32console.c: Include character.h. Use terminal_encode_buffer
14726 from term.c.
14727 (write_glyphs): Use new version of encode_terminal_code. Use
14728 encode_coding_object in place of encode_coding.
14729
14730 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14731 encoding becomes encoding_type.
14732
14733 * term.c (terminal_encode_buffer): Make externally visible.
14734
14735 * makefile.w32-in: Add character.h dependancies.
14736 (character.o, chartab.o): New targets.
14737
147382008-02-01 Kenichi Handa <handa@m17n.org>
14739
14740 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14741 CODING_ID_EOL_TYPE.
14742
147432008-02-01 Andreas Schwab <schwab@suse.de>
14744
14745 * coding.c (produce_chars): Revert last change.
14746
147472008-02-01 Kenichi Handa <handa@m17n.org>
14748
14749 * charset.h (charset_unicode): Extern it.
14750
14751 * charset.c (string_xstring_p): Check by (C >= 0x100).
14752 (find_charsets_in_text): Change format of the arc CHARSETS. New
14753 arg MULTIBYTE.
14754 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14755 change of find_charsets_in_text.
14756 (Fsplit_char): Fix doc. Never return unknown.
14757
14758 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14759
14760 * coding.c (Fdefine_coding_system_alias): Update
14761 Vcoding_system_list.
14762
14763 * fontset.c (load_font_get_repertory): Pay attention to the case
14764 that ENCODING of a font is specified by a char-table.
14765
14766 * xterm.c (x_get_font_repertory): Handle the case that the
14767 encoding of font is other than Unicode.
14768
147692008-02-01 Kenichi Handa <handa@m17n.org>
14770
14771 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14772 if a character is encodable by the terminal coding system. If
14773 not, produces proper number of `?'s. Update
14774 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14775 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14776
147772008-02-01 Kenichi Handa <handa@m17n.org>
14778
14779 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14780 variables.
14781 (encode_terminal_code): Change argument. Encode multiple
14782 characters at once. Store the result of encoding in
14783 terminal_encode_buffer.
14784 (write_glyphs, insert_glyphs): Adjust for the change of
14785 encode_terminal_code.
14786 (term_init): Initialize terminal_encode_buffer and
14787 terminal_encode_buf_size.
14788
14789 * coding.c (consume_chars): If coding->src_object is nil, don't
14790 check annotation.
14791
147922008-02-01 Kenichi Handa <handa@m17n.org>
14793
14794 * character.c (char_string): Use ASCII_CHAR_P instead of
14795 SINGLE_BYTE_CHAR_P.
14796
147972008-02-01 Kenichi Handa <handa@m17n.org>
14798
14799 * xdisp.c (handle_auto_composed_prop): Check if the last
14800 characters of auto-composed region is newly composed with the
14801 following characters.
14802 (handle_composition_prop): Fix checking of point being inside
14803 composition.
14804
148052008-02-01 Kenichi Handa <handa@m17n.org>
14806
14807 * fns.c (concat): Don't change multibyteness of the result by
14808 concatenating an 8-bit character.
14809
14810 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14811 multibyteness of the result when newelt is an 8-bit character.
14812
148132008-02-01 Dave Love <fx@gnu.org>
14814
14815 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14816 EMACS_INT.
14817
14818 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14819
14820 * xfaces.c (face_numeric_value): Declare dim size_t.
14821 (Finternal_lisp_face_equal_p): Remove unused f.
14822
14823 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14824 (MATRIX_ROW): Remove unused vars.
14825 (draw_glyphs, x_insert_glyphs, fast_find_position)
14826 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14827 byte/char counts.
14828
14829 * regex.c (regex_compile): Remove unused var.
14830
14831 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14832
14833 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14834 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14835
14836 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14837
14838 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14839
14840 * fileio.c (Fwrite_region): Remove unused var.
14841
14842 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14843 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14844
14845 * composite.c (Fremove_list_of_text_properties): Declare.
14846
14847 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14848 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14849 (coding_inherit_eol_type): Remove unused attrs.
14850 (detect_coding): Cast arg of detect_eol.
14851
14852 * charset.c (syms_of_charset): Remove unused var p.
14853 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14854 byte/char counts.
14855
14856 * casetab.c (set_case_table): Remove unused var.
14857
14858 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14859 unused vars.
14860
148612008-02-01 Dave Love <fx@gnu.org>
14862
14863 * xterm.c (x_bitmap_mask): Declare.
14864
148652008-02-01 Dave Love <fx@gnu.org>
14866
14867 * xterm.c (x_term_init): Fix type error.
14868
14869 * lisp.h: Add Funibyte_char_to_multibyte.
14870
14871 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14872 (Fset_coding_system_priority): Doc fix.
14873
14874 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14875
14876 * indent.c (check_composition): Make start and end EMACS_INT.
14877
14878 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14879
14880 * xdisp.c (handle_composition_prop, check_point_in_composition):
14881 Make buffer positions EMACS_INT.
14882
14883 * composite.c (find_composition, run_composition_function)
14884 (update_compositions, Ffind_composition_internal): Make buffer
14885 positions EMACS_INT.
14886
14887 * composite.h (find_composition, update_compositions): Make
14888 position args EMACS_INT.
14889
14890 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14891
14892 * intervals.c (get_property_and_range):
14893 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14894
14895 * unexalpha.c: Don't include varargs.h.
14896
148972008-02-01 Dave Love <fx@gnu.org>
14898
14899 * coding.h (ENCODE_UTF_8): New.
14900
14901 * Makefile.in (gtkutil.o): Depend on coding.h.
14902
14903 * coding.c (Fset_coding_system_priority): Doc fix.
14904
149052008-02-01 Kenichi Handa <handa@m17n.org>
14906
14907 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14908 the case of auto saving.
14909
149102008-02-01 Andreas Schwab <schwab@suse.de>
14911
14912 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14913 `range' from GC.
14914
149152008-02-01 Kenichi Handa <handa@m17n.org>
14916
14917 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14918
149192008-02-01 Kenichi Handa <handa@m17n.org>
14920
14921 * fileio.c (choose_write_coding_system): Return a decided coding system.
14922 (Fwrite_region): Set Vlast_coding_system_used to the return value
14923 of choose_write_coding_system.
14924
149252008-02-01 Kenichi Handa <handa@m17n.org>
14926
14927 * charset.c (Fset_charset_priority): Pay attention to duplicated
14928 arguments.
14929
14930 * coding.c (QCcategory): New variable.
14931 (syms_of_coding): Defsym it. Set all elements of
14932 Vcoding_category_table and their symbol values.
14933 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14934 coding-category-XXX, and coding-category-list.
14935 (Fdefine_coding_system_internal): Add category in the plist.
14936
149372008-02-01 Kenichi Handa <handa@m17n.org>
14938
14939 * callproc.c (Fcall_process): Handle carryover correctly.
14940
14941 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14942 (raw_text_coding_system): Check NILP (coding_system).
14943 (coding_inherit_eol_type): Check NILP (coding_system) and
14944 NILP (parent).
14945 (consume_chars): Fix for the case of raw-text.
14946
14947 * process.c (read_process_output): Handle carryover correctly.
14948
149492008-02-01 Dave Love <fx@gnu.org>
14950
14951 * regex.c (re_search_2): Fix last change.
14952
149532008-02-01 Kenichi Handa <handa@m17n.org>
14954
14955 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14956 target_multibyte. Even in a unibyte case, return a converted
14957 multibyte char.
14958 (GET_CHAR_AFTER): New macro.
14959 (PATFETCH): Translate via multibyte char.
14960 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14961 (SETUP_MULTIBYTE_RANGE): New macro.
14962 (regex_compile): Setup compiled code so that its multibyteness
14963 matches that of a target. Fix the handling of "[X-YZ]" using
14964 SETUP_MULTIBYTE_RANGE.
14965 (analyse_first) <charset>: For filling fastmap for all multibyte
14966 characters, don't check by BASE_LEADING_CODE_P.
14967 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
14968 the same as RE_MULTIBYTE_P (bufp) now.
14969 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14970 (TARGET_CHAR_AND_LENGTH): Delete this macro.
14971 (TRANSLATE_VIA_MULTIBYTE): New macro.
14972 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14973 It is the same as RE_MULTIBYTE_P (bufp) now.
14974 <exactn>: Translate via multibyte.
14975 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
14976 translate it.
14977 <charset, charset_not>: Fetch a character by
14978 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
14979 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14980 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14981 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14982 by GET_CHAR_AFTER.
14983 (bcmp_translate): Likewise.
14984
14985 * search.c (compile_pattern): Check the member target_multibyte,
14986 not the member multibyte of buf.
14987
14988 * lread.c (read1): While reading a string, set force_singlebyte
14989 and force_multibyte correctly.
14990
14991 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14992 up of unibyte_to_multibyte_table.
14993
149942008-02-01 Kenichi Handa <handa@m17n.org>
14995
14996 * coding.c (setup_coding_system): If coding has
14997 post-read-conversion or pre-write-conversion, set
14998 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
14999 respectively.
15000 (decode_coding_gap): Run post-read-conversion if any.
15001
15002 * fileio.c (Finsert_file_contents): Even if we read into a
15003 unibyte buffer, check if we must decode the result or not.
15004
150052008-02-01 Kenichi Handa <handa@m17n.org>
15006
15007 * coding.c (make_conversion_work_buffer): Change the work buffer
15008 name to the same one as that of Emacs 21.
15009
150102008-02-01 Kenichi Handa <handa@m17n.org>
15011
15012 * coding.h (make_conversion_work_buffer): Adjust prototype.
15013 (code_conversion_restore): Don't extern it.
15014
15015 * coding.c (detected_mask): Delete unused variable.
15016 (decode_coding_iso_2022): Pay attention to the byte sequence of
15017 CTEXT extended segment, and retain those bytes as is.
15018 (decode_coding_ccl): Delete unused variable `valids'.
15019 (setup_coding_system): Delete unused variable `category'.
15020 (consume_chars): Delete unused variable `category'. Make it work
15021 for non-multibyte case.
15022 (make_conversion_work_buffer): Change argument.
15023 (saved_coding): Delete unused variable.
15024 (code_conversion_restore): Don't check saved_coding->destination.
15025 (code_conversion_save): New function.
15026 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15027 instead of record_unwind_protect.
15028 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15029 (detect_coding_system): Delete unused variable `mask'.
15030 (Fdefine_coding_system_internal): Delete unused variable id.
15031
15032 * fileio.c (kill_workbuf_unwind): New function.
15033 (Finsert_file_contents): On replacing, call
15034 make_conversion_work_buffer with correct args, and call
15035 record_unwind_protect with the first arg kill_workbuf_unwind.
15036
15037 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15038
150392008-02-01 Kenichi Handa <handa@m17n.org>
15040
15041 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15042 (fontset_add): Fix for the case that TO is less than TO1.
15043 (Ffontset_info): Don't use fallback fontset on checking the
15044 default fontset.
15045 (dump_fontset): New function for debugging.
15046
15047 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15048 coding_type is Qcharset.
15049
150502008-02-01 Kenichi Handa <handa@m17n.org>
15051
15052 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15053 (map_char_table): Don't inherit the value from the parent on
15054 initializing VAL. Adjust for the above change.
15055
150562008-02-01 Kenichi Handa <handa@m17n.org>
15057
15058 * coding.c (Qsignature, Qendian): Delete these variables.
15059 (syms_of_coding): Don't initialize them.
15060 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15061 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15062 detect_info->found.
15063 (decode_coding_utf_16): Don't detect BOM here.
15064 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15065 is NOT utf_16_without_bom.
15066 (setup_coding_system): For a coding system of type utf-16, check
15067 if the attribute :endian is Qbig or not (not nil or not), and set
15068 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15069 (detect_coding): If coding type is utf-16 and BOM detection is
15070 required, detect it.
15071 (Fdefine_coding_system_internal): For a coding system of type
15072 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15073
150742008-02-01 Kenichi Handa <handa@m17n.org>
15075
15076 * coding.c (coding_set_source): Fix for the case that the current
15077 buffer is different from coding->src_object.
15078 (decode_coding_object): Don't use the conversion work buffer if
15079 DST_OBJECT is a buffer.
15080
150812008-02-01 Dave Love <fx@gnu.org>
15082
15083 * lread.c (read_emacs_mule_char) [len==2]: Index
15084 emacs_mule_charset correctly.
15085
150862008-02-01 Dave Love <fx@gnu.org>
15087
15088 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15089 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15090 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15091 treated specially.)
15092 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15093 (detected_mask): Remove Big5 bits.
15094
150952008-02-01 Kenichi Handa <handa@m17n.org>
15096
15097 The following changes are to make the font rescaling facility
15098 compatible with Emacs 21.
15099
15100 * xfaces.c (Vface_font_rescale_alist): Rename from
15101 Vface_resizing_fonts.
15102 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15103 (font_rescale_ratio): Rename from font_resizing_ratio.
15104 (split_font_name): Set font->rescale_ratio.
15105 (better_font_p): Pay attention to font->rescale_ratio.
15106 (build_scalable_font_name): Likewise. Change RESX, and RESY
15107 fields.
15108 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15109
151102008-02-01 Kenichi Handa <handa@m17n.org>
15111
15112 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15113 (Qutf_16_le): Remove these variables.
15114 (syms_of_coding): Don't DEFSYM them.
15115 (decode_coding_utf_16): Fix handling of BOM.
15116 (encode_coding_utf_16): Fix handling of BOM.
15117
151182008-02-01 Kenichi Handa <handa@m17n.org>
15119
15120 * fileio.c (Finsert_file_contents): On replacing, before decoding
15121 the file into the work buffer, set point of the work buffer to the end.
15122
151232008-02-01 Dave Love <fx@gnu.org>
15124
15125 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15126
151272008-02-01 Dave Love <fx@gnu.org>
15128
15129 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15130 and fix C types.
15131
151322008-02-01 Kenichi Handa <handa@m17n.org>
15133
15134 * xdisp.c (SKIP_GLYPHS): New macro.
15135 (set_cursor_from_row): Pay attention to string display properties.
15136
15137 * category.c (copy_category_entry): Fix for the case that RANGE
15138 is an integer.
15139
15140 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15141
15142 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15143
151442008-02-01 Kenichi Handa <handa@m17n.org>
15145
15146 * charset.c (Fcharset_id_internal): New function.
15147 (syms_of_charset): Defsubr it.
15148
15149 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15150 with the last arg charset_list acquired from coding.
15151 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15152 the attribute coding_attr_ccl_valids.
15153
15154 * coding.h (enum define_coding_ccl_arg_index): Set the first
15155 member coding_arg_ccl_decoder to coding_arg_max.
15156
15157 * ccl.h (ccl_driver): Adjust prototype.
15158
15159 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15160 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15161 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15162 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15163 last arg Qnil.
15164
151652008-02-01 Kenichi Handa <handa@m17n.org>
15166
15167 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15168 call encode_char.
15169
15170 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15171
151722008-02-01 Dave Love <fx@gnu.org>
15173
15174 * composite.c (syms_of_composite): Make composition_hash_table weak.
15175
151762008-02-01 Kenichi Handa <handa@m17n.org>
15177
15178 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15179 (font_name_registry): Don't extern them.
15180 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15181
15182 * fontset.h (Qfontset): Don't extern it.
15183 (new_fontset_from_font_name): Extern it.
15184
15185 * fontset.c: Give 8 extra slots to fontset objects.
15186 (Qfontset_info): New variable.
15187 (syms_of_fontset): Defsym it.
15188 (FONTSET_FALLBACK): New macro.
15189 (fontset_face): Try also the default fontset.
15190 (make_fontset): Realize a fallback fontset from the default fontset.
15191 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15192 using split_font_name_into_vector and build_font_name_from_vector.
15193 (Fset_fontset_font): Access the elements of font_spec by enum
15194 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15195 name by using split_font_name_into_vector.
15196 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15197 generate a proper font name from the fontset name. Update
15198 Vfontset_alias_alist.
15199 (n_auto_fontsets): New variable.
15200 (new_fontset_from_font_name): New function.
15201 (Ffont_info): Store the information about fonts generated from the
15202 default fontset in the first extra slot of the returned char-table.
15203
15204 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15205 (font_name_registry): Delete function.
15206 (split_font_name_into_vector): New function.
15207 (build_font_name_from_vector): New function.
15208 (font_list): The argument REGISTRY is now a list of registry names.
15209 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15210 specifies an explicit font name, return the name as is. Make a
15211 list of registy names.
15212
15213 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15214 of x_new_fontset.
15215 (Fx_create_frame): Don't call x_new_fontset here. Just use
15216 x_list_fonts to check the existence of fonts.
15217
15218 * xterm.h (x_new_fontset): Adjust prototype.
15219
15220 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15221 string. Use new_fontset_from_font_name to create a fontset from a
15222 font name.
15223
152242008-02-01 Kenichi Handa <handa@m17n.org>
15225
15226 * syntax.c (Vfind_word_boundary_function_table): New name for
15227 Vnext_word_boundary_function_table.
15228 (find-word-boundary-function-table): New name for
15229 next-word-boundary-function-table.
15230
152312008-02-01 Dave Love <fx@gnu.org>
15232
15233 * Makefile.in: Fix some dependencies.
15234
15235 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15236 set it to nil before returning.
15237
15238 * composite.c (update_compositions): Fix type error.
15239
15240 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15241
152422008-02-01 Kenichi Handa <handa@m17n.org>
15243
15244 * xterm.c (x_new_font): Optimize for the case that the font is
15245 already set for the frame.
15246
152472008-02-01 Kenichi Handa <handa@m17n.org>
15248
15249 * chartab.c (char_table_ascii): Check if the char table contents
15250 is sub-char-table or not.
15251 (char_table_set, char_table_set_range): Fix argument to
15252 char_table_ascii.
15253
15254 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15255 (detect_coding_utf_8, detect_coding_utf_16)
15256 (detect_coding_emacs_mule, detect_coding_iso_2022)
15257 (detect_coding_sjis, detect_coding_big5)
15258 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15259 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15260 sequence is valid in this coding system. Change callers.
15261 (MAX_ANNOTATION_LENGTH): New macro.
15262 (ADD_ANNOTATION_DATA): New macro.
15263 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15264 ADD_ANNOTATION_DATA. Change the format of annotation data.
15265 (ADD_CHARSET_DATA): New macro.
15266 (emacs_mule_char): New argument ID. Change callers.
15267 (decode_coding_emacs_mule, decode_coding_iso_2022)
15268 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15269 Produce charset annotation data in coding->charbuf.
15270 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15271 to charset annotation data in coding->charbuf.
15272 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15273 coding->common_flags if the coding system is iso-2022 based and
15274 uses designation.
15275 (produce_composition): Adjust for the new annotation data format.
15276 (produce_charset): New function.
15277 (produce_annotation): Handle charset annotation.
15278 (handle_composition_annotation, handle_charset_annotation): New
15279 functions.
15280 (consume_chars): Handle charset annotation. Utilize the above two
15281 functions.
15282 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15283 buffer, get the deleted text as a string and set
15284 coding->src_object to that string.
15285 (detect_coding, detect_coding_system): Use the new struct
15286 coding_detection_info.
15287
15288 * coding.h (struct coding_detection_info): New structure.
15289 (struct coding_system): Adjust prototype of the member `detector'.
15290 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15291
152922008-02-01 Kenichi Handa <handa@m17n.org>
15293
15294 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15295
152962008-02-01 Dave Love <fx@gnu.org>
15297
15298 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15299 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15300 to new local and nullify apropos_accumulate before returning.
15301 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15302
153032008-02-01 Kenichi Handa <handa@m17n.org>
15304
15305 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15306 correctly.
e3eea1fc 15307
aac0c6e3
MR
153082008-02-01 Dave Love <fx@gnu.org>
15309
15310 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15311
153122008-02-01 Kenichi Handa <handa@m17n.org>
15313
15314 The following changes are to make character composition happen
15315 automatically on displaying.
15316
15317 * Makefile.in (lisp, shortlisp): Add composite.elc.
15318
15319 * composite.h (Qauto_composed, Vauto_composition_function)
15320 (Qauto_composition_function): Extern them.
15321
15322 * composite.c (Vcomposition_function_table)
15323 (Qcomposition_function_table): Delete variables.
15324 (Qauto_composed, Vauto_composition_function)
15325 (Qauto_composition_function): New variables.
15326 (run_composition_function): Don't call
15327 compose-chars-after-function.
15328 (update_compositions): Clear `auto-composed' text property.
15329 (compose_chars_in_text): Delete this function.
15330 (syms_of_composite): Staticpro Qauto_composed and
15331 Qauto_composition_function. Declare Vauto_composition_function as
15332 a Lisp variable.
15333
15334 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15335
15336 * xdisp.c (it_props): Add an entry for Qauto_composed.
15337 (handle_auto_composed_prop): New function.
15338
15339 * xselect.c (selection_data_to_lisp_data): Don't call
15340 compose_chars_in_text.
15341
153422008-02-01 Dave Love <fx@gnu.org>
15343
15344 * keyboard.c (read_char): Modify checking around use of
15345 Vkeyboard_translate_table.
15346
15347 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15348 and fix C types.
15349
153502008-02-01 Kenichi Handa <handa@m17n.org>
15351
15352 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15353 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15354 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15355 the case that the last byte is '\r' correctly.
15356 (decode_coding): Flush out the unprocessed data correctly.
15357 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15358
153592008-02-01 Dave Love <fx@gnu.org>
15360
15361 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15362 Add XK_ISO... case.
15363 (xaw_scroll_callback): Revert last change.
15364
153652008-02-01 Kenichi Handa <handa@m17n.org>
15366
15367 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15368
153692008-02-01 Kenichi Handa <handa@m17n.org>
15370
15371 * xfaces.c (Vface_resizing_fonts): New variable.
15372 (struct font_name): New member `resizing_ratio'.
15373 (font_resizing_ratio): New function.
15374 (split_font_name): Set font->resizing_ratio.
15375 (better_font_p): Pay attention to font->resizing_ratio.
15376 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15377 RESX, and RESY fields.
15378 (try_alternative_families): Try scalable fonts if
15379 Vscalable_fonts_allowed is not Qt.
15380 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15381
153822008-02-01 Dave Love <fx@gnu.org>
15383
15384 * xterm.c (xaw_scroll_callback): Cast correctly.
15385
153862008-02-01 Dave Love <fx@gnu.org>
15387
15388 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15389 (lispy_kana_keys): Comment out.
15390 (make_lispy_event) [XK_kana_A]: Comment out.
15391
15392 * xterm.c (xaw_scroll_callback): Cast call_data.
15393 (XTread_socket): Deal with ASCII keysyms.
15394 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15395
153962008-02-01 Dave Love <fx@gnu.org>
15397
15398 * xterm.c (Vx_keysym_table): New.
15399 (syms_of_xterm): Initialize it.
15400 (XTread_socket): Use it.
15401 From head: Eliminate incorrect optimization that tried to avoid
15402 decoding the output of X*LookupString.
15403 (x_get_font_repertory): Delete charset declaration.
15404
154052008-02-01 Kenichi Handa <handa@m17n.org>
15406
15407 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15408 return 0.
15409 (Fdefine_coding_system_internal): Setup
15410 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15411
154122008-02-01 Dave Love <fx@gnu.org>
15413
15414 * coding.c (Fcheck_coding_system): Doc fix.
15415
15416 * editfns.c (Finsert_byte): Return a proper value.
15417
154182008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * coding.c (decode_coding): Fix args to translate_chars. Pay
15421 attention to Vstandard_translation_table_for_decode.
15422 (encode_coding): Fix args to translate_chars. Pay attention to
15423 Vstandard_translation_table_for_encode.
15424
15425 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15426 SINGLE_BYTE_CHAR_P.
15427
15428 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15429 not by SINGLE_BYTE_CHAR_P.
15430
15431 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15432 SINGLE_BYTE_CHAR_P.
15433
15434 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15435 SINGLE_BYTE_CHAR_P.
15436
15437 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15438 by SINGLE_BYTE_CHAR_P.
15439
15440 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15441 SINGLE_BYTE_CHAR_P.
15442
154432008-02-01 Dave Love <fx@gnu.org>
15444
15445 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15446
154472008-02-01 Dave Love <fx@gnu.org>
15448
15449 * fns.c (Flanginfo): Fix typo.
15450
15451 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15452
154532008-02-01 Kenichi Handa <handa@m17n.org>
15454
15455 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15456 (detect_coding_emacs_mule, detect_coding_iso_2022)
15457 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15458 incomplete byte sequence. Don't update *mask when correctly detected.
15459 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15460 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15461 (detect_coding, detect_coding_system): Adjust for the changes above.
15462
154632008-02-01 Kenichi Handa <handa@m17n.org>
15464
15465 * character.c (char_string): Rename from
15466 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15467 (string_char): Rename from string_char.
15468
15469 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15470 if C is greater than MAX_3_BYTE_CHAR.
15471 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15472 string_char instead of string_char_with_unification.
15473
154742008-02-01 Dave Love <fx@gnu.org>
15475
15476 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15477
154782008-02-01 Kenichi Handa <handa@m17n.org>
15479
15480 * keymap.c (push_key_description): Pay attention to force_multibyte.
15481
15482 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15483
154842008-02-01 Dave Love <fx@gnu.org>
15485
15486 * charset.c (define_charset_internal): Rename `supprementary'.
15487
15488 * Makefile.in (lisp, shortlisp): Remove latin-N.
15489
154902008-02-01 Dave Love <fx@gnu.org>
15491
15492 * xfns.c (x_window, x_window): Use use_xim.
15493
15494 * xterm.c (use_xim): Initialize.
15495 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15496 (x_term_init): Maybe set use_xim.
15497
15498 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15499
155002008-02-01 Kenichi Handa <handa@m17n.org>
15501
15502 * search.c (search_buffer): Fix case-fold-search of multibyte
15503 characters.
15504 (boyer_moore): Rename the last argument to char_high_bits.
15505
155062008-02-01 Kenichi Handa <handa@m17n.org>
15507
15508 * xdisp.c (display_string): Fix for the case of zero width glyph.
15509
15510 * xfns.c (x_set_font): Change the error message of the case that
15511 x_new_fontset returns Qt.
15512
15513 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15514 (Finternal_set_lisp_face_attribute): Use signal_error for the
15515 error of invalid fontset.
15516
15517 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15518 fontset, return Qt.
15519
155202008-02-01 Dave Love <fx@gnu.org>
15521
15522 * unexelf.c (unexec): Make .got handling not SGI-specific.
15523
15524 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15525
15526 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15527
15528 * keyboard.c (read_key_sequence): Fix type error.
15529
15530 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15531 type error.
15532
15533 * fontset.c (fontset_add): Return Lisp_Object.
15534
155352008-02-01 Dave Love <fx@gnu.org>
15536
15537 * charset.h (charset_ordered_list_tick): Declare extern.
15538
155392008-02-01 Kenichi Handa <handa@m17n.org>
15540
15541 The following changes (and some of 2008-02-01 changes of mine) are
15542 for handling syntax, category, and case conversion for unibyte
15543 characters by converting them to multibyte on the fly. With these
15544 changes, we don't have to setup syntax and case tables for unibyte
15545 characters in each language environment.
15546
15547 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15548 multibyte if necessary.
15549
15550 * bytecode.c (Fbyte_code): Likewise.
15551
15552 * character.h (LEADING_CODE_LATIN_1_MIN)
15553 (LEADING_CODE_LATIN_1_MAX): New macros.
15554 (unibyte_to_multibyte_table): Extern it.
15555 (unibyte_char_to_multibyte): New macro.
15556 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15557 (CHAR_LEADING_CODE): New macro.
15558 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15559
15560 * character.c (unibyte_to_multibyte_table): New variable.
15561 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15562 (multibyte_char_to_unibyte): If C is an eight-bit character,
15563 convert it to the corresponding byte value.
15564
15565 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15566 not 1, signals an error. Update the elements of
15567 unibyte_to_multibyte_table.
15568 (init_charset_once): Initialize unibyte_to_multibyte_table.
15569 (syms_of_charset): Define the charset `iso-8859-1'.
15570
15571 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15572 as is without converting it to unibyte. In a unibyte buffer,
15573 convert C to multibyte before checking the syntax.
15574
15575 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15576
15577 * minibuf.c (Fminibuffer_complete_word): Use the macro
15578 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15579
15580 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15581
15582 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15583 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15584 that is zero, convert an eight-bit char to multibyte.
15585 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15586 non-emacs case.
15587 (PATFETCH): Convert an eight-bit char to multibyte.
15588 (HANDLE_UNIBYTE_RANGE): New macro.
15589 (regex_compile): Setup the compiled pattern for multibyte chars
15590 even if the given regex string is unibyte. Use PATFETCH_RAW
15591 instead of PATFETCH in many places. To handle `charset'
15592 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15593 only for ASCII chars.
15594 (analyse_first) <exactn>: Simplify because the compiled pattern
15595 is multibyte.
15596 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15597 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15598 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15599 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15600 multibyte always 1.
15601 (re_search_2): In emacs, set the locale variable multibyte to 1,
15602 otherwise to 0. New local variable target_multibyte. Check it
15603 to decide the multibyteness of STR1 and STR2. If
15604 target_multibyte is zero, convert unibyte chars to multibyte
15605 before translating and checking fastmap.
15606 (TARGET_CHAR_AND_LENGTH): New macro.
15607 (re_match_2_internal): In emacs, set the locale variable multibyte
15608 to 1, otherwise to 0. New local variable target_multibyte. Check
15609 it to decide the multibyteness of STR1 and STR2. Use
15610 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15611 <charset, charset_not>: If multibyte is nonzero, check fastmap
15612 only for ASCII chars. Call bcmp_translate with
15613 target_multibyte, not with multibyte.
15614 <begline>: Declare the local variable C as `unsigned'.
15615 (bcmp_translate): Change the last arg name to target_multibyte.
15616
15617 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15618 the regexp pattern and the matching target. Set cp->buf.multibyte
15619 to the multibyteness of the regexp pattern. Set
15620 cp->but.target_multibyte to the multibyteness of the matching target.
15621 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15622 FETCH_STRING_CHAR_ADVANCE.
15623 (Freplace_match): Convert unibyte chars to multibyte.
15624
15625 * syntax.c (char_quoted, back_comment, scan_words)
15626 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15627 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15628 unibyte chars to multibyte.
15629 (skip_chars): Delete the arg syntaxp, and move the code for
15630 handling syntaxes to skip_syntaxes. Change callers.
15631 Fix the case that the multibyteness of STRING and the current
15632 buffer doesn't match.
15633 (skip_syntaxes): New function.
15634 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15635 SINGLE_BYTE_CHAR_P.
15636
156372008-02-01 Kenichi Handa <handa@m17n.org>
15638
15639 * xfaces.c (QCfontset): New variable.
15640 (LFACE_FONTSET): New macro.
15641 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15642 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15643 (Finternal_set_lisp_face_attribute)
15644 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15645 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15646 check also LFACE_FONTSET_INDEX.
15647 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15648 attrs[LFACE_FONT_INDEX].
15649 (syms_of_xfaces): Intern and staticpro QCfontset.
15650
15651 * dispextern.h (enum lface_attribute_index): New member
15652 LFACE_FONTSET_INDEX.
15653
15654 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15655
156562008-02-01 Kenichi Handa <handa@m17n.org>
15657
15658 * coding.c (coding_set_destination): Fix coding->destination for
15659 the case converting a region.
15660 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15661 (encode_coding_object): Fix coding->dst_pos and
15662 coding->dst_pos_byte for the case converting a region.
15663
15664 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15665
15666 * character.h (BYTE8_STRING): New macro.
15667
15668 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15669
156702008-02-01 Kenichi Handa <handa@m17n.org>
15671
15672 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15673 characters by octal form.
15674
15675 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15676
15677 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15678 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15679 _fetch_multibyte_char_len.
15680 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15681
15682 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15683
15684 * casefiddle.c (casify_object): Simplify. Handle the case that
15685 the case conversion change the byte length.
15686 (casify_region): Likewise.
15687
15688 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15689
15690 * character.c (_fetch_multibyte_char_len): Delete this variable.
15691 (syms_of_character): Setup Vprintable_chars.
15692
15693 * editfns.c (Fchar_equal): Fix for the unibyte case.
15694 (Finsert_byte): New function.
15695 (syms_of_editfns): Defsubr it.
15696
15697 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15698 of direct code 0x3ffff.
15699
15700 * search.c (Freplace_match): Fix for the unibyte case.
15701
157022008-02-01 Kenichi Handa <handa@m17n.org>
15703
15704 * lread.c (safe_to_load_p): Fix the logic.
15705
15706 * syntax.c (scan_words): Don't treat characters belonging to
15707 different scripts as constituting a word.
15708
15709 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15710
15711 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15712
15713 * emacs.c (main): In the case of --unibyte, instead of aborting on
15714 finding non-empty buffer, make it unibyte.
15715
157162008-02-01 Kenichi Handa <handa@m17n.org>
15717
15718 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15719 to create a fontset.
15720
157212008-02-01 Dave Love <fx@gnu.org>
15722
15723 * character.c (Funibyte_char_to_multibyte): Doc fix.
15724
15725 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15726
157272008-02-01 Kenichi Handa <handa@m17n.org>
15728
15729 * fontset.c (fontset_add): Make the type `int'.
15730 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15731
15732 * character.c (unibyte_char_to_multibyte)
15733 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15734 charset_unibyte, not charset_primary.
15735
15736 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15737
15738 * charset.c (charset_unibyte): Rename from charset_primary.
15739 (Funibyte_charset): Rename from Fprimary_charset.
15740 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15741 (syms_of_charset): Adjust for the above changes.
15742
15743 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15744 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15745 it->multibyte_p is zero.
15746
15747 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15748 Delete extern.
15749
157502008-02-01 Kenichi Handa <handa@m17n.org>
15751
15752 * coding.c (Fdefine_coding_system_internal): Fix category setting
15753 for a coding system of type iso-2022.
15754
157552008-02-01 Kenichi Handa <handa@m17n.org>
15756
15757 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15758
157592008-02-01 Kenichi Handa <handa@m17n.org>
15760
15761 * syntax.c (Vnext_word_boundary_function_table): New variable.
15762 (next-word-boundary-function-table): Declare it as a Lisp variable
15763 in syms_of_syntax.
15764 (scan_words): Call functions in Vnext_word_boundary_function_table
15765 if any.
15766
15767 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15768
15769 * fontset.c (fs_load_font): If fontp->charset is not negative,
15770 return fontp without setting its members.
15771
157722008-02-01 Dave Love <fx@gnu.org>
15773
15774 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15775
15776 * m/sparc.h (HAVE_ALLOCA): Delete.
15777
15778 * s/irix6-5.h: Don't include strings.h.
15779 (bcopy, bzero, bcmp): Don't undef.
15780
15781 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15782
15783 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15784 (TIOCSIGSEND): Don't test IRIX6.
15785 (bcopy, bzero, bcmp): Define conditionally.
15786
157872008-02-01 Kenichi Handa <handa@m17n.org>
15788
15789 * buffer.c (Qas, Qmake, Qto): New variables.
15790 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15791 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15792
15793 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15794 we are inserting a process output into a multibyte buffer.
15795
15796 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15797 multibyte_char_to_unibyte.
15798
15799 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15800 by the primary charset, make it eight-bit char.
15801 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15802
15803 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15804 (charset_8_bit__control, charset_8_bit_graphic)
15805 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15806 (define_charset_internal): New function.
15807 (syms_of_charset): Call define_charset_internal for pre-defined
15808 charsets.
15809
15810 * charset.h (charset_8_bit): Extern it.
15811
15812 * coding.c (make_conversion_work_buffer): Adjust for the change
15813 of Fset_buffer_multibyte.
15814 (encode_coding_raw_text): Increment p0 in the loop.
15815
15816 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15817
15818 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15819 for the change of Fset_buffer_multibyte.
15820
15821 * fns.c (Fstring_to_multibyte): New function.
15822 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15823
158242008-02-01 Dave Love <fx@gnu.org>
15825
15826 * xfns.c (x_put_x_image): Declare args.
15827
15828 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15829 (try_font_list): Declare an arg.
15830
15831 * xdisp.c (message2_nolog, set_message): Declare an arg.
15832
15833 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15834
15835 * syntax.c (scan_sexps_forward): Declare an arg.
15836
15837 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15838 Declare an arg.
15839
15840 * lisp.h (Fnew_fontset): Declare.
15841
15842 * keymap.c (push_key_description): Call CHARACTERP correctly.
15843
15844 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15845 (face_for_char): Delete unused vars.
15846 (Fset_fontset_font): Doc fix. Delete unused vars.
15847
15848 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15849
15850 * composite.c (update_compositions): Declare arg.
15851
15852 * cm.c (calccost, cmgoto): Declare args.
15853
15854 * charset.c: Remove `emacs' conditional. Doc fixes.
15855 (map_char_table_for_charset): Declare.
15856
15857 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15858
15859 * ccl.c: Remove `emacs' conditional.
15860
158612008-02-01 Kenichi Handa <handa@m17n.org>
15862
15863 The following changes are to allow specifying multiple font
15864 patterns for a character range (specified by script or charset).
15865
15866 * Makefile.in (abbrev.o): Depend on syntax.h.
15867 (xfaces.o): Depend on charset.h.
15868
15869 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15870 SINGLE_BYTE_CHAR_P.
15871
15872 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15873
15874 * character.h (Vchar_script_table): Extern it.
15875
15876 * character.c (Vscript_alist): Delete.
15877 (Vchar_script_table, Qchar_script_table): New variable.
15878 (syms_of_character): Declare Vchar_script_table as a lisp variable
15879 and initialize it.
15880
15881 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15882 have property char-table-extra-slots, make no extra slot.
15883
15884 * dispextern.h (struct face): Delete member `charset'.
15885 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15886 SINGLE_BYTE_CHAR_P.
15887 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15888 Add prototypes.
15889 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15890 (generate_ascii_font_name): Rename from generate_ascii_font.
15891
15892 * fontset.h (get_font_repertory_func): New prototype.
15893 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15894 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15895
15896 * fontset.c (Qprepend, Qappend): New variables.
15897 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15898 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15899 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15900 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15901 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15902 (load_font_get_repertory): New functions.
15903 (fontset_set): Delete.
15904 (fontset_face): New arg FACE. Return face ID, not face.
15905 Complete re-write to handle new fontset structure. Change caller.
15906 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15907 (face_for_char): Don't call lookup_face.
15908 (make_fontset_for_ascii_face): New arg FACE.
15909 (fs_load_font): New arg CHARSET_ID. Don't check
15910 Vfont_encoding_alist here.
15911 (find_font_encoding): New function.
15912 (list_fontsets): Use STRINGP, not ! NILP.
15913 (accumulate_script_ranges): New function.
15914 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15915 re-written to handle new fontset structure.
15916 (Ffontset_font): Return a copy of element.
15917 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15918 docstring of font-encoding-alist.
15919
15920 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15921 (Fset_fotset_font): Fix arguments to 5.
15922
15923 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15924
15925 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15926 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15927 (highlight_trailing_whitespace): Adjust for the change of
15928 lookup_named_face.
15929
15930 * xfaces.c: Include charset.h.
15931 (load_face_font): Delete argument C. Change caller.
15932 (generate_ascii_font_name): Rename from generate_ascii_font.
15933 (font_name_registry): New function.
15934 (cache_face): Store ascii faces before non-ascii faces in buckets.
15935 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15936 Lookup only ascii faces.
15937 (lookup_non_ascii_face): New function.
15938 (lookup_named_face): Delete argument C. Change caller.
15939 (lookup_derived_face): Delete argument C. Change caller.
15940 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15941 a string, just call font_list with it.
15942 (choose_face_font): Delete arguments FACE and C. New arg
15943 FONT_SPEC. Change caller.
15944 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15945 Change caller.
15946 (realize_non_ascii_face): New function.
15947 (realize_x_face): Call load_face_font here.
15948 (realize_tty_face): Delete argument C. Change caller.
15949 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15950 get a face ID.
15951 (dump_realized_face): Don't print charset of FACE.
15952
15953 * xfns.c (x_set_font): Always call x_new_fontset and
15954 store_frame_parameter.
15955 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15956 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15957
15958 * xterm.h (x_get_font_repertory): Extern it.
15959
15960 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15961 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15962 it->multibyte_p is zero.
15963 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15964 (x_new_fontset): If FONTSETNAME doesn't match any existing
15965 fontsets, create a new one.
15966 (x_get_font_repertory): New function.
15967
159682008-02-01 Kenichi Handa <handa@m17n.org>
15969
15970 * coding.c (Ffind_coding_systems_region_internal): Detect an
15971 ASCII only string correctly.
15972
15973 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15974 version is 0.
15975
159762008-02-01 Kenichi Handa <handa@m17n.org>
15977
15978 * lread.c: Include "coding.h".
15979 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15980 (load_each_byte, unread_char): New variables.
15981 (readchar_backlog): Delete.
15982 (readchar): Return a character unless load_each_byte is nonzero.
15983 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15984 cons. If unread_char is not -1, simply return it.
15985 (unreadchar): Handle the case that readcharfun is
15986 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
15987 (read_multibyte): Delete.
15988 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15989 (read_emacs_mule_char): New functions.
15990 (Fload): Even if the file doesn't have the extension ".elc", if
15991 safe_to_load_p returns a positive version number, assume that the
15992 file contains bytecompiled code. If the version is less than 22,
15993 load the file while decoding multibyte sequences by emacs-mule.
15994 (readevalloop): Don't use readchar_backlog.
15995 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
15996 (Fread_from_string): Pay attention to the case that STREAM is a cons.
15997 (read_escape): Delete the arg BYTEREP.
15998 (read1): Set load_each_byte to 1 temporarily while handling
15999 #@NUMBER. Don't call read_multibyte.
16000 (read_vector): Call Fread with a cons. If readcharfun is
16001 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16002 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16003 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16004 and Qload_force_doc_strings.
16005
160062008-02-01 Kenichi Handa <handa@m17n.org>
16007
16008 * xdisp.c (face_before_or_after_it_pos): Call
16009 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16010
160112008-02-01 Kenichi Handa <handa@m17n.org>
16012
16013 * character.h (TRAILING_CODE_P): New macro.
16014 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16015 (string_char_with_unification): Fix prototype.
16016 (Vscript_alist): Extern it.
16017
16018 * character.c (Vscript_alist): New variable.
16019 (string_char_with_unification, str_as_unibyte)
16020 (string_escape_byte8): Add `const' to local variables.
16021 (syms_of_character): Declare script-alist as a Lisp variable.
16022
16023 * charset.h (Vcharset_ordered_list): Extern it.
16024 (charset_ordered_list_tick): Extern it.
16025 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16026 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16027 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16028 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16029 (Funify_charset): Adjust for the change of Funify_charset.
16030
16031 * charset.c (charset_ordered_list_tick): New variable.
16032 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16033 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16034 deunify intead of unify a charset.
16035 (string_xstring_p): Add `const' to local variables.
16036 (find_charsets_in_text): Add `const' to arguments and local variables.
16037 (encode_char): Adjust for the change of Funify_charset. Fix
16038 detecting of invalid code.
16039 (Fset_charset_priority): Increment charset_ordered_list_tick.
16040 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16041 and TO_CODE.
16042
16043 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16044 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16045 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16046 (decode_coding_ccl, consume_chars)
16047 (Ffind_coding_systems_region_internal)
16048 (Fcheck_coding_systems_region): Add `const' to local variables.
16049
16050 * print.c (print_object): Use octal form for printing the
16051 contents of a bool vector.
16052
160532008-02-01 Dave Love <fx@gnu.org>
16054
16055 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16056 <version == 20>: Refuse to load.
16057
160582008-02-01 Dave Love <fx@gnu.org>
16059
16060 * fns.c: Move coding.h.
16061 (Qcodeset, Qdays, Qmonths): New.
16062 (concat): Use CHARACTERP instead of INTEGERP.
16063 (Flocale_codeset): Delete.
16064 (Flanginfo): New function.
16065 (syms_of_fns): Change accordingly.
16066
16067 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16068
160692008-02-01 Dave Love <fx@gnu.org>
16070
16071 * casetab.c (init_casetab_once, init_casetab_once): Fix
16072 CHAR_TABLE_SET call.
16073
16074 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16075
16076 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16077
16078 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16079 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16080 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16081
16082 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16083
16084 * coding.c (ENCODE_DESIGNATION, decode_eol)
16085 (make_conversion_work_buffer, code_conversion_restore)
16086 (Fdefine_coding_system_internal): Convert Lisp types.
16087 (code_conversion_restore): Use EQ, not ==.
16088 (Fencode_coding_string): Fix code_convert_string call.
16089
16090 * coding.h (code_convert_region): Fix prototype.
16091
16092 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16093
16094 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16095 (Ffontset_info): Convert Lisp types.
16096
16097 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16098
16099 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16100
16101 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16102
16103 * chartab.c: Include "...h", not <...h> in some cases.
16104
16105 * callproc.c (Fcall_process): Remove unused variables.
16106
161072008-02-01 Dave Love <fx@gnu.org>
16108
16109 * coding.c (Fset_coding_system_priority): Allow null arg list.
16110
161112008-02-01 Dave Love <fx@gnu.org>
16112
16113 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16114 (Fself_insert_and_exit): Use CHARACTERP.
16115
16116 * callproc.c (Fcall_process): Remove unused vars.
16117
16118 * xterm.c (XTread_socket): Add extra dead keysyms.
16119
16120 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16121
16122 * dispextern.h: Remove prototypes for redraw_frame,
16123 redraw_garbaged_frames.
16124
16125 * cmds.c (Fself_insert_command): Use CHARACTERP.
16126
16127 * chartab.c (make_sub_char_table): Remove unused var.
16128 (Fset_char_table_default, Fmap_char_table): Doc fix.
16129
16130 * keymap.c (access_keymap): Remove generic char code.
16131 (push_key_description): Use CHARACTERP.
16132
161332008-02-01 Dave Love <fx@gnu.org>
16134
16135 * charset.c: Doc fixes.
16136 (Funify_charset): Extra checking.
16137
161382008-02-01 Dave Love <fx@gnu.org>
16139
16140 * lread.c: Remove some unused variables.
16141 (safe_to_load_p): If safe, return the magic number version byte.
16142 (Fload): Maybe use load-with-code-conversion.
16143
161442008-02-01 Kenichi Handa <handa@m17n.org>
16145
16146 * category.c (Fmodify_category_entry): Don't modify the contents
16147 of category_set for characters out of the range. Avoid
16148 unnecessary modification.
16149
16150 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16151 Vchar_unify_table. The default value of the table is now nil.
16152
16153 * character.c (syms_of_character): Setup Vchar_width_table for
16154 eight-bit-control and raw-byte chars.
16155
16156 * charset.h (enum define_charset_arg_index): Delete
16157 charset_arg_parents and add charset_arg_subset and
16158 charset_arg_superset.
16159 (enum charset_attr_index): Delete charset_parents and add
16160 charset_subset and charset_superset.
16161 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16162 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16163 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16164 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16165 (CHARSET_SUPERSET): New macros.
16166 (charset_work): Extern it.
16167 (ENCODE_CHAR): Use charset_work.
16168 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16169 (map_charset_chars): Extern it.
16170
16171 * charset.c (load_charset_map): Set the default value of encoder
16172 and deunifier char-tables to nil.
16173 (map_charset_chars): Change argument. Change callers. Use
16174 map_char_table_for_charset instead of map_char_table.
16175 (Fmap_charset_chars): New optional args from_code and to_code.
16176 (Fdefine_charset_internal): Adjust for the change of
16177 `define-charset' (:parents -> :subset or :superset).
16178 (charset_work): New variable.
16179 (encode_char, syms_of_charset): Adjust for the change of
16180 Fdefine_charset_internal.
16181 (Ffind_charset_string): Setup the vector `charsets' correctly.
16182
16183 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16184 the previous change.
16185 (char_table_ref_and_range): Adjust for the above change.
16186 (map_sub_char_table_for_charset): New function.
16187 (map_char_table_for_charset): New function.
16188
16189 * keymap.c (describe_vector): Handle a char-table directly here.
16190 (describe_char_table): Delete.
16191
16192 * lisp.h (map_charset_chars): Delete.
16193
161942008-02-01 Dave Love <fx@gnu.org>
16195
16196 * fns.c (count_combining): Comment out (unused).
16197 (Flocale_codeset): New.
16198 (syms_of_fns): Defsubr it.
16199
16200 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16201 (size_t): Remove.
16202
162032008-02-01 Dave Love <fx@gnu.org>
16204
16205 * Makefile.in (chartab.o): Depend on charset.h.
16206
162072008-02-01 Kenichi Handa <handa@m17n.org>
16208
16209 * character.c (syms_of_character): Set the default value of
16210 Vprintable_chars to Qnil.
16211
162122008-02-01 Dave Love <fx@gnu.org>
16213
16214 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16215
162162008-02-01 Kenichi Handa <handa@m17n.org>
16217
16218 * charset.c (load_charset_map): Handle the case that from < to
16219 correctly.
16220
16221 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16222 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16223 Pay attention to raw-8-bit chars.
16224
162252008-02-01 Kenichi Handa <handa@m17n.org>
16226
16227 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16228 It is not bytecompiled now.
16229
16230 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16231 (charset_jisx0208): New variables.
16232 (Fdefine_charset_internal): Setup them if appropriate.
16233 (init_charset_once): Initialize them to -1.
16234
16235 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16236 (charset_jisx0208): Extern them.
16237
16238 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16239 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16240 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16241 (setup_iso_safe_charsets): Fix arguments to Fassq.
16242 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16243 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16244 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16245 (encode_coding_iso_2022): Change the 1st arg to
16246 ENCODE_ISO_CHARACTER to a variable.
16247
162482008-02-01 Kenichi Handa <handa@m17n.org>
16249
16250 * charset.h (enum define_charset_arg_index): New enums
16251 charset_arg_min_code and charset_arg_max_code.
16252 (struct charset): New member char_index_offset.
16253
16254 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16255 Take charset->char_index_offset into account.
16256 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16257 args[charset_arg_max_code]. Setup charset.char_index_offset.
16258 (syms_of_charset): Fix args to Fdefine_charset_internal.
16259
162602008-02-01 Dave Love <fx@gnu.org>
16261
16262 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16263
162642008-02-01 Dave Love <fx@gnu.org>
16265
16266 * coding.c: Doc fixes.
16267 (Fcoding_system_aliases): Fix return value.
16268 (Qmac): Remove (duplicated) definition.
16269
162702008-02-01 Dave Love <fx@gnu.org>
16271
362654a6
JB
16272 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16273 New functions.
aac0c6e3
MR
16274
16275 * character.c (Fstring): Doc fix.
16276
16277 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16278
362654a6 16279 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16280 (font-encoding-alist): Doc fix.
16281
162822008-02-01 Dave Love <fx@gnu.org>
16283
16284 * term.c (costs_set): Declare static, non-initialized for pcc.
16285 (encode_terminal_code): Remove unused var.
16286
16287 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16288 for K&R.
16289
16290 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16291
16292 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16293 (suffixes): Move out of make_subsidiaries for K&R.
16294
16295 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16296
16297 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16298
162992008-02-01 Dave Love <fx@gnu.org>
16300
16301 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16302
16303 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16304
163052008-02-01 Yong Lu <lyongu@asia-infonet.com>
16306
16307 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16308
16309 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16310
163112008-02-01 Kenichi Handa <handa@m17n.org>
16312
16313 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16314 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16315
163162008-02-01 Kenichi Handa <handa@m17n.org>
16317
16318 * coding.c (decode_coding_charset): Adjust for the change of
16319 Fdefine_coding_system_internal.
16320 (Fdefine_coding_system_internal): For a coding system of
16321 `charset' type, store a list of charset IDs in
16322 `charset_attr_charset_valids' element of coding attributes.
16323
163242008-02-01 Kenichi Handa <handa@m17n.org>
16325
16326 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16327 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16328 caller. Handle 2-byte and 3-byte charsets correctly.
16329 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16330 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16331 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16332 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16333 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16334 sequence.
16335 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16336 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16337 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16338 and alt&rule composition.
16339 (decode_coding_iso_2022): Handle composition correctly.
16340 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16341
16342 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16343 re-defining a charset. If the charset has :emacs-mule-id, setup
16344 emacs_mule_bytes.
16345 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16346
163472008-02-01 Kenichi Handa <handa@m17n.org>
16348
16349 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16350 (encode_coding_big5, encode_coding_charset): If coding requires safe
16351 encoding, produce a character specified by
16352 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16353
163542008-02-01 Dave Love <fx@gnu.org>
16355
16356 * xterm.c (XSetIMValues): Declare.
16357
16358 * process.c: Conditionally include sys/wait.h, pty.h.
16359
16360 * print.c (print_object): Fix print format for 64-bit systems.
16361
16362 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16363
16364 * buffer.c (emacs_strerror): Declare.
16365
16366 * fontset.c (Fclear_face_cache): Declare.
16367 (accumulate_font_info): Comment-out (unused).
16368 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16369 variables.
16370
16371 * character.h (string_escape_byte8): Declare.
16372
16373 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16374 unused vars.
16375 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16376 (Fmap_charset_chars): Doc fix.
16377
16378 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16379 (Fset_coding_system_priority, Fset_coding_system_priority)
16380 (Fdefine_coding_system_internal): Doc fix.
16381
163822008-02-01 Dave Love <fx@gnu.org>
16383
16384 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16385
163862008-02-01 Kenichi Handa <handa@m17n.org>
16387
16388 * character.c (string_escape_byte8): Make multibyte string with
16389 correct size.
16390
16391 * charset.c (Fmake_char): Delete unnecessary code.
16392
163932008-02-01 Kenichi Handa <handa@m17n.org>
16394
16395 * xfns.c (x_encode_text): Allocate coding.destination here, and
16396 call encode_coding_object with dst_object Qnil.
16397
16398 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16399 multibyte form correctly.
16400
16401 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16402 against Vfont_encoding_alist.
16403
16404 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16405 handling of charset list.
16406 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16407 (decode_coding_object): Move point to coding->dst_pos before
16408 calling post-read-conversion function.
16409 (encode_coding_object): Give correct arguments to
16410 pre-write-conversion. Ignore the return value of
16411 pre-write-conversion function. Pay attention to the case that
16412 pre-write-conversion changes the current buffer. If dst_object is
16413 Qt, even if coding->src_bytes is zero, allocate at least one byte
16414 to coding->destination.
16415
16416 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16417
16418 * charset.c (Fmake_char): Make it more backward compatible.
16419 (Fmap_charset_chars): Fix docstring.
16420
164212008-02-01 Dave Love <fx@gnu.org>
16422
16423 * coding.c: Doc fixes.
16424 (Fdefine_coding_system_alias): Use names, not symbols, in
16425 coding-system-alist.
16426
164272008-02-01 Kenichi Handa <handa@m17n.org>
16428
16429 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16430 of calling free_realized_face.
16431
164322008-02-01 Yong Lu <lyongu@asia-infonet.com>
16433
16434 * charset.c (read_hex): Don't treat SPC as a comment starter.
16435 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16436 (Fdecode_char): Fix typo.
16437
164382008-02-01 Kenichi Handa <handa@m17n.org>
16439
16440 * charset.h (struct charset): New member `code_space_mask'.
16441
16442 * coding.c (coding_set_source): Delete the local variable beg_byte.
16443 (encode_coding_charset, Fdefine_coding_system_internal):
16444 Delete the local variable charset.
16445 (Fdefine_coding_system_internal): Setup
16446 attrs[coding_attr_charset_valids] correctly.
16447
16448 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16449 member to check if CODE is valid or not.
16450 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16451 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16452 is within the range of charset->min_code and carset->max_code.
16453
164542008-02-01 Dave Love <fx@gnu.org>
16455
16456 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16457
16458 * dispextern.h (generate_ascii_font): Fix return type.
16459
16460 * xfaces.c (generate_ascii_font): Fix arg declaration.
16461
16462 * coding.c (coding_inherit_eol_type)
16463 (Fset_terminal_coding_system_internal)
16464 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16465
164662008-02-01 Kenichi Handa <handa@m17n.org>
16467
16468 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16469 multiple charsets correctly.
16470
164712008-02-01 Kenichi Handa <handa@m17n.org>
16472
16473 * search.c (boyer_moore): Fix handling of multibyte character
16474 translation.
16475
16476 * xdisp.c (display_mode_element): When the variable `elt' is
16477 changed, update `this' and `lisp_string'.
16478
164792008-02-01 Kenichi Handa <handa@m17n.org>
16480
16481 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16482
16483 * callproc.c (Fcall_process): Be sure to give the current buffer
16484 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16485
16486 * charset.c (struct charset_map_entries): New struct.
16487 (load_charset_map): Rename from parse_charset_map. New args
16488 entries and n_entries. Change caller.
16489 (load_charset_map_from_file): Rename from load_charset_map.
16490 Change caller. New arg control_flag. Call load_charset_map at
16491 the tail.
16492 (load_charset_map_from_vector): New function.
16493 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16494 (encode_char): If the charset is compact, change a character index
16495 to a code point.
16496
16497 * coding.c (coding_alloc_by_making_gap): Check the case that the
16498 source and destination are the same correctly.
16499 (decode_coding_raw_text): Set coding->consumed_char and
16500 coding->consumed to 0.
16501 (produce_chars): If coding->chars_at_source is nonzero, update
16502 coding->consumed_char and coding->consumed before calling
16503 alloc_destination.
16504 (Fdefine_coding_system_alias): Register ALIAS in
16505 Vcoding_system_alist.
16506 (syms_of_coding): Define `no-conversion' coding system at the tail.
16507
16508 * fileio.c (Finsert_file_contents): Set coding_system instead of
16509 val. If the current buffer is multibyte, always call
16510 decode_coding_gap.
16511
16512 * xfaces.c (try_font_list): Give higher priority to fontset's
16513 family than face's family.
16514
165152008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * callproc.c (Fcall_process): Be sure to give the current buffer
16518 to decode_coding_c_string.
16519
16520 * xfaces.c (try_font_list): Give a family specified in a fontset
16521 higher priority than a family specified in a face.
16522
165232008-02-01 Kenichi Handa <handa@m17n.org>
16524
16525 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16526 Fix arguments to insert_from_buffer.
16527
16528 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16529
165302008-02-01 Kenichi Handa <handa@m17n.org>
16531
16532 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16533 (decode_coding_gap): Set coding->dst_multibyte correctly.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16538 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16539 (encode_coding_utf_16): Substitute coding->default_char for
16540 non-Unicode characters.
16541 (decode_coding): Don't call record_insert here.
16542 (setup_coding_system): Initialize `surrogate' of
16543 coding->spec.utf_16 to 0.
16544 (EMIT_ONE_BYTE): Fix for multibyte case.
16545
16546 * insdel.c (insert_from_gap): Call record_insert.
16547
165482008-02-01 Kenichi Handa <handa@m17n.org>
16549
16550 * casefiddle.c (casify_region): Fix multibyte case.
16551
16552 * character.c (c_string_width): Add return type `int'.
16553 (char_string_with_unification): Delete arg ADVANCED.
16554
16555 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16556 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16557 (CHAR_STRING_ADVANCE): Make it do-while statement.
16558
16559 * chartab.c (sub_char_table_set_range): Optimize for the case
16560 DEPTH == 3. Add workaround code for a GCC optimization bug.
16561
16562 * charset.c (parse_charset_map): Remove an unused variable.
16563
16564 * coding.c: Delete unused variables.
16565
16566 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16567 earlier. If inserted is zero and the coding system doesn't
16568 require flushing, don't call decode_coding_gap.
16569
16570 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16571
165722008-02-01 Kenichi Handa <handa@m17n.org>
16573
16574 The following changes are for using Unicode as an internal
16575 character model, and use UTF-8 format for buffer/string
16576 representation.
16577
16578 * .gdbinit (xchartable): Adjust for the change of char table structure.
16579 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16580
16581 * Makefile.in (obj): Add character.o and chartab.o.
16582 (lisp, shortlisp): Remove utf-8.elc.
16583 (*.o): For many files, change dependency on charset.h to
16584 character.h, and add dependency on character.h.
16585 (character.o, chartab.o): New targets.
16586
16587 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16588 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16589 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16590 of "charset.h".
16591
16592 * dired.c, filelock.c: Include "character.h".
16593
16594 * alloc.c: Include "character.h" instead of "charset.h".
16595 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16596 (syms_of_alloc): Remove defsubr for Smake_char_table.
16597
16598 * buffer.c: Include "character.h" instead of "charset.h", don't
16599 include "coding.h".
16600 (Fset_buffer_multibyte): Adjust for UTF-8.
16601
16602 * buffer.h: EXFUN Fbuffer_live_p.
16603
16604 * callproc.c: Include "character.h" instead of "charset.h".
16605 (Fcall_process): Big change for the new code-conversion APIs.
16606
16607 * casetab.c: Include "character.h" instead of "charset.h".
16608 (set_canon, set_identity, shuffle): Adjust for the new
16609 map_char_table spec.
16610 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16611 accessing the char table structure.
16612
16613 * chartab.c: New file that implements char table.
16614
16615 * category.c: Include "character.h".
16616 (copy_category_entry): New function.
16617 (copy_category_table): Call map_char_table and copy_category_entry.
16618 (Fmake_category_table): Initialize all top-level slots.
16619 (char_category_set): New function.
16620 (modify_lower_category_set): Delete.
16621 (Fmodify_category_entry): Call char_table_ref_and_range.
16622
16623 * category.h (CATEGORY_SET): Just call char_category_set.
16624
16625 * ccl.c: Include "character.h".
16626 (Qccl, Qcclp): New variables.
16627 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16628 it's less than 256.
16629 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16630 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16631 and DST type.
16632 (ccl_driver): Change types of argument, adjust code accordingly.
16633 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16634 ccl_driver.
16635 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16636
16637 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16638 New members src_multibyte, dst_multibyte, consumed, and produced.
16639 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16640 (CODING_SPEC_CCL_PROGRAM): New macro.
16641 (ccl_driver): Update prototype.
16642 (Qccl, Qcclp, Fccl_program_p): Extern them.
16643 (CHECK_CCL_PROGRAM): New macro.
16644
16645 * character.c, character.h, chartab.c: New files.
16646
16647 * charset.c: Mostly re-written. Move character and multibyte sequence
16648 handling codes to character.c.
16649
16650 * charset.h: Mostly re-written. Move character and multibyte sequence
16651 handling codes to character.h.
16652
16653 * coding.c, coding.h: Mostly re-written.
16654
16655 * composite.c: Include "character.h" instead of "charset.h".
16656 (CHAR_WIDTH): Move to character.h.
16657 (HASH_KEY, HASH_VALUE): Delete.
16658
16659 * composite.h (enum composition_method): Change order of enumeration
16660 symbols.
16661
16662 * data.c: Include "character.h" instead of "charset.h".
16663 (Faref): Call CHAR_TABLE_REF for a char table.
16664 (Faset): Call CHAR_TABLE_SET for a char table.
16665
16666 * dispextern.h (free_realized_face, check_face_attribytes)
16667 (generate_ascii_font): Extern them.
16668 (free_realized_multibyte_face): Delete extern.
16669
16670 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16671 table structure.
16672
16673 * editfns.c: Include "character.h" instead of "charset.h".
16674 (Fchar_to_string): Always call CHAR_STRING.
16675
16676 * emacs.c (main): Call init_charset_once, init_charset,
16677 syms_of_chartab, and syms_of_character.
16678
16679 * fileio.c: Include "character.h" instead of "charset.h".
16680 (Finsert_file_contents): Big change for the new code-conversion API.
16681 (choose_write_coding_system, Fwrite_region): Likewise.
16682 (build_annotations_2): Delete.
16683 (e_write): Big change for the new code-conversion API.
16684
16685 * fns.c: Include "character.h" instead of "charset.h".
16686 (copy_sub_char_table): Move to chartab.c.
16687 (Fcopy_sequence): Call copy_char_table for a char table.
16688 (concat): Delete codes calling count_multibyte.
16689 (string_char_to_byte, string_byte_to_char): Adjust for the new
16690 multibyte form.
16691 (internal_equal): Adjust for the change of char table structure.
16692 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16693 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16694 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16695 (char_table_translate, optimize_sub_char_table)
16696 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16697 chartab.c.
16698 (char_table_ref_and_index): Delete.
16699 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16700 (Fmd5): Call preferred_coding_system instead of accessing
16701 Vcoding_category_list. Adjust for the new code-conversion API.
16702 (syms_of_fns): Move defsubr for char table related functions to
16703 chartab.c.
16704
16705 * fontset.c: Mostly re-written.
16706
16707 * fontset.h (struct font_info): Change type of the member encoding_type.
16708 (enum FONT_SPEC_INDEX): New enum.
16709 (fontset_font_pattern, fs_load_font): Update prototype.
16710 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16711
16712 * indent.c: Include "character.h" instead of "charset.h".
16713 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16714
16715 * insdel.c: Include "character.h" instead of "charset.h".
16716 (copy_text): Don't refer to Vnonascii_translation_table.
16717 (insert_from_gap): New function.
16718
16719 * keyboard.c: Include "character.h" instead of "charset.h".
16720 (command_loop_1): Never call direct_output_forward_char before
16721 a non-ASCII character.
16722 (read_char): If Vkeyboard_translate_table is a char table, always
16723 translate a character.
16724
16725 * keymap.c: Include "character.h".
16726 (store_in_keymap): Handle the case that IDX is a cons.
16727 (Fdefine_key): Handle the case that KEY is a cons and the car part
16728 is also a cons (range).
16729 (push_key_description): Adjust for the new character code.
16730 (describe_vector): Call describe_char_table for a char table.
16731 (describe_char_table): New function.
16732
16733 * keymap.h (describe_char_table): Extern it.
16734
16735 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16736 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16737 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16738 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16739 Delete.
16740 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16741 structure.
16742 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16743 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16744 (CHARTAB_SIZE_BITS_3): New macros.
16745 (chartab_size): Extern it.
16746 (struct Lisp_Char_Table): Re-design.
16747 (struct Lisp_Sub_Char_Table): New structure.
16748 (HASH_KEY, HASH_VALUE): Move from fns.c.
16749 (CHARACTERBITS): Define as 22.
16750 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16751 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16752 (GC_SUB_CHAR_TABLE_P): New macro.
16753 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16754 (code_convert_string_norecord): Deleted extern.
16755 (init_character_once, syms_of_character, init_charset)
16756 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16757
16758 * lread.c: Include "character.h".
16759 (read_multibyte): New arg NBYTES.
16760 (read_escape): Change the meaning of returned *BYTEREP.
16761 (to_multibyte): Delete.
16762 (read1): Adjust the handling of char table and string.
16763
16764 * print.c: Include "character.h" instead of "charset.h".
16765 (print_string): Convert 8-bit raw bytes to octal form by
16766 string_escape_byte8.
16767 (print_object): Adjust for the new multibyte form. Print 8-bit
16768 raw bytes always in octal form. Handle sub char table correctly.
16769
16770 * process.c: Include "character.h" instead of "charset.h".
16771 (read_process_output, send_process): Adjust for the new
16772 code-conversion API.
16773
16774 * puresize.h (BASE_PURESIZE): Increase.
16775
16776 * regex.c: Include "character.h" instead of "charset.h".
16777 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16778 (regex_compile): Accept a range whose starting and ending
16779 character have different leading bytes.
16780 (analyse_first): Adjust for the above change.
16781
16782 * search.c: Include "character.h" instead of "charset.h".
16783 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16784 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16785
16786 * syntax.c: Include "character.h" instead of "charset.h".
16787 (syntax_parent_lookup): Delete.
16788 (Fmodify_syntax_entry): Accept a cons as CHAR.
16789 (skip_chars): Adjust for the new multibyte form.
16790 (init_syntax_once): Call char_table_set_range instead of directly
16791 accessing the structure of a char table.
16792
16793 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16794 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16795 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16796 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16797
16798 * term.c: Include "buffer.h" and "character.h".
16799 (encode_terminal_code, write_glyphs): Adjust for the new
16800 code-conversion API.
16801 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16802
16803 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16804
16805 * xdisp.c: Include "character.h".
16806 (get_next_display_element): Adjust for the new multibyte form.
16807 (disp_char_vector): Adjust for the new char table structure.
16808 (decode_mode_spec_coding): Adjust for the new structure of
16809 coding system.
16810 (decode_mode_spec): Adjust for the new code-conversion API.
16811
16812 * xfaces.c: Include "character.h" instead of "charset.h".
16813 (load_face_font): Adjust for the change of choose_face_font and
16814 FS_LOAD_FONT.
16815 (generate_ascii_font): New function.
16816 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16817 (set_font_frame_param): Adjust for the change of choose_face_font.
16818 (free_realized_face): Make it public.
16819 (free_realized_faces_for_fontset): Rename from
16820 free_realized_multibyte_face. Free also faces realized for ASCII.
16821 (choose_face_font): Change arguments. Adjust for the change of
16822 fontset_font_pattern and FS_LOAD_FONT.
16823
16824 * xfns.c: Include "character.h".
16825 (x_encode_text): Adjust for the new code-conversion API.
16826
16827 * xselect.c: Don't include "charset.h".
16828 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16829
16830 * xterm.c: Include "character.h".
16831 (x_encode_char): New argument CHARSET. Change caller.
16832 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16833 Call ENCODE_CHAR instead of SPLIT_CHAR.
16834 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16835 CHAR_WIDTH instead of CHARSET_WIDTH.
16836 (XTread_socket): Adjust for the new code-conversion API.
16837 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16838 (x_load_font): Adjust for the change of struct font.
16839
168402008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16841
16842 * xfaces.c (face_at_buffer_position): Remove unused vars.
16843
168442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16845
16846 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16847 Fix overflow checking.
16848
168492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16850
16851 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16852 Cancel previous change.
16853
168542008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16855
16856 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16857 ccl->eight_bit_control. Fix check for buffer overflow.
16858 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16859 (ccl_driver): Initialize extra_bytes to 0.
16860
168612008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16862
16863 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16864 return it ORed with ctrl_modifier.
16865
168662008-01-29 Miles Bader <miles@gnu.org>
16867
16868 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16869
168702008-01-28 Jason Rumney <jasonr@gnu.org>
16871
16872 * w32.c (stat): Don't double check for networked drive.
16873
168742008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16875
16876 * window.c (run_window_configuration_change_hook): New function.
16877 Code extracted from set_window_buffer. Set the selected frame.
16878 (set_window_buffer): Use it.
16879 * window.h (run_window_configuration_change_hook): Declare.
16880 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16881
16882 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16883
168842008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16885
16886 * Makefile.in: Remove references to unused macros.
16887
168882008-01-26 Eli Zaretskii <eliz@gnu.org>
16889
16890 * w32.c (g_b_init_get_sid_sub_authority)
16891 (g_b_init_get_sid_sub_authority_count): New static variables.
16892 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16893 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16894 (init_user_info): Use them to retrieve uid and gid.
16895 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16896 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16897 st_uid and st_gid of the file.
16898
168992008-01-26 Jason Rumney <jasonr@gnu.org>
16900
16901 * w32.c (logon_network_drive): New function.
16902 (stat): Use it.
16903
169042008-01-26 Chong Yidong <cyd@stupidchicken.com>
16905
16906 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16907 invisible text covered with an ellipsis.
16908
169092008-01-25 Richard Stallman <rms@gnu.org>
16910
16911 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16912 jump back to beginning. Move some other initializations after that.
16913 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16914 New variables.
16915 (syms_of_xdisp): Init them.
16916
16917 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16918
16919 * buffer.c (reset_buffer_local_variables):
16920 Implement `permanent-local-hook'.
16921 (Qpermanent_local_hook): New variable.
16922 (syms_of_buffer): Init and staticpro it.
16923
169242008-01-25 Michael Albinus <michael.albinus@gmx.de>
16925
16926 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16927
169282008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16929
16930 * fns.c (Fclrhash): Return TABLE.
16931
169322008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16933
16934 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16935 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16936 is set even without positional changes.
16937 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16938
16939 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16940
169412008-01-23 Jason Rumney <jasonr@gnu.org>
16942
16943 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16944
16945 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16946 the unicode range available in MULE by locale-coding-system.
16947 Improve dbcs lead byte detection. Set event timestamp and modifiers
16948 earlier.
16949
169502008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16951
16952 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16953 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16954 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16955 when used on child processes.
16956
169572008-01-21 Michael Albinus <michael.albinus@gmx.de>
16958
16959 * dbusbind.c (Fdbus_method_return_internal): Rename from
16960 Fdbus_method_return.
16961 (Fdbus_unregister_object): Move to dbus.el.
16962 (Fdbus_call_method, Fdbus_method_return_internal)
16963 (Fdbus_send_signal): Improve debug messages.
16964
169652008-01-20 Martin Rudalics <rudalics@gmx.at>
16966
16967 * undo.c (undo_inhibit_record_point): New variable.
16968 (syms_of_undo): Initialize it.
16969 (record_point): Don't record point when undo_inhibit_record_point
16970 is set.
16971
169722008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
16973
16974 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16975
16976 * xdisp.c (Qauto_hscroll_mode): New var.
16977 (syms_of_xdisp): Initialize it.
16978 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16979 window's buffer.
16980 (hscroll_windows): Don't check automatic_hscrolling_p here.
16981
16982 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16983 vscroll if we're setting window-buffer to the value it already has.
16984
169852008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
16986
16987 * m/intel386.h: Remove references to XENIX.
16988
169892008-01-17 Andreas Schwab <schwab@suse.de>
16990
16991 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16992 instead of HAVE_X86_64_LIB64_DIR.
16993 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
16994
169952008-01-17 Glenn Morris <rgm@gnu.org>
16996
16997 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
16998 to HAVE_X86_64_LIB64_DIR.
16999
170002008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17001
17002 * s/irix3-3.h:
17003 * s/irix4-0.h:
17004 * s/386-ix.h:
17005 * s/domain.h:
17006 * s/hpux9-x11r4.h:
17007 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17008
17009 * sysdep.c: Remove code containing references to symbols defined
17010 by unsupported systems.
17011
170122008-01-16 Glenn Morris <rgm@gnu.org>
17013
17014 * coding.c (select-safe-coding-system-function): Doc fix.
17015
170162008-01-15 Glenn Morris <rgm@gnu.org>
17017
17018 * config.in: Revert 2008-01-13 change: this is a generated file.
17019
170202008-01-13 Tom Tromey <tromey@redhat.com>
17021
17022 * lisp.h: Fix typo.
17023
170242008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17025
17026 * m/sequent-ptx.h:
17027 * m/sequent.h:
17028 * s/ptx.h:
17029 * s/ptx4-2.h:
17030 * s/ptx4.h: Remove files for systems no longer supported.
17031
17032 * callproc.c (Fcall_process): Fix previous change.
17033
170342008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17035
17036 * unexsunos4.c: Remove file, system not supported anymore.
17037
17038 * m/mips.h:
17039 * m/intel386.h:
17040 * callproc.c:
17041 * config.in:
17042 * ecrt0.c:
17043 * emacs.c:
17044 * fileio.c:
17045 * frame.c:
17046 * getpagesize.h:
17047 * keyboard.c:
17048 * lread.c:
17049 * process.c:
17050 * puresize.h:
17051 * sysdep.c:
17052 * systty.h:
17053 * syswait.h:
17054 * unexec.c:
17055 * xdisp.c:
17056 * alloc.c: Remove code containing references to symbols defined by
17057 unsupported systems.
17058
170592008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17060
17061 * coding.c (detect_coding_mask): Fix previous change.
17062
170632008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17064
17065 * coding.c (detect_coding_iso2022): New arg
17066 latin_extra_code_state. Allow Latin extra codes only
17067 when *latin_extra_code_state is nonzero.
17068 (detect_coding_mask): If there is a NULL byte, detect the encoding
17069 as UTF-16 or binary. If Latin extra codes exist, detect the
17070 encoding as ISO-2022 only when there's no other proper encoding is
17071 found.
17072
170732008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17074
17075 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17076 #ifdef MAC_OS.
17077
170782008-01-08 Richard Stallman <rms@gnu.org>
17079
17080 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17081
170822008-01-06 Nick Roberts <nickrob@snap.net.nz>
17083
17084 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17085 menu bar in parentheses.
17086
170872008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17088
17089 * m/7300.h:
17090 * m/acorn.h:
17091 * m/alliant-2800.h:
17092 * m/alliant.h:
17093 * m/alliant1.h:
17094 * m/alliant4.h:
17095 * m/altos.h:
17096 * m/amdahl.h:
17097 * m/apollo.h:
17098 * m/att3b.h:
17099 * m/aviion-intel.h:
17100 * m/aviion.h:
17101 * m/celerity.h:
17102 * m/clipper.h:
17103 * m/cnvrgnt.h:
17104 * m/convex.h:
17105 * m/cydra5.h:
17106 * m/delta88k.h:
17107 * m/dpx2.h:
17108 * m/dual.h:
17109 * m/elxsi.h:
17110 * m/f301.h:
17111 * m/gould-np1.h:
17112 * m/gould.h:
17113 * m/i860.h:
17114 * m/ibmps2-aix.h:
17115 * m/ibmrt-aix.h:
17116 * m/ibmrt.h:
17117 * m/irist.h:
17118 * m/is386.h:
17119 * m/isi-ov.h:
17120 * m/mega68.h:
17121 * m/mg1.h:
17122 * m/news-r6.h:
17123 * m/news-risc.h:
17124 * m/news.h:
17125 * m/nh3000.h:
17126 * m/nh4000.h:
17127 * m/ns16000.h:
17128 * m/ns32000.h:
17129 * m/nu.h:
17130 * m/orion.h:
17131 * m/orion105.h:
17132 * m/paragon.h:
17133 * m/pfa50.h:
17134 * m/plexus.h:
17135 * m/pyramid.h:
17136 * m/pyrmips.h:
17137 * m/sh3el.h:
17138 * m/sps7.h:
17139 * m/sr2k.h:
17140 * m/stride.h:
17141 * m/sun1.h:
17142 * m/sun2.h:
17143 * m/sun3-68881.h:
17144 * m/sun3-fpa.h:
17145 * m/sun3-soft.h:
17146 * m/sun3.h:
17147 * m/sun386.h:
17148 * m/symmetry.h:
17149 * m/tad68k.h:
17150 * m/tahoe.h:
17151 * m/targon31.h:
17152 * m/tek4300.h:
17153 * m/tekxd88.h:
17154 * m/tower32.h:
17155 * m/tower32v3.h:
17156 * m/ustation.h:
17157 * m/wicat.h:
17158 * m/xps100.h:
17159 * s/cxux.h:
17160 * s/cxux7.h:
17161 * s/dgux.h:
17162 * s/dgux4.h:
17163 * s/dgux5-4-3.h:
17164 * s/dgux5-4r2.h:
17165 * s/esix.h:
17166 * s/esix5r4.h:
17167 * s/hiuxmpp.h:
17168 * s/hiuxwe2.h:
17169 * s/iris3-5.h:
17170 * s/iris3-6.h:
17171 * s/isc2-2.h:
17172 * s/isc3-0.h:
17173 * s/isc4-0.h:
17174 * s/isc4-1.h:
17175 * s/newsos5.h:
17176 * s/newsos6.h:
17177 * s/osf1.h:
17178 * s/osf5-0.h:
17179 * s/riscix1-1.h:
17180 * s/riscix12.h:
17181 * s/sco4.h:
17182 * s/sco5.h:
17183 * s/sunos4-0.h:
17184 * s/sunos4-1.h:
17185 * s/sunos413.h:
17186 * s/sunos4shr.h:
17187 * s/umax.h:
17188 * s/unipl5-2.h:
17189 * s/xenix.h:
17190 * cxux-crt0.s:
17191 * unexapollo.c:
17192 * unexconvex.c:
17193 * unexenix.c:
17194 * unexsni.c: Remove files for systems no longer supported.
17195
17196 * m/intel386.h: Remove references to unsupported systems.
17197
17198 * w32.c (get_emacs_configuration): Remove reference to i860.
17199
17200 * sysdep.c: Remove dead code.
17201
172022008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17203
17204 * s/rtu.h:
17205 * m/masscomp.h: Remove files. Platform is obsolete.
17206
172072008-01-04 Michael Albinus <michael.albinus@gmx.de>
17208
17209 * dbusbind.c (Fdbus_method_return): New function.
17210 (xd_read_message): Add the serial number to the event.
17211 (Fdbus_register_method): Activate the function.
17212
172132008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17214
17215 * keyboard.c (read_key_sequence): Fix typo.
17216
172172008-01-03 Michael Albinus <michael.albinus@gmx.de>
17218
17219 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17220 (xd_signature, xd_append_arg): Handle element type detection for
17221 empty arrays.
17222 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17223 SDATA () calls; this must be solved more general.
17224 (Fdbus_register_signal): Use SBYTES instead of strlen.
17225
172262008-01-03 Magnus Henoch <magnus@zemdatav>
17227
17228 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17229 unsigned int for byte values (necessary for big-endian platform).
17230 (Fdbus_call_method): Handle the case of no returned arguments.
17231
172322007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17233
17234 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17235
172362007-12-31 Magnus Henoch <mange@freemail.hu>
17237
17238 * dbusbind.c (xd_signature): Signature of variant is just "v".
17239
172402007-12-30 Michael Albinus <michael.albinus@gmx.de>
17241
17242 * dbusbind.c: Fix several errors and compiler warnings.
17243 Reported by Tom Tromey <tromey@redhat.com>.
17244 (XD_ERROR, XD_DEBUG_MESSAGE)
17245 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17246 (xd_append_arg): Part for basic D-Bus types rewritten.
17247 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17248 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17249 appropriate.
17250 (xd_read_message): Return Qnil. Don't signal an error; it is not
17251 useful during event reading.
17252 (Fdbus_register_signal): Signal an error if the check for
17253 FUNCTIONP fails.
17254 (Fdbus_register_method): New function. The implementation is not
17255 complete, the call of the function signals an error therefore.
17256 (Fdbus_unregister_object): New function, renamed from
17257 Fdbus_unregister_signal. The initial check signals an error, if
17258 the object is not well formed.
17259
172602007-12-30 Richard Stallman <rms@gnu.org>
17261
17262 * textprop.c (get_char_property_and_overlay):
17263 Signal error if POSITION is out of range in a buffer.
17264
172652007-12-29 Martin Rudalics <rudalics@gmx.at>
17266
17267 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17268 because the original parameters are in pure storage now.
17269
172702007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17271
17272 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17273
172742007-12-22 Eli Zaretskii <eliz@gnu.org>
17275
17276 * callint.c (syms_of_callint) <command-history>: Add reference to
17277 history-length in the doc string.
17278
172792007-12-17 Jason Rumney <jasonr@gnu.org>
17280
17281 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17282 before passing as wParam.
17283
172842007-12-22 Michael Albinus <michael.albinus@gmx.de>
17285
17286 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17287 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17288 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17289 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17290 as number.
17291 (Fdbus_call_method): Fix docstring.
17292
172932007-12-21 Michael Albinus <michael.albinus@gmx.de>
17294
17295 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17296 New macros.
17297 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17298 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17299 Simplify.
17300 (xd_signature): New function.
17301 (xd_append_arg): Compute also signatures. Major rewrite.
17302 (xd_retrieve_arg): Make debug messages friendly.
17303 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17304 Check for signatures of arguments.
17305
173062007-12-19 Michael Albinus <michael.albinus@gmx.de>
17307
17308 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17309 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17310 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17311 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17312 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17313 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17314 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17315 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17316 (xd_retrieve_value): Remove. Functionality included in ...
17317 (xd_append_arg): New function.
17318 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17319
173202007-12-16 Michael Albinus <michael.albinus@gmx.de>
17321
17322 * dbusbind.c (top): Include <stdio.h>.
17323 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17324 dbus_message_new_method_call and dbus_message_new_signal.
17325 (Fdbus_register_signal): Rename unique_name to uname.
17326 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17327 non-existing unique name. Fix typos in matching rule. Return an
17328 object which is useful in Fdbus_unregister_signal.
17329 (Fdbus_unregister_signal): Reimplementation, in order to remove
17330 only the corresponding entry.
17331 (Vdbus_registered_functions_table): Change the order of entries.
17332 Apply these changes in xd_read_message and Fdbus_register_signal.
17333
173342007-12-16 Andreas Schwab <schwab@suse.de>
17335
17336 * fileio.c (Finsert_file_contents): Fix overflow check to not
17337 depend on undefined integer overflow.
17338
173392007-12-14 Jason Rumney <jasonr@gnu.org>
17340
17341 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17342 for characters above 127.
17343
173442007-12-13 Jason Rumney <jasonr@gnu.org>
17345
17346 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17347 before dereferencing array.
17348 (lookup_vk_code): Remove zero comparison.
17349
173502007-12-14 Michael Albinus <michael.albinus@gmx.de>
17351
17352 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17353 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17354 Use `unsigned int' instead of `uint'.
17355 (xd_read_message, Fdbus_register_signal): Split expressions into
17356 multiple lines before operators "&&" and "||", according to the
17357 GNU Coding Standards.
17358
173592007-12-14 Eli Zaretskii <eliz@gnu.org>
17360
17361 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17362
173632007-12-12 Juri Linkov <juri@jurta.org>
17364
17365 * buffer.c (Frename_buffer): In interactive spec replace
17366 `read-buffer' with `read-string' that uses `buffer-name-history'
17367 as history, and the current buffer's name as default.
17368
173692007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17370
17371 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17372 manipulating the backtrace manually.
17373 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17374 (struct backtrace, backtrace_list): Remove.
17375 (command_loop_1): Remove dead var `no_direct'.
17376
17377 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17378 preserve non-built-in buffer-local variables.
17379 (Fkill_all_local_variables): Don't re-create&re-set permanent
17380 buffer-local variables.
17381
173822007-12-09 Juri Linkov <juri@jurta.org>
17383
17384 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17385 Lisp code that uses `read-buffer' with current buffer as default.
17386
173872007-12-08 Michael Albinus <michael.albinus@gmx.de>
17388
17389 * dbusbind.c (xd_read_message): Generate an event for every
17390 registered handler. There might be several handlers registered
17391 for the same signal.
17392 (Fdbus_register_signal): Don't overwrite a registration for the
17393 same signal. Add a new registration if handlers are different.
17394 (Vdbus_registered_functions_table): Rework doc string.
17395
173962007-12-07 Michael Albinus <michael.albinus@gmx.de>
17397
17398 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17399 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17400 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17401 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17402 Unify argument lists.
17403 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17404 arguments and hash table keys. Use unique name for service.
17405 (Fdbus_unregister_signal): Remove checks.
17406 (Vdbus_registered_functions_table): Fix doc string.
17407
174082007-12-05 Magnus Henoch <mange@freemail.hu>
17409
17410 * process.c (make_process): Initialize pty_flag to 0.
17411
174122007-12-05 Jason Rumney <jasonr@gnu.org>
17413
17414 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17415 specified XBMs.
17416
174172007-12-05 Richard Stallman <rms@gnu.org>
17418
17419 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17420
174212007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17422
17423 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17424 New variable.
17425 (mac_try_close_socket) [MAC_OSX]: New function.
17426 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17427 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17428
17429 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17430 Use mac_try_close_socket.
17431
174322007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17433
17434 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17435 reloc_base.
17436 (copy_dysymtab): Compute relocation base here.
17437 (rebase_reloc_address) [__ppc64__]: New function.
17438 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17439 changed.
17440
174412007-12-05 Jason Rumney <jasonr@gnu.org>
17442
17443 * w32proc.c (sys_spawnve): Quote args with wildcards.
17444
174452007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17446
17447 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17448 __objc_* sections.
17449 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17450
174512007-12-05 Michael Albinus <michael.albinus@gmx.de>
17452
17453 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17454 Move check for Vdbus_registered_functions_table to
17455 xd_read_queued_messages.
17456 (xd_read_queued_messages): Protect xd_read_message calls by
17457 internal_condition_case_1.
17458
174592007-12-04 Michael Albinus <michael.albinus@gmx.de>
17460
17461 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17462 Qdbus_system_bus and Qdbus_session_bus, respectively.
17463 (Vdbus_intern_symbols): Remove.
17464 (Vdbus_registered_functions_table): New hash table.
17465 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17466 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17467 Rewrite in order to manage registered functions by hash table
17468 Vdbus_registered_functions_table.
17469
174702007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17471
17472 * xterm.c: Update URL to Window Manager Specification in comment.
17473
174742007-12-02 Michael Albinus <michael.albinus@gmx.de>
17475
17476 * config.in (HAVE_DBUS): Add.
17477
17478 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17479 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17480 (obj): Add $(DBUS_OBJ).
17481 (LIBES): Add $(DBUS_LIBS).
17482 (dbusbind.o): New target.
17483
17484 * dbusbind.c: New file.
17485
17486 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17487
17488 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17489 (Qdbus_event): New Lisp symbol.
17490 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17491 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17492 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17493
17494 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17495
174962007-12-01 Richard Stallman <rms@gnu.org>
17497
17498 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17499
175002007-11-30 Jason Rumney <jasonr@gnu.org>
17501
17502 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17503 (w32con_reset_terminal_modes): Clear screen buffer.
17504 (w32_face_attributes): Don't use color indexes that are out of range.
17505 Only reverse the default colors.
17506
17507 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17508 WINDOWSNT.
17509
17510 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17511
175122007-11-29 Jason Rumney <jasonr@gnu.org>
17513
17514 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17515 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17516 if the terminal colors are initialized.
17517 (unspecified_fg, unspecified_bg): Remove unused declarations.
17518
175192007-11-29 Andreas Schwab <schwab@suse.de>
17520
17521 * keyboard.c (apply_modifiers): Fix typo.
17522
175232007-11-29 Richard Stallman <rms@gnu.org>
17524
17525 * keymap.c (Fcurrent_local_map): Doc fix.
17526
175272007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17528
17529 * s/gnu-kfreebsd.h: New file.
17530
175312007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17532
17533 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17534 Don't cast redundantly.
17535
17536 * keyboard.c (KEY_TO_CHAR): New macro.
17537 (parse_modifiers, apply_modifiers): Accept integer arguments.
17538 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17539 for chars and symbol keys.
17540 After doing such remapping, apply function-key-map again.
17541
175422007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17543
17544 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17545 compiled anymore.
17546
175472007-11-26 Andreas Schwab <schwab@suse.de>
17548
17549 * process.c (list_processes_1): Fix indentation level of the
17550 command column.
17551
175522007-11-23 Andreas Schwab <schwab@suse.de>
17553
17554 * editfns.c (Fformat): Handle %c specially since it requires the
17555 argument to be of type int.
17556
175572007-11-23 Markus Triska <markus.triska@gmx.at>
17558
17559 * emacs.c (main): Call init_editfns before init_process, since
17560 init_process sets Vprocess_connection_type depending on OS release.
17561
175622007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17563
17564 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17565 (find_symbol_value): Use do_symval_forwarding.
17566
17567 * data.c (set_internal): Set the value in the `cons-cell' (for
17568 Buffer_Local_values) not only for frame-local variables.
17569
175702007-11-22 Andreas Schwab <schwab@suse.de>
17571
17572 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17573 values to sprintf.
17574 * keymap.c (Fsingle_key_description): Likewise.
17575 * print.c (print_object): Likewise.
17576
175772007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17578
17579 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17580 file for image is nil.
17581
175822007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17583
17584 * term.c: Include stdarg.h.
17585 (fatal): Implement using varargs.
17586 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17587
175882007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17589
17590 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17591 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17592 Update call to buffer_slot_type_mismatch.
17593 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17594 (buffer_slot_type_mismatch): Update.
17595 * buffer.c (buffer_local_types): Remove.
17596 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17597 (defvar_per_buffer): Set the type in the buffer_objfwd.
17598
175992007-11-21 Jason Rumney <jasonr@gnu.org>
17600
17601 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17602 CreateFileMapping returns NULL on failure.
17603
176042007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17605
17606 * search.c (Fset_match_data): Remove the `evaporate' feature.
17607 (unwind_set_match_data): Don't use the `evaporate' feature.
17608
176092007-11-21 Jason Rumney <jasonr@gnu.org>
17610
17611 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17612
17613 * w32console.c (w32con_write_glyphs): Remove unused variables.
17614
176152007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17616
17617 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17618
17619 * s/darwin.h (MULTI_KBOARD): Remove.
17620
17621 * macfns.c (x_create_tip_frame, Fx_create_frame)
17622 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17623
176242007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17625
17626 * buffer.c (Fbuffer_local_value): Remove redundant test.
17627 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17628 than in `current-buffer' to match the comment.
17629 Do the swap using swap_in_global_binding.
17630
17631 * data.c (store_symval_forwarding, set_internal):
17632 * eval.c (specbind): Remove dead code.
17633
17634 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17635 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17636 Since we do not want to see internal Lisp_*fwd objects here.
17637
176382007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17639
17640 * sysdep.c (init_system_name): Use getaddrinfo if available.
17641
17642 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17643 (x_scroll_bar_note_movement): start, end, with, height in struct
17644 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17645
176462007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17647
17648 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17649
176502007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17651
17652 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17653 This undoes Richard's change of 14-Oct-2002.
17654
17655 * alloc.c (allocate_other_vector):
17656 * lisp.h (allocate_other_vector): Remove.
17657
17658 * window.c (struct save_window_data): Move non-lisp data to the end
17659 and make it `int' rather than Lisp_Object.
17660 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17661 Done wrap/unwrap integer values.
17662 (Fset_window_configuration, compare_window_configurations):
17663 Update use of fields to their new types.
17664
17665 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17666 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17667 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17668 (SET_SCROLL_BAR_X_WINDOW): Remove.
17669 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17670 Access the new x_window field directly.
17671 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17672 Don't wrap/unwrap integers into Lisp_Objects.
17673 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17674 (x_scroll_bar_report_motion):
17675 Don't wrap/unwrap integers into Lisp_Objects.
17676 (x_term_init): Use SDATA.
17677 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17678 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17679 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17680 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17681 * xfns.c (x_set_background_color):
17682 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17683 Access the new x_window field directly.
17684
17685 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17686 (allocate_pseudovector): Make non-static.
17687
17688 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17689 (allocate_pseudovector): Declare.
17690 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17691
176922007-11-15 Andreas Schwab <schwab@suse.de>
17693
17694 * editfns.c (Fformat): Correctly format EMACS_INT values.
17695 Also take precision into account when formatting an integer.
17696
17697 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17698
176992007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17700
17701 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17702 (syms_of_keyboard): Defsubr it.
17703
17704 * data.c (swap_in_global_binding): Fix longstanding bug where
17705 store_symval_forwarding was not called with the right second argument,
17706 thus causing objfwd-ing from being dropped.
17707
177082007-11-14 Juanma Barranquero <lekktu@gmail.com>
17709
17710 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17711 (Fx_display_pixel_height, Fx_display_planes)
17712 (Fx_display_color_cells, Fx_server_max_request_size)
17713 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17714 (Fx_display_visual_class, Fx_display_save_under):
17715 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17716 (Fx_display_pixel_height, Fx_display_planes)
17717 (Fx_display_color_cells, Fx_server_max_request_size)
17718 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17719 (Fx_display_mm_height, Fx_display_mm_width)
17720 (Fx_display_backing_store, Fx_display_visual_class)
17721 (Fw32_select_font, Fx_display_save_under):
17722 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17723 (Fx_display_pixel_height, Fx_display_planes)
17724 (Fx_display_color_cells, Fx_server_max_request_size)
17725 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17726 (Fx_display_save_under): Fix typos in docstrings.
17727
177282007-11-14 Juanma Barranquero <lekktu@gmail.com>
17729
17730 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17731 corresponding to deleted entries; they are an implementation detail.
17732 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17733 Remove variables.
17734 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17735 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17736 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17737 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17738 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17739 (Fw32_define_rgb_color, Fw32_load_color_file)
17740 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17741 Fix typos in docstrings.
17742 (Fx_server_version): Reflow docstring.
17743 (Fw32_shell_execute): Doc fixes.
17744
177452007-11-13 Juanma Barranquero <lekktu@gmail.com>
17746
17747 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17748 if w32_parse_hot_key returned nil.
17749
177502007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17751
17752 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17753
177542007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17755
aac0c6e3
MR
17756 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17757
17758 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17759
17760 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17761 Remove W32_SCROLL_BAR_CLICK_EVENT.
17762
17763 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17764 Add MULTIMEDIA_KEY_EVENT.
17765
17766 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17767 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17768 (make_lispy_event) [WINDOWSNT]: Use it to translate
17769 MULTIMEDIA_KEY_EVENT.
17770
17771 * w32term.h (WM_APPCOMMAND): Define if not already.
17772 (GET_APPCOMMAND_LPARAM): Likewise.
17773
17774 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17775 WM_APPCOMMAND.
17776
17777 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17778 (syms_of_w32fns): Export and initialize it.
17779 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17780
177812007-11-09 Chong Yidong <cyd@stupidchicken.com>
17782
17783 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17784 twice.
17785
17786 * xdisp.c (handle_face_prop): Fix last change.
17787
177882007-11-09 Richard Stallman <rms@gnu.org>
17789
17790 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17791 not just for after-strings and before-strings.
17792 Call face_for_overlay_string and pass the overlay to it.
17793 (handle_display_prop): Determine whether property came from an overlay.
17794 Pass OVERLAY arg to handle_single_display_spec.
17795 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17796 (load_overlay_strings): Fill in it->string_overlays.
17797 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17798
17799 * xfaces.c (face_for_overlay_string): Function renamed from
17800 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17801
17802 * dispextern.h (struct it): New elt string_overlays.
17803 New elt from_overlay, also in stack.
17804 Rearrange a few elements.
17805 (face_for_overlay_string): Decl renamed from
17806 face_at_buffer_position_no_overlays, and add argument.
17807
178082007-11-09 Richard Stallman <rms@gnu.org>
17809
17810 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17811 to get the base face for an overlay string.
17812
17813 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17814
17815 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17816
17817 * xdisp.c (handle_stop): Move some code out of loop.
17818
178192007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17820
17821 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17822 Fix conversion from Lisp object to ATSUFontID.
17823
178242007-11-09 Jason Rumney <jasonr@gnu.org>
17825
17826 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17827
178282007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17829
17830 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17831 Don't assume regions are aligned to page boundary.
17832 (print_load_command_name): Add LC_UUID if defined.
17833
178342007-11-09 Richard Stallman <rms@gnu.org>
17835
17836 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17837
178382007-11-07 Jason Rumney <jasonr@gnu.org>
17839
17840 * s/windows95.h: Remove.
17841
178422007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17843
17844 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17845 abort with a message on unhandled store_type values.
17846
178472007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17848
17849 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17850 Remove HAVE_X11R5 and HAVE_X11R4.
17851
178522007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17853
17854 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17855
178562007-11-01 Johan Bockgård <bojohan@gnu.org>
17857
17858 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17859 Don't set s->stippled_p here, since it has already been set by
17860 x_set_glyph_string_gc from x_draw_glyph_string.
17861
178622007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17863
17864 * sunfns.c: Remove file.
17865
17866 * m/sun386.h:
17867 * m/sun2.h:
17868 * m/sparc.h: Remove Sun windows code.
17869
178702007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17871
17872 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17873 (init_keyboard): Set current_kboard's window-system to nil.
17874 (tty_read_avail_input): Typo.
17875 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17876
178772007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17878
17879 * s/usg5-4.h:
17880 * s/usg5-3.h:
17881 * s/ptx.h:
17882 * m/is386.h:
17883 * m/ibmps2-aix.h:
17884 * Makefile.in: Remove all mentions of X10.
17885
17886 * dispnew.c (syms_of_display): Don't mention version 10.
17887
178882007-10-28 Juanma Barranquero <lekktu@gmail.com>
17889
17890 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17891 ($(BLD)/abbrev.$(O)): Remove.
17892
178932007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17894
17895 Rewrite abbrev.c in Elisp.
17896 * image.c (Qcount): Don't declare as extern.
17897 (syms_of_image): Initialize and staticpro `Qcount'.
17898 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17899 * emacs.c (main): Don't call syms_of_abbrev.
17900 * Makefile.in (obj): Remove abbrev.o.
17901 (abbrev.o): Remove.
17902 * abbrev.c: Remove.
17903
179042007-10-26 Martin Rudalics <rudalics@gmx.at>
17905
17906 * window.c (window_min_size_2): Don't count header-line.
17907
179082007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17909
17910 * frame.h (struct frame): Move all bit fields after the first bit
17911 field to take advantage of the available space. Group all the
17912 chars together to reduce wasted space due to padding.
17913
179142007-10-26 Juanma Barranquero <lekktu@gmail.com>
17915
17916 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17917
17918 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17919 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17920 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17921 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17922 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17923 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17924 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17925 (last_marked, mark_object_loop_halt): Make static.
17926
17927 * frame.c (syms_of_frame) <delete-frame-functions>:
17928 Fix typo in docstring.
17929
179302007-10-25 Juanma Barranquero <lekktu@gmail.com>
17931
17932 * w32.c (init_environment): Fix tiny memory leak.
17933 (w32_get_resource): Remove unused variable `ok'.
17934
179352007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17936
17937 Make `window-system' into a keyboard-local variable (rather than
17938 frame-local as done originally by multi-tty).
17939
17940 * keyboard.h (struct kboard): Add Vwindow_system.
17941 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17942 (mark_kboards): Mark Vwindow_system.
17943
17944 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17945 (init_display): Don't set the obsolete `window-system' frame-param.
17946
17947 * xterm.c (x_term_init):
17948 * w32term.c (w32_create_terminal):
17949 * term.c (init_tty): Set Vwindow_system.
17950 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17951 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17952
17953 * xfns.c (Fx_create_frame, x_create_tip_frame):
17954 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17955 * macfns.c (Fx_create_frame):
17956 Don't set the obsolete `window-system' frame-param.
17957
17958 * frame.h (Qwindow_system): Remove.
17959 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17960 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17961
179622007-10-24 Richard Stallman <rms@gnu.org>
17963
17964 * frame.c (x_figure_window_size): For fullscreen case,
17965 set USPosition | PPosition without clobbering rest of window_prompting.
17966
17967 * keyboard.c (Fcurrent_idle_time): Doc fix.
17968
17969 * print.c (Fwith_output_to_temp_buffer): Doc fix.
17970
179712007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
17972
17973 * process.c (unwind_request_sigio): Only define if __ultrix__.
17974
17975 * callproc.c (child_setup): Remove spurious *.
17976
17977 * lisp.h (Fget_text_property): Declare.
17978 (have_menus_p): Declare it here rather than in sys-dep header files.
17979 * macterm.h (have_menus_p):
17980 * msdos.h (have_menus_p):
17981 * xterm.h (have_menus_p): Remove.
17982
17983 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17984 (Fmake_variable_frame_local): Just check the variable's const-ness
17985 rather than checking nil or t.
17986
179872007-10-22 Jason Rumney <jasonr@gnu.org>
17988
17989 * w32fns.c: Include math.h.
17990 (w32_abort): Declaration moved to nt/config.nt.
17991
17992 * s/ms-w32.h (HAVE_STDLIB_H): Define.
17993 (abort): Redefinition moved to nt/config.nt.
17994
17995 * m/windowsnt.h: Remove.
17996
179972007-10-22 Juanma Barranquero <lekktu@gmail.com>
17998
17999 * emacs.c (Fdump_emacs): Fix typo in message.
18000 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18001 <installation-directory>: Reflow docstring.
18002
180032007-10-22 Juri Linkov <juri@jurta.org>
18004
18005 * minibuf.c: Allow minibuffer default to be a list of default values.
18006 With empty input use the first element of this list as returned default.
18007 (string_to_object)
18008 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18009 (read_minibuf): If defalt is cons, set histstring to its car.
18010 (Fread_string): If default_value is cons, set val to its car.
18011 (Fread_buffer): If def is cons, use its car.
18012 (Fcompleting_read): If defalt is cons, set val to its car.
18013
180142007-10-21 Michael Albinus <michael.albinus@gmx.de>
18015
18016 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18017
180182007-10-20 Juanma Barranquero <lekktu@gmail.com>
18019
18020 * doc.c (Fdocumentation): Check for advice in all cases.
18021
180222007-10-19 Chong Yidong <cyd@stupidchicken.com>
18023
18024 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18025
180262007-10-19 Richard Stallman <rms@gnu.org>
18027
18028 * doc.c (Fdocumentation): Check for and handle an advised function.
18029
180302007-10-19 Juanma Barranquero <lekktu@gmail.com>
18031
18032 * process.c (Fset_process_filter): Doc fix.
18033
180342007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18035
18036 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18037 which caused key-translation-map to applied repeatedly (thus breaking
18038 double-mode).
18039
180402007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18041
18042 * xselect.c (x_own_selection, x_handle_selection_clear)
18043 (x_clear_frame_selections):
18044 * w32menu.c (list_of_panes, list_of_items):
18045 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18046 * textprop.c (validate_plist, interval_has_all_properties)
18047 (interval_has_some_properties, interval_has_some_properties_list)
18048 (add_properties, text_property_list):
18049 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18050 * minibuf.c (Fassoc_string):
18051 * macselect.c (x_own_selection, x_clear_frame_selections)
18052 (Fx_disown_selection_internal):
18053 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18054 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18055
180562007-10-17 Chong Yidong <cyd@stupidchicken.com>
18057
18058 * process.c: Link to libs for calling res_init() if available.
18059 (Fmake_network_process): Call res_init() before getaddrinfo or
18060 gethostbyname, if possible.
18061
180622007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18063
18064 * lread.c (read1): Set pvectype for char_tables.
18065
18066 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18067 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18068 Add type checks.
18069 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18070
18071 * alloc.c (free_misc): Use XMISCTYPE.
18072 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18073
180742007-10-17 Glenn Morris <rgm@gnu.org>
18075
18076 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18077 (syms_of_minibuf): Add Qcompletion_ignore_case.
18078 * dired.c (Qcompletion_ignore_case): Change to external.
18079 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18080 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18081 (Fread_file_name): Use it rather than intern'ing.
18082
18083 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18084 (Fread_coding_system): Ignore case of user input.
18085
180862007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18087
18088 * xdisp.c (handle_display_prop): Ignore display specs after
18089 replacing one when string text is being replaced.
18090 (handle_single_display_spec): Pretend as if characters with display
18091 property haven't been consumed only when buffer text is being replaced.
18092
180932007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18094
18095 * xfns.c (Fx_create_frame, Fx_display_list):
18096 * window.c (window_fixed_size_p, enlarge_window)
18097 (shrink_window_lowest_first):
18098 * macterm.c (init_font_name_table):
18099 * macfns.c (Fx_create_frame, Fx_display_list):
18100 * lread.c (close_load_descs):
18101 * keyboard.c (read_char_x_menu_prompt):
18102 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18103 * coding.c (code_convert_region_unwind): Test the type of an object
18104 rather than just !NILP before extracting data from it.
18105
18106 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18107
18108 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18109 (XMISCANY): New macro.
18110 (XMISCTYPE): Use it.
18111 (struct Lisp_Misc_Any): New type.
18112 (union Lisp_Misc): Use it.
18113 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18114 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18115 (find_symbol_value, set_internal, default_value, Fset_default)
18116 (Fmake_variable_buffer_local, Fmake_local_variable)
18117 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18118 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18119 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18120 * alloc.c (allocate_buffer): Set the size and tag.
18121 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18122 Use XMISCANY.
18123 (die): Follow the GNU convention for error messages.
18124 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18125 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18126 tag any more.
18127 (set_buffer_internal_1):
18128 * frame.c (store_frame_param):
18129 * eval.c (specbind):
18130 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18131
18132 * doc.c (Fsnarf_documentation): Simplify.
18133
181342007-10-14 Juanma Barranquero <lekktu@gmail.com>
18135
18136 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18137 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18138
181392007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18140
18141 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18142
181432007-10-14 Juanma Barranquero <lekktu@gmail.com>
18144
18145 * eval.c (do_autoload): Don't save autoloads.
18146
18147 * data.c (Ffset): Save autoload of the function being set.
18148
181492007-10-07 John Paul Wallington <jpw@pobox.com>
18150
18151 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18152 parameter before setting up faces.
18153
181542007-10-13 Eli Zaretskii <eliz@gnu.org>
18155
18156 * ccl.c (Fregister_code_conversion_map):
18157 * keyboard.c (append_tool_bar_item): Reformat last change.
18158
18159 * lisp.h (eabs): Rename from `abs'. All callers changed.
18160
181612007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18162
18163 * buffer.c (add_overlay_mod_hooklist):
18164 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18165 * fontset.c (make_fontset):
18166 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18167 (append_tool_bar_item):
18168 * macmenu.c (grow_menu_items):
18169 * w32menu.c (grow_menu_items):
18170 * xmenu.c (grow_menu_items): Use larger_vector.
18171
181722007-10-13 Eli Zaretskii <eliz@gnu.org>
18173
18174 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18175 selected frame'' on MSDOS).
18176
181772007-10-12 Martin Rudalics <rudalics@gmx.at>
18178
18179 * frame.c (Qexplicit_name): New variable.
18180 (x_report_frame_params): Report it in parameter alist.
18181 (syms_of_frame): Intern and staticpro it.
18182
181832007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18184
18185 * macfns.c (x_create_tip_frame): Set terminal for frame.
18186
181872007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18188
18189 * frame.c (Qenvironment): Remove.
18190 (syms_of_frame) <Qenvironment>: Don't initialize.
18191 (Fdelete_frame): Don't treat the `environment' param specially.
18192 * frame.h (Qenvironment): Don't declare.
18193 * callproc.c (set_initial_environment): Don't set unused frame param.
18194
18195 * frame.c (Fframe_with_environment): Remove.
18196 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18197
18198 * lisp.h (Fframe_with_environment): Don't declare.
18199
182002007-10-10 Juanma Barranquero <lekktu@gmail.com>
18201
18202 * indent.c (indent_tabs_mode, last_known_column)
18203 (last_known_column_modified): Make static.
18204 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18205
182062007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18207
18208 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18209
182102007-10-09 Jason Rumney <jasonr@gnu.org>
18211
18212 * w32term.c (x_set_window_size): Disable code that attempts to tell
18213 Lisp code about a size change before it actually happens.
18214
182152007-10-09 Richard Stallman <rms@gnu.org>
18216
18217 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18218 return HANDLED_RETURN.
18219
182202007-10-08 Martin Rudalics <rudalics@gmx.at>
18221
18222 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18223 when there's an unread command event.
18224
18225 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18226 window autoselection act appropriately when leaving selected frame.
18227 (syms_of_frame): Initialize focus_follows_mouse.
18228 * frame.h (focus_follows_mouse): Extern it.
18229 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18230 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18231 * msdos.c (dos_rawgetc): Likewise.
18232 * w32term.c (w32_read_socket): Likewise.
18233 * xterm.c (handle_one_xevent): Likewise.
18234 * xdisp.c (syms_of_xdisp): In doc-string of
18235 mouse-autoselect-window mention focus-follows-mouse.
18236
182372007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18238
18239 * macterm.c (mac_load_query_font): Fix missing return value.
18240 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18241 Add BLOCK_INPUT.
18242
182432007-10-08 Richard Stallman <rms@gnu.org>
18244
18245 * xdisp.c (get_window_cursor_type): Implement documented behavior
18246 for cursor-in-non-selected-windows = t.
18247
182482007-10-08 Jason Rumney <jasonr@gnu.org>
18249
18250 * w32.c (w32_get_resource): Always close registry keys.
18251
182522007-10-08 Jason Rumney <jasonr@gnu.org>
18253
18254 * makefile.w32-in (LIBS): Add COMCTL32.
18255
18256 * w32fns.c (globals_of_w32fns): Init common controls.
18257
182582007-10-08 Richard Stallman <rms@gnu.org>
18259
18260 * image.c (our_memory_buffer): Rename from omfib_buffer.
18261
182622007-10-08 Richard Stallman <rms@gnu.org>
18263
18264 * buffer.c (Foverlays_at): Doc fix.
18265
182662007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18267
18268 * fns.c (Fplist_put): Preserve uneven tail data.
18269
182702007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18271
18272 * termhooks.h (enum event_kind): Remove trailing comma.
18273
18274 * frame.h (enum): Remove trailing comma.
18275
182762007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18277
18278 * w32proc.c (delete_child): Don't terminate threads of zombies.
18279
182802007-10-08 Martin Rudalics <rudalics@gmx.at>
18281
18282 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18283
18284 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18285 last-repeatable-command.
18286 (init_kboard): Initialize Vlast_repeatable_command.
18287 (command_loop_1): Set it to real_this_command unless that was
18288 bound to an input event.
18289 (mark_kboards): Mark it.
18290
182912007-10-08 Richard Stallman <rms@gnu.org>
18292
18293 * eval.c (condition-case): Doc fix.
18294
182952007-10-08 Masatake YAMATO <jet@gyve.org>
18296
18297 * xfaces.c (tty_supports_face_attributes_p): Fix code
18298 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18299 was copied and not edited.
18300
183012007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18302
18303 Add new `input-decode-map' keymap and use it for terminal
18304 escape sequences.
18305 * keyboard.h (struct kboard): Add Vinput_decode_map.
18306 Remove Vlocal_key_translation_map.
18307 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18308 (init_kboard): Init input-decode-map.
18309 Replace local-key-translation-map back with key-translation-map.
18310 (syms_of_keyboard): Declare input-decode-map.
18311 Remove local-key-translation-map. Update docstrings.
18312 (mark_kboards): Mark Vinput_decode_map.
18313 Don't mark Vlocal_key_translation_map.
18314 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18315 Replace local-key-translation-map back with key-translation-map.
18316 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18317 Bind in input-decode-map rather than function-key-map.
18318
18319 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18320 This was made redundant by the previous introduction of XSETPVECTYPE.
18321
183222007-10-09 Richard Stallman <rms@gnu.org>
18323
18324 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18325
183262007-09-29 Richard Stallman <rms@gnu.org>
18327
18328 * eval.c (internal_condition_case_2, internal_condition_case_1)
18329 (internal_condition_case): Reenable abort if x_catching_errors ()
18330 to see if that really happens and why.
18331
183322007-10-06 Andreas Schwab <schwab@suse.de>
18333
18334 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18335
183362007-10-04 Juanma Barranquero <lekktu@gmail.com>
18337
18338 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18339
183402007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18341
18342 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18343
183442007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18345
18346 * window.h (struct window):
18347 * window.c (struct save_window_data, struct saved_window):
18348 * termhooks.h (struct terminal):
18349 * process.h (struct Lisp_Process):
18350 * frame.h (struct frame):
18351 * buffer.h (struct buffer):
18352 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18353 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18354 The size field of (pseudo)vectors is now unsigned.
18355 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18356
18357 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18358 Turn `count' into an integer.
18359
18360 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18361 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18362 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18363 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18364 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18365
18366 * alloc.c (allocate_pseudovector): New fun.
18367 (ALLOCATE_PSEUDOVECTOR): New macro.
18368 (allocate_window, allocate_terminal, allocate_frame)
18369 (allocate_process): Use it.
18370 (mark_vectorlike): New function.
18371 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18372 (mark_terminals): Use it.
18373 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18374 (Fmake_byte_code): Use XSETPVECTYPE.
18375
18376 * frame.c (Fframe_parameters): Minor simplification.
18377
18378 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18379
18380 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18381
18382 * buffer.c (Fget_buffer_create, init_buffer_once):
18383 * lread.c (defsubr):
18384 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18385
18386 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18387 defined differently in the m/*.h files.
18388 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18389 (XSETPVECTYPE): New macro.
18390 (XSETPSEUDOVECTOR): Use it.
18391
18392 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18393 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18394
18395 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18396 * lread.c (defvar_per_buffer):
18397 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18398
18399 * window.c (candidate_window_p): Only consider as visible frames that
18400 are on the same terminal.
18401
18402 * m/ibms390x.h (MARKBIT): Remove unused macro.
18403
184042007-10-01 Juanma Barranquero <lekktu@gmail.com>
18405
18406 * lread.c (Fload): Fix typo in docstring.
18407
184082007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18409
18410 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18411 of a non-zero value can't yield zero.
18412
184132007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18414
18415 * term.c (term_clear_mouse_face, term_mouse_highlight)
18416 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18417
18418 * print.c (safe_debug_print): Use XHASH.
18419
18420 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18421 Lisp elements such as tags.
18422 (XHASH): New macro.
18423 (EQ): Use it.
18424 (SREF, SSET, STRING_COPYIN): Use SDATA.
18425 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18426
18427 * alloc.c (mark_terminal): Remove left-over declaration.
18428 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18429 (allocate_vectorlike): Remove type argument. Adjust callers.
18430 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18431 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18432
18433 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18434 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18435 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18436 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18437 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18438 Use them.
18439
18440 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18441 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18442 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18443
184442007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18445
18446 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18447 loaded by default.
18448
184492007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18450
18451 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18452 on this tty.
18453 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18454
18455 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18456 Update all users.
18457 (handle_one_term_event): Use Gpm_DrawPointer.
18458 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18459 Signal errors instead of returning nil. Always return nil.
18460 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18461 Make it a noop if gpm-mouse was not activated.
18462 (syms_of_term): Update names.
18463
184642007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18465
18466 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18467 (init_sys_modes): Check that gpm_tty is the current tty.
18468
18469 * alloc.c (allocate_terminal): Set the vector size to only count the
18470 lisp fields. Initialize those to nil.
18471 (mark_object): Don't treat terminals specially.
18472 (mark_terminal): Remove.
18473 (mark_terminals): Use mark_object instead.
18474
18475 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18476 the GC to the beginning.
18477
18478 * indent.h:
18479 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18480
18481 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18482
184832007-09-25 Jason Rumney <jasonr@gnu.org>
18484
18485 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18486
18487 * w32console.c (create_w32cons_output): Remove.
18488
18489 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18490
18491 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18492 (reset_sys_modes): Use reset_terminal_modes_hook.
18493
184942007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18495
18496 * eval.c (do_autoload): Don't output any message.
18497
184982007-09-24 Juri Linkov <juri@jurta.org>
18499
18500 * emacs.c (standard_args): Change priority of "--no-splash"
18501 from 40 to 3. Add "--no-desktop" with the same priority.
18502
185032007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18504
18505 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18506 and optimize the case where they are all 1.
18507
185082007-09-23 Johannes Weiner <hannes@saeurebad.de>
18509
18510 * lisp.h (abs): Define if not defined.
18511 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18512 Don't define `abs', since it's defined in lisp.h.
18513
185142007-09-22 Eli Zaretskii <eliz@gnu.org>
18515
18516 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18517 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18518 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18519 (init_tty): Use DEV_TTY instead of "/dev/tty".
18520 [WINDOWSNT]: No need to protect from NAME arg being null.
18521
185222007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18523
18524 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18525 up the tty state.
18526
185272007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18528
18529 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18530 (gpm_tty): Change its type.
18531 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18532 (gpm_tty): Change its type and initialize it.
18533 (Fterm_open_connection): Check the frame is indeed a tty.
18534 Use the new gpm_tty.
18535 (Fterm_close_connection): Use the new gpm_tty.
18536 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18537 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18538
185392007-09-21 Juanma Barranquero <lekktu@gmail.com>
18540
18541 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18542 underline_color, to draw strike-through.
18543
185442007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18545
18546 * lisp.h (allocate_terminal): Declare.
18547
18548 * window.c (candidate_window_p): Consider frames that are being placed
18549 by the user as somewhere between visible and iconified.
18550 (window_loop): Prefer windows on the current frame.
18551 (Fselect_window): Move the use of select-frame to the beginning so we
18552 can just delegate all the work (it'll call us back anyway).
18553
18554 * frame.c (Qdisplay_environment_variable):
18555 * frame.h (Qdisplay_environment_variable): Delete.
18556
18557 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18558 of the first arg, since that value may be a union.
18559
18560 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18561 parameter rather than Qdisplay_environment_variable. If all else
18562 fails, look for DISPLAY in initial-environment.
18563
185642007-09-21 Glenn Morris <rgm@gnu.org>
18565
18566 * Makefile.in (emacstool): Remove target.
18567 (lisp, shortlisp): Remove termdev.elc.
18568
185692007-09-21 Markus Triska <markus.triska@gmx.at>
18570
18571 * xterm.c (x_delete_display): Compile session management conditionally.
18572
185732007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18574
18575 * callproc.c (getenv_internal_1): New function.
18576 (getenv_internal): Use it.
18577 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18578
18579 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18580 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18581 (Fset_terminal_parameter): Work with dead terminals as well.
18582 (Fmodify_terminal_parameters): Remove.
18583
18584 * terminal.c (get_terminal): Handle terminals.
18585 Make sure the terminal returned is live.
18586 (create_terminal): Use allocate_terminal.
18587 (mark_terminals): Move to alloc.c.
18588 (delete_terminal): Use terminal->name as liveness status.
18589 NULL out fields after freeing their contents.
18590 Don't deallocate the object.
18591 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18592 rather than an int.
18593 (Fterminal_live_p): Accept non-integer arguments.
18594 (Fterminal_list): Return terminal objects rather than an ints.
18595
18596 * alloc.c (enum mem_type): New member for `terminal' objects.
18597 (allocate_terminal): New function.
18598 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18599 Handle terminals.
18600 (mark_terminal): New fun.
18601 (mark_terminals): Move from terminal.c.
18602
18603 * term.c (get_tty_terminal): Don't treat output_initial specially.
18604 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18605 (delete_tty): Use terminal->name as liveness status.
18606
18607 * termhooks.h (struct terminal): Make it into a pseudovector.
18608 Remove `deleted' replaced by checking `name's nullness.
18609
18610 * print.c (print_object): Handle terminals.
18611
18612 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18613 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18614
18615 * frame.c (make_terminal_frame):
18616 * keyboard.c (tty_read_avail_input):
18617 * w32term.c (x_delete_terminal):
18618 * xfns.c (Fx_create_frame, x_create_tip_frame):
18619 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18620
186212007-09-20 Glenn Morris <rgm@gnu.org>
18622
18623 * process.c (Fmake_network_process): Doc fix.
18624
186252007-09-19 Jason Rumney <jasonr@gnu.org>
18626
18627 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18628
186292007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18630
18631 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18632 Fix a C warning regarding variable constness.
18633
18634 * xterm.c (handle_one_xevent): Fix a C warning.
18635
186362007-09-18 Jason Rumney <jasonr@gnu.org>
18637
18638 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18639
186402007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18641
18642 * gtkutil.c (gdpy_def): New variable.
18643 (xg_initialize): Initialize gdpy_def.
18644 (xg_display_close): If no other display exists, set gdpy_def to a
18645 new connection.
18646
186472007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18648
18649 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18650 when we have no file name for the icon.
18651 (xg_tool_bar_expose_callback): Remove.
18652 (xg_create_tool_bar): Don't connect expose signal to
18653 xg_tool_bar_expose_callback.
18654 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18655
186562007-09-16 Andreas Schwab <schwab@suse.de>
18657
18658 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18659 values instead of zapping them.
18660
186612007-09-14 Glenn Morris <rgm@gnu.org>
18662
18663 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18664 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18665 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18666 scope and rename to omfib_buffer for clarity.
18667 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18668
186692007-09-14 Kenichi Handa <handa@m17n.org>
18670
18671 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18672
186732007-09-13 Jason Rumney <jasonr@gnu.org>
18674
18675 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18676
18677 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18678
18679 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18680 (mac_term_init): Call here instead, passing rif.
18681
186822007-09-13 Glenn Morris <rgm@gnu.org>
18683
18684 * s/hpux.h: No longer define `static' as nothing.
18685
186862007-09-13 Johan Bockgård <bojohan@gnu.org>
18687
18688 * callint.c (Fcall_interactively): Remove unused var `fun'.
18689
186902007-09-12 Romain Francoise <romain@orebokech.com>
18691
18692 * window.c (prefer_window_split_horizontally, display_buffer):
18693 Revert 2007-09-08 change.
18694
186952007-09-12 Glenn Morris <rgm@gnu.org>
18696
18697 * alloca.c: Remove file.
18698 * Makefile.in (alloca): Do not undef.
18699 (allocaobj, alloca.o): Remove.
18700 (otherobj): Remove allocaobj.
18701 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18702 * regex.c (C_ALLOCA): Remove all references and code that was only
18703 used when this was defined.
18704 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18705 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18706 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18707
18708 * Makefile.in (SOURCES, unlock, relock): Delete.
18709
18710 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18711 (menu_grab_callback): All uses changed.
18712
18713 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18714 (x_reply_selection_request): All uses changed.
18715
187162007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18717
18718 * lread.c (load_warn_old_style_backquotes): Change message to look
18719 better when it appears in the middle of byte-compiler messages.
18720
187212007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18722
18723 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18724
18725 * xterm.c (x_create_terminal): Add comment.
18726
18727 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18728
187292007-09-10 Richard Stallman <rms@gnu.org>
18730
18731 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18732
187332007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18734
18735 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18736 (DEFUN): Document `intspec', use it instead of `prompt'.
18737
18738 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18739
18740 * data.c (Finteractive_form): If the interactive specification starts
18741 with a `(', use it as a Lisp form.
18742
18743 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18744 name and file modes.
18745
18746 * callint.c (Fcall_interactively): Comment fixes.
18747
187482007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18749
18750 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18751 and compiled functions.
18752
187532007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18754
18755 * window.c (prefer_window_split_horizontally): New variable.
18756 (display_buffer): Consider splitting window horizontally depending
18757 on prefer_window_split_horizontally.
18758
187592007-09-08 Eli Zaretskii <eliz@gnu.org>
18760
18761 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18762
187632007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18764
18765 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18766
18767 * frame.c (x_set_frame_parameters): Check number is positive before
18768 using XFASTINT.
18769
18770 * window.c (freeze_window_start): Don't presume selected_window holds
18771 a window object.
18772 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18773
187742007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18775
18776 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18777
187782007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18779
18780 * window.c (Vsplit_window_preferred_function): New var.
18781 (Fdisplay_buffer): Use it.
18782 (syms_of_window): Export, and initialize it.
18783
187842007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18785
18786 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18787
187882007-09-06 Glenn Morris <rgm@gnu.org>
18789
18790 * gtkutil.c (menu_grab_callback) <cnt>:
18791 * xselect.c (x_reply_selection_request) <cnt>: Move static
18792 variable to file scope.
18793
187942007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18795
18796 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18797 consistent values of selected_frame and selected_window.
18798
187992007-09-04 Jason Rumney <jasonr@gnu.org>
18800
18801 * w32console.c (initialize_w32_display): Zero unused hooks.
18802
188032007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18804
18805 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18806 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18807
188082007-09-04 Jason Rumney <jasonr@gnu.org>
18809
18810 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18811 in w32console.c. Set up input. Remove XXX comments that have been
18812 confirmed as correct.
18813
18814 * s/ms-w32.h (MULTI_KBOARD): Define.
18815
18816 * w32console.c (one_and_only_w32cons): Remove.
18817 (initialize_w32_display): Take terminal argument.
18818
18819 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18820 initialize_w32_display.
18821 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18822
18823 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18824
18825 * keyboard.c (discard_mouse_events): Discard it.
18826 (make_lispy_event): Translate it to a lisp event.
18827 (lispy_wheel_names): Add wheel-left and right events.
18828 (syms_of_keyboard): Enlarge wheel_syms.
18829
18830 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18831 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18832
18833 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18834
18835 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18836 from WM_MOUSEHWHEEL.
18837 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18838
18839 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18840 terminal.
18841
18842 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18843 keyboard for the terminal.
18844
188452007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18846
18847 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18848 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18849 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18850 and resume-tty-function to resume-tty-hook.
18851 (Fsuspend_tty, Fresume_tty): Use new names.
18852
188532007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18854
18855 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18856 if it starts with "n:".
18857
188582007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18859
18860 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18861
188622007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18863
18864 * frame.h:
18865 * frame.c (Qterm_environment_variable): Remove.
18866 (syms_of_frame): Don't init and staticpro it.
18867
18868 * callproc.c (getenv_internal): Remove special case for $TERM.
18869
18870 * callproc.c (Vinitial_environment): New variable.
18871 (set_initial_environment): Initialize it.
18872 (syms_of_callproc): Declare it.
18873 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18874 TERM under which a process runs is never related to the TERM in which
18875 Emacs is running.
18876
188772007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18878
18879 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18880 * s/darwin.h: ... do it here.
18881
188822007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18883
18884 * lisp.h (set_initial_environment): Rename from set_global_environment.
18885
18886 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18887 removed by mistake on the multi-tty branch.
18888
18889 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18890 (Fmodify_frame_parameters): Return a value.
18891
18892 * image.c (png_load): Comment-out var only used in commented-out code.
18893
18894 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18895 before passing it to mark_object.
18896
18897 * xfaces.c (internal_resolve_face_name): Return a value.
18898 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18899
18900 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18901 (x_icon): Comment-out var only used in commented-out code.
18902
189032007-08-29 Romain Francoise <romain@orebokech.com>
18904
18905 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18906 QUIT hasn't been provided.
18907
189082007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18909
18910 * callproc.c (child_setup, getenv_internal): Use the
18911 display-environment-variable and term-environment-variable frame params.
18912 (set_initial_environment): Initialise Vprocess_environment.
18913
18914 * config.in: Disable multi-keyboard support on a mac.
18915
18916 * frame.c (Qterm_environment_variable)
18917 (Qdisplay_environment_variable): New variables.
18918 (syms_of_frame): Intern and staticpro them.
18919 (Fmake_terminal_frame): Disable output method test.
18920
18921 * frame.h: Declare them here.
18922
18923 * macfns.c (x_set_mouse_color): Get rif from the frame.
18924 (x_set_tool_bar_lines): Don't use updating_frame.
18925 (mac_window): Add 2 new parameters for consistency with other systems.
18926 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18927 frame parameters following what is done in X11 and w32. Don't use
18928 FRAME_MAC_DISPLAY_INFO.
18929 (Fx_open_connection, start_hourglass): Remove window-system check.
18930 (x_create_tip_frame): Get the keyboard from the terminal.
18931
18932 * macmenu.c: Reorder includes.
18933 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18934
18935 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18936 terminal parameter.
18937 (x_clear_frame): Add a frame parameter.
18938 (note_mouse_movement): Get rif from the frame.
18939 (mac_term_init): Initialize the terminal.
18940 (mac_initialize): Make static and move terminal initialization ...
18941 (mac_create_terminal): ... to this new function.
18942
18943 * macterm.h (struct mac_display_info): Add terminal.
18944 (mac_initialize): Delete declaration.
18945
18946 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18947
18948 * sysdep.c: Comment out text after #endif.
18949
18950 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18951 is defined. Better initialize ttys in windows. Use terminal
18952 specific mouse_position_hook.
18953
18954 * termhooks.h (union display_info): Add mac_display_info.
18955
18956 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18957 Set the default minibuffer frame, window_system and the rest of the
18958 frame parameters following what is done in X11.
18959
18960 * w32term.c (w32_initialize): Make static.
18961
18962 * xselect.c (x_handle_selection_clear): Only access
18963 terminal->kboard when MULTI_KBOARD is defined.
18964
18965 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18966 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18967
189682007-08-29 Jason Rumney <jasonr@gnu.org>
18969
18970 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18971 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18972
18973 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18974 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18975
18976 * keyboard.c (restore_kboard_configuration): Only define when
18977 MULTI_KBOARD defined.
18978
18979 * makefile.w32-in: Update dependancies from Makefile.in.
18980 (OBJ1): Add terminal.$(O)
18981
18982 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18983 Don't define function body.
18984 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18985
18986 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18987
18988 * w32.c (request_sigio, unrequest_sigio): Remove.
18989
18990 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18991 (w32con_clear_frame, w32con_clear_end_of_line)
18992 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18993 (w32con_delete_glyphs, w32con_set_terminal_window)
18994 (scroll_line, w32_sys_ring_bell): Add frame arg.
18995 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
18996 Add terminal arg.
18997 (PICK_FRAME): Remove.
18998 (w32con_write_glyphs): Use frame specific terminal coding.
18999 (one_and_only_w32cons): New global variable.
19000 (initialize_w32_display): Use it for storing hooks.
19001 (create_w32cons_output): New function.
19002
19003 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19004 arg a frame.
19005
19006 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19007 Set window_system.
19008 (x_set_tool_bar_lines): Don't use updating_frame.
19009 (Fx_create_frame): Set terminal and ref count.
19010 (Fx_open_connection): Remove window-system check.
19011
19012 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19013
19014 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19015 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19016 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19017 Add frame arg.
19018 (x_delete_terminal, w32_create_terminal): New functions.
19019 (w32_term_init): Create a terminal.
19020 (w32_initialize): Move terminal specific initialization to
19021 w32_create_terminal.
19022
19023 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19024 (w32_clear_rect, w32_clear_area): Use background from frame.
19025 (w32_display_info): Add terminal.
19026 (w32_sys_ring_bell, x_delete_display): Declare here.
19027
19028 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19029
19030 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19031
190322007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19033
19034 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19035 Fix get_named_tty calls for the controlling tty.
19036
190372007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19038
19039 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19040
190412007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19042
19043 * term.c (tty_insert_glyphs): Add missing first parameter.
19044
190452007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19046
19047 * buffer.c (Fbuffer_list, Fbury_buffer):
19048 Take frame->buried_buffer_list into account.
19049
19050 * cm.c (current_tty): New variable, for cmputc().
19051 (cmputc): Use it.
19052 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19053 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19054 (cmgoto): Add tty parameter. Pass it on to calccost().
19055 Use emacs_tputs() instead of tputs().
19056
19057 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19058 tputs().
19059 (current_tty): New variable, for cmputc().
19060 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19061
19062 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19063 (internal_condition_case, internal_condition_case_1)
19064 (internal_condition_case_2): Don't abort when x_catching_errors.
19065
19066 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19067 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19068 prevent crashes caused by bogus longjmps in read_char.
19069
19070 * keymap.h (Fset_keymap_parent): Add EXFUN.
19071
19072 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19073 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19074 Remove redundant definition.
19075
19076 * macfns.c (x_set_mouse_color, x_make_gc):
19077 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19078
19079 * w32term.c (x_free_frame_resources):
19080 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19081 (w32_initialize): Use the accessor macros for terminal characteristics.
19082
19083 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19084 Use the accessor macros for terminal characteristics.
19085 * msdos.c (internal_terminal_init): Use the accessor macros for
19086 terminal characteristics.
19087 (ScreenVisualBell, internal_terminal_init):
19088 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19089
19090 * termopts.h (no_redraw_on_reenter): Declare.
19091
19092 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19093 (mark_terminals, mark_ttys): Declare.
19094 (Fgarbage_collect): Call them.
19095 (mark_object): Mark buried_buffer_list.
19096
19097 * prefix-args.c: Include stdlib.h for exit.
19098
19099 * syssignal.h: Add comment.
19100
19101 * indent.c: Include stdio.h.
19102
19103 * window.h (Vinitial_window_system): Declare.
19104 (Vwindow_system): Delete declaration.
19105
19106 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19107
19108 * image.c (lookup_image): Don't initialize `c' until the xasserts
19109 have been run.
19110
19111 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19112 FRAME_FOREGROUND_PIXEL.
19113
19114 * print.c (print_preprocess): Don't lose print_depth levels while
19115 iterating.
19116
19117 * widget.c (update_from_various_frame_slots):
19118 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19119
19120 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19121 frames.
19122 (window_internal_height): Remove bogus make_number call.
19123 (init_window_once): Call make_terminal_frame with two zero parameters.
19124
19125 * fileio.c (Fread_file_name): Update comment.
19126
19127 * callint.c (Fcall_interactively):
19128 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19129 Make sure it is correctly unwound.
19130
19131 * xsmfns.c (x_session_close): New function.
19132
19133 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19134 Delete declarations.
19135
19136 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19137 (x_output): Remove background_pixel and foreground_pixel fields.
19138 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19139 (x_delete_device, x_session_close): Declare.
19140
19141 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19142 (read_filtered_event): Call `read_char' with a local
19143 `wrong_kboard_jmpbuf'.
19144
19145 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19146 Don't call single_kboard_state. Use FRAME_RIF.
19147
19148 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19149 systems.
19150
19151 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19152 (Fframe_with_environment, Fset_input_meta_mode)
19153 (Fset_quit_char): EXFUN.
19154 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19155 (init_sys_modes, reset_sys_modes): Update prototypes.
19156 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19157
19158 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19159 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19160 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19161 Delete declarations.
19162 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19163 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19164 New declarations.
19165
19166 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19167 already does that during init_display(). Call syms_of_keymap
19168 before syms_of_keyboard. Call `syms_of_terminal'.
19169 Call set_initial_environment, not set_process_environment.
19170 (shut_down_emacs): Call reset_all_sys_modes() instead of
19171 reset_sys_modes().
19172
19173 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19174 (internal_resolve_face_name, resolve_face_name_error): New functions.
19175 (resolve_face_name): Protect against loops and errors thrown by Fget.
19176 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19177 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19178
19179 * scroll.c: Replace CURTTY() with local variables throughout the
19180 file (where applicable).
19181 (calculate_scrolling, calculate_direct_scrolling)
19182 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19183 characteristics.
19184
19185 * keymap.c (Vfunction_key_map): Remove.
19186 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19187 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19188 (Vkey_translation_map): Remove.
19189 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19190 (Fdescribe_buffer_bindings)
19191 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19192 Update for terminal-local key-translation-map.
19193
19194 * Makefile.in (callproc.o): Update dependencies.
19195 (lisp, shortlisp): Add termdev.elc.
19196 (obj): Add terminal.o.
19197 (terminal.o): Add dependencies.
19198 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19199 (data.o, fns.o): Add termhooks.h dependency.
19200 (SOME_MACHINE_LISP): Add dnd.elc.
19201 (minibuf.o): Fix typo.
19202 Update dependencies.
19203
19204 * data.c (do_symval_forwarding, store_symval_forwarding)
19205 (find_symbol_value): Use the selected frame's keyboard, not
19206 current_kboard.
19207
19208 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19209 Vwindow_system.
19210
19211 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19212 Fmenu_bar_open.
19213 (syms_of_xmenu): Update defsubr.
19214 (mouse_position_for_popup, Fx_popup_menu)
19215 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19216 (set_frame_menubar, free_frame_menubar)
b97439ce 19217 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19218 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19219 an X frame.
19220
19221 * xselect.c (x_own_selection): Abort if not an X frame.
19222 (some_frame_on_display): Check if it is an X frame.
19223 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19224
19225 * coding.c: Include frame.h and termhooks.h.
19226 (terminal_coding, keyboard_coding): Delete.
19227 (Fset_terminal_coding_system_internal)
19228 (Fset_keyboard_coding_system_internal)
19229 (Fkeyboard_coding_system)
19230 (Fterminal_coding_system): Add a terminal parameter.
19231 Get terminal_coding from the terminal.
19232 (init_coding_once): Don't call setup_coding_system here.
19233
19234 * dispextern.h (set_scroll_region, turn_off_insert)
19235 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19236 (tty_clear_end_of_line, tty_setup_colors)
19237 (delete_tty, updating_frame)
19238 (produce_special_glyphs, produce_glyphs, write_glyphs)
19239 (insert_glyphs): Remove.
19240 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19241 (tty_turn_off_highlight, get_tty_size): Add declaration.
19242 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19243
19244 * frame.h (enum output_method): Add output_initial.
19245 (struct x_output): Delete.
19246 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19247 Access foreground_pixel and background_pixel directly from the frame.
19248 (tty_display): Delete.
19249 (struct frame): Add buried_buffer_list, foreground_pixel,
19250 background_pixel and terminal. Delete kboard.
19251 (union output_data): Add tty.
19252 (FRAME_KBOARD): Get the kboard from the terminal.
19253 (FRAME_INITIAL_P): New macro.
19254 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19255 (Qterm_environment_variable, Qdisplay_environment_variable)
19256 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19257 New declarations.
19258
19259 * termchar.h (tty_output, tty_display_info): New structures.
19260 (tty_list): Declare.
19261 (FRAME_TTY, CURTTY): New macros.
19262 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19263 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19264 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19265 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19266
19267 * callproc.c: Include frame.h and termhooks.h, for terminal
19268 parameters.
19269 (add_env): New function.
19270 (child_setup): Use it.
19271 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19272 (getenv_internal): Fix get_terminal_param call.
19273 (Fgetenv_internal, egetenv): Update doc.
19274 (syms_of_callproc): Initialize Vprocess_environment to nil.
19275 Register and initialize them. Remove obsolete defvars. Update doc
19276 strings.
19277 (child_setup): Handle Vlocal_environment_variables.
19278 (getenv_internal): Add terminal parameter.
19279 Handle Vlocal_environment_variables.
19280 (Fgetenv_internal): Add terminal parameter.
19281 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19282 environment in a frame (not terminal) parameter. Update doc strings.
19283 (set_initial_environment): Rename from set_global_environment.
19284 Store Emacs environment in initial frame parameter.
19285
19286 * xdisp.c (redisplay_internal): Update references to
19287 `previous_terminal_frame'.
19288 (display_mode_line, Fformat_mode_line): Replace calls to
19289 `push_frame_kboard' with `push_kboard'.
19290 (get_glyph_string_clip_rects): Add extra parentheses and
19291 braces to prevent compiler warnings.
19292 (calc_pixel_width_or_height): Add xassert to check that the
19293 frame is alive. Don't call `lookup_image' on a termcap frame.
19294 (message2_nolog, message3_nolog, redisplay_internal)
19295 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19296 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19297 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19298 (Fx_display_pixel_width, Fx_display_pixel_height)
19299 (Fx_display_planes, Fx_display_color_cells)
19300 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19301 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19302 (Fx_display_backing_store, Fx_display_visual_class)
19303 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19304 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19305
19306 * xfns.c (x_set_foreground_color x_set_background_color)
19307 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19308 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19309 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19310 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19311 terminal that is being deleted.
19312 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19313 frame parameter, and make sure it overrides any user-supplied setting.
19314 (Fx_close_connection, Fx_synchronize): Unify argument names with
19315 the rest of the DEFUNs.
19316
19317 * dispnew.c (Fsend_string_to_terminal): Update call to
19318 `get_tty_terminal'.
19319 (Fredraw_frame, Fsend_string_to_terminal)
19320 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19321 FRAME_TERMCAP_P and FRAME_TTY.
19322 (window_change_signal): Don't believe width/height values that are
19323 impossibly small.
19324 (Vinitial_window_system): Rename from Vwindow_system.
19325 (termscript, Wcm, rif): Delete.
19326
19327 * termhooks.h (struct terminal): New struct containing the
19328 previously global text display hooks and new members NAME,
19329 DELETED and PARAM_ALIST.
19330 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19331 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19332 (FRAME_RIF): New macros.
19333 (get_terminal_param, get_device): New declarations.
19334 (termscript): Delete declaration.
19335
19336 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19337 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19338 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19339 FRAME_FOREGROUND_PIXEL.
19340 (x_fully_uncatch_errors): Disable definition.
19341 (x_scroll_bar_expose): Fix reference to foreground pixel.
19342 (XTread_socket): Disable loop on all X displays.
19343 (x_delete_terminal): Don't set terminal->deleted and let
19344 delete_terminal delete the frames on the terminal.
19345 (x_delete_display): Doc update to reflect changes in
19346 delete_terminal.
19347 (x_display_info) <terminal>: Move member earlier in the struct.
19348 (deleting_tty): Remove old variable.
19349 (Fsuspend_tty): Call clear_tty_hooks.
19350 (Fresume_tty, init_tty): Call set_tty_hooks.
19351 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19352 errors on X frames.
19353 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19354 (handle_one_xevent): Initialize `f' to NULL.
19355 (x_delete_terminal, x_create_terminal): New functions.
19356 (XTset_terminal_modes, XTreset_terminal_modes)
19357 (XTread_socket, x_connection_closed, x_term_init)
19358 (x_term_init, x_delete_display): Add terminal parameter.
19359 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19360 X connections.
19361
19362 * frame.c: Include termchar.h.
19363 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19364 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19365 (Qdisplay_environment_variable): New vars.
19366 (Fframep): Deal with output_initial.
19367 (Fframe-live-p): Doc fix.
19368 (Fwindow-system): New function.
19369 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19370 (make_terminal_frame): Don't create frames on a terminal that is
19371 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19372 (store_frame_param): Check for found_for_frame before calling XFRAME.
19373 (Fmake_terminal_frame): Handle NULL tty names correctly.
19374 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19375 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19376 frames to refer to a deleted frame in their 'environment parameter.
19377 (Fframe_with_environment): New function.
19378 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19379 (get_future_frame_param): New function.
19380 (Fmake_terminal_frame): Use it.
19381 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19382
19383 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19384 * sysdep.c (reset_sys_modes): Update for renames.
19385
19386 * keyboard.c (tty_read_avail_input): New function.
19387 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19388 (syms_of_keyboard): Defsubr them.
19389 (Fset_input_meta_mode, Fset_quit_char): New functions.
19390 (Fset_input_mode): Split to above functions.
19391 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19392 parameter. Use it in call to `read_char'.
19393 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19394 Set wrong_kboard_jmpbuf correctly in recursive calls.
19395 Use current_kboard to access Vkeyboard_translate_table.
19396 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19397 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19398 Update longjmp invocations. Remember the original current_kboard,
19399 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19400 changes it. Comment out unnecessary calls to
19401 `record_single_kboard_state' and `any_kboard_state'.
19402 Update recursive calls.
19403 (wrong_kboard_jmpbuf): Remove global variable.
19404 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19405 Handle deleted interrupted_kboards correctly; that is a legal
19406 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19407 and read_char calls. Abort if interrupted_kboard died in read_char.
19408 (any_kboard_state, single_kboard_state)
19409 (push_frame_kboard): Remove function.
19410 (pop_kboard): Switch out of single_kboard mode if the kboard has
19411 been deleted. Remove unused variable. Help debugging by not
19412 changing current_kboard unnecessarily. Set current_kboard to the
19413 kboard of the selected frame when the stored kboard object has
19414 been deleted before pop_kboard.
19415 (temporarily_switch_to_single_kboard): Change first parameter to a
19416 frame pointer. Throw an error when caller wants to change kboards
19417 while in single_kboard mode. Don't push_kboard if we weren't in
19418 single kboard state. Don't pop_kboard if we popped into any
19419 kboard state.
19420 (restore_kboard_configuration): Abort if pop_kboard changed the
19421 kboard in single_kboard mode. Call pop_kboard only after setting
19422 up single_kboard mode.
19423 (Frecursive_edit): Switch to single_kboard mode only in nested
19424 command loops.
19425 (cmd_error, command_loop, command_loop_1, timer_check):
19426 Comment out unnecessary call to `any_kboard_state' and
19427 `record_single_kboard_state'.
19428 (delete_kboard): Exit single_kboard mode if we have just deleted
19429 that kboard. Use FRAME_KBOARD.
19430 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19431 `fatal_error_signal'.
19432 (record_single_kboard_state): Don't push_kboard if we weren't in
19433 single kboard state. Don't pop_kboard if we popped into any
19434 kboard state.
19435 (push_frame_kboard): Rename to push_kboard.
19436 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19437 (read_avail_input): Read input from all terminals.
19438 (mark_kboards): Also mark Vkeyboard_translate_table.
19439 (kbd_buffer_store_event_hold): Simplify condition.
19440 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19441 (Vkeyboard_translate_table): Move to struct kboard.
19442 (init_kboard): Initialize Vkeyboard_translate_table.
19443 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19444 Vkeyboard_translate_table. Update doc strings. Update docs of
19445 local-function-key-map and function-key-map.
19446
19447 * terminal.c: New file.
19448
19449 * term.c: Include errno.h.
19450 (Vring_bell_function, device_list, initial_device)
19451 (next_device_id, ring_bell, update_begin, update_end)
19452 (set_terminal_window, cursor_to, raw_cursor_to)
19453 (clear_to_end, clear_frame, clear_end_of_line)
19454 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19455 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19456 (syms_of_term): Move their initialization to terminal.c.
19457 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19458 (Ftty_display_color_cells)
19459 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19460 (clear_tty_hooks, set_tty_hooks)
19461 (init_tty, maybe_fatal): New functions.
19462 (Ftty_type): Return nil if terminal is not on a tty instead of
19463 throwing an error. Doc update.
19464 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19465 Doc update. Initialize new subrs and variables.
19466 (delete_tty): Use terminal->deleted.
19467 (tty_set_terminal_modes): Rename from set_terminal_modes.
19468 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19469 (set_scroll_region): Rename to `tty_set_scroll_region'.
19470 (turn_on_insert): Rename to `tty_turn_on_insert'.
19471 (turn_off_insert): Rename to `tty_turn_off_insert'.
19472 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19473 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19474 (toggle_highligh): Rename to `tty_toggle_highlight'.
19475 (background_highlight): Rename to `tty_background_highlight'.
19476 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19477 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19478 (tty_set_scroll_region, tty_background_highlight)
19479 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19480 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19481 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19482 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19483 Add static modifier.
19484 (tty_reset_terminal_modes, tty_set_terminal_window)
19485 (tty_set_scroll_region, tty_background_highlight)
19486 (tty_highlight_if_desired, tty_cursor_to)
19487 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19488 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19489 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19490 renames.
19491
194922007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19493
19494 * keyboard.c: Qrtl is new.
19495 (parse_tool_bar_item): Handle :rtl keyword.
19496 (syms_of_keyboard): Intern :rtl keyword.
19497
19498 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19499
19500 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19501 so no Lisp code is executed.
19502 (file_for_image, find_rtl_image): New functions.
19503 (xg_get_image_for_pixmap): Use file_for_image.
19504 (update_frame_tool_bar): If direction is RTL, use RTL image if
19505 defined. Use Gtk stock images if defined.
19506
195072007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19508
19509 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19510 for nonexistent or zero-width glyph in composition glyph.
19511
195122007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19513
19514 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19515
19516 * xdisp.c (Finvisible_p): New function.
19517 (syms_of_xdisp): defsubr it.
19518
195192007-08-24 Juanma Barranquero <lekktu@gmail.com>
19520
19521 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19522 Doc fixes.
19523
195242007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19525
19526 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19527
195282007-08-24 Martin Rudalics <rudalics@gmx.at>
19529
19530 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19531 whether decoding has modified buffer contents.
19532
195332007-08-24 Jason Rumney <jasonr@gnu.org>
19534
19535 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19536 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19537 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19538 (init_svg_functions) [HAVE_NTGUI]: New function.
19539 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19540 (svg_load_image): Use them.
19541 (svg_load_image) [HAVE_NTGUI]: Implement background.
19542
195432007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19544
19545 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19546 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19547 (LIBX): Remove @RSVG_LIBS@.
19548 (LIBES): Add $(RSVG_LIBS).
19549
19550 * image.c (svg_load_image): Blend with specified background if exists.
19551 Use IMAGE_BACKGROUND. Add Mac OS Support.
19552
19553 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19554 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19555 Remove macros.
19556 [MAC_OSX] (socket_callback): Do nothing.
19557 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19558 ReceiveNextEvent.
19559 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19560 socket_callback.
19561 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19562
195632007-08-22 Glenn Morris <rgm@gnu.org>
19564
19565 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19566
195672007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19568
19569 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19570
19571 * image.c: Add support for SVG images. Some additional comments
19572 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19573 (svg_image_p): New function to test for SVG image.
19574 (svg_load): New function to load SVG image.
19575 (svg_load_image): New function, helper for svg_load.
19576 (Qsvg): New Lisp_object.
19577 (svg_keyword_index): New enum.
19578 (svg_format): New static `image_keyword' struct.
19579 (svg_type): New static `image_type' struct.
19580 (librsvg/rsvg.h): Include it.
19581
195822007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19583
19584 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19585
195862007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19587
19588 * lread.c (Qold_style_backquotes): New var.
19589 (syms_of_lread): Init and staticpro it.
19590 (load_warn_old_style_backquotes): New fun.
19591 (Fload): Use them to warn about old style backquotes.
19592 (end_of_file_error, Fload): Remove unused vars.
19593
19594 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19595
19596 * lread.c (Vold_style_backquotes): New var.
19597 (syms_of_lread): Init and export it to Elisp.
19598 (read1): Set it when we find an old-style (back)quote.
19599
196002007-08-22 Jason Rumney <jasonr@gnu.org>
19601
19602 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19603
196042007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19605
19606 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19607
196082007-08-19 Richard Stallman <rms@gnu.org>
19609
19610 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19611
196122007-08-19 Andreas Schwab <schwab@suse.de>
19613
19614 * alloc.c (pure): Round PURESIZE up.
19615
196162007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19617
19618 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19619 active frame.
19620
196212007-08-16 Richard Stallman <rms@gnu.org>
19622
19623 * eval.c (Fcommandp): Add parens to clarify.
19624
19625 * minibuf.c (Fall_completions): Use enum for type of table.
19626
19627 * emacs.c (USAGE2): Improve text.
19628
196292007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19630
19631 * term.c (tty_default_color_capabilities): Declare static
19632 variables in file scope, to avoid HPUX compiler problem.
19633
196342007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19635
19636 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19637 to gtk_toolbar_insert.
19638
196392007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19640
19641 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19642
19643 * insdel.c (reset_var_on_error): New fun.
19644 (signal_before_change, signal_after_change):
19645 Use it to reset (after|before)-change-functions to nil in case of error.
19646 Bind inhibit-modification-hooks to t.
19647 Don't bind (after|before)-change-functions to nil while they run.
19648
196492007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19650
19651 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19652 filling pixmap with stippled background.
19653
196542007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19655
19656 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19657 Don't use invisible frame as parent window for repositioning.
19658
196592007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19660
19661 * print.c (new_backquote_output): Rename from old_backquote_output.
19662 (print): Inverse its logic (according to its name) so as to match the
19663 behavior of new_backquote_flag in lread.c.
19664
196652007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19666
19667 * gmalloc.c (posix_memalign): New function.
19668
19669 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19670 ActivateControl/DeactivateControl here.
19671 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19672 frame-notice-user-settings is non-nil.
19673 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19674 for kEventParamFMFontStyle.
19675 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19676 mac_pass_command_to_system and mac_pass_control_to_system here.
19677 (XTread_socket): Call ActivateControl/DeactivateControl here.
19678 (XTread_socket) [TARGET_API_MAC_CARBON]:
19679 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19680 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19681 for window repositioning.
19682
196832007-08-08 Glenn Morris <rgm@gnu.org>
19684
19685 * Replace `iff' in doc-strings and comments.
19686
196872007-08-07 Chong Yidong <cyd@stupidchicken.com>
19688
19689 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19690
196912007-08-07 Martin Rudalics <rudalics@gmx.at>
19692
19693 * fileio.c (Finsert_file_contents): Run format-decode and
19694 after_insert_file_functions on entire buffer when REPLACE is
19695 non-nil and inhibit modification_hooks and point_motion_hooks.
19696 For consistency, run after_insert_file_functions iff something
19697 got inserted. Move signal_after_change and update_compositions
19698 after code running after_insert_file_functions. Make sure that
19699 undo_list doesn't record intermediate steps of the decoding process.
19700
197012007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19702
19703 * emacs.c (main)
19704 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19705 Call malloc_enable_thread on interactive startup.
19706
19707 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19708 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19709 [USE_PTHREAD]: Conditionalize with it.
19710 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19711 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19712 New functions.
19713
197142007-08-06 Chong Yidong <cyd@stupidchicken.com>
19715
19716 * xdisp.c (redisplay_window): When restoring original buffer
19717 position, make sure it is still valid.
19718
19719 * image.c (png_load): Ignore png-supplied background color.
19720
197212007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19722
19723 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19724 Use kCFAbsoluteTimeIntervalSince1970.
19725
19726 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19727 New variable.
19728 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19729 event loop should be quit.
19730 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19731 Quit dialog event loop if quit_dialog_event_loop is set.
19732
19733 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19734 (Selection): New typedef. Use instead of ScrapRef.
19735 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19736 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19737 (mac_clear_selection): Rename from clear_scrap.
19738 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19739 scrap_has_target_type. All uses changed.
19740 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19741 (mac_selection_has_target_p): New functions.
19742 (mac_put_selection_value): Rename from put_scrap_string.
19743 (mac_get_selection_value): Rename from get_scrap_string.
19744 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19745 (put_scrap_private_timestamp, scrap_has_target_type)
19746 (get_scrap_private_timestamp): Remove functions.
19747 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19748 (x_own_selection, x_get_local_selection):
19749 Use mac_valid_selection_value_p.
19750 (x_own_selection): Don't use put_scrap_private_timestamp.
19751 Record OWNERSHIP-INFO into Vselection_alist instead.
19752 (x_get_local_selection): Don't check type if request is local.
19753 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19754 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19755
197562007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19757
19758 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19759 add comment explaining why.
19760
197612007-08-03 Richard Stallman <rms@gnu.org>
19762
19763 * fileio.c (Fvisited_file_modtime): Use make_time.
19764
197652007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19766
19767 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19768 build.
19769
197702007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19771
19772 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19773
197742007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19775
19776 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19777
197782007-07-30 Richard Stallman <rms@gnu.org>
19779
19780 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19781
197822007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19783
19784 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19785
197862007-07-28 Nick Roberts <nickrob@snap.net.nz>
19787
19788 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19789 remote default-directory.
19790
19791 * buffer.c (mode-line-format): Update doc string.
19792
197932007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19794
19795 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19796 scroll bar gap.
19797 (x_scroll_bar_create): Set bar->fringe_extended_p.
19798 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19799 on frame edge. Check fringe background extension. Don't clear
19800 extended fringe background area.
19801
19802 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19803 (w32_fill_area): Enclose multiple statements with do ... while (0).
19804
19805 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19806 Extend fringe background to scroll bar gap.
19807 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19808 Set bar->fringe_extended_p.
19809 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19810 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19811 background extension. Don't clear extended fringe background area.
19812
19813 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19814 New member fringe_extended_p.
19815
198162007-07-25 Glenn Morris <rgm@gnu.org>
19817
19818 * Relicense all FSF files to GPLv3 or later.
19819
19820 * COPYING: Switch to GPLv3.
19821
198222007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19823
19824 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19825
19826 * data.c (Finteractive_form): Check for the presence of an
19827 `interactive-form' symbol property more thoroughly.
19828
19829 * data.c (Finteractive_form): Use an `interactive-form' property if
19830 present, analogous to the function-documentation property.
19831
198322007-07-24 Jason Rumney <jasonr@gnu.org>
19833
19834 * w32fns.c (x_real_positions): Get real position from OS instead of
19835 calculating it.
19836
198372007-07-23 Jason Rumney <jasonr@gnu.org>
19838
19839 * filelock.c (current_lock_owner): Allow for @ sign in username.
19840
198412007-07-22 Nick Roberts <nickrob@snap.net.nz>
19842
19843 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19844 remote default-directory.
19845
19846 * buffer.c (mode-line-format): Describe above case in doc string.
19847
198482007-07-20 Eli Zaretskii <eliz@gnu.org>
19849
19850 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19851 Define if not defined.
19852
198532007-07-18 Jason Rumney <jasonr@gnu.org>
19854
19855 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19856
198572007-07-18 Richard Stallman <rms@gnu.org>
19858
19859 * data.c (Fsetq_default): Doc fix.
19860
19861 * eval.c (Fsetq): Doc fix.
19862
198632007-07-18 Juanma Barranquero <lekktu@gmail.com>
19864
19865 * coding.c (Ffind_operation_coding_system):
19866 * eval.c (For, Fand): Doc fixes.
19867 Reported by Johan Bockgård.
19868
198692007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19870
19871 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19872
19873 * xterm.h: Declare x_ewmh_activate_frame.
19874
19875 * xterm.c (x_ewmh_activate_frame): New function.
19876 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19877
198782007-07-17 Martin Rudalics <rudalics@gmx.at>
19879
19880 * window.c (Fdisplay_buffer): If largest or LRU window is the
19881 only window, split it even if it is not eligible for splitting.
19882 This restores the original behavior broken by the 2007-07-15
19883 change.
19884
198852007-07-17 Glenn Morris <rgm@gnu.org>
19886
19887 * abbrev.c (abbrev_check_chars): New function.
19888 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19889 Call abbrev_check_chars to check abbrev characters are word
19890 constituents. Doc fix.
19891
198922007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19893
19894 * process.c (Fstart_process, Fmake_network_process)
19895 (read_process_output): Fix up last changes.
19896
198972007-07-16 Eli Zaretskii <eliz@gnu.org>
19898
19899 * makefile.w32-in (clean): Don't delete *~.
19900
199012007-07-16 Andreas Schwab <schwab@suse.de>
19902
19903 * window.c (Fdisplay_buffer): Use NILP.
19904 (Fset_window_scroll_bars): Likewise.
19905
199062007-07-15 Martin Rudalics <rudalics@gmx.at>
19907
19908 * window.c (window_min_size_2): New function.
19909 (window_min_size_1, size_window, Fdisplay_buffer)
19910 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19911 windows without mode- or header-lines when window-min-height is
19912 too small.
19913 (size_window): Reset nodelete_p after testing it, following an
19914 earlier note by Kim F. Storm.
19915 (display_buffer): Do not set split_height_threshold to twice the
19916 value of window_min_height to avoid changing the value of a
19917 customizable variable. Rather explicitly check whether the
19918 height of the window that shall be splitted is at least as large
19919 as split_height_threshold.
19920 (Fwindow_full_width_p): New defun.
19921 (syms_of_window): Defsubr it.
19922
19923 * window.h: Add EXFUN for Fwindow_full_width_p.
19924
199252007-07-14 Jason Rumney <jasonr@gnu.org>
19926
19927 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19928
199292007-07-14 Richard Stallman <rms@gnu.org>
19930
19931 * eval.c (maybe_call_debugger): New function.
19932 (find_handler_clause): Use maybe_call_debugger.
19933 Call it when the handler says `debug'.
19934 Eliminate DEBUGGER_VALUE_PTR.
19935 (Fsignal): Eliminate debugger_value.
19936 (Qdebug): New variable.
19937 (syms_of_eval): Initialize it.
19938
199392007-07-14 Juanma Barranquero <lekktu@gmail.com>
19940
19941 * eval.c (Fprogn):
19942 * keyboard.c (Ftrack_mouse):
19943 * print.c (Fwith_output_to_temp_buffer):
19944 * window.c (Fsave_window_excursion): Doc fix.
19945
199462007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19947
19948 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19949
199502007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19951
19952 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19953 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19954 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19955 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19956 Remove unused encoding_carryover.
19957 * process.c: Adjust all functions accordingly.
19958
199592007-07-12 Richard Stallman <rms@gnu.org>
19960
19961 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19962
199632007-07-11 Jason Rumney <jasonr@gnu.org>
19964
19965 * makefile.w32-in (LIBS): Include OLE32.
19966
19967 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19968 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19969
199702007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
19971
19972 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19973 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19974 from a Lisp_Object into a bare pointer.
19975 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19976 Adjust the code correspondingly.
19977
19978 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19979
19980 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19981 (term_show_mouse_face): Remove unused var `j'.
19982 (handle_one_term_event): Remove unused vars `i' and `j'.
19983 Don't cast return value of ttyname since it's not necessary.
19984
199852007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
19986
19987 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19988 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19989
19990 * fns.c (map_char_table): Use an array of int for `indices' rather than
19991 an array of Lisp_Objects (which are only ever integers anyway).
19992 (Fmap_char_table): Update caller.
19993 * lisp.h: Update prototype.
19994 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
19995 * fontset.c (Ffontset_info):
19996 * casetab.c (set_case_table): Update callers.
19997
19998 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
19999
20000 * keymap.c (struct accessible_keymaps_data)
20001 (struct where_is_internal_data): New structures.
20002 (accessible_keymaps_1, where_is_internal_1): Use them to change
20003 interface to adhere to the one used by map_keymap.
20004 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20005 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20006
20007 * keymap.h (map_keymap_function_t): More informative prototype.
20008
200092007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20010
20011 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20012 (looking_at_1): Don't change search_regs and last_thing_searched
20013 if `inhibit-changing-match-data' is non-nil.
20014 (string_match_1, search_buffer, set_search_regs): Likewise.
20015 (syms_of_search): Add Lisp level definition for
20016 `inhibit-changing-match-data' and set it to nil.
20017 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20018 start and end of the match, instead of using values in search_regs.
20019
200202007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20021
20022 * minibuf.c (Fcompleting_read): New value `confirm-only'
20023 for `require-match'.
20024
200252007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20026
20027 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20028 part of the 2007-06-27 change to syms_of_fileio.
20029
200302007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20031
20032 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20033 Check WINDOWP before using XWINDOW. Consolidate return statements.
20034
200352007-06-27 Richard Stallman <rms@gnu.org>
20036
20037 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20038
200392007-06-27 Juanma Barranquero <lekktu@gmail.com>
20040
20041 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20042
200432007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20044
20045 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20046 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20047 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20048 (_free_internal, memalign): Use them.
20049 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20050 Initialize to PTHREAD_MUTEX_INITIALIZER.
20051 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20052 (morecore_nolock): Rename from morecore. All uses changed.
20053 Use only nolock versions of internal allocation functions.
20054 (_malloc_internal_nolock, _realloc_internal_nolock)
20055 (_free_internal_nolock): New functions created from
20056 _malloc_internal, _realloc_internal, and _free_internal.
20057 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20058 Copy hook value to automatic variable before its use.
20059 (memalign): Copy hook value to automatic variable before its use.
20060
200612007-06-26 Kenichi Handa <handa@m17n.org>
20062
20063 * coding.c (Ffind_operation_coding_system): Docstring improved.
20064 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20065
200662007-06-25 David Kastrup <dak@gnu.org>
20067
20068 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20069 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20070 cater for additional parameter.
20071
20072 * keymap.h: Adjust number of parameters to `current-active-maps'.
20073
20074 * doc.c (Fsubstitute_command_keys): Adjust call of
20075 `current-active-maps'.
20076
200772007-06-25 David Kastrup <dak@gnu.org>
20078
20079 * callint.c (Fcall_interactively): Make the parsing of interactive
20080 specs somewhat more readable.
20081
200822007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20083
20084 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20085 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20086 if extended background has already been filled.
20087
200882007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20089
20090 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20091 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20092
20093 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20094 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20095 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20096 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20097 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20098 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20099 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20100 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20101 Run timers during dialog popup.
20102 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20103
201042007-06-21 Jason Rumney <jasonr@gnu.org>
20105
20106 * image.c (convert_mono_to_color_image): Swap fore and background.
20107
201082007-06-20 Jason Rumney <jasonr@gnu.org>
20109
20110 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20111 (w32_free_bdf_font): Unmap memory not handle.
20112
201132007-06-20 Sam Steingold <sds@gnu.org>
20114
20115 * gmalloc.c (__morecore): Fix the declaration to comply with the
20116 definition.
20117
201182007-06-20 Juanma Barranquero <lekktu@gmail.com>
20119
20120 * w32term.c (w32_delete_display): Remove leftover declaration.
20121 (w32_define_cursor, w32_initialize): Make static.
20122
20123 * w32.c (_wsa_errlist): Fix typo in error message.
20124 (init_environment): Ignore any environment variable from the
20125 registry having a null value.
20126
201272007-06-20 Glenn Morris <rgm@gnu.org>
20128
20129 * Makefile.in (LIBGIF): Default to -lgif.
20130
201312007-06-17 Jason Rumney <jasonr@gnu.org>
20132
20133 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20134 unicode strings.
20135
201362007-06-16 Juanma Barranquero <lekktu@gmail.com>
20137
20138 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20139 Fix typo in docstring.
20140
201412007-06-16 Eli Zaretskii <eliz@gnu.org>
20142
20143 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20144 and their keybindings.
20145
201462007-06-15 Chong Yidong <cyd@stupidchicken.com>
20147
20148 * composite.c (update_compositions): Fix last fix.
20149
201502007-06-14 Jason Rumney <jasonr@gnu.org>
20151
20152 * w32.c (get_process_times_fn): New function pointer.
20153 (globals_of_w32): Intialize it if present in kernel32.dll.
20154 (w32_get_internal_run_time): New function.
20155
20156 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20157
201582007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20159
20160 * composite.c (update_compositions): Check the validness of
20161 compositions.
20162
201632007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20164
20165 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20166 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20167
20168 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20169 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20170
20171 * macgui.h (USE_MAC_TOOLBAR): New define.
20172
20173 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20174 Return immediately unless popup is activated.
20175
20176 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20177 background to scroll bar gap.
20178 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20179 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20180 scroll bars on frame edge. Check fringe background extension.
20181 Don't clear extended fringe background area.
20182 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20183 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20184 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20185 [USE_MAC_TOOLBAR]: New macros.
20186 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20187 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20188 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20189 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20190 [USE_MAC_TOOLBAR]: New functions.
20191 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20192 manually if previous repositioning has failed.
20193 (mac_handle_keyboard_event): Use precomputed event kind.
20194 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20195 as tool bar item click. Handle mouse movement over tool bar items.
20196
20197 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20198 toolbar_win_gravity.
20199 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20200 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20201 Add externs.
20202
20203 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20204 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20205
202062007-06-14 Chong Yidong <cyd@stupidchicken.com>
20207
20208 * image.c (search_image_cache): Remove unused variable.
20209
202102007-06-13 Chong Yidong <cyd@stupidchicken.com>
20211
20212 * xfns.c, xmenu.c: Link to xaw3d if available.
20213
202142007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20215
20216 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20217 frame_foreground and frame_background.
20218
20219 * image.c (lookup_image): Save frame foreground and background colors.
20220 (search_image_cache): Check if saved and current frame colors match.
20221
202222007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20223
20224 * regex.c (regex_compile): Remove the `regnum' counter.
20225 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20226
202272007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20228
20229 * term.c: Include intervals.h to declare Fget_text_property.
20230
202312007-06-10 Jason Rumney <jasonr@gnu.org>
20232
20233 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20234
202352007-06-08 Juanma Barranquero <lekktu@gmail.com>
20236
20237 * callint.c (Fcall_interactively):
20238 * editfns.c (Fdelete_and_extract_region):
20239 * fileio.c (Fread_file_name):
20240 * fns.c (Fmapconcat):
20241 * keyboard.c (cmd_error_internal):
20242 * keymap.c (Fkey_description):
20243 * lread.c (openp):
20244 * minibuf.c (read_minibuf):
20245 * search.c (wordify):
20246 * sunfns.c (sel_read):
20247 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20248 * xfns.c (x_default_scroll_bar_color_parameter):
20249 * xmenu.c (menu_help_callback):
20250 * xselect.c (Fx_get_atom_name):
20251 * xterm.c (x_term_init): Use empty_unibyte_string.
20252
202532007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20254
20255 * alloc.c (init_strings): Initialize canonical empty strings.
20256 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20257 canonical empty string when the requested size is 0.
20258
20259 * emacs.c (empty_unibyte_string): Rename from empty_string.
20260 (empty_multibyte_string): New canonical empty string.
20261 (syms_of_emacs): Don't initialize empty_string.
20262
20263 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20264 string, if appropriate.
20265 (empty_unibyte_string, empty_multibyte_string): New externs.
20266 (empty_string): Remove extern.
20267
20268 * lread.c (syms_of_lread): Use empty_unibyte_string.
20269
202702007-06-07 Jason Rumney <jasonr@gnu.org>
20271
20272 * s/ms-w32.h: Don't define HAVE_TZNAME.
20273
20274 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20275
202762007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20277
20278 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20279
20280 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20281 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20282
20283 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20284 Don't call next handler.
20285 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20286 Remove argument. Install handler to application.
20287 (set_frame_menubar): Don't change deep_p.
20288 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20289 FRAME_OUTER_TO_INNER_DIFF_Y.
20290 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20291 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20292 [HAVE_DIALOGS]: New macros.
20293 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20294 Use them.
20295 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20296
20297 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20298 init_service_handler. All callers changed. Return OSStatus value.
20299
20300 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20301 All callers changed so as not to call SetPortWindowPort.
20302 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20303 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20304 mac_draw_string_common.
20305 (mac_draw_image_string_qd): Likewise.
20306 (mac_draw_string_common): Use them. Add INLINE.
20307 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20308 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20309 GetGlobalMouse.
20310 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20311 and FRAME_OUTER_TO_INNER_DIFF_Y.
20312 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20313 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20314 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20315 repositioning window to mac_handle_window_event.
20316 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20317 saving window location to mac_handle_window_event
20318 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20319 (install_menu_target_item_handler): Remove argument in extern.
20320 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20321 Also accept command events.
20322 (do_keystroke): New function created from XTread_socket.
20323 (init_command_handler): Remove functions.
20324 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20325 and save window location by kEventWindowShowing and kEventWindowHiding
20326 handlers here. Don't call next handler for window state change and
20327 focus events.
20328 (mac_handle_application_event, mac_handle_keyboard_event)
20329 [TARGET_API_MAC_CARBON]: New functions.
20330 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20331 kEventWindowShowing and kEventWindowHiding events. Move installation
20332 of mouse, font, text input and menu target item handlers to
20333 install_application_handler.
20334 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20335 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20336 New function.
20337 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20338 Register it.
20339 (XTread_socket) [TARGET_API_MAC_CARBON]:
20340 Consolidate SendEventToEventTarget calls.
20341 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20342 Move application activation handler to mac_handle_application_event.
20343 Move keyboard handler to mac_handle_keyboard_event.
20344 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20345 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20346 init_command_handler. Call install_application_handler.
20347
20348 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20349 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20350
203512007-06-07 Glenn Morris <rgm@gnu.org>
20352
20353 * emacs.c (main): Use `emacs-copyright' in --version output.
20354
203552007-06-06 Chong Yidong <cyd@stupidchicken.com>
20356
20357 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20358
203592007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20360
20361 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20362
20363 * macgui.h: Replace WindowPtr with WindowRef.
20364
20365 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20366 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20367 Replace ControlHandle with ControlRef.
20368 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20369
20370 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20371 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20372 Replace ControlHandle with ControlRef.
20373 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20374 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20375
20376 * macterm.h (struct scroll_bar): Rename member control_handle_low
20377 and control_handle_high to control_ref_low and control_ref_high.
20378 All uses changed.
20379 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20380 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20381 respectively. All uses changed.
20382 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20383 (install_window_handler, remove_window_handler): Replace WindowPtr
20384 with WindowRef in externs.
20385
203862007-06-05 Juanma Barranquero <lekktu@gmail.com>
20387
20388 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20389
203902007-06-03 Nick Roberts <nickrob@snap.net.nz>
20391
20392 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20393
20394 * frame.c (Fmouse_position, Fmouse_pixel_position):
20395 Condition on HAVE_GPM too.
20396
20397 * term.c (term_mouse_highlight): Remove unused variables.
20398 (Fterm_open_connection): Set gpm_zerobased to 1.
20399 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20400 Use zero based co-ordinates.
20401 (handle_one_term_event): Report a drag as mouse movement too.
20402
20403 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20404
204052007-06-03 Chong Yidong <cyd@stupidchicken.com>
20406
20407 * image.c (search_image_cache): New function. Require background
20408 color match if background color is unspecified in the image spec.
20409 (uncache_image, lookup_image): Use it.
20410
204112007-06-01 Juanma Barranquero <lekktu@gmail.com>
20412
20413 * window.c (Fshrink_window): Reflow docstring.
20414
204152007-06-02 Chong Yidong <cyd@stupidchicken.com>
20416
20417 * Version 22.1 released.
20418
204192007-06-01 Richard Stallman <rms@gnu.org>
20420
20421 * xfns.c (x_encode_text): Add GCPRO.
20422
204232007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20424
20425 * xfns.c (x_set_name_internal): Save encoded name before
20426 x_encode_text in case string data is relocated.
20427
204282007-05-31 Richard Stallman <rms@gnu.org>
20429
20430 * buffer.c (syms_of_buffer): Doc fix.
20431
204322007-05-30 Nick Roberts <nickrob@snap.net.nz>
20433
20434 * sysdep.c (init_sys_modes): Add rather than replace with
20435 O_NONBLOCK.
20436
20437 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20438 term_mouse_moveto.
20439
20440 * termhooks.h (term_mouse_moveto): New extern.
20441
20442 * term.c (mouse_face_window): Rename...
20443 (Qmouse_face_window): ...to this.
20444 (term_show_mouse_face, term_clear_mouse_face)
20445 (term_mouse_highlight): Use Qmouse_face_window.
20446 (term_mouse_moveto): New function.
20447 (term_mouse_position): Make it work.
20448 (syms_of_term): Uncomment assignment to mouse_position_hook.
20449 Staticpro Qmouse_face_window.
20450
204512007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20452
20453 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20454 around current_column call.
20455
204562007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20457
20458 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20459 * xdisp.c (next_element_from_buffer):
20460 * window.c (delete_window):
20461 * term.c (term_mouse_highlight):
20462 * msdos.c (getdefdir):
20463 * macterm.c (mac_create_bitmap_from_bitmap_data)
20464 (init_font_name_table):
20465 * fns.c (Fsxhash):
20466 * data.c (Fmake_local_variable):
20467 * ccl.c (ccl_driver): Likewise.
20468
204692007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20470
20471 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20472 Call mac_wakeup_from_rne on window size change.
20473
204742007-05-25 Chong Yidong <cyd@stupidchicken.com>
20475
20476 * image.c (uncache_image): Fix typo.
20477
204782007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20479
20480 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20481
204822007-05-22 Richard Stallman <rms@gnu.org>
20483
20484 * xterm.c (x_connection_closed): Remove NO_RETURN.
20485
204862007-05-22 Martin Rudalics <rudalics@gmx.at>
20487
20488 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20489
204902007-05-21 Chong Yidong <cyd@stupidchicken.com>
20491
20492 * image.c (uncache_image): New function.
20493 (Fimage_refresh): New function.
20494
204952007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20496
20497 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20498
204992007-05-20 Nick Roberts <nickrob@snap.net.nz>
20500
20501 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20502 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20503
205042007-05-20 Nick Roberts <nickrob@snap.net.nz>
20505
20506 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20507 conditional on [HAVE_GPM_H].
20508
205092007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20510
20511 * syntax.c (skip_chars): Update syntax-table only after we checked that
20512 the new location is valid.
20513
205142007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20515
20516 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20517 mac_get_window_bounds.
20518
205192007-05-20 Nick Roberts <nickrob@snap.net.nz>
20520
20521 * Makefile.in (LIBGPM): Allow it to be set from configure.
20522 If set then link Emacs with it.
20523
20524 * config.in: Regenerate.
20525
20526 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20527 New externs.
20528
20529 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20530 Include gpm.h.
20531 (handle_one_term_event, term_gpm): New externs.
20532
20533 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20534 and allow it to be interrupted by SIGIO.
20535
20536 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20537 (wait_reading_process_output): Wait on gpm_fd too.
20538 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20539 (add_gpm_wait_descriptor_called_flag): New variable.
20540 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20541
20542 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20543 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20544 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20545 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20546 (make_lispy_event): Add case GPM_CLICK_EVENT.
20547 (read_avail_input): Handle mouse input.
20548
20549 * term.c (write_glyphs_with_face): New function.
20550 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20551 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20552 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20553 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20554 (last_mouse_x, last_mouse_y): New variables.
20555 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20556 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20557 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20558 (Fterm_close_connection): New functions.
20559 (term_init): Initialise mouse_face_window.
20560
205612007-05-19 Chong Yidong <cyd@stupidchicken.com>
20562
20563 * xdisp.c (redisplay_window): If first window line is a
20564 continuation line, recompute the new window start instead of
20565 recentering.
20566
205672007-05-18 Glenn Morris <rgm@gnu.org>
20568
20569 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20570 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20571
205722007-05-17 Glenn Morris <rgm@gnu.org>
20573
20574 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20575
205762007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20577
20578 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20579 dead key repeat and up events.
20580
205812007-05-14 Chong Yidong <cyd@stupidchicken.com>
20582
20583 * image.c (pbm_load): Check image size for monochrome pbm.
20584
205852007-05-13 Chong Yidong <cyd@stupidchicken.com>
20586
20587 * xterm.c (XTread_socket): Revert last change.
20588
205892007-05-12 Chong Yidong <cyd@stupidchicken.com>
20590
20591 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20592
20593 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20594
205952007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20596
20597 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20598 mixup (YAILOM).
20599
206002007-05-07 Andreas Schwab <schwab@suse.de>
20601
20602 * keymap.c (Flookup_key): Fix typo in last change.
20603
206042007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20605
20606 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20607 mapping for unibyte strings.
20608
206092007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20610
20611 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20612 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20613
206142007-04-29 Richard Stallman <rms@gnu.org>
20615
20616 * insdel.c (replace_range): For undo, record insertion first.
20617
206182007-04-29 Andreas Schwab <schwab@suse.de>
20619
20620 * lisp.h (VECSIZE): Use OFFSETOF.
20621
206222007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20623
20624 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20625 disabled lines.
20626
206272007-04-28 Richard Stallman <rms@gnu.org>
20628
20629 * lread.c (read_escape): In a string, \s is always space.
20630
206312007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20632
20633 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20634
20635 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20636 submenu for menu bar items.
20637
20638See ChangeLog.10 for earlier changes.
20639
20640;; Local Variables:
20641;; coding: utf-8
20642;; add-log-time-zone-rule: t
aac0c6e3
MR
20643;; End:
20644
76b6f707 20645 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20646
20647 This file is part of GNU Emacs.
20648
20649 GNU Emacs is free software: you can redistribute it and/or modify
20650 it under the terms of the GNU General Public License as published by
20651 the Free Software Foundation, either version 3 of the License, or
20652 (at your option) any later version.
20653
20654 GNU Emacs is distributed in the hope that it will be useful,
20655 but WITHOUT ANY WARRANTY; without even the implied warranty of
20656 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20657 GNU General Public License for more details.
20658
20659 You should have received a copy of the GNU General Public License
20660 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20661
20662;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40