* process.c (ifflag_def): Make flag_sym constant.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
a4ada374
DN
12009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2
91433552
DN
3 * process.c (ifflag_def): Make flag_sym constant.
4 (Fnetwork_interface_info): Use a constant pointer.
5 (ifflag_table):
6 * xfns.c (cursor_bits):
7 * xdisp.c (power_letter):
8 * termcap.c (speeds, esctab):
9 * sysdep.c (baud_convert):
10 * keyboard.c (lispy_accent_codes, modifier_names):
11 * image.c (xbm_format, xpm_format, pbm_format, png_format)
12 (jpeg_format, tiff_format, gif_format, svg_format)
13 (interlace_start, interlace_increment, gs_format):
14 * gtkutil.c (separator_names):
15 * fringe.c (swap_nibble):
16 * fns.c (base64_value_to_char, base64_char_to_value):
17 * fileio.c (make_temp_name_tbl):
18 * coding.c (suffixes): Make constant.
19
f4265f6c
DN
20 * frame.c (make_initial_frame):
21 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
22 build_string.
23 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
24
04420943
DN
25 * s/freebsd.h:
26 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
27
0a5d24ae
DN
28 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
29 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
30
a4ada374
DN
31 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
32 * xterm.c (syms_of_xterm):
33 * xfaces.c (syms_of_xfaces):
34 * xdisp.c (syms_of_xdisp):
35 * lread.c (syms_of_lread):
36 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
37 build_string.
91433552 38
a4ada374
DN
39 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
40
af98fc7f
SM
412009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
42
43 * fns.c (Fplist_get): Merge the active and the uncommented code.
44
e90292a9
JD
452009-11-10 Jan Djärv <jan.h.d@swipnet.se>
46
47 * keyboard.h: Declare timer_check.
48
49 * keyboard.c (timer_check_2): New function that does what the old
50 timer_check did.
51 (timer_check): Call timer_check_2 until -1 or a non-zero time is
52 returned, i.e. don't return -1 with timers pending.
53
54 * process.c: Remove extern declaration of timer_check.
55
56 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
57 even if timer_check returned -1.
58
af98fc7f
SM
59 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
60 xg_dialog_data.
e90292a9
JD
61 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
62 the event loop.
63 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
64 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
65 Destroy the dialog after xg_dialog_run.
66
045b83c0
SM
672009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
68
69 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
70
1fb99a3a
JD
712009-11-10 Jan Djärv <jan.h.d@swipnet.se>
72
73 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
74
04e452cb
JB
752009-11-09 Juanma Barranquero <lekktu@gmail.com>
76
77 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
78
ef7417fd
SM
792009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
80
81 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
82 w32menu.c, and nsmenu.m.
83 Simplify the obsolete case where position is nil.
84 (cleanup_popup_menu): New function, moved from nsmenu.m.
85 (struct skp): Remove slot `notreal'.
86 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
87 adjust callers.
88 (single_menu_item): Adjust call to parse_menu_item.
89 (syms_of_menu): Defsubr x-popup-menu.
90 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
91 (keymap_panes): Don't export any more.
92 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
93 (xmenu_show): Declare.
94 * keyboard.c (parse_menu_item): Remove arg `notreal'.
95 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
96 * keyboard.h (parse_menu_item): Update declaration.
97 * xmenu.c (Fx_popup_menu): Remove.
98 (syms_of_xmenu): Don't defsubr x-popup-menu.
99 * w32menu.c (Fx_popup_menu): Remove.
100 (syms_of_w32menu): Don't defsubr x-popup-menu.
101 * nsmenu.m (cleanup_popup_menu): Remove.
102 (ns_menu_show): Rename from ns_popup_menu and remove all the code
103 moved to menu.c's Fx_popup_menu.
104 (Fx_popup_menu): Remove.
105 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
106 menu_items (it's done in menu.c already).
107
424d6179
SM
1082009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
109
110 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
111 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
112
c0df13a6 1132009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
114
115 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 116 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
117 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
118 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
119
2de9f71c
SM
1202009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
121
122 Let integers use up 2 tags to give them one extra bit and thus double
123 their range.
124 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
125 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
126 New macros.
127 (enum Lisp_Type): Use them. Give explicit values.
128 (Lisp_Type_Limit): Remove.
129 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
130 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
131 Pay attention to USE_2_TAGS_FOR_INTS.
132 (INTEGERP): Use LISP_INT_TAG_P.
133 * fns.c (internal_equal): Simplify the default case.
134 (sxhash): Use case_Lisp_Int.
135 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
136 any more.
137 (Ftype_of): Use case_Lisp_Int.
138 (store_symval_forwarding): Take into account the fact that Ints can
139 now have more than one tag.
140 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
141 buffer_slot_type_mismatch):
142 * xfaces.c (face_attr_equal_p):
143 * print.c (print_object):
144 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
145 Use case_Lisp_Int.
146
323637a2
EZ
1472009-11-06 Eli Zaretskii <eliz@gnu.org>
148
7ac65b38
EZ
149 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
150
323637a2
EZ
151 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
152 warning.
153
e511451f
JD
1542009-11-06 Jan Djärv <jan.h.d@swipnet.se>
155
156 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
157
158 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
159
160 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
161 ButtonPressRelease and MotionNotify (bug#4870).
162
5e2327cf
DN
1632009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
164
5adc433e
DN
165 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
166
d67b4f80
DN
167 * xterm.c (syms_of_xterm):
168 * xselect.c (syms_of_xselect):
169 * xmenu.c (syms_of_xmenu):
170 * xfns.c (syms_of_xfns):
171 * xfaces.c (syms_of_xfaces):
172 * xdisp.c (syms_of_xdisp):
173 * window.c (syms_of_window):
174 * w32fns.c (syms_of_w32fns):
175 * undo.c (syms_of_undo):
176 * textprop.c (syms_of_textprop):
177 * terminal.c (syms_of_terminal):
178 * syntax.c (syms_of_syntax):
179 * sound.c (syms_of_sound):
180 * search.c (syms_of_search):
181 * print.c (syms_of_print):
182 * minibuf.c (syms_of_minibuf):
183 * macros.c (syms_of_macros):
184 * keymap.c (syms_of_keymap, initial_define_key)
185 (initial_define_lispy_key):
186 * keyboard.c (syms_of_keyboard):
187 * insdel.c (syms_of_insdel):
188 * image.c (syms_of_image):
189 * fringe.c (syms_of_fringe):
190 * frame.c (syms_of_frame):
191 * fontset.c (syms_of_fontset):
192 * fns.c (syms_of_fns):
193 * fns.c (syms_of_fns):
194 * fileio.c (syms_of_fileio):
195 * fileio.c (syms_of_fileio):
196 * eval.c (syms_of_eval):
197 * doc.c (syms_of_doc):
198 * dispnew.c (syms_of_display):
199 * dired.c (syms_of_dired):
200 * dbusbind.c (syms_of_dbusbind):
201 * data.c (syms_of_data):
202 * composite.c (syms_of_composite):
203 * coding.c (syms_of_coding):
204 * cmds.c (syms_of_cmds):
205 * charset.c (define_charset_internal, syms_of_character):
206 * ccl.c (syms_of_ccl):
207 * category.c (syms_of_category, init_category_once):
208 * casetab.c (syms_of_casetab):
209 * casefiddle.c (syms_of_casefiddle):
210 * callint.c (syms_of_callint):
211 * bytecode.c (syms_of_bytecode):
212 * buffer.c (keys_of_buffer, syms_of_buffer):
213 * alloc.c (syms_of_alloc):
214 * process.c (syms_of_process, init_process):
215 * lread.c (syms_of_lread, init_obarray):
216 * font.c (build_style_table):
217 * emacs.c (syms_of_emacs, main): Replace calls to intern with
218 intern_c_string, calls to make_pure_string with
219 make_pure_c_string. Use pure_cons instead of Fcons.
220
5e2327cf
DN
221 * process.c (socket_options): Make it const.
222 (set_socket_option, init_process): Use a const pointer.
223
224 * lread.c (intern_c_string): New function.
225 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
226 (defvar_int): Uset it. Make the name const char*.
227
228 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
229 (defvar_int): Update prototypes.
230 (DEFUN, EXFUN): Support for prototypes is now required.
231 (intern_c_string): New prototype.
232 (struct Lisp_Subr): Make symbol_name constant.
233
234 * font.c (struct table_entry): Remove unused member. Make NAMES
235 constant.
236 (weight_table, slant_table, width_table): Make constant.
237
238 * emacs.c (struct standard_args): Make name and longname constant.
239
240 * character.h (DEFSYM): Use intern_c_string.
241
a56eaaef
DN
2422009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
243
244 * alloc.c (make_pure_c_string): New function.
245
246 * eval.c (Fautoload): Purecopy all arguments.
247
f6a07420
KH
2482009-11-05 Kenichi Handa <handa@m17n.org>
249
250 * fileio.c (Finsert_file_contents): Be sure set coding-system of
251 the buffer in case of replace.
252
5d28d4b1
DN
2532009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
254
255 * puresize.h (BASE_PURESIZE): Increase to 1620000.
256
b349d111
SM
2572009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
258
d528b1ce
SM
259 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
260 when applicable (bug#4851).
261
b349d111
SM
262 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
263 (P_): Support for prototypes is now required.
264
c38eb027
CY
2652009-10-31 Chong Yidong <cyd@stupidchicken.com>
266
267 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
268 (Bug#4827).
269
0405f8d9
EZ
2702009-10-30 Eli Zaretskii <eliz@gnu.org>
271
d528b1ce 272 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 273
ca0a881a
DN
2742009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
275
276 * puresize.h (BASE_PURESIZE): Increase to 1470000.
277
d528b1ce
SM
278 * lread.c (Fload): Purecopy the file name when building
279 Vpreloaded_file_list.
ca0a881a 280
47e0e0e4
JR
2812009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
282
283 * w32fns.c (syms_of_w32fns): Change default value of
284 w32-scroll-lock-modifier to nil. (Bug#2827)
285
057bce6f
JB
2862009-10-26 Juanma Barranquero <lekktu@gmail.com>
287
782a943e 288 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 289
242bc74c
AS
2902009-10-26 Andreas Schwab <schwab@redhat.com>
291
292 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
293
522d013a
JB
2942009-10-26 Juanma Barranquero <lekktu@gmail.com>
295
296 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
297 For delta < 0, skip check that only makes sense when the mini-window
298 is going to be enlarged. (Bug#4534)
299
18060980
CY
3002009-10-25 Chong Yidong <cyd@stupidchicken.com>
301
302 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
303 string in menu maps (Bug#4471).
304
fec8f0fe
CY
3052009-10-24 Chong Yidong <cyd@stupidchicken.com>
306
307 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
308 FRAME_NS_VIEW on terminal frames (Bug#4765).
309
10d66ec0
AS
3102009-10-24 Andreas Schwab <schwab@linux-m68k.org>
311
1cae01f7
AS
312 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
313 DBUS_TYPE_UINTnn separately to get proper sign extension.
314
58a12889
AS
315 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
316 can properly handle unsigned types.
d528b1ce 317 (make_uid, make_gid): Remove.
58a12889 318
987c9327
AS
319 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
320 types again.
321
522d013a 322 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
323 (system_process_attributes): Likewise.
324
905a9ed3
DN
3252009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
326
327 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
328
329 * eval.c (Fautoload): Purecopy the filename. Simplify.
330
331 * category.c (Fdefine_category): Purecopy docstring.
332
a599b3e8
AS
3332009-10-23 Andreas Schwab <schwab@linux-m68k.org>
334
7b792fc9
AS
335 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
336
a599b3e8
AS
337 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
338
b35ac83e
CY
3392009-10-23 Chong Yidong <cyd@stupidchicken.com>
340
341 * window.c (Fwindow_edges, Fwindow_pixel_edges)
342 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
343 (Bug#4775).
344
e8903e00
SM
3452009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
346
347 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
348 (init_fileio_once):
349 * lisp.h (init_fileio_once): Remove.
350 * emacs.c (main): Don't call init_fileio_once.
351
8f43cbf3
DN
3522009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
353
354 * puresize.h (BASE_PURESIZE): Increase to 1430000.
355
26898943
AS
3562009-10-21 Andreas Schwab <schwab@linux-m68k.org>
357
358 * doprnt.c (doprnt): Fix overflow check.
359
5c646d5a
JD
3602009-10-21 Jan Djärv <jan.h.d@swipnet.se>
361
3132a7ea
JD
362 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
363
5c646d5a
JD
364 * xterm.h (x_wait_for_event): Declare it.
365
366 * xterm.c (pending_event_wait): New variable.
367 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
368 see pending_event_wait.eventtype.
369 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
370 (x_new_font): Call change_frame_size with new rows/columns before we
371 try to resize the frame.
5c646d5a 372 (x_wait_for_event): New function.
d528b1ce
SM
373 (x_set_window_size_1): Don't change gravity unless change_gravity
374 is set.
5c646d5a
JD
375 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
376 don't change frame size, instead wait for the ConfigureNotify.
377 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
378 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
379 (x_initialize): Initialize pending_event_wait.
380
381 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
382 size.
383
384 * widget.c (EmacsFrameSetValues): Add comment.
385 (EmacsFrameSetCharSize): Just call x_set_window_size.
386
387 * gtkutil.c (xg_frame_set_char_size): Flush events and call
388 x_wait_for_event.
d528b1ce 389 (flush_and_sync): Remove again.
5c646d5a
JD
390 (xg_get_font_name): Suggest monospace if no previous font is known.
391
e9c1637d
SM
3922009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
393
394 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 395 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 396
5a72cccb
YM
3972009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
398
399 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
400 processing pending events when event is filtered for input method.
ab04798f 401 (Bug#3681)
5a72cccb 402
2629aa37
JB
4032009-10-20 Juanma Barranquero <lekktu@gmail.com>
404
405 * fns.c: Add #endif accidentally removed in previous change.
406
c3417a74
DN
4072009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
408
409 * fns.c: Remove code for unsupported system: MAC_OS.
410 * image.c: Likewise. Include setjmp.h.
411
9685cef2
JD
4122009-10-19 Jan Djärv <jan.h.d@swipnet.se>
413
414 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
415 pixel -1 (bug #4742).
416
d7306fe6
DN
4172009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
418
019d2c4c
DN
419 * process.c (create_pty): Remove conditionals for no longer
420 supported systems: UNIPLUS and RTU.
421
ee6bacd4
DN
422 * xterm.c:
423 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
424
d7306fe6
DN
425 * alloc.c: Do not define struct catchtag.
426 * eval.c: Move struct catchtag definition ...
427 * lisp.h: ... here.
428
429 * image.c: Move png.h #include earlier to avoid warnings.
430
431 * xterm.c:
432 * xsmfns.c:
433 * xselect.c:
434 * xrdb.c:
435 * xmenu.c:
436 * xftfont.c:
437 * xfont.c:
438 * xfns.c:
439 * xfaces.c:
440 * xdisp.c:
441 * window.c:
442 * widget.c:
443 * w32xfns.c:
444 * w32uniscribe.c:
445 * w32term.c:
446 * w32select.c:
447 * w32reg.c:
448 * w32proc.c:
449 * w32menu.c:
450 * w32inevt.c:
451 * w32heap.c:
452 * w32font.c:
453 * w32fns.c:
454 * w32console.c:
455 * w32.c:
456 * w16select.c:
457 * vm-limit.c:
458 * unexsol.c:
459 * unexec.c:
460 * unexcw.c:
461 * unexaix.c:
462 * undo.c:
463 * tparam.c:
464 * textprop.c:
465 * terminfo.c:
466 * terminal.c:
467 * termcap.c:
468 * term.c:
469 * syntax.c:
470 * sound.c:
471 * sheap.c:
472 * search.c:
473 * scroll.c:
474 * region-cache.c:
475 * regex.c:
476 * ralloc.c:
477 * process.c:
478 * print.c:
b024548b
DN
479 * nsterm.m:
480 * nsselect.m:
481 * nsmenu.m:
482 * nsimage.m:
483 * nsfont.m:
484 * nsfns.m:
d7306fe6
DN
485 * msdos.c:
486 * minibuf.c:
487 * menu.c:
488 * marker.c:
489 * macros.c:
490 * keymap.c:
491 * keyboard.c:
492 * intervals.c:
493 * insdel.c:
494 * indent.c:
495 * gtkutil.c:
496 * ftxfont.c:
497 * ftfont.c:
498 * fringe.c:
499 * frame.c:
500 * fontset.c:
501 * font.c:
502 * fns.c:
503 * floatfns.c:
504 * filelock.c:
505 * fileio.c:
506 * emacs.c:
507 * editfns.c:
508 * dosfns.c:
509 * doprnt.c:
510 * doc.c:
511 * dispnew.c:
512 * dired.c:
513 * dbusbind.c:
514 * data.c:
515 * composite.c:
516 * coding.c:
517 * cmds.c:
518 * cm.c:
519 * chartab.c:
520 * charset.c:
521 * character.c:
522 * ccl.c:
523 * category.c:
524 * casetab.c:
525 * casefiddle.c:
526 * callproc.c:
527 * callint.c:
528 * bytecode.c:
529 * buffer.c:
530 * atimer.c: Include setjmp.h. (Bug#4643)
531
fd5f21e6
SM
5322009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
533
4c0354d7
SM
534 Remove leftover table unibyte_to_multibyte_table.
535 * character.c (unibyte_to_multibyte_table): Remove.
536 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
537 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
538 * character.h (UNIBYTE_TO_CHAR): New macro.
539 (MAKE_CHAR_MULTIBYTE): Use it.
540 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
541 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
542 (message_dolog, set_message_1):
543 * search.c (Freplace_match):
544 * editfns.c (Fcompare_buffer_substrings):
545 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
546 (concat):
547 * insdel.c (copy_text, count_size_as_multibyte):
548 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
549 * term.c (produce_glyphs):
550 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
551 * regex.c (RE_CHAR_TO_MULTIBYTE):
552 * cmds.c (internal_self_insert):
553 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
554
fd5f21e6
SM
555 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
556
4418646e
DN
5572009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
558
559 * puresize.h (BASE_PURESIZE): Increase to 1310000.
560
35f5c1d2
JB
5612009-10-16 Juanma Barranquero <lekktu@gmail.com>
562
563 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
564
a0cd8f6b
AR
5652009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
566
567 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
568 still needed under Tiger.
569
570 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
571
572 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
573 __Apple__.
574
575 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
576
01a8d3fa
KH
5772009-10-15 Kenichi Handa <handa@m17n.org>
578
579 * print.c (print_object): Escape a symbol like "2E10" too.
580
bf6c75c9 5812009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
582
583 Cleanups and changes for 64-bit compile under Snow Leopard.
584 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
585
586 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
587
c5959062 588 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
589 (ns_findfonts, nsfont_list_family): Use long format in printf, and
590 cast argument.
591 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 592 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
593
594 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
595
596 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
597 where appropriate.
598
599 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
600 where appropriate.
6e4780c5
JB
601 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
602 Use stringWithUTF8String.
bf6c75c9
AR
603 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
604
6e4780c5
JB
605 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
606 Add formal protocol mention to inheritance.
bf6c75c9
AR
607 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
608
6e4780c5
JB
609 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
610 Fix printf format.
bf6c75c9
AR
611 (ns_query_color): Use CGFloat where appropriate.
612 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
613 (EmacsScroller-mouseDown:) Use long format in printf, and cast
614 argument.
615
3d87f118
AR
616 * config.in (NS_HAVE_NSINTEGER): Drop.
617
a95c8102
AR
618 * dbusbind.c (dbus-method-return-internal)
619 (dbus-method-error-internal): Use long format in printf, and cast
620 argument.
621
622 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
623 in printf, and cast argument.
624
6873acca 625 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
626 cast argument.
627
9ec6f100
GM
6282009-10-11 Glenn Morris <rgm@gnu.org>
629
630 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
631
5be883cd
JD
6322009-10-08 Jan Djärv <jan.h.d@swipnet.se>
633
634 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
635 menu bar with a small width so it doesn't enlarge the frame.
636
d7a39b51
JB
6372009-10-08 Juanma Barranquero <lekktu@gmail.com>
638
639 * fontset.c (Fset_fontset_font): Fix typos in error messages.
640
0c2b6f8e
GM
6412009-10-06 Glenn Morris <rgm@gnu.org>
642
643 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
644 SOME_MACHINE_LISP (this enters indirectly via DOC).
645
e02131a2
EZ
6462009-10-05 Eli Zaretskii <eliz@gnu.org>
647
648 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
649
b4744254
EZ
6502009-10-04 Eli Zaretskii <eliz@gnu.org>
651
652 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
653 Doc fix.
654
dbf64827
JB
6552009-10-03 Martin Rudalics <rudalics@gmx.at>
656
657 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
658
e9a0aef8
MA
6592009-10-02 Michael Albinus <michael.albinus@gmx.de>
660
d528b1ce 661 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
662 used anymore outside fileio.c.
663
664 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
665
64eb2b56
JB
6662009-10-01 Juanma Barranquero <lekktu@gmail.com>
667
668 * lisp.h (Qdelete_directory_internal):
669 Declare, instead of Qdelete_directory.
670
671 * w32fns.c (Fsystem_move_file_to_trash): Use it.
672
9d28c33e
SM
6732009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
674
675 * eval.c (Fcalled_interactively_p): Add `kind' argument.
676
9d8f3bd9
MA
6772009-10-01 Michael Albinus <michael.albinus@gmx.de>
678
9d28c33e 679 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
680 Fdelete_directory. It is not a command anymore. It has no file
681 name handler.
682
9694740b
SM
6832009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
684
685 * xdisp.c (get_next_display_element): Use an enum in last change.
686
748e162f
KH
6872009-09-28 Kenichi Handa <handa@m17n.org>
688
9694740b 689 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
690 unibyte_display_via_language_environment in handling
691 Vnobreak_char_display.
692
17efd58d
AR
6932009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
694
695 * nsterm.h (ns_app_name): New extern variable.
696
697 * nsterm.m (ns_app_name): New variable.
698 (ns_term_init): Set and use it.
699 (ns_term_shutdown): Use it.
700
701 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
702 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
703
704 * nsfns.m (ns_set_name_iconic, ns_set_name)
705 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
706 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
707
9694740b
SM
708 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
709 Remove double-casting in client_data comparison.
31c2d412 710
3208cb35
YM
7112009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
712
713 * keyboard.c (make_lispy_event): Remember last wheel direction.
714 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
715
b7d552d6
GM
7162009-09-26 Glenn Morris <rgm@gnu.org>
717
718 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
719 internal.elc. Add term/pc-win.elc.
720 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
721 term/x-win.elc.
722 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
723 term/w32-win.elc.
724 (NS_SUPPORT): New.
725 (lisp): Add NS_SUPPORT.
726 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
727
4ff670a8
DR
7282009-09-25 David Reitter <david.reitter@gmail.com>
729
730 * nsmenu.m (EmacsMenu-clear): Recognize application menu
731 on Mac OS X 10.6+ (bug#4513).
732
feabfb6c
JB
7332009-09-24 Juanma Barranquero <lekktu@gmail.com>
734
735 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
736 some parts of Emacs code (like font selection) don't grok them.
737 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 738
de59072a
AS
7392009-09-24 Andreas Schwab <schwab@redhat.com>
740
741 * coding.c (decode_coding_iso_2022): Fix operator precedence.
742
a489517b
JB
7432009-09-24 Juanma Barranquero <lekktu@gmail.com>
744
745 * dired.c (Fdirectory_files): Fix typo in docstring.
746
0592970c
AR
7472009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
748
749 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
750 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
751 (EmacsScroller-setPosition:portion:whole:): Remove -display call
752 under GNUstep.
753 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
754
755 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
756 glyph advancement.
757
48e8a88b
AR
7582009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
759
760 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 761 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
762
763 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
764 deleted (bug #4492).
765
e14f0a78
AR
766 * nsfont.m (Vns_reg_to_script): New lisp variable.
767 (syms_of_nsfont): Declare it.
768 (ns_registry_to_script): New function.
769 (ns_get_req_script): Call it.
770 (ns_findfonts): Don't give up on non-unicode registry.
771
772 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
773
5b650faa
SM
7742009-09-20 Tom Tromey <tromey@redhat.com>
775
776 * eval.c (find_handler_clause): Make stack-trace-on-error work in
777 batch mode (bug#4228).
778
a489517b 7792009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
780
781 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 782 carefully. (Bug #4339)
0bae4e09 783
fcfe06f3
CY
7842009-09-18 Chong Yidong <cyd@stupidchicken.com>
785
d798ba87 786 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 787
31642728
AR
7882009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
789
790 * emacs.c (inhibit_x_resources): Update doc string for NS.
791 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 792 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
793
794 * nsterm.h (ns_no_defaults): Remove.
795
796 * nsterm.m (ns_no_defaults): Remove.
797 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
798 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
799 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
800 don't update the NSWindow itself.
801 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 802 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
803
804 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
805 ns_use_qd_smoothing.
806
807 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
808 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 809 (x-close-connection): Drop PSFlush() under OS X.
a489517b 810 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 811
8686ac71
JB
8122009-09-17 Juanma Barranquero <lekktu@gmail.com>
813
814 * emacs.c (inhibit_x_resources): New variable.
815 (main) [HAVE_NS]: Don't process --quick command line option.
816 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
817
818 * lisp.h (inhibit_x_resources): Declare it extern.
819
820 * w32reg.c (x_get_string_resource):
821 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
822
e227ba05
EZ
8232009-09-17 Eli Zaretskii <eliz@gnu.org>
824
362654a6
JB
825 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
826 Add lisp/term/internal.elc.
e227ba05 827
742d40e8
SM
8282009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
829
830 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
831 (bug#4461).
832
005bd5a2
DN
8332009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
834
835 * puresize.h (BASE_PURESIZE): Increase to 1290000.
836
837 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
838 (OBJECTS_MACHINE): Remove, unused.
839
f9af9719
SM
8402009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
841
842 * frame.c (x_get_resource_string): Remove unused.
843
0307c7d2
JD
8442009-09-15 Jan Djärv <jan.h.d@swipnet.se>
845
846 * xterm.c (x_new_font): Call change_frame_size before calling
847 x_set_window_size, in case frame size won't change.
848
849 * frame.c (x_set_font): Remove dead code.
850
428b13d6
SM
8512009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
852
853 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
854
5766c380
SM
8552009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
856
857 * lread.c (Fload): Don't output a message after loading an obsolete
858 package any more (done in Lisp now).
859
2fd0161b
CY
8602009-09-12 Chong Yidong <cyd@stupidchicken.com>
861
862 * fns.c (syms_of_fns): Doc fix (Bug#4227).
863
bc5e75b6
SM
8642009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
865
866 * keymap.c (Fwhere_is_internal): Use nconc2.
867
c31c985e
AM
8682009-09-11 Alan Mackenzie <acm@muc.de>
869
870 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
871 batch mode.
872
78012bd2
AS
8732009-09-11 Andreas Schwab <schwab@linux-m68k.org>
874
875 * xdisp.c (display_mode_element): Detect cycles.
876
9d889332
SM
8772009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
878
879 * keymap.c (where_is_internal): Don't erroneously return nil right after
880 filling the cache.
881 (where_is_internal_1): Fix up typo.
882
7ab5d780
GM
8832009-09-11 Glenn Morris <rgm@gnu.org>
884
885 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
886 share a common doc-string.
887
5238a749
SM
8882009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
889
66d77eda
SM
890 * keymap.c (get_keymap): Return the actual keymap symbol rather than
891 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
892
5238a749
SM
893 * keymap.c (QCadvertised_binding): New constant.
894 (syms_of_keymap): Initialize it.
895 (Fwhere_is_internal): Try and use bindings from :advertised-binding
896 if applicable.
897
19f48442
SM
8982009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
899
50d4ba39
SM
900 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
901 (parse_menu_item): Streamline since bindings are recomputed all the
902 time anyway. Don't bother checking Vdefine_key_rebound_commands any
903 more and don't support lmenu's menu-alias any more either.
904
a88a5372
SM
905 * keymap.c (where_is_internal_data): Make noindirect a boolean.
906 (where_is_internal): Strip it down to only traverse the keymaps.
907 Move the cache handling from Fwhere_is_internal to here.
908 (Fwhere_is_internal): Move the handling of remapping and the choice of
909 the best binding from where_is_internal to here.
910 Unify the cached/noncached paths, so remapping is also handled
911 correctly when the cache is used, and so the cache can be used to
912 speed up remap-handling when applicable.
913 Give preference to non-remapped bindings.
914 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
915 non-remapped bindings.
916 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
917 command remapping.
918
19f48442
SM
919 * xdisp.c (display_mode_element): Move list length limit from 50 to
920 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
921
599498c3 9222009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
923
924 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
925
f9b7b5ac
SM
9262009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
927
a53af587
JB
928 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
929 (Bug#4334)
930
f9b7b5ac
SM
931 * keymap.c (where_is_internal): Filter out shadowed remappings.
932 Assume that where_is_internal returns unshadowed bindings to simplify
933 the code and get rid of the gotos. Use ASIZE.
934
04f4b72d
JD
9352009-09-04 Jan Djärv <jan.h.d@swipnet.se>
936
4da146f2
JD
937 * xterm.c (x_focus_changed): If we get a focusout and pointer
938 is invisible, make it visible.
939
04f4b72d
JD
940 * xterm.h: Remove condition for declaration of
941 x_*_window_to_frame.
942
7cef7ce3
SM
9432009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
944
945 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
946 initial terminal as well.
947
a54fa5b7
JD
9482009-09-02 Jan Djärv <jan.h.d@swipnet.se>
949
950 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 951 x_menubar_window_to_frame.
a54fa5b7
JD
952
953 * xterm.c: Remove declarations also in xterm.h
954 (XTmouse_position): Do not return valid positions
955 for clicks in the menubar and the toolbar for Gtk+.
956
957 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
958 if the widget for the event has the same top level as a frame,
959 return the frame.
960 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
961 internal windows, bug #4122.
962 (x_non_menubar_window_to_frame): Remove.
963
5a021dd0
GM
9642009-09-02 Glenn Morris <rgm@gnu.org>
965
966 * buffer.c (default-major-mode): Move most of the doc from here...
967 (major-mode): ... to here.
968
548fe2f3
NR
9692009-08-30 Nick Roberts <nickrob@snap.net.nz>
970
971 * process.c (wait_reading_process_output): Keep the descriptor
972 when pty is used by a non-child process, e.g., in I/O buffer of
973 GDB this allows inferior to be restarted.
974
e0840eef
EZ
9752009-08-29 Eli Zaretskii <eliz@gnu.org>
976
977 * xdisp.c (redisplay_internal): Remove redundant test and collapse
978 both branches into one.
979
82e98df4
SM
9802009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
981
982 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
983 (main): Use enable-multibyte-characters rather than
984 default-enable-multibyte-characters. Output a warning message when
985 running a unibyte session.
986
890617cb
YM
9872009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
988
989 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
990 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
991 (copy_data_segment): Also copy __program_vars section.
992 (copy_dyld_info) [LC_DYLD_INFO]: New function.
993 (dump_it) [LC_DYLD_INFO]: Use it.
994
995 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
996
e7adeadc
EZ
9972009-08-28 Eli Zaretskii <eliz@gnu.org>
998
999 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1000 $(SRC)/buildobj.h.
1001 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1002 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1003 $(SRC)/buildobj.h.
1004 (clean): Add buildobj.h.
1005
3ed8bbdc
TZ
10062009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1007
1008 * print.c (print_object): Set escapeflag to 1 when printing
1009 hashtable keys and values.
1010
155a6764
SM
10112009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1012
1013 * lread.c (read_integer): Use doubles (and potentially return a float
1014 number) as we do in string-to-number.
1015 (read1): Use strtol to read integers, signal errors on strtol's
1016 overflow and use floats if strtol's output is too large for
1017 Elisp integers.
1018
877610de
EZ
10192009-08-27 Eli Zaretskii <eliz@gnu.org>
1020
1021 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1022 (make-buildobj-SH): Fix last change.
1023 (SRC): Move to before where it's first used.
1024
ef73e7be
KH
10252009-08-27 Kenichi Handa <handa@m17n.org>
1026
550c8289
KH
1027 * process.c (send_process): Use encode_coding_object instead of
1028 encode_coding_string to perform eol-conversion even if the string
1029 is unibyte.
1030
60afa08d
KH
1031 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1032 character.
1033
ef73e7be 1034 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1035 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1036
7b3a82d7
DN
10372009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1038
5654bf63
DN
1039 * callproc.c (Fcall_process): Remove always true #if.
1040
7b3a82d7
DN
1041 * lisp.h: Replace #if 0 code for checking with text pointing to
1042 the --enable-checking configure flag.
1043
1044 * emacs.c (main): Mention the --enable-profiling configure flag
1045 instead of using CFLAGS.
1046
878bde49
KR
10472009-08-26 Ken Raeburn <raeburn@raeburn.org>
1048
1049 * Makefile.in (buildobj.h): New target.
1050 (doc.o): Depend on it.
1051 (temacs${EXEEXT}): Don't generate buildobj.lst.
1052 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1053 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1054 ($(BLD)/doc.$(O)): Depend on it.
1055 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1056 provided by Eli Zaretskii.)
1057 ($(TEMACS)): Don't generate buildobj.lst.
1058 * doc.c: Include buildobj.h.
1059 (buildobj): New static variable.
1060 (Fsnarf_documentation): Use it, instead of opening and reading
1061 buildobj.lst.
1062
1574224c
MA
10632009-08-25 Michael Albinus <michael.albinus@gmx.de>
1064
1065 * dbusbind.c (Fdbus_call_method)
1066 (Fdbus_call_method_asynchronously): Use English numeric format for
1067 timeout values in doc string.
1068
d9da2f45
KH
10692009-08-25 Kenichi Handa <handa@m17n.org>
1070
ef73e7be
KH
1071 * alloc.c (mark_char_table): New function.
1072 (mark_object): Use mark_char_table for a char-table.
1073
d9da2f45
KH
1074 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1075 (CHAR_TABLE_REF): Use it.
1076
c8edcc01
KR
10772009-08-23 Ken Raeburn <raeburn@raeburn.org>
1078
1079 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1080 before invoking the newly build emacs to check for load-path
1081 shadowing.
1082
7763401b
GM
10832009-08-22 Glenn Morris <rgm@gnu.org>
1084
1085 * Makefile.in (bootstrap_exe): New variable.
1086 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1087 Use ${bootstrap_exe}.
1088
729eadda
EZ
10892009-08-22 Eli Zaretskii <eliz@gnu.org>
1090
1091 * coding.h (encode_coding_string): Don't encode unibyte strings.
1092 (Bug#4047)
1093
eb4c6ace
MA
10942009-08-22 Michael Albinus <michael.albinus@gmx.de>
1095
1096 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1097
1098 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1099 intended as hotfix only.
1100 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1101
36e34d1b
AR
11022009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1103
1104 * nsterm.m (ns_get_color): Update documentation properly for last
1105 change, and clean up loose ends in the code left by it. Fix
1106 longstanding bug with 16-bit hex parsing, and add support for
1107 yet another X11 format (rgb:r/g/b) for compatibility.
1108 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1109 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1110
f983eb8a
SM
11112009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1112
1113 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1114
3f56d3c6
MA
11152009-08-20 Michael Albinus <michael.albinus@gmx.de>
1116
1117 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1118 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1119 (xd_initialize, xd_pending_messages): Check, whether
1120 $DBUS_SESSION_BUS_ADDRESS is set.
1121
fb641d68
YM
11222009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1123
1124 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1125
1126 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1127
cf59a374
GM
11282009-08-20 Glenn Morris <rgm@gnu.org>
1129
1130 * emacs.c (system-type): Doc fix.
1131
1373f3be
SM
11322009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1133
1134 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1135 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1136
058ed861
MA
11372009-08-18 Michael Albinus <michael.albinus@gmx.de>
1138
1373f3be
SM
1139 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1140 New functions.
058ed861
MA
1141 (xd_initialize): Revert change from 2009-08-16.
1142
563a866e 11432009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1144
1145 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1146 font-group vector, return nil.
5fc05db0 1147
e42bdf01
CY
11482009-08-17 Chong Yidong <cyd@stupidchicken.com>
1149
1150 * process.c (status_notify): Don't perform redisplay.
1151 (Fdelete_process, list_processes_1, process_send_signal):
1152 Expliticly perform redisplay.
1153 (wait_reading_process_output): Always check process status, but
1154 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1155
4230ab74
KR
11562009-08-17 Ken Raeburn <raeburn@raeburn.org>
1157
1373f3be 1158 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1159 (XFLOAT_INIT): New macro for storing a float value.
1160 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1161 * fns.c (sxhash): Copy out the value of a float in order to
1162 examine its bytes.
1163 * dbusbind.c (xd_append_arg): Likewise.
1164
4230ab74
KR
1165 * emacs.c (main): Don't call syms_of_data twice.
1166
a0645cdd
MA
11672009-08-16 Michael Albinus <michael.albinus@gmx.de>
1168
1169 * dbusbind.c (xd_initialize): Add connection file descriptor to
1170 input_wait_mask, in order to let select() detect, whether a new
1171 message has been arrived.
ca4f31ea 1172 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1173
485db0ba
MA
11742009-08-15 Michael Albinus <michael.albinus@gmx.de>
1175
1373f3be
SM
1176 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1177 New functions.
485db0ba
MA
1178
1179 * lisp.h (xd_pending_messages): Declare.
1180
1181 * keyboard.c (readable_events): Call xd_pending_messages.
1182
b5b98ff4
CY
11832009-08-15 Chong Yidong <cyd@stupidchicken.com>
1184
1373f3be 1185 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1186
f8354c6e
CY
1187 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1188
b5b98ff4
CY
1189 * buffer.c (set_buffer_internal_1)
1190 (swap_out_buffer_local_variables): Check for unbound local
1191 variables (Bug#4138).
1192
8b9fc636
EZ
11932009-08-14 Eli Zaretskii <eliz@gnu.org>
1194
1195 * process.c (create_pty): Fix last change.
1196
ce959360
CY
11972009-08-13 Chong Yidong <cyd@stupidchicken.com>
1198
1199 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1200 (xbm_load_image): Caller changed.
64b807c9 1201 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1202
c7baf7e9
NR
12032009-08-13 Nick Roberts <nickrob@snap.net.nz>
1204
1205 * process.c (create_pty): New function.
1206 (Fstart_process): Use it to allow Emacs to just associate a pty
1207 with the buffer. See associated change in gdb-mi.el.
1208 (list_processes_1): Deal with no program name.
1209 (start_process_unwind): Use pid == -2 to mean no process.
1210
1ac9108a
SM
12112009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1212
1213 * cmds.c (nonundocount): New global variable.
1214 (keys_of_cmds): Initialize it.
1215 (Fself_insert_command): Use it to combine upto 20 sequential chars
1216 into a single undo entry, just like the Qself_insert_command code in
1217 keyboard.c does.
1218 Call frame_make_pointer_invisible, also like the Qself_insert_command
1219 code in keyboard.c does.
1220 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1221 than its own local replacement for it.
1222
e267324c
KR
12232009-08-10 Ken Raeburn <raeburn@raeburn.org>
1224
1ac9108a 1225 * fns.c (concat): Don't re-set string length to its current value.
77437343 1226
1ac9108a
SM
1227 * coding.h (decode_coding_string, encode_coding_string):
1228 Use SBYTES macro.
f0bed503 1229
1ac9108a 1230 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1231 (doprnt): Merge with doprnt1, discarding lispstrings code.
1232 * lisp.h (doprnt_lisp): Don't declare.
1233
416e006d
JL
12342009-08-07 Juri Linkov <juri@jurta.org>
1235
1236 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1237
6f7d5780
DN
12382009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1239
1240 * print.c (syms_of_print): Undo previous change.
1241
f19a0f5b
TZ
12422009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1243
1244 * lread.c (read1, syms_of_lread): Read hashtables back from the
1245 readable format.
1246
1247 * print.c (print_preprocess, print_object): Print hashtables fully
1248 and readably.
1249 (syms_of_print): Provide 'hashtable-print-readable.
1250
b9173dc2
AR
12512009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1252
1253 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1254 no family set.
1255 (nsfont_open): Handle case when entity has no family.
1256
1586503c
AR
12572009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1258
1259 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1260 element, not a list, for match case.
1261
087048cd
KH
12622009-07-28 Kenichi Handa <handa@m17n.org>
1263
1264 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1265 rigidly.
1266
1267 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1268 font_parse_xlfd. Check font properties more rigidly.
1269
780c2506
DN
12702009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1271
31fd7c5c
JB
1272 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1273 bsd-common.h.
780c2506 1274
a8c0cc18
KH
12752009-07-27 Kenichi Handa <handa@m17n.org>
1276
1277 * xfaces.c (face_with_height): Call font_clear_prop.
1278
4fbe2306
CY
12792009-07-26 Chong Yidong <cyd@stupidchicken.com>
1280
111d9af3
CY
1281 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1282
1283 * xterm.c (x_term_init): Use Qx.
1284
4fbe2306
CY
1285 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1286
1ac9108a 1287 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1288 (ns_get_color): Revert 2009-07-16 change.
1289
beb0b7f9
EZ
12902009-07-25 Eli Zaretskii <eliz@gnu.org>
1291
1292 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1293 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1294
2baf5e76
KR
12952009-07-25 Ken Raeburn <raeburn@raeburn.org>
1296
1ac9108a
SM
1297 * coding.h (decode_coding_string, encode_coding_string):
1298 Use SCHARS macro.
8890e5f5 1299
2baf5e76 1300 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1301 (load_depth): Delete.
2baf5e76
KR
1302 (Qload_in_progress): New variable.
1303 (load_unwind): Don't reference load_depth or load_in_progress.
1304 (Fload): Likewise; specbind Qload_in_progress instead.
1305 (init_lread): Don't initialize load_depth.
1306 (syms_of_lread): Initialize and protect Qload_in_progress.
1307
1395c6f5
AR
13082009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1309
1310 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1311
4e2f36cf
AR
13122009-07-23 Yavor Doganov <yavor@gnu.org>
1313
1314 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1315
5dd9a6f7
AR
13162009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1317
1318 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1319 Bugs 3792, 3720, 2402.
1320 (ns_lookup_indexed_color): Check for bad index.
1321 (ns_index_color): Init unused slot to 0.
1322 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1323 Bug 3714, possibly 3082.
5dd9a6f7 1324
c902b920
JR
13252009-07-22 Jason Rumney <jasonr@gnu.org>
1326
1ac9108a
SM
1327 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1328 Position IME window at cursor (Bug#2570).
c902b920
JR
1329 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1330 (globals_of_w32fns): Dynamically load functions required above.
1331
1332 * w32term.c (w32_draw_window_cursor): Send message to reposition
1333 any IME window.
1334
090101cf
CY
13352009-07-21 Chong Yidong <cyd@stupidchicken.com>
1336
1337 * fileio.c: Revert 2009-07-16 changes.
1338 (Vauto_save_include_big_deletions): New variable.
1339 (Fdo_auto_save): Disable auto-save only if
1340 auto-save-include-big-deletions is nil.
1341
e6583e3d
CY
13422009-07-21 Chong Yidong <cyd@stupidchicken.com>
1343
1344 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1345 the overflowed pixels into account (Bug#3879).
1346
ece435a5
KR
13472009-07-21 Ken Raeburn <raeburn@raeburn.org>
1348
1349 * lread.c (load_depth): New variable.
1350 (Fload, load_unwind, init_lread): Set it to the load recursion
1351 depth; set load_in_progress as a simple boolean based on the
1352 current load_depth. (Bug#3892)
1353
40b2d973
AR
13542009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1355
1356 * nsfont.m (ns_has_attribute): Remove.
1357 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1358
10be7e0d
JL
13592009-07-18 Juri Linkov <juri@jurta.org>
1360
1361 * process.c (Fset_process_query_on_exit_flag): Mention killing
1362 a buffer in docstring.
1363
fa055055
KH
13642009-07-17 Kenichi Handa <handa@m17n.org>
1365
1366 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1367
042f7b69
YM
13682009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1369
1370 * nsfns.m (Fns_set_alpha): Remove function.
1371 (syms_of_nsfns): Don't defsubr it.
1372
1373 * nsterm.m (ns_get_color): Remove incompatible color formats.
1374 (ns_color_to_lisp): Generate #rrggbb color format string.
1375
4be941e3
RS
13762009-07-16 Richard Stallman <rms@gnu.org>
1377
1378 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1379 (Fset_buffer_auto_saved): Handle save_length = -2.
1380
4e6b227d
CY
13812009-07-16 Chong Yidong <cyd@stupidchicken.com>
1382
1383 * xterm.c (Qx_gtk_map_stock): New var.
1384
1385 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1386 of calling intern each time.
1387
a1856973
YM
13882009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1389
1390 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1391 does tiling.
1392
1393 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1394
497e54d8
KH
13952009-07-14 Kenichi Handa <handa@m17n.org>
1396
72d36834
KH
1397 * font.c (font_vconcat_entity_vectors): New function.
1398 (struct font_sort_data): New member font_driver_preference.
1399 (font_compare): Check font_driver_preference.
1400 (font_sort_entities): The format of the first argument changed.
1401 (font_delete_unmatched): Likewise.
1402 (font_list_entities): The return type changed.
1403 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1404 (font_find_for_lface): Adjuste for the above changes.
1405 Don't suppress the checking of C even if the repertory supports it.
1406 (Flist_fonts): Adjust for the above changes.
72d36834 1407
1ac9108a
SM
1408 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1409 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1410 Reject a font who has adstyle property that is different from a
1411 langname derived from registry property.
1ac9108a 1412 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1413
b6046155
EZ
14142009-07-13 Eli Zaretskii <eliz@gnu.org>
1415
1416 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1417 local copy of dirfilename.
1418
fb6b6049
KH
14192009-07-13 Kenichi Handa <handa@m17n.org>
1420
e2402a5e
KH
1421 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1422 against max_char.
1423
fb6b6049
KH
1424 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1425 calling XSYMBOL (sym).
1426
65156807
EZ
14272009-07-11 Eli Zaretskii <eliz@gnu.org>
1428
1ac9108a
SM
1429 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1430 New function.
1431 (directory_files_internal) [WINDOWSNT]:
1432 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1433 the filesystem of the directory is fast or slow.
1434
1435 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1436 file name.
1437 (is_slow_fs): New function.
1438 (stat): Use it to determine whether to issue more system calls to
1439 get accurate file attributes, when w32-get-true-file-attributes is
1440 `local'.
1441
e0ab5fcf
JD
14422009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1443
1444 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1445 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1446 parameter font-parameter as default to the font dialog.
1447
784ceded
KH
14482009-07-10 Kenichi Handa <handa@m17n.org>
1449
1450 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1451
fb8edc0b
EZ
14522009-07-09 Eli Zaretskii <eliz@gnu.org>
1453
1ac9108a 1454 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1455
fb8edc0b
EZ
1456 * w32.c (stat): Treat UNC file names as residing on remote
1457 drives. (Bug#3542)
1458
635c75b1
KH
14592009-07-09 Kenichi Handa <handa@m17n.org>
1460
1461 * fontset.c (fontset_find_font): Fix previous change.
1462
c1d5ce94
MA
14632009-07-08 Michael Albinus <michael.albinus@gmx.de>
1464
1465 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1466 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1467 error flag.
1468
edb61b39
KH
14692009-07-08 Kenichi Handa <handa@m17n.org>
1470
374bf7e4
KH
1471 * fontset.c (fontset_find_font): Fix the logic of handling
1472 charset_matched.
1473 (font_for_char): Delete unused var.
1474 (generate_ascii_font_name): Delete it.
1475
edb61b39
KH
1476 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1477
1478 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1479 (encode_coding_sjis): Fix the code range check.
1480
0f3f018c
CY
14812009-07-07 Chong Yidong <cyd@stupidchicken.com>
1482
1483 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1484 (Fexpand_file_name): Copy string data properly (Bug#3772).
1485
fcaf6f3a
JD
14862009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1487
1488 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1489 first MapNotify.
1490
6809ca75
KH
14912009-07-07 Kenichi Handa <handa@m17n.org>
1492
1493 * character.h (unibyte_has_multibyte_table): Delete extern.
1494 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1495
1496 * charset.c (Fset_charset_priority): Update charset_unibyte.
1497 (syms_of_charset): Initialize charset_unibyte.
1498
1499 * character.c (unibyte_has_multibyte_table): Delete it.
1500 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1501 charset_unibyte.
1502 (multibyte_char_to_unibyte_safe): Likewise.
1503 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1504
1ac9108a 1505 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1506 (x_produce_glyphs): Likewise.
1507
1508 * .gdbinit (xcharset): Fix the treating $arg0.
1509
ad9e2d54
EZ
15102009-07-04 Eli Zaretskii <eliz@gnu.org>
1511
1512 Emulation of `getloadavg' on MS-Windows.
1513 * w32.c: Include float.h
1514 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1515 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1516 (get_native_system_info, get_system_times): New functions.
1517 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1518 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1519 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1520 g_b_init_get_system_times, and num_of_processors.
1521
0a3472c7
JR
15222009-07-03 Jason Rumney <jasonr@gnu.org>
1523
1524 * w32term.c (w32_initialize): Use standard types.
1525
80904120
EZ
15262009-07-03 Eli Zaretskii <eliz@gnu.org>
1527
1528 * dired.c (Ffile_attributes): Decode user and group names by the
1529 locale's encoding. (Bug#3443)
1530
6978862d
DN
15312009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1532
f8d23104
DN
1533 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1534 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1535
1536 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1537
1538 * term.c (init_tty): Remove spurious #ifdef.
1539
6978862d
DN
1540 * m/mips.h: Mention this file is also used for netbsd.
1541 * m/pmax.h: Remove file.
1542
e044e4fc
JD
15432009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1544
1545 * xterm.h (struct x_display_info): Add invisible_cursor.
1546 (struct x_output): Add current_cursor.
1547
1548 * xterm.c (XTtoggle_invisible_pointer): New function.
1549 (x_define_frame_cursor): Don't define cursor if invisible or the
1550 same as before. Set current_cursor.
1551 (x_create_terminal): Set toggle_invisible_pointer_hook.
1552
1553 * xfns.c (make_invisible_cursor): New function.
1554 (x_set_mouse_color): Call make_invisible_cursor.
1555 Set current_cursor.
1556 (x_window): Set current_cursor.
1557
1558 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1559
1560 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1561 inserting a character.
1562 (read_avail_input): Call frame_make_pointer_visible.
1563
1564 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1565 (frame_make_pointer_invisible, frame_make_pointer_visible):
1566 New functions.
e044e4fc
JD
1567 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1568
1569 * frame.h: Declare frame_make_pointer_invisible and
1570 frame_make_pointer_visible.
1571 (struct frame): Add pointer_invisible.
1572
574c8efa
JD
15732009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1574
7b507248
JD
1575 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1576 frame isn't visible.
1577 (xg_frame_resized): If width/height is -1, get size of window
1578 from X server.
1579
1580 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1581 for MapNotify.
1582
835bdaa7 1583 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1584 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1585 (flush_and_sync): Reintroduce.
574c8efa 1586
3f1c6666 15872009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1588
31fd7c5c 1589 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1590
1591 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1592 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1593
1594 * frame.h: Declare Qsticky.
1595
cad9ef74
JD
1596 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1597
1598 * nsfns.m (ns_frame_parm_handlers): Ditto.
1599
1600 * frame.c: Declare Qsticky.
1601 (frame_parms): Add sticky.
1602
1603 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1604
1605 * xterm.h: Declare x_set_sticky.
1606
1607 * xterm.c (x_set_sticky): New function.
1608
69b16610
JD
1609 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1610 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1611 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1612
1613 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1614
1615 * frame.c: Qmaximized is new.
1616 (x_set_frame_parameters): Do not handle fullscreen specially.
1617 Only set width and height if explicitly set.
1618 (x_set_fullscreen): Handle Qmaximized.
1619 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1620 (syms_of_frame): Initialize Qmaximized.
1621
1ac9108a
SM
1622 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1623 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1624
1625 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1626 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1627 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1628 set gravity to NorthWestGravity when USE_GTK.
1629 (set_wm_state): New function.
31fd7c5c 1630 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1631 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1632 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1633 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1634 to x_real_positions and x_fullscreen_adjust.
1635
1636 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1637 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1638 flush_and_sync.
1639 (xg_height_changed): New function.
1640 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1641 and gtk_window_set_policy. Set frame gravity after parsing the
1642 geometry string.
3f1c6666
JD
1643 (xg_update_frame_menubar, free_frame_menubar)
1644 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1645 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1646 Remove calls to xg_frame_set_char_size.
1647
fd503d99
KH
16482009-07-01 Kenichi Handa <handa@m17n.org>
1649
1650 * keyboard.c (decode_keyboard_code): New function.
1651 (tty_read_avail_input): Decode the input bytes if necessary.
1652
1ac9108a
SM
1653 * coding.c (setup_coding_system):
1654 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1655 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1656 use Qno_conversion.
1657
24ed93fb
YM
16582009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1659
1660 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1661
99061dfc
CY
16622009-06-30 Chong Yidong <cyd@stupidchicken.com>
1663
1ac9108a 1664 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1665
ff90fbde
JR
16662009-06-30 Jason Rumney <jasonr@gnu.org>
1667
1668 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1669 is already loaded.
1670 Set user model ID if supported (bug#1849).
1671
5f445726
JM
16722009-06-29 Jim Meyering <meyering@redhat.com>
1673
1674 Remove useless if-before-xfree test.
1675 * nsfont.m (nsfont_close): Remove useless test.
1676 * term.c (delete_tty): Likewise.
1677 * w32.c (system_process_attributes): Likewise.
1678 * w32font.c (w32font_close): Likewise.
1679 * xfaces.c (x_free_gc): Likewise.
1680 * xselect.c (buffer): Likewise.
1681
b9607587
AS
16822009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1683
1684 * process.c (send_process): Keep decoded string in a local
1685 variable and protect it from GC. (Bug#3521)
1686
89ba96f4
EZ
16872009-06-28 Eli Zaretskii <eliz@gnu.org>
1688
1689 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1690 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1691
098a1589
CY
16922009-06-28 Chong Yidong <cyd@stupidchicken.com>
1693
485422be
CY
1694 * xdisp.c (start_display, handle_face_prop)
1695 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1696 (redisplay_window, try_window_id, produce_image_glyph):
1697 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1698
098a1589
CY
1699 * xterm.c (x_update_window_begin, x_new_focus_frame)
1700 (x_scroll_bar_handle_click, handle_one_xevent)
1701 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1702 (x_make_frame_visible, x_make_frame_invisible)
1703 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1704 code chunks that are now obsolete.
1705
78c38319
MA
17062009-06-28 Michael Albinus <michael.albinus@gmx.de>
1707
1708 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1709 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1710 for hours, when optimzation is enabled.
1711 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1712 (xd_read_message): Make them static.
1713
4189ed40
CY
17142009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1715
1716 * term.c (turn_on_face): Allow simultaneously bold and dim
1717 terminal faces (Bug#3530).
1718
cd9b5e16
CY
17192009-06-27 Chong Yidong <cyd@stupidchicken.com>
1720
4e23bedb
CY
1721 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1722
cd9b5e16
CY
1723 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1724 truncation glyphs (Bug#3686).
1725
07cc3c35
GM
17262009-06-27 Glenn Morris <rgm@gnu.org>
1727
1728 * m/pmax.h: Restore file, with only netbsd portions.
1729
31fd7c5c 17302009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1731
cd9b5e16 1732 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1733
42d4a64f
KH
17342009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1735
1736 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1737 the arg FORCE_SYMBOL.
1738
930fe55b 17392009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1740
1741 * fontset.c (fontset_find_font): When a usable rfont_def is found
1742 in a fallback font-group, make it the first element of the group.
1743
57ebc3fd
CY
17442009-06-24 Chong Yidong <cyd@stupidchicken.com>
1745
1746 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1747
f084f942
KH
17482009-06-24 Kenichi Handa <handa@m17n.org>
1749
1750 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1751 set for C.
1752 (fontset_font): Record the availability of a font for C both in
1753 the realized fontsets of the current one and the default one.
1754
2f686c87
DN
17552009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1756
1757 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1758 conditional, it is always defined on AIX.
1759
666e158e
MB
17602009-06-23 Miles Bader <miles@gnu.org>
1761
1762 * window.c (Vrecenter_redisplay): New variable.
1763 (syms_of_window): Initialize it.
1764 (Qtty): New extern declaration.
1765 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1766
c6da7cd2
JM
17672009-06-23 Jim Meyering <meyering@redhat.com>
1768
1ac9108a
SM
1769 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1770 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 1771 pointer dereferences are guaranteed to be valid.
c6da7cd2 1772
678dca3d
KH
17732009-06-23 Kenichi Handa <handa@m17n.org>
1774
74d75424
KH
1775 * emacs.c (main): Call init_font ().
1776
1777 * font.h (Vfont_log): Extern it.
1778 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1779
1780 * font.c (font_sort_entities, font_list_entities)
1781 (font_matching_entity, font_open_entity)
1782 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1783 (Vfont_log): Delete static.
1784 (font_log_env_checked): Delete this variable.
1785 (font_add_log): Don't check font_log_env_checked.
1786 (font_deferred_log): Check Vfont_log.
1787 (init_font): New function.
1788
678dca3d
KH
1789 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1790
1791 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1792
1793 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1794
1795 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1796
1797 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1798 (face_for_char): Don't call font_deferred_log here.
1799 (font_for_char): Likewise.
1800
8a668709
CY
18012009-06-22 Chong Yidong <cyd@stupidchicken.com>
1802
9a01ee33
CY
1803 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1804 rather than its background_width for drawing the overline and
1805 underline (Bug#489).
1806
1807 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1808 rather than its background_width for drawing the overline and
1809 underline (Bug#489).
ec7c9926
CY
1810 (xg_default_icon_file): New variable.
1811 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1812 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1813
8a668709
CY
1814 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1815 (load_overlay_strings): Remove externs.
1816 (fast_find_position): Function deleted.
1817 (mouse_face_from_buffer_pos): New function, based on
1818 fast_find_position. Correctly handle before-strings,
1819 display-strings, and after-strings (Bug#1220).
1820 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1821
4d4c02d8
CY
18222009-06-21 Chong Yidong <cyd@stupidchicken.com>
1823
1ac9108a 1824 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
1825 (move_it_in_display_line_to, move_it_in_display_line_to)
1826 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1827
70243478
CY
18282009-06-21 Chong Yidong <cyd@stupidchicken.com>
1829
1830 * Branch for 23.1.
1831
13087e59
JR
18322009-06-21 Jason Rumney <jasonr@gnu.org>
1833
1834 * w32term.c (keyboard_codepage): New static variable.
1835 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1836 (w32_read_socket) [WM_CHAR]: Use it to decode character
1837 input (bug#3237).
1838 (w32_initialize): Initialize it.
1839 (codepage_for_locale): New function.
1840
4735b74e
KR
18412009-06-20 Ken Raeburn <raeburn@raeburn.org>
1842
1843 * process.c (status_message): Pass Faset index argument as a lisp
1844 object, so as to work with USE_LISP_UNION_TYPE.
1845
0e727afa
YM
18462009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1847
1848 * coding.c (Ffind_coding_systems_region_internal):
1849 Cache checked characters.
1850
cf299835
KH
18512009-06-18 Kenichi Handa <handa@m17n.org>
1852
1ac9108a 1853 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 1854
90f20d94
AS
18552009-06-18 Andreas Schwab <aschwab@redhat.com>
1856
1857 * xdisp.c (redisplay_internal): Check that the frame is still
1858 live after redisplay of its windows.
1859 (redisplay_windows): Check that the window is still live.
1860
7f1faf1c
KH
18612009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1862
1863 * coding.c (detect_coding_utf_16): Fix previous change.
1864
cc13543e
KH
18652009-06-16 Kenichi Handa <handa@m17n.org>
1866
1867 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1868 UTF-16 by checking the dispersion of Eth and Oth bytes.
1869
977b85f4
AS
18702009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1871
1872 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1873
66bd43d1
KH
18742009-06-15 Kenichi Handa <handa@m17n.org>
1875
1876 * process.c (status_message): Fix previous change. Be sure to
1877 decode a localized string.
1878
cb5ca9c5
YM
18792009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1880
1881 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1882 add comment explaining why.
1883
ec7709ba 18842009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 1885
ec7709ba 1886 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 1887
4b7f335c
AR
18882009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1889
1890 * nsfont.m (ns_attribute_value): Remove.
1891 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1892 (ns_has_attribute): Shrink the normal range.
1893 (ns_findfonts): Don't worry about requested spec in determining
1894 need for synthItal.
e41820ee 1895 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 1896
73b26103
SZ
18972009-06-14 Seiji Zenitani <zenitani@mac.com>
1898
1899 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1900
5753e4da
KH
19012009-06-11 Kenichi Handa <handa@m17n.org>
1902
1903 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1904 overhang for the static composition case.
1905
3561b671
KH
19062009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1907
5753e4da
KH
1908 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1909 overhang for the automatic composition case.
1910
3561b671
KH
1911 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1912 composition case.
1913
852bbd41
CY
19142009-06-10 Chong Yidong <cyd@stupidchicken.com>
1915
1916 * xdisp.c (get_next_display_element): When handling wrap-prefix
1917 and line-prefix, treat \n as a control character (bug#3502).
1918
9903d1e6
KH
19192009-06-10 Kenichi Handa <handa@m17n.org>
1920
1921 * font.c (font_parse_family_registry): Fix for one-char foundry.
1922 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1923
0bcbaaaa
CY
19242009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1925
1926 * process.c (status_message): Fix handling of multibyte signal
1927 string (Bug#3499).
1928
40aa3f13
JM
19292009-06-09 Jim Meyering <meyering@redhat.com>
1930
1f80c7e2
CY
1931 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1932 color name is missing.
40aa3f13 1933
72d51285
KH
19342009-06-09 Kenichi Handa <handa@m17n.org>
1935
1936 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1937 FROM-CODE and TO-CODE are codepoints of CHARSET.
1938
c1d04d84
AR
19392009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1940
1941 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1942
19432009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1944
1945 Changes to support :script/:lang/:otf in NS font driver.
1946 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1947 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1948 indicate not part of font driver interface, and change callers.
1949 (ns_get_family): Remove pointless null check.
1950 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1951 ns_spec_to_descriptor, ns_descriptor_to_entity.
1952 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1953 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1954 (ns_spec_to_descriptor, ns_descriptor_to_entity)
1955 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1956 (ns_get_req_script, ns_accumulate_script_ranges)
1957 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1958 New functions.
1959 (nsfont_list, nsfont_match): Use ns_findfonts.
1960 (nsfont_open): Use font descriptor instead of traits.
1961 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1962 (dump_glyphstring): Rename to ns_dump_glyphstring.
1963
c7eb9816
AR
1964 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1965
c1d04d84
AR
1966 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1967
1968 * fontset.c (fontset_from_font): Remove NS-specific code.
1969
ec7709ba 19702009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
1971
1972 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
1973 nonactive windows.
1974
31fd7c5c 19752009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 1976
1ac9108a 1977 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 1978
68852c13 19792009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
1980
1981 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
1982
6756cd1d
CY
19832009-06-07 Chong Yidong <cyd@stupidchicken.com>
1984
1985 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
1986 account for the overflowing of newlines into the last glyph on the
1987 display line (Bug#3482).
1988
28bf482a
DR
19892009-06-05 David Reitter <david.reitter@gmail.com>
1990
ec7709ba
JB
1991 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
1992 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
1993 Fns_selection_exists_p, Fns_selection_owner_p.
1994
fdb55376
JR
19952009-06-03 Jason Rumney <jasonr@gnu.org>
1996
1997 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
1998 available. (Bug#3379)
1999
05129fbe
KH
20002009-05-29 Kenichi Handa <handa@m17n.org>
2001
1ac9108a
SM
2002 * coding.c (get_translation_table):
2003 Check Venable_character_translation.
05129fbe 2004
ec7709ba 20052009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2006
ec7709ba
JB
2007 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2008 (x_make_frame_visible): Move frame to front rather than calling
15891144 2009 ns_raise_frame().
ec7709ba 2010 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2011 isn't key window.
ec7709ba 2012 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2013 drawRect may be called by NSView even if the frame is hidden.
2014
ec7709ba
JB
2015 * nsfns.m (Fx_create_frame): Follow other ports in
2016 determining visibility; default to t. Ensure async_visible is set.
15891144 2017
21f73755
EZ
20182009-05-23 Eli Zaretskii <eliz@gnu.org>
2019
2020 * dired.c (Ffile_attributes): Doc fix.
2021
34001e41
CY
20222009-05-22 Chong Yidong <cyd@stupidchicken.com>
2023
2024 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2025
46306a17
SM
20262009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2027
2028 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2029 and xfont_scratch_props.
2030 (syms_of_xfont): Do it here instead.
2031 (xfont_find_ccl_program): Delete, unused.
2032 (xfont_open): Delete unused var `i'.
2033
ef6e0694
KH
20342009-05-21 Kenichi Handa <handa@m17n.org>
2035
2036 * fontset.c (Qlatin): Don't make it static.
2037
46306a17
SM
2038 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2039 New functions.
ef6e0694
KH
2040 (xfont_scripts_cache, xfont_scratch_props): New variables.
2041 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2042 (xfont_list_pattern): Argument changed. Callers changed.
2043 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2044 (xfont_list): Don't reject a font spec with :script property.
2045 (xfont_has_char): Fix setting of encoding.
2046 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2047 xfont_scratch_props.
2048
20492009-05-19 Kenichi Handa <handa@m17n.org>
2050
46306a17 2051 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2052 Callers changed.
2053
20542009-05-18 Kenichi Handa <handa@m17n.org>
2055
2056 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2057
ac71ced7
SM
20582009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2059
2060 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2061 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2062
1c6d1051
YM
20632009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2064
2065 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2066 (x_delete_terminal): Dissociate resource database from display and
2067 then call XrmDestroyDatabase before closing display.
2068
9b9b779c
AR
20692009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2070
2071 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2072 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2073 whether selected frame is viable before raising it (based on patch
2074 by David Reitter), and improve commentary.
2075 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2076
cccd42d5
KH
20772009-05-15 Kenichi Handa <handa@m17n.org>
2078
2079 * font.c (Ffont_spec): Check arguments.
2080
337fbd17
CY
20812009-05-14 Chong Yidong <cyd@stupidchicken.com>
2082
2083 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2084 weight when testing attributes (Bug#3282).
2085
47a6002f
JD
20862009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2087
2088 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2089 what we expect to get in the next ConfigureNotify event.
2090
9cb363db
YM
2091 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2092 before Xft one (Bug#1696).
2093
b9126609
CY
20942009-05-07 David Reitter <david.reitter@gmail.com>
2095
2096 * nsfns.m (Fx_display_planes): Compute bitplanes using
2097 NSBitsPerPixelFromDepth (Bug#3207).
2098
27a69fd9
CY
20992009-05-10 Chong Yidong <cyd@stupidchicken.com>
2100
2101 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2102
00f37552
TTN
21032009-05-10 Ulrich Mueller <ulm@gentoo.org>
2104
2105 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2106
2d82a920
DR
21072009-05-07 David Reitter <david.reitter@gmail.com>
2108
ec7709ba
JB
2109 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2110 Respect mouse face background.
2d82a920 2111
46b0d52d
DR
21122009-05-07 David Reitter <david.reitter@gmail.com>
2113
ec7709ba
JB
2114 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2115 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2116 in ns_update_begin and ns_update_end.
2117
ce1b23bb
SM
21182009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2119
5996e1b7
SM
2120 * nsfns.m (ns_get_screen): Rewrite.
2121 Don't presume selected-frame is of type `ns'.
2122
ba98e3a0
SM
2123 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2124 all drivers.
2125
ce1b23bb
SM
2126 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2127
bcda200f
YM
21282009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2129
2130 * keyboard.h (add_user_signal): Fix typo in extern.
2131
2132 * lisp.h (add_user_signal): Remove extern.
2133
2134 * unexelf.c (unexec): Consider a section to precede the .bss section
2135 if its addresses overlap that of .bss.
2136 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2137 instead of dumping process.
2138
864660a2
SM
21392009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2140
2141 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2142
50da4e56
SM
21432009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2144
2145 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2146
51520a1a
DN
21472009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2148
2149 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2150 any statements.
2151
409ea3a1
AS
21522009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2153
59c4c60f
AS
2154 * process.c (read_process_output): Make sure the current buffer is
2155 always restored.
2156
409ea3a1
AS
2157 * coding.c (record_conversion_result): Don't modify
2158 Vlast_code_conversion_error for successful result.
2159 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2160
56f00ed2
KH
21612009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2162
2163 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2164 (load_charset_map): Remove unnecessary code.
56f00ed2 2165
4491c9d2
DR
21662009-04-30 David Reitter <david.reitter@gmail.com>
2167
35f5b128 2168 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2169 through f24.
2170
6970f632
CY
21712009-04-30 Chong Yidong <cyd@stupidchicken.com>
2172
2173 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2174
2175 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2176 face_at_buffer_position.
2177 (face_before_or_after_it_pos, get_next_display_element)
2178 (note_mouse_highlight): Update face_at_buffer_position call.
2179
2180 * term.c (term_mouse_highlight):
2181 * msdos.c (IT_note_mouse_highlight):
2182 * fontset.c (Finternal_char_font):
35f5b128 2183 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2184
2185 * dispextern.h (face_at_buffer_position): Update prototype.
2186
0c616f63
KH
21872009-04-30 Kenichi Handa <handa@m17n.org>
2188
35f5b128 2189 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2190
ad3aaf33
AS
21912009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2192
2193 * callproc.c (Fcall_process): Fix GC protection. Make sure
2194 current buffer is always restored.
2195
c3c963a0
YM
21962009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2197
2198 * atimer.c (init_atimer): Also clear stopped_atimers.
2199
2200 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2201
7e3386cb
YM
2202 * process.c (create_process): Clean up merger residues of
2203 2008-07-17 change.
2204
91f68422
CY
22052009-04-29 Ulrich Mueller <ulm@gentoo.org>
2206
2207 * lread.c (Vread_circle): New variable.
2208 (read1): Disable recursive read if Vread_circle is nil.
2209
24b34550
KH
22102009-04-29 Kenichi Handa <handa@m17n.org>
2211
2212 * fontset.h (set_default_ascii_font): Delete extern.
2213
2214 * fontset.c (set_default_ascii_font): Delete this unused function.
2215
2216 * frame.c (x_set_font): When ARG is a font-object, check if the
2217 font-object matches with the ASCII font-spec of the frame's
9c358bda 2218 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2219
77bf07e1
AS
22202009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2221
2222 * fns.c (Flocale_info): Protect vector from GC during decoding.
2223
2224 * process.c (Fstart_process): Protect argv strings from GC during
2225 encoding.
2226
2c55aacf
AS
22272009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2228
2229 * sysdep.c: Include <ctype.h>.
2230
b892d3c9
DR
22312009-04-27 David Reitter <david.reitter@gmail.com>
2232
35f5b128 2233 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2234 Remove commented-out code.
2235
9d0644c4
JB
22362009-04-26 Johan Bockgård <bojohan@gnu.org>
2237
2238 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2239
b7053016
JR
22402009-04-25 Jason Rumney <jasonr@gnu.org>
2241
2242 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2243
4e8231f3
YM
22442009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2245
2246 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2247 Swap bytes in short integer if fringe bitmap width > 8.
2248
493dcf2c
KH
22492009-04-23 Kenichi Handa <handa@m17n.org>
2250
2251 * xfaces.c (Fx_list_fonts): If a font size is specified in
2252 PATTERN, set it in returned scalable fonts.
2253
401e9e57
CY
22542009-04-22 Chong Yidong <cyd@stupidchicken.com>
2255
708e05dc
CY
2256 * keyboard.c (Fset_input_meta_mode): Doc fix.
2257
2258 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2259
1ac9108a 2260 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2261
2262 * coding.c (Fterminal_coding_system): Doc fix.
2263
2264 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2265 (Fx_display_pixel_height, Fx_display_planes)
2266 (Fx_display_color_cells, Fx_server_max_request_size)
2267 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2268 (Fx_display_mm_height, Fx_display_mm_width)
2269 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2270 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2271 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2272 (check_x_display_info): Handle terminal objects instead of
2273 terminal ids.
2274
401e9e57
CY
2275 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2276 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2277 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2278 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2279
df80c7f0
KH
22802009-04-21 Kenichi Handa <handa@m17n.org>
2281
5a8f12af 2282 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2283 (font_score): Check AVGWIDTH too.
908567ef 2284
df80c7f0
KH
2285 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2286 worst case.
1ac9108a
SM
2287 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2288 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2289
705af33f
JR
22902009-04-19 Jason Rumney <jasonr@gnu.org>
2291
2292 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2293 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2294
2295 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2296 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2297 get_phys_cursor_geometry.
2298
b71ac3dd 2299 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2300 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2301 using get_phys_cursor_geometry.
2302
2303 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2304 correctly calculated.
2305
dc2933eb
JD
23062009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2307
1ac9108a
SM
2308 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2309 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2310 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2311 is deprecated.
2312
973e7849
AS
23132009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2314
2315 * font.c (font_put_frame_data): Use xfree instead of free.
2316
314d66f4
JB
23172009-04-17 Juanma Barranquero <lekktu@gmail.com>
2318
2319 * w32font.c (Qja, Qko): Remove declarations.
2320 (syms_of_w32font): Don't DEFSYM them.
2321
cf702558
CY
23222009-04-17 Chong Yidong <cyd@stupidchicken.com>
2323
2324 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2325
2326 * font.h (Qja, Qko): Extern them.
2327
2328 * ftfont.c (Qja, Qko): Remove declarations.
2329
2330 * xfont.c (Qja, Qko): Remove declarations.
2331
b50504f5
KH
23322009-04-17 Kenichi Handa <handa@m17n.org>
2333
bde25748
KH
2334 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2335 string from a vector to handle Latin-1 characters correctly.
2336
b50504f5
KH
2337 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2338 entity even if the cache hits.
2339
f4646fff
AS
23402009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2341
2342 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2343 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2344
e7deaab0
AS
2345 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2346 * lisp.h: Adjust prototypes.
2347
0a0e7d49
CY
23482009-04-16 Chong Yidong <cyd@stupidchicken.com>
2349
2350 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2351 change (Bug#3003).
2352
3c908a57
KH
23532009-04-16 Kenichi Handa <handa@m17n.org>
2354
1ac9108a 2355 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2356
2357 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2358 adstyle.
2359
2360 * ftfont.c (Qja, Qko): Don't make them static.
2361 (enum ftfont_cache_for): New enum.
2362 (fc_charset_table): Undo the previous change.
2363 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2364 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2365 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2366 non-scarable font, try to get AVERAGE_WIDTH.
2367 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2368 Change ft_face_cache from a list of a hash-table. Don't check
2369 `ja' and `ko' adstyle here.
2370 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2371 FTFONT_CACHE_FOR_CHARET.
2372 (ftfont_get_charset): Undo the previous change.
1ac9108a 2373 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2374 (ftfont_close): Likewise.
2375 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2376
2377 * font.c (font_sort_entites): Change the meaning of the arg
2378 BEST-ONLY. Don't optimize for VEC of lenght 1.
2379 (font_select_entity): Just return the value of font_sort_entites.
2380
2381 * xfaces.c (merge_face_vectors): Reflect font properties in
2382 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2383 font_clear_prop if a face attribute doesn't change.
2384
3c908a57
KH
2385 * charset.h (charset_ksc5601): Extern it.
2386
2387 * charset.c (charset_ksc5601): New variable.
2388 (Fdefine_charset_internal): Set charset_ksc5601.
2389 (init_charset_once): Initialize charset_ksc5601 to -1.
2390
d65859c3
DN
23912009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2392
2393 * fileio.c (history_delete_duplicates): Remove unused declaration.
2394
2395 * callint.c (history_delete_duplicates): New declaration.
2396 (Fcall_interactively): Remove command history duplicates when
2397 history_delete_duplicates is true.
2398
3ba010e5
EZ
23992009-04-14 Eli Zaretskii <eliz@gnu.org>
2400
2401 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2402
06f19b91
KH
24032009-04-14 Kenichi Handa <handa@m17n.org>
2404
2405 * font.c (Ffont_info): Fix docstring. Fix the second element of
2406 the returned value (bug#2949).
2407
2cce8bfc
CY
24082009-04-14 Chong Yidong <cyd@stupidchicken.com>
2409
2410 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2411
d156542d
KH
24122009-04-14 Kenichi Handa <handa@m17n.org>
2413
2414 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2415 encoding charset is ascii_compatible.
2416
2417 * charset.c (Fdefine_charset_internal): Make charset
2418 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2419 code_offset is 0, and covers all ASCII characters.
2420
86fa089e
SM
24212009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2422
2423 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2424 (ns_string_to_pasteboard_internal):
2425 * nsmenu.m (process_dialog):
2426 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2427 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2428 * lisp.h (Fx_load_color_file): Declare.
2429
a8a3728b
KH
24302009-04-13 Kenichi Handa <handa@m17n.org>
2431
1ac9108a 2432 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2433 (font_select_entity): Suppress the code to optimize for the same
2434 kind of fonts.
2435 (font_load_for_lface): Get a font that supports at least ASCII
2436 characters.
2437
2438 * ftfont.c (Qja, Qko): New variables.
2439 (fc_charset_table): Delete uniquifier data for iso8859-1.
2440 (ftfont_get_latin1_charset): New function.
2441 (get_adstyle_property): New function.
2442 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2443 bitmap fonts.
2444 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2445 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2446 `ko' or `ja'.
2447 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2448 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2449 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2450 property.
2451 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2452 (syms_of_ftfont): DEFSYM Qja and Qko.
2453
483670b5
KH
24542009-04-09 Kenichi Handa <handa@m17n.org>
2455
12b55765
KH
2456 * charset.c (map_charset_chars): For a charset of `superset'
2457 method, fix calculation of code range.
2458
483670b5
KH
2459 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2460 from the list of extra properties.
2461 (font_clear_prop): Be sure to delete `:name' font property.
2462
57d3b93b
KH
24632009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2464
b4b2c2ca
YM
2465 * dispnew.c (redraw_overlapping_rows): Fix detection of
2466 overlapping for topmost and bottommost rows.
2467
1ac9108a 2468 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2469
472c3609
JR
24702009-04-06 Jason Rumney <jasonr@gnu.org>
2471
2472 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2473
ab193662
KH
24742009-04-06 Kenichi Handa <handa@m17n.org>
2475
2476 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2477
2478 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2479
0c26f026
KH
24802009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2481
2482 * ftfont.c (ftfont_open): Fix checking of the return value of
2483 FT_Load_Char. Fix setting font->underline_thickness.
2484
e173bbce
CY
24852009-04-04 Chong Yidong <cyd@stupidchicken.com>
2486
2487 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2488 (Fterminal_parameters, Fterminal_parameter)
2489 (Fset_terminal_parameter): In doc string, refer to terminal
2490 objects rather than terminal ids.
2491
693a2698
EZ
24922009-04-04 Eli Zaretskii <eliz@gnu.org>
2493
2494 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2495 ret_lim_data. (Bug#2867)
2496
d5221487
CY
24972009-04-03 Chong Yidong <cyd@stupidchicken.com>
2498
2499 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2500 so they don't get wider than the window, matching 2006-01-23
2501 change to the partner function in xdisp.c (Bug#2800).
2502
223509a3
KH
25032009-04-03 Kenichi Handa <handa@m17n.org>
2504
2505 * print.c (print_object): Make each lowest sub_char_table start a
2506 new line (Bug#2866).
2507
74fcd0b1
KH
25082009-04-02 Kenichi Handa <handa@m17n.org>
2509
2510 * fontset.c (fontset_font): Record no-font when a fontset
2511 explicitly tells not to try another font-specs.
2512
c542407d
SM
25132009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2514
2515 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2516
e3869731
KH
25172009-03-30 Kenichi Handa <handa@m17n.org>
2518
d8d2f142
KH
2519 * fontset.c (fontset_from_font): Specify only registry in a
2520 font-spec for all characters supported by that registry.
2521
e3869731
KH
2522 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2523 even if HAVE_M17N_FLT is not defined.
2524
5da5f805
CY
25252009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2526
2527 * ftfont.c: Conditionalize prototyping and use of
2528 ftfont_variation_glyphs.
2529
ab226c50
SM
25302009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2531
9628fed7
SM
2532 * frame.c (delete_frame): Work around compiler bug.
2533
2534 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2535 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2536 Some more EMACS_INT.
2537 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2538
2539 * xdisp.c (dump_glyph): Fix typo.
2540
ae19ba7c
SM
2541 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2542 (adjust_markers_gap_motion, adjust_markers_for_delete)
2543 (adjust_markers_for_insert, adjust_point)
2544 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2545 (make_gap, copy_text, count_size_as_multibyte, insert)
2546 (insert_and_inherit, insert_before_markers)
2547 (insert_before_markers_and_inherit, insert_1)
2548 (count_combining_before, count_combining_after, insert_1_both)
2549 (insert_from_string, insert_from_string_before_markers)
2550 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2551 (insert_from_buffer_1, adjust_after_replace)
2552 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2553 (replace_range_2, del_range, del_range_1, del_range_byte)
2554 (del_range_both, del_range_2, modify_region)
2555 (prepare_to_modify_buffer, signal_before_change)
2556 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2557 for buffer positions and sizes.
2558 * lisp.h: Adjust prototypes accordingly.
2559
2560 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2561 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2562 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2563
ab226c50
SM
2564 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2565
46dfb8fb
JD
25662009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2567
2568 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2569 lines and columns so we keep the same pixel height and width.
2570
2571 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2572 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2573 (x_handle_net_wm_state): New function to update frame parameter
2574 fullscreen.
2575 (x_term_init): Initialize atoms for _NET_WM_STATE.
2576
2577 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2578
d347e494
SM
25792009-03-27 Kevin Ryde <user42@zip.com.au>
2580
2581 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2582 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2583 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2584 (Fgpm_mouse_stop): Pass that new parameter.
2585 * termhooks.h (close_gpm): Adjust prototype.
2586
84db11d6
SM
25872009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2588
c95a5008
SM
2589 * lisp.h (Fx_focus_frame): Declare.
2590
84db11d6
SM
2591 * callint.c (Fcall_interactively): For '^' just delegate the work to
2592 handle-shift-selection.
2593 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2594
0a1958d6
CY
25952009-03-24 Chong Yidong <cyd@stupidchicken.com>
2596
0bfdff23
CY
2597 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2598
0a1958d6
CY
2599 * data.c (Qinteractive_form): New variable.
2600 (Finteractive_form): Use it.
2601
2602 * eval.c (Fcommandp): Use Qinteractive_form.
2603
58aec0d6
JR
26042009-03-24 Jason Rumney <jasonr@gnu.org>
2605
2606 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2607 Calculate total size precisely. Decode environment variables
2608 before substituting. (Bug#38)
2609
553dd618
KH
26102009-03-24 Kenichi Handa <handa@m17n.org>
2611
2612 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2613 encoding (Bug#2722).
553dd618 2614
c39ea606
JD
26152009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2616
2617 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2618 that gdpy is set.
2619
bc9b2b5e
AM
26202009-03-22 Alan Mackenzie <acm@muc.de>
2621
2622 * callint.c (Finteractive): Clarify the doc string - even
2623 promptless elements need \n separators.
2624
9f995a76
JR
26252009-03-22 Jason Rumney <jasonr@gnu.org>
2626
2627 * w32term.c (syms_of_w32term): Doc fix for
2628 x-use-underline-position-properties.
2629
22749e9a
EZ
26302009-03-21 Eli Zaretskii <eliz@gnu.org>
2631
2632 * w32.c (getpwuid): Change argument type to unsigned.
2633 (struct w32_id): Change type of `rid' member to unsigned.
2634 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2635 argument ID to unsigned. All callers changed.
2636 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2637
e00553bf
EZ
26382009-03-20 Eli Zaretskii <eliz@gnu.org>
2639
2640 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2641 negative, produce a float value.
2642
2643 * dired.c (make_uid, make_gid): New functions.
2644 (Ffile_attributes): Use them to avoid negative UID and GID.
2645
f761d6b6
JB
26462009-03-20 Juanma Barranquero <lekktu@gmail.com>
2647
2648 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2649 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2650 Fix typos in docstrings.
2651
d507f8d7
KH
26522009-03-19 Kenichi Handa <handa@m17n.org>
2653
2654 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2655 changed, use font_load_for_lface to get a new font object.
2656 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2657
2658 * frame.c (x_set_font): Handle the case that ARG is a cons.
2659
c68845e0
GM
26602009-03-19 Glenn Morris <rgm@gnu.org>
2661
2662 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2663
bfa49dd1
CY
26642009-03-19 Chong Yidong <cyd@stupidchicken.com>
2665
2666 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2667
8458d4c1
KH
26682009-03-19 Kenichi Handa <handa@m17n.org>
2669
2670 * charset.c (load_charset_map_from_file): When a mapfile can't be
2671 loaded, signal an error.
2672
78e7d1fe
EZ
26732009-03-18 Eli Zaretskii <eliz@gnu.org>
2674
2675 * dired.c (Ffile_attributes): Make sure UID and GID are always
2676 positive, even if the value is too large for a positive EMACS_INT.
2677 Doc fix.
2678
2679 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2680
5da9fdfa
YM
26812009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2682
2683 * xmenu.c (xdialog_show): Move Fredisplay call ...
2684 (Fx_popup_dialog): ... here.
2685
7519c40d
SM
26862009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2687
2688 * dired.c (file_name_completion): Disable the first optimization just
2689 installed, since it is not implemented correctly.
2690
2cd298e2
SM
26912009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2692
2693 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2694 only if the entry can affect bestmatch.
2cd298e2
SM
2695 Stop the search early, as Ftry_completion already does.
2696
48d37adf
CY
26972009-03-17 Chong Yidong <cyd@stupidchicken.com>
2698
e10c9c93 2699 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2700
9286b16a
CY
27012009-03-15 Chong Yidong <cyd@stupidchicken.com>
2702
2703 * keyboard.c (parse_menu_item): Don't display remappings as menu
2704 equivalent bindings (Bug#788).
2705
f7b146dc
JR
27062009-03-15 Jason Rumney <jasonr@gnu.org>
2707
2708 * w32term.h (WM_EMACS_PAINT): New message.
2709 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2710 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2711 before passing to lisp thread. (Bug#950)
2712
f761d6b6 27132009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2714
d93f9575
CY
2715 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2716 variable as it was never reset.
2717 (ns_term_init): Remove initialization of Lisp-settable defaults
2718 and ns_expand_space.
2719 (-setPanelFromDefaultValues): Remove ns_expand_space.
2720 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2721 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2722 i.e. no additional spacing, similar to Carbon port.
2723
d93f9575
CY
2724 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2725 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2726
305018ec
JD
27272009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2728
2729 * sound.c (alsa_configure): Remove call to deprecated
2730 snd_pcm_sw_params_set_xfer_align.
2731
f761d6b6 27322009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2733
2734 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2735 after clicking in a detached tool bar.
2736 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2737
46e722a9
SM
27382009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2739
348db3dd
SM
2740 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2741 int/Lisp_Object mixup).
46e722a9 2742
a3d16f39
KH
27432009-03-13 Kenichi Handa <handa@m17n.org>
2744
2745 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2746 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2747 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2748 (set_fontset_font): Change ARG to a vector. Handle range_list in
2749 ARG correctly.
2750 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2751 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2752 the above change.
2753 (fontset_from_font): Fix previous change.
fe24f56a 2754 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2755 entry. If FONTSET is the default fontset, don't set the extra
2756 slot of the returning char-table.
2757
b066e6b6
JB
27582009-03-12 Juanma Barranquero <lekktu@gmail.com>
2759
2760 * nsfns.m (Fx_close_connection): Doc fix.
2761 (Fns_do_applescript): Reflow docstring.
2762 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2763 (Fx_display_pixel_width, Fx_display_pixel_height)
2764 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2765 Fix typos in docstrings.
2766 (Fns_set_alpha): Fix typos in error messages.
2767
d472514e 27682009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 2769
d472514e 2770 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
2771 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2772 were used for such events.
2773
d472514e
JB
2774 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2775 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 2776
d472514e 2777 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
2778 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2779
fb930676
KH
27802009-03-11 Kenichi Handa <handa@m17n.org>
2781
ff85581a
KH
2782 * font.h (font_open_by_spec): Extern it.
2783
c50b7e98
KH
2784 * font.c (font_open_by_spec): New function.
2785 (font_open_by_name): Use font_open_by_spec.
2786
fb930676
KH
2787 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2788 fontset of the frame.
2789
2790 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2791 modify the default font of frames that use this fontset.
2792 (num_auto_fontsets): New variable.
2793 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2794 name. Be sure to set FONTSET_ASCII to the correct font name.
2795 (update_auto_fontset_alist): New function.
2796
df4e8455
JB
27972009-03-11 Juanma Barranquero <lekktu@gmail.com>
2798
2799 * makefile.w32-in: Update dependencies.
2800
0a375797
AR
28012009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2802
2803 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2804
61313fa3
SM
28052009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2806
2807 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2808
b55103fb
CY
28092009-03-10 Chong Yidong <cyd@stupidchicken.com>
2810
2811 * lread.c (Feval_buffer): Doc fix.
2812
dde2559c
KH
28132009-03-09 Kenichi Handa <handa@m17n.org>
2814
2815 * charset.c (Qfile_name_handler_alist): Extern it.
2816 (load_charset_map_from_file): Temporarily bind
2817 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2818
df4e8455 28192009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2820
47f588bb
GM
2821 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2822 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2823
4ddf94bd
AR
28242009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2825
4c9bdfc2
AR
2826 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2827 (x_set_window_size): Change back to calculated method of setting
2828 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
2829 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2830 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2831
fe41ae9e
AR
2832 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2833
4c9bdfc2
AR
2834 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2835 accelerator in parens under GNUstep.
2836
825d0875
KH
28372009-03-06 Kenichi Handa <handa@m17n.org>
2838
2839 These changes are to detect incorrect composition sequence without
f3b3be74 2840 looking ahead the source. (Bug#2370)
825d0875
KH
2841
2842 * coding.h: Include "composite.h".
2843 (enum compisition_state): New enum.
2844 (struct compisition_status): New struct.
2845 (struct iso_2022_spec): New member cmp_status.
2846 (struct emacs_mule_spec): New struct.
2847 (struct coding_system): New members ctext_extended_segment_len and
2848 embedded_utf_8. Change the union member
2849 spec.emacs_mule_full_support to spec.emacs_mule.
2850
2851 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2852 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 2853 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
2854 (ADD_COMPOSITION_DATA): New arg nbytes.
2855 (emacs_mule_char): New arg cmp_status.
2856 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2857 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2858 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2859 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2860 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2861 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2862 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2863 (EMACS_MULE_COMPOSITION_END): New macro.
2864 (emacs_mule_finish_composition): New function.
2865 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2866 (decode_coding_emacs_mule): Avoid long looking ahead while
2867 handling composition.
2868 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2869 (ENCODE_COMPOSITION_RULE): New macro.
2870 (finish_composition): New function.
2871 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2872 (DECODE_COMPOSITION_START): New implementation.
2873 (DECODE_COMPOSITION_END): Likewise.
2874 (STORE_COMPOSITION_RULE): New macro.
2875 (decode_coding_iso_2022): Avoid long looking ahead while handling
2876 composition, CTEXT extended segment, and embedded UTF-8.
2877 (setup_coding_system): For a coding of type iso-2022, reset
2878 CODING_ISO_EXTSEGMENT_LEN (coding) and
2879 CODING_ISO_EMBEDDED_UTF_8 (coding).
2880 (get_translation): Delete arguments last_block, from_nchars,
2881 to_nchars. Callers changed.
2882 (produce_chars): Don't modify charbuf. Adjusted for the change of
2883 get_translation.
98a326f7 2884 (produce_composition): Adjust for the new annotation sequence.
825d0875 2885 (handle_composition_annotation): Likewise.
98a326f7 2886 (consume_chars): Adjust for the change of get_translation.
825d0875 2887
ccbc4452
AR
28882009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2889
4ddf94bd 2890 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 2891
988a7ddb
KH
28922009-03-05 Kenichi Handa <handa@m17n.org>
2893
2894 * font.c (font_select_entity): New function.
2895 (font_find_for_lface): Use font_select_entity to select a font.
2896
2897 * fontset.c (fontset_find_font): If a font found without
a8a3728b 2898 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
2899 font with C restriction.
2900
98a326f7 29012009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 2902
be1bce46 2903 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 2904
10ea2b82
JR
29052009-03-04 Jason Rumney <jasonr@gnu.org>
2906
2c93b248 2907 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 2908 characters that have already been read. (Bug#2569)
2c93b248 2909
10ea2b82
JR
2910 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2911 Log an error message if check_image_size failed.
2912 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 2913 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 2914
71a0c011
EZ
29152009-03-02 Eli Zaretskii <eliz@gnu.org>
2916
2917 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2918 when decoding process output.
2919
2f63bba8
RS
29202009-03-01 Richard M Stallman <rms@gnu.org>
2921
2922 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2923
2924 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2925
0a9564cb
EZ
29262009-02-28 Eli Zaretskii <eliz@gnu.org>
2927
2928 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2929 (decode_coding_emacs_mule, decode_coding_iso_2022)
2930 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2931 (decode_coding_raw_text, decode_coding_charset)
2932 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2933 Honor inhibit-eol-conversion. (Bug #2186)
2934
449148b3
JR
29352009-02-28 Jason Rumney <jasonr@gnu.org>
2936
2937 * coding.c (detect_coding_charset): If not checking latin extra,
2938 fail on characters between 0x80 and 0xA0. (Bug#2354)
2939
a4aee864
EZ
29402009-02-28 Eli Zaretskii <eliz@gnu.org>
2941
2942 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 2943 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 2944
d88bee5a
GM
29452009-02-27 Glenn Morris <rgm@gnu.org>
2946
2947 * callint.c (Finteractive): Doc fix.
2948
a808f22d
KH
29492009-02-27 Kenichi Handa <handa@m17n.org>
2950
2951 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2952
caf8d60c
CY
29532009-02-27 Chong Yidong <cyd@stupidchicken.com>
2954
2955 * font.c (font_style_to_value): Set value for unknown symbols to
2956 100 instead of 255.
b61137ea
CY
2957 (weight_table, slant_table, width_table): Treat "unspecified" as
2958 the default value.
caf8d60c 2959
1a0de25c
JB
29602009-02-26 Juanma Barranquero <lekktu@gmail.com>
2961
2962 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2963
8fc45744
JB
29642009-02-25 Juanma Barranquero <lekktu@gmail.com>
2965
107bd7d1
JB
2966 * lread.c (Fload): Stop checking Vloads_in_progress and signal
2967 error as soon as a recursive load is detected.
8fc45744 2968
f097e223
AR
29692009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2970
2971 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
2972 before caching.
2973
8810a12f
KH
29742009-02-24 Kenichi Handa <handa@m17n.org>
2975
2976 * fontset.c (fontset_find_font): Fix the condition for checking
2977 unavailable font.
2978
2c7d1565
GM
29792009-02-24 Glenn Morris <rgm@gnu.org>
2980
2981 * xfaces.c (Finternal_set_font_selection_order): Remove leading
2982 whitespace that confuses documentation.
2983
a20878b6
MB
29842009-02-23 Miles Bader <miles@gnu.org>
2985
2986 * process.c (Flist_system_processes, Fprocess_attributes)
2987 (syms_of_process): Rename `system-process-attributes' to
2988 `process-attributes'.
2989
b3b58c01
AS
29902009-02-22 Andreas Schwab <schwab@linux-m68k.org>
2991
1b3b981b
AS
2992 * coding.h (struct coding_system): Make safe_charsets a pointer to
2993 unsigned char.
2994 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
2995 being 255.
2996 (SAFE_CHARSET_P): Likewise.
2997 (setup_iso_safe_charsets): Properly setup safe_charsets.
2998 (Fdefine_coding_system_internal): Likewise.
2999 (setup_coding_system): Likewise. Remove unneeded casts.
3000 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3001 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3002 unneeded casts.
3003
b3b58c01
AS
3004 * insdel.c (del_range_2): Don't modify gap contents when called
3005 from decode_coding_object. (Bug#1809)
3006
0b6f228c
CY
30072009-02-21 Chong Yidong <cyd@stupidchicken.com>
3008
3009 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3010 Qfont_object.
3011 (Ftype_of): Recognize font objects.
3012
3013 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3014
3015 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3016 moved to data.c.
3017
52f8870b
AR
30182009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3019
3020 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3021 async_iconified. Based on a patch by Christian Lynbech
3022 <christian.lynbech@tieto.com>.
3023 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3024
7087d5e9
GM
30252009-02-20 Glenn Morris <rgm@gnu.org>
3026
3027 * syntax.c (Fskip_chars_forward): Fix doc typo.
3028
41d2ceef
CY
30292009-02-20 Chong Yidong <cyd@stupidchicken.com>
3030
3031 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3032
1a3b7ca6
CY
30332009-02-19 Chong Yidong <cyd@stupidchicken.com>
3034
3035 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3036
73cce38d
KH
30372009-02-19 Kenichi Handa <handa@m17n.org>
3038
3039 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3040 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3041
a51092ee
DN
30422009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3043
3044 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3045
c423ecca
KH
30462009-02-18 Kenichi Handa <handa@m17n.org>
3047
3048 * font.c (font_check_otf_features): Fix handling of `nil' element.
3049 (Ffont_spec): Describe :lang and :otf in the docstring.
3050
4c1958f4
AS
30512009-02-16 Andreas Schwab <schwab@suse.de>
3052
3053 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3054 string.
3055
5704f39a
KH
30562009-02-16 Kenichi Handa <handa@m17n.org>
3057
3058 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3059 (Bug#1723)
5704f39a 3060
8f0085aa
CY
30612009-02-14 Chong Yidong <cyd@stupidchicken.com>
3062
a057d86a 3063 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3064
3065 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3066 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3067
aff01dd9
EZ
30682009-02-14 Eli Zaretskii <eliz@gnu.org>
3069
3070 * msdos.c (MAX_SCREEN_BUF): New macro.
3071 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3072 Encode the entire run of glyphs sharing the same face, instead of
3073 doing that one glyph at a time (fixes a bug with displaying
3074 double-size characters).
3075
ba301db3
AR
30762009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3077
3078 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3079
3080 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3081 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3082 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3083
3084 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3085 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3086
51d861de
SM
30872009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3088
3089 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3090 invisible areas.
3091
7fed8996
JR
30922009-02-12 Jason Rumney <jasonr@gnu.org>
3093
631ea4fb
JR
3094 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3095 (add_font_entity_to_list): Call check_face_name even when family
3096 is unspecified.
3097
cb4a3e42
JR
3098 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3099 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3100 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3101
7fed8996 3102 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3103 raster fonts. (Bug#2219)
7fed8996 3104
895416e3
KH
31052009-02-12 Kenichi Handa <handa@m17n.org>
3106
3107 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3108 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3109 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3110 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3111 (find_automatic_composition): While looking forward and backward,
3112 check static composition. Fix where to stop looking forward.
3113 (composition_adjust_point): Fix checking of static composition.
3114 (Fcomposition_get_gstring): Pay attention to
1dacf998 3115 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3116
3117 * lisp.h (fast_looking_at): Extern it.
3118
3119 * search.c (fast_looking_at): New function.
3120
51d861de 3121 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3122 <struct glyph>.u.cmp.to.
3123 (append_composite_glyph): Likewise.
3124
51d861de 3125 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3126 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3127 composition.
51d861de 3128 (append_composite_glyph): Adjust for the change of
895416e3
KH
3129 <strcut glyph>.u.cmp.to.
3130
8510724d
JB
31312009-02-11 Juanma Barranquero <lekktu@gmail.com>
3132
3133 * casetab.c (init_casetab_once):
3134 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3135 * font.c (font_update_lface):
3136 * fontset.c (Fnew_fontset):
3137 * ftfont.c (ftfont_drive_otf):
3138 * xfont.c (xfont_open):
3139 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3140
294fa707
SM
31412009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3142
3143 * fileio.c (Fwrite_region): !NILP -> CONSP.
3144
b5bfebec
AS
31452009-02-10 Andreas Schwab <schwab@suse.de>
3146
3147 * process.c (send_process): Properly relocate pointer into data
adab88bd 3148 when using encoded data. (Bug#2272)
b5bfebec 3149
cb84a2be
KH
31502009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3151
3152 * coding.c (detect_coding_charset): Fix previous change.
3153
89e09428
JR
31542009-02-08 Jason Rumney <jasonr@gnu.org>
3155
3156 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3157 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3158
4470a277
AS
31592009-02-07 Andreas Schwab <schwab@suse.de>
3160
3161 * unexelf.c (unexec): Fix error message.
3162
3175b12a
AR
31632009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3164
3165 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3166 when modal window is active. (Bug #2152)
3175b12a
AR
3167 (applicationShouldTerminate:): Remove now-unneeded while loop
3168 around NSRunAlertPanel.
3169
3170 * nsmenu.m (popupSession): New file-global variable.
3171 (pop_down_menu): End the popupSession before closing dialog.
3172 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3173 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3174 don't query NSApp for events (just sleep instead).
3175
8434d0b8
EZ
31762009-02-07 Eli Zaretskii <eliz@gnu.org>
3177
51d861de
SM
3178 * coding.c (syms_of_coding) <translation-table-for-input>:
3179 Modify doc string to discourage use for character code unification.
8434d0b8 3180
aa82edfd
CY
31812009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3182
3183 * atimer.c (run_timers): Update pending_atimers.
3184
2d283c7c
CY
31852009-02-06 Chong Yidong <cyd@stupidchicken.com>
3186
eb306cab
CY
3187 * image.c (svg_load_image): Fix last change.
3188
2d283c7c
CY
3189 * xfns.c (Fx_create_frame): Signal an error if no font is
3190 found (Bug#2147).
3191
4d8e170e
JB
31922009-02-05 Juanma Barranquero <lekktu@gmail.com>
3193
3194 * character.c (syms_of_character) <script-representative-chars>:
3195 Fix typo in docstring.
3196
c96169a0
AR
31972009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3198
3199 * nsmenu.m (pop_down_menu): New function.
3200 (ns_popup_dialog): Call it on unwind.
3201 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3202 call timer_check() (Bug#2154).
3203 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3204 handling_signal is set.
3205 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3206
31fd7c5c 3207 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3208
3209 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3210
3211 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3212
51d861de
SM
3213 * keyboard.c (poll_for_input_1, handle_async_input):
3214 Set handling_signal under HAVE_NS.
c96169a0 3215
aacd8ba1
GM
32162009-02-04 Glenn Morris <rgm@gnu.org>
3217
3218 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3219
4cb75c4b
KH
32202009-02-04 Kenichi Handa <handa@m17n.org>
3221
3222 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3223
3224 * charset.c (Fchar_charset): New optional arg restriction.
3225
3226 * coding.h (coding_system_charset_list): Extern it.
3227
3228 * coding.c (coding_system_charset_list): New function.
3229
3230 * composite.c: Include coding.h and termhooks.h.
3231 (composition_gstring_p): Fix for the terminal case.
3232 (composition_gstring_width): Likewise.
3233 (fill_gstring_body): Likewise.
3234 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3235 the frame.
3236 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3237 is within a composition.
867d4bb3 3238 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3239
3240 * term.c (encode_terminal_code): Fix handling of composition.
3241 (produce_composite_glyph): For static composition, get pixel_width
3242 from struct composition.
3243
826ba17e
AS
32442009-02-02 Andreas Schwab <schwab@suse.de>
3245
3246 * unexelf.c (unexec): Handle unaligned bss offset.
3247
8ad093db
AR
32482009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3249
3250 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3251 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3252
8ad093db
AR
3253 * keyboard.c (handle_interrupt): Don't call
3254 quit_throw_to_read_char() under NS.
d0a76a6e 3255
8ad093db
AR
3256 * blockinput.h: Remove NS-specific code.
3257
4d18a7a2
DN
32582009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3259
db878925
DN
3260 * dispnew.c (window_change_signal): Don't try to get the size of a
3261 suspended tty frame.
3262 * term.c (Fresume_tty): Resize if the size has changed while the
3263 tty was suspended.
3264
4d18a7a2
DN
3265 * alloc.c (mark_stack): Properly conditionalize previous change.
3266
8984df7c
JB
32672009-01-30 Juanma Barranquero <lekktu@gmail.com>
3268
3269 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3270 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3271 Remove; this code is not used on Windows.
3272
75f4f1ac
EZ
32732009-01-30 Eli Zaretskii <eliz@gnu.org>
3274
3275 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3276 EOLs that also has stray ^M characters.
3277
07a1e794
JB
32782009-01-30 Juanma Barranquero <lekktu@gmail.com>
3279
3280 * atimer.c (run_timers, alarm_signal_handler):
3281 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3282 * w32inevt.c (w32_console_read_socket):
3283 * w32term.c (w32_read_socket):
3284 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3285
a8b11cc9
CY
32862009-01-30 Chong Yidong <cyd@stupidchicken.com>
3287
3288 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3289 Initialize it as a relative filename pattern.
3290 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3291 (Fcall_process_region): Simplify temp file creation using
3292 temporary-file-directory.
3293
c279587b
EZ
32942009-01-29 Eli Zaretskii <eliz@gnu.org>
3295
3296 * msdos.c: Rename pending_signals to msdos_pending_signals.
3297 (sig_suspender, sigprocmask): Adjust.
3298
a8fe3242
CY
32992009-01-29 Chong Yidong <cyd@stupidchicken.com>
3300
3301 * keyboard.c (pending_signals): New var.
3302 (poll_for_input, input_available_signal, init_keyboard): Set it.
3303 (process_pending_signals): New function.
3304
3305 * lisp.h (QUIT): Check pending_signals instead of
3306 interrupt_input_pending. Use process_pending_signals.
3307
51d861de 3308 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3309
51d861de 3310 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3311
3312 * sysdep.c (emacs_write): Use process_pending_signals.
3313
3314 * xterm.c (XTread_socket): Update pending_signals.
3315
3316 * w32term.c (w32_read_socket): Update pending_signals.
3317
3318 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3319
6570a1c4
KH
33202009-01-29 Kenichi Handa <handa@m17n.org>
3321
3322 * xftfont.c (xftfont_has_char): New function.
3323 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3324
d72a4afa
AR
33252009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3326
3327 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3328 under GNUstep.
3329 (ns_query_color): New declaration.
3330
3331 * nsterm.m (ns_confirm_quit): New variable.
3332 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3333 (EmacsApp-applicationShouldTerminate:): Use it.
3334 (EmacsPrefsController): Let user set it.
3335 (ns_query_color): New function.
3336 (ns_defined_color): Use it.
3337 (ns_initialize): Drop.
3338 (ns_term_init): Add two lines from ns_initialize(), and set
3339 input_interrupt_mode to nil.
3340
3341 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3342 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3343
9fe78804
KH
33442009-01-28 Kenichi Handa <handa@m17n.org>
3345
3346 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3347 (fontset_get_font_group): Remember that no font-group is specified
3348 for C.
9fe78804 3349
fa57de36
CY
33502009-01-27 Chong Yidong <cyd@stupidchicken.com>
3351
930600e9
CY
3352 * fns.c (concat): Check for string overflow (bug#1787).
3353
fa57de36
CY
3354 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3355 Quadruple undo limits (bug#1501).
3356
7179ce7b
KH
33572009-01-27 Kenichi Handa <handa@m17n.org>
3358
3359 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3360 directly use GT_Get_Char_index.
3361
3362 * xftfont.c (struct xftfont_info): New member `index'.
3363
3364 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3365 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3366
5be8fcc0
CY
33672009-01-26 Kenichi Handa <handa@m17n.org>
3368
3369 * fontset.c (fontset_find_font): Fix handling of non-cons return
3370 value of fontset_get_font_group.
3371 (fontset_font): Revert last change.
3372
19ae3e61
JR
33732009-01-26 Jason Rumney <jasonr@gnu.org>
3374
3375 * w32font.c (w32font_list_internal): Return quickly if registry is
3376 unknown. Simplify final return.
3377 (add_font_entity_to_list): Break complex logic down into more
3378 manageable chunks. Move unknown registry check to
3379 w32font_list_internal.
3380
8612b71a
AR
33812009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3382
3383 Changes to remove Feval calls from GUI under NS.
3384
d8038940
JB
3385 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3386 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3387 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3388
3389 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3390 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3391 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3392 instead of NON_ASCII_KEYSTROKE_EVENT.
3393 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3394 (EmacsApp-applicationShouldTerminate:): Query user.
3395 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3396 instead of Feval.
3397
3398 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3399
3400 * keyboard.c (kbd_buffer_get_event): Check for it.
3401 (keys_of_keyboard): Define lispy keys for
3402 ns-put/unput-working-text.
3403
3404 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3405 versions.
3406 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3407
6288ae55
CY
34082009-01-25 Chong Yidong <cyd@stupidchicken.com>
3409
3410 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3411 setting current_buffer directly. (Bug#2044)
6288ae55 3412
289e7f8f
CY
34132009-01-24 Chong Yidong <cyd@stupidchicken.com>
3414
5ce87308 3415 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3416 any work. (Bug#1952, bug#1990).
5ce87308 3417
64cc3cf6 3418 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3419
b3243e6f
AR
34202009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3421
3422 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3423 (ns_no_defaults): New declaration.
3424 (main): Use it.
e0d2e69a 3425
d900b2af 3426 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3427
d900b2af 3428 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3429
d900b2af
AR
3430 * nsterm.m (ns_no_defaults): New variable.
3431 (ns_initialize): Don't read defaults when ns_no_defaults.
3432 (EmacsView-readSelectionFromPasteboard:)
3433 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3434 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3435 (ns_dumpglyphs_stretch): New function.
3436 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3437 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3438
e0d2e69a
AR
3439 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3440
3ac71f5d
CY
34412009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3442
3443 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3444 call for Sparc64.
3445
3fe53a83
AR
34462009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3447
3448 * nsfns.m:
3449 * nsgui.h:
3450 * nsmenu.m:
3451 * nsselect.m:
3452 * nsterm.h:
3453 * nsterm.m: Remove '23' comments that indicated code added during
3454 update from emacs-20 -> emacs-23.
3455
10f87c6f 34562009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3457
3458 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3459 ns_alternate_modifier. (Bug#1217)
a3b53a85 3460
c7cef62d
AR
3461 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3462 Display all shortcuts, including those w/o super modifier.
3463
575fb8bd
AR
3464 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3465
918b848b
CY
34662009-01-22 Chong Yidong <cyd@stupidchicken.com>
3467
3468 * fileio.c (Vwrite_region_post_annotation_function)
3469 (Vwrite_region_annotation_buffers): New vars.
3470 (build_annotations_unwind): Just reset
3471 Vwrite_region_annotation_buffers.
3472 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3473 Call write-region-post-annotation-function.
3474 (build_annotations): Add to Vwrite_region_annotation_buffers if
3475 buffer changes.
3476
a39e2539
AR
34772009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3478
3479 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3480 Tiger.
51d861de
SM
3481 * nsfns.m (ns_do_applescript):
3482 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3483
35ed44db
AR
34842009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3485
3486 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3487
cbe0b5bf
AR
34882009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3489
3490 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3491
6049d3a0
AR
3492 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3493
3494 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3495 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3496 handle Ctrl-tab. (Bug#1841)
3497 (ns_get_color): Use unsigned long long for scanned hex string value.
3498 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3499 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3500 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3501 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3502 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3503 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3504 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3505
d3810c21 3506 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3507 DPI. (Bug#1316)
d3810c21
AR
3508 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3509 values in onTiger section.
4c7077c3 3510
e301e634
CY
35112009-01-19 Chong Yidong <cyd@stupidchicken.com>
3512
7f82490b
CY
3513 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3514 Check return value of font_spec_from_name.
64cc3cf6 3515 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3516
3517 * font.c (font_spec_from_name): Return Qnil if font name could not
3518 be parsed.
3519 (font_parse_name): Treat a `?' character as part of an XLFD.
3520
e301e634
CY
3521 * fns.c (Fsubstring): Doc fix.
3522
1c0db158
KH
35232009-01-19 Kenichi Handa <handa@m17n.org>
3524
51d861de 3525 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3526 (ftfont_list): Likewise.
3527
acf20901
JB
35282009-01-18 Juanma Barranquero <lekktu@gmail.com>
3529
fff4e459
JB
3530 * dbusbind.c (Fdbus_register_signal):
3531 * process.c (conv_sockaddr_to_lisp):
3532 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3533
acf20901
JB
3534 * callproc.c (Fgetenv_internal): Doc fix.
3535
e7abcdfb
CY
35362009-01-16 Chong Yidong <cyd@stupidchicken.com>
3537
3538 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3539 it is not even used.
3540
b60861e6
GM
35412009-01-16 Glenn Morris <rgm@gnu.org>
3542
3543 * font.c (Ffont_variation_glyphs): Silence compiler.
3544
8db52afe
JB
35452009-01-15 Juanma Barranquero <lekktu@gmail.com>
3546
3547 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3548 Reported by David Robinow <drobinow@gmail.com>.
3549
4cddb209
KH
35502009-01-15 Kenichi Handa <handa@m17n.org>
3551
51d861de 3552 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3553
f247f67b
JR
35542009-01-14 Jason Rumney <jasonr@gnu.org>
3555
3556 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3557 never a fontset. (Bug#1562)
f247f67b 3558
f56a4450
KH
35592009-01-14 Kenichi Handa <handa@m17n.org>
3560
3561 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3562 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3563
4e99855e
CY
35642009-01-13 Chong Yidong <cyd@stupidchicken.com>
3565
3566 * font.c (font_clear_prop): If clearing the family, clear the font
3567 width index too.
3568
fff4e459 3569 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3570
24f01470
JB
35712009-01-12 Juanma Barranquero <lekktu@gmail.com>
3572
3573 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3574 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3575 functions, use sizeof.
3576
a41240a3
MR
35772009-01-12 Martin Rudalics <rudalics@gmx.at>
3578
3579 * keyboard.c (read_char): Fix case where last_nonmenu_event
3580 returned a bad value with submenus. (Bug#447)
3581
944636b8
CY
35822009-01-12 Chong Yidong <cyd@stupidchicken.com>
3583
3584 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3585 family, clear the font width index too.
3586
0dad7c6f
JR
35872009-01-11 Jason Rumney <jasonr@gnu.org>
3588
3589 * keyboard.c (cmd_error_internal): Exit when errors occur before
3590 frame creation and not in daemon mode. (Bug#1836)
3591
7c2363af
CY
35922009-01-10 Chong Yidong <cyd@stupidchicken.com>
3593
3594 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3595 of a display vector, backtrack.
3596 (try_window_reusing_current_matrix): Check glyph type before
3597 referencing charpos member.
3598
97b1b294
EZ
35992009-01-10 Eli Zaretskii <eliz@gnu.org>
3600
3601 Fix Bug #876:
3602
3603 * coding.c (inhibit_null_byte_detection): New variable.
3604 (detect_coding, detect_coding_system): Don't pay attention to null
3605 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3606 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3607 <inhibit-iso-escape-detection>: Doc fix.
3608
4624b6e3
JR
36092009-01-09 Jason Rumney <jasonr@gnu.org>
3610
3611 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3612 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3613 Only report Unicode Plane 2 fonts as unicode-sip.
3614
323b840c
CY
36152009-01-09 Chong Yidong <cyd@stupidchicken.com>
3616
51d861de
SM
3617 * xfaces.c (Fx_font_family_list): Delete function.
3618 Move compatibility version to faces.el.
323b840c 3619
51d861de 3620 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3621
eba7400d
MR
36222009-01-09 Martin Rudalics <rudalics@gmx.at>
3623
3624 * frame.c (x_set_frame_parameters): Remember requested value for
3625 fullscreen before it's reset by the parameter handler.
3626
4b09796d
GM
36272009-01-09 Glenn Morris <rgm@gnu.org>
3628
3629 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3630 (last_command_event): ... and update all users.
4b09796d
GM
3631 (last_input_char): For clarity, rename to...
3632 (last_input_event): ... and update all users.
3633 (last-command-char, last-input-char): Move to subr.el as aliases.
3634 * cmds.c, commands.h: Update for last_command_char rename.
3635
14ccea62
CY
36362009-01-08 Chong Yidong <cyd@stupidchicken.com>
3637
51d861de 3638 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3639
5f004711
JR
36402009-01-08 Jason Rumney <jasonr@gnu.org>
3641
3642 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3643 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3644 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3645 Don't declare.
fff4e459 3646 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3647 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3648
b71f6f73
KH
36492009-01-07 Kenichi Handa <handa@m17n.org>
3650
50b06221 3651 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3652 remember the coding system used for decoding in
50b06221
KH
3653 coding_system (Bug#1039).
3654
b71f6f73 3655 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3656 breaking the loop. (Bug#870)
b71f6f73
KH
3657 (decode_coding_utf_16, decode_coding_emacs_mule)
3658 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3659 (decode_coding_charset): Likewise.
3660
56f668f7
MR
36612009-01-05 Martin Rudalics <rudalics@gmx.at>
3662
3663 * frame.c (x_set_frame_parameters): Make sure height (width) get
3664 applied when fullwidth (fullheight) is set. (Bug#1522)
3665
5da9424d
JB
36662009-01-04 Juanma Barranquero <lekktu@gmail.com>
3667
3668 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3669 (utc_base): Declare as ULONGLONG, not long double.
3670 (convert_time_raw): Delete.
3671 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3672 (initialize_utc_base): New function.
3673 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3674 (convert_from_time_t): Use initialize_utc_base; compute result with
3675 64-bit arithmetic.
3676 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3677
c4605e09
EZ
36782009-01-03 Eli Zaretskii <eliz@gnu.org>
3679
9acef61c 3680 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3681 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3682 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3683 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3684 [!subprocesses]: Define.
3685 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3686 (Flist_system_processes, Fsystem_process_attributes)
3687 [!subprocesses]: Call list_system_processes and
3688 system_process_attributes instead of returning Qnil.
3689
9acef61c
JB
3690 * dosfns.c (system_process_attributes, list_system_processes):
3691 New functions.
c4605e09
EZ
3692
3693 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3694
3695 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3696 Don't use the default (no-op) implementation.
3697
8b7d0a16
JR
36982009-01-03 Jason Rumney <jasonr@gnu.org>
3699
a6d46bc1
JR
3700 * keyboard.c (parse_modifiers_uncached): Wheel events are
3701 clicks (bug#687).
3702
8b7d0a16
JR
3703 * w32term.c (x_query_colors, x_query_color): New functions.
3704
3705 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3706 (svg_load_image): Cast returned pointers from dynamically loaded
3707 functions. Eliminate W32 specific code.
3708
bfe11752
DN
37092009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3710
89e2438a
DN
3711 * nsfns.m (x_set_foreground_color, x_set_background_color)
3712 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3713 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3714 x_ prefix instead of ns_. Update references.
3715 (syms_of_nsfns): Add a FIXME comment.
3716
3717 * nsterm.m (x_set_cursor_type): New prototype.
3718 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3719
bfe11752
DN
3720 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3721 for Solaris instead of incorrectly providing Qutime and Qcutime.
3722
031da700
EZ
37232009-01-02 Eli Zaretskii <eliz@gnu.org>
3724
3725 * w32.c (process_times): Compute sum of utime and stime.
3726 (system_process_attributes): Add Qtime to the alist.
3727
3728 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3729 and add them to the alist.
3730
3731 * process.c (top level) <Qtime, Qctime>: New variables.
3732 (syms_of_process): staticpro them.
3733 (Fsystem_process_attributes): Add their documentation to the doc
3734 string.
3735
3736 * process.h: Declare Qtime and Qctime.
3737
df23bf08
JR
37382009-01-02 Jason Rumney <jasonr@gnu.org>
3739
9acef61c 3740 * image.c (Qgobject): New symbol.
df23bf08
JR
3741 (syms_of_image): Initialize it.
3742 (init_svg_functions): Load some functions from gobject library.
3743
5bbdf7aa
DN
37442009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3745
3746 * frame.c (make_terminal_frame): Remove redundant code and useless
3747 block.
3748
63136da6
AS
37492009-01-01 Andreas Schwab <schwab@suse.de>
3750
3751 * process.c (conv_sockaddr_to_lisp): Add workaround for
3752 getsockname bug on BSD.
3753
9ef69046
CY
37542009-01-01 Chong Yidong <cyd@stupidchicken.com>
3755
d6fafbe0
CY
3756 * xfns.c (x_create_tip_frame): Set border width of the X window.
3757
51d861de 3758 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3759
f9c34147
JR
37602009-01-01 Jason Rumney <jasonr@gnu.org>
3761
9acef61c 3762 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
3763 Don't block input, as per earlier xterm.c changes.
3764
f5497e45
AR
37652008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3766
3767 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3768 (ns_appkit_version_int): New function.
3769 (x-server-version): Use ns_appkit_version_int and follow 21+
3770 convention of returning 3 integers.
3771
c19cab20
KH
37722008-12-30 Kenichi Handa <handa@m17n.org>
3773
3774 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3775 (CHAR_SURROGATE_PAIR_P): New macro.
3776
3777 * font.h (struct font_driver): New member get_variation_glyphs.
3778
9acef61c 3779 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
3780 (Ffont_variation_glyphs): New function.
3781 (syms_of_font): Defsubr it.
3782
3783 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3784 ftfont_variation_glyphs.
3785 (setup_otf_gstring): New function.
3786 (ftfont_drive_otf): Use it.
3787 (ftfont_shape_by_flt): Handle variation selector.
3788 (ftfont_variation_glyphs): New function.
3789
28cd591f
MR
37902008-12-30 Martin Rudalics <rudalics@gmx.at>
3791
3792 * frame.c (Vemacs_iconified): Remove.
3793
7f714baf
JR
37942008-12-30 Jason Rumney <jasonr@gnu.org>
3795
3796 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3797 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3798
9d2d22ab
CY
37992008-12-30 Chong Yidong <cyd@stupidchicken.com>
3800
3801 * indent.c (Fvertical_motion): Don't advance iterator if we have
3802 reseated to the desired position.
3803
3804 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3805 checking for pos match.
3806
545312c2
KH
38072008-12-30 Kenichi Handa <handa@m17n.org>
3808
1ede3eb6
KH
3809 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3810 just get the low 8-bit of the code.
3811
545312c2
KH
3812 * font.c (font_intern_prop): Validate str as multibyte.
3813
bd7bbf29
DN
38142008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3815
31e0750e
DN
3816 * dispextern.h (struct face): Move lface and hash from the middle
3817 of bitfields.
3818
bd7bbf29
DN
3819 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3820
b5672e7c
DN
38212008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3822
3823 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3824 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3825 instead of intervals.h.
3826
d704470f
AS
38272008-12-26 Andreas Schwab <schwab@suse.de>
3828
3829 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3830 cons.
3831
54b33868
MR
38322008-12-26 Martin Rudalics <rudalics@gmx.at>
3833
3834 * textprop.c (Qminibuffer_prompt): New variable.
3835 (syms_of_textprop): Initialize it.
3836 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3837 in minibuffer-prompt face. (Bug#1662)
3838
40b615d6
JR
38392008-12-25 Jason Rumney <jasonr@gnu.org>
3840
3841 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3842
baae5c2d
JR
38432008-12-24 Jason Rumney <jasonr@gnu.org>
3844
3845 * ralloc.c (r_alloc_reset_variable): New function.
3846
3847 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 3848 record of what points where. (Bug#716)
baae5c2d 3849
a9051c88
DN
38502008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3851
3852 * minibuf.c (read_minibuf): Follow the non-interactive case when
3853 running as a daemon, before detaching.
3854
8b146312
AS
38552008-12-22 Andreas Schwab <schwab@suse.de>
3856
3857 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3858 * gtkutil.c (free_widget_value): Use xfree instead of free.
3859
56f2de10
MR
38602008-12-22 Martin Rudalics <rudalics@gmx.at>
3861
3862 * frame.c (delete_frame): New function derived from
3863 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3864 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3865 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3866 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3867 * frame.h: Extern delete_frame.
3868 * window.c (window_loop):
3869 * terminal.c (delete_terminal):
3870 * xterm.c (x_connection_closed):
3871 * xfns.c (Fx_hide_tip):
9acef61c 3872 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 3873
1fc200d6
JR
38742008-12-21 Jason Rumney <jasonr@gnu.org>
3875
3876 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3877 when character maps to .notdef character.
3878
5e252df2
SM
38792008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3880
3881 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3882
99b72cc4
JR
38832008-12-20 Jason Rumney <jasonr@gnu.org>
3884
3885 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 3886 a graphical frame on Windows. (Bug#1325)
99b72cc4 3887
acc49a52
JD
38882008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3889
3890 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3891
6ea15123
CY
38922008-12-20 Chong Yidong <cyd@stupidchicken.com>
3893
3894 * minibuf.c (Fread_buffer): Doc fix.
3895
b2dab6c8
JR
38962008-12-20 Jason Rumney <jasonr@gnu.org>
3897
54ea0c87 3898 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 3899 server name in UNC paths. (Bug#719)
54ea0c87 3900
b2dab6c8 3901 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 3902 charbuf. (Bug#1035)
b2dab6c8 3903
6d1921be
DN
39042008-12-19 Daniel Engeler <engeler@gmail.com>
3905
3906 * sysdep.c (serial_configure): Fix typo.
3907
53934c98
DN
39082008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3909
3910 * sysdep.c: Include alloca.h.
f4f634e8
DN
3911 (system_process_attributes): Add implementation for Solaris.
3912
3913 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 3914
06e111a6
DN
39152008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3916
3917 Reorganize implementation of Flist_system_processes and
3918 Fsystem_process_attributes. No functional changes.
3919 * process.c: Don't #include pwd.h, grp.h and limits.h.
3920 (Flist_system_processes): Just call list_system_processes.
3921 (Fsystem_process_attributes): Just call system_process_attributes.
3922 (procfs_list_system_processes, time_from_jiffies)
3923 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3924 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3925
3926 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3927 (list_system_processes): Rename from
3928 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3929 Provide a do nothing implementation.
3930 (system_process_attributes): Rename from
3931 procfs_list_system_processes.
3932 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 3933 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
3934
3935 * w32.c (list_system_processes): Rename from
3936 w32_list_system_processes.
3937 (system_process_attributes): Rename from
3938 w32_system_process_attributes.
3939
3940 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3941
3942 * process.h (w32_list_system_processes)
3943 (w32_system_process_attributes): Remove.
362654a6
JB
3944 (list_system_processes, system_process_attributes):
3945 New prototypes.
06e111a6 3946
6a705b23
KH
39472008-12-19 Kenichi Handa <handa@m17n.org>
3948
3949 * xfont.c (xfont_decode_coding_xlfd): New function.
3950 (xfont_encode_coding_xlfd): New function.
3951 (xfont_list_pattern): Decode XLFD by iso-8859-1.
3952 (xfont_list): Decode and encode XLFD by iso-8859-1.
3953 (xfont_match): Likewise.
3954 (xfont_list_family): Likewise.
3955 (xfont_open): Likewise.
3956
d66c0241 3957 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
3958 names are utf-8.
3959
d66c0241 3960 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
3961 names are utf-8.
3962
5a130941
JD
39632008-12-18 Jan Djärv <jan.h.d@swipnet.se>
3964
3965 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3966 changed.
bfd20325
JD
3967 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
3968 clicked on a detached tool bar button.
5a130941 3969
fd95644b
DN
39702008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3971
3972 * emacs.c (main): Print and error and exit when no data is read
3973 from the pipe.
3974
e6eee6ae
JR
39752008-12-17 Jason Rumney <jasonr@gnu.org>
3976
3977 * w32font.c (w32font_has_char): Always return -1.
3978
a35dd56b
KH
39792008-12-16 Kenichi Handa <handa@m17n.org>
3980
3981 * font.c (font_open_entity): Fix previous change.
3982
0e3635c2
DN
39832008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
3984
3985 * process.c: Include <limits.h>.
3986
d4835507 39872008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
3988
3989 * font.c (font_update_drivers): Fix mistake in reconstructing the
3990 driver list.
3991
39922008-12-16 Chong Yidong <cyd@stupidchicken.com>
3993
3994 * font.c (font_clear_cache): Fix format of font cache data.
3995
e2cbc401
CY
39962008-12-15 Chong Yidong <cyd@stupidchicken.com>
3997
3998 * xftfont.c (xftfont_open): Free Xft font pattern if
3999 XftFontOpenPattern fails.
4000
4001 * xterm.c (x_free_frame_resources): Remove extraneous call to
4002 free_frame_faces.
4003
b131d535
CY
40042008-12-13 Chong Yidong <cyd@stupidchicken.com>
4005
4006 * xterm.c (x_delete_display): Move xim_close_dpy call to
4007 x_delete_terminal.
4008 (x_delete_terminal): Call xim_close_dpy.
4009
e6df5336
JR
40102008-12-13 Jason Rumney <jasonr@gnu.org>
4011
4012 * w32font.c (intern_font_name): New function.
4013 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4014 (w32font_open_internal, Fx_select_font): Decode font name.
4015 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4016
4017 * w32font.h (intern_font_name): Declare new function.
4018
4019 * w32uniscribe.c (add_opentype_font_name_to_list):
4020 Use intern_font_name.
4021
20d68145
CY
40222008-12-13 Chong Yidong <cyd@stupidchicken.com>
4023
9f2554de
CY
4024 * frame.c (Fdelete_frame): Call free_font_driver_list.
4025
3d9bec9a
CY
4026 * font.c (free_font_driver_list): Implement missing function.
4027
20d68145
CY
4028 * w32term.c (w32_term_init): Don't initialize the image cache
4029 here; it will be done in init_frame_faces.
4030
4031 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4032 (struct x_display_info): Remove unused member null_pixel. New
4033 member xim_callback_data.
4034
4035 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4036 (xim_initialize): Save pointer to callback function data.
4037 (xim_close_dpy): Free callback function data. Call XCloseIM,
4038 reverting 2008-11-04 change by David Smith.
4039 (x_term_init): Don't initialize the image cache here; it will be
4040 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4041 (x_delete_display): Free x_dnd_atoms member.
4042
96f9306b
KH
40432008-12-13 Kenichi Handa <handa@m17n.org>
4044
6dec9044
JB
4045 * font.c (font_rescale_ratio): Moved from xfaces.c.
4046 Argument type changed. Handle a font-spec too.
96f9306b 4047 (font_score): Check Vface_font_rescale_alist.
6dec9044 4048 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4049
4050 * xfaces.c (font_rescale_ratio): Moved to font.c.
4051
8d5b4964
CY
40522008-12-13 Chong Yidong <cyd@stupidchicken.com>
4053
4054 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4055
e6df5336
JR
40562008-12-12 Jason Rumney <jasonr@gnu.org>
4057
4058 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4059 Vwindow_system_version to the real w32 major version.
4060
97c6058a
DN
40612008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4062
4063 * term.c (init_tty): Move setting the terminal name before the
4064 potential user: maybe_fatal.
4065
ec4e88d7
CY
40662008-12-11 Chong Yidong <cyd@stupidchicken.com>
4067
d4835507
JB
4068 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4069 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4070
b4233ec9
JR
40712008-12-11 Jason Rumney <jasonr@gnu.org>
4072
8ec71e23 4073 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4074 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4075
b4233ec9 4076 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4077 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4078
011a0143
JB
40792008-12-11 Juanma Barranquero <lekktu@gmail.com>
4080
4081 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4082
3c309f34
JB
40832008-12-11 Juanma Barranquero <lekktu@gmail.com>
4084
4085 * process.c (Fsystem_process_attributes, syms_of_process):
4086 Fix typo in name of Ssystem_process_attributes.
4087 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4088
fedc6ab5
JB
40892008-12-11 Juanma Barranquero <lekktu@gmail.com>
4090
4091 * syntax.c (Fmodify_syntax_entry): Doc fix.
4092
ba3de0e8
JB
40932008-12-10 Juanma Barranquero <lekktu@gmail.com>
4094
4095 * font.c (Ffont_spec): Move usage to end of docstring.
4096
174f1c74
JR
40972008-12-10 Jason Rumney <jasonr@gnu.org>
4098
4099 * w32font.c (Qcham): New symbol.
4100 (font_supported_scripts): Add cham, and comments for other new
4101 scripts in bitfield from OpenType spec.
9d32f818
JR
4102 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4103 contain characters beyond the bmp.
174f1c74 4104
7b649478
KH
41052008-12-10 Kenichi Handa <handa@m17n.org>
4106
4107 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4108 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4109 Qunicode_sip.
4110
2133e2d1
JB
41112008-12-10 Juanma Barranquero <lekktu@gmail.com>
4112
4113 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4114 (Fcoding_system_put): Use QCdefault_char.
4115 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4116
9af886ee
CY
41172008-12-09 Chong Yidong <cyd@stupidchicken.com>
4118
74d819eb
CY
4119 * xftfont.c (syms_of_xftfont): Fix typo.
4120
4ccfa1c0 4121 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4122
7c19d3ae
DN
41232008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4124
4125 * emacs.c (main): Close daemon_pipe on exec.
4126
567826bb
CY
41272008-12-08 Chong Yidong <cyd@stupidchicken.com>
4128
4129 * termchar.h (struct tty): New members termcap_term_buffer and
4130 termcap_strings_buffer.
4131
4132 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4133 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4134 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4135 All callers changed.
4136 (init_tty): Store termcap data and string buffers in new struct
4137 tty members termcap_term_buffer and termcap_strings_buffer.
4138 (delete_tty): Free them.
4ccfa1c0 4139 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4140
aa96c42b
SZ
41412008-12-07 Seiji Zenitani <zenitani@mac.com>
4142
4143 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4144 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4145
b7e1d896
CY
41462008-12-06 Chong Yidong <cyd@stupidchicken.com>
4147
4148 * coding.c (make_conversion_work_buffer): Disable buffer
4149 modification hooks in the work buffer.
4150
b5ec91a5
EZ
41512008-12-05 Eli Zaretskii <eliz@gnu.org>
4152
4153 * process.c (procfs_system_process_attributes): If `nread' has a
4154 negative value, assign zero to it.
4155
a5d2a52b
CY
41562008-12-05 Chong Yidong <cyd@stupidchicken.com>
4157
68c5540b 4158 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4159
7bf1bb21
KH
41602008-12-05 Kenichi Handa <handa@m17n.org>
4161
4162 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4163 second character is a combining character.
4164
2fdc7d00
EZ
41652008-12-05 Eli Zaretskii <eliz@gnu.org>
4166
4167 * process.c (procfs_system_process_attributes): Don't use cmd,
4168 cmdsize, and q without initializing them first.
4169
bf6bfba8
JR
41702008-12-04 Jason Rumney <jasonr@gnu.org>
4171
4172 * w32font.c (w32font_draw): Initialize orig_clip before getting
4173 it, and delete it when finished.
4174
a3b1a468
DN
41752008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4176
4177 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4178 case when running as a daemon before detaching.
4179
8b8be8eb
JB
41802008-12-03 Juanma Barranquero <lekktu@gmail.com>
4181
805f2638 4182 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4183
b1bde622
KH
41842008-12-03 Kenichi Handa <handa@m17n.org>
4185
e500c47d
KH
4186 * font.c (font_at): Set `multibyte' at first.
4187
ca516334
KH
4188 * coding.c (decode_coding_charset): Check type of an element of
4189 vector VALIDS.
7bf1bb21 4190 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4191
4ccfa1c0 4192 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4193 (font_for_char): Likewise.
4194
1e5ecd37
CY
41952008-12-03 Chong Yidong <cyd@stupidchicken.com>
4196
d5b01609 4197 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4198 (font_update_lface): Handle fonts with corrupted size specs,
4199 i.e. non-int and non-float.
d5b01609 4200
11e3a6e4 4201 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4202 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4203 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4204
ab06788b
CY
4205 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4206
1e5ecd37 4207 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4208 underline_minimum_offset for underline position.
1e5ecd37 4209
63c125ab
DN
42102008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4211
4212 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4213
4214 * character.c (c_string_width): Specify the type for LEN.
4215
3a8406e1
KH
42162008-12-03 Kenichi Handa <handa@m17n.org>
4217
4ccfa1c0 4218 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4219 (decode_coding_utf_8): Likewise.
4ccfa1c0 4220 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4221 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4222
651df7d9
CY
42232008-12-02 Chong Yidong <cyd@stupidchicken.com>
4224
4225 * keyboard.c (make_lispy_position): Only use PT if the selected
4226 window is current.
4227
1f625c6c
AS
42282008-12-02 Andreas Schwab <schwab@suse.de>
4229
f7741ce9
AS
4230 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4231
1f625c6c
AS
4232 * doprnt.c (doprnt1): Fix size of charbuf.
4233
92bc2678
CY
42342008-12-02 Chong Yidong <cyd@stupidchicken.com>
4235
4236 * keyboard.c (timer_check): Revert last change.
4237
93b9e8cc
JB
42382008-12-02 Juanma Barranquero <lekktu@gmail.com>
4239
4240 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4241
fd7a37d5
JB
42422008-12-01 Juanma Barranquero <lekktu@gmail.com>
4243
4244 * makefile.w32-in: Update dependencies.
4245 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4246
c115043b
AS
42472008-12-01 Andreas Schwab <schwab@suse.de>
4248
4249 * font.c (register_font_driver): Use xmalloc.
4250 (font_put_frame_data): Likewise.
4251
f5668d2a
CY
42522008-12-01 Chong Yidong <cyd@stupidchicken.com>
4253
860d96be
CY
4254 * xfaces.c (realize_x_face): Make abort condition clearer.
4255
f5668d2a
CY
4256 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4257
379c17e7
CY
42582008-11-30 Chong Yidong <cyd@stupidchicken.com>
4259
4260 * keyboard.c (timer_check): After a timer runs, ensure that the
4261 selected window's buffer is current.
4262
35f36d65
JB
42632008-11-30 Juanma Barranquero <lekktu@gmail.com>
4264
f952c61c
JB
4265 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4266 It was accidentally restored by the Unicode merge.
4267
35f36d65
JB
4268 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4269
b23077df
JB
42702008-11-29 Juanma Barranquero <lekktu@gmail.com>
4271
4272 * w32proc.c: Include "coding.h".
4273 (Fw32_short_file_name): Encode filename passed to Windows API.
4274 (Fw32_long_file_name): Encode filename passed to Windows API and
4275 decode back the result. (Bug#1433)
4276
b8ebe9dd
KH
42772008-11-29 Kenichi Handa <handa@m17n.org>
4278
8cc53f96
KH
4279 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4280 not before accessing it.
4281
b8ebe9dd
KH
4282 * charset.c (Fdefine_charset_internal): After calculating
4283 min_char, max_char, and fastmap, copy the charset structure again.
4284 (encode_char): Fix the previous change.
4285
59bc82c0
SZ
42862008-11-28 Seiji Zenitani <zenitani@mac.com>
4287
4288 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4289
4290 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4291
4292 * nsterm.m (x_set_frame_alpha): New function.
4293
32247e3d
EZ
42942008-11-27 Eli Zaretskii <eliz@gnu.org>
4295
4296 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4297
b003e5ff
JB
42982008-11-27 Juanma Barranquero <lekktu@gmail.com>
4299
4300 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4301 pointer to check_face_name.
4302
708550f5
KH
43032008-11-27 Kenichi Handa <handa@m17n.org>
4304
4305 * category.h (SET_CATEGORY_SET): Call set_category_set.
4306 (set_category_set): Extern it.
4307
4308 * category.c (hash_get_category_set): New function.
4309 (Fmodify_category_entry): Adjusted for the change of
4310 char_table_ref_and_range. Call hash_get_category_set to get a
4311 category set to store in the table.
4312
4313 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4314 Funify_charset.
4315
2ae37cf0 4316 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4317 (DECODE_CHAR): Check if the decoder vector is ready.
4318 (ENCODE_CHAR): Check if the encoder char-table is ready.
4319 (maybe_unify_char): Extern it.
4320
4321 * charset.c (Vchar_unified_charset_table): Delete it.
4322 (inhibit_load_charset_map): New variable.
4323 (temp_charset_work): New variable.
4324 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4325 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4326 New macros.
4327 (load_charset_map): Meaning of control_flag changed. If
4328 inhibit_load_charset_map is nonzero, setup a table in
4329 temp_charset_work.
4330 (load_charset): New argument control_flag.
4331 (map_charset_for_dump): New function.
4332 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4333 map_charset_for_dump.
4334 (Fdefine_charset_internal): If the charset method is MAP, load
4335 mapping tables by calling load_charset.
4336 (Funify_charset): Don't load a mapping table but directly set
4337 Vchar_unify_table.
4338 (maybe_unify_char): New function.
4339 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4340 Handle the case of inhibit_load_charset_map being nonzero.
4341 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4342 Handle the case of inhibit_load_charset_map being nonzero.
4343 (Fclear_charset_maps): Just free temp_charset_work.
4344 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4345 variable.
4346
4347 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4348 change of char_table_ref_and_range.
4349 (char_table_ref_and_range): Change the meaning of argument FROM
4350 and TO. Now the caller must provide initial values for *FROM
4351 and *TO.
4352
4353 * fontset.c (fontset_add): Adjusted for the change of
4354 char_table_ref_and_range.
4355 (fontset_get_font_group): Likewise.
4356 (Ffontset_info): Likewise.
4357
4358 * keymap.c (describe_vector): Adjusted for the change of
4359 char_table_ref_and_range. For char-table, put boundary between
4360 non-ASCII and 8-bit characters.
4361
4362 * print.c (print_object): For bool-vector, delete unnecessary
4363 check of ASCII_BYTE_P.
4364
9196133b
JR
43652008-11-26 Jason Rumney <jasonr@gnu.org>
4366
4367 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4368 leading in font height. (Bug#879)
9196133b 4369
9f688acf
GM
43702008-11-26 Glenn Morris <rgm@gnu.org>
4371
4372 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4373 redefinition with ifdef. (Bug#1383)
4374
90d19aff
AR
43752008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4376
4377 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4378
4ccfa1c0 43792008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4380
4381 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4382 New EmacsView methods.
4383 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4384 Fixes bug #1048,1357,1414.
4385
43862008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4387
4388 Fix bug #1362.
4389 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4390 is not an indexed color.
4391 * nsterm.m (free_indexed_color): Add argument checking.
4392 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4393
e7d5ecb3
CY
43942008-11-24 Chong Yidong <cyd@stupidchicken.com>
4395
4396 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4397 Document confirm-after-completion value for
4398 minibuffer-completion-confirm.
4399
c285743c
JR
44002008-11-24 Jason Rumney <jasonr@gnu.org>
4401
4402 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4403 warning.
4404
b0857706
JR
44052008-11-23 Jason Rumney <jasonr@gnu.org>
4406
4407 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4408 restored before returning.
4409
4410 * w32font.c (check_face_name): New function.
4411 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4412 fonts. (Bug#642)
b0857706 4413
ee50ff07
MR
44142008-11-22 Martin Rudalics <rudalics@gmx.at>
4415
4416 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4417 confirm-nonexistent-file-or-buffer in doc-string.
4418
b8ff72fa
SM
44192008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4420
4421 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4422 Fix copy/paste typo. Add checks.
4423
cee53ed4
KH
44242008-11-21 Kenichi Handa <handa@m17n.org>
4425
4426 * coding.c (detect_coding_iso_2022): Reject invalid composition
4427 sequence.
4428 (DECODE_COMPOSITION_START): If the current source is the last
4429 block, and the current composition doesn't end, regard this
4430 sequence as invalid.
4431 (decode_coding_iso_2022): Handle invalid composition sequence.
4432
f6ef1e65
MR
44332008-11-20 Martin Rudalics <rudalics@gmx.at>
4434
4435 * window.c (coordinates_in_window): Don't return
4436 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4437 line when the window is not the rightmost one. (Bug#1372)
4438
e08b1705
MR
44392008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4440
4441 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4442
ad98e89f
EZ
44432008-11-15 Eli Zaretskii <eliz@gnu.org>
4444
4445 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4446 and bright_bg if noninteractive is non-zero.
4447
fb098a4b
CY
44482008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4449
4450 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4451 x_draw_glyph_string_background.
4452
4453 * w32term.c (x_draw_glyph_string): Likewise.
4454
ce952b6e
CY
44552008-11-15 Chong Yidong <cyd@stupidchicken.com>
4456
4457 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4458 the next glyph string once past the overhang width.
4459
4460 * nsterm.m (ns_draw_glyph_string): Likewise.
4461
4462 * w32term.c (x_draw_glyph_string): Likewise.
4463
26ea7079
CY
44642008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4465
4466 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4467 double file close.
4468
1c33c906
MR
44692008-11-14 Martin Rudalics <rudalics@gmx.at>
4470
4471 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4472 dedicated status of window before attempting to display another
4473 buffer in it.
4474
8fc29035
JB
44752008-11-14 Juanma Barranquero <lekktu@gmail.com>
4476
4477 * msdos.c (Fmsdos_long_file_names):
4478 (syms_of_msdos) <dos-unsupported-char-glyph>:
4479 * dosfns.c (Fint86): Fix typos in docstrings.
4480
55fb4286
EZ
44812008-11-14 Eli Zaretskii <eliz@gnu.org>
4482
4483 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4484
3fda0315
KY
44852008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4486
4487 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4488
7e849c17
CY
44892008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4490
4491 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4492
4493 * frame.h: Negative alpha means "don't touch".
4494
4495 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4496
4497 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4498
b9fd67bd
DN
44992008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4500
4501 * hftctl.c:
4502 * chpdef.h:
4503 * acldef.h: Remove files used only for systems no longer supported.
4504
4505 * Makefile.in: Fix .o alphabetical ordering.
4506 (hftctl.o): Remove dependency, file removed.
4507 (keymap.o, print.o): Depend on charset.h.
4508
d5998e03
KH
45092008-11-10 Kenichi Handa <handa@m17n.org>
4510
2ae37cf0 4511 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4512
be70e183
CY
45132008-11-08 Chong Yidong <cyd@stupidchicken.com>
4514
4515 * dired.c (file_name_completion): If completion_ignore_case is
4516 enabled, ignore case when checking completion-regexp-list.
4517
7cf94eac
EZ
45182008-11-08 Eli Zaretskii <eliz@gnu.org>
4519
4520 * vm-limit.c (get_lim_data): Fix last change.
4521
ee107a89
KH
45222008-11-08 Kenichi Handa <handa@m17n.org>
4523
4524 * character.c (Fget_byte): New function.
4525 (syms_of_character): Defsubr Fget_byte.
4526
5fd15622
CY
45272008-11-07 Chong Yidong <cyd@stupidchicken.com>
4528
4529 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4530 cursor position is valid after scrolling.
4531
13d62fad
JB
45322008-11-06 Juanma Barranquero <lekktu@gmail.com>
4533
4534 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4535
a1dd2936
GM
45362008-11-06 Glenn Morris <rgm@gnu.org>
4537
4538 * xterm.c (handle_one_xevent): Don't let popup menus cause
4539 mouse-autoselect-window related window switching. (Bug#1261)
4540
860cd236
CY
45412008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4542
4543 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4544
653a3150
AS
45452008-11-04 Andreas Schwab <schwab@suse.de>
4546
4547 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4548
870f5cac
CY
45492008-11-03 Chong Yidong <cyd@stupidchicken.com>
4550
4551 * xfns.c (Fx_wm_set_size_hint): New function.
4552
1e02f3cb
MR
45532008-11-03 Martin Rudalics <rudalics@gmx.at>
4554
4555 * textprop.c (Fprevious_single_char_property_change): Return 0
4556 when there's no change in a string. (Bug#1301)
4557
e630dfc6
MR
45582008-11-02 Martin Rudalics <rudalics@gmx.at>
4559
4560 * frame.c (do_switch_frame): New argument NORECORD passed to
4561 Fselect_window.
4562 (Fselect_frame): New argument NORECORD passed to
4563 do_switch_frame.
4564 (Fset_frame_selected_window): New argument NORECORD passed to
4565 Fselect_frame.
4566 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4567 in call of do_switch_frame.
4568 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4569 Handle NORECORD argument in call of Fselect_frame.
4570 * lisp.h (do_switch_frame, Fselect_frame)
4571 (Fset_frame_selected_window): Adjust declarations.
4572 * window.c (select_frame_norecord): New function.
4573 (run_window_configuration_change_hook): Use it and call
4574 Fselect_frame with NORECORD set.
4575 (Fselect_window): Pass NORECORD to Fselect_frame.
4576 (Fset_window_configuration): Handle NORECORD argument in call of
4577 do_switch_frame.
4578 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4579 Fset_frame_selected_window.
4580 * keyboard.c (command_loop_1): Handle NORECORD in call of
4581 Fselect_frame (currently ifdefd).
4582
9020b223
GM
45832008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4584
4585 * emacs.c (USAGE2): Untabify.
4586
793ffee8
SM
45872008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4588
4589 * composite.c (fill_gstring_header): Fix copy/paste typo.
4590
ab6d1131
MR
45912008-10-31 Martin Rudalics <rudalics@gmx.at>
4592
4593 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4594 (Fother_window): Rename argument and rewrite doc-string.
4595 (select_window_norecord): Fix return value. (Bug#1276)
4596
601a9cf1
JB
45972008-10-30 Juanma Barranquero <lekktu@gmail.com>
4598
4599 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4600 new frames overriding foreground for tooltips. Based on similar patch
4601 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4602
813b0652
CY
46032008-10-29 Chong Yidong <cyd@stupidchicken.com>
4604
4605 * emacs.c (Fdaemon_initialized): Initialize nfd.
4606
4414f58f
MR
46072008-10-29 Martin Rudalics <rudalics@gmx.at>
4608
4609 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4610 (Fwindow_text_height): Clarify doc-strings.
4611 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4612 doc-string of window-scroll-functions.
4613
ecdcaa09
RS
46142008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4615
4616 * category.c (syms_of_category): Fix typo in docstring.
4617
23fe745a
JB
46182008-10-28 Juanma Barranquero <lekktu@gmail.com>
4619
4620 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4621 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4622 Fix typos in docstrings.
4623
ff808935
DN
46242008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4625
4626 * emacs.c (daemon_pipe): Make non-static.
4627 (IS_DAEMON): Move definition ...
4628 * lisp.h (IS_DAEMON): ... here.
4629 (daemon_pipe): Declare.
4630 (is_daemon): Remove.
4631 * dispnew.c (init_display): Use IS_DAEMON.
4632
fc012771
SM
46332008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4634
4635 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4636 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4637
4638 * emacs.c (is_daemon): Remove.
4639 (main): Don't set is_daemon.
4640 (IS_DAEMON): New macro.
4641 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4642 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4643 parent exits.
4644 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4645
d8bdbe6f
CY
46462008-10-27 Chong Yidong <cyd@stupidchicken.com>
4647
d1a072bf
CY
4648 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4649 over-sized glyph, draw it with the default glyph width.
4650
e2e325aa
CY
4651 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4652 glyph, draw it with the default glyph width.
4653
4654 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4655 glyph, draw it with the default glyph width.
4656
d8bdbe6f
CY
4657 * xdisp.c (try_scrolling): When computing the distance from the
4658 scroll margin to PT, try moving some distance past the window
4659 bottom before giving up.
4660
7bfac547
MR
46612008-10-27 Martin Rudalics <rudalics@gmx.at>
4662
4663 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4664 (Fset_window_buffer): Explain in doc-string that a window can be
4665 "strongly" dedicated to its buffer.
4666
4ff029f6
DN
46672008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4668
4669 * emacs.c (daemon_name): New variable.
4670 (main): Deal with --daemon=SERVER_NAME.
4671 (Fdaemonp): Return a name if one was passed to --daemon.
4672
5790ef40
DN
46732008-10-26 Romain Francoise <romain@orebokech.com>
4674
f9bd0df9 4675 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4676 (main): Create a pipe before forking, make the parent exit only after
4677 the child has closed its end of the pipe. Move closing the
4678 descriptors ...
4679 (Fdaemon_initialized): ... here. New function.
4680
f5385255
SM
46812008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4682
4d632321
SM
4683 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4684 the previous unoptimized table.
4685
f5385255
SM
4686 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4687 the distinction between non-nil and non-t value of `dedicated'.
4688
6c56a0f3
CY
46892008-10-25 Chong Yidong <cyd@stupidchicken.com>
4690
4691 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4692 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4693
fec89261
MR
46942008-10-25 Martin Rudalics <rudalics@gmx.at>
4695
4696 * window.c (Fget_buffer_window, Fdelete_windows_on)
4697 (Freplace_buffer_in_windows): Make buffer argument optional and
4698 rename to buffer_or_name.
4699
34fcddd0
CY
47002008-10-24 Chong Yidong <cyd@stupidchicken.com>
4701
f5385255
SM
4702 * xdisp.c (handle_single_display_spec, handle_display_prop):
4703 Undo 2005-05-16 change.
34fcddd0
CY
4704 (handle_stop): Pop iterator if it's loaded with an empty string.
4705 (get_overlay_strings_1): Don't save iterator if it's loaded with
4706 an empty string (bug#1201).
4707
064766f2
KH
47082008-10-24 Kenichi Handa <handa@m17n.org>
4709
4710 * ftfont.c (ftfont_otf_features): Fix previous change.
4711 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4712 calling ftfont_otf_features.
4713
f9bd0df9 47142008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4715
4716 * font.c (font_match_p): Fix for the case that a vector of
4717 characters is in script-representative-chars.
4718
1dae9197
MA
47192008-10-24 Michael Albinus <michael.albinus@gmx.de>
4720
4721 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4722 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4723 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4724 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4725 macro. (Bug#1186).
4726
f9bd0df9 47272008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4728
4729 * s/sol2-10.h: New file.
4730
878a4584
JB
47312008-10-23 Juanma Barranquero <lekktu@gmail.com>
4732
4733 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4734 poor beast has survived 9+ years and the jump from xterm.c!).
4735
cd265ca6
MR
47362008-10-23 Martin Rudalics <rudalics@gmx.at>
4737
4738 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4739 Reword doc-string.
f5385255 4740 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4741
472a4dc9
JB
47422008-10-23 Juanma Barranquero <lekktu@gmail.com>
4743
4744 * character.c (syms_of_character) <script-representative-chars>:
4745 <unicode-category-table>: Doc fixes.
4746
159bd5a2
NF
47472008-10-23 Noah Friedman <friedman@splode.com>
4748
4749 * coding.c (make_conversion_work_buffer): Check that
4750 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4751 Fget_buffer_create.
4752
49f9c344
KH
47532008-10-23 Kenichi Handa <handa@m17n.org>
4754
4755 * font.c (font_add_log): Check the values of extra properties.
4756
12bb3111
MR
47572008-10-22 Martin Rudalics <rudalics@gmx.at>
4758
4759 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4760 Reword doc-string.
4761 (Fset_window_parameter): Use NILP.
4762 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 4763 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 4764
bbeb4e99
JB
47652008-10-22 Juanma Barranquero <lekktu@gmail.com>
4766
4767 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4768
47692008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
4770
4771 * nsfns.m (ns_appkit_version): New function.
4772 (x-server-version): Use it.
4773 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4774 (x-server-vendor): Don't check_ns().
4775
4776 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4777
a9b555d3
JB
47782008-10-22 Juanma Barranquero <lekktu@gmail.com>
4779
4780 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4781 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4782
4626499f
KH
47832008-10-22 Kenichi Handa <handa@m17n.org>
4784
e3681952
KH
4785 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4786 scripts.
4787
4626499f
KH
4788 * category.c (word_boundary_p): Check scripts instead of charset.
4789 Handle nil value in word-separating-categories and
4790 word-combining-categories.
4791 (syms_of_category): Fix docstrings of word-separating-categories
4792 and word-combining-categories.
4793
1560f91a
EZ
47942008-10-21 Eli Zaretskii <eliz@gnu.org>
4795
4796 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4797 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4798
f4668441
MR
47992008-10-21 Martin Rudalics <rudalics@gmx.at>
4800
4801 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4802 Rename arg "buffer" to "buffer_or_name".
4803 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4804 it optional.
4805 (no_switch_window): Remove since the return value is not used.
a9b555d3 4806 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4807 Consider window as dedicated when Fwindow_dedicated_p returns a
4808 non-nil value.
4809 * lisp.h: Remove prototype for no_switch_window.
4810
fd75ddb2
JD
48112008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4812
4813 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4814 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4815
07295713
KH
48162008-10-21 Kenichi Handa <handa@m17n.org>
4817
4818 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4819 check Vlatin_extra_code_table.
4820
712adc82
EZ
48212008-10-20 Eli Zaretskii <eliz@gnu.org>
4822
4823 * fileio.c (Fset_file_modes): Doc fix.
4824
f549eb0b
MA
48252008-10-19 Michael Albinus <michael.albinus@gmx.de>
4826
4827 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4828 in arrays.
4829
aac0c6e3
MR
48302008-10-19 Martin Rudalics <rudalics@gmx.at>
4831
4832 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4833 Mention kill-buffer in doc-string.
4834 (Fset_window_buffer): Reinsert tem check removed in last commit.
4835 (Fenlarge_window, Fshrink_window): Have argument names and
4836 doc-string follow Elisp manual more closely.
4837
48382008-10-18 Eli Zaretskii <eliz@gnu.org>
4839
4840 * fileio.c (Fset_file_modes): Doc fix.
4841
48422008-10-18 Martin Rudalics <rudalics@gmx.at>
4843
4844 * window.c (Fwindow_width, Fset_window_start)
4845 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
4846 (Fdelete_windows_on, Freplace_buffer_in_windows):
4847 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
4848 (Fwindow_dedicated_p): Make window argument optional.
4849 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4850 (Fset_window_buffer): Respect any non-nil dedicated value for
4851 window. Rename "buffer" argument to "buffer_or_name".
4852
48532008-10-18 Ulrich Mueller <ulm@gentoo.org>
4854
4855 * m/sh3.h: New file, machine description for SuperH.
4856
48572008-10-17 Martin Rudalics <rudalics@gmx.at>
4858
4859 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4860
48612008-10-17 Kenichi Handa <handa@m17n.org>
4862
4863 * ftfont.c (ftfont_otf_features): Fix indexing
4864 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4865
48662008-10-16 Magnus Henoch <mange@freemail.hu>
4867
4868 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4869 (Fdbus_call_method_asynchronously): Ditto.
4870 This change makes C-h f display the argument list.
4871
48722008-10-16 Chong Yidong <cyd@stupidchicken.com>
4873
4874 * fileio.c (Fexpand_file_name): Doc fix.
4875
4876 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4877 of :foreground and :background equivalent to unspecified (20.x
4878 compatibility).
4879
48802008-10-15 Eli Zaretskii <eliz@gnu.org>
4881
4882 * buffer.c (syms_of_buffer): Doc fix.
4883
48842008-10-14 Kenichi Handa <handa@m17n.org>
4885
4886 * font.c (font_clear_prop): When clearing font width, clear the
4887 average width field too.
4888
48892008-10-12 Andreas Schwab <schwab@suse.de>
4890
4891 * ftfont.c (ftfont_shape_by_flt): Make static.
4892 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4893
4894 * font.c: Don't include <m17n-flt.h>.
4895
48962008-10-10 Eli Zaretskii <eliz@gnu.org>
4897
4898 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4899
49002008-10-09 Eli Zaretskii <eliz@gnu.org>
4901
4902 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4903 away code.
4904
49052008-10-09 Chong Yidong <cyd@stupidchicken.com>
4906
4907 * dispnew.c (update_text_area): Avoid looping due to large glyph
4908 overhangs (bug#1070).
4909
49102008-10-09 Kenichi Handa <handa@m17n.org>
4911
4912 * fontset.c (face_for_char): If face->fontset is negative, just
4913 return ascii_face.
4914
f5385255
SM
4915 * font.c (font_delete_unmatched): Fix previous change.
4916 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
4917
49182008-10-09 Martin Rudalics <rudalics@gmx.at>
4919
4920 * frame.c (Fraise_frame): On text-only terminals select frame in
4921 order to make it visible. (Bug#1061)
4922
49232008-10-08 Chong Yidong <cyd@stupidchicken.com>
4924
4925 * fontset.c (fontset_find_font): Check frame validity.
4926
49272008-10-07 Chong Yidong <cyd@stupidchicken.com>
4928
a9b555d3 4929 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
4930 (xg_display_close): Allow Emacs to close all displays (bug#985).
4931
49322008-10-06 Andreas Schwab <schwab@suse.de>
4933
f5385255 4934 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
4935
49362008-10-06 Chong Yidong <cyd@stupidchicken.com>
4937
f5385255 4938 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 4939
a9b555d3 4940 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
4941
4942 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4943 during initialization.
4944
49452008-10-04 Eli Zaretskii <eliz@gnu.org>
4946
4947 * xdisp.c (redisplay_internal): If frame switched, redisplay the
4948 whole thing on MSDOS frames as well as on a TTY.
4949
4950 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4951 well as for TTY.
4952 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4953 well as on a TTY.
4954
4955 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4956 as well as for TTY.
4957
4958 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4959
4960 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4961 MSDOS frames as well.
4962
49632008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4964
4965 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4966 correct arguments.
b71ac3dd 4967 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
4968
49692008-10-03 Glenn Morris <rgm@gnu.org>
4970
4971 * emacs.c (USAGE1): Add --daemon.
4972
49732008-10-02 Eli Zaretskii <eliz@gnu.org>
4974
4975 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
4976 100, so it's in percents as advertised.
4977
49782008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4979
4980 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
4981 (ns_output.current_cursor, ns_output.desired_cursor)
4982 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
4983 (FRAME_NEW_CURSOR_COLOR): Remove.
4984
4985 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 4986 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
4987 enumeration (HOLLOW_BOX_CURSOR, etc.).
4988
4989 * nsterm.m (ns_frame_rehighlight): Remove commented code.
4990 (draw_window_cursor): Simplify code.
f5385255
SM
4991 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
4992 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 4993 updates manually.
a9b555d3
JB
4994 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
4995 Use core Emacs cursor types.
aac0c6e3 4996
b8ff72fa 4997 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
4998
49992008-10-02 Martin Rudalics <rudalics@gmx.at>
5000
5001 * process.c (Faccept_process_output): Fix doc-string.
5002
50032008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5004
5005 * gmalloc.c (__sbrk): Also define for uClibc.
5006
5007 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5008 for uClibc.
5009
50102008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5011
5012 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5013 styles.
5014 (nsfont_open): Reenable the cache.
5015
50162008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5017
5018 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5019 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5020
50212008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5022
5023 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5024 a suspended terminal.
5025
50262008-09-30 Michael Albinus <michael.albinus@gmx.de>
5027
5028 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5029
50302008-09-30 Eli Zaretskii <eliz@gnu.org>
5031
5032 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5033
50342008-09-30 Chong Yidong <cyd@stupidchicken.com>
5035
5036 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5037 in a continued line coincides with a line beginning.
5038
50392008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5040
5041 * nsfont.m (nsfont_trait_distance): Fix bug.
5042 (nsfont_list): Return a list rather than a vector (syncs with Handa
5043 changes of 2008-05-14).
5044 (nsfont_open): Improve logging.
5045
50462008-09-29 Andreas Schwab <schwab@suse.de>
5047
5048 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5049
50502008-09-28 Martin Rudalics <rudalics@gmx.at>
5051
5052 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5053 name as char-resolve-modifiers.
5054 Reported by: Markus Triska <markus.triska@gmx.at>
5055
50562008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5057
5058 * dispnew.c (init_display): Return earlier when running as a daemon.
5059
50602008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5061
5062 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5063
50642008-09-27 Eli Zaretskii <eliz@gnu.org>
5065
5066 * composite.c (Fcomposition_get_gstring)
5067 (Fcompose_region_internal, Fcompose_string_internal)
5068 (Ffind_composition_internal): Doc fix.
5069 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5070 (syms_of_composite) <auto-composition-function>: Doc fix.
5071 (syms_of_composite) <composition-function-table>: Doc fix.
5072
50732008-09-25 Chong Yidong <cyd@stupidchicken.com>
5074
5075 * search.c (wordify): New argument for lax word-ends.
5076 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5077
50782008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5079
5080 * lisp.h (is_daemon): Declare.
5081 * dispnew.c (init_display): Do not try to initialize the terminal
5082 when running as a daemon.
5083
50842008-09-22 Chong Yidong <cyd@stupidchicken.com>
5085
5086 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5087 x_display_pixel_height.
5088
50892008-09-22 Martin Rudalics <rudalics@gmx.at>
5090
5091 * undo.c (record_point): Don't call Fundo_boundary for first
5092 change. (Bug#731)
5093
50942008-09-22 Juanma Barranquero <lekktu@gmail.com>
5095
5096 * emacs.c (Fdaemonp): Doc fix.
5097
50982008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5099
5100 * emacs.c (main): Place #ifdef in the proper place.
5101
51022008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5103
5104 * emacs.c (standard_args): Add --daemon.
5105 (main): Disconnect from the terminal when --daemon is passed.
5106 (is_daemon): New variable.
5107 (Fdaemonp): New function.
5108 (syms_of_emacs): Defsubr it.
5109
51102008-09-20 Chong Yidong <cyd@stupidchicken.com>
5111
5112 * xdisp.c (get_next_display_element): Handle string display
5113 correctly when checking for the end of a box run.
5114
51152008-09-20 Glenn Morris <rgm@gnu.org>
5116
5117 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5118 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5119 (Frename_file): Avoid copying to trash if a rename involves
5120 a delete. (Bug#964).
5121
51222008-09-20 Eli Zaretskii <eliz@gnu.org>
5123
5124 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5125 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5126 frames as well as termcap frames.
5127 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5128 get_named_tty.
5129
51302008-09-19 Eli Zaretskii <eliz@gnu.org>
5131
5132 * process.c (procfs_system_process_attributes): Fix cmdline in
5133 case /proc/PID/cmdline is empty.
5134
5135 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5136 x_display_pixel_height.
5137
51382008-09-19 Juanma Barranquero <lekktu@gmail.com>
5139
5140 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5141
5142 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5143 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5144
51452008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5146
5147 * dispextern.h (struct it): Move line_wrap away from the middle of
5148 bitfields. Move voffset in struct iterator_stack_entry after the
5149 bitfields. Move tab_width near after another short.
5150
51512008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5152
5153 * frame.h (struct frame): Move alpha from the middle of bitfields.
5154
5155 * window.h (struct window): Move frozen_window_start_p after the
5156 rest of the bitfields to reduce padding.
5157
51582008-09-18 Chong Yidong <cyd@stupidchicken.com>
5159
5160 * xterm.h (x_display_info): Remove `height' and `width' members.
5161
5162 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5163
5164 * w32term.h (w32_display_info): Remove `height', `width',
5165 `height_in', and `width_in' members.
5166
b8ff72fa
SM
5167 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5168 New functions.
aac0c6e3
MR
5169 (x_calc_absolute_position): Use them.
5170 (x_term_init): Omit removed `height' and `width' members.
5171
b8ff72fa
SM
5172 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5173 New functions.
aac0c6e3
MR
5174 (w32_read_socket, x_calc_absolute_position): Use them.
5175 (w32_initialize_display_info, w32_term_init): Omit removed members
5176 of w32_display_info.
5177
b8ff72fa
SM
5178 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5179 New functions.
5180 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5181
b8ff72fa
SM
5182 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5183 New functions.
aac0c6e3
MR
5184 (x_calc_absolute_position): Use them.
5185 (x_term_init): Omit removed `height' and `width' members.
5186
5187 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5188 (compute_tip_xy):
5189 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5190 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5191 x_display_pixel_width.
5192
51932008-09-18 Kenichi Handa <handa@m17n.org>
5194
5195 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5196 (composition_compute_stop_pos): Fix handling of static composition.
5197 (Fcomposition_get_gstring): Check FROM and TO at first.
5198
51992008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5200
46e722a9 5201 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5202 mixup (YAILOM).
5203
52042008-09-17 Chong Yidong <cyd@stupidchicken.com>
5205
5206 * indent.c (Fvertical_motion): Use position reported by iterator
5207 instead of PT for determining screen motion (bug#943).
5208
52092008-09-17 Romain Francoise <romain@orebokech.com>
5210
5211 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5212
52132008-09-17 Kenichi Handa <handa@m17n.org>
5214
5215 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5216
5217 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5218 if necessary.
5219
52202008-09-16 Kenichi Handa <handa@m17n.org>
5221
5222 * coding.c (make_conversion_work_buffer): Avoid calling
5223 Fget_buffer_create if it is not necessary.
5224
52252008-09-15 Martin Rudalics <rudalics@gmx.at>
5226
5227 * window.c (Fselect_window): Don't update window_select_count and
5228 use_time when norecord is not nil.
5229
52302008-09-14 Kenichi Handa <handa@m17n.org>
5231
5232 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5233 specpdl_ptr.
5234
52352008-09-12 Kenichi Handa <handa@m17n.org>
5236
5237 * indent.c (scan_for_column): Don't handle automatic composition
5238 if the current buffer is not associated with a window.
5239
5240 * composite.c (composition_reseat_it): If the current buffer is
5241 not associated with a window, ignore the automatic composition.
5242 (find_automatic_composition): Likewise.
5243
52442008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5245
5246 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5247 (Fgpm_mouse_stop): Use it.
5248 * termhooks.h (close_gpm): Declare.
5249 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5250 connection if Gpm_GetEvent fails.
5251
5252 * window.c (set_window_buffer): Always preserve current-buffer.
5253
52542008-09-12 Glenn Morris <rgm@gnu.org>
5255
5256 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5257
52582008-09-11 Glenn Morris <rgm@gnu.org>
5259
5260 * charset.c (charset-map-path): Doc fix.
5261
52622008-09-10 Kenichi Handa <handa@m17n.org>
5263
5264 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5265
5266 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5267 compose a grapheme cluster with the preceding base glyph.
5268
5269 * composite.c (composition_compute_stop_pos): Fix previous change.
5270 Reset cmp_it->id to -1 at first.
5271
52722008-09-10 Glenn Morris <rgm@gnu.org>
5273
5274 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5275
52762008-09-09 Chong Yidong <cyd@stupidchicken.com>
5277
5278 * keyboard.c (read_key_sequence): Reapply translation maps when
5279 switching keyboards.
5280
52812008-09-09 Kenichi Handa <handa@m17n.org>
5282
5283 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5284 characters.
5285
5286 * composite.c (FORWARD_CHAR): Fix calculation
5287 of (POSITION).pos_byte.
5288 (composition_compute_stop_pos): Limit the search of composition to
5289 at most 500 characters ahead. If we reach the limit or find a
5290 newline, set cmp_it->ch to -2 and return 0.
5291 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5292
52932008-09-08 Kenichi Handa <handa@m17n.org>
5294
5295 * indent.c (Fvertical_motion): Be sure to set
5296 it_overshoot_expected if it.cmp_it.id is non-negative.
5297
52982008-09-07 Andreas Schwab <schwab@suse.de>
5299
5300 * callproc.c (Fcall_process): Don't hold references to string data
5301 across garbage collection. Move initialisation of new_argv down
5302 to avoid compiler bug.
5303
53042008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5305
5306 * process.c (Fsystem_process_attributes): Doc fix.
5307
53082008-09-07 Chong Yidong <cyd@stupidchicken.com>
5309
5310 * callproc.c (Fcall_process): Canonicalize current directory name.
5311
5312 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5313 iterator advances to the next line if the current line ends in a
5314 continued tab.
5315
53162008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5317
5318 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5319 member to point to cmp_from.
5320
5321 * xdisp.c: Doc fix for references to gidx data member.
5322
53232008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5324
5325 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5326
53272008-09-07 Kenichi Handa <handa@m17n.org>
5328
5329 * composite.c (FORWARD_CHAR): Check STOP after
5330 incrementing (POSITION).pos.
5331
53322008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5333
5334 * process.c (Fsystem_process_attributes): Doc fix.
5335
53362008-09-06 Chong Yidong <cyd@stupidchicken.com>
5337
5338 * keyboard.c (Ftop_level): Doc fix.
5339
53402008-09-06 Eli Zaretskii <eliz@gnu.org>
5341
5342 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5343 minibuffer, don't let lower part of menu invade the echo area.
5344
5345 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5346 "char *q" to access menu text and advance through it. Revert the
5347 change that displayed ">" instead of ASCII character 0x10.
5348
53492008-09-05 Eli Zaretskii <eliz@gnu.org>
5350
5351 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5352 toggle boxes and radio buttons on MS-DOS as well.
5353
53542008-09-05 Kenichi Handa <handa@m17n.org>
5355
5356 * composite.c (autocmp_chars): Check lookback count.
5357 (composition_compute_stop_pos): Set cmp_it->lookback.
5358 (composition_reseat_it): Check lookback count.
5359 (struct position_record): New struct.
5360 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5361 (find_automatic_composition): New function.
5362 (composition_adjust_point): Use find_automatic_composition.
5363
5364 * dispextern.h (struct composition_it): New member lookback.
5365
53662008-09-02 Chong Yidong <cyd@stupidchicken.com>
5367
5368 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5369 if moving by a single line.
5370
53712008-09-02 Andreas Schwab <schwab@suse.de>
5372
5373 * xterm.c (x_delete_display): Fix merge error.
5374
5375 * fileio.c (Fexpand_file_name): Remove unused variables.
5376
53772008-09-02 Eli Zaretskii <eliz@gnu.org>
5378
5379 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5380 storage on all platforms, not just on DOS_NT.
5381
53822008-09-02 Jason Rumney <jasonr@gnu.org>
5383
b8ff72fa
SM
5384 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5385 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5386
53872008-09-01 Chong Yidong <cyd@stupidchicken.com>
5388
5389 * xfaces.c (Finternal_set_alternative_font_family_alist)
5390 (Finternal_set_alternative_font_registry_alist): Properly copy
5391 entire alist structure.
5392
53932008-09-01 Kenichi Handa <handa@m17n.org>
5394
d66c0241 5395 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5396 representative chars of the script is a vector.
d66c0241
JB
5397 (ftfont_list): Handle the case where the representative chars of
5398 the script is a vector.
aac0c6e3
MR
5399
5400 * character.c (syms_of_character): Docstring of
5401 script-representative-chars fixed.
5402
54032008-08-31 Eli Zaretskii <eliz@gnu.org>
5404
5405 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5406 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5407 the menu. Allocate larger buffer for `text', to account for
5408 possible ^C characters.
5409
54102008-08-31 Martin Rudalics <rudalics@gmx.at>
5411
5412 * xdisp.c (prepare_menu_bars): Don't call
5413 Vwindow_size_change_functions with arg Qt.
5414
54152008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5416
5417 * font.h (font_range):
5418 * fileio.c (report_file_error):
46e722a9
SM
5419 * composite.c (composition_update_it): Yet another int/Lisp_Object
5420 mixup (YAILOM).
aac0c6e3
MR
5421
54222008-08-30 Glenn Morris <rgm@gnu.org>
5423
5424 * data.c (Fmake_variable_frame_local): Doc fix.
5425
5426 * frame.c (Fmodify_frame_parameters): Doc fix.
5427
54282008-08-30 Eli Zaretskii <eliz@gnu.org>
5429
5430 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5431 needed by GetTokenInformation.
5432 (w32_system_process_attributes): Check return values of all system
5433 APIs.
5434
5435 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5436 only when the state changes.
5437 (IT_update_begin, IT_update_end): Add termscript trace.
5438
5439 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5440 clipboard is unavailable. Set dst to NULL if it doesn't point to
5441 malloc'ed data.
5442 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5443 passing random values to xfree.
5444
5445 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5446 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5447
54482008-08-29 Jason Rumney <jasonr@gnu.org>
5449
5450 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5451
54522008-08-29 Eli Zaretskii <eliz@gnu.org>
5453
5454 * composite.c (fill_gstring_body): Avoid compiler warnings.
5455
5456 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5457 LGLYPH_SET_CODE to avoid compiler warnings.
5458
2ae37cf0 5459 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5460
5461 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5462
5463 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5464 LGLYPH_SET_CODE.
5465
54662008-08-29 Kenichi Handa <handa@m17n.org>
5467
5468 * fileio.c (report_file_error): Don't downcase the first character
5469 of errstring if it is still unibyte.
5470
54712008-08-29 Kenichi Handa <handa@m17n.org>
5472
5473 These changes are to re-implement the automatic composition so
5474 that it doesn't use text properties.
5475
5476 * Makefile.in (ftfont.o): Depend on composite.h.
5477 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5478
5479 * character.h (Vunicode_category_table): Extern it.
5480
5481 * character.c (Vunicode_category_table): New variable.
5482 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5483
5484 * chartab.c (optimize_sub_char_table): Perform more greedy
5485 optimization.
5486
b8ff72fa
SM
5487 * composite.h (enum composition_method):
5488 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5489 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5490 (Vcomposition_function_table): Extern it.
5491 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5492 (composition_gstring_put_cache, composition_gstring_from_id)
5493 (composition_gstring_p, composition_gstring_width)
5494 (composition_compute_stop_pos, composition_reseat_it)
5495 (composition_update_it, composition_adjust_point): Extern them.
5496 (Fcomposition_get_gstring): EXFUN it.
5497
d66c0241 5498 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5499 (Vcomposition_function_table)
5500 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5501 (gstring_hash_table, gstring_work, gstring_work_headers):
5502 New variables.
aac0c6e3
MR
5503 (gstring_lookup_cache, composition_gstring_put_cache)
5504 (composition_gstring_from_id, composition_gstring_p)
5505 (composition_gstring_width, fill_gstring_header)
5506 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5507 (composition_reseat_it, composition_update_it)
b8ff72fa 5508 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5509 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5510 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5511 Defsubr compostion_get_gstring.
5512
5513 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5514 cmp_id.
5515 (struct glyph_string): Delete the member gidx. New members
5516 cmp_id, cmp_from, and cmp_to.
5517 (enum it_method): Delete GET_FROM_COMPOSITION.
5518 (struct composition_it): New struct.
5519 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5520 Delete c, len, cmp_id, cmp_len in u.comp.
5521
5522 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5523 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5524 (enum lglyph_indices): Likewise.
b8ff72fa 5525 (font_range): Adjust extern.
aac0c6e3
MR
5526 (font_fill_lglyph_metrics): Extern it.
5527
5528 * font.c (QCf): New variable.
5529 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5530 (font_prepare_composition): Delete this function.
5531 (font_range): Type and arguments changed.
5532 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5533 (font_fill_lglyph_metrics): New function.
b8ff72fa 5534 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5535 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5536 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5537 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5538
5539 * fontset.h (font_for_char): Extern it.
5540
5541 * fontset.c (font_for_char): New function.
5542
5543 * ftfont.c: Include composite.h.
5544 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5545 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5546
5547 * indent.c: Include composite.h and dispextern.h.
5548 (check_composition): Delete this function.
5549 (scan_for_column): Handle composition by
5550 composition_compute_stop_pos, composition_reseat_it, and
5551 composition_update_it.
5552 (compute_motion): Likewise.
5553 (Fvertical_motion): Fix checking of composition.
5554
5555 * keyboard.c (adjust_point_for_property): Check composition by
5556 composition_adjust_point.
5557
b8ff72fa 5558 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5559 struct glyph_string.
5560
b8ff72fa
SM
5561 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5562 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5563 struct glyph.
5564 (produce_composite_glyph): Likewise.
5565
b8ff72fa
SM
5566 * w32term.c (x_draw_composite_glyph_string_foreground):
5567 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5568 (x_draw_glyph_string): Likewise.
5569
5570 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5571 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5572
5573 * xdisp.c: Include font.h.
5574 (it_props): Delete the entry for Qauto_composed.
5575 (init_iterator): Initialize it->cmp_it.id to -1.
5576 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5577 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5578 (handle_auto_composed_prop): Delete it.
5579 (handle_composition_prop): Handle only static composition.
5580 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5581 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5582 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5583 (pop_it): Likewise.
5584 (get_next_element): Delete next_element_from_composition.
5585 (CHAR_COMPOSED_P): New macro.
5586 (get_next_display_element): For automatic composition, get a face
5587 from the font in the glyph-string.
5588 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5589 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5590 (next_element_from_string): Check if the character at the current
5591 position is composed by CHAR_COMPOSED_P.
5592 (next_element_from_buffer): Likewise.
d66c0241
JB
5593 (next_element_from_composition): Adjust for the change of struct it.
5594 Update it->cmp_it.
b8ff72fa
SM
5595 (dump_glyph): Adjust for the change of struct glyph.
5596 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5597 it and struct glyph. Don't handle automatic composition here.
5598 (fill_gstring_glyph_string): New function.
5599 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5600 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5601 (BUILD_GSTRING_GLYPH_STRING): New macro.
5602 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5603 automatic composition.
b8ff72fa 5604 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5605 struct glyph.
b8ff72fa 5606 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5607
b8ff72fa 5608 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5609 the change of struct glyph_string.
5610 (x_draw_glyph_string): Likewise.
5611
56122008-08-29 Glenn Morris <rgm@gnu.org>
5613
5614 * buffer.c (word-wrap): Doc fix.
5615 * xdisp.c (truncate-partial-width-windows): Doc fix.
5616 Increase default to 50.
5617
56182008-08-29 Chong Yidong <cyd@stupidchicken.com>
5619
5620 * xdisp.c (update_tool_bar_unwind): New function.
5621 (update_tool_bar): Temporarily set selected frame before building
5622 tool-bar items.
5623
56242008-08-28 Michael Albinus <michael.albinus@gmx.de>
5625
5626 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5627 snprintf, respectively.
5628 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5629
56302008-08-28 Chong Yidong <cyd@stupidchicken.com>
5631
5632 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5633 LDFLAGS to GNUstep CC invocation.
5634
56352008-08-27 Chong Yidong <cyd@stupidchicken.com>
5636
5637 * indent.c (Fvertical_motion): Revert last change. Handle the
5638 general case where we are moving forward, and PT spans multiple
5639 screen lines.
5640
5641 * eval.c (find_handler_clause): Temporarily increase
5642 max-lisp-eval-depth while printing the backtrace buffer, to
5643 guarantee that help-mode code can run.
5644
56452008-08-27 Eli Zaretskii <eliz@gnu.org>
5646
5647 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5648 colors under -rv.
5649 (IT_set_frame_parameters): Don't swap foreground and background
5650 colors if `(reverse . t)' is present in the frame properties.
5651 (internal_terminal_init): Call init_frame_faces only for the
5652 initial frame.
5653
56542008-08-27 Andreas Schwab <schwab@suse.de>
5655
5656 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5657
56582008-08-27 Andreas Schwab <schwab@suse.de>
5659
5660 * search.c (search_buffer): Set char_base to zero only at the end.
5661
56622008-08-27 Kenichi Handa <handa@m17n.org>
5663
b8ff72fa 5664 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5665
56662008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5667
5668 * xterm.c (x_term_init): Temporarily hide the partially
5669 initialized terminal while calling vendor-specific-keysyms.
5670
56712008-08-26 Eli Zaretskii <eliz@gnu.org>
5672
5673 * msdos.c (internal_terminal_init): Most initializations done only
5674 once, especially initial_screen_colors[] and termscript open.
5675
56762008-08-26 Chong Yidong <cyd@stupidchicken.com>
5677
5678 * eval.c (Fcondition_case): Doc fix.
5679
5680 * widgetprv.h (EmacsFramePart): Change font member to the new font
5681 struct.
5682
5683 * widget.c: Include character.h and font.h for XSETFONT.
5684 (setup_frame_gcs): Compute X font id from font struct, just once.
5685
56862008-08-26 Eli Zaretskii <eliz@gnu.org>
5687
5688 * term.c (get_named_tty): Fix last change.
5689
56902008-08-26 Chong Yidong <cyd@stupidchicken.com>
5691
5692 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5693 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5694
56952008-08-25 Eli Zaretskii <eliz@gnu.org>
5696
5697 * frame.c (do_switch_frame): Mark previously displayed frame as
5698 obscured for FRAME_MSDOS_P frames as well.
5699
57002008-08-24 Eli Zaretskii <eliz@gnu.org>
5701
5702 * frame.c (make_terminal_frame): Initialize f->terminal,
5703 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5704 Set the top frame to newly created frame.
5705 (Fmake_terminal_frame): Reuse the_only_display_info.
5706
5707 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5708 estimating available memory.
5709
b97439ce 57102008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5711
5712 * nsterm.m (ns_draw_window_cursor): Don't call
5713 NSDisableScreenUpdates and NSEnableScreenUpdates on
5714 non-NS_IMPL_COCOA systems.
5715
57162008-08-23 Andreas Schwab <schwab@suse.de>
5717
5718 * process.c (procfs_system_process_attributes): Fix use of
5719 uninitialized variables.
5720
57212008-08-23 Eli Zaretskii <eliz@gnu.org>
5722
5723 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5724
5725 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5726 calling tty-set-up-initial-frame-faces.
5727
b8ff72fa
SM
5728 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5729 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5730
5731 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5732 addition to output_termcap.
5733
5734 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5735
5736 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5737 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5738 highlight.
5739
5740 * process.c [!subprocesses]: Define QCname.
5741 (syms_of_process): Intern and staticpro it.
5742
5743 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5744 Adjust for changes in encoding/decoding routines.
5745 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5746 encode_coding and decode_coding.
5747
b8ff72fa 5748 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5749
5750 * dosfns.c: Include frame.h before termhooks.h.
5751 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5752 variable termscript.
5753
5754 * s/msdos.h (USER_FULL_NAME): Define.
5755 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5756
5757 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5758 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5759 pw->pw_gecos.
5760
5761 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5762 SELECTED_FRAME as additional (1st) argument.
5763 (tty_read_avail_input): Handle output_msdos_raw in
5764 addition to output_termcap.
5765
5766 * msdos.c: Include frame.h before termhooks.h.
5767 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5768 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5769 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5770 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5771 (IT_set_terminal_modes, IT_reset_terminal_modes)
5772 (IT_set_frame_parameters): Use tty->termscript instead of a global
5773 variable termscript.
5774 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5775 global variable terminal_coding. Don't refer to
5776 Vnonascii_translation_table.
5777 (internal_terminal_init): Set Vwindow_system in current_kboard.
5778 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5779 Announce date and time of session start, if termscript is open.
5780 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5781 term.c:init_tty). Open termscript only of not already open.
5782 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5783 here instead of dos_ttraw. Don't initialize display if this is an
5784 initial tty. Don't set FRAME_FONT.
5785 (Vwindow_system_version): Bump to 23.
5786 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5787 is available, set up mouse_position_hook.
5788 (dos_ttraw, IT_set_terminal_modes): If called with initial
5789 terminal, do nothing.
5790 (IT_set_frame_parameters): Handle the Qtty_type frame
5791 parameter by calling internal_terminal_init.
5792 (dos_set_window_size, show_mouse_face)
5793 (clear_mouse_face, IT_note_mode_line_highlight)
5794 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5795 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5796 (initialize_msdos_display): New function.
5797 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5798 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5799 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5800 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5801 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5802 (request_sigio, unrequest_sigio): Don't define, now defined on
5803 sysdep.c.
5804 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5805
5806 * term.c [MSDOS]: Include msdos.h.
5807 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5808 conditional to DOS_NT. Allow only one call to this function in a
5809 session. Don't allocate a new struct tty_display_info; instead,
5810 reuse the_only_display_info. Call get_tty_size to get screen
5811 dimensions. Call init_baud_rate to set bad_rate.
5812 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5813 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5814 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5815 (get_tty_terminal, get_named_tty, Ftty_type)
5816 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5817 output_termcap.
b8ff72fa
SM
5818 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5819 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5820 only when subprocesses are supported.
aac0c6e3
MR
5821
5822 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5823 f->output_data.x.
5824 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5825 terminal devices.
5826
5582fbc7 5827 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
5828 x_output.
5829 (FRAME_FONT): Use output_data.tty.
5830 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
5831 (struct x_display_info): Rename from display_info. Update all users in
5832 msdos.c.
aac0c6e3 5833 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 5834 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
5835 (dos_ttraw): Update prototype.
5836
5837 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5838 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5839
58402008-08-23 Jason Rumney <jasonr@gnu.org>
5841
5842 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5843 (fn_TIFFSetDirectory): New library function used.
5844 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5845 (tiff_load): Use :index to select among multiple images. Set count
5846 property when multiple images exist.
5847 (gif_format): Use :index, not :image.
5848
58492008-08-23 Chong Yidong <cyd@stupidchicken.com>
5850
5851 * xdisp.c (try_scrolling): Check INT_MAX instead of
5852 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5853 to obtain INT_MAX.
5854
58552008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5856
5857 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5858
58592008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5860
5861 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5862 GNUstep library location.
5863
58642008-08-21 Chong Yidong <cyd@stupidchicken.com>
5865
5866 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5867 before using it.
5868
5869 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5870
58712008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5872
5873 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5874 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5875 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5876 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5877 (EmacsApp-cursor_blink_handler): Remove declaration.
5878 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5879 match 01 Feb 2008 changes in xterm.c.
5880 (ns_read_socket): Add cast to avoid warning.
5881 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5882 GNUstep.
5883
58842008-08-20 Chong Yidong <cyd@stupidchicken.com>
5885
5886 * xselect.c (x_get_foreign_selection): Return nil if desired
5887 selection could not be obtained, instead of signalling an error.
5888
58892008-08-20 David Reitter <david.reitter@gmail.com>
5890
5891 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5892 * nsterm.m: Remove ns-specific code for cursor blinking.
5893 (ns_draw_window_cursor): Clear cursor properly rather than
5894 redrawing the area. Respect width of bar cursors.
5895 These changes enable the use of generic blink-cursor-mode and
5896 generic cursor types in NS and support smooth cursor movements (do
5897 not blink off after command).
5898 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5899 Nextstep, too.
5900
59012008-08-19 Kenichi Handa <handa@m17n.org>
5902
5903 * font.c (Vfont_log_deferred): New variable.
5904 (font_add_log): Check Vfont_log_deferred.
5905 (font_deferred_log): New function.
5906
5907 * font.h (font_deferred_log): Extern it.
5908
5909 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5910 for sorting.
5911 (face_for_char): Use deferred log.
5912
59132008-08-18 Kenichi Handa <handa@m17n.org>
5914
5915 * fontset.c (face_for_char): Add font log.
5916
5917 * font.c (font_add_log): Add the font properties :script, :lang,
5918 and :otf in the log.
5919
59202008-08-17 Chong Yidong <cyd@stupidchicken.com>
5921
5922 * xdisp.c: Remove dead code.
5923 (handle_invisible_prop, next_overlay_string): Defer call to
5924 setup_for_ellipsis.
5925 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5926
59272008-08-15 Chong Yidong <cyd@stupidchicken.com>
5928
5929 * xfaces.c (lookup_derived_face): Properly handle possible zero
5930 return value of get_lface_attributes.
5931 (merge_faces): Don't tell lookup_derived_face to signal an error
5932 if face is not found.
5933
5934 * dired.c (Fdirectory_files): Doc fix.
5935
5936 * process.c (make_process): Initialize kill_without_query struct
5937 member.
5938
59392008-08-15 Eli Zaretskii <eliz@gnu.org>
5940
5941 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5942 Alternative calculation of totphys for Visual Studio 6.
5943
5944 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5945
5946 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5947 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5948 All users changed.
5949 (stat): Only root directory passed to GetDriveType. Allow RAM
5950 disk as well as local fixed disk when w32-get-true-file-attributes
5951 is set to `local'.
5952 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5953 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5954 (w32_cached_id, w32_add_to_cache): New functions.
5955 (get_name_and_id): Look account names in the cache before calling
5956 lookup_account_sid.
5957 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5958 New initialization flags.
5959 (globals_of_w32): Initialize them to zero.
5960 (w32_system_process_attributes): Use w32_cached_id and
5961 w32_add_to_cache.
5962
59632008-08-14 Lawrence Mitchell <wence@gmx.li>
5964
5965 * lread.c (Fread_char, Fread_char_exclusive): If no character
5966 event is read before timeout is reached, return nil, rather than
5967 converting to a number.
5968
59692008-08-14 Chong Yidong <cyd@stupidchicken.com>
5970
5971 * fns.c (use_dialog_box): Doc fix.
5972
5973 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
5974 on OS X.
5975
59762008-08-13 Chong Yidong <cyd@stupidchicken.com>
5977
5978 * frame.c (Qns_parse_geometry): New var.
5979 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
5980
59812008-08-11 Chong Yidong <cyd@stupidchicken.com>
5982
5983 * xdisp.c (x_produce_glyphs): Handle the case when font has no
5984 space character in calculating tabs.
5985
59862008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
5987
5988 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
5989
59902008-08-10 Glenn Morris <rgm@gnu.org>
5991
5992 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
5993 silence gcc "limited range of data type" warnings in some
5994 make_fixnum_or_float calls.
5995
59962008-08-09 Eli Zaretskii <eliz@gnu.org>
5997
5998 * w32.c (w32_system_process_attributes): If the process does not
5999 exist, return nil.
6000
6001 * w32.c: Include thelp32.h, psapi.h and coding.h.
6002 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6003 declarations.
6004 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6005 (Process32Next_Proc): New typedefs.
6006 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6007 (g_b_init_process32_next, g_b_init_open_thread_token)
6008 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6009 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6010 (g_b_init_get_process_working_set_size)
6011 (g_b_init_global_memory_status_ex): New static variables.
6012 (globals_of_w32): Initialize them.
6013 (create_toolhelp32_snapshot, process32_first, process32_next)
6014 (open_thread_token, impersonate_self, revert_to_self)
6015 (get_process_memory_info, get_process_working_set_size)
6016 (global_memory_status, global_memory_status_ex): New wrapper
6017 functions.
6018 (w32_list_system_processes, w32_system_process_attributes)
6019 (enable_privilege, restore_privilege, ltime, process_times):
6020 New functions.
6021 (convert_time_raw): New function.
6022 (convert_time): Remove conversion of FILETIME into time in 100
6023 nsec units, call convert_time_raw instead.
6024
6025 * process.h (w32_list_system_processes, w32_system_process_attributes):
6026 Add prototypes.
6027 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6028 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6029 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6030 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6031
6032 * process.c (Fsystem_process_attributes): Doc fix.
6033
60342008-08-08 Chong Yidong <cyd@stupidchicken.com>
6035
6036 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6037 a continued multi-char glyph; if so, advance to the actual glyph.
6038
60392008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6040
6041 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6042
6043 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6044 (.m.o): Use it.
6045 * config.in: Regenerate.
6046
60472008-08-07 Chong Yidong <cyd@stupidchicken.com>
6048
6049 * xdisp.c (redisplay_window): Revert last change.
6050 (try_window): Check bottom scroll margin too.
6051
60522008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6053
6054 * config.in: Regenerate.
6055
6056 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6057 -list-load-path-shadows'.
6058 (nsgui.h): Reduce number of things depending on it.
6059
60602008-08-06 Chong Yidong <cyd@stupidchicken.com>
6061
6062 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6063 instead of window-end which does the wrong thing at eob.
6064 (try_cursor_movement): Minor optimization.
6065 (redisplay_window): If scroll margin is defined, don't assume
6066 window doesn't need scrolling.
6067
60682008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6069
6070 * config.in: Regenerate.
6071
6072 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6073 (mostlyclean): Don't delete *.d under NS.
6074
6075 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6076
60772008-08-06 Kenichi Handa <handa@m17n.org>
6078
6079 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6080
60812008-08-06 Andreas Schwab <schwab@suse.de>
6082
6083 * config.in: Regenerate.
6084
60852008-08-05 Chong Yidong <cyd@stupidchicken.com>
6086
6087 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6088 forcing a window start.
6089
6090 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6091 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6092
60932008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6094
6095 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6096 argument.
6097
60982008-08-05 Juanma Barranquero <lekktu@gmail.com>
6099
6100 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6101 <scroll-down-aggressively, before-change-functions>:
6102 <after-change-functions>: Reflow docstrings.
6103
61042008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6105 Ken Raeburn <raeburn@gnu.org>
6106
6107 Dock menu customization, based on a patch by Ken Raeburn, plus some
6108 other fixes.
6109 * nsmenu.m (dockMenu): New variable.
6110 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6111
6112 * nsterm.h (dockMenu): Declare.
6113
6114 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6115 (ns_term_init): Initialize dockMenu.
6116 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6117 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6118 left.
6119
6120 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6121
61222008-08-04 Chong Yidong <cyd@stupidchicken.com>
6123
6124 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6125
6126 * config.in: Regenerate.
6127
61282008-08-04 Seiji Zenitani <zenitani@mac.com>
6129
6130 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6131
61322008-08-04 Chong Yidong <cyd@stupidchicken.com>
6133
6134 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6135
61362008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6137
6138 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6139
6140 * keyboard.h: Comment an #endif.
6141
6142 * lisp.h (have_menus_p): Adjust comment.
6143
6144 * menu.c (find_and_return_menu_selection): Fix comparison with
6145 client_data.
6146
6147 * nsmenu.m (popup_activated_flag): New variable.
6148 (popup_activated): New function.
6149 (menu-or-popup-active-p): New exported lisp definition.
6150 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6151 when popup done.
6152 (ns_popup_dialog): Set popup_activated_flag.
6153
6154 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6155 version for GNUstep (handled by conditional typedef in nsterm.m).
6156 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6157 in rgb.txt).
6158
6159 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6160
6161 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6162
6163 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6164
6165 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6166 shortcircuit if popup_activated like GTK and X toolkit.
6167
6168 * m/inter386.h: Change DARWIN to DARWIN_OS.
6169
6170 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6171 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6172 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6173 comment on NO_SOCK_SIGIO.
6174
61752008-08-03 Chong Yidong <cyd@stupidchicken.com>
6176
6177 * nsterm.m (windowDidResize): Remove stopModal call.
6178
61792008-08-03 Andreas Schwab <schwab@suse.de>
6180
6181 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6182 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6183
61842008-08-02 Chong Yidong <cyd@stupidchicken.com>
6185
6186 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6187 Don't use uninitialized pointer variable when using getrlimit.
6188
61892008-08-02 Jason Rumney <jasonr@gnu.org>
6190
6191 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6192
61932008-08-02 Eli Zaretskii <eliz@gnu.org>
6194
6195 * alloc.c (NSTATICS): Bump to 0x640.
6196
6197 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6198
6199 * lisp.h: Add prototype for directory_files_internal.
6200
6201 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6202 New functions.
6203 (syms_of_process): Defsubr them. Add initializations for various
6204 Q* symbols used in procfs_system_process_attributes.
6205 (procfs_list_system_processes, procfs_system_process_attributes)
6206 [HAVE_PROCFS]: New functions.
6207 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6208 (procfs_get_total_memory): New functions.
6209
62102008-08-01 Juanma Barranquero <lekktu@gmail.com>
6211
6212 * xfaces.c (Fx_load_color_file): Fix previous change;
6213 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6214
62152008-08-01 Michael Albinus <michael.albinus@gmx.de>
6216
6217 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6218
62192008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6220
6221 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6222
62232008-08-01 Chong Yidong <cyd@stupidchicken.com>
6224
6225 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6226
6227 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6228 define NSApplicationDelegateReplySuccess.
6229 (EmacsView -converstationIdentifier): Use long instead of
6230 NSInteger for GNUstep, since it doesn't have NSInteger.
6231
6232 * xmenu.c: Revert last change.
6233
6234 * keyboard.h: Fix last change.
6235
62362008-08-01 Juanma Barranquero <lekktu@gmail.com>
6237
6238 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6239 on Windows.
6240
62412008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6242
6243 Warning clearing and clean-up in NS port.
6244 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6245 Add prototypes.
6246 * nsgui.h (FACE_DEFAULT): Remove, unused.
6247 (XGCValues): Change colors to unsigned long.
6248 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6249 nsterm.m.
6250 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6251 (ns_list_fonts): Remove, unused.
6252 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6253 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6254 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6255 (nsfont_draw): Compare face colors to 0, not nil.
6256 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6257 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6258 (-addSubmenuWithTitle:): Use NSMenuItem class.
6259 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6260 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6261 (ns_clip_to_row): Make gc arg a BOOL.
6262 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6263 ns_clip_to_row() call.
6264 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6265 used). Cast FRAME_FONT assignments.
6266 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6267 (ns_string_to_lispmod): Change arg to const char.
6268 (ns_term_init): Use NSMenuItem class.
6269 (EmacsApp -openFile:): Move to different section of file.
6270 (EmacsApp -application:openFiles:): Don't return a value, call
6271 -replyToOpenOrPrint:.
6272 (EmacsView -keyDown:): Fix up cast.
6273 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6274 (EmacsView -menuDown:): Cast tag in call to
6275 find_and_call_menu_selection().
6276 (ns_list_fonts): Remove, unused.
6277 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6278 (ns_fontname_to_xlfd): Make static.
6279 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6280 Remove prototypes (now in keyboard.h).
6281 (next_menubar_widget_id): Remove, unused.
6282 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6283 Remove prototypes (now in keyboard.h).
6284 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6285
62862008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6287
6288 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6289 (floatfns.o): Depend on syssignal.h.
6290 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6291
6292 * systty.h: Fix previous change that removed BSD_TERMIOS.
6293 Add comments to #ifdefs.
6294
62952008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6296
6297 * w32fns.c (w32-load-color-file): Remove.
6298 (x-open-connection): Use renamed Fx_load_color_file.
6299 * xfaces.c (x-load-color-file): Add.
6300 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6301 Emacs.clr.
6302 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6303
63042008-07-31 Michael Albinus <michael.albinus@gmx.de>
6305
6306 * dbusbind.c (Fdbus_call_method_asynchronously)
6307 (Fdbus_method_error_internal): New defuns.
6308 (xd_read_message): Handle also reply messages.
6309 (Vdbus_registered_functions_table): Extend docstring.
6310
63112008-07-31 Juanma Barranquero <lekktu@gmail.com>
6312
6313 * keyboard.c (gobble_input): Fix previous change.
6314
63152008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6316
6317 * bitmaps/README:
6318 * xfns.c:
6319 * termcap.c:
6320 * term.c:
6321 * syswait.h:
6322 * systty.h:
6323 * systime.h:
6324 * syssignal.h:
6325 * sysdep.c:
6326 * process.h:
6327 * process.c:
6328 * print.c:
6329 * ndir.h:
6330 * lread.c:
6331 * keyboard.c:
6332 * getpagesize.h:
6333 * floatfns.c:
6334 * fileio.c:
6335 * emacs.c:
6336 * doc.c:
6337 * dispnew.c:
6338 * dired.c:
6339 * data.c:
6340 * callproc.c:
6341 * buffer.c:
6342 * README:
6343 * Makefile.in:
6344 * s/template.h:
6345 * s/msdos.h:
6346 * m/vax.h: Remove VMS support.
6347 * s/vms.h:
6348 * vlimit.h:
6349 * uaf.h:
6350 * temacs.opt:
6351 * param.h:
6352 * ioctl.h: Remove file.
6353
63542008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6355
6356 * s/ms-w32.h (MULTI_KBOARD): Remove.
6357 * xterm.c:
6358 * xselect.c:
6359 * xfns.c:
6360 * window.c:
6361 * w32term.c:
6362 * w32fns.c:
6363 * terminal.c:
6364 * termhooks.h:
6365 * term.c:
6366 * sysdep.c:
6367 * keyboard.h:
6368 * keyboard.c:
6369 * frame.h:
6370 * frame.c:
6371 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6372 * config.in: Regenerate.
6373
63742008-07-30 Jason Rumney <jasonr@gnu.org>
6375
6376 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6377
6378 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6379 (w32font_open_internal): Get unicode version of textmetrics.
6380 Don't enable or disable glyph indices here.
6381 (w32font_open): Disable use of glyph indices.
6382
6383 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6384
63852008-07-30 Chong Yidong <cyd@stupidchicken.com>
6386
6387 * minibuf.c (Vread_buffer_function): Doc fix.
6388
63892008-07-30 John Paul Wallington <jpw@pobox.com>
6390
6391 * minibuf.c (read_buffer_completion_ignore_case): New var.
6392 (Fread_buffer): Use it.
6393
63942008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6395
6396 * systty.h (sensemode): Remove empty #if. Remove reference to
6397 BSD_TERMIOS, unused.
6398
6399 * sysdep.c: Remove reference to DGUX.
6400 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6401
6402 * config.in: Regenerate.
6403
64042008-07-30 Jason Rumney <jasonr@gnu.org>
6405
6406 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6407
64082008-07-29 Jason Rumney <jasonr@gnu.org>
6409
6410 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6411 is populated.
6412 (uniscribe_encode_char): Always use uniscribe.
6413 Avoid using context if cache is populated.
6414
64152008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6416
6417 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6418 open menu.
6419
6420 * gtkutil.c (menu_nav_ended): Remove.
6421 (create_menus): Remove signal connect for menu_nav_ended.
6422
64232008-07-28 Chong Yidong <cyd@stupidchicken.com>
6424
6425 * xdisp.c (redisplay_window): Check return value of
6426 compute_window_start_on_continuation_line before forcing a window
6427 start.
6428
64292008-07-28 Jason Rumney <jasonr@gnu.org>
6430
6431 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6432
6433 * w32term.c (w32_enable_unicode_output, cleartype_active):
6434 Remove obsolete display options.
6435 (x_draw_glyph_string_background): Don't use old cleartype_active
6436 workaround.
6437 (w32_initialize): Remove cleartype_active initialization.
6438 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6439
64402008-07-28 Andreas Schwab <schwab@suse.de>
6441
6442 * lisp.h (init_weak_hash_tables, syms_of_font)
6443 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6444 (remove_hash_entry): Don't declare.
6445 * eval.c (maybe_call_debugger): Make static and move before use.
6446 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6447 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6448 * xterm.h (x_set_frame_alpha): Declare.
6449
64502008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6451
6452 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6453 (create_menus): Connect selection-done to menu_nav_ended.
6454
64552008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6456
6457 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6458 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6459 parameter with read of 'alpha' one.
6460 (Qns_frame_parameter): Remove.
5582fbc7 6461 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6462 (next-selection-coding-system, Vselection_coding_system)
6463 (Vnext_selection_coding_system): Drop.
6464
64652008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6466
6467 * nsfns.m (do-applescript, do_applescript): Rename to
6468 ns-do-applescript, ns_do_applescript, and move within file.
6469
64702008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6471
6472 Remove support for Mac Carbon.
6473 * mactoolbox.c:
6474 * macterm.h:
6475 * macterm.c:
6476 * macselect.c:
6477 * macmenu.c:
6478 * macgui.h:
6479 * macfns.c:
6480 * mac.c: Remove file.
6481 * s/darwin.h:
6482 * m/intel386.h:
6483 * xfaces.c:
6484 * xdisp.c:
6485 * window.c:
6486 * tparam.c:
6487 * termhooks.h:
6488 * termcap.c:
6489 * term.c:
6490 * syssignal.h:
6491 * sysselect.h:
6492 * sysdep.c:
6493 * process.c:
6494 * lread.c:
6495 * lisp.h:
6496 * keyboard.c:
6497 * image.c:
6498 * fringe.c:
6499 * frame.h:
6500 * frame.c:
6501 * fontset.c:
6502 * font.h:
6503 * font.c:
6504 * fns.c:
6505 * fileio.c:
6506 * emacs.c:
6507 * dispnew.c:
6508 * dispextern.h:
6509 * config.in:
6510 * atimer.c:
2ae37cf0 6511 * Makefile.in: Remove code for Carbon.
aac0c6e3 6512
f0131492 65132008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6514
6515 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6516
65172008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6518
6519 * macterm.h (kCGBitmapByteOrder32Host): New define for
6520 non-universal SDKs.
6521
6522 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6523 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6524
6525 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6526 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6527
65282008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6529
6530 * w32inevt.c: Include dispextern.h.
6531
65322008-07-26 Andreas Schwab <schwab@suse.de>
6533
6534 * print.c (print_object): Fix off-by-one in last change.
6535
65362008-07-25 Juanma Barranquero <lekktu@gmail.com>
6537
6538 * term.c (syms_of_term): Don't initialize default_orig_pair,
6539 default_set_foreground and default_set_background on Windows.
6540
65412008-07-25 Jason Rumney <jasonr@gnu.org>
6542
6543 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6544 ScriptItemize. Clean up return value checking. Remove unused
6545 variables.
6546 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6547 shaping engine.
6548
6549 * w32font.c (w32font_has_char): Handle the case where we can't
6550 determine the script for a character.
6551
65522008-07-25 Chong Yidong <cyd@stupidchicken.com>
6553
6554 * term.c (syms_of_term): Initialize default_orig_pair,
6555 default_set_foreground, and default_set_background.
6556
6557 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6558 clash (bug#86).
6559 (getloadavg): Callers changed.
6560
6561 * image.c (svg_load_image): Fix last change.
6562 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6563 image size is valid. Use g_object_unref instead of deprecated
6564 rsvg_handle_free to free rsvg handle.
6565 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6566
65672008-07-25 Jason Rumney <jasonr@gnu.org>
6568
6569 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6570 surrogates before looking up glyph index.
6571 (w32font_text_extents): Encode as surrogates if falling back to
6572 functions that need UTF-16 wide chars.
6573
6574 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6575 BMP as surrogates before looking up glyph index.
6576
65772008-07-25 Chong Yidong <cyd@stupidchicken.com>
6578
6579 * image.c (svg_load_image): Check for failure in return value of
6580 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6581
65822008-07-25 Jason Rumney <jasonr@gnu.org>
6583
6584 * w32font.c (Fx_select_font): Reverse sense of second arg.
6585
65862008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6587
6588 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6589 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6590
6591 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6592 (PURESIZE): Use it.
6593
65942008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6595
6596 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6597 * m/alpha.h (TEXT_END):
6598 * m/ibmrs6000.h (TEXT_END):
6599 * m/macppc.h (TEXT_END):
6600 * s/darwin.h (TEXT_END):
6601 * s/msdos.h (TEXT_END): Remove, unused.
6602 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6603 * s/cygwin.h: Remove comment.
6604
6605 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6606 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6607 * m/intel386.h (DOT_GLOBAL_START):
6608 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6609 (USG): Remove, file not used on USG platforms.
6610
6611 * Makefile.in (HAVE_X11): Remove empty #else.
6612
66132008-07-24 Andreas Schwab <schwab@suse.de>
6614
6615 * fileio.c (Finsert_file_contents): Properly adjust undo list
6616 after format conversion.
6617
66182008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6619
6620 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6621 (menu_nav_ended): Remove.
6622 (create_menus): Remove signal connect for menu_nav_ended.
6623 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6624 create_menus.
6625 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6626
66272008-07-23 Jason Rumney <jasonr@gnu.org>
6628
6629 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6630 with opened font.
6631 (w32font_open): Set font type to gdi.
6632
6633 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6634
66352008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6636
6637 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6638 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6639 defines it.
6640 * unexec.c (ADDR_CORRECT): Define unconditionally.
6641
6642 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6643
6644 * unexec.c: Remove code depending on !COFF and USG, the file is
6645 not used for such systems.
6646
6647 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6648 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6649 (LD_SWITCH_SYSTEM_1): Remove, update users.
6650
6651 * s/darwin.h (DATA_END):
6652 * m/intel386.h (DATA_END):
6653 * m/ibmrs6000.h (DATA_END):
6654 * m/alpha.h (DATA_END): Remove, unused.
6655
6656 * config.in: Regenerate.
6657 * s/ms-w32.h (subprocesses): Define unconditionally.
6658 * s/template.h (subprocesses): Update comment.
6659 * s/vms.h (subprocesses):
6660 * s/usg5-4.h (subprocesses):
6661 * s/hpux10-20.h (subprocesses):
6662 * s/gnu-linux.h (subprocesses):
6663 * s/cygwin.h (subprocesses):
6664 * s/bsd-common.h (subprocesses):
6665 * s/aix4-2.h (subprocesses):
6666 * s/darwin.h (subprocesses): Do not define, defined by default now.
6667
6668 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6669 Remove all references.
6670 (temacs): Add GNUstep specific ld flags.
6671
6672 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6673 similarly to what X does.
6674
66752008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6676
6677 * nsfns.m (x-list-fonts): Remove.
6678 (syms_of_nsfns): Drop the x-list-fonts declaration.
6679 * nsterm.m: Get rid of remaining "//" comments.
6680
66812008-07-22 Chong Yidong <cyd@stupidchicken.com>
6682
6683 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6684
6685 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6686 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6687 (Fns_own_selection_internal, Fx_disown_selection_internal)
6688 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6689
6690 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6691 ... */' style of docstrings. Doc fixes.
6692
66932008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6694
6695 * terminfo.c (UP, BC, PC): Undo previous change.
6696
6697 * nsfns.m: Rename ns prefixed functions/variables to the
6698 corresponding x versions. Update references.
6699
67002008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6701
6702 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6703
67042008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6705
6706 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6707 Remove forwarding functions.
6708 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6709 non-static.
6710 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6711 non-static.
6712 (ns_frame_parm_handlers): Use the new names.
6713 (syms_of_nsfns): Move to the end of file.
6714
6715 * nsterm.m (syms_of_nsterm): Move to the end of file.
6716
6717 * dispnew.c (init_display): Remove code for X10.
6718
67192008-07-22 Jason Rumney <jasonr@gnu.org>
6720
6721 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6722 bare drive.
6723
67242008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6725
6726 * nsterm.m (syms_of_nsterm): Remove debugging println.
6727
67282008-07-22 David Reitter <david.reitter@gmail.com>
6729
6730 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6731 Carbon implementation of the same functionality: execute arbitrary
6732 AppleScript code.
6733
67342008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6735
6736 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6737 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6738 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6739 (Fx_display_mm_height, Fx_display_mm_width)
6740 (Fx_display_backing_store, Fx_display_visual_class)
6741 (Fx_display_save_under, Fx_open_connection)
6742 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6743 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6744 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6745 (Fx_display_pixel_width, Fx_display_pixel_height)
6746 (Fx_display_usable_bounds, Fx_display_planes)
6747 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6748 ... */' style of docstrings.
6749
67502008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6751
6752 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6753 on this platform.
6754 (mips):
6755 * m/iris4d.h (mips): Do not define.
6756 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6757
6758 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6759
6760 * image.c:
6761 * nsfns.m:
6762 * nsselect.m:
6763 * nsterm.h:
6764 * nsterm.m: Rename ns prefixed functions/variables to the
6765 corresponding x versions. Update references.
6766
6767 * m/ibms390x.h (NO_REMAP): Do not undefine.
6768
6769 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6770
67712008-07-21 Chong Yidong <cyd@stupidchicken.com>
6772
6773 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6774 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6775 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6776 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6777 (Fns_display_mm_height, Fns_display_mm_width)
6778 (Fns_display_backing_store, Fns_display_visual_class)
6779 (Fns_display_save_under, Fns_open_connection)
6780 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6781 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6782 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6783 (Fns_display_pixel_width, Fns_display_pixel_height)
6784 (Fns_display_usable_bounds, Fx_display_planes)
6785 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6786
67872008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6788
6789 * print.c (print_object): Check print_depth before searching for
6790 circularities.
6791
67922008-07-21 Michael Albinus <michael.albinus@gmx.de>
6793
6794 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6795 only sprintf.
6796
67972008-07-21 Kenichi Handa <handa@m17n.org>
6798
6799 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6800
68012008-07-20 Andreas Schwab <schwab@suse.de>
6802
6803 * syntax.c (find_start_pos, find_start_value)
6804 (find_start_value_byte, find_start_begv, find_defun_start)
6805 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6806
68072008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6808
6809 * s/sol2-3.h: Insert contents of s/sol2.h.
6810 (LD_SWITCH_SYSTEM): Remove redundant definition.
6811 * s/sol2.h: Remove, unused.
6812
68132008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6814
6815 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6816
68172008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6818
6819 * Makefile.in (ns_appdir): Fix typo in find command.
6820
68212008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6822
6823 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6824
6825 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6826 added not supported anymore.
6827
6828 * s/usg5-4-2.h (LIBS_SYSTEM):
6829 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6830
6831 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6832 * s/lynxos.h (GETPGRP_NO_ARG):
6833 * s/hpux10-20.h (NO_SIOCTL_H):
6834 * s/gnu.h (GETPGRP_NO_ARG):
6835 * s/gnu-linux.h (NO_SIOCTL_H):
6836 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6837 * s/cygwin.h (GETPGRP_NO_ARG):
6838 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6839 (C_DEBUG_SWITCH): Remove duplicate definition.
6840
6841 * m/ibms390.h: Remove boilerplate comments.
6842
6843 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6844
6845 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6846 (wait_reading_process_output): Remove code for SunOS, platform not
6847 supported anymore. Use SOLARIS2 instead of sun.
6848
68492008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6850
6851 * font.c (font_open_by_name): Under NS, default lface height to zero.
6852 (font_open_for_lface): Under NS, set size based on frame fontsize.
6853 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6854 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6855
68562008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6857
6858 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6859 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6860 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6861 YES/NO.
6862 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6863 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6864 * Makefile.in (clean): Clear out build destination dir.
6865
68662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6867
6868 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6869 xterm, xselect.
6870 * lisp.h: Remove declaration of hash_remove.
6871 * nsgui.h: Remove redefinitions of hash_remove.
6872 * fns.c (hash_remove): Rename to hash_remove_from_table.
6873
68742008-07-19 Seiji Zenitani <zenitani@mac.com>
6875
6876 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6877 strdup() the family UTF8String before modifying it.
6878
68792008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6880
6881 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6882 NS_FACE_BACKGROUND with 0 instead of nil.
6883 * nsfont.m (nsfont_draw): Same.
6884
68852008-07-19 Chong Yidong <cyd@stupidchicken.com>
6886
6887 * nsfns.m (ns_set_background_color): Fix crash.
6888
68892008-07-18 Chong Yidong <cyd@stupidchicken.com>
6890
6891 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6892
68932008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6894
6895 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6896
68972008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6898
6899 * gtkutil.c: Include <config.h> instead of "config.h".
6900
6901 * lisp.h (Foverlay_buffer): Add EXFUN.
6902
6903 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6904 child process to complete child_setup. Undo 2005-09-21 change.
6905
6906 * s/darwin.h: Mention setsid after vfork.
6907
69082008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6909
6910 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6911 Depend on macgui.h.
6912
6913 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6914 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6915
6916 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6917 and f19.
6918 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6919
6920 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6921 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6922 Remove enumerators.
6923
6924 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6925 Check if FACE_FROM_ID returns NULL.
6926
69272008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6928
6929 * w32inevt.c (change_frame_size): Remove extern declaration.
6930 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6931 change_frame_size.
6932
69332008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6934
6935 * getloadavg.c: Revert last change (2008-07-15).
6936
69372008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6938
6939 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 6940 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
6941 from configure.
6942
69432008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
6944
6945 * s/sol2.h:
6946 * s/sol2-4.h: Reorganize conditionals.
6947
6948 * ecrt0.c: Remove code depending on m68000, not used anymore.
6949
6950 * fns.c (hash_remove): Make static.
6951 * lisp.h (hash_remove): Don't prototype.
6952
6953 * m/ibmrs6000.h:
6954 * m/ibms390x.h:
6955 * m/macppc.h: Remove boilerplate comments.
6956
6957 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6958 Solaris, which does not need them.
6959
6960 * m/vax.h: Remove comments about unsupported systems.
6961
6962 * s/darwin.h: Reorganize ifdefs.
6963
69642008-07-17 Andreas Schwab <schwab@suse.de>
6965
6966 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6967
69682008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
6969
6970 Use SDATA. Follow coding convention of placing operators at
6971 beginning of next line rather than end of previous line, and placing
6972 spaces around infix operators.
6973
6974 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
6975 in case it was defined already.
6976 USE @GNUSTEP_MAKEFILES@ rather than envvars.
6977 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
6978 ns_default.
6979 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
6980 Lisp_Objects.
6981 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
6982 (ns_defined_color, ns_color_to_lisp): Declare.
6983 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
6984 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
6985 it's accepted even with USE_LISP_UNION_TYPE.
6986 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
6987 (update_frame_tool_bar): Remove apparently obsolete tests for
6988 non-integerness of f->tool_bar_lines.
6989 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
6990 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
6991 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
6992 (nsfont_open): Don't confuse NULL for Qnil.
6993 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
6994 * menu.h (find_and_call_menu_selection):
6995 * menu.c (find_and_call_menu_selection): Use just int for vector size.
6996 (find_and_return_menu_selection): Always return something.
6997 * frame.h: Include dispextern.h for Display_Info.
6998 (display_x_get_resource): Declare.
6999
70002008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7001
7002 * syntax.c: Remove stdio.h include accidentally introduced in
7003 Emacs.app commit.
7004 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7005 NS_IMPL_COCOA.
7006 * keyboard.c (handle_async_input, input_available_signal): Remove
7007 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7008
70092008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7010
7011 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7012 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7013 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7014 Use SDATA.
7015
7016 * keymap.c: Remove all NS-specific code.
7017 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7018 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7019 where_is_preferred_modifier, return a different value depending on how
7020 preferred is the binding.
7021 (where_is_internal): Adjust accordingly.
7022 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7023 Adjust to new preferred_sequence_p.
7024 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7025 * keyboard.c (parse_solitary_modifier): Not static any more.
7026 * keyboard.h (parse_solitary_modifier): Declare.
7027
70282008-07-16 Andreas Schwab <schwab@suse.de>
7029
7030 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7031 of easymenu.
7032
70332008-07-16 Chong Yidong <cyd@stupidchicken.com>
7034
7035 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7036 that we don't move off the line.
7037
70382008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7039
7040 * keyboard.c (Qsuper): Remove.
7041 (parse_menu_item): Don't call where_is_internal specially for NS.
7042
70432008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7044
7045 * s/gnu-linux.h: Remove boilerplate comments.
7046
7047 * m/alpha.h (__ELF__): Consolidate conditions.
7048
7049 * m/m68k.h (linux): Use GNU_LINUX instead.
7050 Remove boilerplate comments.
7051
7052 * m/intel386.h: Undo refactoring from previous change.
7053 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7054 too, remove dead code.
7055 (linux): Use GNU_LINUX instead.
7056
70572008-07-16 Jason Rumney <jasonr@gnu.org>
7058
7059 * w32gui.h: Repeat 26 June changes lost by last change.
7060
70612008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7062
7063 * systty.h: Remove code for Aix on 386, unsupported platform.
7064
7065 * s/ms-w32.h: Remove boilerplate comments.
7066 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7067
7068 * s/gnu-linux.h (TERM): Remove support.
7069 (HAVE_SYSVIPC): Remove, unused.
7070 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7071 for this system.
7072
7073 * process.c: Remove support for IRIS, unused.
7074 Remove support for TERM, not relevant anymore.
7075
7076 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7077 used with the definition.
7078
7079 * s/aix4-2.h (static): Do not undef.
7080
7081 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7082 only used on Aix.
7083 (HAVE_SYSVIPC): Remove, unused.
7084
7085 * m/hp800.h (CANNOT_DUMP): Do not undef.
7086
7087 * m/alpha.h: Fix comment.
7088
7089 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7090 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7091 used by this configuration.
7092 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7093 * unexec.c: Remove code depending on HPUX and
7094 USG_SHARED_LIBRARIES, not used with this file. Remove code
7095 depending on IRIS, unused. Remove if 0-ed code.
7096
7097 * s/template.h: Remove comments about static.
7098
7099 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7100 Remove if 0-ed code.
7101 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7102 were the same as the default.
7103 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7104 Remove boilerplate comments.
7105 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7106 (HAVE_SYSVIPC): Remove, unused.
7107 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7108
7109 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7110 Remove boilerplate comments.
7111 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7112 Remove boilerplate comments.
7113 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7114 Remove boilerplate comments.
7115 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7116
7117 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7118 USG systems which do not use DATA_SEG_BITS.
7119 Refactor code. Remove boilerplate comments.
7120
7121 * m/ibms390.h:
7122 * m/m68k.h:
7123 * s/bsd-common.h:
7124 * s/cygwin.h:
7125 * s/darwin.h:
7126 * s/freebsd.h:
7127 * s/gnu.h:
7128 * s/msdos.h: Remove boilerplate comments.
7129
7130 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7131 do not use this file.
aac0c6e3
MR
7132 (IRIS_4D): Remove, unused.
7133
7134 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7135 do not use this file.
aac0c6e3
MR
7136 (SIGN_EXTEND_CHAR):
7137 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7138 * unexmips.c: Remove file, unused.
7139
7140 * editfns.c (Fuser_full_name): Replace the only use of
7141 USER_FULL_NAME with its value.
7142 * config.in: Regenerate.
7143
71442008-07-16 David Reitter <david.reitter@gmail.com>
7145
7146 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7147 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7148
71492008-07-16 Glenn Morris <rgm@gnu.org>
7150
7151 * emacs.c (system-type): Doc fix.
7152
71532008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7154
7155 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7156 If the cache doesn't work, let's fix it, rather than work around it.
7157
71582008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7159
7160 * Makefile.in: Correct additions for nsfont.o in last commit.
7161 * nsfont.m: New file (forgot last commit).
7162
71632008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7164
7165 * callproc.c (set_initial_environment): Initialize
7166 Vprocess_environment under CANNOT_DUMP (fixes crash when
7167 batch-compiling for bootstrap).
7168
71692008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7170 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7171
7172 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7173 fix crash due to different init order.
7174
71752008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7176
7177 Changes and additions for NeXTstep windowing system (Cocoa and
7178 GNUstep) support.
7179
7180 * Makefile.in:
7181 * config.in: Support defines and build commands for NS port.
7182 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7183 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7184 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7185 windowing.
7186 (struct face): Add synth_ital field.
7187 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7188 (init_display): Initialize Vinitial_window_system to "ns" when so
7189 compiled.
7190 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7191 (display_arg): Use under NS.
7192 (main): Under NS, allocate autorelease pool and handle command line
7193 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7194 (standard_args): Add NS-specific args.
7195 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7196 * font.c (DEFAULT_ENCODING): New variable.
7197 (font_find_for_lface): Use it.
7198 (syms_of_font): Load syms_of_nsfont under NS.
7199 * font.h: Declare nsfont_driver when compiled under NS.
7200 * fontset.c: When compiling under NS, include nsterm.h.
7201 (fontset_from_font): Autoconstruct fontset under NS.
7202 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7203 symbol, document and use it.
7204 (do_switch_frame): When for_deletion under Cocoa, add
7205 Fraise_frame(Qnil).
7206 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7207 (x_get_arg): Allow "yes" and "no" as boolean values.
7208 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7209 Qright under Cocoa.
7210 (focus-follows-mouse): Default to 0 under NS.
7211 * frame.h (enum output_method): Add output_ns.
7212 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7213 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7214 (FRAME_WINDOW_P): NS-specific definition.
7215 * fringe.c (max_used_fringe_bitmap): Make public.
7216 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7217 (getloadavg): Use NeXT code under descendant OS's.
7218 * image.c (includes and header section, x_create_bitmap_from_data)
7219 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7220 (image_background_transparent, x_clear_image_1)
7221 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7222 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7223 (x_to_xcolors, x_from_xcolors, x_disable_image)
7224 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7225 other GUIs, including XPM support using code originally written for
7226 Carbon GUI.
7227 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7228 using NS API.
7229 (image_ascent): Use font metrics macros instead of direct struct field
7230 access.
7231 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7232 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7233 Also, handle NS as GTK for menu bar purposes.
7234 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7235 toolkit where they differ.
7236 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7237 use cachelist, still needed under NS.
7238 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7239 (struct widget_value): Define it here for menu.c.
7240 * keymap.c (includes): Include modifier internals.
7241 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7242 NS.
7243 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7244 support for preferring sequences using certain modifiers, specified by
7245 the FIRSTONLY argument.
7246 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7247 under NS GNUstep implementation.
7248 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7249 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7250 * menu.c: Include nsterm.h under NS.
7251 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7252 (free_menubar_widget_tree_value, update_submenu_strings)
7253 (find_and_call_menu_selection): Treat NS as X and NT.
7254 (find_and_return_menu_selection): New function, used for popup menus.
7255 * nsgui.h:
7256 * nsterm.h:
7257 * nsfns.m:
7258 * nsimage.m:
7259 * nsmenu.m:
7260 * nsselect.m:
7261 * nsterm.m: New files.
7262 * process.c (wait_reading_process_output): Under NS, call ns_select()
7263 instead of plain select().
7264 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7265 beginning of buffer.
7266 * sysselect.h (init_process): Rename when compiling under Cocoa to
7267 avoid name conflict.
7268 * termhooks.h (display_info): Add ns_display_info to union.
7269 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7270 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7271 COCOA environment.
7272 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7273 unexec() signature. (Note, this will dump, but the resulting file
7274 crashes; unexosx is used instead; keeping around for reference and
7275 possible aid in getting dump working under GNUstep.)
7276 * w32gui.h (button_type, widget_value): Remove definitions (now in
7277 keyboard.h).
7278 * window.c: Include nsterm.h when compiling under NS.
7279 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7280 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7281 other GUI windowing systems.
7282 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7283 GTK.
7284 (x_consider_frame_title): Under NS, set icon type and frame
7285 modified-state indicator; use ns_set_name_as_filename() when using
7286 formatted title.
7287 (update_window_cursor): Make public when compiling under NS.
7288 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7289 (hourglass_atimer, Vhourglass_delay
7290 * xfaces.c (header section, init_frame_faces, clear_font_table)
7291 (defined_color, unload_color, x_face_list_fonts)
7292 (prepare_face_for_display): Add NS support parallel to other GUIs.
7293 Emulate GCs like other non-X GUIs.
7294 (split_font_name): Don't lowercase font name under NS.
7295 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7296 under NS.
7297 * s/darwin.h: Add support for compilation under NS.
7298
72992008-07-15 Jason Rumney <jasonr@gnu.org>
7300
7301 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7302 (w32_show_hourglass): Rename from show_hourglass.
7303 (w32_hide_hourglass): Rename from hide_hourglass.
7304 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7305 (Vhourglass_delay): Declare extern.
7306 (hourglass_started): Remove.
7307
7308 * xdisp.c (Vhourglass_delay): Remove static.
7309 (hourglass_started, start_hourglass, cancel_hourglass):
7310 Don't include these versions on WINDOWSNT.
7311
73122008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7313
7314 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7315 variables (formerly in xfns.c).
7316 (show_hourglass, hide_hourglass): New prototypes (same).
7317 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7318 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7319 in xfns.c).
7320 (syms_of_xdisp): Declare/initialize display-hourglass,
7321 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7322 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7323 formerly in xfns.c.
7324 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7325 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7326 (start_hourglass, cancel_hourglass): Remove.
7327 (show_hourglass, hide_hourglass): Remove prototypes and static
7328 modifiers.
7329 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7330 hourglass_atimer, hourglass_shown_p declaration/initialization.
7331 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7332 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7333 (start_hourglass, cancel_hourglass): Remove.
7334 (show_hourglass, hide_hourglass): Remove prototypes and static
7335 modifiers.
7336 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7337 hourglass_atimer, hourglass_shown_p declaration/initialization.
7338 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7339 (DEFAULT_HOURGLASS_DELAY): Remove.
7340 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7341 hourglass_shown_p declaration/initialization.
7342
73432008-07-14 Jason Rumney <jasonr@gnu.org>
7344
7345 * w32fns.c (w32_get_arg): Remove wrapper function.
7346 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7347 directly.
7348 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7349
73502008-07-14 Kenichi Handa <handa@m17n.org>
7351
7352 * xfont.c (xfont_open): Add workaround for X's bug.
7353
73542008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7355
7356 * fontset.c: Include <stdio.h> unconditionally.
7357
73582008-07-13 Michael Albinus <michael.albinus@gmx.de>
7359
7360 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7361 for filtering.
7362
73632008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7364
7365 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7366
7367 * m/macppc.h:
7368 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7369
7370 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7371 (SPECIAL_EMACS_INT):
7372 * m/ia64.h (SPECIAL_EMACS_INT):
7373 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7374 * s/gnu.h (NLIST_STRUCT):
7375 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7376 * s/gnu-linux.h (LINUX):
7377 * s/msdos.h (HAVE_FACES):
7378 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7379
7380 * systty.h:
7381 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7382 anymore.
7383
73842008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7385
7386 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7387 always defined as int.
7388
7389 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7390 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7391 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7392 * s/freebsd.h (HAVE_WAIT_HEADER):
7393 * s/bsd-common.h (HAVE_UNION_WAIT):
7394 * s/aix4-2.h (HAVE_WAIT_HEADER):
7395 * m/mips.h (HAVE_UNION_WAIT):
7396 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7397 (COFF, static): Do not define, they are undefined later in the file.
7398
7399 * process.c (update_status): Don't use a union.
7400 (status_convert):
7401 (sigchld_handler): Use int instead of WAITTYPE.
7402
74032008-07-12 Chong Yidong <cyd@stupidchicken.com>
7404
7405 * indent.c (Fvertical_motion): Restore hscroll before moving to
7406 goal column.
7407
74082008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7409
7410 * lisp.h: Remove left over code.
7411
74122008-07-11 Andreas Schwab <schwab@suse.de>
7413
7414 * lisp.h: Fix logic in last change.
7415
7416 * menu.h: New file.
7417 * menu.c: Include it.
7418 * xmenu.c: Likewise.
7419 * Makefile.in: Update dependencies.
7420
74212008-07-11 Kenichi Handa <handa@m17n.org>
7422
7423 * fontset.c (fontset_from_font): Cancel the previous change.
7424
74252008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7426
7427 * lisp.h:
7428 * w32heap.c:
7429 * emacs.c:
7430 * alloc.c: Replace all references of NO_UNION_TYPE with
7431 USE_LISP_UNION_TYPE.
7432
7433 * m/xtensa.h (NO_UNION_TYPE):
7434 * m/vax.h (NO_UNION_TYPE):
7435 * m/template.h (NO_UNION_TYPE):
7436 * m/sparc.h (NO_UNION_TYPE):
7437 * m/mips.h (NO_UNION_TYPE):
7438 * m/macppc.h (NO_UNION_TYPE):
7439 * m/m68k.h (NO_UNION_TYPE):
7440 * m/iris4d.h (NO_UNION_TYPE):
7441 * m/intel386.h (NO_UNION_TYPE):
7442 * m/ibms390x.h (NO_UNION_TYPE):
7443 * m/ibms390.h (NO_UNION_TYPE):
7444 * m/ibmrs6000.h (NO_UNION_TYPE):
7445 * m/ia64.h (NO_UNION_TYPE):
7446 * m/hp800.h (NO_UNION_TYPE):
7447 * m/arm.h (NO_UNION_TYPE):
7448 * m/amdx86-64.h (NO_UNION_TYPE):
7449 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7450 defining it the same.
7451
74522008-07-10 Chong Yidong <cyd@stupidchicken.com>
7453
7454 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7455
74562008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7457
7458 * fileio.c:
7459 * sysdep.c
7460 * systty.h:
7461 * m/ibmrs6000.h:
7462 * m/iris4d.h:
7463 * s/aix4-2.h:
7464 * s/freebsd.h:
7465 * s/gnu-linux.h:
7466 * s/hpux10-20.h:
7467 * s/hpux11.h:
7468 * s/netbsd.h:
7469 * s/sol2-3.h:
7470 * s/sol2-4.h:
7471 * s/sol2.h:
7472 * s/usg5-4.h:
7473 * s/vms.h: Remove references to unused variables.
7474
74752008-07-10 Andreas Schwab <schwab@suse.de>
7476
7477 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7478 pattern before matching the generic family.
7479
74802008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7481
7482 * unexec.c:
7483 * s/vms.h:
7484 * s/usg5-4-2.h:
7485 * s/sol2-5.h:
7486 * s/freebsd.h:
7487 * s/darwin.h: Remove dead code.
7488
7489 * m/template.h:
7490 * m/sparc.h:
7491 * m/mips.h:
7492 * m/m68k.h:
7493 * m/iris4d.h:
7494 * m/intel386.h:
7495 * m/ibms390x.h:
7496 * m/ibms390.h:
7497 * m/ia64.h:
7498 * m/hp800.h:
7499 * m/arm.h:
7500 * m/amdx86-64.h: Remove dead code and references to unused
7501 and compiler defined symbols.
7502
7503 * unexmips.c:
7504 * unexelf.c: Remove references to desupported systems.
7505
7506 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7507
7508 * m/powermac.h: Remove boilerplate comments.
7509 (NO_REMAP): Remove unused definition.
7510
7511 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7512 define them.
7513
75142008-07-10 Kenichi Handa <handa@m17n.org>
7515
7516 * xfont.c (xfont_open): Log the reason of failure.
7517
75182008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7519
7520 * fontset.c (fontset_get_font_group):
7521 * font.c (font_check_otf): Specify argument types.
7522
75232008-07-09 Kenichi Handa <handa@m17n.org>
7524
7525 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7526 non-ASCII char is found.
7527
7528 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7529 (reorder_font_vector): Change the arg preferred_family to font.
7530 Prefer the spec matching with font.
7531 (fontset_get_font_group): New function.
7532 (fontset_find_font): Change the format of an element of a realized
7533 fontset. Use fontset_get_font_group.
7534 (fontset_font): Try the current fontset, the default fontset, the
7535 fallbacks of the current fontset, and the fallbacks of the default
7536 fontset in this order.
7537 (face_for_char): Delete the shortcut to use the current font.
7538 (fontset_from_font): Don't set fonts for Latin in the fontset.
7539
7540 * font.h (font_make_object, font_match_p): Adjust prototypes.
7541
7542 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7543
7544 * font.c (font_make_object): New arg entity and pixelsize.
7545 (font_check_otf_features, font_check_otf): New functions.
7546 (font_match_p): Check :lang, :script, and :otf properties.
7547
7548 * xfont.c (xfont_open): Adjust it for the change of
7549 font_make_object.
7550 (xfont_text_extents): Fix initial setting of metrics.
7551
7552 * ftfont.c (struct ftfont_info): New member index, delete member
7553 fc_charset_idx. Make the member order compatible with struct
7554 xftfont_info.
7555 (fc_charset_table): Change charset names to registry names.
7556 (ftfont_pattern_entity): Delete the args registry and
7557 fc_charset_idx. Change the value of :font-entity property
7558 to (FONTNAME . INDEX). Always set :registry property to
7559 `iso10646-1'.
7560 (struct ftfont_cache_data): New struct.
7561 (ftfont_lookup_cache): New arg for_face.
7562 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7563 (ftfont_driver): Set the member otf_capability.
7564 (ftfont_get_charset): Adjust it for the change of
7565 fc_charset_table.
7566 (OTF_TAG_SYM): New macro.
7567 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7568 for the change of fc_charset_table.
7569 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7570 ftfont_pattern_entity. Add FC_INDEX to objset.
7571 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7572 and ftfont_pattern_entity.
7573 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7574 font_make_object, struct ftfont_info.
7575 (ftfont_has_char): Use ftfont_get_fc_charset.
7576 (ftfont_otf_features, ftfont_otf_capability): New functions.
7577 (ftfont_shape): Use ftfont_get_otf.
7578 (ftfont_text_extents): Fix initial setting of metrics.
7579
7580 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7581 member order compatible with struct ftfont_info.
7582 (xftfont_open): Add FC_CHARSET to the pattern. Set
7583 xftfont_info->ft_size. Don't unlock the face. Check BDF
7584 properties if appropriate.
7585 (xftfont_close): Unlock the face.
7586 (xftfont_anchor_point, xftfont_shape): Deleted.
7587 (syms_of_xftfont): Don't set members anchor_point and shape of
7588 xftfont_driver.
7589
7590 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7591 font_make_object.
7592
7593 * w32font.c (w32font_open): Adjust it for the change of
7594 font_make_object.
7595 (w32font_open_internal): Don't set properties of font_object here.
7596
75972008-07-08 Chong Yidong <cyd@stupidchicken.com>
7598
7599 * macfns.c (x_create_tip_frame):
7600 * w32fns.c (x_create_tip_frame):
7601 * xfns.c (x_create_tip_frame): Pass parameter argument to
7602 face-set-after-frame-default.
7603
7604 * xfaces.c (Finternal_merge_in_global_face): Save merged
7605 attributes for the default face back into the face vector.
7606
76072008-07-08 Andreas Schwab <schwab@suse.de>
7608
7609 * fontset.h: Declare fontset_from_font. Don't declare
7610 new_fontset_from_font and fontset_from_font_name.
7611 * xterm.c: Include "fontset.h".
7612 * Makefile.in (xterm.o): Update dependencies.
7613
76142008-07-08 Glenn Morris <rgm@gnu.org>
7615
7616 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7617 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7618
76192008-07-07 Chong Yidong <cyd@stupidchicken.com>
7620
7621 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7622 (x_set_frame_parameters): Don't bind it.
7623
76242008-07-07 Juanma Barranquero <lekktu@gmail.com>
7625
7626 * w32fns.c (map_w32_filename): Declare extern.
7627
76282008-07-07 Jason Rumney <jasonr@gnu.org>
7629
7630 * w32term.c (WS_EX_LAYERED): Define if not already.
7631
76322008-07-06 Chong Yidong <cyd@stupidchicken.com>
7633
7634 * xfaces.c (set_font_frame_param): Don't try to set the font
7635 parameter if it is still unspecified in the lface.
7636
76372008-07-05 Chong Yidong <cyd@stupidchicken.com>
7638
7639 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7640 face if it didn't already exist.
7641
7642 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7643
76442008-07-05 Andreas Schwab <schwab@suse.de>
7645
7646 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7647
76482008-07-05 Chong Yidong <cyd@stupidchicken.com>
7649
7650 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7651 word-wrapping.
7652 (IT_DISPLAYING_WHITESPACE): New macro.
7653 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7654 when word-wrapping. Simplify word-wrapping logic. Use correct
7655 pixel positions when saving copies of the iterator.
7656 (display_line): Use proper wrap point if the last character on a
7657 line was preceded by whitespace.
7658
76592008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7660
7661 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7662
76632008-07-04 Kenichi Handa <handa@m17n.org>
7664
7665 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7666
7667 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7668
76692008-07-02 Jason Rumney <jasonr@gnu.org>
7670
7671 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7672 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7673
7674 * xdisp.c (next_element_from_display_vector): Move assignment out
7675 of if statement.
7676
76772008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7678
7679 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7680
7681 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7682 (syms_of_fileio): Initialize and export them.
7683 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7684
7685 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7686 (Fsystem_move_file_to_trash): New function.
7687 (syms_of_w32fns): Export it to lisp.
7688
76892008-07-01 Jason Rumney <jasonr@gnu.org>
7690
7691 * w32font.c (w32font_text_extents): Don't count overhang as part
7692 of width.
7693
76942008-06-30 Miles Bader <miles@gnu.org>
7695
7696 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7697 Add `avoid_cursor_p' field.
7698
7699 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7700 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7701 (append_glyph, append_composite_glyph, produce_image_glyph)
7702 (append_stretch_glyph): Initialize avoid_cursor_p.
7703 (get_it_property): Rename from `get_line_height_property'.
7704 (x_produce_glyphs): Use get_it_property.
7705 (handle_line_prefix, push_display_prop): New functions.
7706 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7707 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7708 New variables.
7709 (syms_of_xdisp): Initialize them.
7710
77112008-06-30 Kenichi Handa <handa@m17n.org>
7712
7713 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7714 XftDefaultSubstitute (they are called in XftFontMatch).
7715 (xftfont_open): Fix args to ftfont_font_format.
7716
7717 * ftfont.c (fc_charset_table): New member lang.
7718 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7719 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7720 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7721 (ftfont_open): Fix args to ftfont_font_format.
7722 (ftfont_font_format): New arg filename.
7723
77242008-06-30 Chong Yidong <cyd@stupidchicken.com>
7725
7726 * xfaces.c (Finternal_merge_in_global_face): If default face was
7727 modified, realize it again. Update the font face attribute.
7728
77292008-06-29 Jason Rumney <jasonr@gnu.org>
7730
7731 * w32term.c (x_set_frame_alpha): Fix logic.
7732
77332008-06-29 Kenichi Handa <handa@m17n.org>
7734
7735 * fontset.c (Finternal_char_font): Return font-object instead of
7736 font-name.
7737
7738 * composite.c (get_composition_id): Fix the width calculation for TAB.
7739
77402008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7741
7742 * indent.c (Fvertical_motion): Properly handle float column arg.
7743
77442008-06-28 Jason Rumney <jasonr@gnu.org>
7745
7746 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7747 (pfnSetLayeredWindowAttributes): New function pointer.
7748 (w32_initialize): Initialize it when supported.
7749 (x_set_frame_alpha): New function.
7750
7751 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7752 (w32_frame_parm_handlers): Set alpha handler.
7753
7754 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7755
77562008-06-27 Jason Rumney <jasonr@gnu.org>
7757
7758 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7759 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7760 (w32_to_x_charset, x_to_w32_charset)
7761 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7762 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7763 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7764 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7765 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7766 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7767 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7768 (Qw32_charset_unicode): Remove.
7769 (syms_of_w32fns): Update for above changes.
7770
7771 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7772 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7773 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7774 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7775 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7776 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7777 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7778 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7779 (syms_of_w32font): Update for above changes.
7780
77812008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7782
7783 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7784 removed #if.
7785 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7786
77872008-06-26 Juanma Barranquero <lekktu@gmail.com>
7788 Eli Zaretskii <eliz@gnu.org>
7789
7790 * makefile.w32-in (LOCAL_FLAGS):
7791 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7792
7793 * sysdep.c (_spawnlp, _getpid):
7794 Declare with explicit _cdecl instead of _CRTAPI1.
7795
7796 * editfns.c (Fget_internal_run_time):
7797 Check for WINDOWSNT with #ifdef, not #if.
7798
77992008-06-26 Jason Rumney <jasonr@gnu.org>
7800
7801 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7802
7803 * w32term.c (x_draw_glyph_string_foreground)
7804 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7805 Use FONT_HANDLE macro.
7806 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7807
7808 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7809 (uniscribe_encode_char): Use FONT_HANDLE macro.
7810
7811 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7812 (w32font_text_extents): Use precast w32_font.
7813 (w32font_close): Free cached metrics.
7814 (w32font_open_internal): Allocate space for name on stack.
7815
78162008-06-26 Chong Yidong <cyd@stupidchicken.com>
7817
7818 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7819
78202008-06-26 Jason Rumney <jasonr@gnu.org>
7821
7822 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7823 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7824
78252008-06-26 Juanma Barranquero <lekktu@gmail.com>
7826
7827 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7828
78292008-06-26 Jason Rumney <jasonr@gnu.org>
7830
7831 * w32bdf.c, w32bdf.h: Remove obsolete files.
7832
7833 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7834
7835 * w32gui.h: Don't include w32bdf.h.
7836 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7837 Remove obsolete font support.
7838
7839 * w32font.h (struct w32font_info): Remove compat_w32_font.
7840 Add hfont member.
7841 (FONT_COMPAT): Remove obsolete macro.
7842
7843 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7844 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7845 (w32font_open_internal): Remove compat code. Set new hfont member.
7846 (Fx_select_font): Use new hfont member.
7847
7848 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7849 (uniscribe_encode_char): Use new hfont member.
7850
7851 * w32term.c (x_draw_glyph_string_foreground)
7852 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7853 (x_draw_glyph_string): Use metrics in w32font_info.
7854
78552008-06-26 Kenichi Handa <handa@m17n.org>
7856
7857 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7858
78592008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7860
7861 * unexnext.c:
7862 * m/ews4800.h:
7863 * m/hp9000s300.h:
7864 * m/ibm370aix.h:
7865 * m/mips-siemens.h:
7866 * m/ncr386.h:
7867 * m/next.h:
7868 * m/pmax.h:
7869 * m/powerpcle.h:
7870 * m/tandem-s2.h:
7871 * s/386bsd.h:
7872 * s/bsd386.h:
7873 * s/bsd4-1.h:
7874 * s/bsd4-2.h:
7875 * s/bsdos2-1.h:
7876 * s/bsdos2.h:
7877 * s/bsdos3.h:
7878 * s/bsdos4.h:
7879 * s/nextstep.h:
7880 * s/ultrix4-3.h:
7881 * s/usg5-0.h:
7882 * s/usg5-2-2.h:
7883 * s/usg5-2.h:
7884 * s/usg5-4-3.h:
7885 * s/ux4800.h:
7886 * s/uxpds.h:
7887 * s/uxpv.h: Remove support for obsolete systems.
7888 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 7889 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
7890 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7891 Remove, insert contents in s/aix4-2.h.
7892 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7893 * s/bsd4-3.h: Rename to ...
7894 * s/bsd-common.h: ... this.
7895 * data.c:
7896 * doc.c:
7897 * ecrt0.c:
7898 * emacs.c:
7899 * fileio.c:
7900 * floatfns.c:
7901 * keyboard.c:
7902 * mem-limits.h:
7903 * print.c:
7904 * process.c:
7905 * sysdep.c:
7906 * syssignal.h:
7907 * systty.h:
7908 * syswait.h:
7909 * term.c:
7910 * unexec.c:
7911 * unexelf.c:
7912 * unexhp9k800.c:
7913 * m/hp800.h:
7914 * m/ibmrs6000.h:
7915 * m/mips.h:
7916 * m/vax.h:
7917 * s/darwin.h:
7918 * s/freebsd.h:
7919 * s/gnu.h:
7920 * s/ms-w32.h:
7921 * s/msdos.h:
7922 * s/netbsd.h:
7923 * s/template.h: Remove references to obsolete variables.
7924
7925 * Makefile.in: Add dependencies for all unexec files.
7926 (admindir): Remove unused variable.
7927 (UNEXEC_SRC): Remove references.
7928
79292008-06-25 Chong Yidong <cyd@stupidchicken.com>
7930
7931 * xfns.c (x_default_font_parameter): If Xft is available, first
7932 try Monospace-12 for the default font.
7933
79342008-06-25 Jason Rumney <jasonr@gnu.org>
7935
7936 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7937
79382008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7939
7940 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7941
7942 * buffer.c (syms_of_buffer): Remove default-word-wrap.
7943
79442008-06-25 Juanma Barranquero <lekktu@gmail.com>
7945
7946 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7947 <scroll-conservatively>: Fix typo in docstring.
7948
7949 * xselect.c (Fx_send_client_event): Doc fix.
7950
79512008-06-25 Kenichi Handa <handa@m17n.org>
7952
7953 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7954
7955 * font.c (font_parse_fcname): Remove unused variables.
7956 (font_sort_entites): Delete the arg SPEC. Caller changed.
7957 Fix for the case of ! best_only.
7958 (font_delete_unmatched): Check DPI and AVGWIDTH too.
7959
7960 * lisp.h (Fstring_to_unibyte): EXFUN it.
7961
7962 * character.h (str_to_unibyte): Extern it.
7963
7964 * character.c (str_to_unibyte): New function.
7965
7966 * fns.c (Fstring_to_unibyte): New function.
7967 (syms_of_fns): Defsubr it.
7968
79692008-06-24 Kenichi Handa <handa@m17n.org>
7970
7971 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
7972 DPI too.
7973 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
7974
79752008-06-24 Andreas Schwab <schwab@suse.de>
7976
7977 * Makefile.in (${lispsource}loaddefs.el): Rename from
7978 ../lisp/loaddefs.el.
7979 (bootstrap-clean): Do what distclean does but don't remove
7980 Makefile.
7981 (distclean): Depend on bootstrap-clean and remove Makefile.
7982
79832008-06-24 Chong Yidong <cyd@stupidchicken.com>
7984
7985 * buffer.h (struct buffer): New member word_wrap.
7986
7987 * buffer.c (syms_of_buffer): New variables default-word-wrap and
7988 word-wrap.
7989 (init_buffer_once): Initialize them.
7990
7991 * dispextern.h (struct it): Replace bool truncate_lines_p with a
7992 line_wrap enum possessing three possible values.
7993
7994 * termopts.h: Replace truncate_partial_width_windows with
7995 Vtruncate_partial_width_windows.
7996
7997 * dispnew.c (direct_output_for_insert): Avoid direct output when
7998 inserting a space with word wrap on.
7999
8000 * indent.c (compute_motion): Obey integer values of
8001 truncate-partial-width-windows.
8002
8003 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8004 replacing truncate_partial_width_windows.
8005 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8006 truncate only if the window width is below that integer.
8007 (start_display, resize_mini_window, produce_stretch_glyph)
8008 (display_string, move_it_in_display_line_to): Use line_wrap.
8009 (back_to_previous_visible_line_start, reseat_1): Reset
8010 string_from_display_prop_p.
8011 (display_line): Extend default face to end of line when wrapping.
8012
80132008-06-24 Kim F. Storm <storm@cua.dk>
8014
8015 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8016 to wrap continued lines at word boundaries.
8017
80182008-06-24 Jason Rumney <jasonr@gnu.org>
8019
8020 * font.c (Ffont_face_attributes): Multiply pixel size before point
8021 conversion to avoid multiplying rounding error.
8022
80232008-06-23 Jason Rumney <jasonr@gnu.org>
8024
8025 * w32term.c (x_draw_glyph_string_background)
8026 (x_draw_glyph_string): Remove old bdf font code.
8027
8028 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8029
80302008-06-22 Kenichi Handa <handa@m17n.org>
8031
8032 * font.c (font_find_for_lface): Try the adstyle specified in
8033 the property of LFACE_FONT of LFACE (if any).
8034
80352008-06-21 Seiji Zenitani <zenitani@mac.com>
8036 Ryo Yoshitake <ryo@shiftmode.net>
8037
8038 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8039
80402008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8041
8042 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8043 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8044 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8045 (witness-emacs): Remove.
8046 (lisp, shortlisp): Move loaddefs.el earlier.
8047 (mostlyclean): Forget about witness-emacs.
8048
80492008-06-22 Glenn Morris <rgm@gnu.org>
8050
8051 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8052 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8053
80542008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8055
8056 * Makefile.in (PRECOMP): Remove.
8057 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8058 (witness-emacs): Run `compile-first'.
8059 (.el.elc): Use the new compile-onefile target.
8060
80612008-06-21 Kenichi Handa <handa@m17n.org>
8062
8063 * xftfont.c (xftfont_open): Handle QCembolden only when
8064 FC_EMBOLDEN is defined.
8065
80662008-06-21 Andreas Schwab <schwab@suse.de>
8067
8068 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8069 (.el.elc): Likewise.
8070
80712008-06-21 Miles Bader <miles@gnu.org>
8072
8073 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8074 build dir, not the lisp source dir.
8075
80762008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8077
8078 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8079 (bootstrapclean): Remove.
8080 (.el.elc): New rule.
8081 (PRECOMP): New var.
8082 (../lisp/subdirs.el): Remove.
8083 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8084 (witness-emacs): New target.
8085 (mostlyclean): Remove witness-emacs as well.
8086 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8087 Add witness-emacs dependency.
8088
80892008-06-20 Chong Yidong <cyd@stupidchicken.com>
8090
8091 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8092 defined by the font.
8093
80942008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8095
8096 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8097 (bootstrap-clean): New target that keeps TAGS around.
8098 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8099 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8100
81012008-06-20 Jason Rumney <jasonr@gnu.org>
8102
8103 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8104 Remove obsolete font code.
8105
8106 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8107 to determine language support.
8108
81092008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8110
8111 * sysdep.c (cfsetspeed): New fun extracted from the code.
8112 (cfmakeraw): Move before first use.
8113
81142008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8115
8116 * sysdep.c (cfmakeraw): Provide fallback implementation.
8117 (serial_configure): Provide fallback implementation of cfsetspeed.
8118
81192008-06-20 Kenichi Handa <handa@m17n.org>
8120
8121 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8122 the pattern.
8123
8124 * fontset.c (fontset_from_font): Copy font_spec before changing
8125 the elements.
8126
8127 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8128
81292008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8130
8131 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8132 for explicit `font' parameters.
8133
8134 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8135
81362008-06-19 Kenichi Handa <handa@m17n.org>
8137
8138 * frame.c: Include <ctype.h>.
8139 (x_set_font_backend): Allow spacing characters in the X resource
8140 for FontBackend.
8141
81422008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8143
8144 * w32fns.c, xfns.c (Qfont_param): New var.
8145 (syms_of_w32fns): Initialize it.
8146 (x_default_font_parameter): Record explicit `font' into
8147 `font-parameter'.
8148
81492008-06-18 Kenichi Handa <handa@m17n.org>
8150
8151 * font.c (font_parse_xlfd): Fix previous change.
8152 (font_parse_fcname): Don't use :fc-unknown-spec.
8153 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8154 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8155 (font_add_log): Prepend the driver name to the resulting fonts.
8156
8157 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8158 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8159 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8160
8161 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8162 (QCembolden): New variables.
8163 (syms_of_xftfont): DEFSYM them.
8164 (xftfont_open): Call XftFontMatch. Don't trust the result of
8165 XftTextExtents8 if the pixel_size is less than 5.
8166
81672008-06-18 Andreas Schwab <schwab@suse.de>
8168
8169 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8170 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8171
81722008-06-18 Jason Rumney <jasonr@gnu.org>
8173
8174 * w32font.c (w32font_list, w32font_match): Add logging.
8175
8176 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8177
81782008-06-17 Chong Yidong <cyd@stupidchicken.com>
8179
8180 * font.c (font_parse_fcname): Store divider characters for
8181 unknown-spec list. For known key symbols, intern using correct
8182 symbol name.
8183
81842008-06-17 Kenichi Handa <handa@m17n.org>
8185
8186 * xfaces.c (realize_default_face): If the frame is not on window
8187 system, set the fontset of face to nil.
8188
81892008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8190
8191 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8192
81932008-06-16 Juanma Barranquero <lekktu@gmail.com>
8194
8195 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8196 (build_font_name_from_vector): Delete externs.
8197
8198 * xfaces.c (struct font_name): Don't declare.
8199
82002008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8201
8202 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8203
82042008-06-16 Chong Yidong <cyd@stupidchicken.com>
8205
8206 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8207
82082008-06-16 Juanma Barranquero <lekktu@gmail.com>
8209
8210 * font.c (Ffont_spec): Fix usage in docstring.
8211 (Ffont_face_attributes): Doc fix.
8212
82132008-06-16 Andreas Schwab <schwab@suse.de>
8214
8215 * font.c (Ffont_face_attributes): Fix definition.
8216
82172008-06-16 Jason Rumney <jasonr@gnu.org>
8218
8219 * font.h (font_style_symbolic_from_value): Remove.
8220
8221 * font.c (font_style_symbolic_from_value): Remove.
8222 (font_style_symbolic): Revert to pre 2008-06-13 version.
8223
8224 * w32font.c (w32_to_fc_weight): New function.
8225 (w32font_full_name, logfont_to_fcname): Use it.
8226
82272008-06-16 Kenichi Handa <handa@m17n.org>
8228
8229 * font.c (font_check_object): Delete it.
8230 (font_clear_cache): Check if a font-object is alive.
8231 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8232 font-object to nil.
8233 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8234 (font_at): Don't call font_check_object.
8235 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8236
82372008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8238
8239 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8240
82412008-06-16 Chong Yidong <cyd@stupidchicken.com>
8242
8243 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8244
82452008-06-15 Chong Yidong <cyd@stupidchicken.com>
8246
8247 * font.c (font_parse_fcname): Only one decimal point.
8248 (font_unparse_fcname): Handle data in family and foundry indices
8249 as symbols, not strings.
8250 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8251
8252 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8253
8254 * font.h (font_unparse_gtkname): Add prototype.
8255
82562008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8257
8258 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8259
82602008-06-15 Andreas Schwab <schwab@suse.de>
8261
8262 * font.c (font_update_drivers): Fix crash when no drivers match.
8263
82642008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8265
8266 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8267 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8268
82692008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8270
8271 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8272
82732008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8274
8275 * process.c (Fserial_process_configure, Fprocess_send_eof):
8276 Use EQ to compare Lisp_Objects.
8277
82782008-06-13 Jason Rumney <jasonr@gnu.org>
8279
8280 * w32fns.c (Fw32_select_font): Remove old font API function.
8281
8282 * w32font.c (logfont_to_fcname): New function.
8283 (Fx_select_font): New font dialog function compatible with
8284 GTK/fontconfig version.
8285
8286 * font.c (font_style_symbolic_from_value): New function.
8287 (font_style_symbolic): Use it.
8288
8289 * font.h (font_style_symbolic_from_value): Declare new function.
8290
82912008-06-13 Juanma Barranquero <lekktu@gmail.com>
8292
8293 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8294 <font-width-table>: Fix typos in docstrings.
8295
82962008-06-13 Daniel Engeler <engeler@gmail.com>
8297
8298 These changes add serial port access.
8299 * process.c: Add HAVE_SERIAL.
8300 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8301 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8302 (list_processes_1, select_wrapper, Fstop_process)
8303 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8304 (status_notify): Modify to handle serial processes.
8305 [HAVE_SERIAL] (Fserial_process_configure)
8306 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8307 New functions.
8308 * process.h (struct Lisp_Process): Add `type'.
8309 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8310 New functions.
8311 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8312 serial ports.
b71ac3dd 8313 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8314 * w32.h: Add FILE_SERIAL.
8315 (struct _child_process): Add ovl_read, ovl_write.
8316
83172008-06-13 Kenichi Handa <handa@m17n.org>
8318
8319 * dispextern.h (enum lface_attribute_index): New member
8320 LFACE_FOUNDRY_INDEX.
8321
8322 * font.c (font_score): Delete arg alternate_families. Check only
8323 weight, slant, width, and size. Ignore the difference of alias
8324 style symbols.
8325 (font_sort_entites): Adjust for the above change. Reflect the
8326 order of font-driver to scores.
8327 (font_list_entities): Don't check alternate_familes here.
8328 (font_clear_prop): Handle foundry.
8329 (font_update_lface): Don't parse "foundry-family" form here.
8330 Handle FONT_FOUNDRY_INDEX.
8331 (font_find_for_lface): Likewise. Handle alternate families here.
8332 If registry is nil, try iso8859-1 and ascii-0.
8333 (font_open_for_lface): Pay attention to size in ENTITY.
8334 (font_open_by_name): Simplify by calling font_load_for_lface.
8335 (free_font_driver_list): Delete it.
8336 (font_update_drivers): Preserve the order of backends.
8337 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8338 of font_score and font_sort_entites.
8339 (font_update_sort_order): Likewise.
8340
8341 * xfaces.c (LFACE_FOUNDRY): New macro.
8342 (check_lface_attrs): Check foundry.
8343 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8344 (merge_face_vectors): Check foundry.
8345 (merge_face_ref): Likewise.
8346 (Finternal_set_lisp_face_attribute): Likewise.
8347 (x_update_menu_appearance): Likewise.
8348 (Finternal_get_lisp_face_attribute): Likewise.
8349 (lface_hash): Likewise.
8350 (lface_same_font_attributes_p): Likewise.
8351 (x_supports_face_attributes_p): Likewise.
8352 (tty_supports_face_attributes_p): Likewise.
8353 (Finternal_set_alternative_font_family_alist): Intern strings.
8354 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8355 (realize_default_face): Set LFACE_FOUNDRY (lface).
8356
8357 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8358 font-driver at first.
8359
8360 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8361
83622008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8363
8364 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8365
83662008-06-12 Jim Meyering <meyering@redhat.com>
8367
8368 Make unexec_free handle NULL the same way free does.
8369 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8370
83712008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8372
8373 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8374 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8375 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8376 (WEAK_ALIAS): Simplify.
8377 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8378 when searching a unibyte buffer.
8379
83802008-06-12 Chong Yidong <cyd@stupidchicken.com>
8381
8382 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8383
83842008-06-12 Juanma Barranquero <lekktu@gmail.com>
8385
8386 * w32font.c: Include ctype.h.
8387
83882008-06-11 Jason Rumney <jasonr@gnu.org>
8389
8390 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8391 misreported as space.
8392 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8393 as aliases for registry iso10646-1.
8394
83952008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8396
8397 * buffer.c (clone_per_buffer_values): Skip `name'.
8398
83992008-06-11 Chong Yidong <cyd@stupidchicken.com>
8400
8401 * font.c (font_parse_fcname): Fix last change; accept decimal
8402 points in font size.
8403
84042008-06-10 Jason Rumney <jasonr@gnu.org>
8405
8406 * w32uniscribe.c (add_opentype_font_name_to_list):
8407 Skip non unicode fonts.
8408
84092008-06-10 Chong Yidong <cyd@stupidchicken.com>
8410
8411 * xfns.c (Fx_font_dialog): New function.
8412
8413 * gtkutil.c (xg_dialog_response_cb): Rename from
8414 xg_file_response_callback.
8415 (pop_down_dialog): Rename from pop_down_file_dialog.
8416 (xg_get_file_name): Callers changed.
8417 (xg_get_font_name): New function.
8418
8419 * gtkutil.h (xg_get_font_name): Insert prototype.
8420
84212008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8422
8423 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8424 x_underline_minimum_display_offset.
8425 (syms_of_xdisp): Declare it here rather than in xterm.c.
8426 * dispextern.h (underline_minimum_offset): Declare it.
8427 * w32term.c (x_draw_glyph_string): Use it.
8428 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8429 (syms_of_xterm): Don't declare it any more.
8430 (x_draw_glyph_string): Adjust to the new name.
8431
84322008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8433
8434 * xterm.c (x_underline_minimum_display_offset): New var.
8435 (x_draw_glyph_string): Use it.
8436 (syms_of_xterm): Declare it.
8437
84382008-06-10 Chong Yidong <cyd@stupidchicken.com>
8439
8440 * font.c (font_parse_fcname): Accept GTK-style font names too.
8441
84422008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8443
8444 * dired.c (file_name_completion): Don't return t if the match is exact
8445 but with different capitalization.
8446 * minibuf.c (Ftry_completion): Simplify.
8447
8448 * window.c (Vwindow_point_insertion_type): New var.
8449 (set_window_buffer): Use it.
8450 (syms_of_window): Init and export it to Lisp.
8451
84522008-06-10 Kenichi Handa <handa@m17n.org>
8453
8454 * font.h (font_intern_prop): Prototype adjusted.
8455
8456 * font.c (font_intern_prop): New arg force_symbol.
8457 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8458 Adjust for the change of font_intern_prop.
8459
8460 * ftfont.c (ftfont_pattern_entity):
8461 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8462 (w32_registry):
8463 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8464 the change of font_intern_prop.
8465
84662008-06-09 Juanma Barranquero <lekktu@gmail.com>
8467
8468 * w32menu.c (digest_single_submenu): Declare extern.
8469
84702008-06-09 Jason Rumney <jasonr@gnu.org>
8471
8472 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8473
8474 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8475 (parse_single_submenu): Remove.
8476 (digest_single_submenu): Remove.
8477 (syms_of_w32menu): Don't initialise variables that have moved
8478 to menu.c.
8479 (set_frame_menubar): Sync with version in xmenu.c.
8480 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8481
8482 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8483 Make static again.
8484
84852008-06-09 Jason Rumney <jasonr@gnu.org>
8486
8487 Changes to w32 files related to the move of common menu code
8488 to menu.c on 2008-06-08 by Chong Yidong.
8489
8490 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8491 defs to w32gui.h.
8492 (single_keymap_panes, push_menu_item, push_menu_pane):
8493 Make globally visible.
8494
8495 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8496 (local_free, malloc_widget_value, free_widget_value)
8497 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8498 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8499 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8500 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8501 (menu_items, menu_items_allocated, menu_items_used)
8502 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8503 (init_menu_items, finish_menu_items, discard_menu_items)
8504 (grow_menu_items, push_submenu_start, push_submenu_end)
8505 (push_left_right_boundary, push_menu_pane, push_menu_item)
8506 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8507 (free_menubar_widget_tree_value, parse_single_submenu)
8508 (update_submenu_strings): Remove functions.
8509 (xmalloc_widget_value): Remove and declare extern.
8510
8511 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8512 (OBJ1): Build it.
8513
8514 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8515 (local_heap, local_alloc, local_free, malloc_widget_value)
8516 (free_widget_value): Define here.
8517
85182008-06-09 Kenichi Handa <handa@m17n.org>
8519
8520 * font.h (Qascii_0): Extern it.
8521
8522 * font.c (Qascii_0): New variable.
8523 (syms_of_font): DEFSYM it.
8524 (font_open_by_name): If the registry "iso8859-1" fails, try also
8525 "ascii-0".
8526
8527 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8528
85292008-06-08 Kenichi Handa <handa@m17n.org>
8530
8531 * .gdbinit (xfont): New command.
8532
85332008-06-08 Andreas Schwab <schwab@suse.de>
8534
8535 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8536 * Makefile.in (menu.o): Update dependencies.
8537
8538 * Makefile.in (obj): Always add menu.o.
8539 * emacs.c (main): Always call syms_of_menu.
8540 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8541
85422008-06-08 Chong Yidong <cyd@stupidchicken.com>
8543
8544 * Makefile.in: Compile menu.c.
8545
8546 * lisp.h: Declare syms_of_menu.
8547
8548 * emacs.c (main): Call syms_of_menu.
8549
8550 * keyboard.h: Relocate platform-independent menu definitions from
8551 xmenu.c.
8552
8553 * menu.c: New file. Relocate platform-independent menu
8554 definitions from xmenu.c. Suggested by Adrian Robert.
8555
8556 * xmenu.c: Remove platform-independent menu definitions.
8557 (menu_items menu_items_inuse, menu_items_allocated)
8558 (menu_items_used, menu_items_n_panes)
8559 (menu_items_submenu_depth): Move to keyboard.h.
8560 (init_menu_items, finish_menu_items, unuse_menu_items)
8561 (discard_menu_items, restore_menu_items, save_menu_items)
8562 (grow_menu_items, push_submenu_start, push_submenu_end)
8563 (push_left_right_boundary, push_menu_pane, push_menu_item)
8564 (keymap_panes, single_keymap_panes, single_menu_item)
8565 (list_of_panes, list_of_items, find_and_call_menu_selection)
8566 (xmalloc_widget_value, free_menubar_widget_value_tree)
8567 (parse_single_submenu, digest_single_submenu)
8568 (update_submenu_strings): Move to menu.c.
8569
85702008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8571
8572 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8573
85742008-06-06 Miles Bader <miles@gnu.org>
8575
8576 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8577 face, not frame default.
8578
85792008-06-05 Martin Rudalics <rudalics@gmx.at>
8580
8581 * window.c (pop_up_windows, pop_up_frames)
8582 (display_buffer_reuse_frames, Vpop_up_frame_function)
8583 (Vdisplay_buffer_function, Veven_window_heights)
8584 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8585 (Vspecial_display_function, Vsame_window_buffer_names)
8586 (Vsame_window_regexps, split_height_threshold)
8587 (Vsplit_window_preferred_function): Move those vars to window.el.
8588 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8589 (Fdisplay_buffer): Move those functions to window.el.
8590 (syms_of_window): Remove corresponding declarations.
8591 (display_buffer): New function.
8592 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8593 * dispnew.c (Flast_nonminibuf_frame): New function.
8594 * buffer.c (Fpop_to_buffer): Move to window.el.
8595
85962008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8597
8598 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8599
86002008-06-05 Kenichi Handa <handa@m17n.org>
8601
8602 * coding.c (detect_coding): Fix previous change.
8603 (detect_coding_system): Likewise.
8604
86052008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8606
8607 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8608
8609 * keymap.c (Vminibuffer_local_filename_must_match_map):
8610 Rename from Vminibuffer_local_must_match_filename_map.
8611 (syms_of_keymap):
8612 * minibuf.c (Fcompleting_read): Adjust accordingly.
8613 * commands.h: Rename declaration as well.
8614
86152008-06-05 Kenichi Handa <handa@m17n.org>
8616
8617 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8618 family name.
8619 (Ffont_put): Likewise.
8620
8621 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8622 current font-spec.
8623
8624 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8625 is unspecified.
8626
8627 * xfaces.c (realize_x_face): If the font-related face attributes
8628 are the same as those of default face, realize a new fontset from
8629 default->fontset.
8630 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8631
86322008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8633
8634 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8635 (move_it_in_display_line): New wrapper.
8636
8637 * window.c (window_scroll_pixel_based_preserve_x)
8638 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8639 (window_scroll_pixel_based, window_scroll_line_based):
8640 Use them to preserve column positions.
8641 (syms_of_window): Initialize them.
8642
8643 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8644 (HPOS . VPOS) pair.
8645
8646 * dispextern.h (move_it_in_display_line): Declare.
8647
86482008-06-05 Juanma Barranquero <lekktu@gmail.com>
8649
8650 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8651 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8652 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8653
86542008-06-04 Juanma Barranquero <lekktu@gmail.com>
8655
8656 * window.c (Fset_window_parameter): Doc fix.
8657 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8658
86592008-06-04 Joakim Verona <joakim@verona.se>
8660
8661 * window.h (struct window): Add new member window_parameters.
8662
8663 * window.c (Fwindow_parameters, Fwindow_parameter)
8664 (Fset_window_parameter): New defuns.
8665 (syms_of_window): Defsubr the new defuns.
8666 (make_window): Initialize window_parameters to nil.
8667
86682008-06-04 John Paul Wallington <jpw@pobox.com>
8669
8670 * eval.c (Fdefmacro): Doc fix.
8671
86722008-06-04 Kenichi Handa <handa@m17n.org>
8673
8674 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8675 Be sure to call setup_coding_system when we find a proper coding system.
8676 (detect_coding_system): Fix handling of coding->head_ascii.
8677
86782008-06-03 Andreas Schwab <schwab@suse.de>
8679
8680 * font.c (font_prop_validate_spacing): Fix last change.
8681
86822008-06-03 Kenichi Handa <handa@m17n.org>
8683
8684 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8685 (font_parse_fcname): Fix handling of unknown key.
8686
8687 * xfont.c (xfont_list): Try an alias.
8688
8689 * charset.c (char_charset): Return NULL if the arg charset_list is
8690 specified and C doesn't belong to any of them.
8691
86922008-06-02 Chip Coldwell <coldwell@redhat.com>
8693
8694 * font.c (font_pixel_size): Don't take cdr of an integer.
8695
86962008-06-02 Jim Meyering <meyering@redhat.com>
8697
8698 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8699 * alloc.c (xfree): Return right away for a NULL arg.
8700 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8701 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8702 * mac.c (create_apple_event_from_event_ref): Likewise.
8703 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8704 Likewise.
8705 * doprnt.c (doprnt1): Likewise.
8706 * frame.c (frame): Likewise.
8707 * keyboard.c (wipe_kboard): Likewise.
8708 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8709 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8710 * term.c (tty_default_color_capabilities, maybe_fatal)
8711 (delete_tty): Likewise.
8712 * w16select.c (string): Likewise.
8713 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8714 * w32bdf.c (w32_free_bdf_font): Likewise.
8715 * w32fns.c (w32_unload_font): Likewise.
8716 * w32font.c (w32font_close): Likewise.
8717 * window.c (size_window): Likewise.
8718 * xselect.c (receive_incremental_selection): Likewise.
8719 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8720 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8721 * w32.c (stat): Likewise.
8722
8723 Remove useless if-before-free tests.
8724 * editfns.c (Fset_time_zone_rule): Likewise.
8725 * lread.c (nosuffix): Likewise.
8726 * ralloc.c (get_bloc): Likewise.
8727 * regex.c (reg_free): Likewise.
8728 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8729 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8730 * xsmfns.c (smc_save_yourself_CB): Likewise.
8731
87322008-06-02 Kenichi Handa <handa@m17n.org>
8733
8734 * font.c (font_find_for_lface): Handle float font size.
8735 (font_open_for_lface): Likewise.
8736
8737 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8738 comparing the properties.
8739
87402008-06-01 Jason Rumney <jasonr@gnu.org>
8741
8742 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8743 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8744 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8745 Don't add empty script list.
8746 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8747
87482008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8749
8750 * Makefile.in (dot, dotdot): Remove, update users.
8751 ".." has been used elsewhere in the file for a long time.
8752 (LIBXT_STATIC): Remove conditional based on unused variable.
8753
87542008-06-01 Miles Bader <miles@gnu.org>
8755
8756 * xfaces.c (Vface_remapping_alist): New variable.
8757 (syms_of_xfaces): Initialize it.
8758 (enum named_merge_point_kind): New type.
8759 (struct named_merge_point): Add `named_merge_point_kind' field.
8760 (push_named_merge_point): Make cycle detection respect different
8761 named-merge-point kinds.
8762 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8763 Remove face-name alias resolution.
8764 (lface_from_face_name): New definition using
8765 `lface_from_face_name_no_resolve'.
8766 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8767 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8768 (get_lface_attributes): New definition that layers face-remapping on
8769 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8770 (lookup_basic_face): New function.
8771 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8772 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8773 `get_lface_attributes'.
8774 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8775 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8776 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8777
8778 * xdisp.c (init_iterator): Pass base_face_id through
8779 `lookup_basic_face' when we actually use it as a face-id.
8780 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8781 DEFAULT_FACE_ID.
8782
8783 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8784 lookup the initial face-id.
8785
8786 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8787
87882008-06-01 Juanma Barranquero <lekktu@gmail.com>
8789
8790 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8791 (Fremove_text_properties): Fix typos in docstrings.
8792
87932008-05-31 Kenichi Handa <handa@m17n.org>
8794
8795 * font.c (font_list_entities): Fix the car part of data to be
8796 stored in the cache.
8797
8798 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8799
88002008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8801
8802 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8803 Add a `test' argument so another predicate than `equal' can be used.
8804 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8805 (map_char_table): Remove unused vars `c' and `i'.
8806 * lisp.h (Foptimize_char_table): Adjust declaration.
8807 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8808
88092008-05-30 Kenichi Handa <handa@m17n.org>
8810
8811 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8812 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8813 defined.
8814
88152008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8816
8817 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8818 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8819 frame-local settings for the same variable.
8820
88212008-05-30 Kenichi Handa <handa@m17n.org>
8822
8823 * fontset.c (Ffont_info): Move to font.c.
8824 (syms_of_fontset): Delete defsubr of Sfont_info.
8825
8826 * font.c (font_style_to_value, font_score): Delete casting of the
8827 args to xstcasecmp.
8828 (register_font_driver): Increment num_font_drivers only when
8829 registering the driver globally.
8830 (Ffont_info): Move from fontset.c. Handle a font object too.
8831 (syms_of_font): Defsubr Sfont_info.
8832
88332008-05-29 Kenichi Handa <handa@m17n.org>
8834
8835 * coding.h (enum define_coding_utf8_arg_index): New enum.
8836 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8837 coding_attr_utf_bom.
8838 (enum utf_bom_type): Rename from utf_16_bom_type.
8839 (struct utf_16_spec): Adjust for the above change.
8840 (struct coding_system): Add utf_8_bom in `spec' union.
8841
8842 * coding.c (CODING_UTF_8_BOM): New macro.
8843 (enum coding_category): Delete coding_category_utf_8, add
8844 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8845 coding_category_utf_8_sig.
8846 (CATEGORY_MASK_UTF_8): Delete it.
8847 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8848 (CATEGORY_MASK_UTF_8_SIG): New macros.
8849 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8850 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8851 CATEGORY_MASK_UTF_8_SIG.
8852 (CATEGORY_MASK_UTF_8): New macro.
8853 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8854 (detect_coding_utf_8): Check BOM.
8855 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8856 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8857 (encode_coding_utf_16): Likewise.
8858 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8859 (detect_coding, detect_coding_system): Handle utf-8-auto.
8860 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8861 (syms_of_coding): Fix setting up of Vcoding_category_table.
8862
88632008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8864
8865 * process.c (Faccept_process_output): If `millisec' is non-nil,
8866 `seconds' default to 0.
8867 (wait_reading_process_output): Also return non-nil if we read output
8868 from a non-running process.
8869
88702008-05-29 Jason Rumney <jasonr@gnu.org>
8871
8872 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8873 `raster' specified.
8874 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8875 in the uniscribe backend, but disallow any font that has no
8876 unicode subrange support.
8877
88782008-05-29 Juanma Barranquero <lekktu@gmail.com>
8879
8880 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8881 Fix typos in docstrings.
8882
88832008-05-29 Kenichi Handa <handa@m17n.org>
8884
8885 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8886 (Fx_family_fonts): Set frame correctly.
8887
88882008-05-28 Jason Rumney <jasonr@gnu.org>
8889
8890 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8891
88922008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8893
8894 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8895 calling build_annotations.
8896
88972008-05-28 Juanma Barranquero <lekktu@gmail.com>
8898
8899 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8900 (Fencode_coding_string):
8901 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8902 <latin-extra-code-table>: Fix typos in docstrings.
8903 (syms_of_coding) <coding-system-alist>: Doc fix.
8904 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8905
89062008-05-28 Kenichi Handa <handa@m17n.org>
8907
8908 * fontset.c (Ffont_info): Don't call font_close_object.
8909
8910 * font.c (font_parse_family_registry): Use Ffont_put to validate
8911 foundry and family.
8912 (font_delete_unmatched): Don't check spacing.
8913 (font_list_entities): Add spacing to the spec to list fonts.
8914
8915 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8916 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8917
8918 * coding.c (encode_coding_raw_text): Fix previous change.
8919 (encode_coding_object): When the dst_object is a buffer and is
8920 different from src_object, move gap to PT.
8921
89222008-05-27 Chong Yidong <cyd@stupidchicken.com>
8923
8924 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8925
89262008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8927
8928 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8929 all branches. Compute it differently.
8930
8931 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8932
89332008-05-27 Juanma Barranquero <lekktu@gmail.com>
8934
8935 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8936 into "else if () ... else ...".
8937
89382008-05-27 Jason Rumney <jasonr@gnu.org>
8939
8940 * w32font.c (w32font_open_internal): Determine if glyph indices
8941 are likely to work here.
8942
89432008-05-27 Chong Yidong <cyd@stupidchicken.com>
8944
8945 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8946 draw overlap glyphs with appropriate highlighting.
8947
89482008-05-27 Kenichi Handa <handa@m17n.org>
8949
8950 * xfont.c (xfont_open): Fix calculation of font->average_width.
8951
89522008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8953
8954 * casefiddle.c (casify_object): Try to guess better whether the
8955 argument is a byte or a char.
8956
89572008-05-26 Andreas Schwab <schwab@suse.de>
8958
8959 * xselect.c (x_reply_selection_request): Properly handle format == 32.
8960 Always send multiples of format size.
8961
8962 * xterm.c (x_set_frame_alpha): Fix type mismatch.
8963
89642008-05-26 Jason Rumney <jasonr@gnu.org>
8965
8966 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8967 (compute_metrics): Don't set failure if we just cleared the cache.
8968 (w32_weight_table): Remove unused variable.
8969 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
8970 backwards compatibility.
8971
89722008-05-25 Kenichi Handa <handa@m17n.org>
8973
8974 * w32term.c (x_draw_glyph_string):
8975 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
8976
8977 * xfaces.c: Delete unused function prototypes.
8978 (xstrlwr, font_frame): Delete them.
8979 (clear_face_cache): Delete unused variable.
8980
8981 * xftfont.c (xftfont_open): Delete unused variable.
8982 If underline_thickness is not 1, adjust underline_position.
8983
8984 * ftxfont.c (ftxfont_open): Delete unused variable.
8985
8986 * fontset.c (face_for_char): Optimize for the case of no charset
8987 property.
8988
8989 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
8990 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
8991 (otf_open, font_otf_capability, generate_otf_features)
8992 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8993 Comment out by surrounding "#if 0" and "#endif" for the moment.
8994 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
8995 (syms_of_font): Codes for accessing above commented out.
8996
89972008-05-24 Eli Zaretskii <eliz@gnu.org>
8998
8999 * w32proc.c: Include dispextern.h.
9000
9001 * w32.c: Include dispextern.h.
9002
90032008-05-23 Juanma Barranquero <lekktu@gmail.com>
9004
9005 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9006 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9007 Fix typos in docstrings.
9008
90092008-05-23 Jason Rumney <jasonr@gnu.org>
9010
9011 * xsmfns.c: Remove includes that are already included by config.h.
9012
90132008-05-23 Kenichi Handa <handa@m17n.org>
9014
9015 * charset.c (Qemacs, charset_emacs): New variables.
9016 (char_charset): Fix for non-Unicode characters.
9017 (syms_of_charset): Define charset_emacs.
9018
9019 * w32term.c (x_draw_glyph_string): Be sure to update
9020 s->underline_thickness and s->underline_position. Be sure to draw
9021 underline within the current line area.
9022
9023 * xterm.c (x_draw_glyph_string): Be sure to update
9024 s->underline_thickness and s->underline_position. Be sure to draw
9025 underline within the current line area.
9026
9027 * fontset.c: Delete unused variables and add casting for char *
9028 throughout the file.
9029 (fontset_font): Try the fallback fonts of the current fontset
9030 before consulting the default fontset.
9031
9032 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9033
9034 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9035
90362008-05-22 Jason Rumney <jasonr@gnu.org>
9037
9038 * font.c: Don't include strings.h.
9039
9040 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9041
9042 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9043 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9044 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9045 to call xstrcasecmp.
9046
9047 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9048
9049 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9050
9051 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9052
9053 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9054
90552008-05-22 Kenichi Handa <handa@m17n.org>
9056
9057 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9058
9059 * font.c (font_prop_validate_style): Adjust for the format
9060 change of font_style_table.
9061
9062 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9063 two args.
9064
9065 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9066 two args.
9067
90682008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9069
9070 * minibuf.c (keys_of_minibuf): Delete.
9071 * lisp.h (keys_of_minibuf): Delete.
9072 * emacs.c (main): Don't call keys_of_minibuf.
9073
90742008-05-22 Kenichi Handa <handa@m17n.org>
9075
9076 * ftfont.c (ftfont_resolve_generic_family): Rename from
9077 ftfont_list_generic_family. Return a single family for each
9078 generic family.
9079 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9080 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9081 Call font_add_log.
9082 (ftfont_match): Call font_add_log.
9083
9084 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9085 (FONT_DEBUG): Define it.
9086 (font_add_log): Extern it.
9087 (font_assert): Rename from xassert.
9088
9089 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9090 (xfont_list_family): Call font_add_log.
9091 (xfont_match): Likewise.
9092 (memq_no_quit): Delete.
9093
9094 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9095 call of Ffont_xlfd_name.
9096
9097 * xfaces.c (struct table_entry, slant_table, weight_table)
9098 (swidth_table): Move to font.c.
9099
9100 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9101 xassert are changed to font_assert. Delete many unused variables.
9102 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9103 New variables.
9104 (struct table_entry): Move from xfaces.c and modified.
9105 (weight_table, slant_table, width_table): Move from xfaces.c and
9106 contents adjusted for the change of struct table_entry.
9107 (font_style_to_value, font_style_symbolic): Adjust for the
9108 format change of font_style_table.
9109 (font_parse_family_registry): Don't overwrite existing foundry and
9110 family of font_spec.
9111 (font_score): Fix calculation of diff for sizes.
9112 (font_sort_entites): Call font_add_log.
9113 (font_delete_unmatched): Return a newly created list.
9114 (font_list_entities): Fix previous change. Call font_add_log.
9115 (font_matching_entity, font_open_entity, font_close_entity):
9116 Call font_add_log.
9117 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9118 (Finternal_set_font_style_table): Delete.
9119 (BUILD_STYLE_TABLE): New macro.
9120 (build_style_table): New function.
9121 (Vfont_log, font_log_env_checked): New variables.
9122 (font_add_log): New function.
9123 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9124 Declare Lisp variables "font-weight-table", "font-slant-table",
9125 "font-width-table", and "font-log". Initialize font_style_table.
9126
91272008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9128
9129 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9130
91312008-05-21 Seiji Zenitani <zenitani@mac.com>
9132 Ryo Yoshitake <ryo@shiftmode.net>
9133
9134 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9135 (Vframe_alpha_lower_limit): New variable.
9136 (x_set_alpha): New function.
9137
9138 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9139
9140 * xfns.c (x-create-frame, Qalpha):
9141 Initialize the frame parameter `alpha'.
9142 * xterm.c (OPAQUE, OPACITY): New.
9143 (x_set_frame_alpha): New function.
9144 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9145
9146 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9147 * w32fns.c (w32_frame_parm_handlers): Likewise.
9148
91492008-05-20 Jason Rumney <jasonr@gnu.org>
9150
9151 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9152 truetype fonts to opentype list.
9153
91542008-05-20 Juanma Barranquero <lekktu@gmail.com>
9155
9156 * fontset.c (Ffontset_info): Doc fix.
9157 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9158 <ignore-relative-composition>: Fix typos in docstrings.
9159
9160 * font.c (syms-of-font) <font-encoding-alist>:
9161 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9162 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9163 (Ffont_otf_alternates): Doc fixes.
9164
91652008-05-20 Kenichi Handa <handa@m17n.org>
9166
9167 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9168 font.h through out the file.
9169 (FONT_DRIVERS): Rename from FONTOBJ.
9170 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9171 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9172
9173 * emacs.c (main): Call syms_of_font unconditionally.
9174
9175 * font.h (find_font_encoding): Extern it.
9176
9177 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9178 fontset.c.
9179 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9180 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9181 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9182 only when HAVE_WINDOW_SYSTEM is defined.
9183 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9184 when HAVE_WINDOW_SYSTEM is defined.
9185
9186 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9187 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9188
9189 * xfaces.c: Include font.h unconditionally.
9190 (merge_face_ref, merge_face_vectors)
9191 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9192
91932008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9194
9195 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9196 indirect_variable.
9197 * eval.c (lisp_indirect_variable): New fun.
9198 (Fuser_variable_p): Use it.
9199
92002008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9201
9202 * lisp.h (indirect_variable):
9203 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9204 Use Lisp_Symbol pointers rather than Lisp_Object.
9205 Adjust callers.
9206 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9207 To this end, change calling-convention.
9208
9209 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9210 if some non-hidden buffers are selected by string&pred.
9211
92122008-05-19 Chong Yidong <cyd@stupidchicken.com>
9213
9214 * process.c (wait_reading_process_output): Always check status
9215 when in batch mode.
9216
92172008-05-19 Kenichi Handa <handa@m17n.org>
9218
9219 * font.c (font_list_entities): Fix handling of cache.
9220 (font_matching_entity): Likewise.
9221
9222 * ftfont.c (cs_iso8859_1): Delete.
9223 (ft_face_cache): New variable.
9224 (struct ftfont_info): New member fc_charset_idx.
9225 (ftfont_build_basic_charsets): Delete.
9226 (fc_charset_table): New variable.
9227 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9228 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9229 Callers changed.
9230 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9231 (ftfont_spec_pattern): New argument fc_charset_idx.
9232 Check registry more rigidly. Change callers.
9233 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9234 change of :font-entity property of the font.
9235
9236 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9237 property of the font.
9238
92392008-05-18 Juanma Barranquero <lekktu@gmail.com>
9240
9241 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9242 (Funencodable_char_position, Fcheck_coding_systems_region)
9243 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9244 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9245 (Ffind_operation_coding_system, Fset_coding_system_priority)
9246 (Fcoding_system_eol_type): Doc fixes.
9247
92482008-05-17 Glenn Morris <rgm@gnu.org>
9249
9250 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9251
92522008-05-16 Eli Zaretskii <eliz@gnu.org>
9253
9254 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9255 and st_gid.
9256
9257 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9258 HAVE_WINDOW_SYSTEM is not defined.
9259
9260 * xfaces.c (merge_face_ref, merge_face_vectors)
9261 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9262 HAVE_WINDOW_SYSTEM is defined.
9263 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9264
92652008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9266
9267 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9268
92692008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9270
9271 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9272
92732008-05-15 Kenichi Handa <handa@m17n.org>
9274
9275 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9276 preference.
9277
92782008-05-15 Glenn Morris <rgm@gnu.org>
9279
9280 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9281
92822008-05-15 Chong Yidong <cyd@stupidchicken.com>
9283
9284 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9285 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9286
9287 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9288
92892008-05-15 Kenichi Handa <handa@m17n.org>
9290
9291 * ftfont.c (ftfont_list): Downcase family name to check generic
9292 families.
9293
9294 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9295 font-spec for QCfont value.
9296
9297 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9298 buffer. Check the return value of it.
9299
93002008-05-14 Jason Rumney <jasonr@gnu.org>
9301
9302 * w32term.c (w32_get_glyph_overhangs): Remove.
9303 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9304
93052008-05-14 Kenichi Handa <handa@m17n.org>
9306
9307 * font.c (font_prop_validate): Make nil a valid value.
9308 (font_clear_cache): Check if the cached vector of entities is nil
9309 or not.
9310
93112008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9312
9313 * emacs.c (main_thread): Conditionalize on
9314 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9315 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9316
9317 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9318 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9319 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9320
93212008-05-14 Kenichi Handa <handa@m17n.org>
9322
9323 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9324 has no corresponding coding system.
9325
93262008-05-14 Jason Rumney <jasonr@gnu.org>
9327
9328 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9329
9330 * w32font.h (w32font_open_internal): Update declaration.
9331
9332 * w32font.c (w32font_open_internal): Change last argument from
9333 w32font_info struct to font object. Fill in font object from
9334 font_entity. Get Outline metrics if possible. Use them to
9335 calculate underline position and thickness. Use xlfd name as name
9336 property. Don't set codepage.
9337 (w32font_open): Pass font_object to w32font_open_internal. Don't
9338 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9339 (w32font_draw): Use s->font.
9340 (clear_cached_metrics): Don't clear non-existent blocks.
9341
9342 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9343 font was not found.
9344 (x_draw_glyph_string): Use underline position and thickness from font.
9345
9346 * w32uniscribe.c (uniscribe_open): Pass font_object to
9347 w32font_open_internal.
9348
93492008-05-14 Kenichi Handa <handa@m17n.org>
9350
9351 These changes are to delete all legacy font-handling codes, and
9352 make Emacs use only font-backends.
9353
9354 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9355 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9356
9357 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9358
9359 * charset.h (Vcharset_non_preferred_head)
9360 (Vcurrent_iso639_language): Extern them.
9361
9362 * charset.c (Vcharset_non_preferred_head): New variable.
9363 (Vcurrent_iso639_language): New variable.
9364 (syms_of_charset): Declare it as a Lisp variable.
9365 (char_charset): Don't check non preferred charsets. As a last
9366 resort, return charset_unicode.
9367 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9368
9369 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9370 conditionals. Don't check enable_font_backend. Delete all codes
9371 used only when USE_FONT_BACKEND is not defined.
9372
9373 * dispextern.h (struct glyph_string): Change type of `font' to
9374 `struct font *'.
9375 (struct glyph_string): New member underline_position and
9376 underline_thickness.
9377 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9378 (struct face): Change type of `font' to `struct font *'. Remove
9379 members `font_name', `font_info_id'.
9380 (per_char_metric, encode_char): Delete externs.
9381 (calc_pixel_width_or_height): Adjust the prototype.
9382
9383 * emacs.c (enable_font_backend): Delete extern.
9384 (main): Don't set enable_font_backend. Don't check the command
9385 line argument "-disable-font-backend".
9386
9387 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9388 (enum font_property_index): New members FONT_DPI_INDEX,
9389 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9390 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9391 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9392 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9393 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9394 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9395 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9396 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9397 (struct font_spec, struct font_entity): New structs.
9398 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9399 (struct font): Many members from old "struct font_info" moved to
9400 here. Members font and entity deleted.
9401 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9402 the new font-related objects.
9403 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9404 (CHECK_FONT_GET_OBJECT): Likewise.
9405 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9406 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9407 (struct font_driver): New members case_sensitive anc check. Type
9408 of the member list and open changed.
9409 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9410 (font_symbolic_width, font_find_object, font_get_spec)
9411 (font_set_lface_from_name): Delete extern.
9412 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9413
9414 * font.c: Include <strings.h>.
9415 (enable_font_backend): Delete it.
9416 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9417 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9418 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9419 (null_string): Delete it.
9420 (null_vector): Make it static.
9421 (font_family_alist): Delete it.
9422 (Qnormal): Extern it.
9423 (QCextra, QClanguage): Delete it.
9424 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9425 (font_make_spec, font_make_entity, font_make_object)
9426 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9427 the string. Callers changed.
9428 (font_pixel_size): Adjusted for the format change of font-related
9429 objects.
9430 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9431 (font_style_to_value, font_style_symbolic): New function.
9432 (build_font_family_alist): Delete it.
9433 (font_registry_charsets): Use Fassoc_string instead of
9434 assq_no_quit.
9435 (font_prop_validate_symbol): Don't return null_string.
9436 (font_prop_validate_style): Adjusted for the change of
9437 style-related values in a font vector.
9438 (font_property_table): Delete entries for QClanguage and
9439 QCantialias, add entries for QCavgwidth.
9440 (get_font_prop_index): Delete the 2nd argument FROM.
9441 (font_prop_validate): Arguments changed.
9442 (font_put_extra): Adjusted for the change of font-related objects.
9443 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9444 (font_parse_fcname, font_unparse_fcname)
9445 (font_prepare_composition): Likewise.
9446 (font_parse_family_registry): Renamed from font_merge_old_spec.
9447 (otf_open): Delete the 1st arg entity.
9448 (font_otf_capability): Adjusted for the above change.
9449 (font_score): New arg alternate_families. Adjusted for the change
9450 of font-related objects.
9451 (font_sort_entites): New arg best_only.
9452 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9453 Delete them.
9454 (font_match_p): Check alternate families.
9455 (font_find_object): Delete it.
9456 (font_check_object): New function.
9457 (font_clear_cache): Adjusted for the change of font-related objects.
9458 (font_delete_unmatched): New arg.
9459 (font_list_entities): Call font_driver->list with a spec that
9460 doesn't specify style-related properties.
9461 (font_matching_entity): Arguments changed. Caller changed.
9462 (font_open_entity): Adjusted for the change of font-related objects.
9463 (font_close_object, font_has_char, font_encode_char)
9464 (font_get_name, font_get_spec): Likewise.
9465 (font_spec_from_name, font_clear_prop, font_update_lface):
9466 New functions.
9467 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9468 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9469 (font_at): Adjusted for the change of font-related objects.
9470 (font_range): New function.
9471 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9472 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9473 (Fcopy_font_spec, Fmerge_font_spec): New function.
9474 (Ffont_family_list): Renamed from list-families.
9475 (Finternal_set_font_style_table): Arguments changed.
9476 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9477 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9478 change of font-related objects.
9479 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9480
9481 * fontset.h (struct font_info): Delete it. Most members go to
9482 struct font.
9483 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9484 (enum FONT_SPEC_INDEX): Delete it.
9485 (font_info, list_fonts_func, load_font_func, query_font_func)
9486 (set_frame_fontset_func, find_ccl_program_func)
9487 (get_font_repertory_func, new_fontset_from_font_name): Delete
9488 externs.
9489 (fontset_from_font_name): Extern it.
9490 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9491 (FONT_INFO_FROM_FACE): Deleted.
9492 (face_for_font): Adjust prototype.
9493
9494 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9495 conditionals. Don't check enable_font_backend. Delete all codes
9496 used only when USE_FONT_BACKEND is not defined.
9497 (get_font_info_func, list_font_func, load_font_func)
9498 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9499 (get_font_repertory_func): Delete them.
9500 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9501 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9502 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9503 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9504 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9505 (fontset_compare_rfontdef): New function.
9506 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9507 rfont-defs by qsort. Adjusted for the change of font-group vector.
9508 (load_font_get_repertory): Deleted.
9509 (fontset_find_font): Use new macros to ref/set elements of
9510 font-def and rfont-def.
9511 (fontset_font): Fix the timing of remembering that no font for C.
9512 (free_face_fontset): Do nothing if the face has no fontset.
9513 (face_suitable_for_char_p): Use new macros to ref/set elements of
9514 rfont-def.
9515 (face_for_char): Likewise. Call face_for_char with font_object.
9516 (fs_load_font): Delete. Delete #pragma surrounding it.
9517 (fs_query_fontset): Use strcasecmp instead of strcmp.
9518 (generate_ascii_font_name): Adjusted for the format change of
9519 font-spec.
9520 (Fset_fontset_font): Likewise. Use new macros to set elements of
9521 font-def.
9522 (Fnew_fontset): Use font_unparse_xlfd to generate
9523 FONTSET_ASCII (fontset).
9524 (new_fontset_from_font_name): Deleted.
9525 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9526 a fontset is already created for the font. FIx updating of
9527 Vfontset_alias_alist.
9528 (fontset_ascii_font): Deleted.
9529 (Ffont_info): Adjusted for the format change of font-spec.
9530 (Finternal_char_font): Likewise.
9531 (Ffontset_info): Likewise.
9532 (syms_of_fontset): Don't check load_font_func.
9533
9534 * fns.c (internal_equal): Handle PREV_FONT.
9535
9536 * frame.h: Delete USE_FONT_BACKEND conditional.
9537
9538 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9539 conditionals. Don't check enable_font_backend. Delete all codes
9540 used only when USE_FONT_BACKEND is not defined.
9541 (x_set_font): Call x_new_font, not x_new_fontset2.
9542 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9543 already set for the frame.
9544
9545 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9546 a font-entity by font_make_entity. Use font_intern_prop instead
9547 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9548 font property. If a font is scalable, set avgwidth property to 0.
9549 Set font-entity property by font_put_extra.
9550 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9551 (ffont_driver): Adjusted for the change of struct font_driver.
9552 (ftfont_spec_pattern): New function.
9553 (ftfont_list): Return a list, not vector.
9554 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9555 (ftfont_list_family): Don't downcase names.
9556 (ftfont_free_entity): Deleted.
9557 (ftfont_open): Return a font-object. Adjusted for the change of
9558 struct font. Get underline_thickness and underline_position from
9559 font property. Don't update dpyinfo->smallest_font_height and
9560 dpyinfo->smallest_char_width.
9561 (ftfont_close): Don't free `struct font'.
9562 (ftfont_has_char): Adjusted for the format change of font-entity.
9563 (ftfont_encode_char, ftfont_text_extents): Likewise.
9564
9565 * ftxfont.c (ftxfont_list): Return a list, not vector.
9566 (ftxfont_open): Return a font-object. Adjusted for the change of
9567 struct font. Get underline_thickness and underline_position from
9568 font property. Don't update dpyinfo->smallest_font_height and
9569 dpyinfo->smallest_char_width.
9570 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9571 (ftxfont_draw): Adjusted for the change of struct font.
9572
9573 * image.c (image_ascent): Don't include "charset.h". Include
9574 "character.h" and "font.h".
9575
9576 * lisp.h (enum pvec_type): New member PREV_FONT.
9577 (Fassoc_string): EXFUN it.
9578
9579 * print.c: Include font.h.
9580 (print_object): Handle font-related objects.
9581
9582 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9583 conditionals. Don't check enable_font_backend. Delete all codes
9584 used only when USE_FONT_BACKEND is not defined.
9585 (handle_auto_composed_prop): Do nothing if it->f is not on a
9586 window system. Check how many following characters can be
9587 displayed by the same font.
9588 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9589 'struct font *'.
9590 (get_char_face_and_encoding): Assign the whole encoding task to
9591 the `encode-char' method of a font driver.
9592 (fill_composite_glyph_string): Adjusted for the change of `struct
9593 face' and `struct glyph_string'.
9594 (fill_glyph_string): Likewise.
9595 (get_per_char_metric): Arguments changed.
9596 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9597 and `struct glyph_string'.
9598 (produce_stretch_glyph, calc_line_height_property)
9599 (x_produce_glyphs): Likewise.
9600
9601 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9602 conditionals. Don't check enable_font_backend. Delete all codes
9603 used only when USE_FONT_BACKEND is not defined. Use
9604 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9605 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9606 (Qp): Extern them.
9607 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9608 Deleted.
9609 (struct font_name): Deleted.
9610 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9611 (compare_fonts_by_sort_order): New function.
9612 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9613 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9614 Deleted.
9615 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9616 compare_fonts_by_sort_order.
9617 (Fx_font_family_list): Call Ffont_family_list.
9618 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9619 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9620 (face_symbolic_slant, face_symbolic_swidth)
9621 (split_font_name_into_vector, build_font_name_from_vector)
9622 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9623 (font_rescale_ratio, split_font_name, build_font_name)
9624 (free_font_names, sort_fonts, x_face_list_fonts)
9625 (face_font_available_p, sorted_font_list, cmp_font_names)
9626 (font_list_1, concat_font_list, font_list, remove_duplicates):
9627 Deleted.
9628 (Fx_list_fonts): Use Ffont_list.
9629 (LFACE_AVGWIDTH): Deleted.
9630 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9631 by FONTP.
9632 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9633 (set_lface_from_font_name): Delete it.
9634 (set_lface_from_font): Renamed from
9635 set_lface_from_font_and_fontset. Caller changed. Don't set
9636 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9637 for face.
9638 (merge_face_vectors): Copy font-spec if necessary.
9639 Clear properties of the font-spec if necessary.
9640 (merge_face_ref): Clear properties of the font-spec if necessary.
9641 (Finternal_set_lisp_face_attribute): Likewise.
9642 (set_font_frame_param): Use font_load_for_lface to load a
9643 font-object, and call Fmodify_frame_parameters with it.
9644 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9645 font name by Ffont_xlfd_name.
9646 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9647 QCslant, and QCwidth.
9648 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9649 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9650 Compare fonts by EQ.
9651 (lookup_non_ascii_face): Deleted.
9652 (face_for_font): The 2nd argument changed.
9653 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9654 Check atomic font properties by case insensitive.
9655 (realize_non_ascii_face): Set face->overstrike correctly.
9656 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9657 (dump_realized_face): Get font name from
9658 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9659
9660 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9661 conditionals. Don't check enable_font_backend. Delete all codes
9662 used only when USE_FONT_BACKEND is not defined.
9663 (xic_create_xfontset): Original code deleted and renamed from
9664 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9665 (x_make_gc): Don't set GCFont in GCs.
9666 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9667 opened by "fixed".
9668 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9669 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9670 get_font_repertory_func.
9671
9672 * xfont.c: Include <stdlib.h> and "ccl.h".
9673 (struct xfont_info): New structure.
9674 (xfont_query_font): Deleted.
9675 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9676 moved from xterm.c.
9677 (xfont_driver): Adjusted for the change of struct font_driver.
9678 (compare_font_names): New function.
9679 (xfont_list_pattern): Sort font names case insensitively. Make
9680 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9681 (xfont_list): Return a list, not vector.
9682 (xfont_match): If the font doesn't have QCname property, generate
9683 a name from the other font properties.
9684 (xfont_open): Return a font-object. Adjusted for the change of
9685 struct font. Get underline_thickness and underline_position from
9686 font property. Don't update dpyinfo->smallest_font_height and
9687 dpyinfo->smallest_char_width.
9688 (xfont_close): Don't free struct font.
9689 (xfont_prepare_face): Adjusted for the change of struct font.
9690 (xfont_done_face): Deleted.
9691 (xfont_has_char): Adjusted for the change of struct font.
9692 (xfont_encode_char, xfont_draw): Likewise.
9693 (xfont_check): New function.
9694
9695 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9696 callback function.
9697 (xftfont_match): Adjusted for the format change of font-entity.
9698 (xftfont_open): Adjusted for the format change of font-entity and
9699 font-object. Adjusted for the change of struct font. Return a
9700 font-object. Don't update dpyinfo->smallest_font_height and
9701 dpyinfo->smallest_char_width.
9702 (xftfont_close): Block input while calling XftFontClose.
9703 (xftfont_prepare_face): Don't block input while calling
9704 xftfont_get_colors. Adjusted for the change of struct font.
9705 (xftfont_shape): Return value of error case fixed.
9706
9707 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9708
9709 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9710 conditionals.
9711 (FONT_WIDTH): Return (f)->max_width.
9712 (struct x_display_info): Delete member `font'.
9713 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9714 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9715 (struct x_output): Change type of `font' to `struct font *'.
9716
9717 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9718 conditionals. Don't check enable_font_backend. Delete all codes
9719 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9720 (x_per_char_metric, x_encode_char): Deleted.
9721 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9722 (x_compute_glyph_string_overhangs): Adjusted for the change of
9723 `struct face'.
9724 (x_draw_glyph_string_foreground)
9725 (x_draw_composite_glyph_string_foreground): Likewise.
9726 (x_draw_glyph_string): Likewise. Use font->underline_position and
9727 font->underline_thickness.
9728 (x_new_font): Renamed from x_new_fontset2.
9729 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9730 (x_check_font): Call `check' method of a font driver.
9731 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9732 (x_query_font, x_get_font_repertory): Deleted.
9733 (x_find_ccl_program): Renamed and moved to xfont.c.
9734 (x_redisplay_interface): Adjusted for the change of `struct
9735 redisplay_interface'.
9736
9737 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9738 conditionals. Don't check enable_font_backend. Delete all codes
9739 used only when USE_FONT_BACKEND is not defined. Surround non-used
9740 code by "#ifdef OLD_FONT" and "endif".
9741 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9742
9743 * w32font.h (struct w32font_info): New member.
9744 (FONT_COMPAT): New macro.
9745 (w32font_open_internal): Prototype adjusted.
9746
9747 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9748 OLD_FONT" and "endif".
9749
9750 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9751 conditionals. Don't check enable_font_backend. Delete all codes
9752 used only when USE_FONT_BACKEND is not defined.
9753 (w32font_open): Return a font-object. Make a font-object by
9754 font_make_object. Adjusted for the change of struct w32font_info.
9755 (w32font_close): Don't free struct font. Adjusted for the change
9756 of struct w32font_info.
9757 (w32font_encode_char, w32font_text_extents, w32font_draw):
9758 Adjusted for the change of struct w32font_info.
9759 (w32font_draw): Likewise.
9760 (w32font_list_internal): Return a list, not vector.
9761 (w32font_open_internal): Change the 4th arg to font-object.
9762 Adjusted for the change of struct w32font_info and font-object format.
9763 (add_font_name_to_list): Don't downcase names.
9764 (w32_enumfont_pattern_entity): Make a font-entity by
9765 font_make_entity. Adjusted for the format change of font-entity.
9766 Use FONT_SET_STYLE to set a style-related font property. If a
9767 font is scalable, set avgwidth property to 0. Set font-entity
9768 property by font_put_extra.
9769 (font_matches_spec): Adjusted for the format change of font-entity.
9770 (w32_weight_table, w32_decode_weight): New variables.
9771 (w32_encode_weight): New function.
9772 (fill_in_logfont): Adjusted for the format change of font-spec.
9773 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9774 weight value.
9775 (w32font_driver): Adjusted for the change of struct font_driver.
9776
9777 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9778 conditionals. Don't check enable_font_backend. Surround non-used
9779 code by "#ifdef OLD_FONT" and "endif".
9780 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9781 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9782
9783 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9784 conditionals. Don't check enable_font_backend. Delete all codes
9785 used only when USE_FONT_BACKEND is not defined. Surround non-used
9786 code by "#ifdef OLD_FONT" and "endif".
9787
9788 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9789 (uniscribe_open): Return value changed to font-object.
9790 Adjusted for the format change of font-object.
9791 (uniscribe_otf_capability): Adjusted for the change of struct font.
9792 (add_opentype_font_name_to_list): Don't downcase names.
9793 (uniscribe_font_driver): Adjusted for the change of struct
9794 font_driver.
9795
97962008-05-13 Chong Yidong <cyd@stupidchicken.com>
9797
9798 * dispnew.c (update_frame_1): Check if tty output is still valid
9799 before flushing it.
9800
98012008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9802
9803 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9804 to Gtk+ menus.
9805
98062008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9807
9808 * dired.c (file_name_completion): Tweak the code so as to always do it
9809 in a single pass. Tighten the scope of some variables.
9810
9811 * dired.c (Qdefault_directory): New var.
9812 (file_name_completion): Use it instead of Fexpand_file_name.
9813 (syms_of_dired): Initialize it.
9814
98152008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9816
9817 * fileio.c (double_dollars): Remove dead code.
9818
98192008-05-10 Eli Zaretskii <eliz@gnu.org>
9820
9821 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9822 Mention w32-get-true-file-attributes in doc string.
9823
9824 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9825
98262008-05-09 Glenn Morris <rgm@gnu.org>
9827
9828 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9829 2008-04-23.
9830
98312008-05-09 Eli Zaretskii <eliz@gnu.org>
9832
9833 Support for reporting owner and group of each file on MS-Windows:
9834 * dired.c (stat_uname, stat_gname): New functions, with special
9835 implementation for w32.
9836 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9837
9838 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9839 (dflt_group_name): New static variable.
9840 (dflt_group): Rename from the_group.
9841 (init_user_info): Init dflt_group fields. Get user's group name
9842 from LookupAccountSid.
9843 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9844 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9845 New initialization states.
9846 (globals_of_w32): Initialize them to zero. Initialize the default
9847 group name to "None".
9848 (GetFileSecurity_Name): New global var, the name of the function
9849 to call for GetFileSecurity.
9850 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9851 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9852 (get_file_security, get_security_descriptor_owner)
9853 (get_security_descriptor_group, is_valid_sid)
9854 (get_file_security_desc, get_rid, get_name_and_id)
9855 (get_file_owner_and_group): New functions.
9856 (stat): Use get_file_security_desc and get_file_owner_and_group to
9857 report the owner and primary group of each file. Don't ignore the
9858 high 32 bits of file's size, now that st_size is 64-bit wide.
9859 Fix test when to get true file attributes.
9860 (init_user_info): Use get_rid instead of equivalent inline code.
9861 (fstat): Don't ignore the high 32 bits of file's size.
9862
98632008-05-09 Chong Yidong <cyd@stupidchicken.com>
9864
9865 * image.c (png_load): Use correct bit-depth for setting background
9866 color.
9867
98682008-05-08 Eli Zaretskii <eliz@gnu.org>
9869
9870 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9871 epa-hook.elc.
9872
98732008-05-08 Juanma Barranquero <lekktu@gmail.com>
9874
9875 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9876
98772008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9878
9879 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9880 because the original parameters are in pure storage now.
9881 (mac_window): Remove unused params. Update callers.
9882
98832008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9884
9885 * lread.c (substitute_object_recurse): Use lower-level primitives.
9886 Don't signal errors when traversing sub-char-tables.
9887 Don't loop over all the possible characters when traversing char-tables.
9888
9889 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9890 just like we do in print.c.
9891
98922008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9893
9894 * minibuf.c (Ftry_completion): Remove code left over from when we used
9895 scmp instead of Fcompare_strings.
9896
98972008-05-04 Juanma Barranquero <lekktu@gmail.com>
9898
9899 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9900
99012008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9902
9903 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9904 Create bitmap context in native byte order.
9905
9906 * macterm.c (XDrawLine)
9907 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9908 context in native byte order.
9909
99102008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9911
9912 * config.in: Regenerate.
9913
9914 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9915 New definitions for Image I/O support.
9916 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9917 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9918 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9919 (mac_data_provider_release_data, image_load_image_io)
9920 [USE_MAC_IMAGE_IO]: New functions.
9921 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9922 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9923 (init_image_func_pointer) [MAC_OSX]: Remove function.
9924 (image_load_quartz2d) [MAC_OSX]: Check availability of
9925 CGImageCreateWithPNGDataProvider at compile time.
9926 Use lowercase `false' for boolean constant.
9927 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9928 Use image_load_image_io.
9929 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9930 Don't check MyCGImageCreateWithPNGDataProvider.
9931 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9932 Don't call init_image_func_pointer.
9933
9934 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9935
9936 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9937 Make variable non-static.
9938 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9939 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9940
9941 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9942 (RED_FROM_ULONG): Mask off higher bits.
9943 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9944
9945 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9946 Include AvailabilityMacros.h.
9947 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9948 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9949
99502008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
9951
9952 * chartab.c (Fset_char_table_range): If range is t, really set all
9953 chars to that value.
9954
99552008-05-03 Eli Zaretskii <eliz@gnu.org>
9956
9957 * dired.c (Ffile_attributes): Don't allow the device number become
9958 negative.
9959
99602008-05-02 Daiki Ueno <ueno@unixuser.org>
9961
9962 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9963
99642008-05-02 Juri Linkov <juri@jurta.org>
9965
9966 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9967 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
9968 DEFAULT argument as a list of default values in docstrings.
9969
99702008-05-01 Chong Yidong <cyd@stupidchicken.com>
9971
9972 * puresize.h (BASE_PURESIZE): Increase to 1210000.
9973
99742008-05-01 Martin Rudalics <rudalics@gmx.at>
9975
9976 * dispnew.c (change_frame_size_1): Preserve small windows when
9977 shrinking frames by calling set_window_height|width with third
9978 arg 2.
9979
9980 * window.h (struct window): Replace field too_small_ok by field
9981 resize_proportionally.
9982
9983 * window.c (make_window): Initialize resize_proportionally.
9984 (enlarge_window): Temporarily set resize_proportionally to make
9985 sure that shrink_windows does scale the window proportionally.
9986 (shrink_windows): When window has resize_proportionally set try
9987 to shrink it proportionally by stealing from other windows.
9988 (struct saved_window, Fset_window_configuration)
9989 (compare_window_configurations): Handle resize_proportionally.
9990 (WINDOW_TOTAL_SIZE): New macro.
9991 (window_min_size, shrink_windows, size_window): Use it.
9992 (check_min_window_sizes): Remove. Invalid values of
9993 window-min-height|width are handled by window_min_size_2 now.
9994 (size_window, Fsplit_window, enlarge_window)
9995 (adjust_window_trailing_edge, grow_mini_window): Don't call
9996 check_min_window_sizes.
9997 (window_min_size_2, window_min_size_1, window_min_size):
9998 New argument safe_p for retrieving "safe" minimum sizes.
9999 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10000 (adjust_window_trailing_edge, grow_mini_window):
10001 Adjust arguments of window_min_size... functions.
10002 (shrink_windows): Argument min_size removed. New argument
10003 safe_p allows shrinking windows to their safe minimum sizes.
10004 Calculate minimum size and decide whether a window shall be
10005 deleted for each window individually.
10006 (size_window): When nodelete_p equals 2, tell shrink_windows to
10007 delete windows only if their new minimum size is no more safe.
10008 (shrink_window_lowest_first): Call window_min_size_1 to make
10009 sure to preserve modeline of bottom-most window when resizing
10010 the minibuffer.
10011 (Fset_window_configuration, Fcurrent_window_configuration)
10012 (compare_window_configurations): Do not handle
10013 window-min-height|width any more.
10014 (syms_of_window): Clarify window-min-height|width doc-strings.
10015
100162008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10017
10018 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10019 some more. Copy some of the code from Ftry_completions.
10020 Remove special case code that dates back to initial revision when the
10021 slash was only added when necessary and that can't trigger nowadays.
10022
100232008-04-27 Kenichi Handa <handa@m17n.org>
10024
10025 * font.c (font_prop_validate): Signal `error' instead of `font'.
10026
100272008-04-29 Jason Rumney <jasonr@gnu.org>
10028
10029 * w32fns.c (Fw32_battery_status): New defun.
10030 (syms_of_w32fns): Defsubr it.
10031
100322008-04-28 Andreas Schwab <schwab@suse.de>
10033
10034 * dired.c (file_name_completion): Fix another mixing of encoded
10035 and decoded names.
10036
100372008-04-28 Juanma Barranquero <lekktu@gmail.com>
10038
10039 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10040
100412008-04-27 Juanma Barranquero <lekktu@gmail.com>
10042
10043 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10044
100452008-04-27 Andreas Schwab <schwab@suse.de>
10046
10047 * dired.c (file_name_completion): Fix inappropriate mixing of
10048 encoded and decoded names.
10049
10050 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10051
10052 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10053
100542008-04-26 Eli Zaretskii <eliz@gnu.org>
10055
10056 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10057 2008-03-31, it's not needed anymore with `struct stat' definition
10058 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10059 for the same reasons.
10060
100612008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10062
10063 * m/sparc.h: Additional redefinitions for GNU/Linux.
10064
100652008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10066
10067 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10068 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10069 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10070 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10071 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10072 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10073 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10074 Likewise.
10075
10076 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10077 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10078 (mac_ax_number_of_characters): Add externs.
10079 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10080 [USE_MAC_TSM]: Likewise.
10081 (mac_handle_text_input_event) [MAC_OSX]:
10082 Handle kEventTextInputOffsetToPos for no active input area case.
10083 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10084 (mac_handle_document_access_event)
10085 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10086 (install_application_handler) [MAC_OSX]: Register handlers for
10087 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10088 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10089 Register mac_handle_document_access_event.
10090
10091 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10092 Make functions non-static.
10093
100942008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10095
10096 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10097 (read_file_name_completion_ignore_case, insert_default_directory)
10098 (Qdefault_directory): Move to minibuffer.el.
10099 (Fread_file_name): Call the new `read-file-name' instead.
10100
101012008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10102
10103 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10104 Make function non-static.
10105 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10106 Remove function.
10107 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10108 Move to mactoolbox.c.
10109 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10110
10111 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10112 (mac_rect_make): New macro.
10113
10114 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10115 instead of float.
10116 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10117 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10118 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10119 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10120 CGRectMake.
10121 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10122 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10123 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10124 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10125 instead of WindowRef in argument type.
10126 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10127 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10128 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10129 instead of DISPLAY. All uses changed.
10130 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10131 (x_calc_absolute_position): Simplify so as not to use
10132 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10133
10134 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10135 instead of WindowRef in argument type.
10136 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10137 [TARGET_API_MAC_CARBON]: Remove externs.
10138 (create_apple_event, mac_event_parameters_to_lisp)
10139 [TARGET_API_MAC_CARBON]: Add externs.
10140
10141 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10142 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10143 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10144 is clicked.
10145 (x_activate_menubar): Remove extern for saved_menu_event_location.
10146 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10147 Move from mac.c.
10148
101492008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10150
10151 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10152 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10153
101542008-04-23 Jason Rumney <jasonr@gnu.org>
10155
10156 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10157 attributes only for local files.
10158
10159 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10160 default to Qlocal.
10161
101622008-04-22 Juri Linkov <juri@jurta.org>
10163
10164 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10165 read-buffer-to-switch instead of using the letter "B".
10166
101672008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10168
10169 * fileio.c (Qdefault_directory): New variable.
10170 (Fread_file_name): Use it to pass `dir' to the completion functions.
10171
101722008-04-20 Chong Yidong <cyd@stupidchicken.com>
10173
10174 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10175
101762008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10177
10178 * keyboard.c (Vpre_help_message): Remove.
10179 (show_help_echo): Remove default C code.
10180
10181 * dired.c (directory_files_internal, file_name_completion):
10182 Only call ENCODE_FILE if the string is indeed decoded.
10183
101842008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10185
10186 * Makefile.in (TOOLKIT_DEFINES): Remove.
10187 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10188
101892008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10190
10191 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10192 (mactoolbox.o): New target.
10193
10194 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10195 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10196
10197 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10198 Use mac_set_frame_window_background instead of XSetWindowBackground.
10199 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10200 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10201 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10202 instead of SetWindowTitleWithCFString.
10203 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10204 Move function to mactoolbox.c.
10205 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10206 Use mac_set_window_modified instead of SetWindowModified.
10207 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10208 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10209 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10210 FrontNonFloatingWindow. Use mac_activate_window instead of
10211 ActivateWindow. Use mac_active_non_floating_window instead of
10212 ActiveNonFloatingWindow.
10213 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10214 Use mac_show_hourglass and mac_hide_hourglass.
10215 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10216 instead of GetGlobalMouse.
10217 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10218 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10219 Use mac_bring_window_to_front instead of BringToFront.
10220 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10221 mactoolbox.c.
10222 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10223 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10224 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10225 mactoolbox.c.
10226
10227 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10228 (XtPointer): Move typedef from macmenu.c.
10229 (enum button_type): Move enum from macmenu.c.
10230 (widget_value): Move typedef from macmenu.c.
10231 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10232 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10233 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10234 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10235 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10236 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10237 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10238 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10239 (Selection): Move typedef from macselect.c.
10240 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10241 macterm.c.
10242 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10243 (mac_is_window_collapsed, mac_bring_window_to_front)
10244 (mac_send_window_behind, mac_hide_window, mac_show_window)
10245 (mac_collapse_window, mac_front_non_floating_window)
10246 (mac_active_non_floating_window, mac_activate_window)
10247 (mac_move_window_structure, mac_move_window, mac_size_window)
10248 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10249
10250 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10251 (enum mac_menu_kind): Move enum to mactoolbox.c.
10252 (min_menu_id): Move variable to mactoolbox.c.
10253 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10254 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10255 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10256 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10257 [TARGET_API_MAC_CARBON]: Likewise.
10258 (XtPointer): Move typedef to macgui.h.
10259 (enum button_type): Move enum to macgui.h.
10260 (widget_value): Move typedef to macgui.h.
10261 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10262 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10263 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10264 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10265 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10266 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10267 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10268 (popup_activated_flag): Make variable non-static.
10269 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10270 (add_menu_item, fill_menu, dispose_menus):
10271 Move functions to mactoolbox.c.
10272 (restore_show_help_function, menu_target_item_handler)
10273 (install_menu_target_item_handler, mac_handle_dialog_event)
10274 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10275 [TARGET_API_MAC_CARBON]: Likewise.
10276 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10277 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10278 (find_and_call_menu_selection, name_is_separator): Make function
10279 non-static.
10280 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10281 to mactoolbox.c.
10282 (set_frame_menubar): Don't call install_menu_quit_handler.
10283 (menu_item_selection): New variable.
10284 (mac_menu_show): Use create_and_show_popup_menu.
10285 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10286 selection but set variable menu_item_selection. All uses changed.
10287 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10288 Call install_menu_quit_handler. Move to mactoolbox.c.
10289
10290 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10291 (Selection): Move typedef to macgui.h.
10292 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10293 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10294 Make variables non-static.
10295 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10296 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10297 Make functions non-static.
10298 (Vmac_service_selection) [MAC_OSX]: Likewise.
10299 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10300 (mac_valid_selection_target_p, mac_clear_selection)
10301 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10302 (mac_put_selection_value, mac_selection_has_target_p)
10303 (mac_get_selection_value, mac_get_selection_target_list)
10304 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10305 Move functions to mactoolbox.c.
10306 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10307 Likewise.
10308 (copy_scrap_flavor_data, mac_handle_service_event)
10309 (install_service_handler) [MAC_OSX]: Likewise.
10310 (syms_of_macselect) <Vmac_dnd_known_types>:
10311 Use mac_dnd_default_known_types.
10312
10313 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10314 Move to mactoolbox.c.
10315 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10316 (Fx_selection_owner_p): Add EXFUN.
10317 (install_window_handler, remove_window_handler, XSetWindowBackground):
10318 Remove externs.
10319 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10320 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10321 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10322 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10323 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10324 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10325 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10326 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10327 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10328 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10329 (mac_valid_selection_target_p, mac_clear_selection)
10330 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10331 (mac_put_selection_value, mac_selection_has_target_p)
10332 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10333 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10334 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10335 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10336 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10337 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10338 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10339 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10340 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10341
10342 * mactoolbox.c: New file.
10343
103442008-04-18 Jason Rumney <jasonr@gnu.org>
10345
10346 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10347
103482008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10349
10350 * character.c (Fmultibyte_char_to_unibyte):
10351 Return latin1 chars unchanged.
10352
10353 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10354 relocated if it points to `name'.
10355
103562008-04-17 Kenichi Handa <handa@m17n.org>
10357
10358 * data.c (Faset): Allow setting a multibyte character in an
10359 ASCII-only unibyte string.
10360
10361 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10362
103632008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10364
10365 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10366 done in config.h.
10367
103682008-04-16 Juanma Barranquero <lekktu@gmail.com>
10369
10370 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10371 (Fchar_direction): Add usage in the docstring.
10372
103732008-04-15 Chong Yidong <cyd@stupidchicken.com>
10374
10375 * keyboard.c (read_key_sequence): Remove always-true checks.
10376
103772008-04-14 Jason Rumney <jasonr@gnu.org>
10378
10379 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10380 compatibility struct, for better underline positioning.
10381
103822008-04-13 David Hansen <david.hansen@gmx.net>
10383
10384 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10385 string.
10386
103872008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10388
10389 * m/hp800.h (XUINT, XSET): Remove.
10390
103912008-04-12 Juanma Barranquero <lekktu@gmail.com>
10392
10393 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10394 previous change.
10395
103962008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10397
10398 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10399 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10400
104012008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10402
10403 * keymap.h (map_keymap_canonical): Declare.
10404 * xmenu.c (single_keymap_panes): Use it.
10405
104062008-04-11 Glenn Morris <rgm@gnu.org>
10407
10408 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10409 set the target's value to that of the alias.
10410
104112008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10412
10413 * term.c (set_tty_color_mode): Left over typo.
10414
104152008-04-10 Michael Albinus <michael.albinus@gmx.de>
10416
10417 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10418 only after check for file name handler functions. Signal, when
10419 native functionality is not supported.
10420 (syms_of_fileio): Declare it unconditionally.
10421
104222008-04-10 Jason Rumney <jasonr@gnu.org>
10423
10424 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10425 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10426
10427 * w32.c (logon_network_drive): Also logon to remote drives that
10428 are mapped to drive letters.
10429
104302008-04-10 Glenn Morris <rgm@gnu.org>
10431
10432 * xdisp.c (truncate-partial-width-windows): Doc fix.
10433
104342008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10435
10436 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10437 Move functions to minibuffer.el.
10438 (syms_of_fileio): Don't declare them.
10439
104402008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10441
10442 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10443 (syms_of_minibuf): Remove its initialization.
10444
10445 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10446
104472008-04-09 Juanma Barranquero <lekktu@gmail.com>
10448
10449 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10450
104512008-04-09 Jason Rumney <jasonr@gnu.org>
10452
10453 * makefile.w32-in (distclean): Delete makefile too.
10454 (maintainer-clean): New target.
10455
10456 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10457
10458 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10459 for new font backend and composite cases.
10460
104612008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10462
10463 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10464 Most of the code moved to run_timers.
10465 (do_pending_atimers): Call run_timers.
10466 (run_timers): New function.
10467
10468 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10469 run atimers.
10470
10471 * process.c (wait_reading_process_output): The same as above.
10472
104732008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10474
10475 * minibuf.c (last_exact_completion): Remove variable.
10476 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10477 (complete_and_exit_1, complete_and_exit_2)
10478 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10479 (Fdisplay_completion_list, display_completion_list_1)
10480 (Fminibuffer_completion_help, Fself_insert_and_exit)
10481 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10482 minibuffer.el.
10483 (syms_of_minibuf): Remove corresponding initializations.
10484
10485 * keyboard.c (Qdeactivate_mark): New var.
10486 (command_loop_1): Use it to call `deactivate-mark'.
10487 (syms_of_keyboard): Initialize it.
10488
10489 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10490 to another frame.
10491 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10492 Don't call set_tty_color_mode.
10493 (store_frame_param): Reset previous_frame rather than call
10494 set_tty_color_mode.
10495 * term.c (set_tty_color_mode): Rewrite.
10496 * dispextern.h (set_tty_color_mode): New type.
10497 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10498
104992008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10500
10501 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10502 for generic chars, which do not exist any more in emacs-unicode.
10503
105042008-04-08 Michael Albinus <michael.albinus@gmx.de>
10505
10506 * coding.c (detect_coding_emacs_mule)
10507 (Ffind_operation_coding_system): Fix typo.
10508
105092008-04-08 Jason Rumney <jasonr@gnu.org>
10510
10511 * w32uniscribe.c (SNAME): Extract only symbol name.
10512
10513 * w32font.h (struct w32_metric_cache): New struct.
10514 (w32font_info): Use it.
10515 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10516 (CACHE_BLOCKSIZE): New constants.
10517
10518 * w32font.c (Qja, Qko, Qzh): New symbols.
10519 (syms_of_w32font): Initialise them.
10520 (font_matches_spec): Use them to filter by language.
10521 (recompute_cached_metrics): Remove function.
10522 (compute_metrics, clear_cached_metrics): New functions.
10523 (w32font_encode_char): Use them to manage metric cache.
10524 (w32font_text_extents): Cache metrics for all glyphs on demand.
10525 Delay converting glyph indices to WORD until needed.
10526 (w32font_open_internal): Initialize metric cache to empty.
10527 (registry_to_w32_charset): Charset should always be a symbol.
10528 (fill_in_logfont, list_all_matching_fonts): Family should
10529 always be a symbol.
10530
105312008-04-06 Jason Rumney <jasonr@gnu.org>
10532
10533 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10534 Give up if glyph indices not supported. Use uniscribe obtained
10535 ABC widths for individual metrics. Map glyph clusters back to
10536 characters using fClusterStart flag. Return number of glyphs
10537 produced, not chars processed.
10538 (uniscribe_shape): Map char at FROM to current glyph.
10539
105402008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10541
10542 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10543 Use SetMenuItemHierarchicalMenu.
10544
105452008-04-05 Jason Rumney <jasonr@gnu.org>
10546
10547 * image.c (pbm_load): Allow color values up to 65535.
10548 Throw an error if max_color_idx is outside the supported range.
10549 Report an error when image size is invalid.
10550 Read two bytes at a time when raw images have max_color_idx above 255.
10551
105522008-04-05 Eli Zaretskii <eliz@gnu.org>
10553
10554 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10555 cFileName a file name that includes `?' characters, use the 8+3
10556 alias in cAlternateFileName instead.
10557
105582008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10559
10560 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10561 append "CCL: Quitted" when the CCL program is quitted.
10562 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10563
10564 * ccl.h (struct ccl_program): New member quit_silently.
10565
105662008-04-05 Chong Yidong <cyd@stupidchicken.com>
10567
10568 * search.c (compile_pattern_1): Treat non-nil and non-string of
10569 search-spaces-regexp as nil.
10570
10571 * minibuf.c (Fassoc_string): Tweak docstring.
10572
105732008-04-05 Eli Zaretskii <eliz@gnu.org>
10574
10575 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10576 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10577 2008-03-14 to force inode be positive.
10578
10579 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10580 _S_* ones, since we now use our own sys/stat.h.
10581 (stat, fstat): Don't mangle the inode number.
10582 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10583
105842008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10585
10586 * frame.h (struct frame): Give one more bit to `visible' since we use
10587 values larger than 1 to indicate obscured frames on ttys.
10588
10589 * keymap.c (Qkeymap_canonicalize): New var.
10590 (Fmap_keymap_internal): New fun.
10591 (describe_map): Use keymap-canonicalize.
10592
10593 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10594 (Fundo_boundary): Set them.
10595 (syms_of_undo): Initialize them.
10596 (record_point): Use them instead of last_point_position*.
10597 (last_undo_buffer): Change type.
10598
105992008-04-04 Jason Rumney <jasonr@gnu.org>
10600
10601 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10602 (recompute_cached_metrics): Don't set ascent and descent per char.
10603
10604 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10605 (uniscribe_check_otf): Add GC protection before consing.
10606 Rearrange loop for counting features.
10607
106082008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10609
10610 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10611 buffer with byte-size of source buffer.
10612
106132008-04-03 Chong Yidong <cyd@stupidchicken.com>
10614
10615 * callint.c (Fcall_interactively): Handle temporary region even
10616 when shift-select-mode is off.
10617
106182008-04-03 Jason Rumney <jasonr@gnu.org>
10619
10620 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10621
106222008-04-03 Kenichi Handa <handa@m17n.org>
10623
10624 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10625 (CATEGORY_MASK_UTF_16): Likewise.
10626 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10627 binary file.
10628 (detect_coding): Add null-byte detection for a binary file.
10629 (detect_coding_system): Likewise.
10630
106312008-04-03 Jason Rumney <jasonr@gnu.org>
10632
10633 * w32uniscribe.c: New file.
10634
10635 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10636
10637 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10638
10639 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10640 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10641 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10642 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10643 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10644 (Qphonetic): New symbols.
10645 (syms_of_w32font): Initialize them.
10646 (font_supported_scripts): Use them.
10647 (w32font_list_family): List all charsets.
10648 (w32font_text_extents, recompute_cached_metrics): Fix metric
10649 calculations.
10650 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10651 Give opentype fonts their own format.
10652 (font_matches_spec): New arguments backend and logfont.
10653 Handle :otf spec for uniscribe backend.
10654 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10655 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10656
10657 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10658 font backend.
10659 (globals_of_w32fns): Initialize uniscribe font backend.
10660
10661 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10662 dependencies.
10663 (w32uniscribe.$(O)): New file to build.
10664 (FONT_OBJ): Include w32uniscribe.$(O).
10665 (LIBS): Add uniscribe libraries.
10666
10667 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10668
106692008-04-02 Chong Yidong <cyd@stupidchicken.com>
10670
10671 * callint.c (Vshift_select_mode): New var.
10672 (Finteractive): Document new ^ spec.
10673 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10674 is present.
10675
10676 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10677 (command_loop_1): Avoid running the direct display versions of
10678 forward-char and backward-char if shift-selection may occur.
10679 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10680 shift-translation takes place.
10681
10682 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10683 avoid clobbering by define-minor-mode.
10684
10685 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10686 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10687
10688 * syntax.c (Fforward_word): Add ^ interactive spec.
10689
10690 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10691 (Fscroll_right): Add ^ interactive spec.
10692
106932008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10694
10695 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10696
10697 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10698
10699 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10700
107012008-03-31 Juri Linkov <juri@jurta.org>
10702
10703 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10704
107052008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10706
10707 * gtkutil.c (xg_set_geometry): Fix indentation.
10708 (xg_resize_outer_widget): Remove.
10709 (x_wm_size_hint_off): Fix indentation.
10710 (xg_frame_set_char_size): Call flush_and_sync after
10711 gtk_window_resize.
10712 (x_wm_set_size_hint): Pass NULL as geometry window to
10713 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10714 Add menu bar and tool bar height to base height.
10715 (xg_update_frame_menubar, free_frame_menubar)
10716 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10717 (update_frame_tool_bar, free_frame_tool_bar):
10718 Change xg_resize_outer_widget to xg_frame_set_char_size.
10719
107202008-03-30 Michael Albinus <michael.albinus@gmx.de>
10721
10722 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10723 (Fdbus_call_method): New parameter TIMEOUT.
10724 (dbus-send-signal): Optimize UNGCPRO call.
10725
107262008-03-29 Juri Linkov <juri@jurta.org>
10727
10728 * window.c (Fdisplay_buffer): Move call to
10729 Vsplit_window_preferred_function out of conditions that check
10730 if window is eligible for vertical splitting.
10731 When Vsplit_window_preferred_function is non-nil, call it and use
10732 its non-nil return value as window. Otherwise, continue doing
10733 vertical splitting using Fsplit_window with arg horflag=nil.
10734 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10735 default value from `split-window' to nil.
10736
107372008-03-29 Juri Linkov <juri@jurta.org>
10738
10739 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10740 for interactive code letters 'b' and 'B'.
10741
107422008-03-29 Eli Zaretskii <eliz@gnu.org>
10743
10744 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10745 multibyte string.
10746
107472008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10748
10749 * keyboard.c (pending_funcalls): New var.
10750 (timer_check): Run it.
10751 (syms_of_keyboard): Initialize it.
10752 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10753 (Vdelete_terminal_functions): New vars.
10754 (syms_of_terminal): Initialize them.
10755 (Fdelete_terminal): Run delete-terminal-functions.
10756 * xdisp.c (safe_eval): Rewrite.
10757 (safe_call2): New fun.
10758 * frame.c (Qdelete_frame_functions): New var.
10759 (syms_of_frame): Initialize it.
10760 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10761 * lisp.h (safe_call2, pending_funcalls): Declare.
10762
107632008-03-28 Andreas Schwab <schwab@suse.de>
10764
10765 * indent.c (Fmove_to_column): Move declaration before statements.
10766
107672008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10768
10769 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10770 (struct frame): Use bit fields for boolean vars.
10771
10772 * process.c (server_accept_connection): Simplify naming.
10773 (emacs_get_tty_pgrp): Use SDATA.
10774
10775 * coding.c (decode_coding_object): Fix last change.
10776
107772008-03-27 Jason Rumney <jasonr@gnu.org>
10778
10779 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10780
107812008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10782
10783 * charset.c (Fdefine_charset_internal): Change the way of
10784 registering charsets in Vcharset_order_list.
10785 (syms_of_charset): Make the charset `eight-bit' supplementary.
10786
107872008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10788
10789 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10790 operations, to avoid having the difference between pointers
10791 overflow.
10792
107932008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10794
10795 * indent.c (check_display_width): New fun.
10796 (scan_for_column): Use it.
10797
10798 * data.c (syms_of_data): Mark most-positive-fixnum and
10799 most-negative-fixnum as constants.
10800
10801 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10802
10803 * indent.c (scan_for_column): Extract from current_column_1.
10804 Merge with the same code from Fmove_to_column.
10805 (current_column_1, Fmove_to_column): Use it.
10806
108072008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10808
10809 * keymap.c (map_keymap_internal): New fun.
10810 (map_keymap): Use it.
10811 (Fmap_keymap_internal): New fun.
10812 (Fmap_keymap): Remove left-out test from before make_save_value.
10813
10814 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10815
10816 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10817 Use XCAR/XCDR.
10818
10819 * process.h (struct Lisp_Process): Remove filter_multibyte.
10820 * process.c (QCfilter_multibyte): Remove.
10821 (setup_process_coding_systems): Don't use filter_multibyte.
10822 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10823 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10824 (Fset_process_filter_multibyte): Change the coding-system to
10825 approximate the previous behavior.
10826 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10827 coding-system.
10828
10829 * coding.c (decode_coding_object): When not decoding into a buffer,
10830 obey the coding system's preference of (uni|multi)byte.
10831
108322008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10833
10834 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10835 every char is changed and has a different byte-length.
10836 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10837 Fix int -> EMACS_INT.
10838
108392008-03-23 David Hansen <david.hansen@gmx.net>
10840
10841 * dbusbind.c (xd_read_message): Remove extra copying of message
10842 strings. Check for NULL `interface' or `member'.
10843
108442008-03-22 Eli Zaretskii <eliz@gnu.org>
10845
10846 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10847 cFileName a file name that includes `?' characters, use the 8+3
10848 alias in cAlternateFileName instead.
10849
108502008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10851
10852 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10853
108542008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10855
10856 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10857 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10858 work on current_buffer only instead (that was already the case
10859 for some of the code anyway).
10860 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10861 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10862 (SET_PT, SET_PT_BOTH): Adjust.
10863 * intervals.h (set_point, temp_set_point, set_point_both)
10864 (temp_set_point_both): Remove redundant declarations.
10865
108662008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10867
10868 * fileio.c (Finsert_file_contents):
10869 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10870 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10871 when buffer != current_buffer anyway.
10872
108732008-03-20 Andreas Schwab <schwab@suse.de>
10874
10875 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10876 as default.
10877
108782008-03-19 Jason Rumney <jasonr@gnu.org>
10879
10880 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10881 (syms_of_w32fns): Initialize them.
10882 (HOURGLASS_ID): New constant.
10883 (x_window_to_frame): Don't check hourglass_window.
10884 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10885 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10886 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10887 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10888 Only change the cursor if hourglass is not active.
10889 (Fx_create_frame): Initialize frame's current_cursor.
10890 (hourglass_atimer): Remove.
10891 (hourglass_started): New function.
10892 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10893 (show_hourglass): Adapt to w32, changing argument to frame.
10894
10895 * w32term.h (struct w32_output): Remove hourglass_window.
10896 Add current_cursor.
10897
10898 * eval.c (call_debugger, Fsignal):
10899 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10900 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10901 (Fexecute_extended_command, cancel_hourglass_unwind):
10902 * minibuf.c (read_minibuf):
10903 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10904
109052008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10906
10907 * window.c (run_funs): New fun.
10908 (run_window_configuration_change_hook): Use it to run the buffer-local
10909 and the global part of the hook.
10910
10911 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10912 (unwind_format_mode_line): Restore selected window.
10913 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10914
109152008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10916
10917 * editfns.c (Fchar_equal): Check they are valid characters.
10918
10919 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10920
109212008-03-17 Andreas Schwab <schwab@suse.de>
10922
10923 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10924 against a charset.
10925
10926 * lisp.h (Fbuffer_list): Declare.
10927
109282008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 10929
aac0c6e3
MR
10930 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10931 handlebox_widget is != 0.
10932
109332008-03-16 Juri Linkov <juri@jurta.org>
10934
10935 * callint.c (Fcall_interactively): For interactive code letters
10936 'b' and 'B' put the buffer list into the list of default "future"
10937 values of the minibuffer.
10938
109392008-03-16 Andreas Schwab <schwab@suse.de>
10940
10941 * keyboard.c (read_key_sequence): Fix downcasing of letters with
10942 modifiers.
10943
10944 * regex.c (re_match_2_internal): Correct matching of a charset
10945 against latin-1 characters.
10946
109472008-03-16 Kenichi Handa <handa@m17n.org>
10948
10949 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10950 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10951 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10952 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10953 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10954 CHAR_STRING_ADVANCE.
10955 (produce_chars): Fix for the case that the source and the
10956 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
10957 instead of CHAR_STRING_ADVANCE.
10958 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10959 STRING_CHAR_ADVANCE.
10960
109612008-03-15 Andreas Schwab <schwab@suse.de>
10962
10963 * regex.c (re_match_2_internal): Correct matching of eight bit
10964 characters in unibyte strings.
10965
109662008-03-15 Martin Rudalics <rudalics@gmx.at>
10967
10968 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
10969 at end of range when it coincides with the end of the buffer.
10970
109712008-03-14 Eli Zaretskii <eliz@gnu.org>
10972
10973 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
10974
10975 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
10976
109772008-03-14 Jason Rumney <jasonr@gnu.org>
10978
10979 * editfns.c (initial_tz): New variable.
10980 (syms_of_editfns): Initialize it.
10981 (Fset_time_zone_rule): Set it when first called.
10982 Use it when TZSTRING is nil.
10983
10984 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
10985 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
10986 (monitor_from_point_fn, get_monitor_info_fn): New globals.
10987 (globals_of_w32fns): Initialize them.
10988 (compute_tip_xy): Use them to position tooltips.
10989
109902008-03-14 Glenn Morris <rgm@gnu.org>
10991
10992 * emacs.c (main): Revert previous change.
10993 (standard_args): Revert -internal-script back to -scriptload,
10994 and remove the long-option form.
10995
109962008-03-13 Glenn Morris <rgm@gnu.org>
10997
10998 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
10999 Remove option -enable-font-backend.
11000
110012008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11002
11003 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11004
110052008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11006
11007 * xterm.c (x_connection_closed): For GTK: If this is the last
11008 terminal just exit without closing the display.
11009
110102008-03-11 Jason Rumney <jasonr@gnu.org>
11011
11012 * w32font.c (w32font_full_name): Use floor to round.
11013
f0131492 110142008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11015
11016 * sound.c (alsa_configure): Declare vol at beginning of block.
11017
11018 * fontset.c (Ffontset_info): Remove extra semicolon.
11019
110202008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11021
11022 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11023 size of resulting string.
11024
110252008-03-10 Jason Rumney <jasonr@gnu.org>
11026
11027 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11028
110292008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11030
11031 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11032 Don't pretend as if characters with display property haven't been
11033 consumed for string-replacing-string case.
11034
110352008-03-08 Kim F. Storm <storm@cua.dk>
11036
11037 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11038 (get_next_display_element, next_element_from_string)
11039 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11040
110412008-03-08 Andreas Schwab <schwab@suse.de>
11042
11043 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11044
110452008-03-06 Jason Rumney <jasonr@gnu.org>
11046
11047 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11048 when charset not specified. Only translate ANSI to unicode when
11049 font_type is truetype.
11050 (w32font_coverage_ok): New function.
11051 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11052
110532008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11054
11055 * lread.c (Fread_char): Resolve modifiers.
11056 (Fread_char_exclusive): Likewise.
11057
11058 * character.c (char_resolve_modifier_mask): New function.
11059 (char_string): Use char_resolve_modifier_mask.
11060 (Fchar_resolve_modifiers): New function.
11061 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11062 function.
11063
110642008-03-04 Jason Rumney <jasonr@gnu.org>
11065
11066 * makefile.w32-in: Always include w32font.c in the build.
11067 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11068
110692008-03-04 Andreas Schwab <schwab@suse.de>
11070
11071 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11072 (versionclean): Likewise.
11073
110742008-03-04 Juanma Barranquero <lekktu@gmail.com>
11075
11076 * .cvsignore: Add oo.
11077
110782008-03-03 Andreas Schwab <schwab@suse.de>
11079
11080 * coding.c (decode_coding_object): Inhibit gap shrinking while
11081 decoding in place.
11082
110832008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11084
11085 * w32term.c: Remove unused include "gnu.h".
11086 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11087
11088 * gnu.h: Rename to ...
11089 * emacs-icon.h: ... this.
11090 * xterm.c: Use emacs-icon.h instead of gnu.h.
11091 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11092
110932008-03-03 Juanma Barranquero <lekktu@gmail.com>
11094
11095 * w32font.c: Include math.h.
11096
110972008-03-03 Jason Rumney <jasonr@gnu.org>
11098
11099 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11100 Compute options separately.
11101 (w32font_open_internal): Set glyph_idx before caching metrics.
11102
11103 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11104 Define if system headers don't.
11105 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11106 (w32font_encode_char): Don't declare here.
11107
11108 * w32font.c (Quniscribe, QCformat): New symbols.
11109 (syms_of_w32font): Define them.
11110 (w32font_has_char): Indicate uncertainty.
11111 (w32font_encode_char): Encode as glyph point. Make static.
11112 (recompute_cached_metrics): New function.
11113 (w32font_open_internal): Use it. Set font to use glyph points
11114 initially. Set format based on type of font.
11115 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11116 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11117 on it. Set format based on information available here.
11118 (add_font_entity_to_list): Identify backend based on opentype_only.
11119
111202008-03-02 Andreas Schwab <schwab@suse.de>
11121
11122 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11123
11124 * coding.c (decode_coding_big5, produce_chars):
11125 Fix typos in last change.
11126
111272008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11128
11129 * gnu.h: New icon.
11130
111312008-03-02 Kenichi Handa <handa@m17n.org>
11132
11133 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11134 `dos', don't decode '\r' if that is the last in the source.
11135 (decode_coding_utf_16, decode_coding_emacs_mule)
11136 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11137 (decode_coding_raw_text, decode_coding_charset): Likewise.
11138 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11139
111402008-03-01 Jason Rumney <jasonr@gnu.org>
11141
11142 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11143
111442008-03-01 Kim F. Storm <storm@cua.dk>
11145
11146 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11147
111482008-03-01 Jason Rumney <jasonr@gnu.org>
11149
11150 * w32font.c (w32font_full_name): New function.
11151 (w32font_open_internal): Use it.
11152
111532008-03-01 Kim F. Storm <storm@cua.dk>
11154
11155 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11156
111572008-03-01 Jason Rumney <jasonr@gnu.org>
11158
11159 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11160
111612008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11162
11163 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11164 xg_frame_resized when the event is for the edit widget.
11165
11166 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11167
11168 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11169 set_char_size.
11170 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11171 operations on widgets here. Just set frame size if needed.
11172 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11173 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11174 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11175 the whole frame.
11176 (xg_create_tool_bar): Move attachment of the tool bar to
11177 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11178 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11179
111802008-03-01 Jason Rumney <jasonr@gnu.org>
11181
11182 * w32fns.c (w32_msg_pump): Disable debug code.
11183
111842008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11185
11186 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11187
111882008-02-29 Chong Yidong <cyd@stupidchicken.com>
11189
11190 * xdisp.c (next_overlay_string): Don't set
11191 overlay_strings_at_end_processed_p if we're currently reading from
11192 a display string.
11193
111942008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11195
11196 * xdisp.c (get_overlay_strings_1): Fix typo.
11197
111982008-02-29 Chong Yidong <cyd@stupidchicken.com>
11199
11200 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11201
112022008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11203
11204 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11205
11206 * xdisp.c (display_mode_element): Cancel the previous change.
11207 (decode_mode_spec): Likewise.
11208 (handle_auto_composed_prop): Don't make composition if it->string
11209 is a string.
11210
112112008-02-27 Kim F. Storm <storm@cua.dk>
11212
11213 * lisp.h (GLYPH): Change type from int to struct with separate char
11214 and face_id members.
11215 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11216 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11217 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11218 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11219 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11220 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11221 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11222 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11223 handle new Lisp glyph code encoding, either an integer or a cons.
11224
11225 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11226 (GLYPH_ALIAS): Delete.
11227 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11228 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11229 (GLYPH_FROM_CHAR): Replace macro by ...
11230 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11231
11232 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11233 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11234 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11235 (GLYPH_INVALID_P): New macro.
11236 (spec_glyph_lookup_face): Update prototype.
11237
11238 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11239 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11240 new glyph code encoding.
11241 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11242 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11243
11244 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11245 Adapt to new glyph type and new glyph code encoding.
11246
11247 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11248
11249 * indent.c (current_column, current_column_1, Fmove_to_column)
11250 (compute_motion): Adapt to new glyph code encoding.
11251
11252 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11253
112542008-02-27 Chong Yidong <cyd@stupidchicken.com>
11255
11256 * process.c (wait_reading_process_output): Check for window
11257 changes caused by timers.
11258 Suggested by Johan Bockgård.
11259
112602008-02-27 Glenn Morris <rgm@gnu.org>
11261
11262 * emacs.c (USAGE1): Add `--disable-font-backend'.
11263
112642008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11265
11266 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11267 is made to the buffer.
11268
112692008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11270
11271 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11272 (face_at_string_position):
11273 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11274 (face_at_string_position):
11275 * xdisp.c (display_string, next_overlay_change):
11276 * buffer.h (overlays_at):
11277 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11278 Update callers.
11279
112802008-02-26 Chong Yidong <cyd@stupidchicken.com>
11281
11282 * editfns.c (Fformat): Doc fix.
11283
112842008-02-26 Juanma Barranquero <lekktu@gmail.com>
11285
11286 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11287 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11288 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11289
112902008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11291
11292 * buffer.c (Fbuffer_swap_text): New function.
11293 (syms_of_buffer): Defsubr it.
11294
112952008-02-25 Chong Yidong <cyd@stupidchicken.com>
11296
11297 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11298
112992008-02-25 Jason Rumney <jasonr@gnu.org>
11300
11301 * w32font.c (w32font_draw): Draw one character at a time when padding.
11302
113032008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11304
11305 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11306 Handle a nil arg. Use run_window_configuration_change_hook.
11307 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11308 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11309 Use run_window_configuration_change_hook.
11310
113112008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11312
11313 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11314 1-pixel width.
11315
113162008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11317
11318 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11319 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11320 if the glyph in the font is zero pixel with.
11321
11322 * dispextern.h (struct glyph_string): New member padding_p.
11323
11324 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11325
11326 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11327
11328 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11329
11330 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11331
11332 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11333
113342008-02-25 Jason Rumney <jasonr@gnu.org>
11335
11336 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11337
113382008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11339
11340 Allow fine-grained image-cache flushing.
11341 * dispextern.h (struct image): Add `dependencies' field.
11342 (clear_image_caches): Change arg to Lisp_Object.
11343 * image.c (make_image): Initialize `dependencies' field.
11344 (clear_image_cache): Change arg to allow fine-grained flushing.
11345 Perform the flush even if image-cache-eviction-delay is nil.
11346 (clear_image_caches): Change arg to Lisp_Object.
11347 (Fclear_image_cache): Expand meaning of the argument.
11348 (mark_image): Mark `dependencies' field.
11349 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11350 (lface_hash): Use XHASH rather than XFASTINT.
11351 (face_at_buffer_position): Fix int -> EMACS_INT position.
11352 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11353 (select_frame_for_redisplay): Remove code duplication.
11354 (redisplay_internal): Adapt arg to call to clear_image_caches.
11355
113562008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11357
11358 * s/vms4-0.h:
11359 * s/vms4-2.h:
11360 * s/vms4-4.h:
11361 * s/vms5-5.h: Remove, unused.
11362
11363 * s/irix5-2.h:
11364 * s/irix6-0.h:
11365 * s/riscos5.h:
11366 * s/mach-bsd4-3.h:
11367 * m/mips4.h: Remove files for obsolete systems.
11368
11369 * Makefile.in:
11370 * filelock.c:
11371 * unexmips.c:
11372 * m/hp9000s300.h:
11373 * m/iris4d.h:
11374 * s/aix3-1.h:
11375 * s/hpux.h:
11376 * s/msdos.h:
11377 * s/usg5-0.h:
11378 * s/usg5-2-2.h:
11379 * s/usg5-2.h:
11380 * s/usg5-3.h: Remove references to obsolete variables.
11381
11382 * s/irix5-0.h: Remove, move all the contents ...
11383 * s/irix6-5.h: ... here. Simplify.
11384 * config.in: Regenerate.
11385
113862008-02-24 Jason Rumney <jasonr@gnu.org>
11387
11388 * w32term.c (x_draw_glyph_string_background): Clear the background
11389 manually when cleartype is in use.
11390 (x_draw_glyph_string_foreground): Draw text transparently when
11391 cleartype is in use.
11392
11393 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11394 a font into it unless we have to.
11395
113962008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11397
11398 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11399 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11400
aac0c6e3
MR
114012008-02-18 Jason Rumney <jasonr@gnu.org>
11402
11403 * w32fns.c (Fw32_shell_execute): Encode parameters.
11404
114052008-02-09 Eli Zaretskii <eliz@gnu.org>
11406
11407 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11408
114092008-02-05 Juanma Barranquero <lekktu@gmail.com>
11410
11411 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11412
114132008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11414
11415 * xterm.c (x_set_offset): Don't change the gravity if
11416 CHANGE_GRAVITY is -1.
11417
114182008-02-23 Chong Yidong <cyd@stupidchicken.com>
11419
11420 * fileio.c (auto_save_error_occurred): New var.
11421 (auto_save_error): Set it.
11422 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11423 error occurred.
11424
114252008-02-23 Eli Zaretskii <eliz@gnu.org>
11426
11427 * w32.c (globals_of_w32): Add initializations for
11428 g_b_init_get_sid_sub_authority and
11429 g_b_init_get_sid_sub_authority_count.
11430
114312008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11432
11433 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11434 (font_parse_xlfd): Use them for sanity check.
11435 (Finternal_set_font_style_table): Make sure the table is bijective.
11436
11437 Consolidate the image_cache to the terminal struct.
11438 * termhooks.h (P_): Remove redundant def.
11439 (struct terminal): New field `image_cache'.
11440 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11441 of FRAME_X_IMAGE_CACHE.
11442 * xterm.h (struct x_display_info): Remove image_cache field.
11443 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11444 * w32term.h (struct w32_display_info): Remove image_cache field.
11445 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11446 * macterm.h (struct mac_display_info): Remove image_cache field.
11447 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11448 * xterm.c (x_term_init):
11449 * w32term.c (w32_term_init):
11450 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11451 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11452 Remove declarations.
11453 (clear_image_caches, mark_image_cache): New declarations.
11454 * xfaces.c (clear_face_cache):
11455 * xdisp.c (redisplay_internal): Use clear_image_caches.
11456 * image.c (clear_image_cache): Don't check that a frame is on
11457 a window-system before checking if it shares the same cache.
11458 (clear_image_caches): New function.
11459 (Fclear_image_cache): Use it.
11460 (mark_image): Move from allo.c.
11461 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11462 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11463 (mark_object): Don't call mark_image_cache for frames.
11464 (mark_terminals): Call mark_image_cache.
11465
11466 * lisp.h (Fdelete_terminal): Declare.
11467
11468 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11469 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11470 wrong_type_argument.
11471
114722008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11473
11474 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11475 malayalam.el, and tamil.el. Add sinhala.el.
11476
114772008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11478
11479 * xterm.c (x_connection_closed): Consolidate identical tests.
11480 (x_delete_terminal): Don't crash if called via x_connection_closed.
11481
114822008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11483
11484 * xdisp.c (decode_mode_spec): New arg string.
11485 (display_mode_element): Adjust for the above change.
11486
114872008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11488
11489 * callint.c (Fcall_interactively): Use AREF.
11490
114912008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11492
11493 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11494
114952008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11496
11497 * xfns.c (Fx_show_tip): Set string to " " if empty.
11498
114992008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11500
11501 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11502 with Qt.
11503
115042008-02-17 Kenichi Handa <handa@m17n.org>
11505
11506 * ftfont.c (ftfont_shape): Return Lispy number.
11507
11508 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11509 for GCs.
11510 (Finternal_set_font_selection_order): Call font_update_sort_order
11511 only when enable_font_backend is set.
11512 (realize_x_face): Set face->font_info to that of default face only
11513 when enable_font_backend is set.
11514
11515 * xdisp.c (handle_composition_prop): Set it->c to the fist
11516 character of the composed region.
11517 (fill_composite_glyph_string): Set base_face->font_info to
11518 s->font_info. Get a face for ascii from base_face->ascii_face.
11519 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11520 with a face already decided.
11521 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11522 non-negative.
11523 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11524 call font_prepare_composition unconditionally.
11525
11526 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11527
11528 * xterm.h (struct x_display_info): New member font.
11529
11530 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11531 (x_set_mouse_face_gc, x_new_font): Likewise.
11532 (x_term_init): Setup display_info->font.
11533 (x_delete_terminal): Free display_info->font.
11534
11535 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11536
11537 * ftxfont.c (ftxfont_default_fid): Delete it.
11538 (ftxfont_open): Set xfont->fid to 0.
11539 (ftxfont_end_for_frame): Clear data specific to the frame and the
11540 font-driver.
11541
11542 * xftfont.c (xftfont_default_fid): Delete it.
11543 (xftfont_open): Set xfont->fid to 0.
11544
11545 * fontset.c (FONTSET_OBJLIST): New macro.
11546 (fontset_find_font): Update font-object list of the fontset.
11547 (free_realized_fontset): New function.
11548 (free_face_fontset): Call free_realized_fontset.
11549 (Ffont_info): Call font_close_object only when enable_font_backend
11550 is set.
11551
11552 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11553 [HAVE_NTGUI]: Include w32term.h.
11554 [MAC_OS]: Include macterm.ch.
11555 (font_otf_ValueRecord): Use make_number.
11556 (font_finish_cache): Fix handling of reference count.
11557 (font_clear_cache): Update num_fonts.
11558 (font_open_entity): Update smallest_char_width and
11559 smallest_font_height of the frame.
11560 (font_close_object): Update num_fonts.
11561 (Fclear_font_cache): Fix finding the target cache data.
11562
115632008-02-16 Glenn Morris <rgm@gnu.org>
11564
11565 * fontset.c (Finternal_char_font): Fix compilation warning.
11566
115672008-02-16 Eli Zaretskii <eliz@gnu.org>
11568
11569 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11570 instead of char arrays. Enlarge the size of array passed to
11571 get_token_information.
11572
11573 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11574 warnings.
11575
115762008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11577
11578 * .gdbinit: Don't set `args', it breaks gdb --args.
11579
115802008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11581
11582 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11583 within a narrowed buffer.
11584
115852008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11586
11587 * coding.c (decode_coding_object, encode_coding_object):
11588 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11589
115902008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11591
11592 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11593 hardcoding 1.
11594 (detect_coding_system):
11595 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11596 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11597 * insdel.c (insert_from_gap):
11598 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11599 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11600 (string_to_multibyte):
11601 * character.c (chars_in_text, multibyte_chars_in_text):
11602 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11603
11604 * character.h (FETCH_STRING_CHAR_ADVANCE)
11605 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11606 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11607 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11608
11609 * casefiddle.c (casify_region): Only call after-change and composition
11610 functions on the part of the region that was changed.
11611
11612 * keyboard.c (read_avail_input):
11613 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11614
116152008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11616
11617 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11618 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11619
116202008-02-11 Juanma Barranquero <lekktu@gmail.com>
11621
11622 * w32menu.c (push_submenu_start, push_submenu_end)
11623 (push_left_right_boundary, push_menu_pane, push_menu_item):
11624 * keyboard.c (read_key_sequence): Don't pass args with side effects
11625 to AREF, it fails when compiling with -DENABLE_CHECKING.
11626
116272008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11628
11629 * Makefile.in (${lispsource}international/charprop.el):
11630 Delete this target.
11631
11632 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11633 emacs-unicode-2.
11634
116352008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11636
11637 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11638
116392008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11640
11641 * frame.c (Qnoelisp): New symbol.
11642 (syms_of_frame): Initialize it.
11643 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11644 harmless Elisp code, from a strong `force' from x_connection_closed.
11645 * frame.h (Qnoelisp): Declare.
11646 * xterm.c (x_connection_closed): Pass `noelisp'.
11647
11648 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11649 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11650 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11651 rather than `int' for the type of `type'.
11652
116532008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11654
11655 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11656
11657 * Makefile.in (GNUC): Remove support for gcc-1.x.
11658
116592008-02-10 Richard Stallman <rms@gnu.org>
11660
11661 * lisp.h (ASET): Use AREF, not ASLOT.
11662
116632008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11664
11665 * lisp.h (ASET): Check bounds.
11666
116672008-02-10 Glenn Morris <rgm@gnu.org>
11668
11669 * buffer.c (mode-name): Doc fix.
11670
116712008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11672
11673 * Makefile.in:
11674 * emacs.c:
11675 * gmalloc.c:
11676 * keyboard.c:
11677 * lisp.h:
11678 * m/ibm370aix.h:
11679 * process.c:
11680 * regex.c:
11681 * s/hpux.h:
11682 * sysdep.c:
11683 * sysselect.h:
11684 * systty.h:
11685 * unexec.c:
11686 * w32term.c:
11687 * xsmfns.c:
11688 * xterm.c: Remove code that deals with obsolete variables.
11689
11690 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11691
11692 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11693 nothing else needs it anymore.
11694
116952008-02-09 Eli Zaretskii <eliz@gnu.org>
11696
11697 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11698 instead of unibyte_char_to_multibyte.
11699
117002008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11701
11702 * s/gnu-linux.h: Remove commented out code.
11703
11704 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11705
11706 * Makefile.in: Update what RMS says about using autoconf.
11707 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11708 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11709 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11710 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11711
117122008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11713
11714 * keymap.c (Fkey_description): Move side effect outside of macro call.
11715
11716 * xfaces.c (Finternal_make_lisp_face):
11717 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11718
11719 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11720 (syms_of_fontset): Use ASET.
11721
11722 * fns.c (concat): Move side effect outside of macro call.
11723 (hash_clear): Use ASET.
11724
117252008-02-08 Richard Stallman <rms@gnu.org>
11726
11727 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11728 If FORCE, and frame has a surrogate minibuffer for another frame,
11729 delete the other frame first.
11730
117312008-02-07 Timo Savola <timo.savola@iki.fi>
11732
11733 * xterm.c (x_detect_focus_change): Handle embed client message.
11734 (handle_one_xevent): Ditto.
11735 (handle_one_xevent): If embedded and we get a button press/release,
11736 request focus.
11737 (xembed_set_info, xembed_send_message): New functions.
11738 (x_make_frame_visible): Call xembed_set_info if embedded.
11739 (x_make_frame_invisible): Call xembed_set_info if embedded.
11740 (x_term_init): Initialize Xatom_XEMBED.
11741 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11742 (x_iconify_frame): Ditto.
11743
11744 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11745 (enum xembed_info, enum xembed_message, enum xembed_focus)
11746 (enum xembed_modifier, enum xembed_accelerator): New.
11747 (xembed_set_info, xembed_send_message): Declare.
11748 (FRAME_X_EMBEDDED_P): New.
11749
11750 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11751 gtk_plug_new.
11752
11753 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11754 window ID of a frame.
11755 (x_window): Reparent frame if embedded.
11756 (Fx_create_frame): Don't set border width if embedded.
11757
11758 * emacs.c (USAGE3): Add --parent-id.
11759 (standard_args): Ditto.
11760
117612008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11762
11763 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11764
117652008-02-07 Jim Meyering <meyering@redhat.com>
11766
11767 Use "do...while (0)", not "if (1)...else" in macro definitions.
11768 The latter provokes a warning from gcc about the empty else, when
11769 followed by ";". Also, without that trailing semicolon, it would
11770 silently swallow up any following statement.
11771 * syntax.h (SETUP_SYNTAX_TABLE)
11772 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11773 * buffer.h (DECODE_POSITION): Likewise.
11774 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11775 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11776 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11777 (FETCH_CHAR_ADVANCE): Likewise.
11778 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11779
117802008-02-07 Jim Meyering <meyering@redhat.com>
11781
11782 * lread.c [lint]: Don't include <sys/inode.h>.
11783
117842008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11785
11786 * xselect.c (x_handle_dnd_message):
11787 * xmenu.c (digest_single_submenu, xmenu_show):
11788 * xdisp.c (with_echo_area_buffer_unwind_data)
11789 (format_mode_line_unwind_data, unwind_format_mode_line)
11790 (display_menu_bar):
11791 * eval.c (Ffetch_bytecode):
11792 * doc.c (store_function_docstring):
11793 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11794 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11795 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11796
117972008-02-07 Kenichi Handa <handa@m17n.org>
11798
11799 * ftxfont.c (ftxfont_open): Don't set
11800 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11801
11802 * ftfont.c (ftfont_open): Fix previous change.
11803
118042008-02-06 Jason Rumney <jasonr@gnu.org>
11805
11806 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11807 Use cached metrics for ASCII characters.
11808 (w32font_open_internal): Don't set font's owning_frame.
11809 Cache metrics for ASCII characters.
11810
11811 * w32font.h (struct w32font_info): Add ascii_metrics.
11812 Remove owning_frame.
11813
118142008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11815
11816 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11817 to negative value.
11818
11819 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11820
11821 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11822
11823 * charset.c (syms_of_charset): Set QCtest and Qeq.
11824
118252008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11826
11827 * process.c (Fstart_process):
11828 * callproc.c (Fcall_process): Handle the case where
11829 Funhandled_file_name_directory returns nil.
11830
11831 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11832 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11833 * font.c (check_gstring): Use them and AREF to access the vector before
11834 we know it's really a gstring.
11835 (Ffont_shape_text): Fix typo.
46e722a9 11836 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
11837
11838 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11839 Declare.
11840
11841 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11842
118432008-02-05 Jason Rumney <jasonr@gnu.org>
11844
11845 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11846 Set smallest_font_height and smallest_char_width in display info.
11847
118482008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11849
11850 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11851
118522008-02-05 Miles Bader <miles@gnu.org>
11853
11854 * xfaces.c (get_lface_attributes, merge_named_face)
11855 (lookup_named_face, lookup_derived_face, realize_named_face):
11856 Revert 2008-02-01 change by cyd@stupidchicken.com.
11857
118582008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11859
11860 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11861 fallback fonts.
11862 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11863
118642008-02-04 Jason Rumney <jasonr@gnu.org>
11865
11866 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11867 set full_name.
11868 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11869
118702008-02-03 Jason Rumney <jasonr@gnu.org>
11871
11872 * makefile.w32-in (OBJ1): Include font.o here.
11873 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11874
118752008-02-02 Jason Rumney <jasonr@gnu.org>
11876
11877 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11878
118792008-02-01 Jason Rumney <jasonr@gnu.org>
11880
11881 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11882
11883 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11884
118852008-02-01 Andreas Schwab <schwab@suse.de>
11886
11887 * Makefile.in (shortlisp, lisp): Update for rename of
11888 ../lisp/language/myanmar.el.
11889
118902008-02-01 Chong Yidong <cyd@stupidchicken.com>
11891
11892 * xfaces.c (get_lface_attributes): Delete function.
11893 (merge_named_face, lookup_named_face, lookup_derived_face)
11894 (realize_named_face): Call lface_from_face_name directly, and use
11895 the fact that merge_face_vectors does not alter its FROM argument.
11896
118972008-02-01 Jason Rumney <jasonr@gnu.org>
11898
11899 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11900 input in the default locale. Handle non-Unicode multibyte input.
11901
119022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11903
11904 * fontset.c (reorder_font_vector): Exclude nil elements from the
11905 font group. Don't try multiple fonts.
11906 (fontset_font): Adjust for the above change.
11907 (Finternal_char_font): Return nil if the found font doesn't
11908 contain the character ch.
11909
11910 * Makefile.in (lisp, shortlisp): Add cham.el.
11911
119122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11913
11914 * font.h (FONTP): Make it return 1 also for a font-object.
11915
11916 * .gdbinit (xfontset): New function.
11917
11918 * font.c (font_find_for_lface): Check if the character C is
11919 supported or not only for the first font.
11920
11921 * fontset.c (reorder_font_vector): Fix typo.
11922 (fontset_find_font): Don't add a font-spec specifying a script.
11923 Use 0 (not Qt) for the indication of empty font-group. Change the
11924 format of RFONT-DEF. Return Qt if no font in the font-group
11925 support the character.
11926 (fontset_font): Adjust for the above change. If no font was
11927 found the character, remember that.
11928 (face_for_char): Adjust for the change of RFONT-DEF.
11929 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11930 no font for the target.
11931 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11932
119332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11934
11935 * font.c (font_load_for_face): Handle the case that the font in
11936 face->lface is a string.
11937
119382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11939
11940 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11941
119422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11943
11944 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11945 Fix previous change. If the frame is not on a window system,
11946 signal an error.
11947
119482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11949
11950 * coding.c (decode_coding_object, encode_coding_object): Adjust
11951 marker positions after conversion.
11952
11953 * lisp.h (struct Lisp_Marker): New member need_adjustment.
11954
119552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11956
11957 * font.c (font_find_for_lface): Fix the handling of the return
11958 value of font_has_char.
11959 (Ffont_shape_text): Fix previous change.
11960
11961 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11962 (fontset_ref_and_range): Delete it.
11963 (fontset_find_font): Call char_table_ref_and_range instead of
11964 FONTSET_REF_AND_RANGE.
11965 (make_fontset): Don't setup font groups of Latin here.
11966 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11967 (new_fontset_from_font): Make the specified font the default for
11968 all Latin characters.
11969
119702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11971
11972 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
11973 is on a window system before accessing the fontset of the frame.
11974
119752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11976
11977 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
11978
11979 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
11980 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
11981
11982 * font.c (Ffont_shape_text): If the font driver doesn't have a
11983 shaper function, make zero-width glyphs to have at least one-pixel
11984 width. Fix setting of `to' field of glyphs.
11985
119862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11987
11988 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
11989 glyphs.
11990
11991 * font.h (struct font_driver): Improve docstring of member `shape'.
11992
119932008-02-01 Kenichi Handa <handa@m17n.org>
11994
11995 * composite.c (syms_of_composite): Fix docstring of
11996 auto-composition-function.
11997
11998 * font.h (LGLYPH_SIZE): New macro.
11999
12000 * font.c (Ffont_fill_gstring): Stop filling when a character not
12001 supported by the font is found.
12002 (Ffont_shape_text): When a shape callback function returns nil,
12003 try at most two more times with larger gstring.
12004 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12005
12006 * xdisp.c (handle_auto_composed_prop): Change the argument to
12007 auto-composition-function.
12008
12009 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12010 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12011 Lispy glyph and store it in the lgstring.
12012
12013 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12014
12015 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12016
120172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12018
12019 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12020
12021 * fontset.c (Vfont_encoding_charset_alist): New variable.
12022 (syms_of_fontset): DEFVAR it.
12023 (reorder_font_vector, fontset_find_font): Optimize for the case of
12024 no need of reordering.
12025 (face_for_char): Map the charset property by
12026 Vfont_encoding_charset_alist.
12027
120282008-02-01 Jason Rumney <jasonr@gnu.org>
12029
12030 * w32font.c (logfonts_match): Don't check adstyle here.
12031 (font_matches_spec): Check here against physical font instead.
12032 (add_font_entity_to_list): Avoid some substitutions.
12033
12034 * font.c (font_parse_fcname): Default weight and slant to normal.
12035 (font_score): Prefer normal fonts if weight or slant unspecified.
12036 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12037 match freetype scores.
12038
120392008-02-01 Jason Rumney <jasonr@gnu.org>
12040
12041 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12042 font, as it may have been deleted.
12043 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12044 most common hyphenless variation.
12045 (logfonts_match): Check generic family.
12046 (font_matches_spec): Don't check generic family here.
12047 (fill_in_logfont): Set generic family based on adstyle.
12048
12049 * w32font.h (w32font_get_cache): Update declaration.
12050
120512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12052
12053 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12054
12055 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12056 If none of the new drivers are available, call font_update_drivers
12057 with the old drivers.
12058
12059 * w32font.c (w32font_get_cache): Adjust the argument type.
12060
12061 * xfont.c (xfont_get_cache): Adjust the argument type.
12062
12063 * font.h (struct font_driver): Change argument type of get_cache.
12064
12065 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12066
12067 * font.c (Ffont_get): Fix arguments to Fassoc.
12068 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12069 (font_clear_cache): New function.
12070 (font_list_entities, font_matching_entity): Use font_get_cache.
12071 (font_update_drivers): Call font_clear_cache when finishing a driver.
12072
12073 * fontset.c (fontset_find_font): Fix previous change.
12074
120752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12076
12077 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12078 dpyinfo->font_table.
12079 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12080 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12081
12082 * font.c (font_at): Handle the case that the arg C is negative.
12083 Handle the unibyte case.
12084 (Ffont_at): Call font_at with the arg C -1.
12085
12086 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12087 the position here, and call font_at with the arg C -1.
12088 Don't check the range of the existing composition at the point.
12089
120902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12091
12092 * fontset.c (fontset_add): New args charset_id and family.
12093 Change caller.
12094 (load_font_get_repertory, fontset_find_font): Assume that
12095 font_spec is always a font-spec object.
12096 (Fset_fontset_font): Always store a font-spec object in a fontset.
12097
12098 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12099 instead of get_property_and_range.
12100
121012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12102
12103 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12104 (xftfont_open): Don't keep locking face.
12105 (xftfont_close): Don't unlock face.
12106 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12107
12108 * fontset.c (fontset_find_font): Don't prefer a font of
12109 supplementary charset.
12110
121112008-02-01 Kenichi Handa <handa@m17n.org>
12112
12113 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12114 script, langsys_tag to langsys, new member script.
12115 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12116 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12117 listing to the script specified in that property. Fix arg to
12118 OTF_check_features.
12119
121202008-02-01 Jason Rumney <jasonr@gnu.org>
12121
12122 * w32font.h: New file.
12123
12124 * w32font.c: Include it.
12125 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12126 (w32font_open): Set owning_frame.
12127 (w32font_text_extents): Use owning_frame.
12128 (struct font_callback_data): Add opentype_only field.
12129 (add_font_entity_to_list): Use it to filter fonts.
12130 Don't check against full name.
12131 (w32font_list_internal): New function.
12132 (w32font_list): Use it.
12133 (w32font_match_internal): New function.
12134 (w32font_match): Use it.
12135 (w32font_open_internal): New function.
12136 (w32font_open): Use it.
12137 (w32font_get_cache, w32font_close, w32font_has_char)
12138 (w32font_encode_char, w32font_text_extents, w32font_draw):
12139 Make non-static.
12140
12141 * makefile.w32-in (w32font.o): Depend on w32font.h.
12142
121432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12144
12145 * charset.c (Fdefine_charset_internal): Record a supplementary
12146 charset at the tail of Vcharset_order_list.
12147
12148 * font.c (Ffont_shape_text): Fix the return value.
12149
12150 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12151
12152 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12153
121542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12155
12156 * ftfont.c (struct OpenTypeSpec): New struct.
12157 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12158 (ftfont_get_open_type_spec): New function.
12159 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12160
12161 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12162
121632008-02-01 Jason Rumney <jasonr@gnu.org>
12164
12165 * w32font.c (add_font_entity_to_list): Compare only the beginning
12166 of full name.
12167
121682008-02-01 Kenichi Handa <handa@m17n.org>
12169
12170 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12171 Never return HANDLED_RECOMPUTE_PROPS.
12172
121732008-02-01 Kenichi Handa <handa@m17n.org>
12174
12175 * font.c (font_gstring_produce): Delete it.
12176
12177 * composite.h (COMPOSITION_METHOD):
12178 Handle COMPOSITION_WITH_GLYPH_STRING.
12179
121802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12181
12182 * xfont.c (Qx): Delete.
12183 (syms_of_xfont): Don't initialize Qx.
12184
12185 * composite.h (enum composition_method):
12186 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12187
121882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12189
12190 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12191 (choose_face_font): Accept new form of font-spec.
12192
12193 * frame.h (font_driver_list): Declare it unconditionally.
12194 (struct frame): Define members font_driver_list and font_data_list
12195 unconditionally.
12196
12197 * fontset.c: Include "font.h" unconditionally.
12198 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12199 (Fset_fontset_font): Accept a font-spec object.
12200
12201 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12202 PIXEL_SIZE part a wild card.
12203
12204 * dispextern.h (struct glyph_string): Define members clip and
12205 num_clips unconditionally.
12206 (struct face): Define members font_info and extra unconditionally.
12207
12208 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12209 ftfont_info only when HAVE_LIBOTF is defined.
12210
122112008-02-01 Andreas Schwab <schwab@suse.de>
12212
12213 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12214 and end.
12215
122162008-02-01 Jason Rumney <jasonr@gnu.org>
12217
12218 * w32font.c (w32font_driver): Add new fields.
12219
122202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12221
12222 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12223 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12224 (LIBES): Add @M17N_FLT_CFLAGS@.
12225
12226 * composite.c (compose_text): Don't treat the new style
12227 composition specially.
12228
12229 * emacs.c (main): Call syms_of_font unconditionally.
12230
12231 * font.h (FONT_ENTITY_NOT_LOADABLE)
12232 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12233 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12234 (struct font_driver): New member shape.
12235 (font_registry_charsets): Extern it.
12236 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12237 (font_otf_capability, font_drive_otf): Delete their externs.
12238
12239 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12240 (font_charset_alist, font_registry_charsets): Move from xfont.c
12241 and rename.
12242 (font_prop_validate_otf): New function.
12243 (font_property_table): Register it for QCotf.
12244 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12245 (font_drive_otf): Delete.
12246 (font_prepare_composition): New arg F. Adjust for the change of
12247 lispy gstring.
12248 (font_find_for_lface): New arg C.
12249 (font_load_for_face): Adjust for the change of font_find_for_lface.
12250 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12251 lispy gstring.
12252 (Ffont_shape_text): New function.
12253 (Fopen_font): If the font size is not given, use 12-pixel.
12254 (Ffont_at): New arg STRING.
12255 (syms_of_font): Initalize font_charset_alist.
12256 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12257 conditionally.
12258
12259 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12260 fonts of the same font-spec. Change the format of RFONT-DEF.
12261 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12262 Adjust for the change of RFONT-DEF.
12263 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12264
12265 * ftfont.h: New file.
12266
12267 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12268 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12269 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12270 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12271 font_otf_capability and font_drive_otf, set ftfont_shape.
12272 (ftfont_list): Adjust for the change of :otf property value.
12273 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12274 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12275 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12276 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12277 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12278 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12279
12280 * w32term.c (x_draw_composite_glyph_string_foreground):
12281 Adjust for the change of lispy gstring.
12282
12283 * xdisp.c (handle_composition_prop): Adjust for the change of
12284 lispy gstring. Call a function for auto-composition with the
12285 third arg it->window.
12286 (fill_composite_glyph_string): Adjust for the change of lispy string.
12287 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12288
12289 * xfaces.c (set_font_frame_param): Adjust for the change of
12290 font_find_for_lface.
12291
12292 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12293 (xfont_registry_charsets): Likewise. Change caller.
12294 (syms_of_xfont): Don't handle x_font_charset_alist.
12295
12296 * xftfont.c: Include "ftfont.h".
12297 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12298 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12299 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12300 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12301 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12302 Set xftfont_driver.shape to xftfont_shape.
12303
12304 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12305 the change of lispy gstring.
12306
123072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12308
12309 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12310
123112008-02-01 Jason Rumney <jasonr@gnu.org>
12312
12313 * w32font.c (w32font_draw): Fill background manually.
12314
123152008-02-01 Jason Rumney <jasonr@gnu.org>
12316
12317 * font.c (Qfontp): Remove unused symbol.
12318 (QCantialias): New symbol.
12319 (syms_of_font): Define it.
12320 (font_property_table): Set a validator for QCantialias.
12321
12322 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12323 Define if not already.
12324 (QCfamily): Share with xfaces.c.
12325 (Qstandard, Qsubpixel, Qnatural): New symbols.
12326 (syms_of_w32font): Define them. Don't define QCfamily here.
12327 (w32_antialias_type, lispy_antialias_type): New functions.
12328 (w32_enumfont_pattern_entity): New arg requested_font.
12329 Set antialias parameter if non-default was requested.
12330 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12331
123322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12333
12334 * lread.c (read1): Undo the previous change.
12335
123362008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12337
12338 * frame.c (Fdelete_frame): Call font_update_drivers only when
12339 USE_FONT_BACKEND is defined.
12340
123412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12342
12343 * font.h (struct font_bitmap): New member bits_per_pixel.
12344 (struct font_driver): New members start_for_frame and end_for_frame.
12345 (struct font_data_list): New struct.
12346 (font_put_frame_data, font_get_frame_data): Extern them.
12347
12348 * frame.h (struct frame): New member font_data_list.
12349
12350 * font.c (font_update_drivers): Call driver->start_for_frame and
12351 driver->end_for_frame at proper timings.
12352 (font_put_frame_data, font_get_frame_data): New functions.
12353 (Ffont_spec): Add usage in the docstring.
12354
12355 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12356 (Fdelete_frame): Call font_update_drivers.
12357
12358 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12359 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12360 (xftfont_get_xft_draw): New function.
12361 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12362 (xftfont_end_for_frame): New function.
12363 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12364
12365 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12366 Change argument. Cache GCs in the per-frame data.
12367 (struct ftxfont_frame_data): New struct.
12368 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12369 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12370 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12371 (ftxfont_end_for_frame): New function.
12372 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12373
12374 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12375
123762008-02-01 Kenichi Handa <handa@m17n.org>
12377
12378 * xselect.c (Vselection_coding_system)
12379 (Vnext_selection_coding_system): Delete them.
12380 (syms_of_xselect): Don't declare selection-coding-system and
12381 next-selection-coding-system. They are declared in select.el.
12382
123832008-02-01 Jason Rumney <jasonr@gnu.org>
12384
12385 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12386
12387 * w32fns.c: Include imm.h.
12388 (get_composition_string_fn, get_ime_context_fn): New optional
12389 system functions.
12390 (globals_of_w32fns): Load them from imm32.dll.
12391 (ignore_ime_char): New flag.
12392 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12393 WM_IME_ENDCOMPOSITION messages.
12394
12395 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12396 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12397
123982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12399
12400 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12401 (READCHAR_REPORT_MULTIBYTE): New macro.
12402 (readchar): New 2nd arg MULTIBYTE.
12403 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12404 Make symbol's name multibyte according to the multibyteness of the
12405 source.
12406
124072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12408
12409 * xfaces.c (face_for_overlay_string): Call lookup_face with
12410 correct arguments (fix of synching with the trunk).
12411
124122008-02-01 Kenichi Handa <handa@m17n.org>
12413
12414 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12415 (font_prop_validate_non_neg, font_prop_validate_spacing):
12416 Delete argument prop_index.
12417 (font_property_table): Change arguments to validater. Change Callers.
12418 (font_lispy_object): Delete.
12419 (font_at): Use font_find_object instead fo font_lispy_object.
12420
124212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12422
12423 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12424 and file names.
12425
124262008-02-01 Jason Rumney <jasonr@gnu.org>
12427
12428 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12429 (font_matches_spec): Remove debug output.
12430 (add_font_entity_to_list): Avoid using substituted fonts.
12431
124322008-02-01 Jason Rumney <jasonr@gnu.org>
12433
12434 * doc.c (Fsnarf_documentation):
12435 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12436
124372008-02-01 Miles Bader <miles@gnu.org>
12438
12439 * dispextern.h (struct glyph_row): Only define "clip" field if
12440 HAVE_WINDOW_SYSTEM is defined.
12441
124422008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12443
12444 Fix up multi-tty merge.
12445
12446 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12447 and indentation.
12448
12449 * xfaces.c (free_realized_face, clear_face_gcs):
12450 Include font_done_for_face in the input_blocked section, just in case.
12451
12452 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12453 (get_char_face_and_encoding): Undo last change and remove the *other*
12454 duplicate definition (i.e. keep the one that's better scoped and that
12455 includes code for the font-backend).
12456
12457 * terminal.c (create_terminal): Default keyboard_coding to
12458 `no-conversion' and terminal_coding to `undecided'.
12459
12460 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12461
12462 * fontset.c (free_realized_fontsets): Check that the table entry does
12463 contain a fontset before trying to compare it to `base'.
12464
12465 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12466 syms_of_charset, and syms_of_coding earlier because init_window_once
12467 now needs Vcoding_system_hash_table to be setup.
12468
12469 * coding.h (default_buffer_file_coding): Remove.
12470
12471 * coding.c (default_buffer_file_coding): Remove.
12472 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12473 than ->symbol, and use the terminal-local coding system.
12474 (syms_of_coding): Don't setup the coding-systems that are not
12475 terminal-local.
12476 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12477
12478 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12479 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12480
12481 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12482 in chartab.c and were re-added here by mistake.
12483 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12484
12485 * doc.c (Fsnarf_documentation):
12486 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12487 src to etc.
12488
12489 * ChangeLog.10: Add mistakenly removed entry.
12490
124912008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12492
12493 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12494
124952008-02-01 Miles Bader <miles@gnu.org>
12496
12497 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12498 Add extra args to FACE_FOR_CHAR.
12499
125002008-02-01 Kenichi Handa <handa@m17n.org>
12501
12502 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12503 in sequence.
12504
12505 * chartab.c (map_sub_char_table, map_char_table): If the range
12506 contains just one character, call the function with that character
12507 even if the depth is not 3.
12508
125092008-02-01 Jason Rumney <jasonr@gnu.org>
12510
12511 * w32font.c (w32font_text_extents): Calculate metrics for the
12512 whole string.
12513
125142008-02-01 Jason Rumney <jasonr@gnu.org>
12515
12516 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12517
125182008-02-01 Jason Rumney <jasonr@gnu.org>
12519
12520 * w32term.c (x_set_glyph_string_clipping): Use
12521 get_glyph_string_clip_rects.
12522 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12523 Adjust for the change of struct glyph_string.
12524
12525 * w32font.c (w32font_draw): Do clipping here.
12526
125272008-02-01 Kenichi Handa <handa@m17n.org>
12528
12529 * xftfont.c (xftfont_draw): Adjust for the change of struct
12530 glyph_string.
12531
12532 * xterm.c (x_set_glyph_string_clipping): Use
12533 get_glyph_string_clip_rects.
12534 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12535 Adjust for the change of struct glyph_string.
12536
12537 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12538 the resulting clip(s}.
12539 (expose_overlaps): Add arg r. Change callers. Set it to
12540 row->clip temporarily.
12541 (expose_window): Redraw rows overlapping the exposed area.
12542
12543 * dispextern.h (struct glyph_row): New member clip.
12544 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12545 clip_height, new member clip, and num_clips.
12546
125472008-02-01 Kenichi Handa <handa@m17n.org>
12548
12549 * data.c (Fchar_or_string_p): Fix docstring.
12550
125512008-02-01 Kenichi Handa <handa@m17n.org>
12552
12553 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12554 create a temporary XftDraw object.
12555
125562008-02-01 Kenichi Handa <handa@m17n.org>
12557
12558 * font.c (Ffontp): Fix docstring.
12559
12560 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12561 strong evidence of ISO-2022.
12562
125632008-02-01 Kenichi Handa <handa@m17n.org>
12564
12565 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12566 SYNTAX_ENTRY_FOLLOW_PARENT.
12567
125682008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12569
12570 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12571 its type.
12572 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12573 Update to the new type of weak_hash_tables and next_weak.
12574
12575 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12576 a plain C pointer to Lisp_Hash_Table.
12577
12578 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12579 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12580 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12581 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12582 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12583 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12584 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12585 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12586 (GC_EQ): Remove since they've been identical to their non-GC_
12587 alter-egos ever since the markbit was eradicated.
12588
12589 * alloc.c:
12590 * buffer.c:
12591 * buffer.h:
12592 * data.c:
12593 * fileio.c:
12594 * filelock.c:
12595 * fns.c:
12596 * frame.h:
12597 * lisp.h:
12598 * macterm.c:
12599 * print.c:
12600 * process.c:
12601 * w32fns.c:
12602 * w32menu.c:
12603 * w32term.c:
12604 * xfns.c:
12605 * xmenu.c:
12606 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12607
126082008-02-01 Kenichi Handa <handa@m17n.org>
12609
12610 * chartab.c (map_sub_char_table): Make it work for the top-level
12611 char-table. Fix handling of parent char-table.
12612 (map_char_table): Adjust for the above change.
12613
126142008-02-01 Jason Rumney <jasonr@gnu.org>
12615
12616 * w32font.c (Qgdi): Rename from Qw32.
12617
126182008-02-01 Jason Rumney <jasonr@gnu.org>
12619
12620 * w32bdf.c (get_quoted_string): Make function static.
12621
126222008-02-01 Kenichi Handa <handa@m17n.org>
12623
12624 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12625 bigger ascent and descent than those of the font, use them as
12626 font's ascent and descent.
12627
126282008-02-01 Kenichi Handa <handa@m17n.org>
12629
12630 * Makefile.in (${lispsource}international/charprop.el): Move this
12631 target within "#ifdef HAVE_UNIDATA" and "#endif".
12632
126332008-02-01 Kenichi Handa <handa@m17n.org>
12634
12635 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12636 (shortlisp): Add ../lisp/language/tai-viet.el.
12637
126382008-02-01 Ulrich Mueller <ulm@gentoo.org>
12639
12640 * Makefile.in (${lispsource}international/charprop.el): Depend on
12641 temacs${EXEEXT}.
12642
126432008-02-01 Jason Rumney <jasonr@gnu.org>
12644
12645 * w32font.c (w32font_close): Delete the GDI font object.
12646
12647 * w32menu.c: Include character.h.
12648
12649 * w32proc.c: Likewise.
12650
12651 * w32select.c: Likewise.
12652
12653 * makefile.w32-in (w32proc.o): Depend on character.h.
12654
126552008-02-01 Jason Rumney <jasonr@gnu.org>
12656
12657 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12658
12659 * w32menu.c (syms_of_w32menu): Likewise.
12660
12661 * w32proc.c (syms_of_ntproc): Likewise.
12662
12663 * w32select.c (syms_of_w32select): Likewise.
12664
12665 * w32term.c (syms_of_w32term): Likewise.
12666
126672008-02-01 Jason Rumney <jasonr@gnu.org>
12668
12669 * w32font.c (w32font_draw): Delete brush after using it.
12670
126712008-02-01 Jason Rumney <jasonr@gnu.org>
12672
12673 * w32font.c (w32font_open): Don't set font_idx.
12674 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12675 to font settings.
12676 (w32font_draw): Fill background explicitly.
12677
126782008-02-01 Jason Rumney <jasonr@gnu.org>
12679
12680 * w32term.c (w32_initialize): Don't call w32font_initialize.
12681
12682 * w32font.c (w32font_info): Remove subranges.
12683 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12684 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12685 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12686 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12687 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12688 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12689 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12690 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12691 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12692 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12693 New symbols.
12694 (font_callback_data): New struct.
12695 (w32font_list, w32font_match): Use it.
12696 (w32font_open): Don't populate subranges.
12697 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12698 (w32font_encode_char): Always return unicode code-point as-is.
12699 (w32font_text_extents): Supply a transformation matrix to
12700 GetGlyphOutline. Never look up by glyph index. Avoid looping
12701 twice. Use unicode version of GetTexExtentPoint32 instead of
12702 glyph index version.
12703 (set_fonts_frame): Remove.
12704 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12705 set frame parameter. Use backward compatible fake foundries.
12706 Save generic family in extra slot under QCfamily. Make width slot
12707 constant. Save QCspacing value. Save list of scripts instead of
12708 binary subranges.
12709 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12710 (add_font_entity_to_list): Use font_callback_data struct. Filter
12711 unwanted fonts.
12712 (add_one_font_entity_to_list): Use font_callback_data struct.
12713 (w32_registry): Default to iso10646_1.
12714 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12715 string font registries. Don't fill in font name if it is a generic
12716 family name, fill family instead. Use spacing, family and script
12717 extra info to fill pitch, family and charset fields.
12718 (list_all_matching_fonts): Use font_callback_data struct.
12719 (unicode_range_for_char): Remove.
12720 (font_supported_scripts): New function.
12721 (w32font_initialize): Remove.
12722 (syms_of_w32font): Update which symbols are defined.
12723
127242008-02-01 Jason Rumney <jasonr@gnu.org>
12725
12726 * font.c (font_pixel_size): Reverse assq_no_quit args.
12727
12728 * w32term.h (FONT_WIDTH): Report max width, not average.
12729 (FONT_MAX_WIDTH): Remove.
12730 (FONT_AVG_WIDTH): New macro.
12731
12732 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12733 redefinition of FONT_WIDTH.
12734
12735 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12736 (w32_cache_char_metrics): Use FONT_WIDTH.
12737
12738 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12739
127402008-02-01 Jason Rumney <jasonr@gnu.org>
12741
12742 * w32font.c (w32font_open): Make lfHeight negative.
12743
12744 * w32fns.c (x_default_font_parameter): Use new style font name.
12745 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12746
127472008-02-01 Jason Rumney <jasonr@gnu.org>
12748
12749 * w32font.c (QCsubranges): New symbol.
12750 (w32font_open, w32font_has_char): Get subranges from subproperty
12751 of extra.
12752 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12753 (syms_of_w32font): Define :subranges symbol.
12754
12755 * font.c (font_put_extra): Expose externally.
12756
12757 * font.h (font_put_extra): Move declaration from font.c.
12758
12759 * font.c (Ffont_get): Use font driver to determine otf capability.
12760 (adjust_anchor): Check if driver defines anchor_point before using.
12761
12762 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12763 (w32font_draw): Use options.
12764 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12765 Fix detection of truetype fonts.
12766 (registry_to_w32_charset): Handle charsets other than iso8859-1
12767 expressed as lisp symbols.
12768 (w32_registry): Express charset as lisp symbol.
12769 (fill_in_logfont): Reverse pixel and point height logic.
12770 Don't set width here. Set quality to default.
12771
12772 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12773 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12774
12775 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12776 Remove redundant loop and allocation.
12777
12778 * makefile.w32-in (font.o, w32font.o): New objects.
12779 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12780 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12781
12782 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12783 STORE_XCHARB a valid l-value.
12784
12785 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12786 calculations for non-Truetype fonts.
12787 (x_draw_glyph_string): Sync with xterm.c.
12788 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12789 Remove redundant code.
12790 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12791
12792 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12793 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12794
12795 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12796 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12797
12798 * w32font.c: New file for w32 font backend.
12799
128002008-02-01 Kenichi Handa <handa@m17n.org>
12801
12802 * term.c: Don't include "buffer.h" twice.
12803
128042008-02-01 Kenichi Handa <handa@m17n.org>
12805
12806 * character.c (Funibyte_string): New function.
12807 (syms_of_character): Defsubr it.
12808
128092008-02-01 Jason Rumney <jasonr@gnu.org>
12810
12811 * w32term.c [USE_FONT_BACKEND]:
12812 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12813 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12814 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12815 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12816 (x_free_frame_resources): Sync with xterm.c.
12817
128182008-02-01 Andreas Schwab <schwab@suse.de>
12819
12820 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12821 char-table size.
12822
128232008-02-01 Kenichi Handa <handa@m17n.org>
12824
12825 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12826
128272008-02-01 Kenichi Handa <handa@m17n.org>
12828
12829 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12830 font_otf_gpos, add font_drive_otf.
12831
12832 * fontset.c (fontset_find_font): Pay attention to font size
12833 specified for a font.
12834 (reorder_font_vector): Check contents of font_def.
12835
12836 * font.c (struct otf_list): Delete it.
12837 (otf_list): Make it a lisp variable.
12838 (otf_open): Use lispy otf_list.
12839 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12840 (check_otf_features): New function.
12841 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12842 New functions.
12843 (font_drive_otf): New function merging font_otf_gsub and
12844 font_otf_gpos.
12845 (font_open_for_lface): New arg spec. Change argument order.
12846 (font_load_for_face): Adjust for the change of font_open_for_lface.
12847 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12848 Ffont_otf_gpos.
12849 (syms_of_font): Staticpro otf_list. Delete defsubr of
12850 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12851
12852 * xfaces.c (set_font_frame_param): Adjust for the change of
12853 font_open_for_lface.
12854
12855 * font.h (font_open_for_lface): Adjust prototype.
12856 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12857 member otf_drive.
12858 (font_otf_gsub, font_otf_gpos): Delete externs.
12859 (font_drive_otf): Extern it.
12860
128612008-02-01 Kenichi Handa <handa@m17n.org>
12862
12863 * font.c (font_at): If the window W is not on a window system,
12864 return Qnil.
12865
12866 * coding.c (produce_chars, encode_coding): Don't call
12867 insert_from_gap if no characters to produce.
12868
128692008-02-01 Kenichi Handa <handa@m17n.org>
12870
12871 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12872 Fclear_face_cache.
12873
12874 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12875
128762008-02-01 Miles Bader <miles@gnu.org>
12877
12878 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12879 Parse "--disable-font-backend" option.
12880 (standard_args): Add "--disable-font-backend" option.
12881
128822008-02-01 Kenichi Handa <handa@m17n.org>
12883
12884 * fontset.c (fontset_find_font): New function.
12885 (fontset_font): Use fontset_find_font.
12886 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12887 Register the specified font for all Latin characters.
12888 (new_fontset_from_font): Register the specified font for all Latin
12889 characters.
12890 (dump_fontset): For a realized fontset, include the base fontset
12891 name in the returned vector.
12892
128932008-02-01 Kenichi Handa <handa@m17n.org>
12894
12895 * character.h (CHAR_STRING): Cast C to unsigned on calling
12896 char_string.
12897
12898 * character.c (char_string): Type of arg C changed to unsigned.
12899 Signal an error if C is an invalid character code.
12900
12901 * editfns.c (general_insert_function, Fchar_to_string):
12902 Use CHARACTERP, not INTEGERP.
12903
129042008-02-01 Kenichi Handa <handa@m17n.org>
12905
12906 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12907 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12908
12909 * regex.c (analyse_first): Fix for multibyte characters in "case
12910 charset:" and "case categoryspec:".
12911
129122008-02-01 Andreas Schwab <schwab@suse.de>
12913
12914 * Makefile.in (LIBES): Move standard libraries to the end.
12915
129162008-02-01 Kenichi Handa <handa@m17n.org>
12917
12918 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12919 nonzero, don't shrink the buffer nextb.
12920
12921 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12922
12923 * coding.c (coding_alloc_by_making_gap): New arg offset.
12924 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12925 offset.
12926 (decode_coding_iso_2022): Update coding->safe_charsets.
12927 (decode_coding_gap): Temporarily set
12928 current_buffer->text->inhibit_shrinking to 1.
12929
129302008-02-01 Kenichi Handa <handa@m17n.org>
12931
12932 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12933 indexing into elements of s->cmp and s->char2b.
12934
129352008-02-01 Juanma Barranquero <lekktu@gmail.com>
12936
12937 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12938
129392008-02-01 Kenichi Handa <handa@m17n.org>
12940
12941 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12942 target_multibyte instead of multibyte.
12943 (re_match_2_internal): Call bcmp_translate with target_multibyte.
12944 (bcmp_translate): Change the argument name from multibyte to
12945 target_multibyte.
12946
129472008-02-01 Kenichi Handa <handa@m17n.org>
12948
12949 These changes are to compile a regexp into a pattern that can be
12950 used both for multibyte and unibyte targets.
12951
12952 * Makefile.in (search.o): Depend on charset.h.
12953
12954 * character.c (multibyte_char_to_unibyte_safe): New function.
12955
12956 * search.c: Include "charset.h".
12957 (compile_pattern_1): Delete argument multibyte. Don't set
12958 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
12959 (compile_pattern): Don't compare cp->buf.target_multibyte.
12960 Compare cp->buf.charset_unibyte.
12961 (compile_pattern): Set cp->buf.target_multibyte.
12962
12963 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12964
12965 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12966
12967 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
12968 multibyte. Change callers.
12969 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
12970 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
12971 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
12972 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
12973 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
12974 (regex_compile): Make the compiled pattern usable both for
12975 multibyte and unibyte targets.
12976 (analyse_first): Make the fastmap usable both for multibyte and
12977 unibyte targets.
12978 (TRANSLATE_VIA_MULTIBYTE): Delete.
12979 (re_match_2_internal): Pay attention to the case that the
12980 multibyteness of bufp and target may be different.
12981
129822008-02-01 Kenichi Handa <handa@m17n.org>
12983
12984 * xdisp.c (x_produce_glyphs): When a font is not found, make the
12985 empty box occupy at least one column width.
12986
129872008-02-01 Miles Bader <miles@gnu.org>
12988
12989 * Makefile.in: Remove redundant HAVE_XFT clause.
12990
129912008-02-01 Kenichi Handa <handa@m17n.org>
12992
12993 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
12994
129952008-02-01 Kenichi Handa <handa@m17n.org>
12996
12997 * fontset.c (Finternal_char_font): Fix for the case of POSITION
12998 being nil.
12999
130002008-02-01 Kenichi Handa <handa@m17n.org>
13001
13002 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13003
130042008-02-01 Kenichi Handa <handa@m17n.org>
13005
13006 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13007
130082008-02-01 Kenichi Handa <handa@m17n.org>
13009
13010 * search.c (simple_search): Fix previous change.
13011
130122008-02-01 Kenichi Handa <handa@m17n.org>
13013
13014 * xftfont.c (ftfont_font_format): Extern declaration.
13015
13016 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13017
13018 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13019 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13020
13021 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13022 (ftfont_font_format): Fix previous change.
13023
13024 * font.h (Ffont_xlfd_name): EXFUN it.
13025
13026 * font.c (font_parse_xlfd): Fix the array size of `f'.
13027 (register_font_driver): Use EQ to compare driver->type.
13028
13029 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13030 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13031 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13032
130332008-02-01 Kenichi Handa <handa@m17n.org>
13034
13035 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13036 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13037
130382008-02-01 Kenichi Handa <handa@m17n.org>
13039
13040 * xfont.c (xfont_open): Set font->format.
13041
13042 * xftfont.c (xftfont_open): Set font->format.
13043
13044 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13045 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13046 (ftfont_open): Set font->format.
13047 (ftfont_font_format): New function.
13048
13049 * font.h (struct font): New member format.
13050
13051 * font.c (Qopentype): New variable.
13052 (syms_of_font): Defsym it.
13053 (Fquery_font): Change the format of the last element of the return
13054 value.
13055
130562008-02-01 Kenichi Handa <handa@m17n.org>
13057
13058 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13059 last resort.
13060
130612008-02-01 Kenichi Handa <handa@m17n.org>
13062
13063 * coding.c (detect_coding_charset): Fix detection of multi-byte
13064 charset.
13065
130662008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13067
13068 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13069
130702008-02-01 Kenichi Handa <handa@m17n.org>
13071
13072 * xdisp.c (get_next_display_element): Set it->face_id for the
13073 first component of a composition.
13074 (x_produce_glyphs): Check if the font is changed or not for composition.
13075
130762008-02-01 Kenichi Handa <handa@m17n.org>
13077
13078 * fontset.c (Qlatin): New variable.
13079 (syms_of_fontset): Define it as a lisp symbol.
13080 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13081
130822008-02-01 Kenichi Handa <handa@m17n.org>
13083
13084 * font.c (font_unparse_fcname): Pay attention to the case that
13085 some of font property is a null string.
13086
130872008-02-01 Kenichi Handa <handa@m17n.org>
13088
13089 * term.c: Include "composite.h".
13090 (encode_terminal_code): Output all components of composition.
13091 Check the size of encode_terminal_src.
13092 (produce_glyphs): For composition, call produce_composite_glyph.
13093 (append_composite_glyph, produce_composite_glyph): New functions.
13094
13095 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13096 is not found, get font_info from the current ascii face.
13097
130982008-02-01 Kenichi Handa <handa@m17n.org>
13099
13100 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13101 buffer-file-name to Qnil before calling insert_from_buffer.
13102
13103 * font.c (font_unparse_fcname): Pay attention to the case that
13104 foundry is a null string.
13105
131062008-02-01 Kenichi Handa <handa@m17n.org>
13107
13108 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13109
13110 * font.c (Qunicode_sip): New variable.
13111 (syms_of_font): Declare it as a Lisp symbol.
13112
13113 * font.h (Qunicode_sip): Extern it.
13114
131152008-02-01 Kenichi Handa <handa@m17n.org>
13116
13117 * composite.c (get_composition_id): Pay attention to TAB component.
13118
13119 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13120 TAB. Adjust for the change of s->char2b which always points to
13121 the first element of allocated memory.
13122
13123 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13124
13125 * xdisp.c (handle_composition_prop): Set it->c to the first
13126 non-TAB component.
13127 (fill_composite_glyph_string): Change argument.
13128 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13129 (x_produce_glyphs): Fix handling of left/right padding.
13130
131312008-02-01 Kenichi Handa <handa@m17n.org>
13132
13133 * coding.c (detect_coding_system): Fix for handling off
13134 inhibit_iso_escape_detection. Fix for the case that no coding
13135 system is defined for a specific coding category.
13136
131372008-02-01 Kenichi Handa <handa@m17n.org>
13138
13139 * font.c (font_matching_entity): Delete unused local var.
13140
13141 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13142 opening a font.
13143
13144 * fileio.c (Finsert_file_contents): On recovering a file, assume
13145 Unix-like eol.
13146 (choose_write_coding_system): On auto-saving a file, force
13147 Unix-like eol.
13148
13149 * coding.c (setup_coding_system): Fix setting of
13150 coding->common_flags based on eol_type.
13151 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13152 inherit from it.
13153
131542008-02-01 Kenichi Handa <handa@m17n.org>
13155
13156 * alloc.c (NSTATICS): Increas to 0x600.
13157
131582008-02-01 Kenichi Handa <handa@m17n.org>
13159
13160 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13161 (ftfont_list): Don't check :name property.
13162 (ftfont_match): New function.
13163 (ftfont_pattern_entity): If the pattern doesn't contain
13164 FC_SPACING, don't assume FC_MONO.
13165
13166 * font.h (struct font_driver): New member `match'.
13167 (font_update_drivers): Adjust prototype.
13168
13169 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13170 property of FONT.
13171 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13172 them unconditionally.
13173 (font_matching_entity): New function.
13174 (font_open_by_name): Try font_matching_entity if exact match is
13175 not found.
13176 (font_update_drivers): Delete the arg FONT. Return a list of
13177 actually used backends. Don't free faces, font caches here.
13178 Don't store data in frame parameters. Don't call x_set_font.
13179 (Ffont_spec): Store :name property as is.
13180 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13181 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13182 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13183 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13184 Call font->driver->otf_gsub instead of font_otf_gsub.
13185
13186 * frame.c (x_set_font_backend): Do more works that were done in
13187 font_update_drivers before.
13188
13189 * xfont.c (xfont_match): New function.
13190 (xfont_driver): Set xfont_driver.match to xfont_match.
13191 (xfont_draw): Set font in GC if necessary.
13192
13193 * ftxfont.c (ftxfont_match): New function.
13194 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13195
13196 * xftfont.c (xftfont_match): New function.
13197 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13198
131992008-02-01 Kenichi Handa <handa@m17n.org>
13200
13201 * font.h (struct font): New member scalable.
13202 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13203 (font_otf_gsub): Adjust prototype.
13204
13205 * font.c (font_otf_capability): Fix handling of the default langsys.
13206 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13207 Check the contents of SPEC.
13208 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13209 (check_gstring): New function.
13210 (REPLACEMENT_CHARACTER): New macro.
13211 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13212 glyph codes of GSTRING.
13213 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13214 (font_prepare_composition): Set cmp->glyph_len.
13215 (font_open_entity): Set font->scalable.
13216 (Ffont_get): Handle :otf property.
13217 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13218 functions.
13219 (Fquery_font): Use font->font.full_name.
13220 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13221 Sfont_otf_alternates.
13222
13223 * ftfont.c (ftfont_open): Set font->font.full_name and
13224 font->font.name properly. Fix calculation of font->font.height
13225 and font->min_width.
13226
13227 * ftxfont.c (ftxfont_create_gcs): New function.
13228 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13229 (ftxfont_draw_backgrond): Fix filling region.
13230 (ftxfont_default_fid): New function.
13231 (ftxfont_open): Set xfont->fid to the return value of
13232 ftxfont_default_fid.
13233 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13234 (ftxfont_done_face): Free only GCs that are created by
13235 ftxfont_create_gcs.
13236 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13237
13238 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13239 Clip to src->width, etc (not src->clip_XXX).
13240
13241 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13242 FontBackend frame parameter.
13243
132442008-02-01 Kenichi Handa <handa@m17n.org>
13245
13246 * font.h (struct font_driver_list): New member `on'.
13247 (Fclear_font_cache): EXFUN it.
13248 (font_update_drivers): Extern it.
13249
13250 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13251 (font_list_entities): Check driver_list->on.
13252 (register_font_driver): Initalize `on' member to 0.
13253 (font_update_drivers): New function.
13254 (Fclear_font_cache): Check driver_list->on.
13255
13256 * frame.h (Qfont_backend): Extern it.
13257 (x_set_font_backend): Extern it.
13258
13259 * frame.c (Qfont_backend): New variable.
13260 (frame_parms): New element for font-backend.
13261 (x_set_font_backend): New function.
13262
13263 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13264 FontBackend frame parameter.
13265 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13266 x_set_font_backend.
13267
13268 * xfont.c (xfont_list): Don't try listing by :name property if the
13269 name is not for XLFD.
13270
132712008-02-01 Kenichi Handa <handa@m17n.org>
13272
13273 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13274 (LGLYPH_SET_TO): New macros.
13275 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13276 element of G is vector or not.
13277 (font_at): Extern it.
13278
13279 * font.c: Include window.h.
13280 (font_lispy_object): New function.
13281 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13282 end of valid glyph.
13283 (font_close_object): Fix getting (struct font *).
13284 (font_at): New function.
13285 (Ffont_get): If FONT is a font-object, get entity from it.
13286 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13287 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13288 range check.
13289 (Ffont_at): New function.
13290 (syms_of_font): Defsubr Sfont_at.
13291
13292 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13293 before the entry for Qcomposition.
13294 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13295 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13296 the font in gstring.
13297 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13298 LGLYPH_FORM (g) to detect the end of valid glyph.
13299 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13300 we are composing with gstring.
13301
13302 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13303 Check if adjustment is vector or not.
13304
13305 * Makefile.in (font.o): Make it depends on window.h.
13306
133072008-02-01 Kenichi Handa <handa@m17n.org>
13308
13309 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13310 adjustment is vector or not.
13311
133122008-02-01 Miles Bader <miles@gnu.org>
13313
13314 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13315
133162008-02-01 Kenichi Handa <handa@m17n.org>
13317
13318 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13319 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13320 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13321
13322 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13323 (DEVICE_DELTA): Fix typo.
13324 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13325 LGLYPH format.
13326
13327 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13328 the change of LGLYPH format.
13329
133302008-02-01 Kenichi Handa <handa@m17n.org>
13331
13332 * ftfont.c (ftfont_list): Fix typo.
13333 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13334
133352008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13336
13337 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13338
13339 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13340 xftface_info is non-NULL.
13341
133422008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13343
13344 * ftfont.c (ftfont_list): Move misplaced #endif.
13345
133462008-02-01 Kenichi Handa <handa@m17n.org>
13347
13348 * ftfont.c (ftfont_list): Pay attention to the case that
13349 FC_CAPABILITY is not defined.
13350
133512008-02-01 Kenichi Handa <handa@m17n.org>
13352
13353 * xftfont.c (xftfont_open): Set charset related members to -1.
13354
13355 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13356 QCname.
13357 (ftfont_open): Set charset related members to -1.
13358
13359 * fontset.c (Votf_script_alist): New variable.
13360 (syms_of_fontset): Initialize it.
13361 (fontset_font): Delete unused variable.
13362
13363 * fontset.h (Votf_script_alist): Extern it.
13364
13365 * font.c (font_find_for_lface): Optimize code.
13366
13367 * font.h (font_close_object, font_merge_old_spec): Extern them.
13368
133692008-02-01 Kenichi Handa <handa@m17n.org>
13370
13371 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13372 (syms_of_font): Initialize them.
13373 (font_pixel_size): Allow float value in dpi.
13374 (font_prop_validate_type): Delete.
13375 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13376 Change caller.
13377 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13378 (font_prop_validate_extra): Delete.
13379 (font_prop_validate_spacing): New function.
13380 (font_property_table): Add elements for all known properties.
13381 (get_font_prop_index): Rename from check_font_prop_name. New
13382 argument FROM. Change caller.
13383 (font_prop_validate): Validate all known properties.
13384 (font_put_extra): Delete argument force. Change caller.
13385 (font_expand_wildcards): Make it static. Fix the way of shrinking
13386 the possible range.
13387 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13388 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13389 Change caller.
13390 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13391 (font_parse_fcname): Delete argument merge. Fix parsing of point
13392 size. Don't validate properties values here. Change caller.
13393 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13394 (font_open_by_name): Delete unused variable.
13395 (Ffont_spec): Likewise. Validate property values.
13396 (Ffont_match_p): New function.
13397
13398 * font.h (QCscalable): Extern it.
13399 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13400
13401 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13402
13403 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13404 (xfont_list_pattern): New function.
13405 (xfont_list): Use xfont_list_pattern.
13406
134072008-02-01 Kenichi Handa <handa@m17n.org>
13408
13409 * font.h (Flist_fonts): EXFUN it.
13410
134112008-02-01 Jason Rumney <jasonr@gnu.org>
13412
13413 * w32term.c (w32_initialize): Add back smoothing_type and
13414 smoothing_enabled definitions.
13415
134162008-02-01 Kenichi Handa <handa@m17n.org>
13417
13418 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13419 s->face->font on determining underline position.
13420
134212008-02-01 Kenichi Handa <handa@m17n.org>
13422
13423 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13424 (font_has_char): Accept font-object too.
13425 (font_find_for_lface): Try at first with a size specified in face.
13426
134272008-02-01 Kenichi Handa <handa@m17n.org>
13428
13429 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13430 font_open_by_name.
13431
134322008-02-01 Kenichi Handa <handa@m17n.org>
13433
13434 * font.h (QCspacing, QCdpi): Extern them.
13435 (enum font_spacing): New enum.
13436 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13437
13438 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13439 (QCspacing, QCdpi): New variables.
13440 (syms_of_font): Initialize them.
13441 (font_pixel_size): New function.
13442 (font_put_extra): New function.
13443 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13444 in FONT_EXTRA.
13445 (font_parse_fcname): Handle enumerated values (e.g. bold).
13446 Fix handling font size. Add QCname property that contains only
13447 unknown properties.
13448 (font_score): Change argument. Change caller. Pay attention to
13449 FONT_PIXEL_SIZE_QUANTUM.
13450 (font_sort_entites, font_list_entities, font_find_for_lface)
13451 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13452 (Ffont_spec): Add QCname property that contains only unknown properties.
13453
13454 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13455 include weight in listing pattern, instead check weight of each
13456 listed font. Don't include scalable in pattern. Pay attention to
13457 FONT_PIXEL_SIZE_QUANTUM.
13458
134592008-02-01 Kenichi Handa <handa@m17n.org>
13460
13461 * font.c (font_parse_fcname): Fix parsing of point-size.
13462 (font_unparse_fcname): Produce symbolic names for style properties.
13463 (font_list_entities): Handle float size correctly.
13464 (font_open_by_name): Prefer `normal' property values if the name
13465 doesn't specify them.
13466
13467 * fontset.c (Finternal_char_font): Use font_get_name, not
13468 Ffont_xlfd_name.
13469
13470 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13471 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13472 pattern. Don't force scalable.
13473
13474 * xftfont.c (xftfont_open): For generating a name, start from
13475 96-byte buffer.
13476
134772008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13478
13479 * frame.h (x_new_fontset2): Fix prototype.
13480
134812008-02-01 Kenichi Handa <handa@m17n.org>
13482
13483 * font.h (struct font_driver): Delete member parse_name.
13484 (font_match_p, font_get_spec, font_parse_fcname)
13485 (font_unparse_fcname): Extern them.
13486 (font_get_name): Adjust prototype.
13487
13488 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13489 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13490 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13491 unnecessary checks for weight, slant, and swidth.
13492 (font_parse_fcname): New function.
13493 (font_unparse_fcname): New function.
13494 (font_parse_name): New function.
13495 (font_match_p): New function.
13496 (font_get_name): Change return value to Lisp string.
13497 (font_get_spec): New function.
13498 (Qunspecified, Qignore_defface): Don't extern them.
13499 (font_find_for_lface): Assume that LFACE is fully specified.
13500 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13501 object, use it for FACE.
13502 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13503 driver->parse_name.
13504 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13505
13506 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13507 prototype.
13508
13509 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13510 argument F. Don't call Fnew_fontset. Instead, directly call
13511 make_fontset.
13512
13513 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13514
13515 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13516 of x_new_fontset2.
13517
13518 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13519 (Qsans__serif): New variables.
13520 (ftfont_generic_family_list): New variable.
13521 (syms_of_ftfont): Initialize the above variables.
13522 (ftfont_pattern_entity): Delete argument NAME.
13523 (ftfont_list_generic_family): New function.
13524 (ftfont_parse_name): Delete this function.
13525 (ftfont_list): Try generic family only when FcFontList found no font.
13526 (ftfont_list_family): Fix args to FcObjectSetBuild.
13527
13528 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13529 object in attrs[LFACE_FONT_INDEX].
13530 (set_lface_from_font_name): Cancel all changes for font-backend.
13531 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13532 function.
13533 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13534 font object in QCfont attribute.
13535 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13536 (realize_default_face) [USE_FONT_BACKEND]: Call
13537 set_lface_from_font_and_fontset.
13538
13539 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13540 "fixed", and signal error here if no suitable font was found.
13541
13542 * xfont.c (xfont_parse_name): Delete this function.
13543
13544 * xftfont.c (xftfont_open): Change coding style of error
13545 handling. Generate fontconfig's fontname pattern.
13546
13547 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13548 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13549
13550 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13551 Both args FONTSET and FONT_OBJECT must be existing ones.
13552
135532008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13554
13555 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13556
135572008-02-01 Kenichi Handa <handa@m17n.org>
13558
13559 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13560
13561 * font.h (struct font): Fix typo.
13562
13563 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13564 XLFD_XXX_INDEX.
13565 (enum xlfd_field_mask): New enum.
13566 (intern_font_field): Changed argument. Change caller. If digits
13567 are followed by non-digits, return a symbol.
13568 (font_expand_wildcards): New function.
13569 (font_parse_xlfd): Fix wildcard handling.
13570 (Ffont_spec): If :name is specified, reflect the info in the other
13571 properties.
13572
13573 * ftfont.c (ftfont_pattern_entity): Fix typo.
13574 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13575 locale.
13576
135772008-02-01 Kenichi Handa <handa@m17n.org>
13578
13579 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13580
13581 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13582 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13583 registry doesn't specify encoding part.
13584 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13585 (font_open_by_name): At first try parsing the name.
13586 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13587 as Lisp symbols.
13588
13589 * fontset.c (reorder_font_vector): Pay attention to the case that
13590 the 3rd element of font_def is nil.
13591 (fontset_font): For the default fontset, append one more fontset
13592 elements for a script-based font specification. Don't add script
13593 attribute on finding a font.
13594 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13595 font name.
13596 (fontset_ascii_font): If a font can't be opened, return nil.
13597
13598 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13599 (ftfont_pattern_entity): New function.
13600 (ftfont_get_cache): Assume that freetype_font_cache is already
13601 initialized.
13602 (ftfont_list): Handle the case that a file is specified in font
13603 name. Use ftfont_pattern_entity to generate entities.
13604 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13605 (syms_of_ftfont): Initialize freetype_font_cache.
13606
13607 * xftfont.c (xftfont_open): Make the font name fontconfig's
13608 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13609 (xftfont_close): Free font->font.name if not NULL.
13610
13611 * xfont.c (xfont_list): If script is specified for a font, return
13612 null_vector.
13613 (xfont_list_family): Declare argument type.
13614
13615 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13616 name, set LFACE_FONT (lface) to nil.
13617
13618 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13619 return Qnil.
13620
136212008-02-01 Kenichi Handa <handa@m17n.org>
13622
13623 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13624 (standard_args): Add "-enable-font-backend".
13625
136262008-02-01 Kenichi Handa <handa@m17n.org>
13627
13628 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13629 (struct xftdraw_list, xftdraw_list): Delete them.
13630 (register_xftdraw, check_xftdraw): Delete them.
13631 (xftfont_prepare_face): Don't call register_xftdraw.
13632 (xftfont_done_face): Don't call check_xftdraw.
13633 (xftfont_draw): Get background color only when with_background is
13634 nonzero.
13635
13636 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13637
136382008-02-01 Kenichi Handa <handa@m17n.org>
13639
13640 These changes are for the new font handling codes.
13641
13642 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13643 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13644 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13645 (FONTSRC, FONTOBJ): New variables.
13646 (obj): Add $(FONTOBJ).
13647 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13648 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13649 @LIBOTF_LIBS@.
13650 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13651 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13652
13653 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13654
13655 * character.h (Vscript_representative_chars): Extern it.
13656
13657 * character.c (Vscript_representative_chars): New variable.
13658 (syms_of_character): Declare it as a Lisp variable.
13659
13660 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13661 enable_font_backend is nonzero, accept the composition method
13662 COMPOSITION_WITH_GLYPH_STRING.
13663
13664 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13665 enumeration COMPOSITION_WITH_GLYPH_STRING.
13666
13667 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13668 members clip_x, clip_y, clip_width, and clip_height.
13669 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13670
13671 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13672 --enable-font-backend. Call syms_of_font.
13673
13674 * fns.c (assoc_no_quit): New function.
13675
13676 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13677 (face_for_font, new_fontset_from_font)
13678 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13679
13680 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13681 (fontset_font, fontset_ascii, face_for_char)
13682 (make_fontset_for_ascii_face, Ffont_info)
13683 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13684 is nonzero, use font-backend mechanism.
13685 (find_font_encoding): Make it non-static.
13686 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13687 New functions.
13688
13689 * frame.h (struct frame): New members resx and resy.
13690 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13691 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13692
13693 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13694 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13695
13696 * lisp.h (assoc_no_quit): Extern it.
13697
13698 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13699 Through out the file, use FONT_INFO_FROM_FACE instead of
13700 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13701 rif->per_char_metric.
13702 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13703 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13704 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13705 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13706 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13707 nonzero, use font-backend mechanism.
13708 (get_per_char_metric): New function.
13709
13710 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13711 (set_lface_from_font_name)
13712 (set_font_frame_param, free_realized_face)
13713 (prepare_face_for_display, clear_face_gcs)
13714 (Finternal_set_font_selection_order, realize_x_face)
13715 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13716 font-backend mechanism.
13717 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13718 (load_face_font) [USE_FONT_BACKEND]: Abort.
13719 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13720 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13721
13722 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13723 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13724 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13725 nonzero, register all available font drivers. Call
13726 x_default_font_parameter for deciding a font.
13727 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13728
13729 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13730 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13731 (x_set_glyph_string_clipping_exactly)
13732 (x_compute_glyph_string_overhangs)
13733 (x_draw_glyph_string_foreground)
13734 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13735 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13736 enable_font_backend is nonzero, use font-backend mechanism.
13737 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13738
137392008-02-01 Kenichi Handa <handa@m17n.org>
13740
13741 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13742 system_eol_type.
13743 (syms_of_coding): Initialize system_eol_type.
13744
13745 * process.c (Fset_process_coding_system): Inherit system's eol
13746 format if necessary.
13747
137482008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13749
13750 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13751
137522008-02-01 Kenichi Handa <handa@m17n.org>
13753
13754 * coding.c (decode_eol): Pay attention to buffer relocation in
13755 del_range_2.
13756 (decode_coding): Call decode_eol before restoring undo_list.
13757
137582008-02-01 Kenichi Handa <handa@m17n.org>
13759
13760 * charset.c (Fdefine_charset_internal): Fix setting of
13761 emacs_mule_bytes.
13762
137632008-02-01 Kenichi Handa <handa@m17n.org>
13764
13765 * keyboard.c (read_char): Check if C is a character or not before
13766 looking up Vkeyboard_translate_table.
13767
137682008-02-01 Kenichi Handa <handa@m17n.org>
13769
13770 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13771 condition to terminate the loop.
13772
137732008-02-01 Kenichi Handa <handa@m17n.org>
13774
13775 * coding.c (produce_composition): Compare charbuf[i] instead of
13776 args[i] against 0.
13777 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13778
137792008-02-01 Kenichi Handa <handa@m17n.org>
13780
13781 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13782 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13783 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13784 detect_coding.
13785 (emacs_mule_char): Handle old style (Emacs 20) component character
13786 of a composition.
13787 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13788 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13789 composition rule.
13790 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13791
137922008-02-01 Kenichi Handa <handa@m17n.org>
13793
13794 * coding.c (encode_coding_ccl): Allocate destination dynamically
13795 when necessary.
13796
137972008-02-01 Kenichi Handa <handa@m17n.org>
13798
13799 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13800 the loop. When quitted, show a proper error message.
13801
138022008-02-01 Kenichi Handa <handa@m17n.org>
13803
13804 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13805 src->clip_head and src->clip_tail temporarily instead of src->hl.
13806
13807 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13808 character sequence.
13809 (Fccl_execute_on_string): Use ASET, not XSET.
13810
138112008-02-01 Kenichi Handa <handa@m17n.org>
13812
13813 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13814
138152008-02-01 Kenichi Handa <handa@m17n.org>
13816
13817 * coding.c (decode_coding): Fix the condition of terminating the
13818 decoding loop.
13819
138202008-02-01 Kenichi Handa <handa@m17n.org>
13821
13822 * data.c (Faset): On setting a character bigger than 255 in a
13823 unibyte string, signal an error instead of make the string multibyte.
13824
138252008-02-01 Kenichi Handa <handa@m17n.org>
13826
13827 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13828 made by a mapping table.
13829
138302008-02-01 Kenichi Handa <handa@m17n.org>
13831
13832 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13833 not.
13834 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13835 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13836
13837 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13838 s->face is NULL or not.
13839
138402008-02-01 Kenichi Handa <handa@m17n.org>
13841
13842 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13843 (x_draw_glyph_string): Fix drawing of right_overhang and
13844 left_overhang around/on cursor.
13845
13846 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13847
138482008-02-01 Kenichi Handa <handa@m17n.org>
13849
13850 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13851
138522008-02-01 Kenichi Handa <handa@m17n.org>
13853
13854 * coding.c (Fdefine_coding_system_internal)
13855 (Fdefine_coding_system_alias): Avoid a duplicated element in
13856 Vcoding_system_alist.
13857
138582008-02-01 Kenichi Handa <handa@m17n.org>
13859
13860 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13861
13862 * coding.c (Qcoding_system_define_form): New variable.
13863 (syms_of_coding): Intern and staticpro it.
13864 (Fcoding_system_p): Check Qcoding_system_define_form.
13865 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13866
13867 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13868 Fcoding_system_p.
13869 (CHECK_CODING_SYSTEM): If ID is not available, call
13870 Fcheck_coding_system.
13871 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13872 Try also Fcheck_coding_system.
13873
138742008-02-01 Kenichi Handa <handa@m17n.org>
13875
13876 * coding.c (code_conversion_restore): GCPRO arg.
13877
138782008-02-01 Kenichi Handa <handa@m17n.org>
13879
13880 * character.c (lisp_string_width): Check multibyteness of STRING.
13881
138822008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13883
13884 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13885 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13886 (decode_mac_font_name): Use decode_coding_c_string instead of
13887 decode_coding.
13888 (x_load_font): Initialize fontp->fontset to -1. Set
13889 fontp->encoding_type.
13890
138912008-02-01 Kenichi Handa <handa@m17n.org>
13892
13893 * search.c (search_buffer): Give up BM search on case-fold-search
13894 if one of a target character has a case-equivalence of different
13895 byte length even if that target charcter is an ASCII.
13896 (simple_search): Fix calculation of byte length of matched text.
13897 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13898
138992008-02-01 Kenichi Handa <handa@m17n.org>
13900
13901 * coding.c (decode_coding): Fix handling of invalid bytes.
13902
139032008-02-01 Kenichi Handa <handa@m17n.org>
13904
13905 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13906 Unicode characters.
13907
139082008-02-01 Kenichi Handa <handa@m17n.org>
13909
13910 * coding.c (encode_coding_object): If a pre-write-conversion
13911 function makes a new buffer, kill it.
13912
139132008-02-01 Kenichi Handa <handa@m17n.org>
13914
13915 * coding.c (QCascii_compatible_p): New variable.
13916 (syms_of_coding): Initialize it.
13917 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13918 calling string_char.
13919 (record_conversion_result): Add `default:' case.
13920 (coding_charset_list): Delete unused variable `coding_type'.
13921 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13922 property in the plist of the coding system.
13923 (Fcoding_system_put): Check QCascii_compatible_p.
13924
139252008-02-01 Miles Bader <miles@gnu.org>
13926
13927 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13928 removed calculation of frame `f', as it's now used.
13929
139302008-02-01 Kenichi Handa <handa@m17n.org>
13931
13932 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13933 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13934 (UNIDATA): New variable.
13935 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13936 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13937 $(RUN_TEMACS) unconditionally.
13938
139392008-02-01 Kenichi Handa <handa@m17n.org>
13940
13941 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13942 (admindir): New variable.
13943 ($(lispsource)international/charprop.el): New target.
13944
139452008-02-01 Miles Bader <miles@gnu.org>
13946
13947 * character.c (chars-in-region): Remove obsolete function.
13948 (syms_of_character): Remove its initialization.
13949
139502008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
13951
13952 * w32select.c (validate_coding_system)
13953 (setup_windows_coding_system): New functions.
13954 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13955 setup_windows_coding_system.
13956 (setup_config, Fw32_get_clipboard_data): Use
13957 validate_coding_system.
13958 (Fx_selection_exists): Move call to setup_config to a place
13959 where signals are allowed.
13960
13961 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13962 (Fcheck_coding_system): Add declarations.
13963
139642008-02-01 Kenichi Handa <handa@m17n.org>
13965
13966 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13967
139682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13969
13970 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
13971 string as the second argument for x_new_fontset.
13972
139732008-02-01 Kenichi Handa <handa@m17n.org>
13974
13975 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
13976 (encode_coding_object): Use safe_call instead of call2.
13977
139782008-02-01 Kenichi Handa <handa@m17n.org>
13979
13980 * fontset.c (Fset_fontset_font): Check family element of a given vector.
13981
13982 * Makefile.in (lisp): Include charprop.el.
13983
139842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13985
13986 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
13987 Not sure if it's unnecessary.
13988
139892008-02-01 Steven Tamm <steventamm@mac.com>
13990
13991 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
13992 some possibly unnecessary fontset checking code that crashed
13993 when creating a new frame.
13994
139952008-02-01 Kenichi Handa <handa@m17n.org>
13996
13997 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
13998 lookup_face.
13999
14000 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14001
14002 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14003
140042008-02-01 Kenichi Handa <handa@m17n.org>
14005
14006 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14007 (coding_charset_list): New function.
14008
14009 * coding.h (coding_charset_list): Extern it.
14010
140112008-02-01 Kenichi Handa <handa@m17n.org>
14012
14013 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14014 concatenation of family and registry.
14015
140162008-02-01 Kenichi Handa <handa@m17n.org>
14017
14018 * character.h (BYTE8_STRING): Fix typo.
14019
14020 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14021 string to multibyte (sync to HEAD).
14022
14023 * casefiddle.c (casify_region): Handle changes in byte-length
14024 using replace_range_2 (sync to HEAD).
14025
140262008-02-01 Andreas Schwab <schwab@suse.de>
14027
14028 * chartab.c (map_char_table): GCPRO table and arg.
14029
140302008-02-01 Kenichi Handa <handa@m17n.org>
14031
14032 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14033 already at limit.
14034
140352008-02-01 Kenichi Handa <handa@m17n.org>
14036
14037 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14038 instead of fast_c_string_match_ignore_case.
14039 (find_font_encoding): Change argument to Lisp_Object. Use
14040 fast_string_match_ignore_case instead of
14041 fast_c_string_match_ignore_case. Change caller.
14042
140432008-02-01 Kenichi Handa <handa@m17n.org>
14044
14045 * xdisp.c (get_next_display_element): In unibyte case, decide to
14046 display in octal form by checking a character by
14047 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14048
14049 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14050
14051 * character.c (unibyte_has_multibyte_table): New variable.
14052
14053 * character.h (unibyte_has_multibyte_table): Extern it.
14054 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14055
140562008-02-01 Kenichi Handa <handa@m17n.org>
14057
14058 * coding.c (encode_coding_iso_2022): Fix handling of charset
14059 annotation.
14060
140612008-02-01 Kenichi Handa <handa@m17n.org>
14062
14063 * coding.c (setup_coding_system): If coding_system is nil, use
14064 Qundecided.
14065 (Fterminal_coding_system): Return nil if terminal coding system is
14066 `undecided'.
14067 (syms_of_coding): Define coding-system `undecided' here. Setup
14068 terminal_coding as `undecided'.
14069
140702008-02-01 Kenichi Handa <handa@m17n.org>
14071
14072 * xdisp.c (message_dolog, set_message_1): Call
14073 unibyte_char_to_multibyte with arg type int.
14074
14075 * lread.c (read1): Fix reading of a char-table.
14076
14077 * print.c (print_object): Include sub char-table in circularities
14078 detection.
14079
140802008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14083 Append the found sequences in car of ARGS instead of prepending.
14084
140852008-02-01 Kenichi Handa <handa@m17n.org>
14086
14087 * fileio.c (report_file_error): Make a unibyte string from
14088 strerror (errorno).
14089 (Fsubstitute_in_file_name): Fix the arg to
14090 unibyte_char_to_multibyte. It is evaluated twice.
14091
140922008-02-01 Kenichi Handa <handa@m17n.org>
14093
14094 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14095
140962008-02-01 Kenichi Handa <handa@m17n.org>
14097
14098 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14099 BOM is not found.
14100 (detect_coding, detect_coding_system): Optimization for ISO-2022
14101 when no 8-bit data is found.
14102
141032008-02-01 Jason Rumney <jasonr@gnu.org>
14104
14105 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14106
141072008-02-01 Kenichi Handa <handa@m17n.org>
14108
14109 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14110 CHARS.
14111
141122008-02-01 Steven Tamm <steventamm@mac.com>
14113
14114 * macterm.c (mac_encode_char): Add charset argument and update
14115 to use encoding_type.
14116 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14117 switch to pure fontset.
14118 (decode_mac_font_name): Temporarily remove decoding.
14119 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14120 (x_load_font): Temporarily remove encoding.
14121
141222008-02-01 Kenichi Handa <handa@m17n.org>
14123
14124 * xfaces.c (Fface_font): If frame is not on a window system,
14125 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14126 refer to face->font.
14127 (split_font_name_into_vector, build_font_name_from_vector)
14128 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14129 when HAVE_WINDOW_SYSTEM is defined.
14130
141312008-02-01 Kenichi Handa <handa@m17n.org>
14132
14133 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14134 (x_produce_glyphs): Fix setting of members of cmp in case
14135 cmp->glyph_len is zero.
14136
14137 * fontset.c (Fset_fontset_font): Fix docstring.
14138 (Ffontset_info): Make it backward compatible. New arg ALL.
14139
141402008-02-01 Kim F. Storm <storm@cua.dk>
14141
14142 * process.c (read_process_output): Grow decoding_buf when needed;
14143 this could cause a crash in allocate_string and compact_small_strings.
14144
141452008-02-01 Kenichi Handa <handa@m17n.org>
14146
14147 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14148
141492008-02-01 Kenichi Handa <handa@m17n.org>
14150
14151 * coding.c (setup_coding_system): Set coding->common_flags
14152 correctly for raw-text.
14153 (consume_chars): On encoding unibyte text by raw-text, don't check
14154 multibyte form.
14155 (encode_coding): On encoding by raw-text, never use translation tables.
14156
14157 * fileio.c (e_write): Short cut for the case of no encoding.
14158
141592008-02-01 Kenichi Handa <handa@m17n.org>
14160
14161 * coding.c (detect_coding, detect_coding_system): Delete unused
14162 variables.
14163
141642008-02-01 Kenichi Handa <handa@m17n.org>
14165
14166 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14167 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14168
141692008-02-01 Kenichi Handa <handa@m17n.org>
14170
14171 * coding.c (Ffind_coding_systems_region_internal): Include
14172 raw-text and no-conversion in the result.
14173
141742008-02-01 Kenichi Handa <handa@m17n.org>
14175
14176 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14177 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14178 FONT_DEF.
14179 (font_def_arg, add_arg, from_arg, to_arg): New args.
14180 (set_fontset_font): Change argument.
14181 (Fset_fontset_font): Fix for the case that TARGET is a script
14182 name and charset name.
14183 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14184
141852008-02-01 Kenichi Handa <handa@m17n.org>
14186
14187 * fontset.c (fontset_font): Rename from fontset_face. Change return
14188 value.
14189 (face_suitable_for_char_p, face_for_char): Adjust for the change
14190 of fontset_font.
14191 (make_fontset_for_ascii_face): Fix setting of the fontset element
14192 for ASCII.
14193 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14194 to get a font name.
14195 (Ffontset_info): Adjust for the change of fontset_font.
14196
14197 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14198
14199 * character.h (LEADING_CODE_LATIN_1_MIN)
14200 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14201
142022008-02-01 Kenichi Handa <handa@m17n.org>
14203
14204 * editfns.c (check_translation): New function.
14205 (Ftranslate_region_internal): Handle M:N mapping.
14206
142072008-02-01 Kenichi Handa <handa@m17n.org>
14208
14209 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14210
142112008-02-01 Kenichi Handa <handa@m17n.org>
14212
14213 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14214 goto invalid_code.
14215 (decode_coding_iso_2022): Fix handling of invalid designation.
14216
14217 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14218 after calling code_conversion_save.
14219
142202008-02-01 Kenichi Handa <handa@m17n.org>
14221
14222 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14223
14224 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14225
14226 * fontset.c: Include "intervals.h".
14227 (fontset_face): Fix comparing of Lisp_Objects.
14228 (free_face_fontset, new_fontset_from_font_name): Fix
14229 Lisp_Object/int mixup.
14230
14231 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14232
14233 * coding.c: Add many prototypes for static functions.
14234 (get_translation_table): Allow max_lookup to be NULL.
14235 (decode_coding, Ffind_coding_systems_region_internal)
14236 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14237 get_translation_table with max_lookup NULL.
14238
142392008-02-01 Kenichi Handa <handa@m17n.org>
14240
14241 * coding.c (get_translation_table): Declare it as Lisp_Object.
14242 (LOOKUP_TRANSLATION_TABLE): New macro.
14243 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14244 instead of CHAR_TABLE_REF.
14245
142462008-02-01 Kenichi Handa <handa@m17n.org>
14247
14248 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14249 annotation data format.
14250 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14251 Change arguments FROM and TO to single argument NCHARS. Change caller.
14252 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14253 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14254 (decode_coding_ccl, decode_coding_charset): Pay attention to
14255 coding->charbuf_used.
14256 (get_translation): New function.
14257 (produce_chars): New arguments translation_table and last_block.
14258 Translate characters here. Return number of carryover chars.
14259 Change caller.
14260 (produce_composition): New argument pos. Change caller.
14261 Adjust for the change of annotation data format.
14262 (produce_charset, produce_annotation): Likewise.
14263 (decode_coding, encode_coding): Don't call translate_chars.
14264 (consume_chars): New arg translation_table. Change caller.
14265 (translate_chars): Delete.
14266 (syms_of_coding): Make translation-table's number of extra slots 2.
14267
142682008-02-01 Kenichi Handa <handa@m17n.org>
14269
14270 * search.c (simple_search): Fix setting this_pos_byte in backward
14271 search.
14272
14273 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14274 byte sequence.
14275 (detect_coding_ccl): Fix setting of the variable valids.
14276
142772008-02-01 Kenichi Handa <handa@m17n.org>
14278
14279 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14280
14281 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14282
14283 * editfns.c (Ftranslate_region_internal): Rename from
14284 Ftranslate_region. Accept a char-table in TABLE.
14285 (syms_of_editfns): Defsubr Stranslate_region_internal.
14286
14287 * xfaces.c (set_lface_from_font_name): If a font is specified for
14288 a frame, generate a fontset from the font.
14289 (build_scalable_font_name): If the scalable font is requested for
14290 a specific size, don't change that size.
14291 (try_font_list): Try a scalable font also in the case that a
14292 pattern string is specified.
14293
142942008-02-01 Kenichi Handa <handa@m17n.org>
14295
14296 * xfaces.c (Fface_font): New optional arg CHARACTER.
14297
142982008-02-01 Kenichi Handa <handa@m17n.org>
14299
14300 * charset.h (CHARSET_OFFSET): New macro.
14301
143022008-02-01 Kenichi Handa <handa@m17n.org>
14303
14304 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14305
14306 * fontset.c (fontset_face): Handle the case that repertory is a
14307 char-table.
14308 (find_font_encoding): Return nil for unknown encoding.
14309 (Fset_fontset_font): Ignore a font of unknown encoding.
14310
143112008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * keymap.c (describe_vector): Handle default value of a char table.
14314
14315 * fontset.c (fontset_face): Handle fallback fonts correctly.
14316 (Ffontset_info): Return infomation about fallback fonts.
14317
143182008-02-01 Kenichi Handa <handa@m17n.org>
14319
14320 * fontset.c (FONTSET_DEFAULT): New macro.
14321 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14322 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14323 the case that it is nil.
14324 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14325 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14326
14327 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14328 subset or superset.
14329
143302008-02-01 Kenichi Handa <handa@m17n.org>
14331
14332 * emacs.c (main): Call init_charset after syms_of_XXX.
14333
14334 * charset.c (Vcharset_map_directory): Delete.
14335 (Vcharset_map_path): New variable.
14336 (load_charset_map_from_file): Use Vcharset_map_path instead.
14337 (init_charset): Initialize Vcharset_map_path.
14338 (syms_of_charset): Delete declaration of "charset-map-directory",
14339 add declaration of "charset-map-path".
14340
143412008-02-01 Kenichi Handa <handa@m17n.org>
14342
14343 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14344 ASCII only string.
14345
14346 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14347
14348 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14349 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14350
143512008-02-01 Kenichi Handa <handa@m17n.org>
14352
14353 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14354
14355 * coding.c (QCmnemonic, QCdefalut_char)
14356 (QCdecode_translation_table, QCencode_translation_table)
14357 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14358 (get_translation_table): Return a list of translation tables if
14359 necessary.
14360 (decode_coding): Call get_translation_table with ENCODEP 0.
14361 (char_encodable_p): If translation_table is non-nil, always call
14362 translate_char.
14363 (Fdefine_coding_system_internal): Accept list of translation
14364 tables as :encode-translation-table and :decode-translation-table.
14365 (Fcoding_system_put): New function.
14366 (syms_of_coding): Declare new symbols. Defsubr
14367 Scoding_system_put.
14368 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14369 typically JISX0212.
14370
14371 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14372 when the charset is superset type.
14373
14374 * character.c (translate_char): Accept list of translation tables.
14375
143762008-02-01 Kenichi Handa <handa@m17n.org>
14377
14378 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14379 (CODING_ATTR_TRANS_TBL): New macro.
14380
14381 * coding.c (get_translation_table): New function.
14382 (translate_chars): Fix the bug of skipping annotation data.
14383 (decode_coding, encode_coding): Utilize get_translation_table.
14384 (char_encodable_p, Funencodable_char_position): Translate char if
14385 necessary.
14386 (Ffind_coding_systems_region_internal)
14387 (Fcheck_coding_systems_region): Setup translation table for encode
14388 in a coding system attribute vector in advance.
14389 (Fdefine_coding_system_internal): Allow a symbol as translation
14390 table. For shift-jis type coding system, allow 4th charset.
14391
143922008-02-01 Kenichi Handa <handa@m17n.org>
14393
14394 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14395
14396 * xdisp.c (get_next_display_element): Pass -1 as POS to
14397 FACE_FOR_CHAR if displaying a C-string.
14398
143992008-02-01 Kenichi Handa <handa@m17n.org>
14400
14401 * composite.c (get_composition_id): Handle xoff and yoff in a
14402 composition rule.
14403
14404 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14405 (struct composition): New member lbearing and rbearing.
14406
14407 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14408 (x_get_glyph_overhangs): Handle a composition glyph.
14409 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14410
14411 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14412 composition glyph.
14413
144142008-02-01 Kenichi Handa <handa@m17n.org>
14415
14416 * print.c: Include charset.h.
14417 (Vprint_charset_text_property): New variable.
14418 (Qdefault): Extern it.
14419 (PRINT_STRING_NON_CHARSET_FOUND)
14420 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14421 (print_check_string_result): New variable.
14422 (print_check_string_charset_prop): New function.
14423 (print_prune_charset_plist): New variable.
14424 (print_prune_string_charset): New function.
14425 (print_object): Call print_prune_string_charset if
14426 Vprint_charset_text_property is not t.
14427 (print_interval): Print nothing if interval->plist is nil.
14428 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14429 variable. Init and staticpro print_prune_charset_plist.
14430
144312008-02-01 Kenichi Handa <handa@m17n.org>
14432
14433 * fontset.c (new_fontset_from_font_name): Use the specified font
14434 for all characters in the new fontset.
14435
14436 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14437 OBJECT args.
14438
14439 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14440 OBJECT args for composition too.
14441
14442 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14443 OBJECT args.
14444
144452008-02-01 Kenichi Handa <handa@m17n.org>
14446
14447 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14448
14449 * fontset.c (reorder_font_vector): Adjust for the change of
14450 FONT_DEF format.
14451 (fontset_face): New arg id. Change caller.
14452 (face_for_char): New args pos and object.
14453 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14454 (fs_query_fontset): Check NAME by Fassoc too.
14455 (Fset_fontset_font): Allow non-XLFD font name.
14456 (Ffontset_info): Adjust for the change of FONT_DEF format.
14457
14458 * fontset.h (face_for_char): Adjust prototype.
14459
14460 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14461 (append_space, extend_face_to_end_of_line)
14462 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14463 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14464
14465 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14466 POS and OBJECT args.
14467
14468 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14469 POS and OBJECT args.
14470
144712008-02-01 Jason Rumney <jasonr@gnu.org>
14472
14473 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14474 of GlobalAlloc'ed memory.
14475
144762008-02-01 Kenichi Handa <handa@m17n.org>
14477
14478 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14479
14480 * charset.h (charset_table_used): Delete extern.
14481
14482 * charset.c (charset_table_used): Make it static.
14483 (map_charset_chars): Fix args to c_function with.
14484
14485 * chartab.c (map_sub_char_table_for_charset): Fix args to
14486 c_function with.
14487
14488 * coding.h (enum coding_result_code): Delete
14489 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14490
14491 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14492 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14493 (Vlast_code_conversion_error): New variables.
14494 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14495 (ONE_MORE_BYTE): Record error if any instead of signaling an
14496 error. If non-ASCII multibyte char is found, return the negative
14497 value of the code. All callers changed to check it.
14498 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14499 (record_conversion_result): New function. Change all codes setting
14500 coding->result to call this function.
14501 (detect_coding_utf_8, decode_coding_utf_8)
14502 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14503 Don't use the local variable incomplete.
14504 (emacs_mule_char): Change the second arg to `const'.
14505 (decode_coding): Fix of flushing out unprocessed data.
14506 (make_conversion_work_buffer): Fix making of a work buffer.
14507 (decode_coding_object): Return coding->dst_object.
14508
14509 * fontset.c (set_fontset_font): Fix args.
14510
14511 * lisp.h (CHARACTERBITS): Define as 22.
14512
14513 * process.c (send_process): Be sure to set coding->src_multibyte.
14514
14515 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14516
145172008-02-01 Kenichi Handa <handa@m17n.org>
14518
14519 * xdisp.c (handle_auto_composed_prop): Give limit to
14520 Fnext_single_char_property_change.
14521
145222008-02-01 Kenichi Handa <handa@m17n.org>
14523
14524 * composite.c (syms_of_composite): Don't make the composition hash
14525 table weak.
14526
14527 * fontset.c (Fset_fontset_font): Fix docstring.
14528
14529 * lisp.h (detect_coding_system): Adjust prototype.
14530
14531 * fileio.c (kill_workbuf_unwind): Delete this function.
14532 (Finsert_file_contents): Adjust the call of detect_coding_system.
14533 Get conversion_buffer by code_conversion_save. Use the macro
14534 CODING_MAY_REQUIRE_DECODING. After decoding, update
14535 coding_system.
14536
14537 * coding.h (make_conversion_work_buffer): Delete extern.
14538 (code_conversion_save): Extern it.
14539
14540 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14541 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14542 (decode_coding_utf_8): Don't do eol converion.
14543 (detect_coding_utf_16): Check coding->src_chars, not
14544 coding->src_bytes. Add heuristics for those that have no signature.
14545 (decode_coding_emacs_mule, decode_coding_iso_2022)
14546 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14547 Don't do eol converion.
14548 (adjust_coding_eol_type): Return a new coding system.
14549 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14550 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14551 each change.
14552 (decode_coding): Pay attention to undo_list. Do eol conversion for
14553 all types of coding-systems (if necessary).
14554 (Vcode_conversion_work_buf_list): Delete it.
14555 (Vcode_conversion_reused_workbuf): Rename from
14556 Vcode_conversion_reused_work_buf.
14557 (Vcode_conversion_workbuf_name): New variable.
14558 (reused_workbuf_in_use): New variable.
14559 (make_conversion_work_buffer): Delete the arg DEPTH.
14560 (code_conversion_restore): Change argument to cons.
14561 (code_conversion_save): Delete the argument BUFFER. Change callers.
14562 (detect_coding_system): New argument src_chars. Change callers.
14563 Fix for utf-16 detection.
14564 (init_coding_once): Don't use ISO_carriage_return.
14565 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14566 reused_workbuf_in_use.
14567
145682008-02-01 Kenichi Handa <handa@m17n.org>
14569
14570 * keymap.c (store_in_keymap): Pay attention to the case that idx
14571 is a cons specifying a character range.
14572
145732008-02-01 Kenichi Handa <handa@m17n.org>
14574
14575 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14576 HANDLED_RECOMPUTE_PROPS.
14577
14578 * coding.c (Fdefine_coding_system_internal): Fix checking of
14579 ascii compatibility.
14580
145812008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * charset.c (find_charsets_in_text): Delete unused locale variable.
14584 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14585
14586 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14587 Resync charset_list to Vemacs_mule_charset_list.
14588
14589 * keymap.c (store_in_keymap): Pay attention to the case that idx
14590 is a cons specifying a character range.
14591
145922008-02-01 Kenichi Handa <handa@m17n.org>
14593
14594 * composite.c (update_compositions): Bind inhibit-read-only, etc
14595 to t before calling remove-list-of-text-properties.
14596
14597 * print.c (print_object): Always print ASCII chars as is.
14598
145992008-02-01 Kenichi Handa <handa@m17n.org>
14600
14601 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14602
14603 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14604 is a char table.
14605
146062008-02-01 Kenichi Handa <handa@m17n.org>
14607
14608 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14609
146102008-02-01 Kenichi Handa <handa@m17n.org>
14611
14612 * xfaces.c (set_lface_from_font_name): Fix for the case that
14613 FONTNAME is not fontset name.
14614
146152008-02-01 Kenichi Handa <handa@m17n.org>
14616
14617 * fns.c (base64_encode_1): Fix previous change.
14618
146192008-02-01 Kenichi Handa <handa@m17n.org>
14620
14621 * fontset.c (set_fontset_font): New function.
14622 (Fset_fontset_font): If a font is specified for a charset, use
14623 map_charset_chars to store the font spec in a fontset.
14624
146252008-02-01 Kenichi Handa <handa@m17n.org>
14626
14627 * fontset.c (fontset_face): Create a fallback fontset on demand.
14628 (make_fontset): Don't create a fallback fontset here.
14629 (free_face_fontset): Free a fallback fontset (if any) too.
14630 (n_auto_fontsets): Delete this variable.
14631 (auto_fontset_alist): New variable.
14632 (new_fontset_from_font_name): Check auto_fontset_alist.
14633 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14634 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14635 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14636 Defsubr Sfontset_list_all.
14637
146382008-02-01 Kenichi Handa <handa@m17n.org>
14639
14640 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14641
146422008-02-01 Kenichi Handa <handa@m17n.org>
14643
14644 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14645
146462008-02-01 Kenichi Handa <handa@m17n.org>
14647
14648 * editfns.c (Fgoto_char): Fix docstring.
14649
146502008-02-01 Kenichi Handa <handa@m17n.org>
14651
14652 * insdel.c (insert_from_gap): Adjust intervals correctly.
14653
146542008-02-01 Jason Rumney <jasonr@gnu.org>
14655
14656 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14657 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14658 (w32_initialize): Try to load it.
14659 (x_get_font_repertory): Use it if available.
14660 (w32_encode_char): Add shortcut for unicode output.
14661
14662 * w32fns.c (w32_load_system_font): Default charset to -1.
14663 (x_to_w32_charset): Match all fonts for unicode.
14664 (w32_to_x_charset): New parameter matching. Don't return partial
14665 or wildcard charsets.
14666 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14667 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14668 (w32_to_x_font): Match charset to real charset.
14669 (enum_font_cb2): Always list unicode versions.
14670
14671 * makefile.w32-in (temacs): Increase EMHEAP.
14672
146732008-02-01 Jason Rumney <jasonr@gnu.org>
14674
14675 * w32term.c (w32_encode_char): New charset parameter.
14676 font_info.encoding becomes encoding_type.
14677 (x_get_font_repertory): New function. Warning: stub only!
14678 (x_new_font): Return quickly if font already set.
14679 (x_new_fontset): fontsetname parameter is Lisp_Object.
14680 Use new fs_query_fontset. Try new_fontset_from_font_name.
14681 Use fontset_name for return value.
14682
14683 * w32term.h: Declare x_get_font_repertory.
14684
14685 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14686 place of find_charset_in_text. Use encode_coding_object in place
14687 of encode_coding.
14688 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14689 decode_coding.
14690
14691 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14692 of x_new_fontset.
14693 (w32_load_system_font): Initialize charset as unicode.
14694 font_info.encoding becomes encoding_type.
14695 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14696 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14697 (syms_of_w32fns): Set get_font_repertory_func.
14698
14699 * w32console.c: Include character.h. Use terminal_encode_buffer
14700 from term.c.
14701 (write_glyphs): Use new version of encode_terminal_code. Use
14702 encode_coding_object in place of encode_coding.
14703
14704 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14705 encoding becomes encoding_type.
14706
14707 * term.c (terminal_encode_buffer): Make externally visible.
14708
14709 * makefile.w32-in: Add character.h dependancies.
14710 (character.o, chartab.o): New targets.
14711
147122008-02-01 Kenichi Handa <handa@m17n.org>
14713
14714 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14715 CODING_ID_EOL_TYPE.
14716
147172008-02-01 Andreas Schwab <schwab@suse.de>
14718
14719 * coding.c (produce_chars): Revert last change.
14720
147212008-02-01 Kenichi Handa <handa@m17n.org>
14722
14723 * charset.h (charset_unicode): Extern it.
14724
14725 * charset.c (string_xstring_p): Check by (C >= 0x100).
14726 (find_charsets_in_text): Change format of the arc CHARSETS. New
14727 arg MULTIBYTE.
14728 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14729 change of find_charsets_in_text.
14730 (Fsplit_char): Fix doc. Never return unknown.
14731
14732 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14733
14734 * coding.c (Fdefine_coding_system_alias): Update
14735 Vcoding_system_list.
14736
14737 * fontset.c (load_font_get_repertory): Pay attention to the case
14738 that ENCODING of a font is specified by a char-table.
14739
14740 * xterm.c (x_get_font_repertory): Handle the case that the
14741 encoding of font is other than Unicode.
14742
147432008-02-01 Kenichi Handa <handa@m17n.org>
14744
14745 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14746 if a character is encodable by the terminal coding system. If
14747 not, produces proper number of `?'s. Update
14748 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14749 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14750
147512008-02-01 Kenichi Handa <handa@m17n.org>
14752
14753 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14754 variables.
14755 (encode_terminal_code): Change argument. Encode multiple
14756 characters at once. Store the result of encoding in
14757 terminal_encode_buffer.
14758 (write_glyphs, insert_glyphs): Adjust for the change of
14759 encode_terminal_code.
14760 (term_init): Initialize terminal_encode_buffer and
14761 terminal_encode_buf_size.
14762
14763 * coding.c (consume_chars): If coding->src_object is nil, don't
14764 check annotation.
14765
147662008-02-01 Kenichi Handa <handa@m17n.org>
14767
14768 * character.c (char_string): Use ASCII_CHAR_P instead of
14769 SINGLE_BYTE_CHAR_P.
14770
147712008-02-01 Kenichi Handa <handa@m17n.org>
14772
14773 * xdisp.c (handle_auto_composed_prop): Check if the last
14774 characters of auto-composed region is newly composed with the
14775 following characters.
14776 (handle_composition_prop): Fix checking of point being inside
14777 composition.
14778
147792008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * fns.c (concat): Don't change multibyteness of the result by
14782 concatenating an 8-bit character.
14783
14784 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14785 multibyteness of the result when newelt is an 8-bit character.
14786
147872008-02-01 Dave Love <fx@gnu.org>
14788
14789 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14790 EMACS_INT.
14791
14792 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14793
14794 * xfaces.c (face_numeric_value): Declare dim size_t.
14795 (Finternal_lisp_face_equal_p): Remove unused f.
14796
14797 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14798 (MATRIX_ROW): Remove unused vars.
14799 (draw_glyphs, x_insert_glyphs, fast_find_position)
14800 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14801 byte/char counts.
14802
14803 * regex.c (regex_compile): Remove unused var.
14804
14805 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14806
14807 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14808 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14809
14810 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14811
14812 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14813
14814 * fileio.c (Fwrite_region): Remove unused var.
14815
14816 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14817 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14818
14819 * composite.c (Fremove_list_of_text_properties): Declare.
14820
14821 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14822 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14823 (coding_inherit_eol_type): Remove unused attrs.
14824 (detect_coding): Cast arg of detect_eol.
14825
14826 * charset.c (syms_of_charset): Remove unused var p.
14827 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14828 byte/char counts.
14829
14830 * casetab.c (set_case_table): Remove unused var.
14831
14832 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14833 unused vars.
14834
148352008-02-01 Dave Love <fx@gnu.org>
14836
14837 * xterm.c (x_bitmap_mask): Declare.
14838
148392008-02-01 Dave Love <fx@gnu.org>
14840
14841 * xterm.c (x_term_init): Fix type error.
14842
14843 * lisp.h: Add Funibyte_char_to_multibyte.
14844
14845 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14846 (Fset_coding_system_priority): Doc fix.
14847
14848 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14849
14850 * indent.c (check_composition): Make start and end EMACS_INT.
14851
14852 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14853
14854 * xdisp.c (handle_composition_prop, check_point_in_composition):
14855 Make buffer positions EMACS_INT.
14856
14857 * composite.c (find_composition, run_composition_function)
14858 (update_compositions, Ffind_composition_internal): Make buffer
14859 positions EMACS_INT.
14860
14861 * composite.h (find_composition, update_compositions): Make
14862 position args EMACS_INT.
14863
14864 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14865
14866 * intervals.c (get_property_and_range):
14867 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14868
14869 * unexalpha.c: Don't include varargs.h.
14870
148712008-02-01 Dave Love <fx@gnu.org>
14872
14873 * coding.h (ENCODE_UTF_8): New.
14874
14875 * Makefile.in (gtkutil.o): Depend on coding.h.
14876
14877 * coding.c (Fset_coding_system_priority): Doc fix.
14878
148792008-02-01 Kenichi Handa <handa@m17n.org>
14880
14881 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14882 the case of auto saving.
14883
148842008-02-01 Andreas Schwab <schwab@suse.de>
14885
14886 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14887 `range' from GC.
14888
148892008-02-01 Kenichi Handa <handa@m17n.org>
14890
14891 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14892
148932008-02-01 Kenichi Handa <handa@m17n.org>
14894
14895 * fileio.c (choose_write_coding_system): Return a decided coding system.
14896 (Fwrite_region): Set Vlast_coding_system_used to the return value
14897 of choose_write_coding_system.
14898
148992008-02-01 Kenichi Handa <handa@m17n.org>
14900
14901 * charset.c (Fset_charset_priority): Pay attention to duplicated
14902 arguments.
14903
14904 * coding.c (QCcategory): New variable.
14905 (syms_of_coding): Defsym it. Set all elements of
14906 Vcoding_category_table and their symbol values.
14907 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14908 coding-category-XXX, and coding-category-list.
14909 (Fdefine_coding_system_internal): Add category in the plist.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * callproc.c (Fcall_process): Handle carryover correctly.
14914
14915 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14916 (raw_text_coding_system): Check NILP (coding_system).
14917 (coding_inherit_eol_type): Check NILP (coding_system) and
14918 NILP (parent).
14919 (consume_chars): Fix for the case of raw-text.
14920
14921 * process.c (read_process_output): Handle carryover correctly.
14922
149232008-02-01 Dave Love <fx@gnu.org>
14924
14925 * regex.c (re_search_2): Fix last change.
14926
149272008-02-01 Kenichi Handa <handa@m17n.org>
14928
14929 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14930 target_multibyte. Even in a unibyte case, return a converted
14931 multibyte char.
14932 (GET_CHAR_AFTER): New macro.
14933 (PATFETCH): Translate via multibyte char.
14934 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14935 (SETUP_MULTIBYTE_RANGE): New macro.
14936 (regex_compile): Setup compiled code so that its multibyteness
14937 matches that of a target. Fix the handling of "[X-YZ]" using
14938 SETUP_MULTIBYTE_RANGE.
14939 (analyse_first) <charset>: For filling fastmap for all multibyte
14940 characters, don't check by BASE_LEADING_CODE_P.
14941 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
14942 the same as RE_MULTIBYTE_P (bufp) now.
14943 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14944 (TARGET_CHAR_AND_LENGTH): Delete this macro.
14945 (TRANSLATE_VIA_MULTIBYTE): New macro.
14946 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14947 It is the same as RE_MULTIBYTE_P (bufp) now.
14948 <exactn>: Translate via multibyte.
14949 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
14950 translate it.
14951 <charset, charset_not>: Fetch a character by
14952 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
14953 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14954 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14955 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14956 by GET_CHAR_AFTER.
14957 (bcmp_translate): Likewise.
14958
14959 * search.c (compile_pattern): Check the member target_multibyte,
14960 not the member multibyte of buf.
14961
14962 * lread.c (read1): While reading a string, set force_singlebyte
14963 and force_multibyte correctly.
14964
14965 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14966 up of unibyte_to_multibyte_table.
14967
149682008-02-01 Kenichi Handa <handa@m17n.org>
14969
14970 * coding.c (setup_coding_system): If coding has
14971 post-read-conversion or pre-write-conversion, set
14972 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
14973 respectively.
14974 (decode_coding_gap): Run post-read-conversion if any.
14975
14976 * fileio.c (Finsert_file_contents): Even if we read into a
14977 unibyte buffer, check if we must decode the result or not.
14978
149792008-02-01 Kenichi Handa <handa@m17n.org>
14980
14981 * coding.c (make_conversion_work_buffer): Change the work buffer
14982 name to the same one as that of Emacs 21.
14983
149842008-02-01 Kenichi Handa <handa@m17n.org>
14985
14986 * coding.h (make_conversion_work_buffer): Adjust prototype.
14987 (code_conversion_restore): Don't extern it.
14988
14989 * coding.c (detected_mask): Delete unused variable.
14990 (decode_coding_iso_2022): Pay attention to the byte sequence of
14991 CTEXT extended segment, and retain those bytes as is.
14992 (decode_coding_ccl): Delete unused variable `valids'.
14993 (setup_coding_system): Delete unused variable `category'.
14994 (consume_chars): Delete unused variable `category'. Make it work
14995 for non-multibyte case.
14996 (make_conversion_work_buffer): Change argument.
14997 (saved_coding): Delete unused variable.
14998 (code_conversion_restore): Don't check saved_coding->destination.
14999 (code_conversion_save): New function.
15000 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15001 instead of record_unwind_protect.
15002 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15003 (detect_coding_system): Delete unused variable `mask'.
15004 (Fdefine_coding_system_internal): Delete unused variable id.
15005
15006 * fileio.c (kill_workbuf_unwind): New function.
15007 (Finsert_file_contents): On replacing, call
15008 make_conversion_work_buffer with correct args, and call
15009 record_unwind_protect with the first arg kill_workbuf_unwind.
15010
15011 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15012
150132008-02-01 Kenichi Handa <handa@m17n.org>
15014
15015 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15016 (fontset_add): Fix for the case that TO is less than TO1.
15017 (Ffontset_info): Don't use fallback fontset on checking the
15018 default fontset.
15019 (dump_fontset): New function for debugging.
15020
15021 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15022 coding_type is Qcharset.
15023
150242008-02-01 Kenichi Handa <handa@m17n.org>
15025
15026 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15027 (map_char_table): Don't inherit the value from the parent on
15028 initializing VAL. Adjust for the above change.
15029
150302008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * coding.c (Qsignature, Qendian): Delete these variables.
15033 (syms_of_coding): Don't initialize them.
15034 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15035 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15036 detect_info->found.
15037 (decode_coding_utf_16): Don't detect BOM here.
15038 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15039 is NOT utf_16_without_bom.
15040 (setup_coding_system): For a coding system of type utf-16, check
15041 if the attribute :endian is Qbig or not (not nil or not), and set
15042 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15043 (detect_coding): If coding type is utf-16 and BOM detection is
15044 required, detect it.
15045 (Fdefine_coding_system_internal): For a coding system of type
15046 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15047
150482008-02-01 Kenichi Handa <handa@m17n.org>
15049
15050 * coding.c (coding_set_source): Fix for the case that the current
15051 buffer is different from coding->src_object.
15052 (decode_coding_object): Don't use the conversion work buffer if
15053 DST_OBJECT is a buffer.
15054
150552008-02-01 Dave Love <fx@gnu.org>
15056
15057 * lread.c (read_emacs_mule_char) [len==2]: Index
15058 emacs_mule_charset correctly.
15059
150602008-02-01 Dave Love <fx@gnu.org>
15061
15062 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15063 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15064 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15065 treated specially.)
15066 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15067 (detected_mask): Remove Big5 bits.
15068
150692008-02-01 Kenichi Handa <handa@m17n.org>
15070
15071 The following changes are to make the font rescaling facility
15072 compatible with Emacs 21.
15073
15074 * xfaces.c (Vface_font_rescale_alist): Rename from
15075 Vface_resizing_fonts.
15076 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15077 (font_rescale_ratio): Rename from font_resizing_ratio.
15078 (split_font_name): Set font->rescale_ratio.
15079 (better_font_p): Pay attention to font->rescale_ratio.
15080 (build_scalable_font_name): Likewise. Change RESX, and RESY
15081 fields.
15082 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15083
150842008-02-01 Kenichi Handa <handa@m17n.org>
15085
15086 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15087 (Qutf_16_le): Remove these variables.
15088 (syms_of_coding): Don't DEFSYM them.
15089 (decode_coding_utf_16): Fix handling of BOM.
15090 (encode_coding_utf_16): Fix handling of BOM.
15091
150922008-02-01 Kenichi Handa <handa@m17n.org>
15093
15094 * fileio.c (Finsert_file_contents): On replacing, before decoding
15095 the file into the work buffer, set point of the work buffer to the end.
15096
150972008-02-01 Dave Love <fx@gnu.org>
15098
15099 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15100
151012008-02-01 Dave Love <fx@gnu.org>
15102
15103 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15104 and fix C types.
15105
151062008-02-01 Kenichi Handa <handa@m17n.org>
15107
15108 * xdisp.c (SKIP_GLYPHS): New macro.
15109 (set_cursor_from_row): Pay attention to string display properties.
15110
15111 * category.c (copy_category_entry): Fix for the case that RANGE
15112 is an integer.
15113
15114 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15115
15116 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15117
151182008-02-01 Kenichi Handa <handa@m17n.org>
15119
15120 * charset.c (Fcharset_id_internal): New function.
15121 (syms_of_charset): Defsubr it.
15122
15123 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15124 with the last arg charset_list acquired from coding.
15125 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15126 the attribute coding_attr_ccl_valids.
15127
15128 * coding.h (enum define_coding_ccl_arg_index): Set the first
15129 member coding_arg_ccl_decoder to coding_arg_max.
15130
15131 * ccl.h (ccl_driver): Adjust prototype.
15132
15133 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15134 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15135 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15136 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15137 last arg Qnil.
15138
151392008-02-01 Kenichi Handa <handa@m17n.org>
15140
15141 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15142 call encode_char.
15143
15144 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15145
151462008-02-01 Dave Love <fx@gnu.org>
15147
15148 * composite.c (syms_of_composite): Make composition_hash_table weak.
15149
151502008-02-01 Kenichi Handa <handa@m17n.org>
15151
15152 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15153 (font_name_registry): Don't extern them.
15154 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15155
15156 * fontset.h (Qfontset): Don't extern it.
15157 (new_fontset_from_font_name): Extern it.
15158
15159 * fontset.c: Give 8 extra slots to fontset objects.
15160 (Qfontset_info): New variable.
15161 (syms_of_fontset): Defsym it.
15162 (FONTSET_FALLBACK): New macro.
15163 (fontset_face): Try also the default fontset.
15164 (make_fontset): Realize a fallback fontset from the default fontset.
15165 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15166 using split_font_name_into_vector and build_font_name_from_vector.
15167 (Fset_fontset_font): Access the elements of font_spec by enum
15168 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15169 name by using split_font_name_into_vector.
15170 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15171 generate a proper font name from the fontset name. Update
15172 Vfontset_alias_alist.
15173 (n_auto_fontsets): New variable.
15174 (new_fontset_from_font_name): New function.
15175 (Ffont_info): Store the information about fonts generated from the
15176 default fontset in the first extra slot of the returned char-table.
15177
15178 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15179 (font_name_registry): Delete function.
15180 (split_font_name_into_vector): New function.
15181 (build_font_name_from_vector): New function.
15182 (font_list): The argument REGISTRY is now a list of registry names.
15183 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15184 specifies an explicit font name, return the name as is. Make a
15185 list of registy names.
15186
15187 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15188 of x_new_fontset.
15189 (Fx_create_frame): Don't call x_new_fontset here. Just use
15190 x_list_fonts to check the existence of fonts.
15191
15192 * xterm.h (x_new_fontset): Adjust prototype.
15193
15194 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15195 string. Use new_fontset_from_font_name to create a fontset from a
15196 font name.
15197
151982008-02-01 Kenichi Handa <handa@m17n.org>
15199
15200 * syntax.c (Vfind_word_boundary_function_table): New name for
15201 Vnext_word_boundary_function_table.
15202 (find-word-boundary-function-table): New name for
15203 next-word-boundary-function-table.
15204
152052008-02-01 Dave Love <fx@gnu.org>
15206
15207 * Makefile.in: Fix some dependencies.
15208
15209 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15210 set it to nil before returning.
15211
15212 * composite.c (update_compositions): Fix type error.
15213
15214 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15215
152162008-02-01 Kenichi Handa <handa@m17n.org>
15217
15218 * xterm.c (x_new_font): Optimize for the case that the font is
15219 already set for the frame.
15220
152212008-02-01 Kenichi Handa <handa@m17n.org>
15222
15223 * chartab.c (char_table_ascii): Check if the char table contents
15224 is sub-char-table or not.
15225 (char_table_set, char_table_set_range): Fix argument to
15226 char_table_ascii.
15227
15228 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15229 (detect_coding_utf_8, detect_coding_utf_16)
15230 (detect_coding_emacs_mule, detect_coding_iso_2022)
15231 (detect_coding_sjis, detect_coding_big5)
15232 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15233 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15234 sequence is valid in this coding system. Change callers.
15235 (MAX_ANNOTATION_LENGTH): New macro.
15236 (ADD_ANNOTATION_DATA): New macro.
15237 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15238 ADD_ANNOTATION_DATA. Change the format of annotation data.
15239 (ADD_CHARSET_DATA): New macro.
15240 (emacs_mule_char): New argument ID. Change callers.
15241 (decode_coding_emacs_mule, decode_coding_iso_2022)
15242 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15243 Produce charset annotation data in coding->charbuf.
15244 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15245 to charset annotation data in coding->charbuf.
15246 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15247 coding->common_flags if the coding system is iso-2022 based and
15248 uses designation.
15249 (produce_composition): Adjust for the new annotation data format.
15250 (produce_charset): New function.
15251 (produce_annotation): Handle charset annotation.
15252 (handle_composition_annotation, handle_charset_annotation): New
15253 functions.
15254 (consume_chars): Handle charset annotation. Utilize the above two
15255 functions.
15256 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15257 buffer, get the deleted text as a string and set
15258 coding->src_object to that string.
15259 (detect_coding, detect_coding_system): Use the new struct
15260 coding_detection_info.
15261
15262 * coding.h (struct coding_detection_info): New structure.
15263 (struct coding_system): Adjust prototype of the member `detector'.
15264 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15265
152662008-02-01 Kenichi Handa <handa@m17n.org>
15267
15268 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15269
152702008-02-01 Dave Love <fx@gnu.org>
15271
15272 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15273 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15274 to new local and nullify apropos_accumulate before returning.
15275 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15276
152772008-02-01 Kenichi Handa <handa@m17n.org>
15278
15279 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15280 correctly.
e3eea1fc 15281
aac0c6e3
MR
152822008-02-01 Dave Love <fx@gnu.org>
15283
15284 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15285
152862008-02-01 Kenichi Handa <handa@m17n.org>
15287
15288 The following changes are to make character composition happen
15289 automatically on displaying.
15290
15291 * Makefile.in (lisp, shortlisp): Add composite.elc.
15292
15293 * composite.h (Qauto_composed, Vauto_composition_function)
15294 (Qauto_composition_function): Extern them.
15295
15296 * composite.c (Vcomposition_function_table)
15297 (Qcomposition_function_table): Delete variables.
15298 (Qauto_composed, Vauto_composition_function)
15299 (Qauto_composition_function): New variables.
15300 (run_composition_function): Don't call
15301 compose-chars-after-function.
15302 (update_compositions): Clear `auto-composed' text property.
15303 (compose_chars_in_text): Delete this function.
15304 (syms_of_composite): Staticpro Qauto_composed and
15305 Qauto_composition_function. Declare Vauto_composition_function as
15306 a Lisp variable.
15307
15308 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15309
15310 * xdisp.c (it_props): Add an entry for Qauto_composed.
15311 (handle_auto_composed_prop): New function.
15312
15313 * xselect.c (selection_data_to_lisp_data): Don't call
15314 compose_chars_in_text.
15315
153162008-02-01 Dave Love <fx@gnu.org>
15317
15318 * keyboard.c (read_char): Modify checking around use of
15319 Vkeyboard_translate_table.
15320
15321 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15322 and fix C types.
15323
153242008-02-01 Kenichi Handa <handa@m17n.org>
15325
15326 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15327 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15328 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15329 the case that the last byte is '\r' correctly.
15330 (decode_coding): Flush out the unprocessed data correctly.
15331 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15332
153332008-02-01 Dave Love <fx@gnu.org>
15334
15335 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15336 Add XK_ISO... case.
15337 (xaw_scroll_callback): Revert last change.
15338
153392008-02-01 Kenichi Handa <handa@m17n.org>
15340
15341 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15342
153432008-02-01 Kenichi Handa <handa@m17n.org>
15344
15345 * xfaces.c (Vface_resizing_fonts): New variable.
15346 (struct font_name): New member `resizing_ratio'.
15347 (font_resizing_ratio): New function.
15348 (split_font_name): Set font->resizing_ratio.
15349 (better_font_p): Pay attention to font->resizing_ratio.
15350 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15351 RESX, and RESY fields.
15352 (try_alternative_families): Try scalable fonts if
15353 Vscalable_fonts_allowed is not Qt.
15354 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15355
153562008-02-01 Dave Love <fx@gnu.org>
15357
15358 * xterm.c (xaw_scroll_callback): Cast correctly.
15359
153602008-02-01 Dave Love <fx@gnu.org>
15361
15362 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15363 (lispy_kana_keys): Comment out.
15364 (make_lispy_event) [XK_kana_A]: Comment out.
15365
15366 * xterm.c (xaw_scroll_callback): Cast call_data.
15367 (XTread_socket): Deal with ASCII keysyms.
15368 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15369
153702008-02-01 Dave Love <fx@gnu.org>
15371
15372 * xterm.c (Vx_keysym_table): New.
15373 (syms_of_xterm): Initialize it.
15374 (XTread_socket): Use it.
15375 From head: Eliminate incorrect optimization that tried to avoid
15376 decoding the output of X*LookupString.
15377 (x_get_font_repertory): Delete charset declaration.
15378
153792008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15382 return 0.
15383 (Fdefine_coding_system_internal): Setup
15384 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15385
153862008-02-01 Dave Love <fx@gnu.org>
15387
15388 * coding.c (Fcheck_coding_system): Doc fix.
15389
15390 * editfns.c (Finsert_byte): Return a proper value.
15391
153922008-02-01 Kenichi Handa <handa@m17n.org>
15393
15394 * coding.c (decode_coding): Fix args to translate_chars. Pay
15395 attention to Vstandard_translation_table_for_decode.
15396 (encode_coding): Fix args to translate_chars. Pay attention to
15397 Vstandard_translation_table_for_encode.
15398
15399 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15400 SINGLE_BYTE_CHAR_P.
15401
15402 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15403 not by SINGLE_BYTE_CHAR_P.
15404
15405 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15406 SINGLE_BYTE_CHAR_P.
15407
15408 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15409 SINGLE_BYTE_CHAR_P.
15410
15411 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15412 by SINGLE_BYTE_CHAR_P.
15413
15414 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15415 SINGLE_BYTE_CHAR_P.
15416
154172008-02-01 Dave Love <fx@gnu.org>
15418
15419 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15420
154212008-02-01 Dave Love <fx@gnu.org>
15422
15423 * fns.c (Flanginfo): Fix typo.
15424
15425 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15426
154272008-02-01 Kenichi Handa <handa@m17n.org>
15428
15429 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15430 (detect_coding_emacs_mule, detect_coding_iso_2022)
15431 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15432 incomplete byte sequence. Don't update *mask when correctly detected.
15433 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15434 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15435 (detect_coding, detect_coding_system): Adjust for the changes above.
15436
154372008-02-01 Kenichi Handa <handa@m17n.org>
15438
15439 * character.c (char_string): Rename from
15440 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15441 (string_char): Rename from string_char.
15442
15443 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15444 if C is greater than MAX_3_BYTE_CHAR.
15445 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15446 string_char instead of string_char_with_unification.
15447
154482008-02-01 Dave Love <fx@gnu.org>
15449
15450 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15451
154522008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * keymap.c (push_key_description): Pay attention to force_multibyte.
15455
15456 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15457
154582008-02-01 Dave Love <fx@gnu.org>
15459
15460 * charset.c (define_charset_internal): Rename `supprementary'.
15461
15462 * Makefile.in (lisp, shortlisp): Remove latin-N.
15463
154642008-02-01 Dave Love <fx@gnu.org>
15465
15466 * xfns.c (x_window, x_window): Use use_xim.
15467
15468 * xterm.c (use_xim): Initialize.
15469 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15470 (x_term_init): Maybe set use_xim.
15471
15472 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15473
154742008-02-01 Kenichi Handa <handa@m17n.org>
15475
15476 * search.c (search_buffer): Fix case-fold-search of multibyte
15477 characters.
15478 (boyer_moore): Rename the last argument to char_high_bits.
15479
154802008-02-01 Kenichi Handa <handa@m17n.org>
15481
15482 * xdisp.c (display_string): Fix for the case of zero width glyph.
15483
15484 * xfns.c (x_set_font): Change the error message of the case that
15485 x_new_fontset returns Qt.
15486
15487 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15488 (Finternal_set_lisp_face_attribute): Use signal_error for the
15489 error of invalid fontset.
15490
15491 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15492 fontset, return Qt.
15493
154942008-02-01 Dave Love <fx@gnu.org>
15495
15496 * unexelf.c (unexec): Make .got handling not SGI-specific.
15497
15498 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15499
15500 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15501
15502 * keyboard.c (read_key_sequence): Fix type error.
15503
15504 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15505 type error.
15506
15507 * fontset.c (fontset_add): Return Lisp_Object.
15508
155092008-02-01 Dave Love <fx@gnu.org>
15510
15511 * charset.h (charset_ordered_list_tick): Declare extern.
15512
155132008-02-01 Kenichi Handa <handa@m17n.org>
15514
15515 The following changes (and some of 2008-02-01 changes of mine) are
15516 for handling syntax, category, and case conversion for unibyte
15517 characters by converting them to multibyte on the fly. With these
15518 changes, we don't have to setup syntax and case tables for unibyte
15519 characters in each language environment.
15520
15521 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15522 multibyte if necessary.
15523
15524 * bytecode.c (Fbyte_code): Likewise.
15525
15526 * character.h (LEADING_CODE_LATIN_1_MIN)
15527 (LEADING_CODE_LATIN_1_MAX): New macros.
15528 (unibyte_to_multibyte_table): Extern it.
15529 (unibyte_char_to_multibyte): New macro.
15530 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15531 (CHAR_LEADING_CODE): New macro.
15532 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15533
15534 * character.c (unibyte_to_multibyte_table): New variable.
15535 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15536 (multibyte_char_to_unibyte): If C is an eight-bit character,
15537 convert it to the corresponding byte value.
15538
15539 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15540 not 1, signals an error. Update the elements of
15541 unibyte_to_multibyte_table.
15542 (init_charset_once): Initialize unibyte_to_multibyte_table.
15543 (syms_of_charset): Define the charset `iso-8859-1'.
15544
15545 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15546 as is without converting it to unibyte. In a unibyte buffer,
15547 convert C to multibyte before checking the syntax.
15548
15549 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15550
15551 * minibuf.c (Fminibuffer_complete_word): Use the macro
15552 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15553
15554 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15555
15556 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15557 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15558 that is zero, convert an eight-bit char to multibyte.
15559 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15560 non-emacs case.
15561 (PATFETCH): Convert an eight-bit char to multibyte.
15562 (HANDLE_UNIBYTE_RANGE): New macro.
15563 (regex_compile): Setup the compiled pattern for multibyte chars
15564 even if the given regex string is unibyte. Use PATFETCH_RAW
15565 instead of PATFETCH in many places. To handle `charset'
15566 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15567 only for ASCII chars.
15568 (analyse_first) <exactn>: Simplify because the compiled pattern
15569 is multibyte.
15570 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15571 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15572 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15573 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15574 multibyte always 1.
15575 (re_search_2): In emacs, set the locale variable multibyte to 1,
15576 otherwise to 0. New local variable target_multibyte. Check it
15577 to decide the multibyteness of STR1 and STR2. If
15578 target_multibyte is zero, convert unibyte chars to multibyte
15579 before translating and checking fastmap.
15580 (TARGET_CHAR_AND_LENGTH): New macro.
15581 (re_match_2_internal): In emacs, set the locale variable multibyte
15582 to 1, otherwise to 0. New local variable target_multibyte. Check
15583 it to decide the multibyteness of STR1 and STR2. Use
15584 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15585 <charset, charset_not>: If multibyte is nonzero, check fastmap
15586 only for ASCII chars. Call bcmp_translate with
15587 target_multibyte, not with multibyte.
15588 <begline>: Declare the local variable C as `unsigned'.
15589 (bcmp_translate): Change the last arg name to target_multibyte.
15590
15591 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15592 the regexp pattern and the matching target. Set cp->buf.multibyte
15593 to the multibyteness of the regexp pattern. Set
15594 cp->but.target_multibyte to the multibyteness of the matching target.
15595 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15596 FETCH_STRING_CHAR_ADVANCE.
15597 (Freplace_match): Convert unibyte chars to multibyte.
15598
15599 * syntax.c (char_quoted, back_comment, scan_words)
15600 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15601 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15602 unibyte chars to multibyte.
15603 (skip_chars): Delete the arg syntaxp, and move the code for
15604 handling syntaxes to skip_syntaxes. Change callers.
15605 Fix the case that the multibyteness of STRING and the current
15606 buffer doesn't match.
15607 (skip_syntaxes): New function.
15608 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15609 SINGLE_BYTE_CHAR_P.
15610
156112008-02-01 Kenichi Handa <handa@m17n.org>
15612
15613 * xfaces.c (QCfontset): New variable.
15614 (LFACE_FONTSET): New macro.
15615 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15616 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15617 (Finternal_set_lisp_face_attribute)
15618 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15619 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15620 check also LFACE_FONTSET_INDEX.
15621 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15622 attrs[LFACE_FONT_INDEX].
15623 (syms_of_xfaces): Intern and staticpro QCfontset.
15624
15625 * dispextern.h (enum lface_attribute_index): New member
15626 LFACE_FONTSET_INDEX.
15627
15628 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15629
156302008-02-01 Kenichi Handa <handa@m17n.org>
15631
15632 * coding.c (coding_set_destination): Fix coding->destination for
15633 the case converting a region.
15634 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15635 (encode_coding_object): Fix coding->dst_pos and
15636 coding->dst_pos_byte for the case converting a region.
15637
15638 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15639
15640 * character.h (BYTE8_STRING): New macro.
15641
15642 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15643
156442008-02-01 Kenichi Handa <handa@m17n.org>
15645
15646 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15647 characters by octal form.
15648
15649 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15650
15651 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15652 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15653 _fetch_multibyte_char_len.
15654 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15655
15656 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15657
15658 * casefiddle.c (casify_object): Simplify. Handle the case that
15659 the case conversion change the byte length.
15660 (casify_region): Likewise.
15661
15662 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15663
15664 * character.c (_fetch_multibyte_char_len): Delete this variable.
15665 (syms_of_character): Setup Vprintable_chars.
15666
15667 * editfns.c (Fchar_equal): Fix for the unibyte case.
15668 (Finsert_byte): New function.
15669 (syms_of_editfns): Defsubr it.
15670
15671 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15672 of direct code 0x3ffff.
15673
15674 * search.c (Freplace_match): Fix for the unibyte case.
15675
156762008-02-01 Kenichi Handa <handa@m17n.org>
15677
15678 * lread.c (safe_to_load_p): Fix the logic.
15679
15680 * syntax.c (scan_words): Don't treat characters belonging to
15681 different scripts as constituting a word.
15682
15683 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15684
15685 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15686
15687 * emacs.c (main): In the case of --unibyte, instead of aborting on
15688 finding non-empty buffer, make it unibyte.
15689
156902008-02-01 Kenichi Handa <handa@m17n.org>
15691
15692 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15693 to create a fontset.
15694
156952008-02-01 Dave Love <fx@gnu.org>
15696
15697 * character.c (Funibyte_char_to_multibyte): Doc fix.
15698
15699 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15700
157012008-02-01 Kenichi Handa <handa@m17n.org>
15702
15703 * fontset.c (fontset_add): Make the type `int'.
15704 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15705
15706 * character.c (unibyte_char_to_multibyte)
15707 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15708 charset_unibyte, not charset_primary.
15709
15710 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15711
15712 * charset.c (charset_unibyte): Rename from charset_primary.
15713 (Funibyte_charset): Rename from Fprimary_charset.
15714 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15715 (syms_of_charset): Adjust for the above changes.
15716
15717 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15718 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15719 it->multibyte_p is zero.
15720
15721 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15722 Delete extern.
15723
157242008-02-01 Kenichi Handa <handa@m17n.org>
15725
15726 * coding.c (Fdefine_coding_system_internal): Fix category setting
15727 for a coding system of type iso-2022.
15728
157292008-02-01 Kenichi Handa <handa@m17n.org>
15730
15731 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15732
157332008-02-01 Kenichi Handa <handa@m17n.org>
15734
15735 * syntax.c (Vnext_word_boundary_function_table): New variable.
15736 (next-word-boundary-function-table): Declare it as a Lisp variable
15737 in syms_of_syntax.
15738 (scan_words): Call functions in Vnext_word_boundary_function_table
15739 if any.
15740
15741 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15742
15743 * fontset.c (fs_load_font): If fontp->charset is not negative,
15744 return fontp without setting its members.
15745
157462008-02-01 Dave Love <fx@gnu.org>
15747
15748 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15749
15750 * m/sparc.h (HAVE_ALLOCA): Delete.
15751
15752 * s/irix6-5.h: Don't include strings.h.
15753 (bcopy, bzero, bcmp): Don't undef.
15754
15755 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15756
15757 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15758 (TIOCSIGSEND): Don't test IRIX6.
15759 (bcopy, bzero, bcmp): Define conditionally.
15760
157612008-02-01 Kenichi Handa <handa@m17n.org>
15762
15763 * buffer.c (Qas, Qmake, Qto): New variables.
15764 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15765 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15766
15767 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15768 we are inserting a process output into a multibyte buffer.
15769
15770 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15771 multibyte_char_to_unibyte.
15772
15773 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15774 by the primary charset, make it eight-bit char.
15775 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15776
15777 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15778 (charset_8_bit__control, charset_8_bit_graphic)
15779 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15780 (define_charset_internal): New function.
15781 (syms_of_charset): Call define_charset_internal for pre-defined
15782 charsets.
15783
15784 * charset.h (charset_8_bit): Extern it.
15785
15786 * coding.c (make_conversion_work_buffer): Adjust for the change
15787 of Fset_buffer_multibyte.
15788 (encode_coding_raw_text): Increment p0 in the loop.
15789
15790 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15791
15792 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15793 for the change of Fset_buffer_multibyte.
15794
15795 * fns.c (Fstring_to_multibyte): New function.
15796 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15797
157982008-02-01 Dave Love <fx@gnu.org>
15799
15800 * xfns.c (x_put_x_image): Declare args.
15801
15802 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15803 (try_font_list): Declare an arg.
15804
15805 * xdisp.c (message2_nolog, set_message): Declare an arg.
15806
15807 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15808
15809 * syntax.c (scan_sexps_forward): Declare an arg.
15810
15811 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15812 Declare an arg.
15813
15814 * lisp.h (Fnew_fontset): Declare.
15815
15816 * keymap.c (push_key_description): Call CHARACTERP correctly.
15817
15818 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15819 (face_for_char): Delete unused vars.
15820 (Fset_fontset_font): Doc fix. Delete unused vars.
15821
15822 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15823
15824 * composite.c (update_compositions): Declare arg.
15825
15826 * cm.c (calccost, cmgoto): Declare args.
15827
15828 * charset.c: Remove `emacs' conditional. Doc fixes.
15829 (map_char_table_for_charset): Declare.
15830
15831 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15832
15833 * ccl.c: Remove `emacs' conditional.
15834
158352008-02-01 Kenichi Handa <handa@m17n.org>
15836
15837 The following changes are to allow specifying multiple font
15838 patterns for a character range (specified by script or charset).
15839
15840 * Makefile.in (abbrev.o): Depend on syntax.h.
15841 (xfaces.o): Depend on charset.h.
15842
15843 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15844 SINGLE_BYTE_CHAR_P.
15845
15846 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15847
15848 * character.h (Vchar_script_table): Extern it.
15849
15850 * character.c (Vscript_alist): Delete.
15851 (Vchar_script_table, Qchar_script_table): New variable.
15852 (syms_of_character): Declare Vchar_script_table as a lisp variable
15853 and initialize it.
15854
15855 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15856 have property char-table-extra-slots, make no extra slot.
15857
15858 * dispextern.h (struct face): Delete member `charset'.
15859 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15860 SINGLE_BYTE_CHAR_P.
15861 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15862 Add prototypes.
15863 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15864 (generate_ascii_font_name): Rename from generate_ascii_font.
15865
15866 * fontset.h (get_font_repertory_func): New prototype.
15867 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15868 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15869
15870 * fontset.c (Qprepend, Qappend): New variables.
15871 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15872 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15873 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15874 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15875 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15876 (load_font_get_repertory): New functions.
15877 (fontset_set): Delete.
15878 (fontset_face): New arg FACE. Return face ID, not face.
15879 Complete re-write to handle new fontset structure. Change caller.
15880 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15881 (face_for_char): Don't call lookup_face.
15882 (make_fontset_for_ascii_face): New arg FACE.
15883 (fs_load_font): New arg CHARSET_ID. Don't check
15884 Vfont_encoding_alist here.
15885 (find_font_encoding): New function.
15886 (list_fontsets): Use STRINGP, not ! NILP.
15887 (accumulate_script_ranges): New function.
15888 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15889 re-written to handle new fontset structure.
15890 (Ffontset_font): Return a copy of element.
15891 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15892 docstring of font-encoding-alist.
15893
15894 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15895 (Fset_fotset_font): Fix arguments to 5.
15896
15897 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15898
15899 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15900 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15901 (highlight_trailing_whitespace): Adjust for the change of
15902 lookup_named_face.
15903
15904 * xfaces.c: Include charset.h.
15905 (load_face_font): Delete argument C. Change caller.
15906 (generate_ascii_font_name): Rename from generate_ascii_font.
15907 (font_name_registry): New function.
15908 (cache_face): Store ascii faces before non-ascii faces in buckets.
15909 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15910 Lookup only ascii faces.
15911 (lookup_non_ascii_face): New function.
15912 (lookup_named_face): Delete argument C. Change caller.
15913 (lookup_derived_face): Delete argument C. Change caller.
15914 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15915 a string, just call font_list with it.
15916 (choose_face_font): Delete arguments FACE and C. New arg
15917 FONT_SPEC. Change caller.
15918 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15919 Change caller.
15920 (realize_non_ascii_face): New function.
15921 (realize_x_face): Call load_face_font here.
15922 (realize_tty_face): Delete argument C. Change caller.
15923 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15924 get a face ID.
15925 (dump_realized_face): Don't print charset of FACE.
15926
15927 * xfns.c (x_set_font): Always call x_new_fontset and
15928 store_frame_parameter.
15929 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15930 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15931
15932 * xterm.h (x_get_font_repertory): Extern it.
15933
15934 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15935 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15936 it->multibyte_p is zero.
15937 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15938 (x_new_fontset): If FONTSETNAME doesn't match any existing
15939 fontsets, create a new one.
15940 (x_get_font_repertory): New function.
15941
159422008-02-01 Kenichi Handa <handa@m17n.org>
15943
15944 * coding.c (Ffind_coding_systems_region_internal): Detect an
15945 ASCII only string correctly.
15946
15947 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15948 version is 0.
15949
159502008-02-01 Kenichi Handa <handa@m17n.org>
15951
15952 * lread.c: Include "coding.h".
15953 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15954 (load_each_byte, unread_char): New variables.
15955 (readchar_backlog): Delete.
15956 (readchar): Return a character unless load_each_byte is nonzero.
15957 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15958 cons. If unread_char is not -1, simply return it.
15959 (unreadchar): Handle the case that readcharfun is
15960 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
15961 (read_multibyte): Delete.
15962 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15963 (read_emacs_mule_char): New functions.
15964 (Fload): Even if the file doesn't have the extension ".elc", if
15965 safe_to_load_p returns a positive version number, assume that the
15966 file contains bytecompiled code. If the version is less than 22,
15967 load the file while decoding multibyte sequences by emacs-mule.
15968 (readevalloop): Don't use readchar_backlog.
15969 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
15970 (Fread_from_string): Pay attention to the case that STREAM is a cons.
15971 (read_escape): Delete the arg BYTEREP.
15972 (read1): Set load_each_byte to 1 temporarily while handling
15973 #@NUMBER. Don't call read_multibyte.
15974 (read_vector): Call Fread with a cons. If readcharfun is
15975 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
15976 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
15977 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
15978 and Qload_force_doc_strings.
15979
159802008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * xdisp.c (face_before_or_after_it_pos): Call
15983 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15984
159852008-02-01 Kenichi Handa <handa@m17n.org>
15986
15987 * character.h (TRAILING_CODE_P): New macro.
15988 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
15989 (string_char_with_unification): Fix prototype.
15990 (Vscript_alist): Extern it.
15991
15992 * character.c (Vscript_alist): New variable.
15993 (string_char_with_unification, str_as_unibyte)
15994 (string_escape_byte8): Add `const' to local variables.
15995 (syms_of_character): Declare script-alist as a Lisp variable.
15996
15997 * charset.h (Vcharset_ordered_list): Extern it.
15998 (charset_ordered_list_tick): Extern it.
15999 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16000 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16001 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16002 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16003 (Funify_charset): Adjust for the change of Funify_charset.
16004
16005 * charset.c (charset_ordered_list_tick): New variable.
16006 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16007 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16008 deunify intead of unify a charset.
16009 (string_xstring_p): Add `const' to local variables.
16010 (find_charsets_in_text): Add `const' to arguments and local variables.
16011 (encode_char): Adjust for the change of Funify_charset. Fix
16012 detecting of invalid code.
16013 (Fset_charset_priority): Increment charset_ordered_list_tick.
16014 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16015 and TO_CODE.
16016
16017 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16018 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16019 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16020 (decode_coding_ccl, consume_chars)
16021 (Ffind_coding_systems_region_internal)
16022 (Fcheck_coding_systems_region): Add `const' to local variables.
16023
16024 * print.c (print_object): Use octal form for printing the
16025 contents of a bool vector.
16026
160272008-02-01 Dave Love <fx@gnu.org>
16028
16029 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16030 <version == 20>: Refuse to load.
16031
160322008-02-01 Dave Love <fx@gnu.org>
16033
16034 * fns.c: Move coding.h.
16035 (Qcodeset, Qdays, Qmonths): New.
16036 (concat): Use CHARACTERP instead of INTEGERP.
16037 (Flocale_codeset): Delete.
16038 (Flanginfo): New function.
16039 (syms_of_fns): Change accordingly.
16040
16041 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16042
160432008-02-01 Dave Love <fx@gnu.org>
16044
16045 * casetab.c (init_casetab_once, init_casetab_once): Fix
16046 CHAR_TABLE_SET call.
16047
16048 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16049
16050 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16051
16052 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16053 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16054 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16055
16056 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16057
16058 * coding.c (ENCODE_DESIGNATION, decode_eol)
16059 (make_conversion_work_buffer, code_conversion_restore)
16060 (Fdefine_coding_system_internal): Convert Lisp types.
16061 (code_conversion_restore): Use EQ, not ==.
16062 (Fencode_coding_string): Fix code_convert_string call.
16063
16064 * coding.h (code_convert_region): Fix prototype.
16065
16066 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16067
16068 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16069 (Ffontset_info): Convert Lisp types.
16070
16071 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16072
16073 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16074
16075 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16076
16077 * chartab.c: Include "...h", not <...h> in some cases.
16078
16079 * callproc.c (Fcall_process): Remove unused variables.
16080
160812008-02-01 Dave Love <fx@gnu.org>
16082
16083 * coding.c (Fset_coding_system_priority): Allow null arg list.
16084
160852008-02-01 Dave Love <fx@gnu.org>
16086
16087 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16088 (Fself_insert_and_exit): Use CHARACTERP.
16089
16090 * callproc.c (Fcall_process): Remove unused vars.
16091
16092 * xterm.c (XTread_socket): Add extra dead keysyms.
16093
16094 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16095
16096 * dispextern.h: Remove prototypes for redraw_frame,
16097 redraw_garbaged_frames.
16098
16099 * cmds.c (Fself_insert_command): Use CHARACTERP.
16100
16101 * chartab.c (make_sub_char_table): Remove unused var.
16102 (Fset_char_table_default, Fmap_char_table): Doc fix.
16103
16104 * keymap.c (access_keymap): Remove generic char code.
16105 (push_key_description): Use CHARACTERP.
16106
161072008-02-01 Dave Love <fx@gnu.org>
16108
16109 * charset.c: Doc fixes.
16110 (Funify_charset): Extra checking.
16111
161122008-02-01 Dave Love <fx@gnu.org>
16113
16114 * lread.c: Remove some unused variables.
16115 (safe_to_load_p): If safe, return the magic number version byte.
16116 (Fload): Maybe use load-with-code-conversion.
16117
161182008-02-01 Kenichi Handa <handa@m17n.org>
16119
16120 * category.c (Fmodify_category_entry): Don't modify the contents
16121 of category_set for characters out of the range. Avoid
16122 unnecessary modification.
16123
16124 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16125 Vchar_unify_table. The default value of the table is now nil.
16126
16127 * character.c (syms_of_character): Setup Vchar_width_table for
16128 eight-bit-control and raw-byte chars.
16129
16130 * charset.h (enum define_charset_arg_index): Delete
16131 charset_arg_parents and add charset_arg_subset and
16132 charset_arg_superset.
16133 (enum charset_attr_index): Delete charset_parents and add
16134 charset_subset and charset_superset.
16135 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16136 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16137 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16138 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16139 (CHARSET_SUPERSET): New macros.
16140 (charset_work): Extern it.
16141 (ENCODE_CHAR): Use charset_work.
16142 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16143 (map_charset_chars): Extern it.
16144
16145 * charset.c (load_charset_map): Set the default value of encoder
16146 and deunifier char-tables to nil.
16147 (map_charset_chars): Change argument. Change callers. Use
16148 map_char_table_for_charset instead of map_char_table.
16149 (Fmap_charset_chars): New optional args from_code and to_code.
16150 (Fdefine_charset_internal): Adjust for the change of
16151 `define-charset' (:parents -> :subset or :superset).
16152 (charset_work): New variable.
16153 (encode_char, syms_of_charset): Adjust for the change of
16154 Fdefine_charset_internal.
16155 (Ffind_charset_string): Setup the vector `charsets' correctly.
16156
16157 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16158 the previous change.
16159 (char_table_ref_and_range): Adjust for the above change.
16160 (map_sub_char_table_for_charset): New function.
16161 (map_char_table_for_charset): New function.
16162
16163 * keymap.c (describe_vector): Handle a char-table directly here.
16164 (describe_char_table): Delete.
16165
16166 * lisp.h (map_charset_chars): Delete.
16167
161682008-02-01 Dave Love <fx@gnu.org>
16169
16170 * fns.c (count_combining): Comment out (unused).
16171 (Flocale_codeset): New.
16172 (syms_of_fns): Defsubr it.
16173
16174 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16175 (size_t): Remove.
16176
161772008-02-01 Dave Love <fx@gnu.org>
16178
16179 * Makefile.in (chartab.o): Depend on charset.h.
16180
161812008-02-01 Kenichi Handa <handa@m17n.org>
16182
16183 * character.c (syms_of_character): Set the default value of
16184 Vprintable_chars to Qnil.
16185
161862008-02-01 Dave Love <fx@gnu.org>
16187
16188 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16189
161902008-02-01 Kenichi Handa <handa@m17n.org>
16191
16192 * charset.c (load_charset_map): Handle the case that from < to
16193 correctly.
16194
16195 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16196 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16197 Pay attention to raw-8-bit chars.
16198
161992008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16202 It is not bytecompiled now.
16203
16204 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16205 (charset_jisx0208): New variables.
16206 (Fdefine_charset_internal): Setup them if appropriate.
16207 (init_charset_once): Initialize them to -1.
16208
16209 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16210 (charset_jisx0208): Extern them.
16211
16212 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16213 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16214 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16215 (setup_iso_safe_charsets): Fix arguments to Fassq.
16216 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16217 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16218 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16219 (encode_coding_iso_2022): Change the 1st arg to
16220 ENCODE_ISO_CHARACTER to a variable.
16221
162222008-02-01 Kenichi Handa <handa@m17n.org>
16223
16224 * charset.h (enum define_charset_arg_index): New enums
16225 charset_arg_min_code and charset_arg_max_code.
16226 (struct charset): New member char_index_offset.
16227
16228 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16229 Take charset->char_index_offset into account.
16230 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16231 args[charset_arg_max_code]. Setup charset.char_index_offset.
16232 (syms_of_charset): Fix args to Fdefine_charset_internal.
16233
162342008-02-01 Dave Love <fx@gnu.org>
16235
16236 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16237
162382008-02-01 Dave Love <fx@gnu.org>
16239
16240 * coding.c: Doc fixes.
16241 (Fcoding_system_aliases): Fix return value.
16242 (Qmac): Remove (duplicated) definition.
16243
162442008-02-01 Dave Love <fx@gnu.org>
16245
362654a6
JB
16246 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16247 New functions.
aac0c6e3
MR
16248
16249 * character.c (Fstring): Doc fix.
16250
16251 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16252
362654a6 16253 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16254 (font-encoding-alist): Doc fix.
16255
162562008-02-01 Dave Love <fx@gnu.org>
16257
16258 * term.c (costs_set): Declare static, non-initialized for pcc.
16259 (encode_terminal_code): Remove unused var.
16260
16261 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16262 for K&R.
16263
16264 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16265
16266 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16267 (suffixes): Move out of make_subsidiaries for K&R.
16268
16269 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16270
16271 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16272
162732008-02-01 Dave Love <fx@gnu.org>
16274
16275 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16276
16277 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16278
162792008-02-01 Yong Lu <lyongu@asia-infonet.com>
16280
16281 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16282
16283 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16284
162852008-02-01 Kenichi Handa <handa@m17n.org>
16286
16287 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16288 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16289
162902008-02-01 Kenichi Handa <handa@m17n.org>
16291
16292 * coding.c (decode_coding_charset): Adjust for the change of
16293 Fdefine_coding_system_internal.
16294 (Fdefine_coding_system_internal): For a coding system of
16295 `charset' type, store a list of charset IDs in
16296 `charset_attr_charset_valids' element of coding attributes.
16297
162982008-02-01 Kenichi Handa <handa@m17n.org>
16299
16300 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16301 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16302 caller. Handle 2-byte and 3-byte charsets correctly.
16303 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16304 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16305 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16306 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16307 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16308 sequence.
16309 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16310 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16311 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16312 and alt&rule composition.
16313 (decode_coding_iso_2022): Handle composition correctly.
16314 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16315
16316 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16317 re-defining a charset. If the charset has :emacs-mule-id, setup
16318 emacs_mule_bytes.
16319 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16320
163212008-02-01 Kenichi Handa <handa@m17n.org>
16322
16323 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16324 (encode_coding_big5, encode_coding_charset): If coding requires safe
16325 encoding, produce a character specified by
16326 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16327
163282008-02-01 Dave Love <fx@gnu.org>
16329
16330 * xterm.c (XSetIMValues): Declare.
16331
16332 * process.c: Conditionally include sys/wait.h, pty.h.
16333
16334 * print.c (print_object): Fix print format for 64-bit systems.
16335
16336 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16337
16338 * buffer.c (emacs_strerror): Declare.
16339
16340 * fontset.c (Fclear_face_cache): Declare.
16341 (accumulate_font_info): Comment-out (unused).
16342 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16343 variables.
16344
16345 * character.h (string_escape_byte8): Declare.
16346
16347 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16348 unused vars.
16349 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16350 (Fmap_charset_chars): Doc fix.
16351
16352 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16353 (Fset_coding_system_priority, Fset_coding_system_priority)
16354 (Fdefine_coding_system_internal): Doc fix.
16355
163562008-02-01 Dave Love <fx@gnu.org>
16357
16358 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16359
163602008-02-01 Kenichi Handa <handa@m17n.org>
16361
16362 * character.c (string_escape_byte8): Make multibyte string with
16363 correct size.
16364
16365 * charset.c (Fmake_char): Delete unnecessary code.
16366
163672008-02-01 Kenichi Handa <handa@m17n.org>
16368
16369 * xfns.c (x_encode_text): Allocate coding.destination here, and
16370 call encode_coding_object with dst_object Qnil.
16371
16372 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16373 multibyte form correctly.
16374
16375 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16376 against Vfont_encoding_alist.
16377
16378 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16379 handling of charset list.
16380 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16381 (decode_coding_object): Move point to coding->dst_pos before
16382 calling post-read-conversion function.
16383 (encode_coding_object): Give correct arguments to
16384 pre-write-conversion. Ignore the return value of
16385 pre-write-conversion function. Pay attention to the case that
16386 pre-write-conversion changes the current buffer. If dst_object is
16387 Qt, even if coding->src_bytes is zero, allocate at least one byte
16388 to coding->destination.
16389
16390 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16391
16392 * charset.c (Fmake_char): Make it more backward compatible.
16393 (Fmap_charset_chars): Fix docstring.
16394
163952008-02-01 Dave Love <fx@gnu.org>
16396
16397 * coding.c: Doc fixes.
16398 (Fdefine_coding_system_alias): Use names, not symbols, in
16399 coding-system-alist.
16400
164012008-02-01 Kenichi Handa <handa@m17n.org>
16402
16403 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16404 of calling free_realized_face.
16405
164062008-02-01 Yong Lu <lyongu@asia-infonet.com>
16407
16408 * charset.c (read_hex): Don't treat SPC as a comment starter.
16409 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16410 (Fdecode_char): Fix typo.
16411
164122008-02-01 Kenichi Handa <handa@m17n.org>
16413
16414 * charset.h (struct charset): New member `code_space_mask'.
16415
16416 * coding.c (coding_set_source): Delete the local variable beg_byte.
16417 (encode_coding_charset, Fdefine_coding_system_internal):
16418 Delete the local variable charset.
16419 (Fdefine_coding_system_internal): Setup
16420 attrs[coding_attr_charset_valids] correctly.
16421
16422 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16423 member to check if CODE is valid or not.
16424 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16425 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16426 is within the range of charset->min_code and carset->max_code.
16427
164282008-02-01 Dave Love <fx@gnu.org>
16429
16430 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16431
16432 * dispextern.h (generate_ascii_font): Fix return type.
16433
16434 * xfaces.c (generate_ascii_font): Fix arg declaration.
16435
16436 * coding.c (coding_inherit_eol_type)
16437 (Fset_terminal_coding_system_internal)
16438 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16439
164402008-02-01 Kenichi Handa <handa@m17n.org>
16441
16442 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16443 multiple charsets correctly.
16444
164452008-02-01 Kenichi Handa <handa@m17n.org>
16446
16447 * search.c (boyer_moore): Fix handling of multibyte character
16448 translation.
16449
16450 * xdisp.c (display_mode_element): When the variable `elt' is
16451 changed, update `this' and `lisp_string'.
16452
164532008-02-01 Kenichi Handa <handa@m17n.org>
16454
16455 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16456
16457 * callproc.c (Fcall_process): Be sure to give the current buffer
16458 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16459
16460 * charset.c (struct charset_map_entries): New struct.
16461 (load_charset_map): Rename from parse_charset_map. New args
16462 entries and n_entries. Change caller.
16463 (load_charset_map_from_file): Rename from load_charset_map.
16464 Change caller. New arg control_flag. Call load_charset_map at
16465 the tail.
16466 (load_charset_map_from_vector): New function.
16467 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16468 (encode_char): If the charset is compact, change a character index
16469 to a code point.
16470
16471 * coding.c (coding_alloc_by_making_gap): Check the case that the
16472 source and destination are the same correctly.
16473 (decode_coding_raw_text): Set coding->consumed_char and
16474 coding->consumed to 0.
16475 (produce_chars): If coding->chars_at_source is nonzero, update
16476 coding->consumed_char and coding->consumed before calling
16477 alloc_destination.
16478 (Fdefine_coding_system_alias): Register ALIAS in
16479 Vcoding_system_alist.
16480 (syms_of_coding): Define `no-conversion' coding system at the tail.
16481
16482 * fileio.c (Finsert_file_contents): Set coding_system instead of
16483 val. If the current buffer is multibyte, always call
16484 decode_coding_gap.
16485
16486 * xfaces.c (try_font_list): Give higher priority to fontset's
16487 family than face's family.
16488
164892008-02-01 Kenichi Handa <handa@m17n.org>
16490
16491 * callproc.c (Fcall_process): Be sure to give the current buffer
16492 to decode_coding_c_string.
16493
16494 * xfaces.c (try_font_list): Give a family specified in a fontset
16495 higher priority than a family specified in a face.
16496
164972008-02-01 Kenichi Handa <handa@m17n.org>
16498
16499 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16500 Fix arguments to insert_from_buffer.
16501
16502 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16503
165042008-02-01 Kenichi Handa <handa@m17n.org>
16505
16506 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16507 (decode_coding_gap): Set coding->dst_multibyte correctly.
16508
165092008-02-01 Kenichi Handa <handa@m17n.org>
16510
16511 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16512 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16513 (encode_coding_utf_16): Substitute coding->default_char for
16514 non-Unicode characters.
16515 (decode_coding): Don't call record_insert here.
16516 (setup_coding_system): Initialize `surrogate' of
16517 coding->spec.utf_16 to 0.
16518 (EMIT_ONE_BYTE): Fix for multibyte case.
16519
16520 * insdel.c (insert_from_gap): Call record_insert.
16521
165222008-02-01 Kenichi Handa <handa@m17n.org>
16523
16524 * casefiddle.c (casify_region): Fix multibyte case.
16525
16526 * character.c (c_string_width): Add return type `int'.
16527 (char_string_with_unification): Delete arg ADVANCED.
16528
16529 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16530 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16531 (CHAR_STRING_ADVANCE): Make it do-while statement.
16532
16533 * chartab.c (sub_char_table_set_range): Optimize for the case
16534 DEPTH == 3. Add workaround code for a GCC optimization bug.
16535
16536 * charset.c (parse_charset_map): Remove an unused variable.
16537
16538 * coding.c: Delete unused variables.
16539
16540 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16541 earlier. If inserted is zero and the coding system doesn't
16542 require flushing, don't call decode_coding_gap.
16543
16544 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16545
165462008-02-01 Kenichi Handa <handa@m17n.org>
16547
16548 The following changes are for using Unicode as an internal
16549 character model, and use UTF-8 format for buffer/string
16550 representation.
16551
16552 * .gdbinit (xchartable): Adjust for the change of char table structure.
16553 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16554
16555 * Makefile.in (obj): Add character.o and chartab.o.
16556 (lisp, shortlisp): Remove utf-8.elc.
16557 (*.o): For many files, change dependency on charset.h to
16558 character.h, and add dependency on character.h.
16559 (character.o, chartab.o): New targets.
16560
16561 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16562 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16563 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16564 of "charset.h".
16565
16566 * dired.c, filelock.c: Include "character.h".
16567
16568 * alloc.c: Include "character.h" instead of "charset.h".
16569 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16570 (syms_of_alloc): Remove defsubr for Smake_char_table.
16571
16572 * buffer.c: Include "character.h" instead of "charset.h", don't
16573 include "coding.h".
16574 (Fset_buffer_multibyte): Adjust for UTF-8.
16575
16576 * buffer.h: EXFUN Fbuffer_live_p.
16577
16578 * callproc.c: Include "character.h" instead of "charset.h".
16579 (Fcall_process): Big change for the new code-conversion APIs.
16580
16581 * casetab.c: Include "character.h" instead of "charset.h".
16582 (set_canon, set_identity, shuffle): Adjust for the new
16583 map_char_table spec.
16584 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16585 accessing the char table structure.
16586
16587 * chartab.c: New file that implements char table.
16588
16589 * category.c: Include "character.h".
16590 (copy_category_entry): New function.
16591 (copy_category_table): Call map_char_table and copy_category_entry.
16592 (Fmake_category_table): Initialize all top-level slots.
16593 (char_category_set): New function.
16594 (modify_lower_category_set): Delete.
16595 (Fmodify_category_entry): Call char_table_ref_and_range.
16596
16597 * category.h (CATEGORY_SET): Just call char_category_set.
16598
16599 * ccl.c: Include "character.h".
16600 (Qccl, Qcclp): New variables.
16601 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16602 it's less than 256.
16603 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16604 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16605 and DST type.
16606 (ccl_driver): Change types of argument, adjust code accordingly.
16607 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16608 ccl_driver.
16609 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16610
16611 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16612 New members src_multibyte, dst_multibyte, consumed, and produced.
16613 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16614 (CODING_SPEC_CCL_PROGRAM): New macro.
16615 (ccl_driver): Update prototype.
16616 (Qccl, Qcclp, Fccl_program_p): Extern them.
16617 (CHECK_CCL_PROGRAM): New macro.
16618
16619 * character.c, character.h, chartab.c: New files.
16620
16621 * charset.c: Mostly re-written. Move character and multibyte sequence
16622 handling codes to character.c.
16623
16624 * charset.h: Mostly re-written. Move character and multibyte sequence
16625 handling codes to character.h.
16626
16627 * coding.c, coding.h: Mostly re-written.
16628
16629 * composite.c: Include "character.h" instead of "charset.h".
16630 (CHAR_WIDTH): Move to character.h.
16631 (HASH_KEY, HASH_VALUE): Delete.
16632
16633 * composite.h (enum composition_method): Change order of enumeration
16634 symbols.
16635
16636 * data.c: Include "character.h" instead of "charset.h".
16637 (Faref): Call CHAR_TABLE_REF for a char table.
16638 (Faset): Call CHAR_TABLE_SET for a char table.
16639
16640 * dispextern.h (free_realized_face, check_face_attribytes)
16641 (generate_ascii_font): Extern them.
16642 (free_realized_multibyte_face): Delete extern.
16643
16644 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16645 table structure.
16646
16647 * editfns.c: Include "character.h" instead of "charset.h".
16648 (Fchar_to_string): Always call CHAR_STRING.
16649
16650 * emacs.c (main): Call init_charset_once, init_charset,
16651 syms_of_chartab, and syms_of_character.
16652
16653 * fileio.c: Include "character.h" instead of "charset.h".
16654 (Finsert_file_contents): Big change for the new code-conversion API.
16655 (choose_write_coding_system, Fwrite_region): Likewise.
16656 (build_annotations_2): Delete.
16657 (e_write): Big change for the new code-conversion API.
16658
16659 * fns.c: Include "character.h" instead of "charset.h".
16660 (copy_sub_char_table): Move to chartab.c.
16661 (Fcopy_sequence): Call copy_char_table for a char table.
16662 (concat): Delete codes calling count_multibyte.
16663 (string_char_to_byte, string_byte_to_char): Adjust for the new
16664 multibyte form.
16665 (internal_equal): Adjust for the change of char table structure.
16666 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16667 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16668 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16669 (char_table_translate, optimize_sub_char_table)
16670 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16671 chartab.c.
16672 (char_table_ref_and_index): Delete.
16673 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16674 (Fmd5): Call preferred_coding_system instead of accessing
16675 Vcoding_category_list. Adjust for the new code-conversion API.
16676 (syms_of_fns): Move defsubr for char table related functions to
16677 chartab.c.
16678
16679 * fontset.c: Mostly re-written.
16680
16681 * fontset.h (struct font_info): Change type of the member encoding_type.
16682 (enum FONT_SPEC_INDEX): New enum.
16683 (fontset_font_pattern, fs_load_font): Update prototype.
16684 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16685
16686 * indent.c: Include "character.h" instead of "charset.h".
16687 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16688
16689 * insdel.c: Include "character.h" instead of "charset.h".
16690 (copy_text): Don't refer to Vnonascii_translation_table.
16691 (insert_from_gap): New function.
16692
16693 * keyboard.c: Include "character.h" instead of "charset.h".
16694 (command_loop_1): Never call direct_output_forward_char before
16695 a non-ASCII character.
16696 (read_char): If Vkeyboard_translate_table is a char table, always
16697 translate a character.
16698
16699 * keymap.c: Include "character.h".
16700 (store_in_keymap): Handle the case that IDX is a cons.
16701 (Fdefine_key): Handle the case that KEY is a cons and the car part
16702 is also a cons (range).
16703 (push_key_description): Adjust for the new character code.
16704 (describe_vector): Call describe_char_table for a char table.
16705 (describe_char_table): New function.
16706
16707 * keymap.h (describe_char_table): Extern it.
16708
16709 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16710 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16711 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16712 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16713 Delete.
16714 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16715 structure.
16716 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16717 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16718 (CHARTAB_SIZE_BITS_3): New macros.
16719 (chartab_size): Extern it.
16720 (struct Lisp_Char_Table): Re-design.
16721 (struct Lisp_Sub_Char_Table): New structure.
16722 (HASH_KEY, HASH_VALUE): Move from fns.c.
16723 (CHARACTERBITS): Define as 22.
16724 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16725 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16726 (GC_SUB_CHAR_TABLE_P): New macro.
16727 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16728 (code_convert_string_norecord): Deleted extern.
16729 (init_character_once, syms_of_character, init_charset)
16730 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16731
16732 * lread.c: Include "character.h".
16733 (read_multibyte): New arg NBYTES.
16734 (read_escape): Change the meaning of returned *BYTEREP.
16735 (to_multibyte): Delete.
16736 (read1): Adjust the handling of char table and string.
16737
16738 * print.c: Include "character.h" instead of "charset.h".
16739 (print_string): Convert 8-bit raw bytes to octal form by
16740 string_escape_byte8.
16741 (print_object): Adjust for the new multibyte form. Print 8-bit
16742 raw bytes always in octal form. Handle sub char table correctly.
16743
16744 * process.c: Include "character.h" instead of "charset.h".
16745 (read_process_output, send_process): Adjust for the new
16746 code-conversion API.
16747
16748 * puresize.h (BASE_PURESIZE): Increase.
16749
16750 * regex.c: Include "character.h" instead of "charset.h".
16751 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16752 (regex_compile): Accept a range whose starting and ending
16753 character have different leading bytes.
16754 (analyse_first): Adjust for the above change.
16755
16756 * search.c: Include "character.h" instead of "charset.h".
16757 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16758 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16759
16760 * syntax.c: Include "character.h" instead of "charset.h".
16761 (syntax_parent_lookup): Delete.
16762 (Fmodify_syntax_entry): Accept a cons as CHAR.
16763 (skip_chars): Adjust for the new multibyte form.
16764 (init_syntax_once): Call char_table_set_range instead of directly
16765 accessing the structure of a char table.
16766
16767 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16768 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16769 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16770 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16771
16772 * term.c: Include "buffer.h" and "character.h".
16773 (encode_terminal_code, write_glyphs): Adjust for the new
16774 code-conversion API.
16775 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16776
16777 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16778
16779 * xdisp.c: Include "character.h".
16780 (get_next_display_element): Adjust for the new multibyte form.
16781 (disp_char_vector): Adjust for the new char table structure.
16782 (decode_mode_spec_coding): Adjust for the new structure of
16783 coding system.
16784 (decode_mode_spec): Adjust for the new code-conversion API.
16785
16786 * xfaces.c: Include "character.h" instead of "charset.h".
16787 (load_face_font): Adjust for the change of choose_face_font and
16788 FS_LOAD_FONT.
16789 (generate_ascii_font): New function.
16790 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16791 (set_font_frame_param): Adjust for the change of choose_face_font.
16792 (free_realized_face): Make it public.
16793 (free_realized_faces_for_fontset): Rename from
16794 free_realized_multibyte_face. Free also faces realized for ASCII.
16795 (choose_face_font): Change arguments. Adjust for the change of
16796 fontset_font_pattern and FS_LOAD_FONT.
16797
16798 * xfns.c: Include "character.h".
16799 (x_encode_text): Adjust for the new code-conversion API.
16800
16801 * xselect.c: Don't include "charset.h".
16802 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16803
16804 * xterm.c: Include "character.h".
16805 (x_encode_char): New argument CHARSET. Change caller.
16806 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16807 Call ENCODE_CHAR instead of SPLIT_CHAR.
16808 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16809 CHAR_WIDTH instead of CHARSET_WIDTH.
16810 (XTread_socket): Adjust for the new code-conversion API.
16811 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16812 (x_load_font): Adjust for the change of struct font.
16813
168142008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16815
16816 * xfaces.c (face_at_buffer_position): Remove unused vars.
16817
168182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16819
16820 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16821 Fix overflow checking.
16822
168232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16824
16825 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16826 Cancel previous change.
16827
168282008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16829
16830 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16831 ccl->eight_bit_control. Fix check for buffer overflow.
16832 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16833 (ccl_driver): Initialize extra_bytes to 0.
16834
168352008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16836
16837 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16838 return it ORed with ctrl_modifier.
16839
168402008-01-29 Miles Bader <miles@gnu.org>
16841
16842 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16843
168442008-01-28 Jason Rumney <jasonr@gnu.org>
16845
16846 * w32.c (stat): Don't double check for networked drive.
16847
168482008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16849
16850 * window.c (run_window_configuration_change_hook): New function.
16851 Code extracted from set_window_buffer. Set the selected frame.
16852 (set_window_buffer): Use it.
16853 * window.h (run_window_configuration_change_hook): Declare.
16854 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16855
16856 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16857
168582008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16859
16860 * Makefile.in: Remove references to unused macros.
16861
168622008-01-26 Eli Zaretskii <eliz@gnu.org>
16863
16864 * w32.c (g_b_init_get_sid_sub_authority)
16865 (g_b_init_get_sid_sub_authority_count): New static variables.
16866 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16867 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16868 (init_user_info): Use them to retrieve uid and gid.
16869 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16870 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16871 st_uid and st_gid of the file.
16872
168732008-01-26 Jason Rumney <jasonr@gnu.org>
16874
16875 * w32.c (logon_network_drive): New function.
16876 (stat): Use it.
16877
168782008-01-26 Chong Yidong <cyd@stupidchicken.com>
16879
16880 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16881 invisible text covered with an ellipsis.
16882
168832008-01-25 Richard Stallman <rms@gnu.org>
16884
16885 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16886 jump back to beginning. Move some other initializations after that.
16887 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16888 New variables.
16889 (syms_of_xdisp): Init them.
16890
16891 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16892
16893 * buffer.c (reset_buffer_local_variables):
16894 Implement `permanent-local-hook'.
16895 (Qpermanent_local_hook): New variable.
16896 (syms_of_buffer): Init and staticpro it.
16897
168982008-01-25 Michael Albinus <michael.albinus@gmx.de>
16899
16900 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16901
169022008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16903
16904 * fns.c (Fclrhash): Return TABLE.
16905
169062008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16907
16908 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16909 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16910 is set even without positional changes.
16911 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16912
16913 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16914
169152008-01-23 Jason Rumney <jasonr@gnu.org>
16916
16917 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16918
16919 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16920 the unicode range available in MULE by locale-coding-system.
16921 Improve dbcs lead byte detection. Set event timestamp and modifiers
16922 earlier.
16923
169242008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16925
16926 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16927 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16928 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16929 when used on child processes.
16930
169312008-01-21 Michael Albinus <michael.albinus@gmx.de>
16932
16933 * dbusbind.c (Fdbus_method_return_internal): Rename from
16934 Fdbus_method_return.
16935 (Fdbus_unregister_object): Move to dbus.el.
16936 (Fdbus_call_method, Fdbus_method_return_internal)
16937 (Fdbus_send_signal): Improve debug messages.
16938
169392008-01-20 Martin Rudalics <rudalics@gmx.at>
16940
16941 * undo.c (undo_inhibit_record_point): New variable.
16942 (syms_of_undo): Initialize it.
16943 (record_point): Don't record point when undo_inhibit_record_point
16944 is set.
16945
169462008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
16947
16948 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16949
16950 * xdisp.c (Qauto_hscroll_mode): New var.
16951 (syms_of_xdisp): Initialize it.
16952 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16953 window's buffer.
16954 (hscroll_windows): Don't check automatic_hscrolling_p here.
16955
16956 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16957 vscroll if we're setting window-buffer to the value it already has.
16958
169592008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
16960
16961 * m/intel386.h: Remove references to XENIX.
16962
169632008-01-17 Andreas Schwab <schwab@suse.de>
16964
16965 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16966 instead of HAVE_X86_64_LIB64_DIR.
16967 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
16968
169692008-01-17 Glenn Morris <rgm@gnu.org>
16970
16971 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
16972 to HAVE_X86_64_LIB64_DIR.
16973
169742008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
16975
16976 * s/irix3-3.h:
16977 * s/irix4-0.h:
16978 * s/386-ix.h:
16979 * s/domain.h:
16980 * s/hpux9-x11r4.h:
16981 * s/hpux9shxr4.h: Remove files for systems no longer supported.
16982
16983 * sysdep.c: Remove code containing references to symbols defined
16984 by unsupported systems.
16985
169862008-01-16 Glenn Morris <rgm@gnu.org>
16987
16988 * coding.c (select-safe-coding-system-function): Doc fix.
16989
169902008-01-15 Glenn Morris <rgm@gnu.org>
16991
16992 * config.in: Revert 2008-01-13 change: this is a generated file.
16993
169942008-01-13 Tom Tromey <tromey@redhat.com>
16995
16996 * lisp.h: Fix typo.
16997
169982008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16999
17000 * m/sequent-ptx.h:
17001 * m/sequent.h:
17002 * s/ptx.h:
17003 * s/ptx4-2.h:
17004 * s/ptx4.h: Remove files for systems no longer supported.
17005
17006 * callproc.c (Fcall_process): Fix previous change.
17007
170082008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17009
17010 * unexsunos4.c: Remove file, system not supported anymore.
17011
17012 * m/mips.h:
17013 * m/intel386.h:
17014 * callproc.c:
17015 * config.in:
17016 * ecrt0.c:
17017 * emacs.c:
17018 * fileio.c:
17019 * frame.c:
17020 * getpagesize.h:
17021 * keyboard.c:
17022 * lread.c:
17023 * process.c:
17024 * puresize.h:
17025 * sysdep.c:
17026 * systty.h:
17027 * syswait.h:
17028 * unexec.c:
17029 * xdisp.c:
17030 * alloc.c: Remove code containing references to symbols defined by
17031 unsupported systems.
17032
170332008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17034
17035 * coding.c (detect_coding_mask): Fix previous change.
17036
170372008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17038
17039 * coding.c (detect_coding_iso2022): New arg
17040 latin_extra_code_state. Allow Latin extra codes only
17041 when *latin_extra_code_state is nonzero.
17042 (detect_coding_mask): If there is a NULL byte, detect the encoding
17043 as UTF-16 or binary. If Latin extra codes exist, detect the
17044 encoding as ISO-2022 only when there's no other proper encoding is
17045 found.
17046
170472008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17048
17049 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17050 #ifdef MAC_OS.
17051
170522008-01-08 Richard Stallman <rms@gnu.org>
17053
17054 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17055
170562008-01-06 Nick Roberts <nickrob@snap.net.nz>
17057
17058 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17059 menu bar in parentheses.
17060
170612008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17062
17063 * m/7300.h:
17064 * m/acorn.h:
17065 * m/alliant-2800.h:
17066 * m/alliant.h:
17067 * m/alliant1.h:
17068 * m/alliant4.h:
17069 * m/altos.h:
17070 * m/amdahl.h:
17071 * m/apollo.h:
17072 * m/att3b.h:
17073 * m/aviion-intel.h:
17074 * m/aviion.h:
17075 * m/celerity.h:
17076 * m/clipper.h:
17077 * m/cnvrgnt.h:
17078 * m/convex.h:
17079 * m/cydra5.h:
17080 * m/delta88k.h:
17081 * m/dpx2.h:
17082 * m/dual.h:
17083 * m/elxsi.h:
17084 * m/f301.h:
17085 * m/gould-np1.h:
17086 * m/gould.h:
17087 * m/i860.h:
17088 * m/ibmps2-aix.h:
17089 * m/ibmrt-aix.h:
17090 * m/ibmrt.h:
17091 * m/irist.h:
17092 * m/is386.h:
17093 * m/isi-ov.h:
17094 * m/mega68.h:
17095 * m/mg1.h:
17096 * m/news-r6.h:
17097 * m/news-risc.h:
17098 * m/news.h:
17099 * m/nh3000.h:
17100 * m/nh4000.h:
17101 * m/ns16000.h:
17102 * m/ns32000.h:
17103 * m/nu.h:
17104 * m/orion.h:
17105 * m/orion105.h:
17106 * m/paragon.h:
17107 * m/pfa50.h:
17108 * m/plexus.h:
17109 * m/pyramid.h:
17110 * m/pyrmips.h:
17111 * m/sh3el.h:
17112 * m/sps7.h:
17113 * m/sr2k.h:
17114 * m/stride.h:
17115 * m/sun1.h:
17116 * m/sun2.h:
17117 * m/sun3-68881.h:
17118 * m/sun3-fpa.h:
17119 * m/sun3-soft.h:
17120 * m/sun3.h:
17121 * m/sun386.h:
17122 * m/symmetry.h:
17123 * m/tad68k.h:
17124 * m/tahoe.h:
17125 * m/targon31.h:
17126 * m/tek4300.h:
17127 * m/tekxd88.h:
17128 * m/tower32.h:
17129 * m/tower32v3.h:
17130 * m/ustation.h:
17131 * m/wicat.h:
17132 * m/xps100.h:
17133 * s/cxux.h:
17134 * s/cxux7.h:
17135 * s/dgux.h:
17136 * s/dgux4.h:
17137 * s/dgux5-4-3.h:
17138 * s/dgux5-4r2.h:
17139 * s/esix.h:
17140 * s/esix5r4.h:
17141 * s/hiuxmpp.h:
17142 * s/hiuxwe2.h:
17143 * s/iris3-5.h:
17144 * s/iris3-6.h:
17145 * s/isc2-2.h:
17146 * s/isc3-0.h:
17147 * s/isc4-0.h:
17148 * s/isc4-1.h:
17149 * s/newsos5.h:
17150 * s/newsos6.h:
17151 * s/osf1.h:
17152 * s/osf5-0.h:
17153 * s/riscix1-1.h:
17154 * s/riscix12.h:
17155 * s/sco4.h:
17156 * s/sco5.h:
17157 * s/sunos4-0.h:
17158 * s/sunos4-1.h:
17159 * s/sunos413.h:
17160 * s/sunos4shr.h:
17161 * s/umax.h:
17162 * s/unipl5-2.h:
17163 * s/xenix.h:
17164 * cxux-crt0.s:
17165 * unexapollo.c:
17166 * unexconvex.c:
17167 * unexenix.c:
17168 * unexsni.c: Remove files for systems no longer supported.
17169
17170 * m/intel386.h: Remove references to unsupported systems.
17171
17172 * w32.c (get_emacs_configuration): Remove reference to i860.
17173
17174 * sysdep.c: Remove dead code.
17175
171762008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17177
17178 * s/rtu.h:
17179 * m/masscomp.h: Remove files. Platform is obsolete.
17180
171812008-01-04 Michael Albinus <michael.albinus@gmx.de>
17182
17183 * dbusbind.c (Fdbus_method_return): New function.
17184 (xd_read_message): Add the serial number to the event.
17185 (Fdbus_register_method): Activate the function.
17186
171872008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17188
17189 * keyboard.c (read_key_sequence): Fix typo.
17190
171912008-01-03 Michael Albinus <michael.albinus@gmx.de>
17192
17193 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17194 (xd_signature, xd_append_arg): Handle element type detection for
17195 empty arrays.
17196 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17197 SDATA () calls; this must be solved more general.
17198 (Fdbus_register_signal): Use SBYTES instead of strlen.
17199
172002008-01-03 Magnus Henoch <magnus@zemdatav>
17201
17202 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17203 unsigned int for byte values (necessary for big-endian platform).
17204 (Fdbus_call_method): Handle the case of no returned arguments.
17205
172062007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17207
17208 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17209
172102007-12-31 Magnus Henoch <mange@freemail.hu>
17211
17212 * dbusbind.c (xd_signature): Signature of variant is just "v".
17213
172142007-12-30 Michael Albinus <michael.albinus@gmx.de>
17215
17216 * dbusbind.c: Fix several errors and compiler warnings.
17217 Reported by Tom Tromey <tromey@redhat.com>.
17218 (XD_ERROR, XD_DEBUG_MESSAGE)
17219 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17220 (xd_append_arg): Part for basic D-Bus types rewritten.
17221 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17222 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17223 appropriate.
17224 (xd_read_message): Return Qnil. Don't signal an error; it is not
17225 useful during event reading.
17226 (Fdbus_register_signal): Signal an error if the check for
17227 FUNCTIONP fails.
17228 (Fdbus_register_method): New function. The implementation is not
17229 complete, the call of the function signals an error therefore.
17230 (Fdbus_unregister_object): New function, renamed from
17231 Fdbus_unregister_signal. The initial check signals an error, if
17232 the object is not well formed.
17233
172342007-12-30 Richard Stallman <rms@gnu.org>
17235
17236 * textprop.c (get_char_property_and_overlay):
17237 Signal error if POSITION is out of range in a buffer.
17238
172392007-12-29 Martin Rudalics <rudalics@gmx.at>
17240
17241 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17242 because the original parameters are in pure storage now.
17243
172442007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17245
17246 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17247
172482007-12-22 Eli Zaretskii <eliz@gnu.org>
17249
17250 * callint.c (syms_of_callint) <command-history>: Add reference to
17251 history-length in the doc string.
17252
172532007-12-17 Jason Rumney <jasonr@gnu.org>
17254
17255 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17256 before passing as wParam.
17257
172582007-12-22 Michael Albinus <michael.albinus@gmx.de>
17259
17260 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17261 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17262 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17263 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17264 as number.
17265 (Fdbus_call_method): Fix docstring.
17266
172672007-12-21 Michael Albinus <michael.albinus@gmx.de>
17268
17269 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17270 New macros.
17271 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17272 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17273 Simplify.
17274 (xd_signature): New function.
17275 (xd_append_arg): Compute also signatures. Major rewrite.
17276 (xd_retrieve_arg): Make debug messages friendly.
17277 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17278 Check for signatures of arguments.
17279
172802007-12-19 Michael Albinus <michael.albinus@gmx.de>
17281
17282 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17283 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17284 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17285 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17286 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17287 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17288 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17289 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17290 (xd_retrieve_value): Remove. Functionality included in ...
17291 (xd_append_arg): New function.
17292 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17293
172942007-12-16 Michael Albinus <michael.albinus@gmx.de>
17295
17296 * dbusbind.c (top): Include <stdio.h>.
17297 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17298 dbus_message_new_method_call and dbus_message_new_signal.
17299 (Fdbus_register_signal): Rename unique_name to uname.
17300 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17301 non-existing unique name. Fix typos in matching rule. Return an
17302 object which is useful in Fdbus_unregister_signal.
17303 (Fdbus_unregister_signal): Reimplementation, in order to remove
17304 only the corresponding entry.
17305 (Vdbus_registered_functions_table): Change the order of entries.
17306 Apply these changes in xd_read_message and Fdbus_register_signal.
17307
173082007-12-16 Andreas Schwab <schwab@suse.de>
17309
17310 * fileio.c (Finsert_file_contents): Fix overflow check to not
17311 depend on undefined integer overflow.
17312
173132007-12-14 Jason Rumney <jasonr@gnu.org>
17314
17315 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17316 for characters above 127.
17317
173182007-12-13 Jason Rumney <jasonr@gnu.org>
17319
17320 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17321 before dereferencing array.
17322 (lookup_vk_code): Remove zero comparison.
17323
173242007-12-14 Michael Albinus <michael.albinus@gmx.de>
17325
17326 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17327 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17328 Use `unsigned int' instead of `uint'.
17329 (xd_read_message, Fdbus_register_signal): Split expressions into
17330 multiple lines before operators "&&" and "||", according to the
17331 GNU Coding Standards.
17332
173332007-12-14 Eli Zaretskii <eliz@gnu.org>
17334
17335 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17336
173372007-12-12 Juri Linkov <juri@jurta.org>
17338
17339 * buffer.c (Frename_buffer): In interactive spec replace
17340 `read-buffer' with `read-string' that uses `buffer-name-history'
17341 as history, and the current buffer's name as default.
17342
173432007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17344
17345 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17346 manipulating the backtrace manually.
17347 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17348 (struct backtrace, backtrace_list): Remove.
17349 (command_loop_1): Remove dead var `no_direct'.
17350
17351 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17352 preserve non-built-in buffer-local variables.
17353 (Fkill_all_local_variables): Don't re-create&re-set permanent
17354 buffer-local variables.
17355
173562007-12-09 Juri Linkov <juri@jurta.org>
17357
17358 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17359 Lisp code that uses `read-buffer' with current buffer as default.
17360
173612007-12-08 Michael Albinus <michael.albinus@gmx.de>
17362
17363 * dbusbind.c (xd_read_message): Generate an event for every
17364 registered handler. There might be several handlers registered
17365 for the same signal.
17366 (Fdbus_register_signal): Don't overwrite a registration for the
17367 same signal. Add a new registration if handlers are different.
17368 (Vdbus_registered_functions_table): Rework doc string.
17369
173702007-12-07 Michael Albinus <michael.albinus@gmx.de>
17371
17372 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17373 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17374 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17375 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17376 Unify argument lists.
17377 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17378 arguments and hash table keys. Use unique name for service.
17379 (Fdbus_unregister_signal): Remove checks.
17380 (Vdbus_registered_functions_table): Fix doc string.
17381
173822007-12-05 Magnus Henoch <mange@freemail.hu>
17383
17384 * process.c (make_process): Initialize pty_flag to 0.
17385
173862007-12-05 Jason Rumney <jasonr@gnu.org>
17387
17388 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17389 specified XBMs.
17390
173912007-12-05 Richard Stallman <rms@gnu.org>
17392
17393 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17394
173952007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17396
17397 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17398 New variable.
17399 (mac_try_close_socket) [MAC_OSX]: New function.
17400 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17401 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17402
17403 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17404 Use mac_try_close_socket.
17405
174062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17407
17408 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17409 reloc_base.
17410 (copy_dysymtab): Compute relocation base here.
17411 (rebase_reloc_address) [__ppc64__]: New function.
17412 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17413 changed.
17414
174152007-12-05 Jason Rumney <jasonr@gnu.org>
17416
17417 * w32proc.c (sys_spawnve): Quote args with wildcards.
17418
174192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17420
17421 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17422 __objc_* sections.
17423 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17424
174252007-12-05 Michael Albinus <michael.albinus@gmx.de>
17426
17427 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17428 Move check for Vdbus_registered_functions_table to
17429 xd_read_queued_messages.
17430 (xd_read_queued_messages): Protect xd_read_message calls by
17431 internal_condition_case_1.
17432
174332007-12-04 Michael Albinus <michael.albinus@gmx.de>
17434
17435 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17436 Qdbus_system_bus and Qdbus_session_bus, respectively.
17437 (Vdbus_intern_symbols): Remove.
17438 (Vdbus_registered_functions_table): New hash table.
17439 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17440 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17441 Rewrite in order to manage registered functions by hash table
17442 Vdbus_registered_functions_table.
17443
174442007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17445
17446 * xterm.c: Update URL to Window Manager Specification in comment.
17447
174482007-12-02 Michael Albinus <michael.albinus@gmx.de>
17449
17450 * config.in (HAVE_DBUS): Add.
17451
17452 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17453 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17454 (obj): Add $(DBUS_OBJ).
17455 (LIBES): Add $(DBUS_LIBS).
17456 (dbusbind.o): New target.
17457
17458 * dbusbind.c: New file.
17459
17460 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17461
17462 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17463 (Qdbus_event): New Lisp symbol.
17464 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17465 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17466 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17467
17468 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17469
174702007-12-01 Richard Stallman <rms@gnu.org>
17471
17472 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17473
174742007-11-30 Jason Rumney <jasonr@gnu.org>
17475
17476 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17477 (w32con_reset_terminal_modes): Clear screen buffer.
17478 (w32_face_attributes): Don't use color indexes that are out of range.
17479 Only reverse the default colors.
17480
17481 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17482 WINDOWSNT.
17483
17484 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17485
174862007-11-29 Jason Rumney <jasonr@gnu.org>
17487
17488 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17489 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17490 if the terminal colors are initialized.
17491 (unspecified_fg, unspecified_bg): Remove unused declarations.
17492
174932007-11-29 Andreas Schwab <schwab@suse.de>
17494
17495 * keyboard.c (apply_modifiers): Fix typo.
17496
174972007-11-29 Richard Stallman <rms@gnu.org>
17498
17499 * keymap.c (Fcurrent_local_map): Doc fix.
17500
175012007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17502
17503 * s/gnu-kfreebsd.h: New file.
17504
175052007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17506
17507 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17508 Don't cast redundantly.
17509
17510 * keyboard.c (KEY_TO_CHAR): New macro.
17511 (parse_modifiers, apply_modifiers): Accept integer arguments.
17512 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17513 for chars and symbol keys.
17514 After doing such remapping, apply function-key-map again.
17515
175162007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17517
17518 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17519 compiled anymore.
17520
175212007-11-26 Andreas Schwab <schwab@suse.de>
17522
17523 * process.c (list_processes_1): Fix indentation level of the
17524 command column.
17525
175262007-11-23 Andreas Schwab <schwab@suse.de>
17527
17528 * editfns.c (Fformat): Handle %c specially since it requires the
17529 argument to be of type int.
17530
175312007-11-23 Markus Triska <markus.triska@gmx.at>
17532
17533 * emacs.c (main): Call init_editfns before init_process, since
17534 init_process sets Vprocess_connection_type depending on OS release.
17535
175362007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17537
17538 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17539 (find_symbol_value): Use do_symval_forwarding.
17540
17541 * data.c (set_internal): Set the value in the `cons-cell' (for
17542 Buffer_Local_values) not only for frame-local variables.
17543
175442007-11-22 Andreas Schwab <schwab@suse.de>
17545
17546 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17547 values to sprintf.
17548 * keymap.c (Fsingle_key_description): Likewise.
17549 * print.c (print_object): Likewise.
17550
175512007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17552
17553 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17554 file for image is nil.
17555
175562007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17557
17558 * term.c: Include stdarg.h.
17559 (fatal): Implement using varargs.
17560 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17561
175622007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17563
17564 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17565 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17566 Update call to buffer_slot_type_mismatch.
17567 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17568 (buffer_slot_type_mismatch): Update.
17569 * buffer.c (buffer_local_types): Remove.
17570 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17571 (defvar_per_buffer): Set the type in the buffer_objfwd.
17572
175732007-11-21 Jason Rumney <jasonr@gnu.org>
17574
17575 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17576 CreateFileMapping returns NULL on failure.
17577
175782007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17579
17580 * search.c (Fset_match_data): Remove the `evaporate' feature.
17581 (unwind_set_match_data): Don't use the `evaporate' feature.
17582
175832007-11-21 Jason Rumney <jasonr@gnu.org>
17584
17585 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17586
17587 * w32console.c (w32con_write_glyphs): Remove unused variables.
17588
175892007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17590
17591 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17592
17593 * s/darwin.h (MULTI_KBOARD): Remove.
17594
17595 * macfns.c (x_create_tip_frame, Fx_create_frame)
17596 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17597
175982007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17599
17600 * buffer.c (Fbuffer_local_value): Remove redundant test.
17601 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17602 than in `current-buffer' to match the comment.
17603 Do the swap using swap_in_global_binding.
17604
17605 * data.c (store_symval_forwarding, set_internal):
17606 * eval.c (specbind): Remove dead code.
17607
17608 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17609 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17610 Since we do not want to see internal Lisp_*fwd objects here.
17611
176122007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17613
17614 * sysdep.c (init_system_name): Use getaddrinfo if available.
17615
17616 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17617 (x_scroll_bar_note_movement): start, end, with, height in struct
17618 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17619
176202007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17621
17622 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17623
176242007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17625
17626 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17627 This undoes Richard's change of 14-Oct-2002.
17628
17629 * alloc.c (allocate_other_vector):
17630 * lisp.h (allocate_other_vector): Remove.
17631
17632 * window.c (struct save_window_data): Move non-lisp data to the end
17633 and make it `int' rather than Lisp_Object.
17634 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17635 Done wrap/unwrap integer values.
17636 (Fset_window_configuration, compare_window_configurations):
17637 Update use of fields to their new types.
17638
17639 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17640 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17641 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17642 (SET_SCROLL_BAR_X_WINDOW): Remove.
17643 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17644 Access the new x_window field directly.
17645 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17646 Don't wrap/unwrap integers into Lisp_Objects.
17647 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17648 (x_scroll_bar_report_motion):
17649 Don't wrap/unwrap integers into Lisp_Objects.
17650 (x_term_init): Use SDATA.
17651 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17652 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17653 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17654 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17655 * xfns.c (x_set_background_color):
17656 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17657 Access the new x_window field directly.
17658
17659 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17660 (allocate_pseudovector): Make non-static.
17661
17662 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17663 (allocate_pseudovector): Declare.
17664 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17665
176662007-11-15 Andreas Schwab <schwab@suse.de>
17667
17668 * editfns.c (Fformat): Correctly format EMACS_INT values.
17669 Also take precision into account when formatting an integer.
17670
17671 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17672
176732007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17674
17675 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17676 (syms_of_keyboard): Defsubr it.
17677
17678 * data.c (swap_in_global_binding): Fix longstanding bug where
17679 store_symval_forwarding was not called with the right second argument,
17680 thus causing objfwd-ing from being dropped.
17681
176822007-11-14 Juanma Barranquero <lekktu@gmail.com>
17683
17684 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17685 (Fx_display_pixel_height, Fx_display_planes)
17686 (Fx_display_color_cells, Fx_server_max_request_size)
17687 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17688 (Fx_display_visual_class, Fx_display_save_under):
17689 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17690 (Fx_display_pixel_height, Fx_display_planes)
17691 (Fx_display_color_cells, Fx_server_max_request_size)
17692 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17693 (Fx_display_mm_height, Fx_display_mm_width)
17694 (Fx_display_backing_store, Fx_display_visual_class)
17695 (Fw32_select_font, Fx_display_save_under):
17696 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17697 (Fx_display_pixel_height, Fx_display_planes)
17698 (Fx_display_color_cells, Fx_server_max_request_size)
17699 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17700 (Fx_display_save_under): Fix typos in docstrings.
17701
177022007-11-14 Juanma Barranquero <lekktu@gmail.com>
17703
17704 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17705 corresponding to deleted entries; they are an implementation detail.
17706 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17707 Remove variables.
17708 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17709 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17710 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17711 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17712 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17713 (Fw32_define_rgb_color, Fw32_load_color_file)
17714 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17715 Fix typos in docstrings.
17716 (Fx_server_version): Reflow docstring.
17717 (Fw32_shell_execute): Doc fixes.
17718
177192007-11-13 Juanma Barranquero <lekktu@gmail.com>
17720
17721 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17722 if w32_parse_hot_key returned nil.
17723
177242007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17725
17726 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17727
177282007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17729
aac0c6e3
MR
17730 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17731
17732 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17733
17734 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17735 Remove W32_SCROLL_BAR_CLICK_EVENT.
17736
17737 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17738 Add MULTIMEDIA_KEY_EVENT.
17739
17740 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17741 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17742 (make_lispy_event) [WINDOWSNT]: Use it to translate
17743 MULTIMEDIA_KEY_EVENT.
17744
17745 * w32term.h (WM_APPCOMMAND): Define if not already.
17746 (GET_APPCOMMAND_LPARAM): Likewise.
17747
17748 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17749 WM_APPCOMMAND.
17750
17751 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17752 (syms_of_w32fns): Export and initialize it.
17753 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17754
177552007-11-09 Chong Yidong <cyd@stupidchicken.com>
17756
17757 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17758 twice.
17759
17760 * xdisp.c (handle_face_prop): Fix last change.
17761
177622007-11-09 Richard Stallman <rms@gnu.org>
17763
17764 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17765 not just for after-strings and before-strings.
17766 Call face_for_overlay_string and pass the overlay to it.
17767 (handle_display_prop): Determine whether property came from an overlay.
17768 Pass OVERLAY arg to handle_single_display_spec.
17769 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17770 (load_overlay_strings): Fill in it->string_overlays.
17771 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17772
17773 * xfaces.c (face_for_overlay_string): Function renamed from
17774 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17775
17776 * dispextern.h (struct it): New elt string_overlays.
17777 New elt from_overlay, also in stack.
17778 Rearrange a few elements.
17779 (face_for_overlay_string): Decl renamed from
17780 face_at_buffer_position_no_overlays, and add argument.
17781
177822007-11-09 Richard Stallman <rms@gnu.org>
17783
17784 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17785 to get the base face for an overlay string.
17786
17787 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17788
17789 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17790
17791 * xdisp.c (handle_stop): Move some code out of loop.
17792
177932007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17794
17795 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17796 Fix conversion from Lisp object to ATSUFontID.
17797
177982007-11-09 Jason Rumney <jasonr@gnu.org>
17799
17800 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17801
178022007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17803
17804 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17805 Don't assume regions are aligned to page boundary.
17806 (print_load_command_name): Add LC_UUID if defined.
17807
178082007-11-09 Richard Stallman <rms@gnu.org>
17809
17810 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17811
178122007-11-07 Jason Rumney <jasonr@gnu.org>
17813
17814 * s/windows95.h: Remove.
17815
178162007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17817
17818 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17819 abort with a message on unhandled store_type values.
17820
178212007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17822
17823 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17824 Remove HAVE_X11R5 and HAVE_X11R4.
17825
178262007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17827
17828 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17829
178302007-11-01 Johan Bockgård <bojohan@gnu.org>
17831
17832 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17833 Don't set s->stippled_p here, since it has already been set by
17834 x_set_glyph_string_gc from x_draw_glyph_string.
17835
178362007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17837
17838 * sunfns.c: Remove file.
17839
17840 * m/sun386.h:
17841 * m/sun2.h:
17842 * m/sparc.h: Remove Sun windows code.
17843
178442007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17845
17846 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17847 (init_keyboard): Set current_kboard's window-system to nil.
17848 (tty_read_avail_input): Typo.
17849 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17850
178512007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17852
17853 * s/usg5-4.h:
17854 * s/usg5-3.h:
17855 * s/ptx.h:
17856 * m/is386.h:
17857 * m/ibmps2-aix.h:
17858 * Makefile.in: Remove all mentions of X10.
17859
17860 * dispnew.c (syms_of_display): Don't mention version 10.
17861
178622007-10-28 Juanma Barranquero <lekktu@gmail.com>
17863
17864 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17865 ($(BLD)/abbrev.$(O)): Remove.
17866
178672007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17868
17869 Rewrite abbrev.c in Elisp.
17870 * image.c (Qcount): Don't declare as extern.
17871 (syms_of_image): Initialize and staticpro `Qcount'.
17872 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17873 * emacs.c (main): Don't call syms_of_abbrev.
17874 * Makefile.in (obj): Remove abbrev.o.
17875 (abbrev.o): Remove.
17876 * abbrev.c: Remove.
17877
178782007-10-26 Martin Rudalics <rudalics@gmx.at>
17879
17880 * window.c (window_min_size_2): Don't count header-line.
17881
178822007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17883
17884 * frame.h (struct frame): Move all bit fields after the first bit
17885 field to take advantage of the available space. Group all the
17886 chars together to reduce wasted space due to padding.
17887
178882007-10-26 Juanma Barranquero <lekktu@gmail.com>
17889
17890 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17891
17892 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17893 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17894 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17895 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17896 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17897 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17898 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17899 (last_marked, mark_object_loop_halt): Make static.
17900
17901 * frame.c (syms_of_frame) <delete-frame-functions>:
17902 Fix typo in docstring.
17903
179042007-10-25 Juanma Barranquero <lekktu@gmail.com>
17905
17906 * w32.c (init_environment): Fix tiny memory leak.
17907 (w32_get_resource): Remove unused variable `ok'.
17908
179092007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17910
17911 Make `window-system' into a keyboard-local variable (rather than
17912 frame-local as done originally by multi-tty).
17913
17914 * keyboard.h (struct kboard): Add Vwindow_system.
17915 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17916 (mark_kboards): Mark Vwindow_system.
17917
17918 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17919 (init_display): Don't set the obsolete `window-system' frame-param.
17920
17921 * xterm.c (x_term_init):
17922 * w32term.c (w32_create_terminal):
17923 * term.c (init_tty): Set Vwindow_system.
17924 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17925 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17926
17927 * xfns.c (Fx_create_frame, x_create_tip_frame):
17928 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17929 * macfns.c (Fx_create_frame):
17930 Don't set the obsolete `window-system' frame-param.
17931
17932 * frame.h (Qwindow_system): Remove.
17933 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17934 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17935
179362007-10-24 Richard Stallman <rms@gnu.org>
17937
17938 * frame.c (x_figure_window_size): For fullscreen case,
17939 set USPosition | PPosition without clobbering rest of window_prompting.
17940
17941 * keyboard.c (Fcurrent_idle_time): Doc fix.
17942
17943 * print.c (Fwith_output_to_temp_buffer): Doc fix.
17944
179452007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
17946
17947 * process.c (unwind_request_sigio): Only define if __ultrix__.
17948
17949 * callproc.c (child_setup): Remove spurious *.
17950
17951 * lisp.h (Fget_text_property): Declare.
17952 (have_menus_p): Declare it here rather than in sys-dep header files.
17953 * macterm.h (have_menus_p):
17954 * msdos.h (have_menus_p):
17955 * xterm.h (have_menus_p): Remove.
17956
17957 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17958 (Fmake_variable_frame_local): Just check the variable's const-ness
17959 rather than checking nil or t.
17960
179612007-10-22 Jason Rumney <jasonr@gnu.org>
17962
17963 * w32fns.c: Include math.h.
17964 (w32_abort): Declaration moved to nt/config.nt.
17965
17966 * s/ms-w32.h (HAVE_STDLIB_H): Define.
17967 (abort): Redefinition moved to nt/config.nt.
17968
17969 * m/windowsnt.h: Remove.
17970
179712007-10-22 Juanma Barranquero <lekktu@gmail.com>
17972
17973 * emacs.c (Fdump_emacs): Fix typo in message.
17974 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
17975 <installation-directory>: Reflow docstring.
17976
179772007-10-22 Juri Linkov <juri@jurta.org>
17978
17979 * minibuf.c: Allow minibuffer default to be a list of default values.
17980 With empty input use the first element of this list as returned default.
17981 (string_to_object)
17982 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
17983 (read_minibuf): If defalt is cons, set histstring to its car.
17984 (Fread_string): If default_value is cons, set val to its car.
17985 (Fread_buffer): If def is cons, use its car.
17986 (Fcompleting_read): If defalt is cons, set val to its car.
17987
179882007-10-21 Michael Albinus <michael.albinus@gmx.de>
17989
17990 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
17991
179922007-10-20 Juanma Barranquero <lekktu@gmail.com>
17993
17994 * doc.c (Fdocumentation): Check for advice in all cases.
17995
179962007-10-19 Chong Yidong <cyd@stupidchicken.com>
17997
17998 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
17999
180002007-10-19 Richard Stallman <rms@gnu.org>
18001
18002 * doc.c (Fdocumentation): Check for and handle an advised function.
18003
180042007-10-19 Juanma Barranquero <lekktu@gmail.com>
18005
18006 * process.c (Fset_process_filter): Doc fix.
18007
180082007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18009
18010 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18011 which caused key-translation-map to applied repeatedly (thus breaking
18012 double-mode).
18013
180142007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18015
18016 * xselect.c (x_own_selection, x_handle_selection_clear)
18017 (x_clear_frame_selections):
18018 * w32menu.c (list_of_panes, list_of_items):
18019 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18020 * textprop.c (validate_plist, interval_has_all_properties)
18021 (interval_has_some_properties, interval_has_some_properties_list)
18022 (add_properties, text_property_list):
18023 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18024 * minibuf.c (Fassoc_string):
18025 * macselect.c (x_own_selection, x_clear_frame_selections)
18026 (Fx_disown_selection_internal):
18027 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18028 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18029
180302007-10-17 Chong Yidong <cyd@stupidchicken.com>
18031
18032 * process.c: Link to libs for calling res_init() if available.
18033 (Fmake_network_process): Call res_init() before getaddrinfo or
18034 gethostbyname, if possible.
18035
180362007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18037
18038 * lread.c (read1): Set pvectype for char_tables.
18039
18040 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18041 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18042 Add type checks.
18043 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18044
18045 * alloc.c (free_misc): Use XMISCTYPE.
18046 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18047
180482007-10-17 Glenn Morris <rgm@gnu.org>
18049
18050 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18051 (syms_of_minibuf): Add Qcompletion_ignore_case.
18052 * dired.c (Qcompletion_ignore_case): Change to external.
18053 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18054 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18055 (Fread_file_name): Use it rather than intern'ing.
18056
18057 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18058 (Fread_coding_system): Ignore case of user input.
18059
180602007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18061
18062 * xdisp.c (handle_display_prop): Ignore display specs after
18063 replacing one when string text is being replaced.
18064 (handle_single_display_spec): Pretend as if characters with display
18065 property haven't been consumed only when buffer text is being replaced.
18066
180672007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18068
18069 * xfns.c (Fx_create_frame, Fx_display_list):
18070 * window.c (window_fixed_size_p, enlarge_window)
18071 (shrink_window_lowest_first):
18072 * macterm.c (init_font_name_table):
18073 * macfns.c (Fx_create_frame, Fx_display_list):
18074 * lread.c (close_load_descs):
18075 * keyboard.c (read_char_x_menu_prompt):
18076 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18077 * coding.c (code_convert_region_unwind): Test the type of an object
18078 rather than just !NILP before extracting data from it.
18079
18080 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18081
18082 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18083 (XMISCANY): New macro.
18084 (XMISCTYPE): Use it.
18085 (struct Lisp_Misc_Any): New type.
18086 (union Lisp_Misc): Use it.
18087 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18088 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18089 (find_symbol_value, set_internal, default_value, Fset_default)
18090 (Fmake_variable_buffer_local, Fmake_local_variable)
18091 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18092 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18093 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18094 * alloc.c (allocate_buffer): Set the size and tag.
18095 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18096 Use XMISCANY.
18097 (die): Follow the GNU convention for error messages.
18098 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18099 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18100 tag any more.
18101 (set_buffer_internal_1):
18102 * frame.c (store_frame_param):
18103 * eval.c (specbind):
18104 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18105
18106 * doc.c (Fsnarf_documentation): Simplify.
18107
181082007-10-14 Juanma Barranquero <lekktu@gmail.com>
18109
18110 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18111 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18112
181132007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18114
18115 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18116
181172007-10-14 Juanma Barranquero <lekktu@gmail.com>
18118
18119 * eval.c (do_autoload): Don't save autoloads.
18120
18121 * data.c (Ffset): Save autoload of the function being set.
18122
181232007-10-07 John Paul Wallington <jpw@pobox.com>
18124
18125 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18126 parameter before setting up faces.
18127
181282007-10-13 Eli Zaretskii <eliz@gnu.org>
18129
18130 * ccl.c (Fregister_code_conversion_map):
18131 * keyboard.c (append_tool_bar_item): Reformat last change.
18132
18133 * lisp.h (eabs): Rename from `abs'. All callers changed.
18134
181352007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18136
18137 * buffer.c (add_overlay_mod_hooklist):
18138 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18139 * fontset.c (make_fontset):
18140 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18141 (append_tool_bar_item):
18142 * macmenu.c (grow_menu_items):
18143 * w32menu.c (grow_menu_items):
18144 * xmenu.c (grow_menu_items): Use larger_vector.
18145
181462007-10-13 Eli Zaretskii <eliz@gnu.org>
18147
18148 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18149 selected frame'' on MSDOS).
18150
181512007-10-12 Martin Rudalics <rudalics@gmx.at>
18152
18153 * frame.c (Qexplicit_name): New variable.
18154 (x_report_frame_params): Report it in parameter alist.
18155 (syms_of_frame): Intern and staticpro it.
18156
181572007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18158
18159 * macfns.c (x_create_tip_frame): Set terminal for frame.
18160
181612007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18162
18163 * frame.c (Qenvironment): Remove.
18164 (syms_of_frame) <Qenvironment>: Don't initialize.
18165 (Fdelete_frame): Don't treat the `environment' param specially.
18166 * frame.h (Qenvironment): Don't declare.
18167 * callproc.c (set_initial_environment): Don't set unused frame param.
18168
18169 * frame.c (Fframe_with_environment): Remove.
18170 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18171
18172 * lisp.h (Fframe_with_environment): Don't declare.
18173
181742007-10-10 Juanma Barranquero <lekktu@gmail.com>
18175
18176 * indent.c (indent_tabs_mode, last_known_column)
18177 (last_known_column_modified): Make static.
18178 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18179
181802007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18181
18182 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18183
181842007-10-09 Jason Rumney <jasonr@gnu.org>
18185
18186 * w32term.c (x_set_window_size): Disable code that attempts to tell
18187 Lisp code about a size change before it actually happens.
18188
181892007-10-09 Richard Stallman <rms@gnu.org>
18190
18191 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18192 return HANDLED_RETURN.
18193
181942007-10-08 Martin Rudalics <rudalics@gmx.at>
18195
18196 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18197 when there's an unread command event.
18198
18199 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18200 window autoselection act appropriately when leaving selected frame.
18201 (syms_of_frame): Initialize focus_follows_mouse.
18202 * frame.h (focus_follows_mouse): Extern it.
18203 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18204 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18205 * msdos.c (dos_rawgetc): Likewise.
18206 * w32term.c (w32_read_socket): Likewise.
18207 * xterm.c (handle_one_xevent): Likewise.
18208 * xdisp.c (syms_of_xdisp): In doc-string of
18209 mouse-autoselect-window mention focus-follows-mouse.
18210
182112007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18212
18213 * macterm.c (mac_load_query_font): Fix missing return value.
18214 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18215 Add BLOCK_INPUT.
18216
182172007-10-08 Richard Stallman <rms@gnu.org>
18218
18219 * xdisp.c (get_window_cursor_type): Implement documented behavior
18220 for cursor-in-non-selected-windows = t.
18221
182222007-10-08 Jason Rumney <jasonr@gnu.org>
18223
18224 * w32.c (w32_get_resource): Always close registry keys.
18225
182262007-10-08 Jason Rumney <jasonr@gnu.org>
18227
18228 * makefile.w32-in (LIBS): Add COMCTL32.
18229
18230 * w32fns.c (globals_of_w32fns): Init common controls.
18231
182322007-10-08 Richard Stallman <rms@gnu.org>
18233
18234 * image.c (our_memory_buffer): Rename from omfib_buffer.
18235
182362007-10-08 Richard Stallman <rms@gnu.org>
18237
18238 * buffer.c (Foverlays_at): Doc fix.
18239
182402007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18241
18242 * fns.c (Fplist_put): Preserve uneven tail data.
18243
182442007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18245
18246 * termhooks.h (enum event_kind): Remove trailing comma.
18247
18248 * frame.h (enum): Remove trailing comma.
18249
182502007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18251
18252 * w32proc.c (delete_child): Don't terminate threads of zombies.
18253
182542007-10-08 Martin Rudalics <rudalics@gmx.at>
18255
18256 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18257
18258 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18259 last-repeatable-command.
18260 (init_kboard): Initialize Vlast_repeatable_command.
18261 (command_loop_1): Set it to real_this_command unless that was
18262 bound to an input event.
18263 (mark_kboards): Mark it.
18264
182652007-10-08 Richard Stallman <rms@gnu.org>
18266
18267 * eval.c (condition-case): Doc fix.
18268
182692007-10-08 Masatake YAMATO <jet@gyve.org>
18270
18271 * xfaces.c (tty_supports_face_attributes_p): Fix code
18272 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18273 was copied and not edited.
18274
182752007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18276
18277 Add new `input-decode-map' keymap and use it for terminal
18278 escape sequences.
18279 * keyboard.h (struct kboard): Add Vinput_decode_map.
18280 Remove Vlocal_key_translation_map.
18281 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18282 (init_kboard): Init input-decode-map.
18283 Replace local-key-translation-map back with key-translation-map.
18284 (syms_of_keyboard): Declare input-decode-map.
18285 Remove local-key-translation-map. Update docstrings.
18286 (mark_kboards): Mark Vinput_decode_map.
18287 Don't mark Vlocal_key_translation_map.
18288 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18289 Replace local-key-translation-map back with key-translation-map.
18290 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18291 Bind in input-decode-map rather than function-key-map.
18292
18293 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18294 This was made redundant by the previous introduction of XSETPVECTYPE.
18295
182962007-10-09 Richard Stallman <rms@gnu.org>
18297
18298 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18299
183002007-09-29 Richard Stallman <rms@gnu.org>
18301
18302 * eval.c (internal_condition_case_2, internal_condition_case_1)
18303 (internal_condition_case): Reenable abort if x_catching_errors ()
18304 to see if that really happens and why.
18305
183062007-10-06 Andreas Schwab <schwab@suse.de>
18307
18308 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18309
183102007-10-04 Juanma Barranquero <lekktu@gmail.com>
18311
18312 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18313
183142007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18315
18316 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18317
183182007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18319
18320 * window.h (struct window):
18321 * window.c (struct save_window_data, struct saved_window):
18322 * termhooks.h (struct terminal):
18323 * process.h (struct Lisp_Process):
18324 * frame.h (struct frame):
18325 * buffer.h (struct buffer):
18326 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18327 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18328 The size field of (pseudo)vectors is now unsigned.
18329 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18330
18331 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18332 Turn `count' into an integer.
18333
18334 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18335 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18336 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18337 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18338 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18339
18340 * alloc.c (allocate_pseudovector): New fun.
18341 (ALLOCATE_PSEUDOVECTOR): New macro.
18342 (allocate_window, allocate_terminal, allocate_frame)
18343 (allocate_process): Use it.
18344 (mark_vectorlike): New function.
18345 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18346 (mark_terminals): Use it.
18347 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18348 (Fmake_byte_code): Use XSETPVECTYPE.
18349
18350 * frame.c (Fframe_parameters): Minor simplification.
18351
18352 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18353
18354 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18355
18356 * buffer.c (Fget_buffer_create, init_buffer_once):
18357 * lread.c (defsubr):
18358 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18359
18360 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18361 defined differently in the m/*.h files.
18362 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18363 (XSETPVECTYPE): New macro.
18364 (XSETPSEUDOVECTOR): Use it.
18365
18366 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18367 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18368
18369 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18370 * lread.c (defvar_per_buffer):
18371 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18372
18373 * window.c (candidate_window_p): Only consider as visible frames that
18374 are on the same terminal.
18375
18376 * m/ibms390x.h (MARKBIT): Remove unused macro.
18377
183782007-10-01 Juanma Barranquero <lekktu@gmail.com>
18379
18380 * lread.c (Fload): Fix typo in docstring.
18381
183822007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18383
18384 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18385 of a non-zero value can't yield zero.
18386
183872007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18388
18389 * term.c (term_clear_mouse_face, term_mouse_highlight)
18390 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18391
18392 * print.c (safe_debug_print): Use XHASH.
18393
18394 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18395 Lisp elements such as tags.
18396 (XHASH): New macro.
18397 (EQ): Use it.
18398 (SREF, SSET, STRING_COPYIN): Use SDATA.
18399 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18400
18401 * alloc.c (mark_terminal): Remove left-over declaration.
18402 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18403 (allocate_vectorlike): Remove type argument. Adjust callers.
18404 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18405 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18406
18407 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18408 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18409 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18410 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18411 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18412 Use them.
18413
18414 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18415 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18416 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18417
184182007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18419
18420 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18421 loaded by default.
18422
184232007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18424
18425 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18426 on this tty.
18427 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18428
18429 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18430 Update all users.
18431 (handle_one_term_event): Use Gpm_DrawPointer.
18432 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18433 Signal errors instead of returning nil. Always return nil.
18434 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18435 Make it a noop if gpm-mouse was not activated.
18436 (syms_of_term): Update names.
18437
184382007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18439
18440 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18441 (init_sys_modes): Check that gpm_tty is the current tty.
18442
18443 * alloc.c (allocate_terminal): Set the vector size to only count the
18444 lisp fields. Initialize those to nil.
18445 (mark_object): Don't treat terminals specially.
18446 (mark_terminal): Remove.
18447 (mark_terminals): Use mark_object instead.
18448
18449 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18450 the GC to the beginning.
18451
18452 * indent.h:
18453 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18454
18455 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18456
184572007-09-25 Jason Rumney <jasonr@gnu.org>
18458
18459 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18460
18461 * w32console.c (create_w32cons_output): Remove.
18462
18463 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18464
18465 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18466 (reset_sys_modes): Use reset_terminal_modes_hook.
18467
184682007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18469
18470 * eval.c (do_autoload): Don't output any message.
18471
184722007-09-24 Juri Linkov <juri@jurta.org>
18473
18474 * emacs.c (standard_args): Change priority of "--no-splash"
18475 from 40 to 3. Add "--no-desktop" with the same priority.
18476
184772007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18478
18479 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18480 and optimize the case where they are all 1.
18481
184822007-09-23 Johannes Weiner <hannes@saeurebad.de>
18483
18484 * lisp.h (abs): Define if not defined.
18485 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18486 Don't define `abs', since it's defined in lisp.h.
18487
184882007-09-22 Eli Zaretskii <eliz@gnu.org>
18489
18490 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18491 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18492 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18493 (init_tty): Use DEV_TTY instead of "/dev/tty".
18494 [WINDOWSNT]: No need to protect from NAME arg being null.
18495
184962007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18497
18498 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18499 up the tty state.
18500
185012007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18502
18503 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18504 (gpm_tty): Change its type.
18505 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18506 (gpm_tty): Change its type and initialize it.
18507 (Fterm_open_connection): Check the frame is indeed a tty.
18508 Use the new gpm_tty.
18509 (Fterm_close_connection): Use the new gpm_tty.
18510 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18511 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18512
185132007-09-21 Juanma Barranquero <lekktu@gmail.com>
18514
18515 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18516 underline_color, to draw strike-through.
18517
185182007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18519
18520 * lisp.h (allocate_terminal): Declare.
18521
18522 * window.c (candidate_window_p): Consider frames that are being placed
18523 by the user as somewhere between visible and iconified.
18524 (window_loop): Prefer windows on the current frame.
18525 (Fselect_window): Move the use of select-frame to the beginning so we
18526 can just delegate all the work (it'll call us back anyway).
18527
18528 * frame.c (Qdisplay_environment_variable):
18529 * frame.h (Qdisplay_environment_variable): Delete.
18530
18531 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18532 of the first arg, since that value may be a union.
18533
18534 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18535 parameter rather than Qdisplay_environment_variable. If all else
18536 fails, look for DISPLAY in initial-environment.
18537
185382007-09-21 Glenn Morris <rgm@gnu.org>
18539
18540 * Makefile.in (emacstool): Remove target.
18541 (lisp, shortlisp): Remove termdev.elc.
18542
185432007-09-21 Markus Triska <markus.triska@gmx.at>
18544
18545 * xterm.c (x_delete_display): Compile session management conditionally.
18546
185472007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18548
18549 * callproc.c (getenv_internal_1): New function.
18550 (getenv_internal): Use it.
18551 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18552
18553 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18554 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18555 (Fset_terminal_parameter): Work with dead terminals as well.
18556 (Fmodify_terminal_parameters): Remove.
18557
18558 * terminal.c (get_terminal): Handle terminals.
18559 Make sure the terminal returned is live.
18560 (create_terminal): Use allocate_terminal.
18561 (mark_terminals): Move to alloc.c.
18562 (delete_terminal): Use terminal->name as liveness status.
18563 NULL out fields after freeing their contents.
18564 Don't deallocate the object.
18565 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18566 rather than an int.
18567 (Fterminal_live_p): Accept non-integer arguments.
18568 (Fterminal_list): Return terminal objects rather than an ints.
18569
18570 * alloc.c (enum mem_type): New member for `terminal' objects.
18571 (allocate_terminal): New function.
18572 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18573 Handle terminals.
18574 (mark_terminal): New fun.
18575 (mark_terminals): Move from terminal.c.
18576
18577 * term.c (get_tty_terminal): Don't treat output_initial specially.
18578 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18579 (delete_tty): Use terminal->name as liveness status.
18580
18581 * termhooks.h (struct terminal): Make it into a pseudovector.
18582 Remove `deleted' replaced by checking `name's nullness.
18583
18584 * print.c (print_object): Handle terminals.
18585
18586 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18587 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18588
18589 * frame.c (make_terminal_frame):
18590 * keyboard.c (tty_read_avail_input):
18591 * w32term.c (x_delete_terminal):
18592 * xfns.c (Fx_create_frame, x_create_tip_frame):
18593 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18594
185952007-09-20 Glenn Morris <rgm@gnu.org>
18596
18597 * process.c (Fmake_network_process): Doc fix.
18598
185992007-09-19 Jason Rumney <jasonr@gnu.org>
18600
18601 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18602
186032007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18604
18605 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18606 Fix a C warning regarding variable constness.
18607
18608 * xterm.c (handle_one_xevent): Fix a C warning.
18609
186102007-09-18 Jason Rumney <jasonr@gnu.org>
18611
18612 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18613
186142007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18615
18616 * gtkutil.c (gdpy_def): New variable.
18617 (xg_initialize): Initialize gdpy_def.
18618 (xg_display_close): If no other display exists, set gdpy_def to a
18619 new connection.
18620
186212007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18622
18623 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18624 when we have no file name for the icon.
18625 (xg_tool_bar_expose_callback): Remove.
18626 (xg_create_tool_bar): Don't connect expose signal to
18627 xg_tool_bar_expose_callback.
18628 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18629
186302007-09-16 Andreas Schwab <schwab@suse.de>
18631
18632 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18633 values instead of zapping them.
18634
186352007-09-14 Glenn Morris <rgm@gnu.org>
18636
18637 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18638 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18639 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18640 scope and rename to omfib_buffer for clarity.
18641 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18642
186432007-09-14 Kenichi Handa <handa@m17n.org>
18644
18645 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18646
186472007-09-13 Jason Rumney <jasonr@gnu.org>
18648
18649 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18650
18651 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18652
18653 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18654 (mac_term_init): Call here instead, passing rif.
18655
186562007-09-13 Glenn Morris <rgm@gnu.org>
18657
18658 * s/hpux.h: No longer define `static' as nothing.
18659
186602007-09-13 Johan Bockgård <bojohan@gnu.org>
18661
18662 * callint.c (Fcall_interactively): Remove unused var `fun'.
18663
186642007-09-12 Romain Francoise <romain@orebokech.com>
18665
18666 * window.c (prefer_window_split_horizontally, display_buffer):
18667 Revert 2007-09-08 change.
18668
186692007-09-12 Glenn Morris <rgm@gnu.org>
18670
18671 * alloca.c: Remove file.
18672 * Makefile.in (alloca): Do not undef.
18673 (allocaobj, alloca.o): Remove.
18674 (otherobj): Remove allocaobj.
18675 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18676 * regex.c (C_ALLOCA): Remove all references and code that was only
18677 used when this was defined.
18678 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18679 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18680 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18681
18682 * Makefile.in (SOURCES, unlock, relock): Delete.
18683
18684 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18685 (menu_grab_callback): All uses changed.
18686
18687 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18688 (x_reply_selection_request): All uses changed.
18689
186902007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18691
18692 * lread.c (load_warn_old_style_backquotes): Change message to look
18693 better when it appears in the middle of byte-compiler messages.
18694
186952007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18696
18697 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18698
18699 * xterm.c (x_create_terminal): Add comment.
18700
18701 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18702
187032007-09-10 Richard Stallman <rms@gnu.org>
18704
18705 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18706
187072007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18708
18709 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18710 (DEFUN): Document `intspec', use it instead of `prompt'.
18711
18712 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18713
18714 * data.c (Finteractive_form): If the interactive specification starts
18715 with a `(', use it as a Lisp form.
18716
18717 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18718 name and file modes.
18719
18720 * callint.c (Fcall_interactively): Comment fixes.
18721
187222007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18723
18724 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18725 and compiled functions.
18726
187272007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18728
18729 * window.c (prefer_window_split_horizontally): New variable.
18730 (display_buffer): Consider splitting window horizontally depending
18731 on prefer_window_split_horizontally.
18732
187332007-09-08 Eli Zaretskii <eliz@gnu.org>
18734
18735 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18736
187372007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18738
18739 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18740
18741 * frame.c (x_set_frame_parameters): Check number is positive before
18742 using XFASTINT.
18743
18744 * window.c (freeze_window_start): Don't presume selected_window holds
18745 a window object.
18746 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18747
187482007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18749
18750 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18751
187522007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18753
18754 * window.c (Vsplit_window_preferred_function): New var.
18755 (Fdisplay_buffer): Use it.
18756 (syms_of_window): Export, and initialize it.
18757
187582007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18759
18760 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18761
187622007-09-06 Glenn Morris <rgm@gnu.org>
18763
18764 * gtkutil.c (menu_grab_callback) <cnt>:
18765 * xselect.c (x_reply_selection_request) <cnt>: Move static
18766 variable to file scope.
18767
187682007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18769
18770 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18771 consistent values of selected_frame and selected_window.
18772
187732007-09-04 Jason Rumney <jasonr@gnu.org>
18774
18775 * w32console.c (initialize_w32_display): Zero unused hooks.
18776
187772007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18778
18779 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18780 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18781
187822007-09-04 Jason Rumney <jasonr@gnu.org>
18783
18784 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18785 in w32console.c. Set up input. Remove XXX comments that have been
18786 confirmed as correct.
18787
18788 * s/ms-w32.h (MULTI_KBOARD): Define.
18789
18790 * w32console.c (one_and_only_w32cons): Remove.
18791 (initialize_w32_display): Take terminal argument.
18792
18793 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18794 initialize_w32_display.
18795 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18796
18797 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18798
18799 * keyboard.c (discard_mouse_events): Discard it.
18800 (make_lispy_event): Translate it to a lisp event.
18801 (lispy_wheel_names): Add wheel-left and right events.
18802 (syms_of_keyboard): Enlarge wheel_syms.
18803
18804 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18805 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18806
18807 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18808
18809 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18810 from WM_MOUSEHWHEEL.
18811 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18812
18813 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18814 terminal.
18815
18816 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18817 keyboard for the terminal.
18818
188192007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18820
18821 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18822 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18823 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18824 and resume-tty-function to resume-tty-hook.
18825 (Fsuspend_tty, Fresume_tty): Use new names.
18826
188272007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18828
18829 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18830 if it starts with "n:".
18831
188322007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18833
18834 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18835
188362007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18837
18838 * frame.h:
18839 * frame.c (Qterm_environment_variable): Remove.
18840 (syms_of_frame): Don't init and staticpro it.
18841
18842 * callproc.c (getenv_internal): Remove special case for $TERM.
18843
18844 * callproc.c (Vinitial_environment): New variable.
18845 (set_initial_environment): Initialize it.
18846 (syms_of_callproc): Declare it.
18847 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18848 TERM under which a process runs is never related to the TERM in which
18849 Emacs is running.
18850
188512007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18852
18853 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18854 * s/darwin.h: ... do it here.
18855
188562007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18857
18858 * lisp.h (set_initial_environment): Rename from set_global_environment.
18859
18860 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18861 removed by mistake on the multi-tty branch.
18862
18863 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18864 (Fmodify_frame_parameters): Return a value.
18865
18866 * image.c (png_load): Comment-out var only used in commented-out code.
18867
18868 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18869 before passing it to mark_object.
18870
18871 * xfaces.c (internal_resolve_face_name): Return a value.
18872 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18873
18874 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18875 (x_icon): Comment-out var only used in commented-out code.
18876
188772007-08-29 Romain Francoise <romain@orebokech.com>
18878
18879 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18880 QUIT hasn't been provided.
18881
188822007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18883
18884 * callproc.c (child_setup, getenv_internal): Use the
18885 display-environment-variable and term-environment-variable frame params.
18886 (set_initial_environment): Initialise Vprocess_environment.
18887
18888 * config.in: Disable multi-keyboard support on a mac.
18889
18890 * frame.c (Qterm_environment_variable)
18891 (Qdisplay_environment_variable): New variables.
18892 (syms_of_frame): Intern and staticpro them.
18893 (Fmake_terminal_frame): Disable output method test.
18894
18895 * frame.h: Declare them here.
18896
18897 * macfns.c (x_set_mouse_color): Get rif from the frame.
18898 (x_set_tool_bar_lines): Don't use updating_frame.
18899 (mac_window): Add 2 new parameters for consistency with other systems.
18900 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18901 frame parameters following what is done in X11 and w32. Don't use
18902 FRAME_MAC_DISPLAY_INFO.
18903 (Fx_open_connection, start_hourglass): Remove window-system check.
18904 (x_create_tip_frame): Get the keyboard from the terminal.
18905
18906 * macmenu.c: Reorder includes.
18907 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18908
18909 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18910 terminal parameter.
18911 (x_clear_frame): Add a frame parameter.
18912 (note_mouse_movement): Get rif from the frame.
18913 (mac_term_init): Initialize the terminal.
18914 (mac_initialize): Make static and move terminal initialization ...
18915 (mac_create_terminal): ... to this new function.
18916
18917 * macterm.h (struct mac_display_info): Add terminal.
18918 (mac_initialize): Delete declaration.
18919
18920 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18921
18922 * sysdep.c: Comment out text after #endif.
18923
18924 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18925 is defined. Better initialize ttys in windows. Use terminal
18926 specific mouse_position_hook.
18927
18928 * termhooks.h (union display_info): Add mac_display_info.
18929
18930 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18931 Set the default minibuffer frame, window_system and the rest of the
18932 frame parameters following what is done in X11.
18933
18934 * w32term.c (w32_initialize): Make static.
18935
18936 * xselect.c (x_handle_selection_clear): Only access
18937 terminal->kboard when MULTI_KBOARD is defined.
18938
18939 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18940 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18941
189422007-08-29 Jason Rumney <jasonr@gnu.org>
18943
18944 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18945 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18946
18947 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18948 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18949
18950 * keyboard.c (restore_kboard_configuration): Only define when
18951 MULTI_KBOARD defined.
18952
18953 * makefile.w32-in: Update dependancies from Makefile.in.
18954 (OBJ1): Add terminal.$(O)
18955
18956 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18957 Don't define function body.
18958 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18959
18960 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18961
18962 * w32.c (request_sigio, unrequest_sigio): Remove.
18963
18964 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18965 (w32con_clear_frame, w32con_clear_end_of_line)
18966 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18967 (w32con_delete_glyphs, w32con_set_terminal_window)
18968 (scroll_line, w32_sys_ring_bell): Add frame arg.
18969 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
18970 Add terminal arg.
18971 (PICK_FRAME): Remove.
18972 (w32con_write_glyphs): Use frame specific terminal coding.
18973 (one_and_only_w32cons): New global variable.
18974 (initialize_w32_display): Use it for storing hooks.
18975 (create_w32cons_output): New function.
18976
18977 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
18978 arg a frame.
18979
18980 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
18981 Set window_system.
18982 (x_set_tool_bar_lines): Don't use updating_frame.
18983 (Fx_create_frame): Set terminal and ref count.
18984 (Fx_open_connection): Remove window-system check.
18985
18986 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
18987
18988 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
18989 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
18990 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
18991 Add frame arg.
18992 (x_delete_terminal, w32_create_terminal): New functions.
18993 (w32_term_init): Create a terminal.
18994 (w32_initialize): Move terminal specific initialization to
18995 w32_create_terminal.
18996
18997 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
18998 (w32_clear_rect, w32_clear_area): Use background from frame.
18999 (w32_display_info): Add terminal.
19000 (w32_sys_ring_bell, x_delete_display): Declare here.
19001
19002 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19003
19004 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19005
190062007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19007
19008 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19009 Fix get_named_tty calls for the controlling tty.
19010
190112007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19012
19013 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19014
190152007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19016
19017 * term.c (tty_insert_glyphs): Add missing first parameter.
19018
190192007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19020
19021 * buffer.c (Fbuffer_list, Fbury_buffer):
19022 Take frame->buried_buffer_list into account.
19023
19024 * cm.c (current_tty): New variable, for cmputc().
19025 (cmputc): Use it.
19026 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19027 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19028 (cmgoto): Add tty parameter. Pass it on to calccost().
19029 Use emacs_tputs() instead of tputs().
19030
19031 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19032 tputs().
19033 (current_tty): New variable, for cmputc().
19034 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19035
19036 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19037 (internal_condition_case, internal_condition_case_1)
19038 (internal_condition_case_2): Don't abort when x_catching_errors.
19039
19040 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19041 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19042 prevent crashes caused by bogus longjmps in read_char.
19043
19044 * keymap.h (Fset_keymap_parent): Add EXFUN.
19045
19046 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19047 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19048 Remove redundant definition.
19049
19050 * macfns.c (x_set_mouse_color, x_make_gc):
19051 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19052
19053 * w32term.c (x_free_frame_resources):
19054 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19055 (w32_initialize): Use the accessor macros for terminal characteristics.
19056
19057 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19058 Use the accessor macros for terminal characteristics.
19059 * msdos.c (internal_terminal_init): Use the accessor macros for
19060 terminal characteristics.
19061 (ScreenVisualBell, internal_terminal_init):
19062 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19063
19064 * termopts.h (no_redraw_on_reenter): Declare.
19065
19066 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19067 (mark_terminals, mark_ttys): Declare.
19068 (Fgarbage_collect): Call them.
19069 (mark_object): Mark buried_buffer_list.
19070
19071 * prefix-args.c: Include stdlib.h for exit.
19072
19073 * syssignal.h: Add comment.
19074
19075 * indent.c: Include stdio.h.
19076
19077 * window.h (Vinitial_window_system): Declare.
19078 (Vwindow_system): Delete declaration.
19079
19080 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19081
19082 * image.c (lookup_image): Don't initialize `c' until the xasserts
19083 have been run.
19084
19085 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19086 FRAME_FOREGROUND_PIXEL.
19087
19088 * print.c (print_preprocess): Don't lose print_depth levels while
19089 iterating.
19090
19091 * widget.c (update_from_various_frame_slots):
19092 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19093
19094 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19095 frames.
19096 (window_internal_height): Remove bogus make_number call.
19097 (init_window_once): Call make_terminal_frame with two zero parameters.
19098
19099 * fileio.c (Fread_file_name): Update comment.
19100
19101 * callint.c (Fcall_interactively):
19102 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19103 Make sure it is correctly unwound.
19104
19105 * xsmfns.c (x_session_close): New function.
19106
19107 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19108 Delete declarations.
19109
19110 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19111 (x_output): Remove background_pixel and foreground_pixel fields.
19112 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19113 (x_delete_device, x_session_close): Declare.
19114
19115 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19116 (read_filtered_event): Call `read_char' with a local
19117 `wrong_kboard_jmpbuf'.
19118
19119 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19120 Don't call single_kboard_state. Use FRAME_RIF.
19121
19122 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19123 systems.
19124
19125 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19126 (Fframe_with_environment, Fset_input_meta_mode)
19127 (Fset_quit_char): EXFUN.
19128 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19129 (init_sys_modes, reset_sys_modes): Update prototypes.
19130 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19131
19132 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19133 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19134 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19135 Delete declarations.
19136 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19137 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19138 New declarations.
19139
19140 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19141 already does that during init_display(). Call syms_of_keymap
19142 before syms_of_keyboard. Call `syms_of_terminal'.
19143 Call set_initial_environment, not set_process_environment.
19144 (shut_down_emacs): Call reset_all_sys_modes() instead of
19145 reset_sys_modes().
19146
19147 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19148 (internal_resolve_face_name, resolve_face_name_error): New functions.
19149 (resolve_face_name): Protect against loops and errors thrown by Fget.
19150 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19151 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19152
19153 * scroll.c: Replace CURTTY() with local variables throughout the
19154 file (where applicable).
19155 (calculate_scrolling, calculate_direct_scrolling)
19156 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19157 characteristics.
19158
19159 * keymap.c (Vfunction_key_map): Remove.
19160 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19161 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19162 (Vkey_translation_map): Remove.
19163 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19164 (Fdescribe_buffer_bindings)
19165 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19166 Update for terminal-local key-translation-map.
19167
19168 * Makefile.in (callproc.o): Update dependencies.
19169 (lisp, shortlisp): Add termdev.elc.
19170 (obj): Add terminal.o.
19171 (terminal.o): Add dependencies.
19172 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19173 (data.o, fns.o): Add termhooks.h dependency.
19174 (SOME_MACHINE_LISP): Add dnd.elc.
19175 (minibuf.o): Fix typo.
19176 Update dependencies.
19177
19178 * data.c (do_symval_forwarding, store_symval_forwarding)
19179 (find_symbol_value): Use the selected frame's keyboard, not
19180 current_kboard.
19181
19182 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19183 Vwindow_system.
19184
19185 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19186 Fmenu_bar_open.
19187 (syms_of_xmenu): Update defsubr.
19188 (mouse_position_for_popup, Fx_popup_menu)
19189 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19190 (set_frame_menubar, free_frame_menubar)
b97439ce 19191 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19192 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19193 an X frame.
19194
19195 * xselect.c (x_own_selection): Abort if not an X frame.
19196 (some_frame_on_display): Check if it is an X frame.
19197 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19198
19199 * coding.c: Include frame.h and termhooks.h.
19200 (terminal_coding, keyboard_coding): Delete.
19201 (Fset_terminal_coding_system_internal)
19202 (Fset_keyboard_coding_system_internal)
19203 (Fkeyboard_coding_system)
19204 (Fterminal_coding_system): Add a terminal parameter.
19205 Get terminal_coding from the terminal.
19206 (init_coding_once): Don't call setup_coding_system here.
19207
19208 * dispextern.h (set_scroll_region, turn_off_insert)
19209 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19210 (tty_clear_end_of_line, tty_setup_colors)
19211 (delete_tty, updating_frame)
19212 (produce_special_glyphs, produce_glyphs, write_glyphs)
19213 (insert_glyphs): Remove.
19214 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19215 (tty_turn_off_highlight, get_tty_size): Add declaration.
19216 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19217
19218 * frame.h (enum output_method): Add output_initial.
19219 (struct x_output): Delete.
19220 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19221 Access foreground_pixel and background_pixel directly from the frame.
19222 (tty_display): Delete.
19223 (struct frame): Add buried_buffer_list, foreground_pixel,
19224 background_pixel and terminal. Delete kboard.
19225 (union output_data): Add tty.
19226 (FRAME_KBOARD): Get the kboard from the terminal.
19227 (FRAME_INITIAL_P): New macro.
19228 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19229 (Qterm_environment_variable, Qdisplay_environment_variable)
19230 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19231 New declarations.
19232
19233 * termchar.h (tty_output, tty_display_info): New structures.
19234 (tty_list): Declare.
19235 (FRAME_TTY, CURTTY): New macros.
19236 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19237 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19238 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19239 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19240
19241 * callproc.c: Include frame.h and termhooks.h, for terminal
19242 parameters.
19243 (add_env): New function.
19244 (child_setup): Use it.
19245 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19246 (getenv_internal): Fix get_terminal_param call.
19247 (Fgetenv_internal, egetenv): Update doc.
19248 (syms_of_callproc): Initialize Vprocess_environment to nil.
19249 Register and initialize them. Remove obsolete defvars. Update doc
19250 strings.
19251 (child_setup): Handle Vlocal_environment_variables.
19252 (getenv_internal): Add terminal parameter.
19253 Handle Vlocal_environment_variables.
19254 (Fgetenv_internal): Add terminal parameter.
19255 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19256 environment in a frame (not terminal) parameter. Update doc strings.
19257 (set_initial_environment): Rename from set_global_environment.
19258 Store Emacs environment in initial frame parameter.
19259
19260 * xdisp.c (redisplay_internal): Update references to
19261 `previous_terminal_frame'.
19262 (display_mode_line, Fformat_mode_line): Replace calls to
19263 `push_frame_kboard' with `push_kboard'.
19264 (get_glyph_string_clip_rects): Add extra parentheses and
19265 braces to prevent compiler warnings.
19266 (calc_pixel_width_or_height): Add xassert to check that the
19267 frame is alive. Don't call `lookup_image' on a termcap frame.
19268 (message2_nolog, message3_nolog, redisplay_internal)
19269 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19270 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19271 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19272 (Fx_display_pixel_width, Fx_display_pixel_height)
19273 (Fx_display_planes, Fx_display_color_cells)
19274 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19275 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19276 (Fx_display_backing_store, Fx_display_visual_class)
19277 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19278 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19279
19280 * xfns.c (x_set_foreground_color x_set_background_color)
19281 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19282 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19283 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19284 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19285 terminal that is being deleted.
19286 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19287 frame parameter, and make sure it overrides any user-supplied setting.
19288 (Fx_close_connection, Fx_synchronize): Unify argument names with
19289 the rest of the DEFUNs.
19290
19291 * dispnew.c (Fsend_string_to_terminal): Update call to
19292 `get_tty_terminal'.
19293 (Fredraw_frame, Fsend_string_to_terminal)
19294 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19295 FRAME_TERMCAP_P and FRAME_TTY.
19296 (window_change_signal): Don't believe width/height values that are
19297 impossibly small.
19298 (Vinitial_window_system): Rename from Vwindow_system.
19299 (termscript, Wcm, rif): Delete.
19300
19301 * termhooks.h (struct terminal): New struct containing the
19302 previously global text display hooks and new members NAME,
19303 DELETED and PARAM_ALIST.
19304 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19305 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19306 (FRAME_RIF): New macros.
19307 (get_terminal_param, get_device): New declarations.
19308 (termscript): Delete declaration.
19309
19310 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19311 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19312 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19313 FRAME_FOREGROUND_PIXEL.
19314 (x_fully_uncatch_errors): Disable definition.
19315 (x_scroll_bar_expose): Fix reference to foreground pixel.
19316 (XTread_socket): Disable loop on all X displays.
19317 (x_delete_terminal): Don't set terminal->deleted and let
19318 delete_terminal delete the frames on the terminal.
19319 (x_delete_display): Doc update to reflect changes in
19320 delete_terminal.
19321 (x_display_info) <terminal>: Move member earlier in the struct.
19322 (deleting_tty): Remove old variable.
19323 (Fsuspend_tty): Call clear_tty_hooks.
19324 (Fresume_tty, init_tty): Call set_tty_hooks.
19325 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19326 errors on X frames.
19327 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19328 (handle_one_xevent): Initialize `f' to NULL.
19329 (x_delete_terminal, x_create_terminal): New functions.
19330 (XTset_terminal_modes, XTreset_terminal_modes)
19331 (XTread_socket, x_connection_closed, x_term_init)
19332 (x_term_init, x_delete_display): Add terminal parameter.
19333 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19334 X connections.
19335
19336 * frame.c: Include termchar.h.
19337 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19338 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19339 (Qdisplay_environment_variable): New vars.
19340 (Fframep): Deal with output_initial.
19341 (Fframe-live-p): Doc fix.
19342 (Fwindow-system): New function.
19343 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19344 (make_terminal_frame): Don't create frames on a terminal that is
19345 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19346 (store_frame_param): Check for found_for_frame before calling XFRAME.
19347 (Fmake_terminal_frame): Handle NULL tty names correctly.
19348 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19349 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19350 frames to refer to a deleted frame in their 'environment parameter.
19351 (Fframe_with_environment): New function.
19352 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19353 (get_future_frame_param): New function.
19354 (Fmake_terminal_frame): Use it.
19355 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19356
19357 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19358 * sysdep.c (reset_sys_modes): Update for renames.
19359
19360 * keyboard.c (tty_read_avail_input): New function.
19361 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19362 (syms_of_keyboard): Defsubr them.
19363 (Fset_input_meta_mode, Fset_quit_char): New functions.
19364 (Fset_input_mode): Split to above functions.
19365 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19366 parameter. Use it in call to `read_char'.
19367 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19368 Set wrong_kboard_jmpbuf correctly in recursive calls.
19369 Use current_kboard to access Vkeyboard_translate_table.
19370 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19371 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19372 Update longjmp invocations. Remember the original current_kboard,
19373 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19374 changes it. Comment out unnecessary calls to
19375 `record_single_kboard_state' and `any_kboard_state'.
19376 Update recursive calls.
19377 (wrong_kboard_jmpbuf): Remove global variable.
19378 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19379 Handle deleted interrupted_kboards correctly; that is a legal
19380 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19381 and read_char calls. Abort if interrupted_kboard died in read_char.
19382 (any_kboard_state, single_kboard_state)
19383 (push_frame_kboard): Remove function.
19384 (pop_kboard): Switch out of single_kboard mode if the kboard has
19385 been deleted. Remove unused variable. Help debugging by not
19386 changing current_kboard unnecessarily. Set current_kboard to the
19387 kboard of the selected frame when the stored kboard object has
19388 been deleted before pop_kboard.
19389 (temporarily_switch_to_single_kboard): Change first parameter to a
19390 frame pointer. Throw an error when caller wants to change kboards
19391 while in single_kboard mode. Don't push_kboard if we weren't in
19392 single kboard state. Don't pop_kboard if we popped into any
19393 kboard state.
19394 (restore_kboard_configuration): Abort if pop_kboard changed the
19395 kboard in single_kboard mode. Call pop_kboard only after setting
19396 up single_kboard mode.
19397 (Frecursive_edit): Switch to single_kboard mode only in nested
19398 command loops.
19399 (cmd_error, command_loop, command_loop_1, timer_check):
19400 Comment out unnecessary call to `any_kboard_state' and
19401 `record_single_kboard_state'.
19402 (delete_kboard): Exit single_kboard mode if we have just deleted
19403 that kboard. Use FRAME_KBOARD.
19404 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19405 `fatal_error_signal'.
19406 (record_single_kboard_state): Don't push_kboard if we weren't in
19407 single kboard state. Don't pop_kboard if we popped into any
19408 kboard state.
19409 (push_frame_kboard): Rename to push_kboard.
19410 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19411 (read_avail_input): Read input from all terminals.
19412 (mark_kboards): Also mark Vkeyboard_translate_table.
19413 (kbd_buffer_store_event_hold): Simplify condition.
19414 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19415 (Vkeyboard_translate_table): Move to struct kboard.
19416 (init_kboard): Initialize Vkeyboard_translate_table.
19417 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19418 Vkeyboard_translate_table. Update doc strings. Update docs of
19419 local-function-key-map and function-key-map.
19420
19421 * terminal.c: New file.
19422
19423 * term.c: Include errno.h.
19424 (Vring_bell_function, device_list, initial_device)
19425 (next_device_id, ring_bell, update_begin, update_end)
19426 (set_terminal_window, cursor_to, raw_cursor_to)
19427 (clear_to_end, clear_frame, clear_end_of_line)
19428 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19429 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19430 (syms_of_term): Move their initialization to terminal.c.
19431 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19432 (Ftty_display_color_cells)
19433 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19434 (clear_tty_hooks, set_tty_hooks)
19435 (init_tty, maybe_fatal): New functions.
19436 (Ftty_type): Return nil if terminal is not on a tty instead of
19437 throwing an error. Doc update.
19438 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19439 Doc update. Initialize new subrs and variables.
19440 (delete_tty): Use terminal->deleted.
19441 (tty_set_terminal_modes): Rename from set_terminal_modes.
19442 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19443 (set_scroll_region): Rename to `tty_set_scroll_region'.
19444 (turn_on_insert): Rename to `tty_turn_on_insert'.
19445 (turn_off_insert): Rename to `tty_turn_off_insert'.
19446 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19447 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19448 (toggle_highligh): Rename to `tty_toggle_highlight'.
19449 (background_highlight): Rename to `tty_background_highlight'.
19450 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19451 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19452 (tty_set_scroll_region, tty_background_highlight)
19453 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19454 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19455 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19456 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19457 Add static modifier.
19458 (tty_reset_terminal_modes, tty_set_terminal_window)
19459 (tty_set_scroll_region, tty_background_highlight)
19460 (tty_highlight_if_desired, tty_cursor_to)
19461 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19462 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19463 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19464 renames.
19465
194662007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19467
19468 * keyboard.c: Qrtl is new.
19469 (parse_tool_bar_item): Handle :rtl keyword.
19470 (syms_of_keyboard): Intern :rtl keyword.
19471
19472 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19473
19474 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19475 so no Lisp code is executed.
19476 (file_for_image, find_rtl_image): New functions.
19477 (xg_get_image_for_pixmap): Use file_for_image.
19478 (update_frame_tool_bar): If direction is RTL, use RTL image if
19479 defined. Use Gtk stock images if defined.
19480
194812007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19482
19483 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19484 for nonexistent or zero-width glyph in composition glyph.
19485
194862007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19487
19488 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19489
19490 * xdisp.c (Finvisible_p): New function.
19491 (syms_of_xdisp): defsubr it.
19492
194932007-08-24 Juanma Barranquero <lekktu@gmail.com>
19494
19495 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19496 Doc fixes.
19497
194982007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19499
19500 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19501
195022007-08-24 Martin Rudalics <rudalics@gmx.at>
19503
19504 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19505 whether decoding has modified buffer contents.
19506
195072007-08-24 Jason Rumney <jasonr@gnu.org>
19508
19509 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19510 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19511 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19512 (init_svg_functions) [HAVE_NTGUI]: New function.
19513 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19514 (svg_load_image): Use them.
19515 (svg_load_image) [HAVE_NTGUI]: Implement background.
19516
195172007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19518
19519 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19520 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19521 (LIBX): Remove @RSVG_LIBS@.
19522 (LIBES): Add $(RSVG_LIBS).
19523
19524 * image.c (svg_load_image): Blend with specified background if exists.
19525 Use IMAGE_BACKGROUND. Add Mac OS Support.
19526
19527 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19528 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19529 Remove macros.
19530 [MAC_OSX] (socket_callback): Do nothing.
19531 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19532 ReceiveNextEvent.
19533 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19534 socket_callback.
19535 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19536
195372007-08-22 Glenn Morris <rgm@gnu.org>
19538
19539 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19540
195412007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19542
19543 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19544
19545 * image.c: Add support for SVG images. Some additional comments
19546 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19547 (svg_image_p): New function to test for SVG image.
19548 (svg_load): New function to load SVG image.
19549 (svg_load_image): New function, helper for svg_load.
19550 (Qsvg): New Lisp_object.
19551 (svg_keyword_index): New enum.
19552 (svg_format): New static `image_keyword' struct.
19553 (svg_type): New static `image_type' struct.
19554 (librsvg/rsvg.h): Include it.
19555
195562007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19557
19558 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19559
195602007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19561
19562 * lread.c (Qold_style_backquotes): New var.
19563 (syms_of_lread): Init and staticpro it.
19564 (load_warn_old_style_backquotes): New fun.
19565 (Fload): Use them to warn about old style backquotes.
19566 (end_of_file_error, Fload): Remove unused vars.
19567
19568 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19569
19570 * lread.c (Vold_style_backquotes): New var.
19571 (syms_of_lread): Init and export it to Elisp.
19572 (read1): Set it when we find an old-style (back)quote.
19573
195742007-08-22 Jason Rumney <jasonr@gnu.org>
19575
19576 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19577
195782007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19579
19580 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19581
195822007-08-19 Richard Stallman <rms@gnu.org>
19583
19584 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19585
195862007-08-19 Andreas Schwab <schwab@suse.de>
19587
19588 * alloc.c (pure): Round PURESIZE up.
19589
195902007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19591
19592 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19593 active frame.
19594
195952007-08-16 Richard Stallman <rms@gnu.org>
19596
19597 * eval.c (Fcommandp): Add parens to clarify.
19598
19599 * minibuf.c (Fall_completions): Use enum for type of table.
19600
19601 * emacs.c (USAGE2): Improve text.
19602
196032007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19604
19605 * term.c (tty_default_color_capabilities): Declare static
19606 variables in file scope, to avoid HPUX compiler problem.
19607
196082007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19609
19610 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19611 to gtk_toolbar_insert.
19612
196132007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19614
19615 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19616
19617 * insdel.c (reset_var_on_error): New fun.
19618 (signal_before_change, signal_after_change):
19619 Use it to reset (after|before)-change-functions to nil in case of error.
19620 Bind inhibit-modification-hooks to t.
19621 Don't bind (after|before)-change-functions to nil while they run.
19622
196232007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19624
19625 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19626 filling pixmap with stippled background.
19627
196282007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19629
19630 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19631 Don't use invisible frame as parent window for repositioning.
19632
196332007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19634
19635 * print.c (new_backquote_output): Rename from old_backquote_output.
19636 (print): Inverse its logic (according to its name) so as to match the
19637 behavior of new_backquote_flag in lread.c.
19638
196392007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19640
19641 * gmalloc.c (posix_memalign): New function.
19642
19643 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19644 ActivateControl/DeactivateControl here.
19645 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19646 frame-notice-user-settings is non-nil.
19647 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19648 for kEventParamFMFontStyle.
19649 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19650 mac_pass_command_to_system and mac_pass_control_to_system here.
19651 (XTread_socket): Call ActivateControl/DeactivateControl here.
19652 (XTread_socket) [TARGET_API_MAC_CARBON]:
19653 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19654 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19655 for window repositioning.
19656
196572007-08-08 Glenn Morris <rgm@gnu.org>
19658
19659 * Replace `iff' in doc-strings and comments.
19660
196612007-08-07 Chong Yidong <cyd@stupidchicken.com>
19662
19663 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19664
196652007-08-07 Martin Rudalics <rudalics@gmx.at>
19666
19667 * fileio.c (Finsert_file_contents): Run format-decode and
19668 after_insert_file_functions on entire buffer when REPLACE is
19669 non-nil and inhibit modification_hooks and point_motion_hooks.
19670 For consistency, run after_insert_file_functions iff something
19671 got inserted. Move signal_after_change and update_compositions
19672 after code running after_insert_file_functions. Make sure that
19673 undo_list doesn't record intermediate steps of the decoding process.
19674
196752007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19676
19677 * emacs.c (main)
19678 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19679 Call malloc_enable_thread on interactive startup.
19680
19681 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19682 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19683 [USE_PTHREAD]: Conditionalize with it.
19684 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19685 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19686 New functions.
19687
196882007-08-06 Chong Yidong <cyd@stupidchicken.com>
19689
19690 * xdisp.c (redisplay_window): When restoring original buffer
19691 position, make sure it is still valid.
19692
19693 * image.c (png_load): Ignore png-supplied background color.
19694
196952007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19696
19697 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19698 Use kCFAbsoluteTimeIntervalSince1970.
19699
19700 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19701 New variable.
19702 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19703 event loop should be quit.
19704 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19705 Quit dialog event loop if quit_dialog_event_loop is set.
19706
19707 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19708 (Selection): New typedef. Use instead of ScrapRef.
19709 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19710 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19711 (mac_clear_selection): Rename from clear_scrap.
19712 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19713 scrap_has_target_type. All uses changed.
19714 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19715 (mac_selection_has_target_p): New functions.
19716 (mac_put_selection_value): Rename from put_scrap_string.
19717 (mac_get_selection_value): Rename from get_scrap_string.
19718 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19719 (put_scrap_private_timestamp, scrap_has_target_type)
19720 (get_scrap_private_timestamp): Remove functions.
19721 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19722 (x_own_selection, x_get_local_selection):
19723 Use mac_valid_selection_value_p.
19724 (x_own_selection): Don't use put_scrap_private_timestamp.
19725 Record OWNERSHIP-INFO into Vselection_alist instead.
19726 (x_get_local_selection): Don't check type if request is local.
19727 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19728 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19729
197302007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19731
19732 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19733 add comment explaining why.
19734
197352007-08-03 Richard Stallman <rms@gnu.org>
19736
19737 * fileio.c (Fvisited_file_modtime): Use make_time.
19738
197392007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19740
19741 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19742 build.
19743
197442007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19745
19746 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19747
197482007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19749
19750 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19751
197522007-07-30 Richard Stallman <rms@gnu.org>
19753
19754 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19755
197562007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19757
19758 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19759
197602007-07-28 Nick Roberts <nickrob@snap.net.nz>
19761
19762 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19763 remote default-directory.
19764
19765 * buffer.c (mode-line-format): Update doc string.
19766
197672007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19768
19769 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19770 scroll bar gap.
19771 (x_scroll_bar_create): Set bar->fringe_extended_p.
19772 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19773 on frame edge. Check fringe background extension. Don't clear
19774 extended fringe background area.
19775
19776 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19777 (w32_fill_area): Enclose multiple statements with do ... while (0).
19778
19779 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19780 Extend fringe background to scroll bar gap.
19781 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19782 Set bar->fringe_extended_p.
19783 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19784 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19785 background extension. Don't clear extended fringe background area.
19786
19787 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19788 New member fringe_extended_p.
19789
197902007-07-25 Glenn Morris <rgm@gnu.org>
19791
19792 * Relicense all FSF files to GPLv3 or later.
19793
19794 * COPYING: Switch to GPLv3.
19795
197962007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19797
19798 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19799
19800 * data.c (Finteractive_form): Check for the presence of an
19801 `interactive-form' symbol property more thoroughly.
19802
19803 * data.c (Finteractive_form): Use an `interactive-form' property if
19804 present, analogous to the function-documentation property.
19805
198062007-07-24 Jason Rumney <jasonr@gnu.org>
19807
19808 * w32fns.c (x_real_positions): Get real position from OS instead of
19809 calculating it.
19810
198112007-07-23 Jason Rumney <jasonr@gnu.org>
19812
19813 * filelock.c (current_lock_owner): Allow for @ sign in username.
19814
198152007-07-22 Nick Roberts <nickrob@snap.net.nz>
19816
19817 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19818 remote default-directory.
19819
19820 * buffer.c (mode-line-format): Describe above case in doc string.
19821
198222007-07-20 Eli Zaretskii <eliz@gnu.org>
19823
19824 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19825 Define if not defined.
19826
198272007-07-18 Jason Rumney <jasonr@gnu.org>
19828
19829 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19830
198312007-07-18 Richard Stallman <rms@gnu.org>
19832
19833 * data.c (Fsetq_default): Doc fix.
19834
19835 * eval.c (Fsetq): Doc fix.
19836
198372007-07-18 Juanma Barranquero <lekktu@gmail.com>
19838
19839 * coding.c (Ffind_operation_coding_system):
19840 * eval.c (For, Fand): Doc fixes.
19841 Reported by Johan Bockgård.
19842
198432007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19844
19845 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19846
19847 * xterm.h: Declare x_ewmh_activate_frame.
19848
19849 * xterm.c (x_ewmh_activate_frame): New function.
19850 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19851
198522007-07-17 Martin Rudalics <rudalics@gmx.at>
19853
19854 * window.c (Fdisplay_buffer): If largest or LRU window is the
19855 only window, split it even if it is not eligible for splitting.
19856 This restores the original behavior broken by the 2007-07-15
19857 change.
19858
198592007-07-17 Glenn Morris <rgm@gnu.org>
19860
19861 * abbrev.c (abbrev_check_chars): New function.
19862 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19863 Call abbrev_check_chars to check abbrev characters are word
19864 constituents. Doc fix.
19865
198662007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19867
19868 * process.c (Fstart_process, Fmake_network_process)
19869 (read_process_output): Fix up last changes.
19870
198712007-07-16 Eli Zaretskii <eliz@gnu.org>
19872
19873 * makefile.w32-in (clean): Don't delete *~.
19874
198752007-07-16 Andreas Schwab <schwab@suse.de>
19876
19877 * window.c (Fdisplay_buffer): Use NILP.
19878 (Fset_window_scroll_bars): Likewise.
19879
198802007-07-15 Martin Rudalics <rudalics@gmx.at>
19881
19882 * window.c (window_min_size_2): New function.
19883 (window_min_size_1, size_window, Fdisplay_buffer)
19884 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19885 windows without mode- or header-lines when window-min-height is
19886 too small.
19887 (size_window): Reset nodelete_p after testing it, following an
19888 earlier note by Kim F. Storm.
19889 (display_buffer): Do not set split_height_threshold to twice the
19890 value of window_min_height to avoid changing the value of a
19891 customizable variable. Rather explicitly check whether the
19892 height of the window that shall be splitted is at least as large
19893 as split_height_threshold.
19894 (Fwindow_full_width_p): New defun.
19895 (syms_of_window): Defsubr it.
19896
19897 * window.h: Add EXFUN for Fwindow_full_width_p.
19898
198992007-07-14 Jason Rumney <jasonr@gnu.org>
19900
19901 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19902
199032007-07-14 Richard Stallman <rms@gnu.org>
19904
19905 * eval.c (maybe_call_debugger): New function.
19906 (find_handler_clause): Use maybe_call_debugger.
19907 Call it when the handler says `debug'.
19908 Eliminate DEBUGGER_VALUE_PTR.
19909 (Fsignal): Eliminate debugger_value.
19910 (Qdebug): New variable.
19911 (syms_of_eval): Initialize it.
19912
199132007-07-14 Juanma Barranquero <lekktu@gmail.com>
19914
19915 * eval.c (Fprogn):
19916 * keyboard.c (Ftrack_mouse):
19917 * print.c (Fwith_output_to_temp_buffer):
19918 * window.c (Fsave_window_excursion): Doc fix.
19919
199202007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19921
19922 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19923
199242007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19925
19926 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19927 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19928 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19929 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19930 Remove unused encoding_carryover.
19931 * process.c: Adjust all functions accordingly.
19932
199332007-07-12 Richard Stallman <rms@gnu.org>
19934
19935 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19936
199372007-07-11 Jason Rumney <jasonr@gnu.org>
19938
19939 * makefile.w32-in (LIBS): Include OLE32.
19940
19941 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19942 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19943
199442007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
19945
19946 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19947 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19948 from a Lisp_Object into a bare pointer.
19949 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19950 Adjust the code correspondingly.
19951
19952 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19953
19954 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19955 (term_show_mouse_face): Remove unused var `j'.
19956 (handle_one_term_event): Remove unused vars `i' and `j'.
19957 Don't cast return value of ttyname since it's not necessary.
19958
199592007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
19960
19961 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19962 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19963
19964 * fns.c (map_char_table): Use an array of int for `indices' rather than
19965 an array of Lisp_Objects (which are only ever integers anyway).
19966 (Fmap_char_table): Update caller.
19967 * lisp.h: Update prototype.
19968 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
19969 * fontset.c (Ffontset_info):
19970 * casetab.c (set_case_table): Update callers.
19971
19972 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
19973
19974 * keymap.c (struct accessible_keymaps_data)
19975 (struct where_is_internal_data): New structures.
19976 (accessible_keymaps_1, where_is_internal_1): Use them to change
19977 interface to adhere to the one used by map_keymap.
19978 (Faccessible_keymaps, where_is_internal): Use map_keymap.
19979 (accessible_keymaps_char_table, where_is_internal_2): Remove.
19980
19981 * keymap.h (map_keymap_function_t): More informative prototype.
19982
199832007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
19984
19985 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
19986 (looking_at_1): Don't change search_regs and last_thing_searched
19987 if `inhibit-changing-match-data' is non-nil.
19988 (string_match_1, search_buffer, set_search_regs): Likewise.
19989 (syms_of_search): Add Lisp level definition for
19990 `inhibit-changing-match-data' and set it to nil.
19991 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
19992 start and end of the match, instead of using values in search_regs.
19993
199942007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
19995
19996 * minibuf.c (Fcompleting_read): New value `confirm-only'
19997 for `require-match'.
19998
199992007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20000
20001 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20002 part of the 2007-06-27 change to syms_of_fileio.
20003
200042007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20005
20006 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20007 Check WINDOWP before using XWINDOW. Consolidate return statements.
20008
200092007-06-27 Richard Stallman <rms@gnu.org>
20010
20011 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20012
200132007-06-27 Juanma Barranquero <lekktu@gmail.com>
20014
20015 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20016
200172007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20018
20019 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20020 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20021 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20022 (_free_internal, memalign): Use them.
20023 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20024 Initialize to PTHREAD_MUTEX_INITIALIZER.
20025 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20026 (morecore_nolock): Rename from morecore. All uses changed.
20027 Use only nolock versions of internal allocation functions.
20028 (_malloc_internal_nolock, _realloc_internal_nolock)
20029 (_free_internal_nolock): New functions created from
20030 _malloc_internal, _realloc_internal, and _free_internal.
20031 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20032 Copy hook value to automatic variable before its use.
20033 (memalign): Copy hook value to automatic variable before its use.
20034
200352007-06-26 Kenichi Handa <handa@m17n.org>
20036
20037 * coding.c (Ffind_operation_coding_system): Docstring improved.
20038 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20039
200402007-06-25 David Kastrup <dak@gnu.org>
20041
20042 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20043 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20044 cater for additional parameter.
20045
20046 * keymap.h: Adjust number of parameters to `current-active-maps'.
20047
20048 * doc.c (Fsubstitute_command_keys): Adjust call of
20049 `current-active-maps'.
20050
200512007-06-25 David Kastrup <dak@gnu.org>
20052
20053 * callint.c (Fcall_interactively): Make the parsing of interactive
20054 specs somewhat more readable.
20055
200562007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20057
20058 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20059 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20060 if extended background has already been filled.
20061
200622007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20063
20064 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20065 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20066
20067 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20068 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20069 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20070 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20071 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20072 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20073 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20074 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20075 Run timers during dialog popup.
20076 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20077
200782007-06-21 Jason Rumney <jasonr@gnu.org>
20079
20080 * image.c (convert_mono_to_color_image): Swap fore and background.
20081
200822007-06-20 Jason Rumney <jasonr@gnu.org>
20083
20084 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20085 (w32_free_bdf_font): Unmap memory not handle.
20086
200872007-06-20 Sam Steingold <sds@gnu.org>
20088
20089 * gmalloc.c (__morecore): Fix the declaration to comply with the
20090 definition.
20091
200922007-06-20 Juanma Barranquero <lekktu@gmail.com>
20093
20094 * w32term.c (w32_delete_display): Remove leftover declaration.
20095 (w32_define_cursor, w32_initialize): Make static.
20096
20097 * w32.c (_wsa_errlist): Fix typo in error message.
20098 (init_environment): Ignore any environment variable from the
20099 registry having a null value.
20100
201012007-06-20 Glenn Morris <rgm@gnu.org>
20102
20103 * Makefile.in (LIBGIF): Default to -lgif.
20104
201052007-06-17 Jason Rumney <jasonr@gnu.org>
20106
20107 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20108 unicode strings.
20109
201102007-06-16 Juanma Barranquero <lekktu@gmail.com>
20111
20112 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20113 Fix typo in docstring.
20114
201152007-06-16 Eli Zaretskii <eliz@gnu.org>
20116
20117 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20118 and their keybindings.
20119
201202007-06-15 Chong Yidong <cyd@stupidchicken.com>
20121
20122 * composite.c (update_compositions): Fix last fix.
20123
201242007-06-14 Jason Rumney <jasonr@gnu.org>
20125
20126 * w32.c (get_process_times_fn): New function pointer.
20127 (globals_of_w32): Intialize it if present in kernel32.dll.
20128 (w32_get_internal_run_time): New function.
20129
20130 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20131
201322007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20133
20134 * composite.c (update_compositions): Check the validness of
20135 compositions.
20136
201372007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20138
20139 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20140 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20141
20142 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20143 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20144
20145 * macgui.h (USE_MAC_TOOLBAR): New define.
20146
20147 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20148 Return immediately unless popup is activated.
20149
20150 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20151 background to scroll bar gap.
20152 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20153 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20154 scroll bars on frame edge. Check fringe background extension.
20155 Don't clear extended fringe background area.
20156 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20157 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20158 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20159 [USE_MAC_TOOLBAR]: New macros.
20160 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20161 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20162 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20163 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20164 [USE_MAC_TOOLBAR]: New functions.
20165 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20166 manually if previous repositioning has failed.
20167 (mac_handle_keyboard_event): Use precomputed event kind.
20168 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20169 as tool bar item click. Handle mouse movement over tool bar items.
20170
20171 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20172 toolbar_win_gravity.
20173 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20174 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20175 Add externs.
20176
20177 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20178 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20179
201802007-06-14 Chong Yidong <cyd@stupidchicken.com>
20181
20182 * image.c (search_image_cache): Remove unused variable.
20183
201842007-06-13 Chong Yidong <cyd@stupidchicken.com>
20185
20186 * xfns.c, xmenu.c: Link to xaw3d if available.
20187
201882007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20189
20190 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20191 frame_foreground and frame_background.
20192
20193 * image.c (lookup_image): Save frame foreground and background colors.
20194 (search_image_cache): Check if saved and current frame colors match.
20195
201962007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20197
20198 * regex.c (regex_compile): Remove the `regnum' counter.
20199 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20200
202012007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20202
20203 * term.c: Include intervals.h to declare Fget_text_property.
20204
202052007-06-10 Jason Rumney <jasonr@gnu.org>
20206
20207 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20208
202092007-06-08 Juanma Barranquero <lekktu@gmail.com>
20210
20211 * callint.c (Fcall_interactively):
20212 * editfns.c (Fdelete_and_extract_region):
20213 * fileio.c (Fread_file_name):
20214 * fns.c (Fmapconcat):
20215 * keyboard.c (cmd_error_internal):
20216 * keymap.c (Fkey_description):
20217 * lread.c (openp):
20218 * minibuf.c (read_minibuf):
20219 * search.c (wordify):
20220 * sunfns.c (sel_read):
20221 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20222 * xfns.c (x_default_scroll_bar_color_parameter):
20223 * xmenu.c (menu_help_callback):
20224 * xselect.c (Fx_get_atom_name):
20225 * xterm.c (x_term_init): Use empty_unibyte_string.
20226
202272007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20228
20229 * alloc.c (init_strings): Initialize canonical empty strings.
20230 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20231 canonical empty string when the requested size is 0.
20232
20233 * emacs.c (empty_unibyte_string): Rename from empty_string.
20234 (empty_multibyte_string): New canonical empty string.
20235 (syms_of_emacs): Don't initialize empty_string.
20236
20237 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20238 string, if appropriate.
20239 (empty_unibyte_string, empty_multibyte_string): New externs.
20240 (empty_string): Remove extern.
20241
20242 * lread.c (syms_of_lread): Use empty_unibyte_string.
20243
202442007-06-07 Jason Rumney <jasonr@gnu.org>
20245
20246 * s/ms-w32.h: Don't define HAVE_TZNAME.
20247
20248 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20249
202502007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20251
20252 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20253
20254 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20255 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20256
20257 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20258 Don't call next handler.
20259 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20260 Remove argument. Install handler to application.
20261 (set_frame_menubar): Don't change deep_p.
20262 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20263 FRAME_OUTER_TO_INNER_DIFF_Y.
20264 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20265 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20266 [HAVE_DIALOGS]: New macros.
20267 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20268 Use them.
20269 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20270
20271 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20272 init_service_handler. All callers changed. Return OSStatus value.
20273
20274 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20275 All callers changed so as not to call SetPortWindowPort.
20276 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20277 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20278 mac_draw_string_common.
20279 (mac_draw_image_string_qd): Likewise.
20280 (mac_draw_string_common): Use them. Add INLINE.
20281 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20282 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20283 GetGlobalMouse.
20284 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20285 and FRAME_OUTER_TO_INNER_DIFF_Y.
20286 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20287 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20288 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20289 repositioning window to mac_handle_window_event.
20290 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20291 saving window location to mac_handle_window_event
20292 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20293 (install_menu_target_item_handler): Remove argument in extern.
20294 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20295 Also accept command events.
20296 (do_keystroke): New function created from XTread_socket.
20297 (init_command_handler): Remove functions.
20298 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20299 and save window location by kEventWindowShowing and kEventWindowHiding
20300 handlers here. Don't call next handler for window state change and
20301 focus events.
20302 (mac_handle_application_event, mac_handle_keyboard_event)
20303 [TARGET_API_MAC_CARBON]: New functions.
20304 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20305 kEventWindowShowing and kEventWindowHiding events. Move installation
20306 of mouse, font, text input and menu target item handlers to
20307 install_application_handler.
20308 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20309 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20310 New function.
20311 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20312 Register it.
20313 (XTread_socket) [TARGET_API_MAC_CARBON]:
20314 Consolidate SendEventToEventTarget calls.
20315 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20316 Move application activation handler to mac_handle_application_event.
20317 Move keyboard handler to mac_handle_keyboard_event.
20318 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20319 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20320 init_command_handler. Call install_application_handler.
20321
20322 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20323 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20324
203252007-06-07 Glenn Morris <rgm@gnu.org>
20326
20327 * emacs.c (main): Use `emacs-copyright' in --version output.
20328
203292007-06-06 Chong Yidong <cyd@stupidchicken.com>
20330
20331 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20332
203332007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20334
20335 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20336
20337 * macgui.h: Replace WindowPtr with WindowRef.
20338
20339 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20340 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20341 Replace ControlHandle with ControlRef.
20342 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20343
20344 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20345 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20346 Replace ControlHandle with ControlRef.
20347 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20348 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20349
20350 * macterm.h (struct scroll_bar): Rename member control_handle_low
20351 and control_handle_high to control_ref_low and control_ref_high.
20352 All uses changed.
20353 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20354 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20355 respectively. All uses changed.
20356 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20357 (install_window_handler, remove_window_handler): Replace WindowPtr
20358 with WindowRef in externs.
20359
203602007-06-05 Juanma Barranquero <lekktu@gmail.com>
20361
20362 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20363
203642007-06-03 Nick Roberts <nickrob@snap.net.nz>
20365
20366 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20367
20368 * frame.c (Fmouse_position, Fmouse_pixel_position):
20369 Condition on HAVE_GPM too.
20370
20371 * term.c (term_mouse_highlight): Remove unused variables.
20372 (Fterm_open_connection): Set gpm_zerobased to 1.
20373 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20374 Use zero based co-ordinates.
20375 (handle_one_term_event): Report a drag as mouse movement too.
20376
20377 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20378
203792007-06-03 Chong Yidong <cyd@stupidchicken.com>
20380
20381 * image.c (search_image_cache): New function. Require background
20382 color match if background color is unspecified in the image spec.
20383 (uncache_image, lookup_image): Use it.
20384
203852007-06-01 Juanma Barranquero <lekktu@gmail.com>
20386
20387 * window.c (Fshrink_window): Reflow docstring.
20388
203892007-06-02 Chong Yidong <cyd@stupidchicken.com>
20390
20391 * Version 22.1 released.
20392
203932007-06-01 Richard Stallman <rms@gnu.org>
20394
20395 * xfns.c (x_encode_text): Add GCPRO.
20396
203972007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20398
20399 * xfns.c (x_set_name_internal): Save encoded name before
20400 x_encode_text in case string data is relocated.
20401
204022007-05-31 Richard Stallman <rms@gnu.org>
20403
20404 * buffer.c (syms_of_buffer): Doc fix.
20405
204062007-05-30 Nick Roberts <nickrob@snap.net.nz>
20407
20408 * sysdep.c (init_sys_modes): Add rather than replace with
20409 O_NONBLOCK.
20410
20411 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20412 term_mouse_moveto.
20413
20414 * termhooks.h (term_mouse_moveto): New extern.
20415
20416 * term.c (mouse_face_window): Rename...
20417 (Qmouse_face_window): ...to this.
20418 (term_show_mouse_face, term_clear_mouse_face)
20419 (term_mouse_highlight): Use Qmouse_face_window.
20420 (term_mouse_moveto): New function.
20421 (term_mouse_position): Make it work.
20422 (syms_of_term): Uncomment assignment to mouse_position_hook.
20423 Staticpro Qmouse_face_window.
20424
204252007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20426
20427 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20428 around current_column call.
20429
204302007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20431
20432 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20433 * xdisp.c (next_element_from_buffer):
20434 * window.c (delete_window):
20435 * term.c (term_mouse_highlight):
20436 * msdos.c (getdefdir):
20437 * macterm.c (mac_create_bitmap_from_bitmap_data)
20438 (init_font_name_table):
20439 * fns.c (Fsxhash):
20440 * data.c (Fmake_local_variable):
20441 * ccl.c (ccl_driver): Likewise.
20442
204432007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20444
20445 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20446 Call mac_wakeup_from_rne on window size change.
20447
204482007-05-25 Chong Yidong <cyd@stupidchicken.com>
20449
20450 * image.c (uncache_image): Fix typo.
20451
204522007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20453
20454 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20455
204562007-05-22 Richard Stallman <rms@gnu.org>
20457
20458 * xterm.c (x_connection_closed): Remove NO_RETURN.
20459
204602007-05-22 Martin Rudalics <rudalics@gmx.at>
20461
20462 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20463
204642007-05-21 Chong Yidong <cyd@stupidchicken.com>
20465
20466 * image.c (uncache_image): New function.
20467 (Fimage_refresh): New function.
20468
204692007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20470
20471 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20472
204732007-05-20 Nick Roberts <nickrob@snap.net.nz>
20474
20475 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20476 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20477
204782007-05-20 Nick Roberts <nickrob@snap.net.nz>
20479
20480 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20481 conditional on [HAVE_GPM_H].
20482
204832007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20484
20485 * syntax.c (skip_chars): Update syntax-table only after we checked that
20486 the new location is valid.
20487
204882007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20489
20490 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20491 mac_get_window_bounds.
20492
204932007-05-20 Nick Roberts <nickrob@snap.net.nz>
20494
20495 * Makefile.in (LIBGPM): Allow it to be set from configure.
20496 If set then link Emacs with it.
20497
20498 * config.in: Regenerate.
20499
20500 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20501 New externs.
20502
20503 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20504 Include gpm.h.
20505 (handle_one_term_event, term_gpm): New externs.
20506
20507 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20508 and allow it to be interrupted by SIGIO.
20509
20510 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20511 (wait_reading_process_output): Wait on gpm_fd too.
20512 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20513 (add_gpm_wait_descriptor_called_flag): New variable.
20514 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20515
20516 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20517 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20518 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20519 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20520 (make_lispy_event): Add case GPM_CLICK_EVENT.
20521 (read_avail_input): Handle mouse input.
20522
20523 * term.c (write_glyphs_with_face): New function.
20524 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20525 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20526 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20527 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20528 (last_mouse_x, last_mouse_y): New variables.
20529 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20530 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20531 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20532 (Fterm_close_connection): New functions.
20533 (term_init): Initialise mouse_face_window.
20534
205352007-05-19 Chong Yidong <cyd@stupidchicken.com>
20536
20537 * xdisp.c (redisplay_window): If first window line is a
20538 continuation line, recompute the new window start instead of
20539 recentering.
20540
205412007-05-18 Glenn Morris <rgm@gnu.org>
20542
20543 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20544 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20545
205462007-05-17 Glenn Morris <rgm@gnu.org>
20547
20548 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20549
205502007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20551
20552 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20553 dead key repeat and up events.
20554
205552007-05-14 Chong Yidong <cyd@stupidchicken.com>
20556
20557 * image.c (pbm_load): Check image size for monochrome pbm.
20558
205592007-05-13 Chong Yidong <cyd@stupidchicken.com>
20560
20561 * xterm.c (XTread_socket): Revert last change.
20562
205632007-05-12 Chong Yidong <cyd@stupidchicken.com>
20564
20565 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20566
20567 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20568
205692007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20570
20571 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20572 mixup (YAILOM).
20573
205742007-05-07 Andreas Schwab <schwab@suse.de>
20575
20576 * keymap.c (Flookup_key): Fix typo in last change.
20577
205782007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20579
20580 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20581 mapping for unibyte strings.
20582
205832007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20584
20585 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20586 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20587
205882007-04-29 Richard Stallman <rms@gnu.org>
20589
20590 * insdel.c (replace_range): For undo, record insertion first.
20591
205922007-04-29 Andreas Schwab <schwab@suse.de>
20593
20594 * lisp.h (VECSIZE): Use OFFSETOF.
20595
205962007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20597
20598 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20599 disabled lines.
20600
206012007-04-28 Richard Stallman <rms@gnu.org>
20602
20603 * lread.c (read_escape): In a string, \s is always space.
20604
206052007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20606
20607 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20608
20609 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20610 submenu for menu bar items.
20611
20612See ChangeLog.10 for earlier changes.
20613
20614;; Local Variables:
20615;; coding: utf-8
20616;; add-log-time-zone-rule: t
aac0c6e3
MR
20617;; End:
20618
76b6f707 20619 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20620
20621 This file is part of GNU Emacs.
20622
20623 GNU Emacs is free software: you can redistribute it and/or modify
20624 it under the terms of the GNU General Public License as published by
20625 the Free Software Foundation, either version 3 of the License, or
20626 (at your option) any later version.
20627
20628 GNU Emacs is distributed in the hope that it will be useful,
20629 but WITHOUT ANY WARRANTY; without even the implied warranty of
20630 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20631 GNU General Public License for more details.
20632
20633 You should have received a copy of the GNU General Public License
20634 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20635
20636;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40