* widget.el (define-widget): Purecopy the docstring.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
a4ada374
DN
12009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2
04420943
DN
3 * s/freebsd.h:
4 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5
0a5d24ae
DN
6 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
8
a4ada374
DN
9 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
10 * xterm.c (syms_of_xterm):
11 * xfaces.c (syms_of_xfaces):
12 * xdisp.c (syms_of_xdisp):
13 * lread.c (syms_of_lread):
14 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
15 build_string.
16 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
17
af98fc7f
SM
182009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19
20 * fns.c (Fplist_get): Merge the active and the uncommented code.
21
e90292a9
JD
222009-11-10 Jan Djärv <jan.h.d@swipnet.se>
23
24 * keyboard.h: Declare timer_check.
25
26 * keyboard.c (timer_check_2): New function that does what the old
27 timer_check did.
28 (timer_check): Call timer_check_2 until -1 or a non-zero time is
29 returned, i.e. don't return -1 with timers pending.
30
31 * process.c: Remove extern declaration of timer_check.
32
33 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
34 even if timer_check returned -1.
35
af98fc7f
SM
36 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
37 xg_dialog_data.
e90292a9
JD
38 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
39 the event loop.
40 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
41 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
42 Destroy the dialog after xg_dialog_run.
43
045b83c0
SM
442009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
45
46 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
47
1fb99a3a
JD
482009-11-10 Jan Djärv <jan.h.d@swipnet.se>
49
50 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
51
04e452cb
JB
522009-11-09 Juanma Barranquero <lekktu@gmail.com>
53
54 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
55
ef7417fd
SM
562009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
57
58 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
59 w32menu.c, and nsmenu.m.
60 Simplify the obsolete case where position is nil.
61 (cleanup_popup_menu): New function, moved from nsmenu.m.
62 (struct skp): Remove slot `notreal'.
63 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
64 adjust callers.
65 (single_menu_item): Adjust call to parse_menu_item.
66 (syms_of_menu): Defsubr x-popup-menu.
67 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
68 (keymap_panes): Don't export any more.
69 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
70 (xmenu_show): Declare.
71 * keyboard.c (parse_menu_item): Remove arg `notreal'.
72 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
73 * keyboard.h (parse_menu_item): Update declaration.
74 * xmenu.c (Fx_popup_menu): Remove.
75 (syms_of_xmenu): Don't defsubr x-popup-menu.
76 * w32menu.c (Fx_popup_menu): Remove.
77 (syms_of_w32menu): Don't defsubr x-popup-menu.
78 * nsmenu.m (cleanup_popup_menu): Remove.
79 (ns_menu_show): Rename from ns_popup_menu and remove all the code
80 moved to menu.c's Fx_popup_menu.
81 (Fx_popup_menu): Remove.
82 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
83 menu_items (it's done in menu.c already).
84
424d6179
SM
852009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
86
87 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
88 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
89
c0df13a6 902009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
91
92 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 93 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
94 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
95 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
96
2de9f71c
SM
972009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
98
99 Let integers use up 2 tags to give them one extra bit and thus double
100 their range.
101 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
102 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
103 New macros.
104 (enum Lisp_Type): Use them. Give explicit values.
105 (Lisp_Type_Limit): Remove.
106 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
107 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
108 Pay attention to USE_2_TAGS_FOR_INTS.
109 (INTEGERP): Use LISP_INT_TAG_P.
110 * fns.c (internal_equal): Simplify the default case.
111 (sxhash): Use case_Lisp_Int.
112 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
113 any more.
114 (Ftype_of): Use case_Lisp_Int.
115 (store_symval_forwarding): Take into account the fact that Ints can
116 now have more than one tag.
117 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
118 buffer_slot_type_mismatch):
119 * xfaces.c (face_attr_equal_p):
120 * print.c (print_object):
121 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
122 Use case_Lisp_Int.
123
323637a2
EZ
1242009-11-06 Eli Zaretskii <eliz@gnu.org>
125
7ac65b38
EZ
126 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
127
323637a2
EZ
128 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
129 warning.
130
e511451f
JD
1312009-11-06 Jan Djärv <jan.h.d@swipnet.se>
132
133 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
134
135 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
136
137 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
138 ButtonPressRelease and MotionNotify (bug#4870).
139
5e2327cf
DN
1402009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
141
5adc433e
DN
142 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
143
d67b4f80
DN
144 * xterm.c (syms_of_xterm):
145 * xselect.c (syms_of_xselect):
146 * xmenu.c (syms_of_xmenu):
147 * xfns.c (syms_of_xfns):
148 * xfaces.c (syms_of_xfaces):
149 * xdisp.c (syms_of_xdisp):
150 * window.c (syms_of_window):
151 * w32fns.c (syms_of_w32fns):
152 * undo.c (syms_of_undo):
153 * textprop.c (syms_of_textprop):
154 * terminal.c (syms_of_terminal):
155 * syntax.c (syms_of_syntax):
156 * sound.c (syms_of_sound):
157 * search.c (syms_of_search):
158 * print.c (syms_of_print):
159 * minibuf.c (syms_of_minibuf):
160 * macros.c (syms_of_macros):
161 * keymap.c (syms_of_keymap, initial_define_key)
162 (initial_define_lispy_key):
163 * keyboard.c (syms_of_keyboard):
164 * insdel.c (syms_of_insdel):
165 * image.c (syms_of_image):
166 * fringe.c (syms_of_fringe):
167 * frame.c (syms_of_frame):
168 * fontset.c (syms_of_fontset):
169 * fns.c (syms_of_fns):
170 * fns.c (syms_of_fns):
171 * fileio.c (syms_of_fileio):
172 * fileio.c (syms_of_fileio):
173 * eval.c (syms_of_eval):
174 * doc.c (syms_of_doc):
175 * dispnew.c (syms_of_display):
176 * dired.c (syms_of_dired):
177 * dbusbind.c (syms_of_dbusbind):
178 * data.c (syms_of_data):
179 * composite.c (syms_of_composite):
180 * coding.c (syms_of_coding):
181 * cmds.c (syms_of_cmds):
182 * charset.c (define_charset_internal, syms_of_character):
183 * ccl.c (syms_of_ccl):
184 * category.c (syms_of_category, init_category_once):
185 * casetab.c (syms_of_casetab):
186 * casefiddle.c (syms_of_casefiddle):
187 * callint.c (syms_of_callint):
188 * bytecode.c (syms_of_bytecode):
189 * buffer.c (keys_of_buffer, syms_of_buffer):
190 * alloc.c (syms_of_alloc):
191 * process.c (syms_of_process, init_process):
192 * lread.c (syms_of_lread, init_obarray):
193 * font.c (build_style_table):
194 * emacs.c (syms_of_emacs, main): Replace calls to intern with
195 intern_c_string, calls to make_pure_string with
196 make_pure_c_string. Use pure_cons instead of Fcons.
197
5e2327cf
DN
198 * process.c (socket_options): Make it const.
199 (set_socket_option, init_process): Use a const pointer.
200
201 * lread.c (intern_c_string): New function.
202 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
203 (defvar_int): Uset it. Make the name const char*.
204
205 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
206 (defvar_int): Update prototypes.
207 (DEFUN, EXFUN): Support for prototypes is now required.
208 (intern_c_string): New prototype.
209 (struct Lisp_Subr): Make symbol_name constant.
210
211 * font.c (struct table_entry): Remove unused member. Make NAMES
212 constant.
213 (weight_table, slant_table, width_table): Make constant.
214
215 * emacs.c (struct standard_args): Make name and longname constant.
216
217 * character.h (DEFSYM): Use intern_c_string.
218
a56eaaef
DN
2192009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
220
221 * alloc.c (make_pure_c_string): New function.
222
223 * eval.c (Fautoload): Purecopy all arguments.
224
f6a07420
KH
2252009-11-05 Kenichi Handa <handa@m17n.org>
226
227 * fileio.c (Finsert_file_contents): Be sure set coding-system of
228 the buffer in case of replace.
229
5d28d4b1
DN
2302009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
231
232 * puresize.h (BASE_PURESIZE): Increase to 1620000.
233
b349d111
SM
2342009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
235
d528b1ce
SM
236 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
237 when applicable (bug#4851).
238
b349d111
SM
239 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
240 (P_): Support for prototypes is now required.
241
c38eb027
CY
2422009-10-31 Chong Yidong <cyd@stupidchicken.com>
243
244 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
245 (Bug#4827).
246
0405f8d9
EZ
2472009-10-30 Eli Zaretskii <eliz@gnu.org>
248
d528b1ce 249 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 250
ca0a881a
DN
2512009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
252
253 * puresize.h (BASE_PURESIZE): Increase to 1470000.
254
d528b1ce
SM
255 * lread.c (Fload): Purecopy the file name when building
256 Vpreloaded_file_list.
ca0a881a 257
47e0e0e4
JR
2582009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
259
260 * w32fns.c (syms_of_w32fns): Change default value of
261 w32-scroll-lock-modifier to nil. (Bug#2827)
262
057bce6f
JB
2632009-10-26 Juanma Barranquero <lekktu@gmail.com>
264
782a943e 265 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 266
242bc74c
AS
2672009-10-26 Andreas Schwab <schwab@redhat.com>
268
269 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
270
522d013a
JB
2712009-10-26 Juanma Barranquero <lekktu@gmail.com>
272
273 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
274 For delta < 0, skip check that only makes sense when the mini-window
275 is going to be enlarged. (Bug#4534)
276
18060980
CY
2772009-10-25 Chong Yidong <cyd@stupidchicken.com>
278
279 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
280 string in menu maps (Bug#4471).
281
fec8f0fe
CY
2822009-10-24 Chong Yidong <cyd@stupidchicken.com>
283
284 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
285 FRAME_NS_VIEW on terminal frames (Bug#4765).
286
10d66ec0
AS
2872009-10-24 Andreas Schwab <schwab@linux-m68k.org>
288
1cae01f7
AS
289 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
290 DBUS_TYPE_UINTnn separately to get proper sign extension.
291
58a12889
AS
292 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
293 can properly handle unsigned types.
d528b1ce 294 (make_uid, make_gid): Remove.
58a12889 295
987c9327
AS
296 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
297 types again.
298
522d013a 299 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
300 (system_process_attributes): Likewise.
301
905a9ed3
DN
3022009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
303
304 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
305
306 * eval.c (Fautoload): Purecopy the filename. Simplify.
307
308 * category.c (Fdefine_category): Purecopy docstring.
309
a599b3e8
AS
3102009-10-23 Andreas Schwab <schwab@linux-m68k.org>
311
7b792fc9
AS
312 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
313
a599b3e8
AS
314 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
315
b35ac83e
CY
3162009-10-23 Chong Yidong <cyd@stupidchicken.com>
317
318 * window.c (Fwindow_edges, Fwindow_pixel_edges)
319 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
320 (Bug#4775).
321
e8903e00
SM
3222009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
323
324 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
325 (init_fileio_once):
326 * lisp.h (init_fileio_once): Remove.
327 * emacs.c (main): Don't call init_fileio_once.
328
8f43cbf3
DN
3292009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
330
331 * puresize.h (BASE_PURESIZE): Increase to 1430000.
332
26898943
AS
3332009-10-21 Andreas Schwab <schwab@linux-m68k.org>
334
335 * doprnt.c (doprnt): Fix overflow check.
336
5c646d5a
JD
3372009-10-21 Jan Djärv <jan.h.d@swipnet.se>
338
3132a7ea
JD
339 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
340
5c646d5a
JD
341 * xterm.h (x_wait_for_event): Declare it.
342
343 * xterm.c (pending_event_wait): New variable.
344 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
345 see pending_event_wait.eventtype.
346 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
347 (x_new_font): Call change_frame_size with new rows/columns before we
348 try to resize the frame.
5c646d5a 349 (x_wait_for_event): New function.
d528b1ce
SM
350 (x_set_window_size_1): Don't change gravity unless change_gravity
351 is set.
5c646d5a
JD
352 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
353 don't change frame size, instead wait for the ConfigureNotify.
354 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
355 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
356 (x_initialize): Initialize pending_event_wait.
357
358 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
359 size.
360
361 * widget.c (EmacsFrameSetValues): Add comment.
362 (EmacsFrameSetCharSize): Just call x_set_window_size.
363
364 * gtkutil.c (xg_frame_set_char_size): Flush events and call
365 x_wait_for_event.
d528b1ce 366 (flush_and_sync): Remove again.
5c646d5a
JD
367 (xg_get_font_name): Suggest monospace if no previous font is known.
368
e9c1637d
SM
3692009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
370
371 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 372 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 373
5a72cccb
YM
3742009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
375
376 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
377 processing pending events when event is filtered for input method.
ab04798f 378 (Bug#3681)
5a72cccb 379
2629aa37
JB
3802009-10-20 Juanma Barranquero <lekktu@gmail.com>
381
382 * fns.c: Add #endif accidentally removed in previous change.
383
c3417a74
DN
3842009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
385
386 * fns.c: Remove code for unsupported system: MAC_OS.
387 * image.c: Likewise. Include setjmp.h.
388
9685cef2
JD
3892009-10-19 Jan Djärv <jan.h.d@swipnet.se>
390
391 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
392 pixel -1 (bug #4742).
393
d7306fe6
DN
3942009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
395
019d2c4c
DN
396 * process.c (create_pty): Remove conditionals for no longer
397 supported systems: UNIPLUS and RTU.
398
ee6bacd4
DN
399 * xterm.c:
400 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
401
d7306fe6
DN
402 * alloc.c: Do not define struct catchtag.
403 * eval.c: Move struct catchtag definition ...
404 * lisp.h: ... here.
405
406 * image.c: Move png.h #include earlier to avoid warnings.
407
408 * xterm.c:
409 * xsmfns.c:
410 * xselect.c:
411 * xrdb.c:
412 * xmenu.c:
413 * xftfont.c:
414 * xfont.c:
415 * xfns.c:
416 * xfaces.c:
417 * xdisp.c:
418 * window.c:
419 * widget.c:
420 * w32xfns.c:
421 * w32uniscribe.c:
422 * w32term.c:
423 * w32select.c:
424 * w32reg.c:
425 * w32proc.c:
426 * w32menu.c:
427 * w32inevt.c:
428 * w32heap.c:
429 * w32font.c:
430 * w32fns.c:
431 * w32console.c:
432 * w32.c:
433 * w16select.c:
434 * vm-limit.c:
435 * unexsol.c:
436 * unexec.c:
437 * unexcw.c:
438 * unexaix.c:
439 * undo.c:
440 * tparam.c:
441 * textprop.c:
442 * terminfo.c:
443 * terminal.c:
444 * termcap.c:
445 * term.c:
446 * syntax.c:
447 * sound.c:
448 * sheap.c:
449 * search.c:
450 * scroll.c:
451 * region-cache.c:
452 * regex.c:
453 * ralloc.c:
454 * process.c:
455 * print.c:
b024548b
DN
456 * nsterm.m:
457 * nsselect.m:
458 * nsmenu.m:
459 * nsimage.m:
460 * nsfont.m:
461 * nsfns.m:
d7306fe6
DN
462 * msdos.c:
463 * minibuf.c:
464 * menu.c:
465 * marker.c:
466 * macros.c:
467 * keymap.c:
468 * keyboard.c:
469 * intervals.c:
470 * insdel.c:
471 * indent.c:
472 * gtkutil.c:
473 * ftxfont.c:
474 * ftfont.c:
475 * fringe.c:
476 * frame.c:
477 * fontset.c:
478 * font.c:
479 * fns.c:
480 * floatfns.c:
481 * filelock.c:
482 * fileio.c:
483 * emacs.c:
484 * editfns.c:
485 * dosfns.c:
486 * doprnt.c:
487 * doc.c:
488 * dispnew.c:
489 * dired.c:
490 * dbusbind.c:
491 * data.c:
492 * composite.c:
493 * coding.c:
494 * cmds.c:
495 * cm.c:
496 * chartab.c:
497 * charset.c:
498 * character.c:
499 * ccl.c:
500 * category.c:
501 * casetab.c:
502 * casefiddle.c:
503 * callproc.c:
504 * callint.c:
505 * bytecode.c:
506 * buffer.c:
507 * atimer.c: Include setjmp.h. (Bug#4643)
508
fd5f21e6
SM
5092009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
510
4c0354d7
SM
511 Remove leftover table unibyte_to_multibyte_table.
512 * character.c (unibyte_to_multibyte_table): Remove.
513 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
514 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
515 * character.h (UNIBYTE_TO_CHAR): New macro.
516 (MAKE_CHAR_MULTIBYTE): Use it.
517 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
518 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
519 (message_dolog, set_message_1):
520 * search.c (Freplace_match):
521 * editfns.c (Fcompare_buffer_substrings):
522 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
523 (concat):
524 * insdel.c (copy_text, count_size_as_multibyte):
525 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
526 * term.c (produce_glyphs):
527 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
528 * regex.c (RE_CHAR_TO_MULTIBYTE):
529 * cmds.c (internal_self_insert):
530 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
531
fd5f21e6
SM
532 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
533
4418646e
DN
5342009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
535
536 * puresize.h (BASE_PURESIZE): Increase to 1310000.
537
35f5c1d2
JB
5382009-10-16 Juanma Barranquero <lekktu@gmail.com>
539
540 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
541
a0cd8f6b
AR
5422009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
543
544 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
545 still needed under Tiger.
546
547 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
548
549 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
550 __Apple__.
551
552 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
553
01a8d3fa
KH
5542009-10-15 Kenichi Handa <handa@m17n.org>
555
556 * print.c (print_object): Escape a symbol like "2E10" too.
557
bf6c75c9 5582009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
559
560 Cleanups and changes for 64-bit compile under Snow Leopard.
561 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
562
563 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
564
c5959062 565 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
566 (ns_findfonts, nsfont_list_family): Use long format in printf, and
567 cast argument.
568 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 569 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
570
571 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
572
573 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
574 where appropriate.
575
576 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
577 where appropriate.
6e4780c5
JB
578 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
579 Use stringWithUTF8String.
bf6c75c9
AR
580 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
581
6e4780c5
JB
582 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
583 Add formal protocol mention to inheritance.
bf6c75c9
AR
584 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
585
6e4780c5
JB
586 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
587 Fix printf format.
bf6c75c9
AR
588 (ns_query_color): Use CGFloat where appropriate.
589 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
590 (EmacsScroller-mouseDown:) Use long format in printf, and cast
591 argument.
592
3d87f118
AR
593 * config.in (NS_HAVE_NSINTEGER): Drop.
594
a95c8102
AR
595 * dbusbind.c (dbus-method-return-internal)
596 (dbus-method-error-internal): Use long format in printf, and cast
597 argument.
598
599 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
600 in printf, and cast argument.
601
6873acca 602 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
603 cast argument.
604
9ec6f100
GM
6052009-10-11 Glenn Morris <rgm@gnu.org>
606
607 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
608
5be883cd
JD
6092009-10-08 Jan Djärv <jan.h.d@swipnet.se>
610
611 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
612 menu bar with a small width so it doesn't enlarge the frame.
613
d7a39b51
JB
6142009-10-08 Juanma Barranquero <lekktu@gmail.com>
615
616 * fontset.c (Fset_fontset_font): Fix typos in error messages.
617
0c2b6f8e
GM
6182009-10-06 Glenn Morris <rgm@gnu.org>
619
620 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
621 SOME_MACHINE_LISP (this enters indirectly via DOC).
622
e02131a2
EZ
6232009-10-05 Eli Zaretskii <eliz@gnu.org>
624
625 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
626
b4744254
EZ
6272009-10-04 Eli Zaretskii <eliz@gnu.org>
628
629 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
630 Doc fix.
631
dbf64827
JB
6322009-10-03 Martin Rudalics <rudalics@gmx.at>
633
634 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
635
e9a0aef8
MA
6362009-10-02 Michael Albinus <michael.albinus@gmx.de>
637
d528b1ce 638 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
639 used anymore outside fileio.c.
640
641 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
642
64eb2b56
JB
6432009-10-01 Juanma Barranquero <lekktu@gmail.com>
644
645 * lisp.h (Qdelete_directory_internal):
646 Declare, instead of Qdelete_directory.
647
648 * w32fns.c (Fsystem_move_file_to_trash): Use it.
649
9d28c33e
SM
6502009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
651
652 * eval.c (Fcalled_interactively_p): Add `kind' argument.
653
9d8f3bd9
MA
6542009-10-01 Michael Albinus <michael.albinus@gmx.de>
655
9d28c33e 656 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
657 Fdelete_directory. It is not a command anymore. It has no file
658 name handler.
659
9694740b
SM
6602009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
661
662 * xdisp.c (get_next_display_element): Use an enum in last change.
663
748e162f
KH
6642009-09-28 Kenichi Handa <handa@m17n.org>
665
9694740b 666 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
667 unibyte_display_via_language_environment in handling
668 Vnobreak_char_display.
669
17efd58d
AR
6702009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
671
672 * nsterm.h (ns_app_name): New extern variable.
673
674 * nsterm.m (ns_app_name): New variable.
675 (ns_term_init): Set and use it.
676 (ns_term_shutdown): Use it.
677
678 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
679 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
680
681 * nsfns.m (ns_set_name_iconic, ns_set_name)
682 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
683 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
684
9694740b
SM
685 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
686 Remove double-casting in client_data comparison.
31c2d412 687
3208cb35
YM
6882009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
689
690 * keyboard.c (make_lispy_event): Remember last wheel direction.
691 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
692
b7d552d6
GM
6932009-09-26 Glenn Morris <rgm@gnu.org>
694
695 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
696 internal.elc. Add term/pc-win.elc.
697 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
698 term/x-win.elc.
699 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
700 term/w32-win.elc.
701 (NS_SUPPORT): New.
702 (lisp): Add NS_SUPPORT.
703 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
704
4ff670a8
DR
7052009-09-25 David Reitter <david.reitter@gmail.com>
706
707 * nsmenu.m (EmacsMenu-clear): Recognize application menu
708 on Mac OS X 10.6+ (bug#4513).
709
feabfb6c
JB
7102009-09-24 Juanma Barranquero <lekktu@gmail.com>
711
712 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
713 some parts of Emacs code (like font selection) don't grok them.
714 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 715
de59072a
AS
7162009-09-24 Andreas Schwab <schwab@redhat.com>
717
718 * coding.c (decode_coding_iso_2022): Fix operator precedence.
719
a489517b
JB
7202009-09-24 Juanma Barranquero <lekktu@gmail.com>
721
722 * dired.c (Fdirectory_files): Fix typo in docstring.
723
0592970c
AR
7242009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
725
726 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
727 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
728 (EmacsScroller-setPosition:portion:whole:): Remove -display call
729 under GNUstep.
730 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
731
732 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
733 glyph advancement.
734
48e8a88b
AR
7352009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
736
737 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 738 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
739
740 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
741 deleted (bug #4492).
742
e14f0a78
AR
743 * nsfont.m (Vns_reg_to_script): New lisp variable.
744 (syms_of_nsfont): Declare it.
745 (ns_registry_to_script): New function.
746 (ns_get_req_script): Call it.
747 (ns_findfonts): Don't give up on non-unicode registry.
748
749 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
750
5b650faa
SM
7512009-09-20 Tom Tromey <tromey@redhat.com>
752
753 * eval.c (find_handler_clause): Make stack-trace-on-error work in
754 batch mode (bug#4228).
755
a489517b 7562009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
757
758 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 759 carefully. (Bug #4339)
0bae4e09 760
fcfe06f3
CY
7612009-09-18 Chong Yidong <cyd@stupidchicken.com>
762
d798ba87 763 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 764
31642728
AR
7652009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
766
767 * emacs.c (inhibit_x_resources): Update doc string for NS.
768 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 769 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
770
771 * nsterm.h (ns_no_defaults): Remove.
772
773 * nsterm.m (ns_no_defaults): Remove.
774 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
775 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
776 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
777 don't update the NSWindow itself.
778 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 779 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
780
781 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
782 ns_use_qd_smoothing.
783
784 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
785 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 786 (x-close-connection): Drop PSFlush() under OS X.
a489517b 787 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 788
8686ac71
JB
7892009-09-17 Juanma Barranquero <lekktu@gmail.com>
790
791 * emacs.c (inhibit_x_resources): New variable.
792 (main) [HAVE_NS]: Don't process --quick command line option.
793 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
794
795 * lisp.h (inhibit_x_resources): Declare it extern.
796
797 * w32reg.c (x_get_string_resource):
798 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
799
e227ba05
EZ
8002009-09-17 Eli Zaretskii <eliz@gnu.org>
801
362654a6
JB
802 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
803 Add lisp/term/internal.elc.
e227ba05 804
742d40e8
SM
8052009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
806
807 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
808 (bug#4461).
809
005bd5a2
DN
8102009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
811
812 * puresize.h (BASE_PURESIZE): Increase to 1290000.
813
814 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
815 (OBJECTS_MACHINE): Remove, unused.
816
f9af9719
SM
8172009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
818
819 * frame.c (x_get_resource_string): Remove unused.
820
0307c7d2
JD
8212009-09-15 Jan Djärv <jan.h.d@swipnet.se>
822
823 * xterm.c (x_new_font): Call change_frame_size before calling
824 x_set_window_size, in case frame size won't change.
825
826 * frame.c (x_set_font): Remove dead code.
827
428b13d6
SM
8282009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
829
830 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
831
5766c380
SM
8322009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
833
834 * lread.c (Fload): Don't output a message after loading an obsolete
835 package any more (done in Lisp now).
836
2fd0161b
CY
8372009-09-12 Chong Yidong <cyd@stupidchicken.com>
838
839 * fns.c (syms_of_fns): Doc fix (Bug#4227).
840
bc5e75b6
SM
8412009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
842
843 * keymap.c (Fwhere_is_internal): Use nconc2.
844
c31c985e
AM
8452009-09-11 Alan Mackenzie <acm@muc.de>
846
847 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
848 batch mode.
849
78012bd2
AS
8502009-09-11 Andreas Schwab <schwab@linux-m68k.org>
851
852 * xdisp.c (display_mode_element): Detect cycles.
853
9d889332
SM
8542009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
855
856 * keymap.c (where_is_internal): Don't erroneously return nil right after
857 filling the cache.
858 (where_is_internal_1): Fix up typo.
859
7ab5d780
GM
8602009-09-11 Glenn Morris <rgm@gnu.org>
861
862 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
863 share a common doc-string.
864
5238a749
SM
8652009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
866
66d77eda
SM
867 * keymap.c (get_keymap): Return the actual keymap symbol rather than
868 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
869
5238a749
SM
870 * keymap.c (QCadvertised_binding): New constant.
871 (syms_of_keymap): Initialize it.
872 (Fwhere_is_internal): Try and use bindings from :advertised-binding
873 if applicable.
874
19f48442
SM
8752009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
876
50d4ba39
SM
877 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
878 (parse_menu_item): Streamline since bindings are recomputed all the
879 time anyway. Don't bother checking Vdefine_key_rebound_commands any
880 more and don't support lmenu's menu-alias any more either.
881
a88a5372
SM
882 * keymap.c (where_is_internal_data): Make noindirect a boolean.
883 (where_is_internal): Strip it down to only traverse the keymaps.
884 Move the cache handling from Fwhere_is_internal to here.
885 (Fwhere_is_internal): Move the handling of remapping and the choice of
886 the best binding from where_is_internal to here.
887 Unify the cached/noncached paths, so remapping is also handled
888 correctly when the cache is used, and so the cache can be used to
889 speed up remap-handling when applicable.
890 Give preference to non-remapped bindings.
891 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
892 non-remapped bindings.
893 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
894 command remapping.
895
19f48442
SM
896 * xdisp.c (display_mode_element): Move list length limit from 50 to
897 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
898
599498c3 8992009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
900
901 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
902
f9b7b5ac
SM
9032009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
904
a53af587
JB
905 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
906 (Bug#4334)
907
f9b7b5ac
SM
908 * keymap.c (where_is_internal): Filter out shadowed remappings.
909 Assume that where_is_internal returns unshadowed bindings to simplify
910 the code and get rid of the gotos. Use ASIZE.
911
04f4b72d
JD
9122009-09-04 Jan Djärv <jan.h.d@swipnet.se>
913
4da146f2
JD
914 * xterm.c (x_focus_changed): If we get a focusout and pointer
915 is invisible, make it visible.
916
04f4b72d
JD
917 * xterm.h: Remove condition for declaration of
918 x_*_window_to_frame.
919
7cef7ce3
SM
9202009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
921
922 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
923 initial terminal as well.
924
a54fa5b7
JD
9252009-09-02 Jan Djärv <jan.h.d@swipnet.se>
926
927 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 928 x_menubar_window_to_frame.
a54fa5b7
JD
929
930 * xterm.c: Remove declarations also in xterm.h
931 (XTmouse_position): Do not return valid positions
932 for clicks in the menubar and the toolbar for Gtk+.
933
934 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
935 if the widget for the event has the same top level as a frame,
936 return the frame.
937 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
938 internal windows, bug #4122.
939 (x_non_menubar_window_to_frame): Remove.
940
5a021dd0
GM
9412009-09-02 Glenn Morris <rgm@gnu.org>
942
943 * buffer.c (default-major-mode): Move most of the doc from here...
944 (major-mode): ... to here.
945
548fe2f3
NR
9462009-08-30 Nick Roberts <nickrob@snap.net.nz>
947
948 * process.c (wait_reading_process_output): Keep the descriptor
949 when pty is used by a non-child process, e.g., in I/O buffer of
950 GDB this allows inferior to be restarted.
951
e0840eef
EZ
9522009-08-29 Eli Zaretskii <eliz@gnu.org>
953
954 * xdisp.c (redisplay_internal): Remove redundant test and collapse
955 both branches into one.
956
82e98df4
SM
9572009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
958
959 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
960 (main): Use enable-multibyte-characters rather than
961 default-enable-multibyte-characters. Output a warning message when
962 running a unibyte session.
963
890617cb
YM
9642009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
965
966 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
967 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
968 (copy_data_segment): Also copy __program_vars section.
969 (copy_dyld_info) [LC_DYLD_INFO]: New function.
970 (dump_it) [LC_DYLD_INFO]: Use it.
971
972 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
973
e7adeadc
EZ
9742009-08-28 Eli Zaretskii <eliz@gnu.org>
975
976 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
977 $(SRC)/buildobj.h.
978 (buildobj.h): Renamed from $(SRC)/buildobj.h.
979 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
980 $(SRC)/buildobj.h.
981 (clean): Add buildobj.h.
982
3ed8bbdc
TZ
9832009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
984
985 * print.c (print_object): Set escapeflag to 1 when printing
986 hashtable keys and values.
987
155a6764
SM
9882009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
989
990 * lread.c (read_integer): Use doubles (and potentially return a float
991 number) as we do in string-to-number.
992 (read1): Use strtol to read integers, signal errors on strtol's
993 overflow and use floats if strtol's output is too large for
994 Elisp integers.
995
877610de
EZ
9962009-08-27 Eli Zaretskii <eliz@gnu.org>
997
998 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
999 (make-buildobj-SH): Fix last change.
1000 (SRC): Move to before where it's first used.
1001
ef73e7be
KH
10022009-08-27 Kenichi Handa <handa@m17n.org>
1003
550c8289
KH
1004 * process.c (send_process): Use encode_coding_object instead of
1005 encode_coding_string to perform eol-conversion even if the string
1006 is unibyte.
1007
60afa08d
KH
1008 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1009 character.
1010
ef73e7be 1011 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1012 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1013
7b3a82d7
DN
10142009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1015
5654bf63
DN
1016 * callproc.c (Fcall_process): Remove always true #if.
1017
7b3a82d7
DN
1018 * lisp.h: Replace #if 0 code for checking with text pointing to
1019 the --enable-checking configure flag.
1020
1021 * emacs.c (main): Mention the --enable-profiling configure flag
1022 instead of using CFLAGS.
1023
878bde49
KR
10242009-08-26 Ken Raeburn <raeburn@raeburn.org>
1025
1026 * Makefile.in (buildobj.h): New target.
1027 (doc.o): Depend on it.
1028 (temacs${EXEEXT}): Don't generate buildobj.lst.
1029 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1030 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1031 ($(BLD)/doc.$(O)): Depend on it.
1032 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1033 provided by Eli Zaretskii.)
1034 ($(TEMACS)): Don't generate buildobj.lst.
1035 * doc.c: Include buildobj.h.
1036 (buildobj): New static variable.
1037 (Fsnarf_documentation): Use it, instead of opening and reading
1038 buildobj.lst.
1039
1574224c
MA
10402009-08-25 Michael Albinus <michael.albinus@gmx.de>
1041
1042 * dbusbind.c (Fdbus_call_method)
1043 (Fdbus_call_method_asynchronously): Use English numeric format for
1044 timeout values in doc string.
1045
d9da2f45
KH
10462009-08-25 Kenichi Handa <handa@m17n.org>
1047
ef73e7be
KH
1048 * alloc.c (mark_char_table): New function.
1049 (mark_object): Use mark_char_table for a char-table.
1050
d9da2f45
KH
1051 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1052 (CHAR_TABLE_REF): Use it.
1053
c8edcc01
KR
10542009-08-23 Ken Raeburn <raeburn@raeburn.org>
1055
1056 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1057 before invoking the newly build emacs to check for load-path
1058 shadowing.
1059
7763401b
GM
10602009-08-22 Glenn Morris <rgm@gnu.org>
1061
1062 * Makefile.in (bootstrap_exe): New variable.
1063 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1064 Use ${bootstrap_exe}.
1065
729eadda
EZ
10662009-08-22 Eli Zaretskii <eliz@gnu.org>
1067
1068 * coding.h (encode_coding_string): Don't encode unibyte strings.
1069 (Bug#4047)
1070
eb4c6ace
MA
10712009-08-22 Michael Albinus <michael.albinus@gmx.de>
1072
1073 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1074
1075 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1076 intended as hotfix only.
1077 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1078
36e34d1b
AR
10792009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1080
1081 * nsterm.m (ns_get_color): Update documentation properly for last
1082 change, and clean up loose ends in the code left by it. Fix
1083 longstanding bug with 16-bit hex parsing, and add support for
1084 yet another X11 format (rgb:r/g/b) for compatibility.
1085 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1086 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1087
f983eb8a
SM
10882009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1089
1090 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1091
3f56d3c6
MA
10922009-08-20 Michael Albinus <michael.albinus@gmx.de>
1093
1094 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1095 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1096 (xd_initialize, xd_pending_messages): Check, whether
1097 $DBUS_SESSION_BUS_ADDRESS is set.
1098
fb641d68
YM
10992009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1100
1101 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1102
1103 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1104
cf59a374
GM
11052009-08-20 Glenn Morris <rgm@gnu.org>
1106
1107 * emacs.c (system-type): Doc fix.
1108
1373f3be
SM
11092009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1110
1111 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1112 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1113
058ed861
MA
11142009-08-18 Michael Albinus <michael.albinus@gmx.de>
1115
1373f3be
SM
1116 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1117 New functions.
058ed861
MA
1118 (xd_initialize): Revert change from 2009-08-16.
1119
563a866e 11202009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1121
1122 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1123 font-group vector, return nil.
5fc05db0 1124
e42bdf01
CY
11252009-08-17 Chong Yidong <cyd@stupidchicken.com>
1126
1127 * process.c (status_notify): Don't perform redisplay.
1128 (Fdelete_process, list_processes_1, process_send_signal):
1129 Expliticly perform redisplay.
1130 (wait_reading_process_output): Always check process status, but
1131 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1132
4230ab74
KR
11332009-08-17 Ken Raeburn <raeburn@raeburn.org>
1134
1373f3be 1135 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1136 (XFLOAT_INIT): New macro for storing a float value.
1137 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1138 * fns.c (sxhash): Copy out the value of a float in order to
1139 examine its bytes.
1140 * dbusbind.c (xd_append_arg): Likewise.
1141
4230ab74
KR
1142 * emacs.c (main): Don't call syms_of_data twice.
1143
a0645cdd
MA
11442009-08-16 Michael Albinus <michael.albinus@gmx.de>
1145
1146 * dbusbind.c (xd_initialize): Add connection file descriptor to
1147 input_wait_mask, in order to let select() detect, whether a new
1148 message has been arrived.
ca4f31ea 1149 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1150
485db0ba
MA
11512009-08-15 Michael Albinus <michael.albinus@gmx.de>
1152
1373f3be
SM
1153 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1154 New functions.
485db0ba
MA
1155
1156 * lisp.h (xd_pending_messages): Declare.
1157
1158 * keyboard.c (readable_events): Call xd_pending_messages.
1159
b5b98ff4
CY
11602009-08-15 Chong Yidong <cyd@stupidchicken.com>
1161
1373f3be 1162 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1163
f8354c6e
CY
1164 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1165
b5b98ff4
CY
1166 * buffer.c (set_buffer_internal_1)
1167 (swap_out_buffer_local_variables): Check for unbound local
1168 variables (Bug#4138).
1169
8b9fc636
EZ
11702009-08-14 Eli Zaretskii <eliz@gnu.org>
1171
1172 * process.c (create_pty): Fix last change.
1173
ce959360
CY
11742009-08-13 Chong Yidong <cyd@stupidchicken.com>
1175
1176 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1177 (xbm_load_image): Caller changed.
64b807c9 1178 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1179
c7baf7e9
NR
11802009-08-13 Nick Roberts <nickrob@snap.net.nz>
1181
1182 * process.c (create_pty): New function.
1183 (Fstart_process): Use it to allow Emacs to just associate a pty
1184 with the buffer. See associated change in gdb-mi.el.
1185 (list_processes_1): Deal with no program name.
1186 (start_process_unwind): Use pid == -2 to mean no process.
1187
1ac9108a
SM
11882009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1189
1190 * cmds.c (nonundocount): New global variable.
1191 (keys_of_cmds): Initialize it.
1192 (Fself_insert_command): Use it to combine upto 20 sequential chars
1193 into a single undo entry, just like the Qself_insert_command code in
1194 keyboard.c does.
1195 Call frame_make_pointer_invisible, also like the Qself_insert_command
1196 code in keyboard.c does.
1197 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1198 than its own local replacement for it.
1199
e267324c
KR
12002009-08-10 Ken Raeburn <raeburn@raeburn.org>
1201
1ac9108a 1202 * fns.c (concat): Don't re-set string length to its current value.
77437343 1203
1ac9108a
SM
1204 * coding.h (decode_coding_string, encode_coding_string):
1205 Use SBYTES macro.
f0bed503 1206
1ac9108a 1207 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1208 (doprnt): Merge with doprnt1, discarding lispstrings code.
1209 * lisp.h (doprnt_lisp): Don't declare.
1210
416e006d
JL
12112009-08-07 Juri Linkov <juri@jurta.org>
1212
1213 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1214
6f7d5780
DN
12152009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1216
1217 * print.c (syms_of_print): Undo previous change.
1218
f19a0f5b
TZ
12192009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1220
1221 * lread.c (read1, syms_of_lread): Read hashtables back from the
1222 readable format.
1223
1224 * print.c (print_preprocess, print_object): Print hashtables fully
1225 and readably.
1226 (syms_of_print): Provide 'hashtable-print-readable.
1227
b9173dc2
AR
12282009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1229
1230 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1231 no family set.
1232 (nsfont_open): Handle case when entity has no family.
1233
1586503c
AR
12342009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1235
1236 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1237 element, not a list, for match case.
1238
087048cd
KH
12392009-07-28 Kenichi Handa <handa@m17n.org>
1240
1241 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1242 rigidly.
1243
1244 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1245 font_parse_xlfd. Check font properties more rigidly.
1246
780c2506
DN
12472009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1248
31fd7c5c
JB
1249 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1250 bsd-common.h.
780c2506 1251
a8c0cc18
KH
12522009-07-27 Kenichi Handa <handa@m17n.org>
1253
1254 * xfaces.c (face_with_height): Call font_clear_prop.
1255
4fbe2306
CY
12562009-07-26 Chong Yidong <cyd@stupidchicken.com>
1257
111d9af3
CY
1258 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1259
1260 * xterm.c (x_term_init): Use Qx.
1261
4fbe2306
CY
1262 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1263
1ac9108a 1264 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1265 (ns_get_color): Revert 2009-07-16 change.
1266
beb0b7f9
EZ
12672009-07-25 Eli Zaretskii <eliz@gnu.org>
1268
1269 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1270 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1271
2baf5e76
KR
12722009-07-25 Ken Raeburn <raeburn@raeburn.org>
1273
1ac9108a
SM
1274 * coding.h (decode_coding_string, encode_coding_string):
1275 Use SCHARS macro.
8890e5f5 1276
2baf5e76 1277 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1278 (load_depth): Delete.
2baf5e76
KR
1279 (Qload_in_progress): New variable.
1280 (load_unwind): Don't reference load_depth or load_in_progress.
1281 (Fload): Likewise; specbind Qload_in_progress instead.
1282 (init_lread): Don't initialize load_depth.
1283 (syms_of_lread): Initialize and protect Qload_in_progress.
1284
1395c6f5
AR
12852009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1286
1287 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1288
4e2f36cf
AR
12892009-07-23 Yavor Doganov <yavor@gnu.org>
1290
1291 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1292
5dd9a6f7
AR
12932009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1294
1295 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1296 Bugs 3792, 3720, 2402.
1297 (ns_lookup_indexed_color): Check for bad index.
1298 (ns_index_color): Init unused slot to 0.
1299 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1300 Bug 3714, possibly 3082.
5dd9a6f7 1301
c902b920
JR
13022009-07-22 Jason Rumney <jasonr@gnu.org>
1303
1ac9108a
SM
1304 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1305 Position IME window at cursor (Bug#2570).
c902b920
JR
1306 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1307 (globals_of_w32fns): Dynamically load functions required above.
1308
1309 * w32term.c (w32_draw_window_cursor): Send message to reposition
1310 any IME window.
1311
090101cf
CY
13122009-07-21 Chong Yidong <cyd@stupidchicken.com>
1313
1314 * fileio.c: Revert 2009-07-16 changes.
1315 (Vauto_save_include_big_deletions): New variable.
1316 (Fdo_auto_save): Disable auto-save only if
1317 auto-save-include-big-deletions is nil.
1318
e6583e3d
CY
13192009-07-21 Chong Yidong <cyd@stupidchicken.com>
1320
1321 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1322 the overflowed pixels into account (Bug#3879).
1323
ece435a5
KR
13242009-07-21 Ken Raeburn <raeburn@raeburn.org>
1325
1326 * lread.c (load_depth): New variable.
1327 (Fload, load_unwind, init_lread): Set it to the load recursion
1328 depth; set load_in_progress as a simple boolean based on the
1329 current load_depth. (Bug#3892)
1330
40b2d973
AR
13312009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1332
1333 * nsfont.m (ns_has_attribute): Remove.
1334 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1335
10be7e0d
JL
13362009-07-18 Juri Linkov <juri@jurta.org>
1337
1338 * process.c (Fset_process_query_on_exit_flag): Mention killing
1339 a buffer in docstring.
1340
fa055055
KH
13412009-07-17 Kenichi Handa <handa@m17n.org>
1342
1343 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1344
042f7b69
YM
13452009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1346
1347 * nsfns.m (Fns_set_alpha): Remove function.
1348 (syms_of_nsfns): Don't defsubr it.
1349
1350 * nsterm.m (ns_get_color): Remove incompatible color formats.
1351 (ns_color_to_lisp): Generate #rrggbb color format string.
1352
4be941e3
RS
13532009-07-16 Richard Stallman <rms@gnu.org>
1354
1355 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1356 (Fset_buffer_auto_saved): Handle save_length = -2.
1357
4e6b227d
CY
13582009-07-16 Chong Yidong <cyd@stupidchicken.com>
1359
1360 * xterm.c (Qx_gtk_map_stock): New var.
1361
1362 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1363 of calling intern each time.
1364
a1856973
YM
13652009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1366
1367 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1368 does tiling.
1369
1370 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1371
497e54d8
KH
13722009-07-14 Kenichi Handa <handa@m17n.org>
1373
72d36834
KH
1374 * font.c (font_vconcat_entity_vectors): New function.
1375 (struct font_sort_data): New member font_driver_preference.
1376 (font_compare): Check font_driver_preference.
1377 (font_sort_entities): The format of the first argument changed.
1378 (font_delete_unmatched): Likewise.
1379 (font_list_entities): The return type changed.
1380 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1381 (font_find_for_lface): Adjuste for the above changes.
1382 Don't suppress the checking of C even if the repertory supports it.
1383 (Flist_fonts): Adjust for the above changes.
72d36834 1384
1ac9108a
SM
1385 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1386 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1387 Reject a font who has adstyle property that is different from a
1388 langname derived from registry property.
1ac9108a 1389 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1390
b6046155
EZ
13912009-07-13 Eli Zaretskii <eliz@gnu.org>
1392
1393 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1394 local copy of dirfilename.
1395
fb6b6049
KH
13962009-07-13 Kenichi Handa <handa@m17n.org>
1397
e2402a5e
KH
1398 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1399 against max_char.
1400
fb6b6049
KH
1401 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1402 calling XSYMBOL (sym).
1403
65156807
EZ
14042009-07-11 Eli Zaretskii <eliz@gnu.org>
1405
1ac9108a
SM
1406 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1407 New function.
1408 (directory_files_internal) [WINDOWSNT]:
1409 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1410 the filesystem of the directory is fast or slow.
1411
1412 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1413 file name.
1414 (is_slow_fs): New function.
1415 (stat): Use it to determine whether to issue more system calls to
1416 get accurate file attributes, when w32-get-true-file-attributes is
1417 `local'.
1418
e0ab5fcf
JD
14192009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1420
1421 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1422 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1423 parameter font-parameter as default to the font dialog.
1424
784ceded
KH
14252009-07-10 Kenichi Handa <handa@m17n.org>
1426
1427 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1428
fb8edc0b
EZ
14292009-07-09 Eli Zaretskii <eliz@gnu.org>
1430
1ac9108a 1431 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1432
fb8edc0b
EZ
1433 * w32.c (stat): Treat UNC file names as residing on remote
1434 drives. (Bug#3542)
1435
635c75b1
KH
14362009-07-09 Kenichi Handa <handa@m17n.org>
1437
1438 * fontset.c (fontset_find_font): Fix previous change.
1439
c1d5ce94
MA
14402009-07-08 Michael Albinus <michael.albinus@gmx.de>
1441
1442 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1443 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1444 error flag.
1445
edb61b39
KH
14462009-07-08 Kenichi Handa <handa@m17n.org>
1447
374bf7e4
KH
1448 * fontset.c (fontset_find_font): Fix the logic of handling
1449 charset_matched.
1450 (font_for_char): Delete unused var.
1451 (generate_ascii_font_name): Delete it.
1452
edb61b39
KH
1453 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1454
1455 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1456 (encode_coding_sjis): Fix the code range check.
1457
0f3f018c
CY
14582009-07-07 Chong Yidong <cyd@stupidchicken.com>
1459
1460 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1461 (Fexpand_file_name): Copy string data properly (Bug#3772).
1462
fcaf6f3a
JD
14632009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1464
1465 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1466 first MapNotify.
1467
6809ca75
KH
14682009-07-07 Kenichi Handa <handa@m17n.org>
1469
1470 * character.h (unibyte_has_multibyte_table): Delete extern.
1471 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1472
1473 * charset.c (Fset_charset_priority): Update charset_unibyte.
1474 (syms_of_charset): Initialize charset_unibyte.
1475
1476 * character.c (unibyte_has_multibyte_table): Delete it.
1477 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1478 charset_unibyte.
1479 (multibyte_char_to_unibyte_safe): Likewise.
1480 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1481
1ac9108a 1482 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1483 (x_produce_glyphs): Likewise.
1484
1485 * .gdbinit (xcharset): Fix the treating $arg0.
1486
ad9e2d54
EZ
14872009-07-04 Eli Zaretskii <eliz@gnu.org>
1488
1489 Emulation of `getloadavg' on MS-Windows.
1490 * w32.c: Include float.h
1491 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1492 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1493 (get_native_system_info, get_system_times): New functions.
1494 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1495 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1496 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1497 g_b_init_get_system_times, and num_of_processors.
1498
0a3472c7
JR
14992009-07-03 Jason Rumney <jasonr@gnu.org>
1500
1501 * w32term.c (w32_initialize): Use standard types.
1502
80904120
EZ
15032009-07-03 Eli Zaretskii <eliz@gnu.org>
1504
1505 * dired.c (Ffile_attributes): Decode user and group names by the
1506 locale's encoding. (Bug#3443)
1507
6978862d
DN
15082009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1509
f8d23104
DN
1510 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1511 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1512
1513 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1514
1515 * term.c (init_tty): Remove spurious #ifdef.
1516
6978862d
DN
1517 * m/mips.h: Mention this file is also used for netbsd.
1518 * m/pmax.h: Remove file.
1519
e044e4fc
JD
15202009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1521
1522 * xterm.h (struct x_display_info): Add invisible_cursor.
1523 (struct x_output): Add current_cursor.
1524
1525 * xterm.c (XTtoggle_invisible_pointer): New function.
1526 (x_define_frame_cursor): Don't define cursor if invisible or the
1527 same as before. Set current_cursor.
1528 (x_create_terminal): Set toggle_invisible_pointer_hook.
1529
1530 * xfns.c (make_invisible_cursor): New function.
1531 (x_set_mouse_color): Call make_invisible_cursor.
1532 Set current_cursor.
1533 (x_window): Set current_cursor.
1534
1535 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1536
1537 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1538 inserting a character.
1539 (read_avail_input): Call frame_make_pointer_visible.
1540
1541 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1542 (frame_make_pointer_invisible, frame_make_pointer_visible):
1543 New functions.
e044e4fc
JD
1544 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1545
1546 * frame.h: Declare frame_make_pointer_invisible and
1547 frame_make_pointer_visible.
1548 (struct frame): Add pointer_invisible.
1549
574c8efa
JD
15502009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1551
7b507248
JD
1552 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1553 frame isn't visible.
1554 (xg_frame_resized): If width/height is -1, get size of window
1555 from X server.
1556
1557 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1558 for MapNotify.
1559
835bdaa7 1560 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1561 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1562 (flush_and_sync): Reintroduce.
574c8efa 1563
3f1c6666 15642009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1565
31fd7c5c 1566 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1567
1568 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1569 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1570
1571 * frame.h: Declare Qsticky.
1572
cad9ef74
JD
1573 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1574
1575 * nsfns.m (ns_frame_parm_handlers): Ditto.
1576
1577 * frame.c: Declare Qsticky.
1578 (frame_parms): Add sticky.
1579
1580 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1581
1582 * xterm.h: Declare x_set_sticky.
1583
1584 * xterm.c (x_set_sticky): New function.
1585
69b16610
JD
1586 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1587 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1588 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1589
1590 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1591
1592 * frame.c: Qmaximized is new.
1593 (x_set_frame_parameters): Do not handle fullscreen specially.
1594 Only set width and height if explicitly set.
1595 (x_set_fullscreen): Handle Qmaximized.
1596 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1597 (syms_of_frame): Initialize Qmaximized.
1598
1ac9108a
SM
1599 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1600 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1601
1602 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1603 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1604 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1605 set gravity to NorthWestGravity when USE_GTK.
1606 (set_wm_state): New function.
31fd7c5c 1607 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1608 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1609 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1610 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1611 to x_real_positions and x_fullscreen_adjust.
1612
1613 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1614 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1615 flush_and_sync.
1616 (xg_height_changed): New function.
1617 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1618 and gtk_window_set_policy. Set frame gravity after parsing the
1619 geometry string.
3f1c6666
JD
1620 (xg_update_frame_menubar, free_frame_menubar)
1621 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1622 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1623 Remove calls to xg_frame_set_char_size.
1624
fd503d99
KH
16252009-07-01 Kenichi Handa <handa@m17n.org>
1626
1627 * keyboard.c (decode_keyboard_code): New function.
1628 (tty_read_avail_input): Decode the input bytes if necessary.
1629
1ac9108a
SM
1630 * coding.c (setup_coding_system):
1631 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1632 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1633 use Qno_conversion.
1634
24ed93fb
YM
16352009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1636
1637 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1638
99061dfc
CY
16392009-06-30 Chong Yidong <cyd@stupidchicken.com>
1640
1ac9108a 1641 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1642
ff90fbde
JR
16432009-06-30 Jason Rumney <jasonr@gnu.org>
1644
1645 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1646 is already loaded.
1647 Set user model ID if supported (bug#1849).
1648
5f445726
JM
16492009-06-29 Jim Meyering <meyering@redhat.com>
1650
1651 Remove useless if-before-xfree test.
1652 * nsfont.m (nsfont_close): Remove useless test.
1653 * term.c (delete_tty): Likewise.
1654 * w32.c (system_process_attributes): Likewise.
1655 * w32font.c (w32font_close): Likewise.
1656 * xfaces.c (x_free_gc): Likewise.
1657 * xselect.c (buffer): Likewise.
1658
b9607587
AS
16592009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1660
1661 * process.c (send_process): Keep decoded string in a local
1662 variable and protect it from GC. (Bug#3521)
1663
89ba96f4
EZ
16642009-06-28 Eli Zaretskii <eliz@gnu.org>
1665
1666 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1667 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1668
098a1589
CY
16692009-06-28 Chong Yidong <cyd@stupidchicken.com>
1670
485422be
CY
1671 * xdisp.c (start_display, handle_face_prop)
1672 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1673 (redisplay_window, try_window_id, produce_image_glyph):
1674 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1675
098a1589
CY
1676 * xterm.c (x_update_window_begin, x_new_focus_frame)
1677 (x_scroll_bar_handle_click, handle_one_xevent)
1678 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1679 (x_make_frame_visible, x_make_frame_invisible)
1680 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1681 code chunks that are now obsolete.
1682
78c38319
MA
16832009-06-28 Michael Albinus <michael.albinus@gmx.de>
1684
1685 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1686 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1687 for hours, when optimzation is enabled.
1688 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1689 (xd_read_message): Make them static.
1690
4189ed40
CY
16912009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1692
1693 * term.c (turn_on_face): Allow simultaneously bold and dim
1694 terminal faces (Bug#3530).
1695
cd9b5e16
CY
16962009-06-27 Chong Yidong <cyd@stupidchicken.com>
1697
4e23bedb
CY
1698 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1699
cd9b5e16
CY
1700 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1701 truncation glyphs (Bug#3686).
1702
07cc3c35
GM
17032009-06-27 Glenn Morris <rgm@gnu.org>
1704
1705 * m/pmax.h: Restore file, with only netbsd portions.
1706
31fd7c5c 17072009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1708
cd9b5e16 1709 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1710
42d4a64f
KH
17112009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1712
1713 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1714 the arg FORCE_SYMBOL.
1715
930fe55b 17162009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1717
1718 * fontset.c (fontset_find_font): When a usable rfont_def is found
1719 in a fallback font-group, make it the first element of the group.
1720
57ebc3fd
CY
17212009-06-24 Chong Yidong <cyd@stupidchicken.com>
1722
1723 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1724
f084f942
KH
17252009-06-24 Kenichi Handa <handa@m17n.org>
1726
1727 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1728 set for C.
1729 (fontset_font): Record the availability of a font for C both in
1730 the realized fontsets of the current one and the default one.
1731
2f686c87
DN
17322009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1733
1734 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1735 conditional, it is always defined on AIX.
1736
666e158e
MB
17372009-06-23 Miles Bader <miles@gnu.org>
1738
1739 * window.c (Vrecenter_redisplay): New variable.
1740 (syms_of_window): Initialize it.
1741 (Qtty): New extern declaration.
1742 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1743
c6da7cd2
JM
17442009-06-23 Jim Meyering <meyering@redhat.com>
1745
1ac9108a
SM
1746 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1747 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 1748 pointer dereferences are guaranteed to be valid.
c6da7cd2 1749
678dca3d
KH
17502009-06-23 Kenichi Handa <handa@m17n.org>
1751
74d75424
KH
1752 * emacs.c (main): Call init_font ().
1753
1754 * font.h (Vfont_log): Extern it.
1755 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1756
1757 * font.c (font_sort_entities, font_list_entities)
1758 (font_matching_entity, font_open_entity)
1759 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1760 (Vfont_log): Delete static.
1761 (font_log_env_checked): Delete this variable.
1762 (font_add_log): Don't check font_log_env_checked.
1763 (font_deferred_log): Check Vfont_log.
1764 (init_font): New function.
1765
678dca3d
KH
1766 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1767
1768 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1769
1770 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1771
1772 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1773
1774 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1775 (face_for_char): Don't call font_deferred_log here.
1776 (font_for_char): Likewise.
1777
8a668709
CY
17782009-06-22 Chong Yidong <cyd@stupidchicken.com>
1779
9a01ee33
CY
1780 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1781 rather than its background_width for drawing the overline and
1782 underline (Bug#489).
1783
1784 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1785 rather than its background_width for drawing the overline and
1786 underline (Bug#489).
ec7c9926
CY
1787 (xg_default_icon_file): New variable.
1788 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1789 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1790
8a668709
CY
1791 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1792 (load_overlay_strings): Remove externs.
1793 (fast_find_position): Function deleted.
1794 (mouse_face_from_buffer_pos): New function, based on
1795 fast_find_position. Correctly handle before-strings,
1796 display-strings, and after-strings (Bug#1220).
1797 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1798
4d4c02d8
CY
17992009-06-21 Chong Yidong <cyd@stupidchicken.com>
1800
1ac9108a 1801 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
1802 (move_it_in_display_line_to, move_it_in_display_line_to)
1803 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1804
70243478
CY
18052009-06-21 Chong Yidong <cyd@stupidchicken.com>
1806
1807 * Branch for 23.1.
1808
13087e59
JR
18092009-06-21 Jason Rumney <jasonr@gnu.org>
1810
1811 * w32term.c (keyboard_codepage): New static variable.
1812 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1813 (w32_read_socket) [WM_CHAR]: Use it to decode character
1814 input (bug#3237).
1815 (w32_initialize): Initialize it.
1816 (codepage_for_locale): New function.
1817
4735b74e
KR
18182009-06-20 Ken Raeburn <raeburn@raeburn.org>
1819
1820 * process.c (status_message): Pass Faset index argument as a lisp
1821 object, so as to work with USE_LISP_UNION_TYPE.
1822
0e727afa
YM
18232009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1824
1825 * coding.c (Ffind_coding_systems_region_internal):
1826 Cache checked characters.
1827
cf299835
KH
18282009-06-18 Kenichi Handa <handa@m17n.org>
1829
1ac9108a 1830 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 1831
90f20d94
AS
18322009-06-18 Andreas Schwab <aschwab@redhat.com>
1833
1834 * xdisp.c (redisplay_internal): Check that the frame is still
1835 live after redisplay of its windows.
1836 (redisplay_windows): Check that the window is still live.
1837
7f1faf1c
KH
18382009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1839
1840 * coding.c (detect_coding_utf_16): Fix previous change.
1841
cc13543e
KH
18422009-06-16 Kenichi Handa <handa@m17n.org>
1843
1844 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1845 UTF-16 by checking the dispersion of Eth and Oth bytes.
1846
977b85f4
AS
18472009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1848
1849 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1850
66bd43d1
KH
18512009-06-15 Kenichi Handa <handa@m17n.org>
1852
1853 * process.c (status_message): Fix previous change. Be sure to
1854 decode a localized string.
1855
cb5ca9c5
YM
18562009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1857
1858 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1859 add comment explaining why.
1860
ec7709ba 18612009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 1862
ec7709ba 1863 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 1864
4b7f335c
AR
18652009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1866
1867 * nsfont.m (ns_attribute_value): Remove.
1868 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1869 (ns_has_attribute): Shrink the normal range.
1870 (ns_findfonts): Don't worry about requested spec in determining
1871 need for synthItal.
e41820ee 1872 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 1873
73b26103
SZ
18742009-06-14 Seiji Zenitani <zenitani@mac.com>
1875
1876 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1877
5753e4da
KH
18782009-06-11 Kenichi Handa <handa@m17n.org>
1879
1880 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1881 overhang for the static composition case.
1882
3561b671
KH
18832009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1884
5753e4da
KH
1885 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1886 overhang for the automatic composition case.
1887
3561b671
KH
1888 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1889 composition case.
1890
852bbd41
CY
18912009-06-10 Chong Yidong <cyd@stupidchicken.com>
1892
1893 * xdisp.c (get_next_display_element): When handling wrap-prefix
1894 and line-prefix, treat \n as a control character (bug#3502).
1895
9903d1e6
KH
18962009-06-10 Kenichi Handa <handa@m17n.org>
1897
1898 * font.c (font_parse_family_registry): Fix for one-char foundry.
1899 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1900
0bcbaaaa
CY
19012009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1902
1903 * process.c (status_message): Fix handling of multibyte signal
1904 string (Bug#3499).
1905
40aa3f13
JM
19062009-06-09 Jim Meyering <meyering@redhat.com>
1907
1f80c7e2
CY
1908 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1909 color name is missing.
40aa3f13 1910
72d51285
KH
19112009-06-09 Kenichi Handa <handa@m17n.org>
1912
1913 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1914 FROM-CODE and TO-CODE are codepoints of CHARSET.
1915
c1d04d84
AR
19162009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1917
1918 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1919
19202009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1921
1922 Changes to support :script/:lang/:otf in NS font driver.
1923 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1924 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1925 indicate not part of font driver interface, and change callers.
1926 (ns_get_family): Remove pointless null check.
1927 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1928 ns_spec_to_descriptor, ns_descriptor_to_entity.
1929 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1930 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1931 (ns_spec_to_descriptor, ns_descriptor_to_entity)
1932 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1933 (ns_get_req_script, ns_accumulate_script_ranges)
1934 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1935 New functions.
1936 (nsfont_list, nsfont_match): Use ns_findfonts.
1937 (nsfont_open): Use font descriptor instead of traits.
1938 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1939 (dump_glyphstring): Rename to ns_dump_glyphstring.
1940
c7eb9816
AR
1941 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1942
c1d04d84
AR
1943 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1944
1945 * fontset.c (fontset_from_font): Remove NS-specific code.
1946
ec7709ba 19472009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
1948
1949 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
1950 nonactive windows.
1951
31fd7c5c 19522009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 1953
1ac9108a 1954 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 1955
68852c13 19562009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
1957
1958 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
1959
6756cd1d
CY
19602009-06-07 Chong Yidong <cyd@stupidchicken.com>
1961
1962 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
1963 account for the overflowing of newlines into the last glyph on the
1964 display line (Bug#3482).
1965
28bf482a
DR
19662009-06-05 David Reitter <david.reitter@gmail.com>
1967
ec7709ba
JB
1968 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
1969 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
1970 Fns_selection_exists_p, Fns_selection_owner_p.
1971
fdb55376
JR
19722009-06-03 Jason Rumney <jasonr@gnu.org>
1973
1974 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
1975 available. (Bug#3379)
1976
05129fbe
KH
19772009-05-29 Kenichi Handa <handa@m17n.org>
1978
1ac9108a
SM
1979 * coding.c (get_translation_table):
1980 Check Venable_character_translation.
05129fbe 1981
ec7709ba 19822009-05-26 David Reitter <david.reitter@gmail.com>
15891144 1983
ec7709ba
JB
1984 * nsterm.m (ns_raise_frame): Only raise frame if visible.
1985 (x_make_frame_visible): Move frame to front rather than calling
15891144 1986 ns_raise_frame().
ec7709ba 1987 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 1988 isn't key window.
ec7709ba 1989 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
1990 drawRect may be called by NSView even if the frame is hidden.
1991
ec7709ba
JB
1992 * nsfns.m (Fx_create_frame): Follow other ports in
1993 determining visibility; default to t. Ensure async_visible is set.
15891144 1994
21f73755
EZ
19952009-05-23 Eli Zaretskii <eliz@gnu.org>
1996
1997 * dired.c (Ffile_attributes): Doc fix.
1998
34001e41
CY
19992009-05-22 Chong Yidong <cyd@stupidchicken.com>
2000
2001 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2002
46306a17
SM
20032009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2004
2005 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2006 and xfont_scratch_props.
2007 (syms_of_xfont): Do it here instead.
2008 (xfont_find_ccl_program): Delete, unused.
2009 (xfont_open): Delete unused var `i'.
2010
ef6e0694
KH
20112009-05-21 Kenichi Handa <handa@m17n.org>
2012
2013 * fontset.c (Qlatin): Don't make it static.
2014
46306a17
SM
2015 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2016 New functions.
ef6e0694
KH
2017 (xfont_scripts_cache, xfont_scratch_props): New variables.
2018 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2019 (xfont_list_pattern): Argument changed. Callers changed.
2020 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2021 (xfont_list): Don't reject a font spec with :script property.
2022 (xfont_has_char): Fix setting of encoding.
2023 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2024 xfont_scratch_props.
2025
20262009-05-19 Kenichi Handa <handa@m17n.org>
2027
46306a17 2028 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2029 Callers changed.
2030
20312009-05-18 Kenichi Handa <handa@m17n.org>
2032
2033 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2034
ac71ced7
SM
20352009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2036
2037 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2038 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2039
1c6d1051
YM
20402009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2041
2042 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2043 (x_delete_terminal): Dissociate resource database from display and
2044 then call XrmDestroyDatabase before closing display.
2045
9b9b779c
AR
20462009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2047
2048 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2049 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2050 whether selected frame is viable before raising it (based on patch
2051 by David Reitter), and improve commentary.
2052 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2053
cccd42d5
KH
20542009-05-15 Kenichi Handa <handa@m17n.org>
2055
2056 * font.c (Ffont_spec): Check arguments.
2057
337fbd17
CY
20582009-05-14 Chong Yidong <cyd@stupidchicken.com>
2059
2060 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2061 weight when testing attributes (Bug#3282).
2062
47a6002f
JD
20632009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2064
2065 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2066 what we expect to get in the next ConfigureNotify event.
2067
9cb363db
YM
2068 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2069 before Xft one (Bug#1696).
2070
b9126609
CY
20712009-05-07 David Reitter <david.reitter@gmail.com>
2072
2073 * nsfns.m (Fx_display_planes): Compute bitplanes using
2074 NSBitsPerPixelFromDepth (Bug#3207).
2075
27a69fd9
CY
20762009-05-10 Chong Yidong <cyd@stupidchicken.com>
2077
2078 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2079
00f37552
TTN
20802009-05-10 Ulrich Mueller <ulm@gentoo.org>
2081
2082 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2083
2d82a920
DR
20842009-05-07 David Reitter <david.reitter@gmail.com>
2085
ec7709ba
JB
2086 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2087 Respect mouse face background.
2d82a920 2088
46b0d52d
DR
20892009-05-07 David Reitter <david.reitter@gmail.com>
2090
ec7709ba
JB
2091 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2092 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2093 in ns_update_begin and ns_update_end.
2094
ce1b23bb
SM
20952009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2096
5996e1b7
SM
2097 * nsfns.m (ns_get_screen): Rewrite.
2098 Don't presume selected-frame is of type `ns'.
2099
ba98e3a0
SM
2100 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2101 all drivers.
2102
ce1b23bb
SM
2103 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2104
bcda200f
YM
21052009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2106
2107 * keyboard.h (add_user_signal): Fix typo in extern.
2108
2109 * lisp.h (add_user_signal): Remove extern.
2110
2111 * unexelf.c (unexec): Consider a section to precede the .bss section
2112 if its addresses overlap that of .bss.
2113 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2114 instead of dumping process.
2115
864660a2
SM
21162009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2117
2118 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2119
50da4e56
SM
21202009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2121
2122 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2123
51520a1a
DN
21242009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2125
2126 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2127 any statements.
2128
409ea3a1
AS
21292009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2130
59c4c60f
AS
2131 * process.c (read_process_output): Make sure the current buffer is
2132 always restored.
2133
409ea3a1
AS
2134 * coding.c (record_conversion_result): Don't modify
2135 Vlast_code_conversion_error for successful result.
2136 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2137
56f00ed2
KH
21382009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2139
2140 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2141 (load_charset_map): Remove unnecessary code.
56f00ed2 2142
4491c9d2
DR
21432009-04-30 David Reitter <david.reitter@gmail.com>
2144
35f5b128 2145 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2146 through f24.
2147
6970f632
CY
21482009-04-30 Chong Yidong <cyd@stupidchicken.com>
2149
2150 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2151
2152 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2153 face_at_buffer_position.
2154 (face_before_or_after_it_pos, get_next_display_element)
2155 (note_mouse_highlight): Update face_at_buffer_position call.
2156
2157 * term.c (term_mouse_highlight):
2158 * msdos.c (IT_note_mouse_highlight):
2159 * fontset.c (Finternal_char_font):
35f5b128 2160 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2161
2162 * dispextern.h (face_at_buffer_position): Update prototype.
2163
0c616f63
KH
21642009-04-30 Kenichi Handa <handa@m17n.org>
2165
35f5b128 2166 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2167
ad3aaf33
AS
21682009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2169
2170 * callproc.c (Fcall_process): Fix GC protection. Make sure
2171 current buffer is always restored.
2172
c3c963a0
YM
21732009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2174
2175 * atimer.c (init_atimer): Also clear stopped_atimers.
2176
2177 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2178
7e3386cb
YM
2179 * process.c (create_process): Clean up merger residues of
2180 2008-07-17 change.
2181
91f68422
CY
21822009-04-29 Ulrich Mueller <ulm@gentoo.org>
2183
2184 * lread.c (Vread_circle): New variable.
2185 (read1): Disable recursive read if Vread_circle is nil.
2186
24b34550
KH
21872009-04-29 Kenichi Handa <handa@m17n.org>
2188
2189 * fontset.h (set_default_ascii_font): Delete extern.
2190
2191 * fontset.c (set_default_ascii_font): Delete this unused function.
2192
2193 * frame.c (x_set_font): When ARG is a font-object, check if the
2194 font-object matches with the ASCII font-spec of the frame's
9c358bda 2195 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2196
77bf07e1
AS
21972009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2198
2199 * fns.c (Flocale_info): Protect vector from GC during decoding.
2200
2201 * process.c (Fstart_process): Protect argv strings from GC during
2202 encoding.
2203
2c55aacf
AS
22042009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2205
2206 * sysdep.c: Include <ctype.h>.
2207
b892d3c9
DR
22082009-04-27 David Reitter <david.reitter@gmail.com>
2209
35f5b128 2210 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2211 Remove commented-out code.
2212
9d0644c4
JB
22132009-04-26 Johan Bockgård <bojohan@gnu.org>
2214
2215 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2216
b7053016
JR
22172009-04-25 Jason Rumney <jasonr@gnu.org>
2218
2219 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2220
4e8231f3
YM
22212009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2222
2223 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2224 Swap bytes in short integer if fringe bitmap width > 8.
2225
493dcf2c
KH
22262009-04-23 Kenichi Handa <handa@m17n.org>
2227
2228 * xfaces.c (Fx_list_fonts): If a font size is specified in
2229 PATTERN, set it in returned scalable fonts.
2230
401e9e57
CY
22312009-04-22 Chong Yidong <cyd@stupidchicken.com>
2232
708e05dc
CY
2233 * keyboard.c (Fset_input_meta_mode): Doc fix.
2234
2235 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2236
1ac9108a 2237 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2238
2239 * coding.c (Fterminal_coding_system): Doc fix.
2240
2241 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2242 (Fx_display_pixel_height, Fx_display_planes)
2243 (Fx_display_color_cells, Fx_server_max_request_size)
2244 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2245 (Fx_display_mm_height, Fx_display_mm_width)
2246 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2247 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2248 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2249 (check_x_display_info): Handle terminal objects instead of
2250 terminal ids.
2251
401e9e57
CY
2252 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2253 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2254 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2255 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2256
df80c7f0
KH
22572009-04-21 Kenichi Handa <handa@m17n.org>
2258
5a8f12af 2259 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2260 (font_score): Check AVGWIDTH too.
908567ef 2261
df80c7f0
KH
2262 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2263 worst case.
1ac9108a
SM
2264 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2265 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2266
705af33f
JR
22672009-04-19 Jason Rumney <jasonr@gnu.org>
2268
2269 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2270 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2271
2272 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2273 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2274 get_phys_cursor_geometry.
2275
b71ac3dd 2276 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2277 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2278 using get_phys_cursor_geometry.
2279
2280 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2281 correctly calculated.
2282
dc2933eb
JD
22832009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2284
1ac9108a
SM
2285 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2286 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2287 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2288 is deprecated.
2289
973e7849
AS
22902009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2291
2292 * font.c (font_put_frame_data): Use xfree instead of free.
2293
314d66f4
JB
22942009-04-17 Juanma Barranquero <lekktu@gmail.com>
2295
2296 * w32font.c (Qja, Qko): Remove declarations.
2297 (syms_of_w32font): Don't DEFSYM them.
2298
cf702558
CY
22992009-04-17 Chong Yidong <cyd@stupidchicken.com>
2300
2301 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2302
2303 * font.h (Qja, Qko): Extern them.
2304
2305 * ftfont.c (Qja, Qko): Remove declarations.
2306
2307 * xfont.c (Qja, Qko): Remove declarations.
2308
b50504f5
KH
23092009-04-17 Kenichi Handa <handa@m17n.org>
2310
bde25748
KH
2311 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2312 string from a vector to handle Latin-1 characters correctly.
2313
b50504f5
KH
2314 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2315 entity even if the cache hits.
2316
f4646fff
AS
23172009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2318
2319 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2320 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2321
e7deaab0
AS
2322 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2323 * lisp.h: Adjust prototypes.
2324
0a0e7d49
CY
23252009-04-16 Chong Yidong <cyd@stupidchicken.com>
2326
2327 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2328 change (Bug#3003).
2329
3c908a57
KH
23302009-04-16 Kenichi Handa <handa@m17n.org>
2331
1ac9108a 2332 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2333
2334 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2335 adstyle.
2336
2337 * ftfont.c (Qja, Qko): Don't make them static.
2338 (enum ftfont_cache_for): New enum.
2339 (fc_charset_table): Undo the previous change.
2340 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2341 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2342 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2343 non-scarable font, try to get AVERAGE_WIDTH.
2344 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2345 Change ft_face_cache from a list of a hash-table. Don't check
2346 `ja' and `ko' adstyle here.
2347 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2348 FTFONT_CACHE_FOR_CHARET.
2349 (ftfont_get_charset): Undo the previous change.
1ac9108a 2350 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2351 (ftfont_close): Likewise.
2352 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2353
2354 * font.c (font_sort_entites): Change the meaning of the arg
2355 BEST-ONLY. Don't optimize for VEC of lenght 1.
2356 (font_select_entity): Just return the value of font_sort_entites.
2357
2358 * xfaces.c (merge_face_vectors): Reflect font properties in
2359 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2360 font_clear_prop if a face attribute doesn't change.
2361
3c908a57
KH
2362 * charset.h (charset_ksc5601): Extern it.
2363
2364 * charset.c (charset_ksc5601): New variable.
2365 (Fdefine_charset_internal): Set charset_ksc5601.
2366 (init_charset_once): Initialize charset_ksc5601 to -1.
2367
d65859c3
DN
23682009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2369
2370 * fileio.c (history_delete_duplicates): Remove unused declaration.
2371
2372 * callint.c (history_delete_duplicates): New declaration.
2373 (Fcall_interactively): Remove command history duplicates when
2374 history_delete_duplicates is true.
2375
3ba010e5
EZ
23762009-04-14 Eli Zaretskii <eliz@gnu.org>
2377
2378 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2379
06f19b91
KH
23802009-04-14 Kenichi Handa <handa@m17n.org>
2381
2382 * font.c (Ffont_info): Fix docstring. Fix the second element of
2383 the returned value (bug#2949).
2384
2cce8bfc
CY
23852009-04-14 Chong Yidong <cyd@stupidchicken.com>
2386
2387 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2388
d156542d
KH
23892009-04-14 Kenichi Handa <handa@m17n.org>
2390
2391 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2392 encoding charset is ascii_compatible.
2393
2394 * charset.c (Fdefine_charset_internal): Make charset
2395 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2396 code_offset is 0, and covers all ASCII characters.
2397
86fa089e
SM
23982009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2399
2400 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2401 (ns_string_to_pasteboard_internal):
2402 * nsmenu.m (process_dialog):
2403 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2404 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2405 * lisp.h (Fx_load_color_file): Declare.
2406
a8a3728b
KH
24072009-04-13 Kenichi Handa <handa@m17n.org>
2408
1ac9108a 2409 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2410 (font_select_entity): Suppress the code to optimize for the same
2411 kind of fonts.
2412 (font_load_for_lface): Get a font that supports at least ASCII
2413 characters.
2414
2415 * ftfont.c (Qja, Qko): New variables.
2416 (fc_charset_table): Delete uniquifier data for iso8859-1.
2417 (ftfont_get_latin1_charset): New function.
2418 (get_adstyle_property): New function.
2419 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2420 bitmap fonts.
2421 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2422 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2423 `ko' or `ja'.
2424 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2425 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2426 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2427 property.
2428 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2429 (syms_of_ftfont): DEFSYM Qja and Qko.
2430
483670b5
KH
24312009-04-09 Kenichi Handa <handa@m17n.org>
2432
12b55765
KH
2433 * charset.c (map_charset_chars): For a charset of `superset'
2434 method, fix calculation of code range.
2435
483670b5
KH
2436 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2437 from the list of extra properties.
2438 (font_clear_prop): Be sure to delete `:name' font property.
2439
57d3b93b
KH
24402009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2441
b4b2c2ca
YM
2442 * dispnew.c (redraw_overlapping_rows): Fix detection of
2443 overlapping for topmost and bottommost rows.
2444
1ac9108a 2445 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2446
472c3609
JR
24472009-04-06 Jason Rumney <jasonr@gnu.org>
2448
2449 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2450
ab193662
KH
24512009-04-06 Kenichi Handa <handa@m17n.org>
2452
2453 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2454
2455 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2456
0c26f026
KH
24572009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2458
2459 * ftfont.c (ftfont_open): Fix checking of the return value of
2460 FT_Load_Char. Fix setting font->underline_thickness.
2461
e173bbce
CY
24622009-04-04 Chong Yidong <cyd@stupidchicken.com>
2463
2464 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2465 (Fterminal_parameters, Fterminal_parameter)
2466 (Fset_terminal_parameter): In doc string, refer to terminal
2467 objects rather than terminal ids.
2468
693a2698
EZ
24692009-04-04 Eli Zaretskii <eliz@gnu.org>
2470
2471 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2472 ret_lim_data. (Bug#2867)
2473
d5221487
CY
24742009-04-03 Chong Yidong <cyd@stupidchicken.com>
2475
2476 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2477 so they don't get wider than the window, matching 2006-01-23
2478 change to the partner function in xdisp.c (Bug#2800).
2479
223509a3
KH
24802009-04-03 Kenichi Handa <handa@m17n.org>
2481
2482 * print.c (print_object): Make each lowest sub_char_table start a
2483 new line (Bug#2866).
2484
74fcd0b1
KH
24852009-04-02 Kenichi Handa <handa@m17n.org>
2486
2487 * fontset.c (fontset_font): Record no-font when a fontset
2488 explicitly tells not to try another font-specs.
2489
c542407d
SM
24902009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2491
2492 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2493
e3869731
KH
24942009-03-30 Kenichi Handa <handa@m17n.org>
2495
d8d2f142
KH
2496 * fontset.c (fontset_from_font): Specify only registry in a
2497 font-spec for all characters supported by that registry.
2498
e3869731
KH
2499 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2500 even if HAVE_M17N_FLT is not defined.
2501
5da5f805
CY
25022009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2503
2504 * ftfont.c: Conditionalize prototyping and use of
2505 ftfont_variation_glyphs.
2506
ab226c50
SM
25072009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2508
9628fed7
SM
2509 * frame.c (delete_frame): Work around compiler bug.
2510
2511 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2512 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2513 Some more EMACS_INT.
2514 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2515
2516 * xdisp.c (dump_glyph): Fix typo.
2517
ae19ba7c
SM
2518 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2519 (adjust_markers_gap_motion, adjust_markers_for_delete)
2520 (adjust_markers_for_insert, adjust_point)
2521 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2522 (make_gap, copy_text, count_size_as_multibyte, insert)
2523 (insert_and_inherit, insert_before_markers)
2524 (insert_before_markers_and_inherit, insert_1)
2525 (count_combining_before, count_combining_after, insert_1_both)
2526 (insert_from_string, insert_from_string_before_markers)
2527 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2528 (insert_from_buffer_1, adjust_after_replace)
2529 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2530 (replace_range_2, del_range, del_range_1, del_range_byte)
2531 (del_range_both, del_range_2, modify_region)
2532 (prepare_to_modify_buffer, signal_before_change)
2533 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2534 for buffer positions and sizes.
2535 * lisp.h: Adjust prototypes accordingly.
2536
2537 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2538 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2539 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2540
ab226c50
SM
2541 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2542
46dfb8fb
JD
25432009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2544
2545 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2546 lines and columns so we keep the same pixel height and width.
2547
2548 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2549 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2550 (x_handle_net_wm_state): New function to update frame parameter
2551 fullscreen.
2552 (x_term_init): Initialize atoms for _NET_WM_STATE.
2553
2554 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2555
d347e494
SM
25562009-03-27 Kevin Ryde <user42@zip.com.au>
2557
2558 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2559 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2560 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2561 (Fgpm_mouse_stop): Pass that new parameter.
2562 * termhooks.h (close_gpm): Adjust prototype.
2563
84db11d6
SM
25642009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2565
c95a5008
SM
2566 * lisp.h (Fx_focus_frame): Declare.
2567
84db11d6
SM
2568 * callint.c (Fcall_interactively): For '^' just delegate the work to
2569 handle-shift-selection.
2570 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2571
0a1958d6
CY
25722009-03-24 Chong Yidong <cyd@stupidchicken.com>
2573
0bfdff23
CY
2574 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2575
0a1958d6
CY
2576 * data.c (Qinteractive_form): New variable.
2577 (Finteractive_form): Use it.
2578
2579 * eval.c (Fcommandp): Use Qinteractive_form.
2580
58aec0d6
JR
25812009-03-24 Jason Rumney <jasonr@gnu.org>
2582
2583 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2584 Calculate total size precisely. Decode environment variables
2585 before substituting. (Bug#38)
2586
553dd618
KH
25872009-03-24 Kenichi Handa <handa@m17n.org>
2588
2589 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2590 encoding (Bug#2722).
553dd618 2591
c39ea606
JD
25922009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2593
2594 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2595 that gdpy is set.
2596
bc9b2b5e
AM
25972009-03-22 Alan Mackenzie <acm@muc.de>
2598
2599 * callint.c (Finteractive): Clarify the doc string - even
2600 promptless elements need \n separators.
2601
9f995a76
JR
26022009-03-22 Jason Rumney <jasonr@gnu.org>
2603
2604 * w32term.c (syms_of_w32term): Doc fix for
2605 x-use-underline-position-properties.
2606
22749e9a
EZ
26072009-03-21 Eli Zaretskii <eliz@gnu.org>
2608
2609 * w32.c (getpwuid): Change argument type to unsigned.
2610 (struct w32_id): Change type of `rid' member to unsigned.
2611 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2612 argument ID to unsigned. All callers changed.
2613 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2614
e00553bf
EZ
26152009-03-20 Eli Zaretskii <eliz@gnu.org>
2616
2617 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2618 negative, produce a float value.
2619
2620 * dired.c (make_uid, make_gid): New functions.
2621 (Ffile_attributes): Use them to avoid negative UID and GID.
2622
f761d6b6
JB
26232009-03-20 Juanma Barranquero <lekktu@gmail.com>
2624
2625 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2626 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2627 Fix typos in docstrings.
2628
d507f8d7
KH
26292009-03-19 Kenichi Handa <handa@m17n.org>
2630
2631 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2632 changed, use font_load_for_lface to get a new font object.
2633 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2634
2635 * frame.c (x_set_font): Handle the case that ARG is a cons.
2636
c68845e0
GM
26372009-03-19 Glenn Morris <rgm@gnu.org>
2638
2639 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2640
bfa49dd1
CY
26412009-03-19 Chong Yidong <cyd@stupidchicken.com>
2642
2643 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2644
8458d4c1
KH
26452009-03-19 Kenichi Handa <handa@m17n.org>
2646
2647 * charset.c (load_charset_map_from_file): When a mapfile can't be
2648 loaded, signal an error.
2649
78e7d1fe
EZ
26502009-03-18 Eli Zaretskii <eliz@gnu.org>
2651
2652 * dired.c (Ffile_attributes): Make sure UID and GID are always
2653 positive, even if the value is too large for a positive EMACS_INT.
2654 Doc fix.
2655
2656 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2657
5da9fdfa
YM
26582009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2659
2660 * xmenu.c (xdialog_show): Move Fredisplay call ...
2661 (Fx_popup_dialog): ... here.
2662
7519c40d
SM
26632009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2664
2665 * dired.c (file_name_completion): Disable the first optimization just
2666 installed, since it is not implemented correctly.
2667
2cd298e2
SM
26682009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2669
2670 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2671 only if the entry can affect bestmatch.
2cd298e2
SM
2672 Stop the search early, as Ftry_completion already does.
2673
48d37adf
CY
26742009-03-17 Chong Yidong <cyd@stupidchicken.com>
2675
e10c9c93 2676 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2677
9286b16a
CY
26782009-03-15 Chong Yidong <cyd@stupidchicken.com>
2679
2680 * keyboard.c (parse_menu_item): Don't display remappings as menu
2681 equivalent bindings (Bug#788).
2682
f7b146dc
JR
26832009-03-15 Jason Rumney <jasonr@gnu.org>
2684
2685 * w32term.h (WM_EMACS_PAINT): New message.
2686 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2687 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2688 before passing to lisp thread. (Bug#950)
2689
f761d6b6 26902009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2691
d93f9575
CY
2692 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2693 variable as it was never reset.
2694 (ns_term_init): Remove initialization of Lisp-settable defaults
2695 and ns_expand_space.
2696 (-setPanelFromDefaultValues): Remove ns_expand_space.
2697 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2698 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2699 i.e. no additional spacing, similar to Carbon port.
2700
d93f9575
CY
2701 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2702 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2703
305018ec
JD
27042009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2705
2706 * sound.c (alsa_configure): Remove call to deprecated
2707 snd_pcm_sw_params_set_xfer_align.
2708
f761d6b6 27092009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2710
2711 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2712 after clicking in a detached tool bar.
2713 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2714
46e722a9
SM
27152009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2716
348db3dd
SM
2717 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2718 int/Lisp_Object mixup).
46e722a9 2719
a3d16f39
KH
27202009-03-13 Kenichi Handa <handa@m17n.org>
2721
2722 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2723 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2724 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2725 (set_fontset_font): Change ARG to a vector. Handle range_list in
2726 ARG correctly.
2727 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2728 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2729 the above change.
2730 (fontset_from_font): Fix previous change.
fe24f56a 2731 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2732 entry. If FONTSET is the default fontset, don't set the extra
2733 slot of the returning char-table.
2734
b066e6b6
JB
27352009-03-12 Juanma Barranquero <lekktu@gmail.com>
2736
2737 * nsfns.m (Fx_close_connection): Doc fix.
2738 (Fns_do_applescript): Reflow docstring.
2739 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2740 (Fx_display_pixel_width, Fx_display_pixel_height)
2741 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2742 Fix typos in docstrings.
2743 (Fns_set_alpha): Fix typos in error messages.
2744
d472514e 27452009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 2746
d472514e 2747 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
2748 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2749 were used for such events.
2750
d472514e
JB
2751 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2752 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 2753
d472514e 2754 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
2755 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2756
fb930676
KH
27572009-03-11 Kenichi Handa <handa@m17n.org>
2758
ff85581a
KH
2759 * font.h (font_open_by_spec): Extern it.
2760
c50b7e98
KH
2761 * font.c (font_open_by_spec): New function.
2762 (font_open_by_name): Use font_open_by_spec.
2763
fb930676
KH
2764 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2765 fontset of the frame.
2766
2767 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2768 modify the default font of frames that use this fontset.
2769 (num_auto_fontsets): New variable.
2770 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2771 name. Be sure to set FONTSET_ASCII to the correct font name.
2772 (update_auto_fontset_alist): New function.
2773
df4e8455
JB
27742009-03-11 Juanma Barranquero <lekktu@gmail.com>
2775
2776 * makefile.w32-in: Update dependencies.
2777
0a375797
AR
27782009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2779
2780 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2781
61313fa3
SM
27822009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2783
2784 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2785
b55103fb
CY
27862009-03-10 Chong Yidong <cyd@stupidchicken.com>
2787
2788 * lread.c (Feval_buffer): Doc fix.
2789
dde2559c
KH
27902009-03-09 Kenichi Handa <handa@m17n.org>
2791
2792 * charset.c (Qfile_name_handler_alist): Extern it.
2793 (load_charset_map_from_file): Temporarily bind
2794 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2795
df4e8455 27962009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2797
47f588bb
GM
2798 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2799 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2800
4ddf94bd
AR
28012009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2802
4c9bdfc2
AR
2803 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2804 (x_set_window_size): Change back to calculated method of setting
2805 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
2806 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2807 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2808
fe41ae9e
AR
2809 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2810
4c9bdfc2
AR
2811 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2812 accelerator in parens under GNUstep.
2813
825d0875
KH
28142009-03-06 Kenichi Handa <handa@m17n.org>
2815
2816 These changes are to detect incorrect composition sequence without
f3b3be74 2817 looking ahead the source. (Bug#2370)
825d0875
KH
2818
2819 * coding.h: Include "composite.h".
2820 (enum compisition_state): New enum.
2821 (struct compisition_status): New struct.
2822 (struct iso_2022_spec): New member cmp_status.
2823 (struct emacs_mule_spec): New struct.
2824 (struct coding_system): New members ctext_extended_segment_len and
2825 embedded_utf_8. Change the union member
2826 spec.emacs_mule_full_support to spec.emacs_mule.
2827
2828 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2829 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 2830 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
2831 (ADD_COMPOSITION_DATA): New arg nbytes.
2832 (emacs_mule_char): New arg cmp_status.
2833 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2834 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2835 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2836 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2837 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2838 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2839 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2840 (EMACS_MULE_COMPOSITION_END): New macro.
2841 (emacs_mule_finish_composition): New function.
2842 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2843 (decode_coding_emacs_mule): Avoid long looking ahead while
2844 handling composition.
2845 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2846 (ENCODE_COMPOSITION_RULE): New macro.
2847 (finish_composition): New function.
2848 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2849 (DECODE_COMPOSITION_START): New implementation.
2850 (DECODE_COMPOSITION_END): Likewise.
2851 (STORE_COMPOSITION_RULE): New macro.
2852 (decode_coding_iso_2022): Avoid long looking ahead while handling
2853 composition, CTEXT extended segment, and embedded UTF-8.
2854 (setup_coding_system): For a coding of type iso-2022, reset
2855 CODING_ISO_EXTSEGMENT_LEN (coding) and
2856 CODING_ISO_EMBEDDED_UTF_8 (coding).
2857 (get_translation): Delete arguments last_block, from_nchars,
2858 to_nchars. Callers changed.
2859 (produce_chars): Don't modify charbuf. Adjusted for the change of
2860 get_translation.
98a326f7 2861 (produce_composition): Adjust for the new annotation sequence.
825d0875 2862 (handle_composition_annotation): Likewise.
98a326f7 2863 (consume_chars): Adjust for the change of get_translation.
825d0875 2864
ccbc4452
AR
28652009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2866
4ddf94bd 2867 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 2868
988a7ddb
KH
28692009-03-05 Kenichi Handa <handa@m17n.org>
2870
2871 * font.c (font_select_entity): New function.
2872 (font_find_for_lface): Use font_select_entity to select a font.
2873
2874 * fontset.c (fontset_find_font): If a font found without
a8a3728b 2875 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
2876 font with C restriction.
2877
98a326f7 28782009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 2879
be1bce46 2880 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 2881
10ea2b82
JR
28822009-03-04 Jason Rumney <jasonr@gnu.org>
2883
2c93b248 2884 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 2885 characters that have already been read. (Bug#2569)
2c93b248 2886
10ea2b82
JR
2887 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2888 Log an error message if check_image_size failed.
2889 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 2890 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 2891
71a0c011
EZ
28922009-03-02 Eli Zaretskii <eliz@gnu.org>
2893
2894 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2895 when decoding process output.
2896
2f63bba8
RS
28972009-03-01 Richard M Stallman <rms@gnu.org>
2898
2899 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2900
2901 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2902
0a9564cb
EZ
29032009-02-28 Eli Zaretskii <eliz@gnu.org>
2904
2905 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2906 (decode_coding_emacs_mule, decode_coding_iso_2022)
2907 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2908 (decode_coding_raw_text, decode_coding_charset)
2909 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2910 Honor inhibit-eol-conversion. (Bug #2186)
2911
449148b3
JR
29122009-02-28 Jason Rumney <jasonr@gnu.org>
2913
2914 * coding.c (detect_coding_charset): If not checking latin extra,
2915 fail on characters between 0x80 and 0xA0. (Bug#2354)
2916
a4aee864
EZ
29172009-02-28 Eli Zaretskii <eliz@gnu.org>
2918
2919 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 2920 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 2921
d88bee5a
GM
29222009-02-27 Glenn Morris <rgm@gnu.org>
2923
2924 * callint.c (Finteractive): Doc fix.
2925
a808f22d
KH
29262009-02-27 Kenichi Handa <handa@m17n.org>
2927
2928 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2929
caf8d60c
CY
29302009-02-27 Chong Yidong <cyd@stupidchicken.com>
2931
2932 * font.c (font_style_to_value): Set value for unknown symbols to
2933 100 instead of 255.
b61137ea
CY
2934 (weight_table, slant_table, width_table): Treat "unspecified" as
2935 the default value.
caf8d60c 2936
1a0de25c
JB
29372009-02-26 Juanma Barranquero <lekktu@gmail.com>
2938
2939 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2940
8fc45744
JB
29412009-02-25 Juanma Barranquero <lekktu@gmail.com>
2942
107bd7d1
JB
2943 * lread.c (Fload): Stop checking Vloads_in_progress and signal
2944 error as soon as a recursive load is detected.
8fc45744 2945
f097e223
AR
29462009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2947
2948 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
2949 before caching.
2950
8810a12f
KH
29512009-02-24 Kenichi Handa <handa@m17n.org>
2952
2953 * fontset.c (fontset_find_font): Fix the condition for checking
2954 unavailable font.
2955
2c7d1565
GM
29562009-02-24 Glenn Morris <rgm@gnu.org>
2957
2958 * xfaces.c (Finternal_set_font_selection_order): Remove leading
2959 whitespace that confuses documentation.
2960
a20878b6
MB
29612009-02-23 Miles Bader <miles@gnu.org>
2962
2963 * process.c (Flist_system_processes, Fprocess_attributes)
2964 (syms_of_process): Rename `system-process-attributes' to
2965 `process-attributes'.
2966
b3b58c01
AS
29672009-02-22 Andreas Schwab <schwab@linux-m68k.org>
2968
1b3b981b
AS
2969 * coding.h (struct coding_system): Make safe_charsets a pointer to
2970 unsigned char.
2971 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
2972 being 255.
2973 (SAFE_CHARSET_P): Likewise.
2974 (setup_iso_safe_charsets): Properly setup safe_charsets.
2975 (Fdefine_coding_system_internal): Likewise.
2976 (setup_coding_system): Likewise. Remove unneeded casts.
2977 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
2978 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
2979 unneeded casts.
2980
b3b58c01
AS
2981 * insdel.c (del_range_2): Don't modify gap contents when called
2982 from decode_coding_object. (Bug#1809)
2983
0b6f228c
CY
29842009-02-21 Chong Yidong <cyd@stupidchicken.com>
2985
2986 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
2987 Qfont_object.
2988 (Ftype_of): Recognize font objects.
2989
2990 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
2991
2992 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
2993 moved to data.c.
2994
52f8870b
AR
29952009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2996
2997 * nsterm.m (x_make_frame_invisible): Unset async_visible,
2998 async_iconified. Based on a patch by Christian Lynbech
2999 <christian.lynbech@tieto.com>.
3000 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3001
7087d5e9
GM
30022009-02-20 Glenn Morris <rgm@gnu.org>
3003
3004 * syntax.c (Fskip_chars_forward): Fix doc typo.
3005
41d2ceef
CY
30062009-02-20 Chong Yidong <cyd@stupidchicken.com>
3007
3008 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3009
1a3b7ca6
CY
30102009-02-19 Chong Yidong <cyd@stupidchicken.com>
3011
3012 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3013
73cce38d
KH
30142009-02-19 Kenichi Handa <handa@m17n.org>
3015
3016 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3017 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3018
a51092ee
DN
30192009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3020
3021 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3022
c423ecca
KH
30232009-02-18 Kenichi Handa <handa@m17n.org>
3024
3025 * font.c (font_check_otf_features): Fix handling of `nil' element.
3026 (Ffont_spec): Describe :lang and :otf in the docstring.
3027
4c1958f4
AS
30282009-02-16 Andreas Schwab <schwab@suse.de>
3029
3030 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3031 string.
3032
5704f39a
KH
30332009-02-16 Kenichi Handa <handa@m17n.org>
3034
3035 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3036 (Bug#1723)
5704f39a 3037
8f0085aa
CY
30382009-02-14 Chong Yidong <cyd@stupidchicken.com>
3039
a057d86a 3040 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3041
3042 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3043 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3044
aff01dd9
EZ
30452009-02-14 Eli Zaretskii <eliz@gnu.org>
3046
3047 * msdos.c (MAX_SCREEN_BUF): New macro.
3048 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3049 Encode the entire run of glyphs sharing the same face, instead of
3050 doing that one glyph at a time (fixes a bug with displaying
3051 double-size characters).
3052
ba301db3
AR
30532009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3054
3055 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3056
3057 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3058 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3059 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3060
3061 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3062 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3063
51d861de
SM
30642009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3065
3066 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3067 invisible areas.
3068
7fed8996
JR
30692009-02-12 Jason Rumney <jasonr@gnu.org>
3070
631ea4fb
JR
3071 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3072 (add_font_entity_to_list): Call check_face_name even when family
3073 is unspecified.
3074
cb4a3e42
JR
3075 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3076 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3077 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3078
7fed8996 3079 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3080 raster fonts. (Bug#2219)
7fed8996 3081
895416e3
KH
30822009-02-12 Kenichi Handa <handa@m17n.org>
3083
3084 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3085 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3086 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3087 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3088 (find_automatic_composition): While looking forward and backward,
3089 check static composition. Fix where to stop looking forward.
3090 (composition_adjust_point): Fix checking of static composition.
3091 (Fcomposition_get_gstring): Pay attention to
1dacf998 3092 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3093
3094 * lisp.h (fast_looking_at): Extern it.
3095
3096 * search.c (fast_looking_at): New function.
3097
51d861de 3098 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3099 <struct glyph>.u.cmp.to.
3100 (append_composite_glyph): Likewise.
3101
51d861de 3102 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3103 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3104 composition.
51d861de 3105 (append_composite_glyph): Adjust for the change of
895416e3
KH
3106 <strcut glyph>.u.cmp.to.
3107
8510724d
JB
31082009-02-11 Juanma Barranquero <lekktu@gmail.com>
3109
3110 * casetab.c (init_casetab_once):
3111 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3112 * font.c (font_update_lface):
3113 * fontset.c (Fnew_fontset):
3114 * ftfont.c (ftfont_drive_otf):
3115 * xfont.c (xfont_open):
3116 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3117
294fa707
SM
31182009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3119
3120 * fileio.c (Fwrite_region): !NILP -> CONSP.
3121
b5bfebec
AS
31222009-02-10 Andreas Schwab <schwab@suse.de>
3123
3124 * process.c (send_process): Properly relocate pointer into data
adab88bd 3125 when using encoded data. (Bug#2272)
b5bfebec 3126
cb84a2be
KH
31272009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3128
3129 * coding.c (detect_coding_charset): Fix previous change.
3130
89e09428
JR
31312009-02-08 Jason Rumney <jasonr@gnu.org>
3132
3133 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3134 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3135
4470a277
AS
31362009-02-07 Andreas Schwab <schwab@suse.de>
3137
3138 * unexelf.c (unexec): Fix error message.
3139
3175b12a
AR
31402009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3141
3142 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3143 when modal window is active. (Bug #2152)
3175b12a
AR
3144 (applicationShouldTerminate:): Remove now-unneeded while loop
3145 around NSRunAlertPanel.
3146
3147 * nsmenu.m (popupSession): New file-global variable.
3148 (pop_down_menu): End the popupSession before closing dialog.
3149 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3150 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3151 don't query NSApp for events (just sleep instead).
3152
8434d0b8
EZ
31532009-02-07 Eli Zaretskii <eliz@gnu.org>
3154
51d861de
SM
3155 * coding.c (syms_of_coding) <translation-table-for-input>:
3156 Modify doc string to discourage use for character code unification.
8434d0b8 3157
aa82edfd
CY
31582009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3159
3160 * atimer.c (run_timers): Update pending_atimers.
3161
2d283c7c
CY
31622009-02-06 Chong Yidong <cyd@stupidchicken.com>
3163
eb306cab
CY
3164 * image.c (svg_load_image): Fix last change.
3165
2d283c7c
CY
3166 * xfns.c (Fx_create_frame): Signal an error if no font is
3167 found (Bug#2147).
3168
4d8e170e
JB
31692009-02-05 Juanma Barranquero <lekktu@gmail.com>
3170
3171 * character.c (syms_of_character) <script-representative-chars>:
3172 Fix typo in docstring.
3173
c96169a0
AR
31742009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3175
3176 * nsmenu.m (pop_down_menu): New function.
3177 (ns_popup_dialog): Call it on unwind.
3178 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3179 call timer_check() (Bug#2154).
3180 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3181 handling_signal is set.
3182 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3183
31fd7c5c 3184 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3185
3186 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3187
3188 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3189
51d861de
SM
3190 * keyboard.c (poll_for_input_1, handle_async_input):
3191 Set handling_signal under HAVE_NS.
c96169a0 3192
aacd8ba1
GM
31932009-02-04 Glenn Morris <rgm@gnu.org>
3194
3195 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3196
4cb75c4b
KH
31972009-02-04 Kenichi Handa <handa@m17n.org>
3198
3199 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3200
3201 * charset.c (Fchar_charset): New optional arg restriction.
3202
3203 * coding.h (coding_system_charset_list): Extern it.
3204
3205 * coding.c (coding_system_charset_list): New function.
3206
3207 * composite.c: Include coding.h and termhooks.h.
3208 (composition_gstring_p): Fix for the terminal case.
3209 (composition_gstring_width): Likewise.
3210 (fill_gstring_body): Likewise.
3211 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3212 the frame.
3213 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3214 is within a composition.
867d4bb3 3215 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3216
3217 * term.c (encode_terminal_code): Fix handling of composition.
3218 (produce_composite_glyph): For static composition, get pixel_width
3219 from struct composition.
3220
826ba17e
AS
32212009-02-02 Andreas Schwab <schwab@suse.de>
3222
3223 * unexelf.c (unexec): Handle unaligned bss offset.
3224
8ad093db
AR
32252009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3226
3227 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3228 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3229
8ad093db
AR
3230 * keyboard.c (handle_interrupt): Don't call
3231 quit_throw_to_read_char() under NS.
d0a76a6e 3232
8ad093db
AR
3233 * blockinput.h: Remove NS-specific code.
3234
4d18a7a2
DN
32352009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3236
db878925
DN
3237 * dispnew.c (window_change_signal): Don't try to get the size of a
3238 suspended tty frame.
3239 * term.c (Fresume_tty): Resize if the size has changed while the
3240 tty was suspended.
3241
4d18a7a2
DN
3242 * alloc.c (mark_stack): Properly conditionalize previous change.
3243
8984df7c
JB
32442009-01-30 Juanma Barranquero <lekktu@gmail.com>
3245
3246 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3247 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3248 Remove; this code is not used on Windows.
3249
75f4f1ac
EZ
32502009-01-30 Eli Zaretskii <eliz@gnu.org>
3251
3252 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3253 EOLs that also has stray ^M characters.
3254
07a1e794
JB
32552009-01-30 Juanma Barranquero <lekktu@gmail.com>
3256
3257 * atimer.c (run_timers, alarm_signal_handler):
3258 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3259 * w32inevt.c (w32_console_read_socket):
3260 * w32term.c (w32_read_socket):
3261 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3262
a8b11cc9
CY
32632009-01-30 Chong Yidong <cyd@stupidchicken.com>
3264
3265 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3266 Initialize it as a relative filename pattern.
3267 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3268 (Fcall_process_region): Simplify temp file creation using
3269 temporary-file-directory.
3270
c279587b
EZ
32712009-01-29 Eli Zaretskii <eliz@gnu.org>
3272
3273 * msdos.c: Rename pending_signals to msdos_pending_signals.
3274 (sig_suspender, sigprocmask): Adjust.
3275
a8fe3242
CY
32762009-01-29 Chong Yidong <cyd@stupidchicken.com>
3277
3278 * keyboard.c (pending_signals): New var.
3279 (poll_for_input, input_available_signal, init_keyboard): Set it.
3280 (process_pending_signals): New function.
3281
3282 * lisp.h (QUIT): Check pending_signals instead of
3283 interrupt_input_pending. Use process_pending_signals.
3284
51d861de 3285 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3286
51d861de 3287 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3288
3289 * sysdep.c (emacs_write): Use process_pending_signals.
3290
3291 * xterm.c (XTread_socket): Update pending_signals.
3292
3293 * w32term.c (w32_read_socket): Update pending_signals.
3294
3295 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3296
6570a1c4
KH
32972009-01-29 Kenichi Handa <handa@m17n.org>
3298
3299 * xftfont.c (xftfont_has_char): New function.
3300 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3301
d72a4afa
AR
33022009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3303
3304 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3305 under GNUstep.
3306 (ns_query_color): New declaration.
3307
3308 * nsterm.m (ns_confirm_quit): New variable.
3309 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3310 (EmacsApp-applicationShouldTerminate:): Use it.
3311 (EmacsPrefsController): Let user set it.
3312 (ns_query_color): New function.
3313 (ns_defined_color): Use it.
3314 (ns_initialize): Drop.
3315 (ns_term_init): Add two lines from ns_initialize(), and set
3316 input_interrupt_mode to nil.
3317
3318 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3319 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3320
9fe78804
KH
33212009-01-28 Kenichi Handa <handa@m17n.org>
3322
3323 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3324 (fontset_get_font_group): Remember that no font-group is specified
3325 for C.
9fe78804 3326
fa57de36
CY
33272009-01-27 Chong Yidong <cyd@stupidchicken.com>
3328
930600e9
CY
3329 * fns.c (concat): Check for string overflow (bug#1787).
3330
fa57de36
CY
3331 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3332 Quadruple undo limits (bug#1501).
3333
7179ce7b
KH
33342009-01-27 Kenichi Handa <handa@m17n.org>
3335
3336 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3337 directly use GT_Get_Char_index.
3338
3339 * xftfont.c (struct xftfont_info): New member `index'.
3340
3341 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3342 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3343
5be8fcc0
CY
33442009-01-26 Kenichi Handa <handa@m17n.org>
3345
3346 * fontset.c (fontset_find_font): Fix handling of non-cons return
3347 value of fontset_get_font_group.
3348 (fontset_font): Revert last change.
3349
19ae3e61
JR
33502009-01-26 Jason Rumney <jasonr@gnu.org>
3351
3352 * w32font.c (w32font_list_internal): Return quickly if registry is
3353 unknown. Simplify final return.
3354 (add_font_entity_to_list): Break complex logic down into more
3355 manageable chunks. Move unknown registry check to
3356 w32font_list_internal.
3357
8612b71a
AR
33582009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3359
3360 Changes to remove Feval calls from GUI under NS.
3361
d8038940
JB
3362 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3363 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3364 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3365
3366 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3367 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3368 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3369 instead of NON_ASCII_KEYSTROKE_EVENT.
3370 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3371 (EmacsApp-applicationShouldTerminate:): Query user.
3372 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3373 instead of Feval.
3374
3375 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3376
3377 * keyboard.c (kbd_buffer_get_event): Check for it.
3378 (keys_of_keyboard): Define lispy keys for
3379 ns-put/unput-working-text.
3380
3381 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3382 versions.
3383 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3384
6288ae55
CY
33852009-01-25 Chong Yidong <cyd@stupidchicken.com>
3386
3387 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3388 setting current_buffer directly. (Bug#2044)
6288ae55 3389
289e7f8f
CY
33902009-01-24 Chong Yidong <cyd@stupidchicken.com>
3391
5ce87308 3392 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3393 any work. (Bug#1952, bug#1990).
5ce87308 3394
64cc3cf6 3395 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3396
b3243e6f
AR
33972009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3398
3399 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3400 (ns_no_defaults): New declaration.
3401 (main): Use it.
e0d2e69a 3402
d900b2af 3403 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3404
d900b2af 3405 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3406
d900b2af
AR
3407 * nsterm.m (ns_no_defaults): New variable.
3408 (ns_initialize): Don't read defaults when ns_no_defaults.
3409 (EmacsView-readSelectionFromPasteboard:)
3410 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3411 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3412 (ns_dumpglyphs_stretch): New function.
3413 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3414 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3415
e0d2e69a
AR
3416 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3417
3ac71f5d
CY
34182009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3419
3420 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3421 call for Sparc64.
3422
3fe53a83
AR
34232009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3424
3425 * nsfns.m:
3426 * nsgui.h:
3427 * nsmenu.m:
3428 * nsselect.m:
3429 * nsterm.h:
3430 * nsterm.m: Remove '23' comments that indicated code added during
3431 update from emacs-20 -> emacs-23.
3432
10f87c6f 34332009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3434
3435 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3436 ns_alternate_modifier. (Bug#1217)
a3b53a85 3437
c7cef62d
AR
3438 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3439 Display all shortcuts, including those w/o super modifier.
3440
575fb8bd
AR
3441 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3442
918b848b
CY
34432009-01-22 Chong Yidong <cyd@stupidchicken.com>
3444
3445 * fileio.c (Vwrite_region_post_annotation_function)
3446 (Vwrite_region_annotation_buffers): New vars.
3447 (build_annotations_unwind): Just reset
3448 Vwrite_region_annotation_buffers.
3449 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3450 Call write-region-post-annotation-function.
3451 (build_annotations): Add to Vwrite_region_annotation_buffers if
3452 buffer changes.
3453
a39e2539
AR
34542009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3455
3456 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3457 Tiger.
51d861de
SM
3458 * nsfns.m (ns_do_applescript):
3459 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3460
35ed44db
AR
34612009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3462
3463 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3464
cbe0b5bf
AR
34652009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3466
3467 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3468
6049d3a0
AR
3469 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3470
3471 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3472 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3473 handle Ctrl-tab. (Bug#1841)
3474 (ns_get_color): Use unsigned long long for scanned hex string value.
3475 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3476 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3477 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3478 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3479 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3480 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3481 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3482
d3810c21 3483 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3484 DPI. (Bug#1316)
d3810c21
AR
3485 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3486 values in onTiger section.
4c7077c3 3487
e301e634
CY
34882009-01-19 Chong Yidong <cyd@stupidchicken.com>
3489
7f82490b
CY
3490 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3491 Check return value of font_spec_from_name.
64cc3cf6 3492 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3493
3494 * font.c (font_spec_from_name): Return Qnil if font name could not
3495 be parsed.
3496 (font_parse_name): Treat a `?' character as part of an XLFD.
3497
e301e634
CY
3498 * fns.c (Fsubstring): Doc fix.
3499
1c0db158
KH
35002009-01-19 Kenichi Handa <handa@m17n.org>
3501
51d861de 3502 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3503 (ftfont_list): Likewise.
3504
acf20901
JB
35052009-01-18 Juanma Barranquero <lekktu@gmail.com>
3506
fff4e459
JB
3507 * dbusbind.c (Fdbus_register_signal):
3508 * process.c (conv_sockaddr_to_lisp):
3509 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3510
acf20901
JB
3511 * callproc.c (Fgetenv_internal): Doc fix.
3512
e7abcdfb
CY
35132009-01-16 Chong Yidong <cyd@stupidchicken.com>
3514
3515 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3516 it is not even used.
3517
b60861e6
GM
35182009-01-16 Glenn Morris <rgm@gnu.org>
3519
3520 * font.c (Ffont_variation_glyphs): Silence compiler.
3521
8db52afe
JB
35222009-01-15 Juanma Barranquero <lekktu@gmail.com>
3523
3524 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3525 Reported by David Robinow <drobinow@gmail.com>.
3526
4cddb209
KH
35272009-01-15 Kenichi Handa <handa@m17n.org>
3528
51d861de 3529 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3530
f247f67b
JR
35312009-01-14 Jason Rumney <jasonr@gnu.org>
3532
3533 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3534 never a fontset. (Bug#1562)
f247f67b 3535
f56a4450
KH
35362009-01-14 Kenichi Handa <handa@m17n.org>
3537
3538 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3539 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3540
4e99855e
CY
35412009-01-13 Chong Yidong <cyd@stupidchicken.com>
3542
3543 * font.c (font_clear_prop): If clearing the family, clear the font
3544 width index too.
3545
fff4e459 3546 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3547
24f01470
JB
35482009-01-12 Juanma Barranquero <lekktu@gmail.com>
3549
3550 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3551 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3552 functions, use sizeof.
3553
a41240a3
MR
35542009-01-12 Martin Rudalics <rudalics@gmx.at>
3555
3556 * keyboard.c (read_char): Fix case where last_nonmenu_event
3557 returned a bad value with submenus. (Bug#447)
3558
944636b8
CY
35592009-01-12 Chong Yidong <cyd@stupidchicken.com>
3560
3561 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3562 family, clear the font width index too.
3563
0dad7c6f
JR
35642009-01-11 Jason Rumney <jasonr@gnu.org>
3565
3566 * keyboard.c (cmd_error_internal): Exit when errors occur before
3567 frame creation and not in daemon mode. (Bug#1836)
3568
7c2363af
CY
35692009-01-10 Chong Yidong <cyd@stupidchicken.com>
3570
3571 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3572 of a display vector, backtrack.
3573 (try_window_reusing_current_matrix): Check glyph type before
3574 referencing charpos member.
3575
97b1b294
EZ
35762009-01-10 Eli Zaretskii <eliz@gnu.org>
3577
3578 Fix Bug #876:
3579
3580 * coding.c (inhibit_null_byte_detection): New variable.
3581 (detect_coding, detect_coding_system): Don't pay attention to null
3582 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3583 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3584 <inhibit-iso-escape-detection>: Doc fix.
3585
4624b6e3
JR
35862009-01-09 Jason Rumney <jasonr@gnu.org>
3587
3588 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3589 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3590 Only report Unicode Plane 2 fonts as unicode-sip.
3591
323b840c
CY
35922009-01-09 Chong Yidong <cyd@stupidchicken.com>
3593
51d861de
SM
3594 * xfaces.c (Fx_font_family_list): Delete function.
3595 Move compatibility version to faces.el.
323b840c 3596
51d861de 3597 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3598
eba7400d
MR
35992009-01-09 Martin Rudalics <rudalics@gmx.at>
3600
3601 * frame.c (x_set_frame_parameters): Remember requested value for
3602 fullscreen before it's reset by the parameter handler.
3603
4b09796d
GM
36042009-01-09 Glenn Morris <rgm@gnu.org>
3605
3606 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3607 (last_command_event): ... and update all users.
4b09796d
GM
3608 (last_input_char): For clarity, rename to...
3609 (last_input_event): ... and update all users.
3610 (last-command-char, last-input-char): Move to subr.el as aliases.
3611 * cmds.c, commands.h: Update for last_command_char rename.
3612
14ccea62
CY
36132009-01-08 Chong Yidong <cyd@stupidchicken.com>
3614
51d861de 3615 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3616
5f004711
JR
36172009-01-08 Jason Rumney <jasonr@gnu.org>
3618
3619 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3620 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3621 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3622 Don't declare.
fff4e459 3623 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3624 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3625
b71f6f73
KH
36262009-01-07 Kenichi Handa <handa@m17n.org>
3627
50b06221 3628 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3629 remember the coding system used for decoding in
50b06221
KH
3630 coding_system (Bug#1039).
3631
b71f6f73 3632 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3633 breaking the loop. (Bug#870)
b71f6f73
KH
3634 (decode_coding_utf_16, decode_coding_emacs_mule)
3635 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3636 (decode_coding_charset): Likewise.
3637
56f668f7
MR
36382009-01-05 Martin Rudalics <rudalics@gmx.at>
3639
3640 * frame.c (x_set_frame_parameters): Make sure height (width) get
3641 applied when fullwidth (fullheight) is set. (Bug#1522)
3642
5da9424d
JB
36432009-01-04 Juanma Barranquero <lekktu@gmail.com>
3644
3645 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3646 (utc_base): Declare as ULONGLONG, not long double.
3647 (convert_time_raw): Delete.
3648 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3649 (initialize_utc_base): New function.
3650 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3651 (convert_from_time_t): Use initialize_utc_base; compute result with
3652 64-bit arithmetic.
3653 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3654
c4605e09
EZ
36552009-01-03 Eli Zaretskii <eliz@gnu.org>
3656
9acef61c 3657 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3658 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3659 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3660 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3661 [!subprocesses]: Define.
3662 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3663 (Flist_system_processes, Fsystem_process_attributes)
3664 [!subprocesses]: Call list_system_processes and
3665 system_process_attributes instead of returning Qnil.
3666
9acef61c
JB
3667 * dosfns.c (system_process_attributes, list_system_processes):
3668 New functions.
c4605e09
EZ
3669
3670 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3671
3672 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3673 Don't use the default (no-op) implementation.
3674
8b7d0a16
JR
36752009-01-03 Jason Rumney <jasonr@gnu.org>
3676
a6d46bc1
JR
3677 * keyboard.c (parse_modifiers_uncached): Wheel events are
3678 clicks (bug#687).
3679
8b7d0a16
JR
3680 * w32term.c (x_query_colors, x_query_color): New functions.
3681
3682 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3683 (svg_load_image): Cast returned pointers from dynamically loaded
3684 functions. Eliminate W32 specific code.
3685
bfe11752
DN
36862009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3687
89e2438a
DN
3688 * nsfns.m (x_set_foreground_color, x_set_background_color)
3689 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3690 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3691 x_ prefix instead of ns_. Update references.
3692 (syms_of_nsfns): Add a FIXME comment.
3693
3694 * nsterm.m (x_set_cursor_type): New prototype.
3695 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3696
bfe11752
DN
3697 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3698 for Solaris instead of incorrectly providing Qutime and Qcutime.
3699
031da700
EZ
37002009-01-02 Eli Zaretskii <eliz@gnu.org>
3701
3702 * w32.c (process_times): Compute sum of utime and stime.
3703 (system_process_attributes): Add Qtime to the alist.
3704
3705 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3706 and add them to the alist.
3707
3708 * process.c (top level) <Qtime, Qctime>: New variables.
3709 (syms_of_process): staticpro them.
3710 (Fsystem_process_attributes): Add their documentation to the doc
3711 string.
3712
3713 * process.h: Declare Qtime and Qctime.
3714
df23bf08
JR
37152009-01-02 Jason Rumney <jasonr@gnu.org>
3716
9acef61c 3717 * image.c (Qgobject): New symbol.
df23bf08
JR
3718 (syms_of_image): Initialize it.
3719 (init_svg_functions): Load some functions from gobject library.
3720
5bbdf7aa
DN
37212009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3722
3723 * frame.c (make_terminal_frame): Remove redundant code and useless
3724 block.
3725
63136da6
AS
37262009-01-01 Andreas Schwab <schwab@suse.de>
3727
3728 * process.c (conv_sockaddr_to_lisp): Add workaround for
3729 getsockname bug on BSD.
3730
9ef69046
CY
37312009-01-01 Chong Yidong <cyd@stupidchicken.com>
3732
d6fafbe0
CY
3733 * xfns.c (x_create_tip_frame): Set border width of the X window.
3734
51d861de 3735 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3736
f9c34147
JR
37372009-01-01 Jason Rumney <jasonr@gnu.org>
3738
9acef61c 3739 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
3740 Don't block input, as per earlier xterm.c changes.
3741
f5497e45
AR
37422008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3743
3744 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3745 (ns_appkit_version_int): New function.
3746 (x-server-version): Use ns_appkit_version_int and follow 21+
3747 convention of returning 3 integers.
3748
c19cab20
KH
37492008-12-30 Kenichi Handa <handa@m17n.org>
3750
3751 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3752 (CHAR_SURROGATE_PAIR_P): New macro.
3753
3754 * font.h (struct font_driver): New member get_variation_glyphs.
3755
9acef61c 3756 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
3757 (Ffont_variation_glyphs): New function.
3758 (syms_of_font): Defsubr it.
3759
3760 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3761 ftfont_variation_glyphs.
3762 (setup_otf_gstring): New function.
3763 (ftfont_drive_otf): Use it.
3764 (ftfont_shape_by_flt): Handle variation selector.
3765 (ftfont_variation_glyphs): New function.
3766
28cd591f
MR
37672008-12-30 Martin Rudalics <rudalics@gmx.at>
3768
3769 * frame.c (Vemacs_iconified): Remove.
3770
7f714baf
JR
37712008-12-30 Jason Rumney <jasonr@gnu.org>
3772
3773 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3774 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3775
9d2d22ab
CY
37762008-12-30 Chong Yidong <cyd@stupidchicken.com>
3777
3778 * indent.c (Fvertical_motion): Don't advance iterator if we have
3779 reseated to the desired position.
3780
3781 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3782 checking for pos match.
3783
545312c2
KH
37842008-12-30 Kenichi Handa <handa@m17n.org>
3785
1ede3eb6
KH
3786 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3787 just get the low 8-bit of the code.
3788
545312c2
KH
3789 * font.c (font_intern_prop): Validate str as multibyte.
3790
bd7bbf29
DN
37912008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3792
31e0750e
DN
3793 * dispextern.h (struct face): Move lface and hash from the middle
3794 of bitfields.
3795
bd7bbf29
DN
3796 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3797
b5672e7c
DN
37982008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3799
3800 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3801 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3802 instead of intervals.h.
3803
d704470f
AS
38042008-12-26 Andreas Schwab <schwab@suse.de>
3805
3806 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3807 cons.
3808
54b33868
MR
38092008-12-26 Martin Rudalics <rudalics@gmx.at>
3810
3811 * textprop.c (Qminibuffer_prompt): New variable.
3812 (syms_of_textprop): Initialize it.
3813 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3814 in minibuffer-prompt face. (Bug#1662)
3815
40b615d6
JR
38162008-12-25 Jason Rumney <jasonr@gnu.org>
3817
3818 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3819
baae5c2d
JR
38202008-12-24 Jason Rumney <jasonr@gnu.org>
3821
3822 * ralloc.c (r_alloc_reset_variable): New function.
3823
3824 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 3825 record of what points where. (Bug#716)
baae5c2d 3826
a9051c88
DN
38272008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3828
3829 * minibuf.c (read_minibuf): Follow the non-interactive case when
3830 running as a daemon, before detaching.
3831
8b146312
AS
38322008-12-22 Andreas Schwab <schwab@suse.de>
3833
3834 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3835 * gtkutil.c (free_widget_value): Use xfree instead of free.
3836
56f2de10
MR
38372008-12-22 Martin Rudalics <rudalics@gmx.at>
3838
3839 * frame.c (delete_frame): New function derived from
3840 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3841 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3842 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3843 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3844 * frame.h: Extern delete_frame.
3845 * window.c (window_loop):
3846 * terminal.c (delete_terminal):
3847 * xterm.c (x_connection_closed):
3848 * xfns.c (Fx_hide_tip):
9acef61c 3849 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 3850
1fc200d6
JR
38512008-12-21 Jason Rumney <jasonr@gnu.org>
3852
3853 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3854 when character maps to .notdef character.
3855
5e252df2
SM
38562008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3857
3858 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3859
99b72cc4
JR
38602008-12-20 Jason Rumney <jasonr@gnu.org>
3861
3862 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 3863 a graphical frame on Windows. (Bug#1325)
99b72cc4 3864
acc49a52
JD
38652008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3866
3867 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3868
6ea15123
CY
38692008-12-20 Chong Yidong <cyd@stupidchicken.com>
3870
3871 * minibuf.c (Fread_buffer): Doc fix.
3872
b2dab6c8
JR
38732008-12-20 Jason Rumney <jasonr@gnu.org>
3874
54ea0c87 3875 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 3876 server name in UNC paths. (Bug#719)
54ea0c87 3877
b2dab6c8 3878 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 3879 charbuf. (Bug#1035)
b2dab6c8 3880
6d1921be
DN
38812008-12-19 Daniel Engeler <engeler@gmail.com>
3882
3883 * sysdep.c (serial_configure): Fix typo.
3884
53934c98
DN
38852008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3886
3887 * sysdep.c: Include alloca.h.
f4f634e8
DN
3888 (system_process_attributes): Add implementation for Solaris.
3889
3890 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 3891
06e111a6
DN
38922008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3893
3894 Reorganize implementation of Flist_system_processes and
3895 Fsystem_process_attributes. No functional changes.
3896 * process.c: Don't #include pwd.h, grp.h and limits.h.
3897 (Flist_system_processes): Just call list_system_processes.
3898 (Fsystem_process_attributes): Just call system_process_attributes.
3899 (procfs_list_system_processes, time_from_jiffies)
3900 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3901 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3902
3903 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3904 (list_system_processes): Rename from
3905 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3906 Provide a do nothing implementation.
3907 (system_process_attributes): Rename from
3908 procfs_list_system_processes.
3909 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 3910 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
3911
3912 * w32.c (list_system_processes): Rename from
3913 w32_list_system_processes.
3914 (system_process_attributes): Rename from
3915 w32_system_process_attributes.
3916
3917 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3918
3919 * process.h (w32_list_system_processes)
3920 (w32_system_process_attributes): Remove.
362654a6
JB
3921 (list_system_processes, system_process_attributes):
3922 New prototypes.
06e111a6 3923
6a705b23
KH
39242008-12-19 Kenichi Handa <handa@m17n.org>
3925
3926 * xfont.c (xfont_decode_coding_xlfd): New function.
3927 (xfont_encode_coding_xlfd): New function.
3928 (xfont_list_pattern): Decode XLFD by iso-8859-1.
3929 (xfont_list): Decode and encode XLFD by iso-8859-1.
3930 (xfont_match): Likewise.
3931 (xfont_list_family): Likewise.
3932 (xfont_open): Likewise.
3933
d66c0241 3934 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
3935 names are utf-8.
3936
d66c0241 3937 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
3938 names are utf-8.
3939
5a130941
JD
39402008-12-18 Jan Djärv <jan.h.d@swipnet.se>
3941
3942 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3943 changed.
bfd20325
JD
3944 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
3945 clicked on a detached tool bar button.
5a130941 3946
fd95644b
DN
39472008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3948
3949 * emacs.c (main): Print and error and exit when no data is read
3950 from the pipe.
3951
e6eee6ae
JR
39522008-12-17 Jason Rumney <jasonr@gnu.org>
3953
3954 * w32font.c (w32font_has_char): Always return -1.
3955
a35dd56b
KH
39562008-12-16 Kenichi Handa <handa@m17n.org>
3957
3958 * font.c (font_open_entity): Fix previous change.
3959
0e3635c2
DN
39602008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
3961
3962 * process.c: Include <limits.h>.
3963
d4835507 39642008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
3965
3966 * font.c (font_update_drivers): Fix mistake in reconstructing the
3967 driver list.
3968
39692008-12-16 Chong Yidong <cyd@stupidchicken.com>
3970
3971 * font.c (font_clear_cache): Fix format of font cache data.
3972
e2cbc401
CY
39732008-12-15 Chong Yidong <cyd@stupidchicken.com>
3974
3975 * xftfont.c (xftfont_open): Free Xft font pattern if
3976 XftFontOpenPattern fails.
3977
3978 * xterm.c (x_free_frame_resources): Remove extraneous call to
3979 free_frame_faces.
3980
b131d535
CY
39812008-12-13 Chong Yidong <cyd@stupidchicken.com>
3982
3983 * xterm.c (x_delete_display): Move xim_close_dpy call to
3984 x_delete_terminal.
3985 (x_delete_terminal): Call xim_close_dpy.
3986
e6df5336
JR
39872008-12-13 Jason Rumney <jasonr@gnu.org>
3988
3989 * w32font.c (intern_font_name): New function.
3990 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
3991 (w32font_open_internal, Fx_select_font): Decode font name.
3992 (fill_in_logfont, list_all_matching_fonts): Encode font name.
3993
3994 * w32font.h (intern_font_name): Declare new function.
3995
3996 * w32uniscribe.c (add_opentype_font_name_to_list):
3997 Use intern_font_name.
3998
20d68145
CY
39992008-12-13 Chong Yidong <cyd@stupidchicken.com>
4000
9f2554de
CY
4001 * frame.c (Fdelete_frame): Call free_font_driver_list.
4002
3d9bec9a
CY
4003 * font.c (free_font_driver_list): Implement missing function.
4004
20d68145
CY
4005 * w32term.c (w32_term_init): Don't initialize the image cache
4006 here; it will be done in init_frame_faces.
4007
4008 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4009 (struct x_display_info): Remove unused member null_pixel. New
4010 member xim_callback_data.
4011
4012 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4013 (xim_initialize): Save pointer to callback function data.
4014 (xim_close_dpy): Free callback function data. Call XCloseIM,
4015 reverting 2008-11-04 change by David Smith.
4016 (x_term_init): Don't initialize the image cache here; it will be
4017 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4018 (x_delete_display): Free x_dnd_atoms member.
4019
96f9306b
KH
40202008-12-13 Kenichi Handa <handa@m17n.org>
4021
6dec9044
JB
4022 * font.c (font_rescale_ratio): Moved from xfaces.c.
4023 Argument type changed. Handle a font-spec too.
96f9306b 4024 (font_score): Check Vface_font_rescale_alist.
6dec9044 4025 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4026
4027 * xfaces.c (font_rescale_ratio): Moved to font.c.
4028
8d5b4964
CY
40292008-12-13 Chong Yidong <cyd@stupidchicken.com>
4030
4031 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4032
e6df5336
JR
40332008-12-12 Jason Rumney <jasonr@gnu.org>
4034
4035 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4036 Vwindow_system_version to the real w32 major version.
4037
97c6058a
DN
40382008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4039
4040 * term.c (init_tty): Move setting the terminal name before the
4041 potential user: maybe_fatal.
4042
ec4e88d7
CY
40432008-12-11 Chong Yidong <cyd@stupidchicken.com>
4044
d4835507
JB
4045 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4046 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4047
b4233ec9
JR
40482008-12-11 Jason Rumney <jasonr@gnu.org>
4049
8ec71e23 4050 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4051 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4052
b4233ec9 4053 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4054 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4055
011a0143
JB
40562008-12-11 Juanma Barranquero <lekktu@gmail.com>
4057
4058 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4059
3c309f34
JB
40602008-12-11 Juanma Barranquero <lekktu@gmail.com>
4061
4062 * process.c (Fsystem_process_attributes, syms_of_process):
4063 Fix typo in name of Ssystem_process_attributes.
4064 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4065
fedc6ab5
JB
40662008-12-11 Juanma Barranquero <lekktu@gmail.com>
4067
4068 * syntax.c (Fmodify_syntax_entry): Doc fix.
4069
ba3de0e8
JB
40702008-12-10 Juanma Barranquero <lekktu@gmail.com>
4071
4072 * font.c (Ffont_spec): Move usage to end of docstring.
4073
174f1c74
JR
40742008-12-10 Jason Rumney <jasonr@gnu.org>
4075
4076 * w32font.c (Qcham): New symbol.
4077 (font_supported_scripts): Add cham, and comments for other new
4078 scripts in bitfield from OpenType spec.
9d32f818
JR
4079 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4080 contain characters beyond the bmp.
174f1c74 4081
7b649478
KH
40822008-12-10 Kenichi Handa <handa@m17n.org>
4083
4084 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4085 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4086 Qunicode_sip.
4087
2133e2d1
JB
40882008-12-10 Juanma Barranquero <lekktu@gmail.com>
4089
4090 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4091 (Fcoding_system_put): Use QCdefault_char.
4092 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4093
9af886ee
CY
40942008-12-09 Chong Yidong <cyd@stupidchicken.com>
4095
74d819eb
CY
4096 * xftfont.c (syms_of_xftfont): Fix typo.
4097
4ccfa1c0 4098 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4099
7c19d3ae
DN
41002008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4101
4102 * emacs.c (main): Close daemon_pipe on exec.
4103
567826bb
CY
41042008-12-08 Chong Yidong <cyd@stupidchicken.com>
4105
4106 * termchar.h (struct tty): New members termcap_term_buffer and
4107 termcap_strings_buffer.
4108
4109 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4110 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4111 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4112 All callers changed.
4113 (init_tty): Store termcap data and string buffers in new struct
4114 tty members termcap_term_buffer and termcap_strings_buffer.
4115 (delete_tty): Free them.
4ccfa1c0 4116 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4117
aa96c42b
SZ
41182008-12-07 Seiji Zenitani <zenitani@mac.com>
4119
4120 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4121 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4122
b7e1d896
CY
41232008-12-06 Chong Yidong <cyd@stupidchicken.com>
4124
4125 * coding.c (make_conversion_work_buffer): Disable buffer
4126 modification hooks in the work buffer.
4127
b5ec91a5
EZ
41282008-12-05 Eli Zaretskii <eliz@gnu.org>
4129
4130 * process.c (procfs_system_process_attributes): If `nread' has a
4131 negative value, assign zero to it.
4132
a5d2a52b
CY
41332008-12-05 Chong Yidong <cyd@stupidchicken.com>
4134
68c5540b 4135 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4136
7bf1bb21
KH
41372008-12-05 Kenichi Handa <handa@m17n.org>
4138
4139 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4140 second character is a combining character.
4141
2fdc7d00
EZ
41422008-12-05 Eli Zaretskii <eliz@gnu.org>
4143
4144 * process.c (procfs_system_process_attributes): Don't use cmd,
4145 cmdsize, and q without initializing them first.
4146
bf6bfba8
JR
41472008-12-04 Jason Rumney <jasonr@gnu.org>
4148
4149 * w32font.c (w32font_draw): Initialize orig_clip before getting
4150 it, and delete it when finished.
4151
a3b1a468
DN
41522008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4153
4154 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4155 case when running as a daemon before detaching.
4156
8b8be8eb
JB
41572008-12-03 Juanma Barranquero <lekktu@gmail.com>
4158
805f2638 4159 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4160
b1bde622
KH
41612008-12-03 Kenichi Handa <handa@m17n.org>
4162
e500c47d
KH
4163 * font.c (font_at): Set `multibyte' at first.
4164
ca516334
KH
4165 * coding.c (decode_coding_charset): Check type of an element of
4166 vector VALIDS.
7bf1bb21 4167 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4168
4ccfa1c0 4169 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4170 (font_for_char): Likewise.
4171
1e5ecd37
CY
41722008-12-03 Chong Yidong <cyd@stupidchicken.com>
4173
d5b01609 4174 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4175 (font_update_lface): Handle fonts with corrupted size specs,
4176 i.e. non-int and non-float.
d5b01609 4177
11e3a6e4 4178 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4179 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4180 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4181
ab06788b
CY
4182 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4183
1e5ecd37 4184 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4185 underline_minimum_offset for underline position.
1e5ecd37 4186
63c125ab
DN
41872008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4188
4189 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4190
4191 * character.c (c_string_width): Specify the type for LEN.
4192
3a8406e1
KH
41932008-12-03 Kenichi Handa <handa@m17n.org>
4194
4ccfa1c0 4195 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4196 (decode_coding_utf_8): Likewise.
4ccfa1c0 4197 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4198 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4199
651df7d9
CY
42002008-12-02 Chong Yidong <cyd@stupidchicken.com>
4201
4202 * keyboard.c (make_lispy_position): Only use PT if the selected
4203 window is current.
4204
1f625c6c
AS
42052008-12-02 Andreas Schwab <schwab@suse.de>
4206
f7741ce9
AS
4207 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4208
1f625c6c
AS
4209 * doprnt.c (doprnt1): Fix size of charbuf.
4210
92bc2678
CY
42112008-12-02 Chong Yidong <cyd@stupidchicken.com>
4212
4213 * keyboard.c (timer_check): Revert last change.
4214
93b9e8cc
JB
42152008-12-02 Juanma Barranquero <lekktu@gmail.com>
4216
4217 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4218
fd7a37d5
JB
42192008-12-01 Juanma Barranquero <lekktu@gmail.com>
4220
4221 * makefile.w32-in: Update dependencies.
4222 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4223
c115043b
AS
42242008-12-01 Andreas Schwab <schwab@suse.de>
4225
4226 * font.c (register_font_driver): Use xmalloc.
4227 (font_put_frame_data): Likewise.
4228
f5668d2a
CY
42292008-12-01 Chong Yidong <cyd@stupidchicken.com>
4230
860d96be
CY
4231 * xfaces.c (realize_x_face): Make abort condition clearer.
4232
f5668d2a
CY
4233 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4234
379c17e7
CY
42352008-11-30 Chong Yidong <cyd@stupidchicken.com>
4236
4237 * keyboard.c (timer_check): After a timer runs, ensure that the
4238 selected window's buffer is current.
4239
35f36d65
JB
42402008-11-30 Juanma Barranquero <lekktu@gmail.com>
4241
f952c61c
JB
4242 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4243 It was accidentally restored by the Unicode merge.
4244
35f36d65
JB
4245 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4246
b23077df
JB
42472008-11-29 Juanma Barranquero <lekktu@gmail.com>
4248
4249 * w32proc.c: Include "coding.h".
4250 (Fw32_short_file_name): Encode filename passed to Windows API.
4251 (Fw32_long_file_name): Encode filename passed to Windows API and
4252 decode back the result. (Bug#1433)
4253
b8ebe9dd
KH
42542008-11-29 Kenichi Handa <handa@m17n.org>
4255
8cc53f96
KH
4256 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4257 not before accessing it.
4258
b8ebe9dd
KH
4259 * charset.c (Fdefine_charset_internal): After calculating
4260 min_char, max_char, and fastmap, copy the charset structure again.
4261 (encode_char): Fix the previous change.
4262
59bc82c0
SZ
42632008-11-28 Seiji Zenitani <zenitani@mac.com>
4264
4265 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4266
4267 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4268
4269 * nsterm.m (x_set_frame_alpha): New function.
4270
32247e3d
EZ
42712008-11-27 Eli Zaretskii <eliz@gnu.org>
4272
4273 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4274
b003e5ff
JB
42752008-11-27 Juanma Barranquero <lekktu@gmail.com>
4276
4277 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4278 pointer to check_face_name.
4279
708550f5
KH
42802008-11-27 Kenichi Handa <handa@m17n.org>
4281
4282 * category.h (SET_CATEGORY_SET): Call set_category_set.
4283 (set_category_set): Extern it.
4284
4285 * category.c (hash_get_category_set): New function.
4286 (Fmodify_category_entry): Adjusted for the change of
4287 char_table_ref_and_range. Call hash_get_category_set to get a
4288 category set to store in the table.
4289
4290 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4291 Funify_charset.
4292
2ae37cf0 4293 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4294 (DECODE_CHAR): Check if the decoder vector is ready.
4295 (ENCODE_CHAR): Check if the encoder char-table is ready.
4296 (maybe_unify_char): Extern it.
4297
4298 * charset.c (Vchar_unified_charset_table): Delete it.
4299 (inhibit_load_charset_map): New variable.
4300 (temp_charset_work): New variable.
4301 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4302 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4303 New macros.
4304 (load_charset_map): Meaning of control_flag changed. If
4305 inhibit_load_charset_map is nonzero, setup a table in
4306 temp_charset_work.
4307 (load_charset): New argument control_flag.
4308 (map_charset_for_dump): New function.
4309 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4310 map_charset_for_dump.
4311 (Fdefine_charset_internal): If the charset method is MAP, load
4312 mapping tables by calling load_charset.
4313 (Funify_charset): Don't load a mapping table but directly set
4314 Vchar_unify_table.
4315 (maybe_unify_char): New function.
4316 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4317 Handle the case of inhibit_load_charset_map being nonzero.
4318 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4319 Handle the case of inhibit_load_charset_map being nonzero.
4320 (Fclear_charset_maps): Just free temp_charset_work.
4321 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4322 variable.
4323
4324 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4325 change of char_table_ref_and_range.
4326 (char_table_ref_and_range): Change the meaning of argument FROM
4327 and TO. Now the caller must provide initial values for *FROM
4328 and *TO.
4329
4330 * fontset.c (fontset_add): Adjusted for the change of
4331 char_table_ref_and_range.
4332 (fontset_get_font_group): Likewise.
4333 (Ffontset_info): Likewise.
4334
4335 * keymap.c (describe_vector): Adjusted for the change of
4336 char_table_ref_and_range. For char-table, put boundary between
4337 non-ASCII and 8-bit characters.
4338
4339 * print.c (print_object): For bool-vector, delete unnecessary
4340 check of ASCII_BYTE_P.
4341
9196133b
JR
43422008-11-26 Jason Rumney <jasonr@gnu.org>
4343
4344 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4345 leading in font height. (Bug#879)
9196133b 4346
9f688acf
GM
43472008-11-26 Glenn Morris <rgm@gnu.org>
4348
4349 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4350 redefinition with ifdef. (Bug#1383)
4351
90d19aff
AR
43522008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4353
4354 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4355
4ccfa1c0 43562008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4357
4358 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4359 New EmacsView methods.
4360 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4361 Fixes bug #1048,1357,1414.
4362
43632008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4364
4365 Fix bug #1362.
4366 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4367 is not an indexed color.
4368 * nsterm.m (free_indexed_color): Add argument checking.
4369 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4370
e7d5ecb3
CY
43712008-11-24 Chong Yidong <cyd@stupidchicken.com>
4372
4373 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4374 Document confirm-after-completion value for
4375 minibuffer-completion-confirm.
4376
c285743c
JR
43772008-11-24 Jason Rumney <jasonr@gnu.org>
4378
4379 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4380 warning.
4381
b0857706
JR
43822008-11-23 Jason Rumney <jasonr@gnu.org>
4383
4384 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4385 restored before returning.
4386
4387 * w32font.c (check_face_name): New function.
4388 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4389 fonts. (Bug#642)
b0857706 4390
ee50ff07
MR
43912008-11-22 Martin Rudalics <rudalics@gmx.at>
4392
4393 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4394 confirm-nonexistent-file-or-buffer in doc-string.
4395
b8ff72fa
SM
43962008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4397
4398 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4399 Fix copy/paste typo. Add checks.
4400
cee53ed4
KH
44012008-11-21 Kenichi Handa <handa@m17n.org>
4402
4403 * coding.c (detect_coding_iso_2022): Reject invalid composition
4404 sequence.
4405 (DECODE_COMPOSITION_START): If the current source is the last
4406 block, and the current composition doesn't end, regard this
4407 sequence as invalid.
4408 (decode_coding_iso_2022): Handle invalid composition sequence.
4409
f6ef1e65
MR
44102008-11-20 Martin Rudalics <rudalics@gmx.at>
4411
4412 * window.c (coordinates_in_window): Don't return
4413 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4414 line when the window is not the rightmost one. (Bug#1372)
4415
e08b1705
MR
44162008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4417
4418 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4419
ad98e89f
EZ
44202008-11-15 Eli Zaretskii <eliz@gnu.org>
4421
4422 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4423 and bright_bg if noninteractive is non-zero.
4424
fb098a4b
CY
44252008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4426
4427 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4428 x_draw_glyph_string_background.
4429
4430 * w32term.c (x_draw_glyph_string): Likewise.
4431
ce952b6e
CY
44322008-11-15 Chong Yidong <cyd@stupidchicken.com>
4433
4434 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4435 the next glyph string once past the overhang width.
4436
4437 * nsterm.m (ns_draw_glyph_string): Likewise.
4438
4439 * w32term.c (x_draw_glyph_string): Likewise.
4440
26ea7079
CY
44412008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4442
4443 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4444 double file close.
4445
1c33c906
MR
44462008-11-14 Martin Rudalics <rudalics@gmx.at>
4447
4448 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4449 dedicated status of window before attempting to display another
4450 buffer in it.
4451
8fc29035
JB
44522008-11-14 Juanma Barranquero <lekktu@gmail.com>
4453
4454 * msdos.c (Fmsdos_long_file_names):
4455 (syms_of_msdos) <dos-unsupported-char-glyph>:
4456 * dosfns.c (Fint86): Fix typos in docstrings.
4457
55fb4286
EZ
44582008-11-14 Eli Zaretskii <eliz@gnu.org>
4459
4460 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4461
3fda0315
KY
44622008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4463
4464 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4465
7e849c17
CY
44662008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4467
4468 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4469
4470 * frame.h: Negative alpha means "don't touch".
4471
4472 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4473
4474 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4475
b9fd67bd
DN
44762008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4477
4478 * hftctl.c:
4479 * chpdef.h:
4480 * acldef.h: Remove files used only for systems no longer supported.
4481
4482 * Makefile.in: Fix .o alphabetical ordering.
4483 (hftctl.o): Remove dependency, file removed.
4484 (keymap.o, print.o): Depend on charset.h.
4485
d5998e03
KH
44862008-11-10 Kenichi Handa <handa@m17n.org>
4487
2ae37cf0 4488 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4489
be70e183
CY
44902008-11-08 Chong Yidong <cyd@stupidchicken.com>
4491
4492 * dired.c (file_name_completion): If completion_ignore_case is
4493 enabled, ignore case when checking completion-regexp-list.
4494
7cf94eac
EZ
44952008-11-08 Eli Zaretskii <eliz@gnu.org>
4496
4497 * vm-limit.c (get_lim_data): Fix last change.
4498
ee107a89
KH
44992008-11-08 Kenichi Handa <handa@m17n.org>
4500
4501 * character.c (Fget_byte): New function.
4502 (syms_of_character): Defsubr Fget_byte.
4503
5fd15622
CY
45042008-11-07 Chong Yidong <cyd@stupidchicken.com>
4505
4506 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4507 cursor position is valid after scrolling.
4508
13d62fad
JB
45092008-11-06 Juanma Barranquero <lekktu@gmail.com>
4510
4511 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4512
a1dd2936
GM
45132008-11-06 Glenn Morris <rgm@gnu.org>
4514
4515 * xterm.c (handle_one_xevent): Don't let popup menus cause
4516 mouse-autoselect-window related window switching. (Bug#1261)
4517
860cd236
CY
45182008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4519
4520 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4521
653a3150
AS
45222008-11-04 Andreas Schwab <schwab@suse.de>
4523
4524 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4525
870f5cac
CY
45262008-11-03 Chong Yidong <cyd@stupidchicken.com>
4527
4528 * xfns.c (Fx_wm_set_size_hint): New function.
4529
1e02f3cb
MR
45302008-11-03 Martin Rudalics <rudalics@gmx.at>
4531
4532 * textprop.c (Fprevious_single_char_property_change): Return 0
4533 when there's no change in a string. (Bug#1301)
4534
e630dfc6
MR
45352008-11-02 Martin Rudalics <rudalics@gmx.at>
4536
4537 * frame.c (do_switch_frame): New argument NORECORD passed to
4538 Fselect_window.
4539 (Fselect_frame): New argument NORECORD passed to
4540 do_switch_frame.
4541 (Fset_frame_selected_window): New argument NORECORD passed to
4542 Fselect_frame.
4543 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4544 in call of do_switch_frame.
4545 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4546 Handle NORECORD argument in call of Fselect_frame.
4547 * lisp.h (do_switch_frame, Fselect_frame)
4548 (Fset_frame_selected_window): Adjust declarations.
4549 * window.c (select_frame_norecord): New function.
4550 (run_window_configuration_change_hook): Use it and call
4551 Fselect_frame with NORECORD set.
4552 (Fselect_window): Pass NORECORD to Fselect_frame.
4553 (Fset_window_configuration): Handle NORECORD argument in call of
4554 do_switch_frame.
4555 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4556 Fset_frame_selected_window.
4557 * keyboard.c (command_loop_1): Handle NORECORD in call of
4558 Fselect_frame (currently ifdefd).
4559
9020b223
GM
45602008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4561
4562 * emacs.c (USAGE2): Untabify.
4563
793ffee8
SM
45642008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4565
4566 * composite.c (fill_gstring_header): Fix copy/paste typo.
4567
ab6d1131
MR
45682008-10-31 Martin Rudalics <rudalics@gmx.at>
4569
4570 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4571 (Fother_window): Rename argument and rewrite doc-string.
4572 (select_window_norecord): Fix return value. (Bug#1276)
4573
601a9cf1
JB
45742008-10-30 Juanma Barranquero <lekktu@gmail.com>
4575
4576 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4577 new frames overriding foreground for tooltips. Based on similar patch
4578 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4579
813b0652
CY
45802008-10-29 Chong Yidong <cyd@stupidchicken.com>
4581
4582 * emacs.c (Fdaemon_initialized): Initialize nfd.
4583
4414f58f
MR
45842008-10-29 Martin Rudalics <rudalics@gmx.at>
4585
4586 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4587 (Fwindow_text_height): Clarify doc-strings.
4588 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4589 doc-string of window-scroll-functions.
4590
ecdcaa09
RS
45912008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4592
4593 * category.c (syms_of_category): Fix typo in docstring.
4594
23fe745a
JB
45952008-10-28 Juanma Barranquero <lekktu@gmail.com>
4596
4597 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4598 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4599 Fix typos in docstrings.
4600
ff808935
DN
46012008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4602
4603 * emacs.c (daemon_pipe): Make non-static.
4604 (IS_DAEMON): Move definition ...
4605 * lisp.h (IS_DAEMON): ... here.
4606 (daemon_pipe): Declare.
4607 (is_daemon): Remove.
4608 * dispnew.c (init_display): Use IS_DAEMON.
4609
fc012771
SM
46102008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4611
4612 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4613 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4614
4615 * emacs.c (is_daemon): Remove.
4616 (main): Don't set is_daemon.
4617 (IS_DAEMON): New macro.
4618 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4619 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4620 parent exits.
4621 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4622
d8bdbe6f
CY
46232008-10-27 Chong Yidong <cyd@stupidchicken.com>
4624
d1a072bf
CY
4625 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4626 over-sized glyph, draw it with the default glyph width.
4627
e2e325aa
CY
4628 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4629 glyph, draw it with the default glyph width.
4630
4631 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4632 glyph, draw it with the default glyph width.
4633
d8bdbe6f
CY
4634 * xdisp.c (try_scrolling): When computing the distance from the
4635 scroll margin to PT, try moving some distance past the window
4636 bottom before giving up.
4637
7bfac547
MR
46382008-10-27 Martin Rudalics <rudalics@gmx.at>
4639
4640 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4641 (Fset_window_buffer): Explain in doc-string that a window can be
4642 "strongly" dedicated to its buffer.
4643
4ff029f6
DN
46442008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4645
4646 * emacs.c (daemon_name): New variable.
4647 (main): Deal with --daemon=SERVER_NAME.
4648 (Fdaemonp): Return a name if one was passed to --daemon.
4649
5790ef40
DN
46502008-10-26 Romain Francoise <romain@orebokech.com>
4651
f9bd0df9 4652 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4653 (main): Create a pipe before forking, make the parent exit only after
4654 the child has closed its end of the pipe. Move closing the
4655 descriptors ...
4656 (Fdaemon_initialized): ... here. New function.
4657
f5385255
SM
46582008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4659
4d632321
SM
4660 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4661 the previous unoptimized table.
4662
f5385255
SM
4663 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4664 the distinction between non-nil and non-t value of `dedicated'.
4665
6c56a0f3
CY
46662008-10-25 Chong Yidong <cyd@stupidchicken.com>
4667
4668 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4669 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4670
fec89261
MR
46712008-10-25 Martin Rudalics <rudalics@gmx.at>
4672
4673 * window.c (Fget_buffer_window, Fdelete_windows_on)
4674 (Freplace_buffer_in_windows): Make buffer argument optional and
4675 rename to buffer_or_name.
4676
34fcddd0
CY
46772008-10-24 Chong Yidong <cyd@stupidchicken.com>
4678
f5385255
SM
4679 * xdisp.c (handle_single_display_spec, handle_display_prop):
4680 Undo 2005-05-16 change.
34fcddd0
CY
4681 (handle_stop): Pop iterator if it's loaded with an empty string.
4682 (get_overlay_strings_1): Don't save iterator if it's loaded with
4683 an empty string (bug#1201).
4684
064766f2
KH
46852008-10-24 Kenichi Handa <handa@m17n.org>
4686
4687 * ftfont.c (ftfont_otf_features): Fix previous change.
4688 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4689 calling ftfont_otf_features.
4690
f9bd0df9 46912008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4692
4693 * font.c (font_match_p): Fix for the case that a vector of
4694 characters is in script-representative-chars.
4695
1dae9197
MA
46962008-10-24 Michael Albinus <michael.albinus@gmx.de>
4697
4698 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4699 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4700 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4701 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4702 macro. (Bug#1186).
4703
f9bd0df9 47042008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4705
4706 * s/sol2-10.h: New file.
4707
878a4584
JB
47082008-10-23 Juanma Barranquero <lekktu@gmail.com>
4709
4710 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4711 poor beast has survived 9+ years and the jump from xterm.c!).
4712
cd265ca6
MR
47132008-10-23 Martin Rudalics <rudalics@gmx.at>
4714
4715 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4716 Reword doc-string.
f5385255 4717 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4718
472a4dc9
JB
47192008-10-23 Juanma Barranquero <lekktu@gmail.com>
4720
4721 * character.c (syms_of_character) <script-representative-chars>:
4722 <unicode-category-table>: Doc fixes.
4723
159bd5a2
NF
47242008-10-23 Noah Friedman <friedman@splode.com>
4725
4726 * coding.c (make_conversion_work_buffer): Check that
4727 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4728 Fget_buffer_create.
4729
49f9c344
KH
47302008-10-23 Kenichi Handa <handa@m17n.org>
4731
4732 * font.c (font_add_log): Check the values of extra properties.
4733
12bb3111
MR
47342008-10-22 Martin Rudalics <rudalics@gmx.at>
4735
4736 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4737 Reword doc-string.
4738 (Fset_window_parameter): Use NILP.
4739 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 4740 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 4741
bbeb4e99
JB
47422008-10-22 Juanma Barranquero <lekktu@gmail.com>
4743
4744 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4745
47462008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
4747
4748 * nsfns.m (ns_appkit_version): New function.
4749 (x-server-version): Use it.
4750 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4751 (x-server-vendor): Don't check_ns().
4752
4753 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4754
a9b555d3
JB
47552008-10-22 Juanma Barranquero <lekktu@gmail.com>
4756
4757 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4758 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4759
4626499f
KH
47602008-10-22 Kenichi Handa <handa@m17n.org>
4761
e3681952
KH
4762 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4763 scripts.
4764
4626499f
KH
4765 * category.c (word_boundary_p): Check scripts instead of charset.
4766 Handle nil value in word-separating-categories and
4767 word-combining-categories.
4768 (syms_of_category): Fix docstrings of word-separating-categories
4769 and word-combining-categories.
4770
1560f91a
EZ
47712008-10-21 Eli Zaretskii <eliz@gnu.org>
4772
4773 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4774 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4775
f4668441
MR
47762008-10-21 Martin Rudalics <rudalics@gmx.at>
4777
4778 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4779 Rename arg "buffer" to "buffer_or_name".
4780 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4781 it optional.
4782 (no_switch_window): Remove since the return value is not used.
a9b555d3 4783 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4784 Consider window as dedicated when Fwindow_dedicated_p returns a
4785 non-nil value.
4786 * lisp.h: Remove prototype for no_switch_window.
4787
fd75ddb2
JD
47882008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4789
4790 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4791 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4792
07295713
KH
47932008-10-21 Kenichi Handa <handa@m17n.org>
4794
4795 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4796 check Vlatin_extra_code_table.
4797
712adc82
EZ
47982008-10-20 Eli Zaretskii <eliz@gnu.org>
4799
4800 * fileio.c (Fset_file_modes): Doc fix.
4801
f549eb0b
MA
48022008-10-19 Michael Albinus <michael.albinus@gmx.de>
4803
4804 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4805 in arrays.
4806
aac0c6e3
MR
48072008-10-19 Martin Rudalics <rudalics@gmx.at>
4808
4809 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4810 Mention kill-buffer in doc-string.
4811 (Fset_window_buffer): Reinsert tem check removed in last commit.
4812 (Fenlarge_window, Fshrink_window): Have argument names and
4813 doc-string follow Elisp manual more closely.
4814
48152008-10-18 Eli Zaretskii <eliz@gnu.org>
4816
4817 * fileio.c (Fset_file_modes): Doc fix.
4818
48192008-10-18 Martin Rudalics <rudalics@gmx.at>
4820
4821 * window.c (Fwindow_width, Fset_window_start)
4822 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
4823 (Fdelete_windows_on, Freplace_buffer_in_windows):
4824 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
4825 (Fwindow_dedicated_p): Make window argument optional.
4826 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4827 (Fset_window_buffer): Respect any non-nil dedicated value for
4828 window. Rename "buffer" argument to "buffer_or_name".
4829
48302008-10-18 Ulrich Mueller <ulm@gentoo.org>
4831
4832 * m/sh3.h: New file, machine description for SuperH.
4833
48342008-10-17 Martin Rudalics <rudalics@gmx.at>
4835
4836 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4837
48382008-10-17 Kenichi Handa <handa@m17n.org>
4839
4840 * ftfont.c (ftfont_otf_features): Fix indexing
4841 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4842
48432008-10-16 Magnus Henoch <mange@freemail.hu>
4844
4845 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4846 (Fdbus_call_method_asynchronously): Ditto.
4847 This change makes C-h f display the argument list.
4848
48492008-10-16 Chong Yidong <cyd@stupidchicken.com>
4850
4851 * fileio.c (Fexpand_file_name): Doc fix.
4852
4853 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4854 of :foreground and :background equivalent to unspecified (20.x
4855 compatibility).
4856
48572008-10-15 Eli Zaretskii <eliz@gnu.org>
4858
4859 * buffer.c (syms_of_buffer): Doc fix.
4860
48612008-10-14 Kenichi Handa <handa@m17n.org>
4862
4863 * font.c (font_clear_prop): When clearing font width, clear the
4864 average width field too.
4865
48662008-10-12 Andreas Schwab <schwab@suse.de>
4867
4868 * ftfont.c (ftfont_shape_by_flt): Make static.
4869 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4870
4871 * font.c: Don't include <m17n-flt.h>.
4872
48732008-10-10 Eli Zaretskii <eliz@gnu.org>
4874
4875 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4876
48772008-10-09 Eli Zaretskii <eliz@gnu.org>
4878
4879 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4880 away code.
4881
48822008-10-09 Chong Yidong <cyd@stupidchicken.com>
4883
4884 * dispnew.c (update_text_area): Avoid looping due to large glyph
4885 overhangs (bug#1070).
4886
48872008-10-09 Kenichi Handa <handa@m17n.org>
4888
4889 * fontset.c (face_for_char): If face->fontset is negative, just
4890 return ascii_face.
4891
f5385255
SM
4892 * font.c (font_delete_unmatched): Fix previous change.
4893 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
4894
48952008-10-09 Martin Rudalics <rudalics@gmx.at>
4896
4897 * frame.c (Fraise_frame): On text-only terminals select frame in
4898 order to make it visible. (Bug#1061)
4899
49002008-10-08 Chong Yidong <cyd@stupidchicken.com>
4901
4902 * fontset.c (fontset_find_font): Check frame validity.
4903
49042008-10-07 Chong Yidong <cyd@stupidchicken.com>
4905
a9b555d3 4906 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
4907 (xg_display_close): Allow Emacs to close all displays (bug#985).
4908
49092008-10-06 Andreas Schwab <schwab@suse.de>
4910
f5385255 4911 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
4912
49132008-10-06 Chong Yidong <cyd@stupidchicken.com>
4914
f5385255 4915 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 4916
a9b555d3 4917 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
4918
4919 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4920 during initialization.
4921
49222008-10-04 Eli Zaretskii <eliz@gnu.org>
4923
4924 * xdisp.c (redisplay_internal): If frame switched, redisplay the
4925 whole thing on MSDOS frames as well as on a TTY.
4926
4927 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4928 well as for TTY.
4929 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4930 well as on a TTY.
4931
4932 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4933 as well as for TTY.
4934
4935 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4936
4937 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4938 MSDOS frames as well.
4939
49402008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4941
4942 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4943 correct arguments.
b71ac3dd 4944 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
4945
49462008-10-03 Glenn Morris <rgm@gnu.org>
4947
4948 * emacs.c (USAGE1): Add --daemon.
4949
49502008-10-02 Eli Zaretskii <eliz@gnu.org>
4951
4952 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
4953 100, so it's in percents as advertised.
4954
49552008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4956
4957 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
4958 (ns_output.current_cursor, ns_output.desired_cursor)
4959 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
4960 (FRAME_NEW_CURSOR_COLOR): Remove.
4961
4962 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 4963 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
4964 enumeration (HOLLOW_BOX_CURSOR, etc.).
4965
4966 * nsterm.m (ns_frame_rehighlight): Remove commented code.
4967 (draw_window_cursor): Simplify code.
f5385255
SM
4968 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
4969 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 4970 updates manually.
a9b555d3
JB
4971 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
4972 Use core Emacs cursor types.
aac0c6e3 4973
b8ff72fa 4974 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
4975
49762008-10-02 Martin Rudalics <rudalics@gmx.at>
4977
4978 * process.c (Faccept_process_output): Fix doc-string.
4979
49802008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
4981
4982 * gmalloc.c (__sbrk): Also define for uClibc.
4983
4984 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
4985 for uClibc.
4986
49872008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4988
4989 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
4990 styles.
4991 (nsfont_open): Reenable the cache.
4992
49932008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4994
4995 * font.c (font_matching_entity): Reflect ATTRS in font selection.
4996 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
4997
49982008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
4999
5000 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5001 a suspended terminal.
5002
50032008-09-30 Michael Albinus <michael.albinus@gmx.de>
5004
5005 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5006
50072008-09-30 Eli Zaretskii <eliz@gnu.org>
5008
5009 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5010
50112008-09-30 Chong Yidong <cyd@stupidchicken.com>
5012
5013 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5014 in a continued line coincides with a line beginning.
5015
50162008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5017
5018 * nsfont.m (nsfont_trait_distance): Fix bug.
5019 (nsfont_list): Return a list rather than a vector (syncs with Handa
5020 changes of 2008-05-14).
5021 (nsfont_open): Improve logging.
5022
50232008-09-29 Andreas Schwab <schwab@suse.de>
5024
5025 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5026
50272008-09-28 Martin Rudalics <rudalics@gmx.at>
5028
5029 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5030 name as char-resolve-modifiers.
5031 Reported by: Markus Triska <markus.triska@gmx.at>
5032
50332008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5034
5035 * dispnew.c (init_display): Return earlier when running as a daemon.
5036
50372008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5038
5039 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5040
50412008-09-27 Eli Zaretskii <eliz@gnu.org>
5042
5043 * composite.c (Fcomposition_get_gstring)
5044 (Fcompose_region_internal, Fcompose_string_internal)
5045 (Ffind_composition_internal): Doc fix.
5046 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5047 (syms_of_composite) <auto-composition-function>: Doc fix.
5048 (syms_of_composite) <composition-function-table>: Doc fix.
5049
50502008-09-25 Chong Yidong <cyd@stupidchicken.com>
5051
5052 * search.c (wordify): New argument for lax word-ends.
5053 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5054
50552008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5056
5057 * lisp.h (is_daemon): Declare.
5058 * dispnew.c (init_display): Do not try to initialize the terminal
5059 when running as a daemon.
5060
50612008-09-22 Chong Yidong <cyd@stupidchicken.com>
5062
5063 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5064 x_display_pixel_height.
5065
50662008-09-22 Martin Rudalics <rudalics@gmx.at>
5067
5068 * undo.c (record_point): Don't call Fundo_boundary for first
5069 change. (Bug#731)
5070
50712008-09-22 Juanma Barranquero <lekktu@gmail.com>
5072
5073 * emacs.c (Fdaemonp): Doc fix.
5074
50752008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5076
5077 * emacs.c (main): Place #ifdef in the proper place.
5078
50792008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5080
5081 * emacs.c (standard_args): Add --daemon.
5082 (main): Disconnect from the terminal when --daemon is passed.
5083 (is_daemon): New variable.
5084 (Fdaemonp): New function.
5085 (syms_of_emacs): Defsubr it.
5086
50872008-09-20 Chong Yidong <cyd@stupidchicken.com>
5088
5089 * xdisp.c (get_next_display_element): Handle string display
5090 correctly when checking for the end of a box run.
5091
50922008-09-20 Glenn Morris <rgm@gnu.org>
5093
5094 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5095 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5096 (Frename_file): Avoid copying to trash if a rename involves
5097 a delete. (Bug#964).
5098
50992008-09-20 Eli Zaretskii <eliz@gnu.org>
5100
5101 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5102 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5103 frames as well as termcap frames.
5104 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5105 get_named_tty.
5106
51072008-09-19 Eli Zaretskii <eliz@gnu.org>
5108
5109 * process.c (procfs_system_process_attributes): Fix cmdline in
5110 case /proc/PID/cmdline is empty.
5111
5112 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5113 x_display_pixel_height.
5114
51152008-09-19 Juanma Barranquero <lekktu@gmail.com>
5116
5117 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5118
5119 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5120 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5121
51222008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5123
5124 * dispextern.h (struct it): Move line_wrap away from the middle of
5125 bitfields. Move voffset in struct iterator_stack_entry after the
5126 bitfields. Move tab_width near after another short.
5127
51282008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5129
5130 * frame.h (struct frame): Move alpha from the middle of bitfields.
5131
5132 * window.h (struct window): Move frozen_window_start_p after the
5133 rest of the bitfields to reduce padding.
5134
51352008-09-18 Chong Yidong <cyd@stupidchicken.com>
5136
5137 * xterm.h (x_display_info): Remove `height' and `width' members.
5138
5139 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5140
5141 * w32term.h (w32_display_info): Remove `height', `width',
5142 `height_in', and `width_in' members.
5143
b8ff72fa
SM
5144 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5145 New functions.
aac0c6e3
MR
5146 (x_calc_absolute_position): Use them.
5147 (x_term_init): Omit removed `height' and `width' members.
5148
b8ff72fa
SM
5149 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5150 New functions.
aac0c6e3
MR
5151 (w32_read_socket, x_calc_absolute_position): Use them.
5152 (w32_initialize_display_info, w32_term_init): Omit removed members
5153 of w32_display_info.
5154
b8ff72fa
SM
5155 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5156 New functions.
5157 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5158
b8ff72fa
SM
5159 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5160 New functions.
aac0c6e3
MR
5161 (x_calc_absolute_position): Use them.
5162 (x_term_init): Omit removed `height' and `width' members.
5163
5164 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5165 (compute_tip_xy):
5166 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5167 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5168 x_display_pixel_width.
5169
51702008-09-18 Kenichi Handa <handa@m17n.org>
5171
5172 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5173 (composition_compute_stop_pos): Fix handling of static composition.
5174 (Fcomposition_get_gstring): Check FROM and TO at first.
5175
51762008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5177
46e722a9 5178 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5179 mixup (YAILOM).
5180
51812008-09-17 Chong Yidong <cyd@stupidchicken.com>
5182
5183 * indent.c (Fvertical_motion): Use position reported by iterator
5184 instead of PT for determining screen motion (bug#943).
5185
51862008-09-17 Romain Francoise <romain@orebokech.com>
5187
5188 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5189
51902008-09-17 Kenichi Handa <handa@m17n.org>
5191
5192 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5193
5194 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5195 if necessary.
5196
51972008-09-16 Kenichi Handa <handa@m17n.org>
5198
5199 * coding.c (make_conversion_work_buffer): Avoid calling
5200 Fget_buffer_create if it is not necessary.
5201
52022008-09-15 Martin Rudalics <rudalics@gmx.at>
5203
5204 * window.c (Fselect_window): Don't update window_select_count and
5205 use_time when norecord is not nil.
5206
52072008-09-14 Kenichi Handa <handa@m17n.org>
5208
5209 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5210 specpdl_ptr.
5211
52122008-09-12 Kenichi Handa <handa@m17n.org>
5213
5214 * indent.c (scan_for_column): Don't handle automatic composition
5215 if the current buffer is not associated with a window.
5216
5217 * composite.c (composition_reseat_it): If the current buffer is
5218 not associated with a window, ignore the automatic composition.
5219 (find_automatic_composition): Likewise.
5220
52212008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5222
5223 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5224 (Fgpm_mouse_stop): Use it.
5225 * termhooks.h (close_gpm): Declare.
5226 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5227 connection if Gpm_GetEvent fails.
5228
5229 * window.c (set_window_buffer): Always preserve current-buffer.
5230
52312008-09-12 Glenn Morris <rgm@gnu.org>
5232
5233 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5234
52352008-09-11 Glenn Morris <rgm@gnu.org>
5236
5237 * charset.c (charset-map-path): Doc fix.
5238
52392008-09-10 Kenichi Handa <handa@m17n.org>
5240
5241 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5242
5243 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5244 compose a grapheme cluster with the preceding base glyph.
5245
5246 * composite.c (composition_compute_stop_pos): Fix previous change.
5247 Reset cmp_it->id to -1 at first.
5248
52492008-09-10 Glenn Morris <rgm@gnu.org>
5250
5251 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5252
52532008-09-09 Chong Yidong <cyd@stupidchicken.com>
5254
5255 * keyboard.c (read_key_sequence): Reapply translation maps when
5256 switching keyboards.
5257
52582008-09-09 Kenichi Handa <handa@m17n.org>
5259
5260 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5261 characters.
5262
5263 * composite.c (FORWARD_CHAR): Fix calculation
5264 of (POSITION).pos_byte.
5265 (composition_compute_stop_pos): Limit the search of composition to
5266 at most 500 characters ahead. If we reach the limit or find a
5267 newline, set cmp_it->ch to -2 and return 0.
5268 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5269
52702008-09-08 Kenichi Handa <handa@m17n.org>
5271
5272 * indent.c (Fvertical_motion): Be sure to set
5273 it_overshoot_expected if it.cmp_it.id is non-negative.
5274
52752008-09-07 Andreas Schwab <schwab@suse.de>
5276
5277 * callproc.c (Fcall_process): Don't hold references to string data
5278 across garbage collection. Move initialisation of new_argv down
5279 to avoid compiler bug.
5280
52812008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5282
5283 * process.c (Fsystem_process_attributes): Doc fix.
5284
52852008-09-07 Chong Yidong <cyd@stupidchicken.com>
5286
5287 * callproc.c (Fcall_process): Canonicalize current directory name.
5288
5289 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5290 iterator advances to the next line if the current line ends in a
5291 continued tab.
5292
52932008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5294
5295 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5296 member to point to cmp_from.
5297
5298 * xdisp.c: Doc fix for references to gidx data member.
5299
53002008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5301
5302 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5303
53042008-09-07 Kenichi Handa <handa@m17n.org>
5305
5306 * composite.c (FORWARD_CHAR): Check STOP after
5307 incrementing (POSITION).pos.
5308
53092008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5310
5311 * process.c (Fsystem_process_attributes): Doc fix.
5312
53132008-09-06 Chong Yidong <cyd@stupidchicken.com>
5314
5315 * keyboard.c (Ftop_level): Doc fix.
5316
53172008-09-06 Eli Zaretskii <eliz@gnu.org>
5318
5319 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5320 minibuffer, don't let lower part of menu invade the echo area.
5321
5322 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5323 "char *q" to access menu text and advance through it. Revert the
5324 change that displayed ">" instead of ASCII character 0x10.
5325
53262008-09-05 Eli Zaretskii <eliz@gnu.org>
5327
5328 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5329 toggle boxes and radio buttons on MS-DOS as well.
5330
53312008-09-05 Kenichi Handa <handa@m17n.org>
5332
5333 * composite.c (autocmp_chars): Check lookback count.
5334 (composition_compute_stop_pos): Set cmp_it->lookback.
5335 (composition_reseat_it): Check lookback count.
5336 (struct position_record): New struct.
5337 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5338 (find_automatic_composition): New function.
5339 (composition_adjust_point): Use find_automatic_composition.
5340
5341 * dispextern.h (struct composition_it): New member lookback.
5342
53432008-09-02 Chong Yidong <cyd@stupidchicken.com>
5344
5345 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5346 if moving by a single line.
5347
53482008-09-02 Andreas Schwab <schwab@suse.de>
5349
5350 * xterm.c (x_delete_display): Fix merge error.
5351
5352 * fileio.c (Fexpand_file_name): Remove unused variables.
5353
53542008-09-02 Eli Zaretskii <eliz@gnu.org>
5355
5356 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5357 storage on all platforms, not just on DOS_NT.
5358
53592008-09-02 Jason Rumney <jasonr@gnu.org>
5360
b8ff72fa
SM
5361 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5362 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5363
53642008-09-01 Chong Yidong <cyd@stupidchicken.com>
5365
5366 * xfaces.c (Finternal_set_alternative_font_family_alist)
5367 (Finternal_set_alternative_font_registry_alist): Properly copy
5368 entire alist structure.
5369
53702008-09-01 Kenichi Handa <handa@m17n.org>
5371
d66c0241 5372 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5373 representative chars of the script is a vector.
d66c0241
JB
5374 (ftfont_list): Handle the case where the representative chars of
5375 the script is a vector.
aac0c6e3
MR
5376
5377 * character.c (syms_of_character): Docstring of
5378 script-representative-chars fixed.
5379
53802008-08-31 Eli Zaretskii <eliz@gnu.org>
5381
5382 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5383 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5384 the menu. Allocate larger buffer for `text', to account for
5385 possible ^C characters.
5386
53872008-08-31 Martin Rudalics <rudalics@gmx.at>
5388
5389 * xdisp.c (prepare_menu_bars): Don't call
5390 Vwindow_size_change_functions with arg Qt.
5391
53922008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5393
5394 * font.h (font_range):
5395 * fileio.c (report_file_error):
46e722a9
SM
5396 * composite.c (composition_update_it): Yet another int/Lisp_Object
5397 mixup (YAILOM).
aac0c6e3
MR
5398
53992008-08-30 Glenn Morris <rgm@gnu.org>
5400
5401 * data.c (Fmake_variable_frame_local): Doc fix.
5402
5403 * frame.c (Fmodify_frame_parameters): Doc fix.
5404
54052008-08-30 Eli Zaretskii <eliz@gnu.org>
5406
5407 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5408 needed by GetTokenInformation.
5409 (w32_system_process_attributes): Check return values of all system
5410 APIs.
5411
5412 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5413 only when the state changes.
5414 (IT_update_begin, IT_update_end): Add termscript trace.
5415
5416 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5417 clipboard is unavailable. Set dst to NULL if it doesn't point to
5418 malloc'ed data.
5419 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5420 passing random values to xfree.
5421
5422 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5423 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5424
54252008-08-29 Jason Rumney <jasonr@gnu.org>
5426
5427 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5428
54292008-08-29 Eli Zaretskii <eliz@gnu.org>
5430
5431 * composite.c (fill_gstring_body): Avoid compiler warnings.
5432
5433 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5434 LGLYPH_SET_CODE to avoid compiler warnings.
5435
2ae37cf0 5436 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5437
5438 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5439
5440 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5441 LGLYPH_SET_CODE.
5442
54432008-08-29 Kenichi Handa <handa@m17n.org>
5444
5445 * fileio.c (report_file_error): Don't downcase the first character
5446 of errstring if it is still unibyte.
5447
54482008-08-29 Kenichi Handa <handa@m17n.org>
5449
5450 These changes are to re-implement the automatic composition so
5451 that it doesn't use text properties.
5452
5453 * Makefile.in (ftfont.o): Depend on composite.h.
5454 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5455
5456 * character.h (Vunicode_category_table): Extern it.
5457
5458 * character.c (Vunicode_category_table): New variable.
5459 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5460
5461 * chartab.c (optimize_sub_char_table): Perform more greedy
5462 optimization.
5463
b8ff72fa
SM
5464 * composite.h (enum composition_method):
5465 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5466 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5467 (Vcomposition_function_table): Extern it.
5468 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5469 (composition_gstring_put_cache, composition_gstring_from_id)
5470 (composition_gstring_p, composition_gstring_width)
5471 (composition_compute_stop_pos, composition_reseat_it)
5472 (composition_update_it, composition_adjust_point): Extern them.
5473 (Fcomposition_get_gstring): EXFUN it.
5474
d66c0241 5475 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5476 (Vcomposition_function_table)
5477 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5478 (gstring_hash_table, gstring_work, gstring_work_headers):
5479 New variables.
aac0c6e3
MR
5480 (gstring_lookup_cache, composition_gstring_put_cache)
5481 (composition_gstring_from_id, composition_gstring_p)
5482 (composition_gstring_width, fill_gstring_header)
5483 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5484 (composition_reseat_it, composition_update_it)
b8ff72fa 5485 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5486 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5487 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5488 Defsubr compostion_get_gstring.
5489
5490 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5491 cmp_id.
5492 (struct glyph_string): Delete the member gidx. New members
5493 cmp_id, cmp_from, and cmp_to.
5494 (enum it_method): Delete GET_FROM_COMPOSITION.
5495 (struct composition_it): New struct.
5496 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5497 Delete c, len, cmp_id, cmp_len in u.comp.
5498
5499 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5500 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5501 (enum lglyph_indices): Likewise.
b8ff72fa 5502 (font_range): Adjust extern.
aac0c6e3
MR
5503 (font_fill_lglyph_metrics): Extern it.
5504
5505 * font.c (QCf): New variable.
5506 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5507 (font_prepare_composition): Delete this function.
5508 (font_range): Type and arguments changed.
5509 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5510 (font_fill_lglyph_metrics): New function.
b8ff72fa 5511 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5512 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5513 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5514 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5515
5516 * fontset.h (font_for_char): Extern it.
5517
5518 * fontset.c (font_for_char): New function.
5519
5520 * ftfont.c: Include composite.h.
5521 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5522 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5523
5524 * indent.c: Include composite.h and dispextern.h.
5525 (check_composition): Delete this function.
5526 (scan_for_column): Handle composition by
5527 composition_compute_stop_pos, composition_reseat_it, and
5528 composition_update_it.
5529 (compute_motion): Likewise.
5530 (Fvertical_motion): Fix checking of composition.
5531
5532 * keyboard.c (adjust_point_for_property): Check composition by
5533 composition_adjust_point.
5534
b8ff72fa 5535 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5536 struct glyph_string.
5537
b8ff72fa
SM
5538 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5539 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5540 struct glyph.
5541 (produce_composite_glyph): Likewise.
5542
b8ff72fa
SM
5543 * w32term.c (x_draw_composite_glyph_string_foreground):
5544 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5545 (x_draw_glyph_string): Likewise.
5546
5547 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5548 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5549
5550 * xdisp.c: Include font.h.
5551 (it_props): Delete the entry for Qauto_composed.
5552 (init_iterator): Initialize it->cmp_it.id to -1.
5553 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5554 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5555 (handle_auto_composed_prop): Delete it.
5556 (handle_composition_prop): Handle only static composition.
5557 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5558 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5559 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5560 (pop_it): Likewise.
5561 (get_next_element): Delete next_element_from_composition.
5562 (CHAR_COMPOSED_P): New macro.
5563 (get_next_display_element): For automatic composition, get a face
5564 from the font in the glyph-string.
5565 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5566 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5567 (next_element_from_string): Check if the character at the current
5568 position is composed by CHAR_COMPOSED_P.
5569 (next_element_from_buffer): Likewise.
d66c0241
JB
5570 (next_element_from_composition): Adjust for the change of struct it.
5571 Update it->cmp_it.
b8ff72fa
SM
5572 (dump_glyph): Adjust for the change of struct glyph.
5573 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5574 it and struct glyph. Don't handle automatic composition here.
5575 (fill_gstring_glyph_string): New function.
5576 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5577 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5578 (BUILD_GSTRING_GLYPH_STRING): New macro.
5579 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5580 automatic composition.
b8ff72fa 5581 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5582 struct glyph.
b8ff72fa 5583 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5584
b8ff72fa 5585 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5586 the change of struct glyph_string.
5587 (x_draw_glyph_string): Likewise.
5588
55892008-08-29 Glenn Morris <rgm@gnu.org>
5590
5591 * buffer.c (word-wrap): Doc fix.
5592 * xdisp.c (truncate-partial-width-windows): Doc fix.
5593 Increase default to 50.
5594
55952008-08-29 Chong Yidong <cyd@stupidchicken.com>
5596
5597 * xdisp.c (update_tool_bar_unwind): New function.
5598 (update_tool_bar): Temporarily set selected frame before building
5599 tool-bar items.
5600
56012008-08-28 Michael Albinus <michael.albinus@gmx.de>
5602
5603 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5604 snprintf, respectively.
5605 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5606
56072008-08-28 Chong Yidong <cyd@stupidchicken.com>
5608
5609 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5610 LDFLAGS to GNUstep CC invocation.
5611
56122008-08-27 Chong Yidong <cyd@stupidchicken.com>
5613
5614 * indent.c (Fvertical_motion): Revert last change. Handle the
5615 general case where we are moving forward, and PT spans multiple
5616 screen lines.
5617
5618 * eval.c (find_handler_clause): Temporarily increase
5619 max-lisp-eval-depth while printing the backtrace buffer, to
5620 guarantee that help-mode code can run.
5621
56222008-08-27 Eli Zaretskii <eliz@gnu.org>
5623
5624 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5625 colors under -rv.
5626 (IT_set_frame_parameters): Don't swap foreground and background
5627 colors if `(reverse . t)' is present in the frame properties.
5628 (internal_terminal_init): Call init_frame_faces only for the
5629 initial frame.
5630
56312008-08-27 Andreas Schwab <schwab@suse.de>
5632
5633 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5634
56352008-08-27 Andreas Schwab <schwab@suse.de>
5636
5637 * search.c (search_buffer): Set char_base to zero only at the end.
5638
56392008-08-27 Kenichi Handa <handa@m17n.org>
5640
b8ff72fa 5641 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5642
56432008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5644
5645 * xterm.c (x_term_init): Temporarily hide the partially
5646 initialized terminal while calling vendor-specific-keysyms.
5647
56482008-08-26 Eli Zaretskii <eliz@gnu.org>
5649
5650 * msdos.c (internal_terminal_init): Most initializations done only
5651 once, especially initial_screen_colors[] and termscript open.
5652
56532008-08-26 Chong Yidong <cyd@stupidchicken.com>
5654
5655 * eval.c (Fcondition_case): Doc fix.
5656
5657 * widgetprv.h (EmacsFramePart): Change font member to the new font
5658 struct.
5659
5660 * widget.c: Include character.h and font.h for XSETFONT.
5661 (setup_frame_gcs): Compute X font id from font struct, just once.
5662
56632008-08-26 Eli Zaretskii <eliz@gnu.org>
5664
5665 * term.c (get_named_tty): Fix last change.
5666
56672008-08-26 Chong Yidong <cyd@stupidchicken.com>
5668
5669 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5670 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5671
56722008-08-25 Eli Zaretskii <eliz@gnu.org>
5673
5674 * frame.c (do_switch_frame): Mark previously displayed frame as
5675 obscured for FRAME_MSDOS_P frames as well.
5676
56772008-08-24 Eli Zaretskii <eliz@gnu.org>
5678
5679 * frame.c (make_terminal_frame): Initialize f->terminal,
5680 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5681 Set the top frame to newly created frame.
5682 (Fmake_terminal_frame): Reuse the_only_display_info.
5683
5684 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5685 estimating available memory.
5686
b97439ce 56872008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5688
5689 * nsterm.m (ns_draw_window_cursor): Don't call
5690 NSDisableScreenUpdates and NSEnableScreenUpdates on
5691 non-NS_IMPL_COCOA systems.
5692
56932008-08-23 Andreas Schwab <schwab@suse.de>
5694
5695 * process.c (procfs_system_process_attributes): Fix use of
5696 uninitialized variables.
5697
56982008-08-23 Eli Zaretskii <eliz@gnu.org>
5699
5700 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5701
5702 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5703 calling tty-set-up-initial-frame-faces.
5704
b8ff72fa
SM
5705 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5706 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5707
5708 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5709 addition to output_termcap.
5710
5711 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5712
5713 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5714 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5715 highlight.
5716
5717 * process.c [!subprocesses]: Define QCname.
5718 (syms_of_process): Intern and staticpro it.
5719
5720 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5721 Adjust for changes in encoding/decoding routines.
5722 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5723 encode_coding and decode_coding.
5724
b8ff72fa 5725 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5726
5727 * dosfns.c: Include frame.h before termhooks.h.
5728 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5729 variable termscript.
5730
5731 * s/msdos.h (USER_FULL_NAME): Define.
5732 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5733
5734 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5735 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5736 pw->pw_gecos.
5737
5738 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5739 SELECTED_FRAME as additional (1st) argument.
5740 (tty_read_avail_input): Handle output_msdos_raw in
5741 addition to output_termcap.
5742
5743 * msdos.c: Include frame.h before termhooks.h.
5744 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5745 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5746 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5747 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5748 (IT_set_terminal_modes, IT_reset_terminal_modes)
5749 (IT_set_frame_parameters): Use tty->termscript instead of a global
5750 variable termscript.
5751 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5752 global variable terminal_coding. Don't refer to
5753 Vnonascii_translation_table.
5754 (internal_terminal_init): Set Vwindow_system in current_kboard.
5755 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5756 Announce date and time of session start, if termscript is open.
5757 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5758 term.c:init_tty). Open termscript only of not already open.
5759 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5760 here instead of dos_ttraw. Don't initialize display if this is an
5761 initial tty. Don't set FRAME_FONT.
5762 (Vwindow_system_version): Bump to 23.
5763 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5764 is available, set up mouse_position_hook.
5765 (dos_ttraw, IT_set_terminal_modes): If called with initial
5766 terminal, do nothing.
5767 (IT_set_frame_parameters): Handle the Qtty_type frame
5768 parameter by calling internal_terminal_init.
5769 (dos_set_window_size, show_mouse_face)
5770 (clear_mouse_face, IT_note_mode_line_highlight)
5771 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5772 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5773 (initialize_msdos_display): New function.
5774 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5775 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5776 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5777 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5778 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5779 (request_sigio, unrequest_sigio): Don't define, now defined on
5780 sysdep.c.
5781 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5782
5783 * term.c [MSDOS]: Include msdos.h.
5784 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5785 conditional to DOS_NT. Allow only one call to this function in a
5786 session. Don't allocate a new struct tty_display_info; instead,
5787 reuse the_only_display_info. Call get_tty_size to get screen
5788 dimensions. Call init_baud_rate to set bad_rate.
5789 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5790 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5791 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5792 (get_tty_terminal, get_named_tty, Ftty_type)
5793 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5794 output_termcap.
b8ff72fa
SM
5795 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5796 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5797 only when subprocesses are supported.
aac0c6e3
MR
5798
5799 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5800 f->output_data.x.
5801 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5802 terminal devices.
5803
5582fbc7 5804 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
5805 x_output.
5806 (FRAME_FONT): Use output_data.tty.
5807 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
5808 (struct x_display_info): Rename from display_info. Update all users in
5809 msdos.c.
aac0c6e3 5810 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 5811 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
5812 (dos_ttraw): Update prototype.
5813
5814 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5815 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5816
58172008-08-23 Jason Rumney <jasonr@gnu.org>
5818
5819 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5820 (fn_TIFFSetDirectory): New library function used.
5821 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5822 (tiff_load): Use :index to select among multiple images. Set count
5823 property when multiple images exist.
5824 (gif_format): Use :index, not :image.
5825
58262008-08-23 Chong Yidong <cyd@stupidchicken.com>
5827
5828 * xdisp.c (try_scrolling): Check INT_MAX instead of
5829 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5830 to obtain INT_MAX.
5831
58322008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5833
5834 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5835
58362008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5837
5838 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5839 GNUstep library location.
5840
58412008-08-21 Chong Yidong <cyd@stupidchicken.com>
5842
5843 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5844 before using it.
5845
5846 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5847
58482008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5849
5850 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5851 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5852 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5853 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5854 (EmacsApp-cursor_blink_handler): Remove declaration.
5855 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5856 match 01 Feb 2008 changes in xterm.c.
5857 (ns_read_socket): Add cast to avoid warning.
5858 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5859 GNUstep.
5860
58612008-08-20 Chong Yidong <cyd@stupidchicken.com>
5862
5863 * xselect.c (x_get_foreign_selection): Return nil if desired
5864 selection could not be obtained, instead of signalling an error.
5865
58662008-08-20 David Reitter <david.reitter@gmail.com>
5867
5868 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5869 * nsterm.m: Remove ns-specific code for cursor blinking.
5870 (ns_draw_window_cursor): Clear cursor properly rather than
5871 redrawing the area. Respect width of bar cursors.
5872 These changes enable the use of generic blink-cursor-mode and
5873 generic cursor types in NS and support smooth cursor movements (do
5874 not blink off after command).
5875 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5876 Nextstep, too.
5877
58782008-08-19 Kenichi Handa <handa@m17n.org>
5879
5880 * font.c (Vfont_log_deferred): New variable.
5881 (font_add_log): Check Vfont_log_deferred.
5882 (font_deferred_log): New function.
5883
5884 * font.h (font_deferred_log): Extern it.
5885
5886 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5887 for sorting.
5888 (face_for_char): Use deferred log.
5889
58902008-08-18 Kenichi Handa <handa@m17n.org>
5891
5892 * fontset.c (face_for_char): Add font log.
5893
5894 * font.c (font_add_log): Add the font properties :script, :lang,
5895 and :otf in the log.
5896
58972008-08-17 Chong Yidong <cyd@stupidchicken.com>
5898
5899 * xdisp.c: Remove dead code.
5900 (handle_invisible_prop, next_overlay_string): Defer call to
5901 setup_for_ellipsis.
5902 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5903
59042008-08-15 Chong Yidong <cyd@stupidchicken.com>
5905
5906 * xfaces.c (lookup_derived_face): Properly handle possible zero
5907 return value of get_lface_attributes.
5908 (merge_faces): Don't tell lookup_derived_face to signal an error
5909 if face is not found.
5910
5911 * dired.c (Fdirectory_files): Doc fix.
5912
5913 * process.c (make_process): Initialize kill_without_query struct
5914 member.
5915
59162008-08-15 Eli Zaretskii <eliz@gnu.org>
5917
5918 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5919 Alternative calculation of totphys for Visual Studio 6.
5920
5921 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5922
5923 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5924 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5925 All users changed.
5926 (stat): Only root directory passed to GetDriveType. Allow RAM
5927 disk as well as local fixed disk when w32-get-true-file-attributes
5928 is set to `local'.
5929 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5930 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5931 (w32_cached_id, w32_add_to_cache): New functions.
5932 (get_name_and_id): Look account names in the cache before calling
5933 lookup_account_sid.
5934 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5935 New initialization flags.
5936 (globals_of_w32): Initialize them to zero.
5937 (w32_system_process_attributes): Use w32_cached_id and
5938 w32_add_to_cache.
5939
59402008-08-14 Lawrence Mitchell <wence@gmx.li>
5941
5942 * lread.c (Fread_char, Fread_char_exclusive): If no character
5943 event is read before timeout is reached, return nil, rather than
5944 converting to a number.
5945
59462008-08-14 Chong Yidong <cyd@stupidchicken.com>
5947
5948 * fns.c (use_dialog_box): Doc fix.
5949
5950 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
5951 on OS X.
5952
59532008-08-13 Chong Yidong <cyd@stupidchicken.com>
5954
5955 * frame.c (Qns_parse_geometry): New var.
5956 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
5957
59582008-08-11 Chong Yidong <cyd@stupidchicken.com>
5959
5960 * xdisp.c (x_produce_glyphs): Handle the case when font has no
5961 space character in calculating tabs.
5962
59632008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
5964
5965 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
5966
59672008-08-10 Glenn Morris <rgm@gnu.org>
5968
5969 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
5970 silence gcc "limited range of data type" warnings in some
5971 make_fixnum_or_float calls.
5972
59732008-08-09 Eli Zaretskii <eliz@gnu.org>
5974
5975 * w32.c (w32_system_process_attributes): If the process does not
5976 exist, return nil.
5977
5978 * w32.c: Include thelp32.h, psapi.h and coding.h.
5979 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
5980 declarations.
5981 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
5982 (Process32Next_Proc): New typedefs.
5983 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
5984 (g_b_init_process32_next, g_b_init_open_thread_token)
5985 (g_b_init_impersonate_self, g_b_init_revert_to_self)
5986 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
5987 (g_b_init_get_process_working_set_size)
5988 (g_b_init_global_memory_status_ex): New static variables.
5989 (globals_of_w32): Initialize them.
5990 (create_toolhelp32_snapshot, process32_first, process32_next)
5991 (open_thread_token, impersonate_self, revert_to_self)
5992 (get_process_memory_info, get_process_working_set_size)
5993 (global_memory_status, global_memory_status_ex): New wrapper
5994 functions.
5995 (w32_list_system_processes, w32_system_process_attributes)
5996 (enable_privilege, restore_privilege, ltime, process_times):
5997 New functions.
5998 (convert_time_raw): New function.
5999 (convert_time): Remove conversion of FILETIME into time in 100
6000 nsec units, call convert_time_raw instead.
6001
6002 * process.h (w32_list_system_processes, w32_system_process_attributes):
6003 Add prototypes.
6004 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6005 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6006 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6007 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6008
6009 * process.c (Fsystem_process_attributes): Doc fix.
6010
60112008-08-08 Chong Yidong <cyd@stupidchicken.com>
6012
6013 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6014 a continued multi-char glyph; if so, advance to the actual glyph.
6015
60162008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6017
6018 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6019
6020 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6021 (.m.o): Use it.
6022 * config.in: Regenerate.
6023
60242008-08-07 Chong Yidong <cyd@stupidchicken.com>
6025
6026 * xdisp.c (redisplay_window): Revert last change.
6027 (try_window): Check bottom scroll margin too.
6028
60292008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6030
6031 * config.in: Regenerate.
6032
6033 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6034 -list-load-path-shadows'.
6035 (nsgui.h): Reduce number of things depending on it.
6036
60372008-08-06 Chong Yidong <cyd@stupidchicken.com>
6038
6039 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6040 instead of window-end which does the wrong thing at eob.
6041 (try_cursor_movement): Minor optimization.
6042 (redisplay_window): If scroll margin is defined, don't assume
6043 window doesn't need scrolling.
6044
60452008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6046
6047 * config.in: Regenerate.
6048
6049 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6050 (mostlyclean): Don't delete *.d under NS.
6051
6052 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6053
60542008-08-06 Kenichi Handa <handa@m17n.org>
6055
6056 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6057
60582008-08-06 Andreas Schwab <schwab@suse.de>
6059
6060 * config.in: Regenerate.
6061
60622008-08-05 Chong Yidong <cyd@stupidchicken.com>
6063
6064 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6065 forcing a window start.
6066
6067 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6068 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6069
60702008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6071
6072 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6073 argument.
6074
60752008-08-05 Juanma Barranquero <lekktu@gmail.com>
6076
6077 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6078 <scroll-down-aggressively, before-change-functions>:
6079 <after-change-functions>: Reflow docstrings.
6080
60812008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6082 Ken Raeburn <raeburn@gnu.org>
6083
6084 Dock menu customization, based on a patch by Ken Raeburn, plus some
6085 other fixes.
6086 * nsmenu.m (dockMenu): New variable.
6087 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6088
6089 * nsterm.h (dockMenu): Declare.
6090
6091 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6092 (ns_term_init): Initialize dockMenu.
6093 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6094 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6095 left.
6096
6097 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6098
60992008-08-04 Chong Yidong <cyd@stupidchicken.com>
6100
6101 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6102
6103 * config.in: Regenerate.
6104
61052008-08-04 Seiji Zenitani <zenitani@mac.com>
6106
6107 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6108
61092008-08-04 Chong Yidong <cyd@stupidchicken.com>
6110
6111 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6112
61132008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6114
6115 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6116
6117 * keyboard.h: Comment an #endif.
6118
6119 * lisp.h (have_menus_p): Adjust comment.
6120
6121 * menu.c (find_and_return_menu_selection): Fix comparison with
6122 client_data.
6123
6124 * nsmenu.m (popup_activated_flag): New variable.
6125 (popup_activated): New function.
6126 (menu-or-popup-active-p): New exported lisp definition.
6127 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6128 when popup done.
6129 (ns_popup_dialog): Set popup_activated_flag.
6130
6131 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6132 version for GNUstep (handled by conditional typedef in nsterm.m).
6133 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6134 in rgb.txt).
6135
6136 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6137
6138 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6139
6140 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6141
6142 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6143 shortcircuit if popup_activated like GTK and X toolkit.
6144
6145 * m/inter386.h: Change DARWIN to DARWIN_OS.
6146
6147 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6148 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6149 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6150 comment on NO_SOCK_SIGIO.
6151
61522008-08-03 Chong Yidong <cyd@stupidchicken.com>
6153
6154 * nsterm.m (windowDidResize): Remove stopModal call.
6155
61562008-08-03 Andreas Schwab <schwab@suse.de>
6157
6158 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6159 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6160
61612008-08-02 Chong Yidong <cyd@stupidchicken.com>
6162
6163 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6164 Don't use uninitialized pointer variable when using getrlimit.
6165
61662008-08-02 Jason Rumney <jasonr@gnu.org>
6167
6168 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6169
61702008-08-02 Eli Zaretskii <eliz@gnu.org>
6171
6172 * alloc.c (NSTATICS): Bump to 0x640.
6173
6174 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6175
6176 * lisp.h: Add prototype for directory_files_internal.
6177
6178 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6179 New functions.
6180 (syms_of_process): Defsubr them. Add initializations for various
6181 Q* symbols used in procfs_system_process_attributes.
6182 (procfs_list_system_processes, procfs_system_process_attributes)
6183 [HAVE_PROCFS]: New functions.
6184 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6185 (procfs_get_total_memory): New functions.
6186
61872008-08-01 Juanma Barranquero <lekktu@gmail.com>
6188
6189 * xfaces.c (Fx_load_color_file): Fix previous change;
6190 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6191
61922008-08-01 Michael Albinus <michael.albinus@gmx.de>
6193
6194 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6195
61962008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6197
6198 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6199
62002008-08-01 Chong Yidong <cyd@stupidchicken.com>
6201
6202 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6203
6204 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6205 define NSApplicationDelegateReplySuccess.
6206 (EmacsView -converstationIdentifier): Use long instead of
6207 NSInteger for GNUstep, since it doesn't have NSInteger.
6208
6209 * xmenu.c: Revert last change.
6210
6211 * keyboard.h: Fix last change.
6212
62132008-08-01 Juanma Barranquero <lekktu@gmail.com>
6214
6215 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6216 on Windows.
6217
62182008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6219
6220 Warning clearing and clean-up in NS port.
6221 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6222 Add prototypes.
6223 * nsgui.h (FACE_DEFAULT): Remove, unused.
6224 (XGCValues): Change colors to unsigned long.
6225 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6226 nsterm.m.
6227 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6228 (ns_list_fonts): Remove, unused.
6229 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6230 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6231 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6232 (nsfont_draw): Compare face colors to 0, not nil.
6233 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6234 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6235 (-addSubmenuWithTitle:): Use NSMenuItem class.
6236 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6237 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6238 (ns_clip_to_row): Make gc arg a BOOL.
6239 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6240 ns_clip_to_row() call.
6241 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6242 used). Cast FRAME_FONT assignments.
6243 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6244 (ns_string_to_lispmod): Change arg to const char.
6245 (ns_term_init): Use NSMenuItem class.
6246 (EmacsApp -openFile:): Move to different section of file.
6247 (EmacsApp -application:openFiles:): Don't return a value, call
6248 -replyToOpenOrPrint:.
6249 (EmacsView -keyDown:): Fix up cast.
6250 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6251 (EmacsView -menuDown:): Cast tag in call to
6252 find_and_call_menu_selection().
6253 (ns_list_fonts): Remove, unused.
6254 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6255 (ns_fontname_to_xlfd): Make static.
6256 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6257 Remove prototypes (now in keyboard.h).
6258 (next_menubar_widget_id): Remove, unused.
6259 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6260 Remove prototypes (now in keyboard.h).
6261 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6262
62632008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6264
6265 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6266 (floatfns.o): Depend on syssignal.h.
6267 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6268
6269 * systty.h: Fix previous change that removed BSD_TERMIOS.
6270 Add comments to #ifdefs.
6271
62722008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6273
6274 * w32fns.c (w32-load-color-file): Remove.
6275 (x-open-connection): Use renamed Fx_load_color_file.
6276 * xfaces.c (x-load-color-file): Add.
6277 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6278 Emacs.clr.
6279 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6280
62812008-07-31 Michael Albinus <michael.albinus@gmx.de>
6282
6283 * dbusbind.c (Fdbus_call_method_asynchronously)
6284 (Fdbus_method_error_internal): New defuns.
6285 (xd_read_message): Handle also reply messages.
6286 (Vdbus_registered_functions_table): Extend docstring.
6287
62882008-07-31 Juanma Barranquero <lekktu@gmail.com>
6289
6290 * keyboard.c (gobble_input): Fix previous change.
6291
62922008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6293
6294 * bitmaps/README:
6295 * xfns.c:
6296 * termcap.c:
6297 * term.c:
6298 * syswait.h:
6299 * systty.h:
6300 * systime.h:
6301 * syssignal.h:
6302 * sysdep.c:
6303 * process.h:
6304 * process.c:
6305 * print.c:
6306 * ndir.h:
6307 * lread.c:
6308 * keyboard.c:
6309 * getpagesize.h:
6310 * floatfns.c:
6311 * fileio.c:
6312 * emacs.c:
6313 * doc.c:
6314 * dispnew.c:
6315 * dired.c:
6316 * data.c:
6317 * callproc.c:
6318 * buffer.c:
6319 * README:
6320 * Makefile.in:
6321 * s/template.h:
6322 * s/msdos.h:
6323 * m/vax.h: Remove VMS support.
6324 * s/vms.h:
6325 * vlimit.h:
6326 * uaf.h:
6327 * temacs.opt:
6328 * param.h:
6329 * ioctl.h: Remove file.
6330
63312008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6332
6333 * s/ms-w32.h (MULTI_KBOARD): Remove.
6334 * xterm.c:
6335 * xselect.c:
6336 * xfns.c:
6337 * window.c:
6338 * w32term.c:
6339 * w32fns.c:
6340 * terminal.c:
6341 * termhooks.h:
6342 * term.c:
6343 * sysdep.c:
6344 * keyboard.h:
6345 * keyboard.c:
6346 * frame.h:
6347 * frame.c:
6348 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6349 * config.in: Regenerate.
6350
63512008-07-30 Jason Rumney <jasonr@gnu.org>
6352
6353 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6354
6355 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6356 (w32font_open_internal): Get unicode version of textmetrics.
6357 Don't enable or disable glyph indices here.
6358 (w32font_open): Disable use of glyph indices.
6359
6360 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6361
63622008-07-30 Chong Yidong <cyd@stupidchicken.com>
6363
6364 * minibuf.c (Vread_buffer_function): Doc fix.
6365
63662008-07-30 John Paul Wallington <jpw@pobox.com>
6367
6368 * minibuf.c (read_buffer_completion_ignore_case): New var.
6369 (Fread_buffer): Use it.
6370
63712008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6372
6373 * systty.h (sensemode): Remove empty #if. Remove reference to
6374 BSD_TERMIOS, unused.
6375
6376 * sysdep.c: Remove reference to DGUX.
6377 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6378
6379 * config.in: Regenerate.
6380
63812008-07-30 Jason Rumney <jasonr@gnu.org>
6382
6383 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6384
63852008-07-29 Jason Rumney <jasonr@gnu.org>
6386
6387 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6388 is populated.
6389 (uniscribe_encode_char): Always use uniscribe.
6390 Avoid using context if cache is populated.
6391
63922008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6393
6394 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6395 open menu.
6396
6397 * gtkutil.c (menu_nav_ended): Remove.
6398 (create_menus): Remove signal connect for menu_nav_ended.
6399
64002008-07-28 Chong Yidong <cyd@stupidchicken.com>
6401
6402 * xdisp.c (redisplay_window): Check return value of
6403 compute_window_start_on_continuation_line before forcing a window
6404 start.
6405
64062008-07-28 Jason Rumney <jasonr@gnu.org>
6407
6408 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6409
6410 * w32term.c (w32_enable_unicode_output, cleartype_active):
6411 Remove obsolete display options.
6412 (x_draw_glyph_string_background): Don't use old cleartype_active
6413 workaround.
6414 (w32_initialize): Remove cleartype_active initialization.
6415 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6416
64172008-07-28 Andreas Schwab <schwab@suse.de>
6418
6419 * lisp.h (init_weak_hash_tables, syms_of_font)
6420 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6421 (remove_hash_entry): Don't declare.
6422 * eval.c (maybe_call_debugger): Make static and move before use.
6423 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6424 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6425 * xterm.h (x_set_frame_alpha): Declare.
6426
64272008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6428
6429 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6430 (create_menus): Connect selection-done to menu_nav_ended.
6431
64322008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6433
6434 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6435 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6436 parameter with read of 'alpha' one.
6437 (Qns_frame_parameter): Remove.
5582fbc7 6438 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6439 (next-selection-coding-system, Vselection_coding_system)
6440 (Vnext_selection_coding_system): Drop.
6441
64422008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6443
6444 * nsfns.m (do-applescript, do_applescript): Rename to
6445 ns-do-applescript, ns_do_applescript, and move within file.
6446
64472008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6448
6449 Remove support for Mac Carbon.
6450 * mactoolbox.c:
6451 * macterm.h:
6452 * macterm.c:
6453 * macselect.c:
6454 * macmenu.c:
6455 * macgui.h:
6456 * macfns.c:
6457 * mac.c: Remove file.
6458 * s/darwin.h:
6459 * m/intel386.h:
6460 * xfaces.c:
6461 * xdisp.c:
6462 * window.c:
6463 * tparam.c:
6464 * termhooks.h:
6465 * termcap.c:
6466 * term.c:
6467 * syssignal.h:
6468 * sysselect.h:
6469 * sysdep.c:
6470 * process.c:
6471 * lread.c:
6472 * lisp.h:
6473 * keyboard.c:
6474 * image.c:
6475 * fringe.c:
6476 * frame.h:
6477 * frame.c:
6478 * fontset.c:
6479 * font.h:
6480 * font.c:
6481 * fns.c:
6482 * fileio.c:
6483 * emacs.c:
6484 * dispnew.c:
6485 * dispextern.h:
6486 * config.in:
6487 * atimer.c:
2ae37cf0 6488 * Makefile.in: Remove code for Carbon.
aac0c6e3 6489
f0131492 64902008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6491
6492 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6493
64942008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6495
6496 * macterm.h (kCGBitmapByteOrder32Host): New define for
6497 non-universal SDKs.
6498
6499 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6500 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6501
6502 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6503 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6504
65052008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6506
6507 * w32inevt.c: Include dispextern.h.
6508
65092008-07-26 Andreas Schwab <schwab@suse.de>
6510
6511 * print.c (print_object): Fix off-by-one in last change.
6512
65132008-07-25 Juanma Barranquero <lekktu@gmail.com>
6514
6515 * term.c (syms_of_term): Don't initialize default_orig_pair,
6516 default_set_foreground and default_set_background on Windows.
6517
65182008-07-25 Jason Rumney <jasonr@gnu.org>
6519
6520 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6521 ScriptItemize. Clean up return value checking. Remove unused
6522 variables.
6523 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6524 shaping engine.
6525
6526 * w32font.c (w32font_has_char): Handle the case where we can't
6527 determine the script for a character.
6528
65292008-07-25 Chong Yidong <cyd@stupidchicken.com>
6530
6531 * term.c (syms_of_term): Initialize default_orig_pair,
6532 default_set_foreground, and default_set_background.
6533
6534 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6535 clash (bug#86).
6536 (getloadavg): Callers changed.
6537
6538 * image.c (svg_load_image): Fix last change.
6539 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6540 image size is valid. Use g_object_unref instead of deprecated
6541 rsvg_handle_free to free rsvg handle.
6542 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6543
65442008-07-25 Jason Rumney <jasonr@gnu.org>
6545
6546 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6547 surrogates before looking up glyph index.
6548 (w32font_text_extents): Encode as surrogates if falling back to
6549 functions that need UTF-16 wide chars.
6550
6551 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6552 BMP as surrogates before looking up glyph index.
6553
65542008-07-25 Chong Yidong <cyd@stupidchicken.com>
6555
6556 * image.c (svg_load_image): Check for failure in return value of
6557 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6558
65592008-07-25 Jason Rumney <jasonr@gnu.org>
6560
6561 * w32font.c (Fx_select_font): Reverse sense of second arg.
6562
65632008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6564
6565 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6566 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6567
6568 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6569 (PURESIZE): Use it.
6570
65712008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6572
6573 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6574 * m/alpha.h (TEXT_END):
6575 * m/ibmrs6000.h (TEXT_END):
6576 * m/macppc.h (TEXT_END):
6577 * s/darwin.h (TEXT_END):
6578 * s/msdos.h (TEXT_END): Remove, unused.
6579 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6580 * s/cygwin.h: Remove comment.
6581
6582 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6583 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6584 * m/intel386.h (DOT_GLOBAL_START):
6585 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6586 (USG): Remove, file not used on USG platforms.
6587
6588 * Makefile.in (HAVE_X11): Remove empty #else.
6589
65902008-07-24 Andreas Schwab <schwab@suse.de>
6591
6592 * fileio.c (Finsert_file_contents): Properly adjust undo list
6593 after format conversion.
6594
65952008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6596
6597 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6598 (menu_nav_ended): Remove.
6599 (create_menus): Remove signal connect for menu_nav_ended.
6600 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6601 create_menus.
6602 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6603
66042008-07-23 Jason Rumney <jasonr@gnu.org>
6605
6606 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6607 with opened font.
6608 (w32font_open): Set font type to gdi.
6609
6610 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6611
66122008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6613
6614 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6615 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6616 defines it.
6617 * unexec.c (ADDR_CORRECT): Define unconditionally.
6618
6619 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6620
6621 * unexec.c: Remove code depending on !COFF and USG, the file is
6622 not used for such systems.
6623
6624 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6625 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6626 (LD_SWITCH_SYSTEM_1): Remove, update users.
6627
6628 * s/darwin.h (DATA_END):
6629 * m/intel386.h (DATA_END):
6630 * m/ibmrs6000.h (DATA_END):
6631 * m/alpha.h (DATA_END): Remove, unused.
6632
6633 * config.in: Regenerate.
6634 * s/ms-w32.h (subprocesses): Define unconditionally.
6635 * s/template.h (subprocesses): Update comment.
6636 * s/vms.h (subprocesses):
6637 * s/usg5-4.h (subprocesses):
6638 * s/hpux10-20.h (subprocesses):
6639 * s/gnu-linux.h (subprocesses):
6640 * s/cygwin.h (subprocesses):
6641 * s/bsd-common.h (subprocesses):
6642 * s/aix4-2.h (subprocesses):
6643 * s/darwin.h (subprocesses): Do not define, defined by default now.
6644
6645 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6646 Remove all references.
6647 (temacs): Add GNUstep specific ld flags.
6648
6649 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6650 similarly to what X does.
6651
66522008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6653
6654 * nsfns.m (x-list-fonts): Remove.
6655 (syms_of_nsfns): Drop the x-list-fonts declaration.
6656 * nsterm.m: Get rid of remaining "//" comments.
6657
66582008-07-22 Chong Yidong <cyd@stupidchicken.com>
6659
6660 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6661
6662 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6663 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6664 (Fns_own_selection_internal, Fx_disown_selection_internal)
6665 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6666
6667 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6668 ... */' style of docstrings. Doc fixes.
6669
66702008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6671
6672 * terminfo.c (UP, BC, PC): Undo previous change.
6673
6674 * nsfns.m: Rename ns prefixed functions/variables to the
6675 corresponding x versions. Update references.
6676
66772008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6678
6679 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6680
66812008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6682
6683 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6684 Remove forwarding functions.
6685 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6686 non-static.
6687 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6688 non-static.
6689 (ns_frame_parm_handlers): Use the new names.
6690 (syms_of_nsfns): Move to the end of file.
6691
6692 * nsterm.m (syms_of_nsterm): Move to the end of file.
6693
6694 * dispnew.c (init_display): Remove code for X10.
6695
66962008-07-22 Jason Rumney <jasonr@gnu.org>
6697
6698 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6699 bare drive.
6700
67012008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6702
6703 * nsterm.m (syms_of_nsterm): Remove debugging println.
6704
67052008-07-22 David Reitter <david.reitter@gmail.com>
6706
6707 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6708 Carbon implementation of the same functionality: execute arbitrary
6709 AppleScript code.
6710
67112008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6712
6713 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6714 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6715 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6716 (Fx_display_mm_height, Fx_display_mm_width)
6717 (Fx_display_backing_store, Fx_display_visual_class)
6718 (Fx_display_save_under, Fx_open_connection)
6719 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6720 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6721 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6722 (Fx_display_pixel_width, Fx_display_pixel_height)
6723 (Fx_display_usable_bounds, Fx_display_planes)
6724 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6725 ... */' style of docstrings.
6726
67272008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6728
6729 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6730 on this platform.
6731 (mips):
6732 * m/iris4d.h (mips): Do not define.
6733 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6734
6735 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6736
6737 * image.c:
6738 * nsfns.m:
6739 * nsselect.m:
6740 * nsterm.h:
6741 * nsterm.m: Rename ns prefixed functions/variables to the
6742 corresponding x versions. Update references.
6743
6744 * m/ibms390x.h (NO_REMAP): Do not undefine.
6745
6746 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6747
67482008-07-21 Chong Yidong <cyd@stupidchicken.com>
6749
6750 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6751 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6752 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6753 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6754 (Fns_display_mm_height, Fns_display_mm_width)
6755 (Fns_display_backing_store, Fns_display_visual_class)
6756 (Fns_display_save_under, Fns_open_connection)
6757 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6758 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6759 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6760 (Fns_display_pixel_width, Fns_display_pixel_height)
6761 (Fns_display_usable_bounds, Fx_display_planes)
6762 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6763
67642008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6765
6766 * print.c (print_object): Check print_depth before searching for
6767 circularities.
6768
67692008-07-21 Michael Albinus <michael.albinus@gmx.de>
6770
6771 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6772 only sprintf.
6773
67742008-07-21 Kenichi Handa <handa@m17n.org>
6775
6776 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6777
67782008-07-20 Andreas Schwab <schwab@suse.de>
6779
6780 * syntax.c (find_start_pos, find_start_value)
6781 (find_start_value_byte, find_start_begv, find_defun_start)
6782 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6783
67842008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6785
6786 * s/sol2-3.h: Insert contents of s/sol2.h.
6787 (LD_SWITCH_SYSTEM): Remove redundant definition.
6788 * s/sol2.h: Remove, unused.
6789
67902008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6791
6792 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6793
67942008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6795
6796 * Makefile.in (ns_appdir): Fix typo in find command.
6797
67982008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6799
6800 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6801
6802 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6803 added not supported anymore.
6804
6805 * s/usg5-4-2.h (LIBS_SYSTEM):
6806 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6807
6808 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6809 * s/lynxos.h (GETPGRP_NO_ARG):
6810 * s/hpux10-20.h (NO_SIOCTL_H):
6811 * s/gnu.h (GETPGRP_NO_ARG):
6812 * s/gnu-linux.h (NO_SIOCTL_H):
6813 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6814 * s/cygwin.h (GETPGRP_NO_ARG):
6815 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6816 (C_DEBUG_SWITCH): Remove duplicate definition.
6817
6818 * m/ibms390.h: Remove boilerplate comments.
6819
6820 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6821
6822 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6823 (wait_reading_process_output): Remove code for SunOS, platform not
6824 supported anymore. Use SOLARIS2 instead of sun.
6825
68262008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6827
6828 * font.c (font_open_by_name): Under NS, default lface height to zero.
6829 (font_open_for_lface): Under NS, set size based on frame fontsize.
6830 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6831 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6832
68332008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6834
6835 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6836 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6837 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6838 YES/NO.
6839 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6840 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6841 * Makefile.in (clean): Clear out build destination dir.
6842
68432008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6844
6845 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6846 xterm, xselect.
6847 * lisp.h: Remove declaration of hash_remove.
6848 * nsgui.h: Remove redefinitions of hash_remove.
6849 * fns.c (hash_remove): Rename to hash_remove_from_table.
6850
68512008-07-19 Seiji Zenitani <zenitani@mac.com>
6852
6853 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6854 strdup() the family UTF8String before modifying it.
6855
68562008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6857
6858 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6859 NS_FACE_BACKGROUND with 0 instead of nil.
6860 * nsfont.m (nsfont_draw): Same.
6861
68622008-07-19 Chong Yidong <cyd@stupidchicken.com>
6863
6864 * nsfns.m (ns_set_background_color): Fix crash.
6865
68662008-07-18 Chong Yidong <cyd@stupidchicken.com>
6867
6868 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6869
68702008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6871
6872 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6873
68742008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6875
6876 * gtkutil.c: Include <config.h> instead of "config.h".
6877
6878 * lisp.h (Foverlay_buffer): Add EXFUN.
6879
6880 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6881 child process to complete child_setup. Undo 2005-09-21 change.
6882
6883 * s/darwin.h: Mention setsid after vfork.
6884
68852008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6886
6887 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6888 Depend on macgui.h.
6889
6890 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6891 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6892
6893 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6894 and f19.
6895 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6896
6897 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6898 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6899 Remove enumerators.
6900
6901 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6902 Check if FACE_FROM_ID returns NULL.
6903
69042008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6905
6906 * w32inevt.c (change_frame_size): Remove extern declaration.
6907 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6908 change_frame_size.
6909
69102008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6911
6912 * getloadavg.c: Revert last change (2008-07-15).
6913
69142008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6915
6916 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 6917 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
6918 from configure.
6919
69202008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
6921
6922 * s/sol2.h:
6923 * s/sol2-4.h: Reorganize conditionals.
6924
6925 * ecrt0.c: Remove code depending on m68000, not used anymore.
6926
6927 * fns.c (hash_remove): Make static.
6928 * lisp.h (hash_remove): Don't prototype.
6929
6930 * m/ibmrs6000.h:
6931 * m/ibms390x.h:
6932 * m/macppc.h: Remove boilerplate comments.
6933
6934 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6935 Solaris, which does not need them.
6936
6937 * m/vax.h: Remove comments about unsupported systems.
6938
6939 * s/darwin.h: Reorganize ifdefs.
6940
69412008-07-17 Andreas Schwab <schwab@suse.de>
6942
6943 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6944
69452008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
6946
6947 Use SDATA. Follow coding convention of placing operators at
6948 beginning of next line rather than end of previous line, and placing
6949 spaces around infix operators.
6950
6951 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
6952 in case it was defined already.
6953 USE @GNUSTEP_MAKEFILES@ rather than envvars.
6954 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
6955 ns_default.
6956 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
6957 Lisp_Objects.
6958 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
6959 (ns_defined_color, ns_color_to_lisp): Declare.
6960 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
6961 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
6962 it's accepted even with USE_LISP_UNION_TYPE.
6963 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
6964 (update_frame_tool_bar): Remove apparently obsolete tests for
6965 non-integerness of f->tool_bar_lines.
6966 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
6967 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
6968 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
6969 (nsfont_open): Don't confuse NULL for Qnil.
6970 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
6971 * menu.h (find_and_call_menu_selection):
6972 * menu.c (find_and_call_menu_selection): Use just int for vector size.
6973 (find_and_return_menu_selection): Always return something.
6974 * frame.h: Include dispextern.h for Display_Info.
6975 (display_x_get_resource): Declare.
6976
69772008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
6978
6979 * syntax.c: Remove stdio.h include accidentally introduced in
6980 Emacs.app commit.
6981 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
6982 NS_IMPL_COCOA.
6983 * keyboard.c (handle_async_input, input_available_signal): Remove
6984 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
6985
69862008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6987
6988 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
6989 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
6990 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
6991 Use SDATA.
6992
6993 * keymap.c: Remove all NS-specific code.
6994 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
6995 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
6996 where_is_preferred_modifier, return a different value depending on how
6997 preferred is the binding.
6998 (where_is_internal): Adjust accordingly.
6999 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7000 Adjust to new preferred_sequence_p.
7001 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7002 * keyboard.c (parse_solitary_modifier): Not static any more.
7003 * keyboard.h (parse_solitary_modifier): Declare.
7004
70052008-07-16 Andreas Schwab <schwab@suse.de>
7006
7007 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7008 of easymenu.
7009
70102008-07-16 Chong Yidong <cyd@stupidchicken.com>
7011
7012 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7013 that we don't move off the line.
7014
70152008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7016
7017 * keyboard.c (Qsuper): Remove.
7018 (parse_menu_item): Don't call where_is_internal specially for NS.
7019
70202008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7021
7022 * s/gnu-linux.h: Remove boilerplate comments.
7023
7024 * m/alpha.h (__ELF__): Consolidate conditions.
7025
7026 * m/m68k.h (linux): Use GNU_LINUX instead.
7027 Remove boilerplate comments.
7028
7029 * m/intel386.h: Undo refactoring from previous change.
7030 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7031 too, remove dead code.
7032 (linux): Use GNU_LINUX instead.
7033
70342008-07-16 Jason Rumney <jasonr@gnu.org>
7035
7036 * w32gui.h: Repeat 26 June changes lost by last change.
7037
70382008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7039
7040 * systty.h: Remove code for Aix on 386, unsupported platform.
7041
7042 * s/ms-w32.h: Remove boilerplate comments.
7043 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7044
7045 * s/gnu-linux.h (TERM): Remove support.
7046 (HAVE_SYSVIPC): Remove, unused.
7047 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7048 for this system.
7049
7050 * process.c: Remove support for IRIS, unused.
7051 Remove support for TERM, not relevant anymore.
7052
7053 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7054 used with the definition.
7055
7056 * s/aix4-2.h (static): Do not undef.
7057
7058 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7059 only used on Aix.
7060 (HAVE_SYSVIPC): Remove, unused.
7061
7062 * m/hp800.h (CANNOT_DUMP): Do not undef.
7063
7064 * m/alpha.h: Fix comment.
7065
7066 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7067 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7068 used by this configuration.
7069 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7070 * unexec.c: Remove code depending on HPUX and
7071 USG_SHARED_LIBRARIES, not used with this file. Remove code
7072 depending on IRIS, unused. Remove if 0-ed code.
7073
7074 * s/template.h: Remove comments about static.
7075
7076 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7077 Remove if 0-ed code.
7078 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7079 were the same as the default.
7080 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7081 Remove boilerplate comments.
7082 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7083 (HAVE_SYSVIPC): Remove, unused.
7084 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7085
7086 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7087 Remove boilerplate comments.
7088 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7089 Remove boilerplate comments.
7090 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7091 Remove boilerplate comments.
7092 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7093
7094 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7095 USG systems which do not use DATA_SEG_BITS.
7096 Refactor code. Remove boilerplate comments.
7097
7098 * m/ibms390.h:
7099 * m/m68k.h:
7100 * s/bsd-common.h:
7101 * s/cygwin.h:
7102 * s/darwin.h:
7103 * s/freebsd.h:
7104 * s/gnu.h:
7105 * s/msdos.h: Remove boilerplate comments.
7106
7107 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7108 do not use this file.
aac0c6e3
MR
7109 (IRIS_4D): Remove, unused.
7110
7111 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7112 do not use this file.
aac0c6e3
MR
7113 (SIGN_EXTEND_CHAR):
7114 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7115 * unexmips.c: Remove file, unused.
7116
7117 * editfns.c (Fuser_full_name): Replace the only use of
7118 USER_FULL_NAME with its value.
7119 * config.in: Regenerate.
7120
71212008-07-16 David Reitter <david.reitter@gmail.com>
7122
7123 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7124 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7125
71262008-07-16 Glenn Morris <rgm@gnu.org>
7127
7128 * emacs.c (system-type): Doc fix.
7129
71302008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7131
7132 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7133 If the cache doesn't work, let's fix it, rather than work around it.
7134
71352008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7136
7137 * Makefile.in: Correct additions for nsfont.o in last commit.
7138 * nsfont.m: New file (forgot last commit).
7139
71402008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7141
7142 * callproc.c (set_initial_environment): Initialize
7143 Vprocess_environment under CANNOT_DUMP (fixes crash when
7144 batch-compiling for bootstrap).
7145
71462008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7147 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7148
7149 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7150 fix crash due to different init order.
7151
71522008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7153
7154 Changes and additions for NeXTstep windowing system (Cocoa and
7155 GNUstep) support.
7156
7157 * Makefile.in:
7158 * config.in: Support defines and build commands for NS port.
7159 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7160 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7161 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7162 windowing.
7163 (struct face): Add synth_ital field.
7164 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7165 (init_display): Initialize Vinitial_window_system to "ns" when so
7166 compiled.
7167 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7168 (display_arg): Use under NS.
7169 (main): Under NS, allocate autorelease pool and handle command line
7170 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7171 (standard_args): Add NS-specific args.
7172 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7173 * font.c (DEFAULT_ENCODING): New variable.
7174 (font_find_for_lface): Use it.
7175 (syms_of_font): Load syms_of_nsfont under NS.
7176 * font.h: Declare nsfont_driver when compiled under NS.
7177 * fontset.c: When compiling under NS, include nsterm.h.
7178 (fontset_from_font): Autoconstruct fontset under NS.
7179 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7180 symbol, document and use it.
7181 (do_switch_frame): When for_deletion under Cocoa, add
7182 Fraise_frame(Qnil).
7183 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7184 (x_get_arg): Allow "yes" and "no" as boolean values.
7185 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7186 Qright under Cocoa.
7187 (focus-follows-mouse): Default to 0 under NS.
7188 * frame.h (enum output_method): Add output_ns.
7189 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7190 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7191 (FRAME_WINDOW_P): NS-specific definition.
7192 * fringe.c (max_used_fringe_bitmap): Make public.
7193 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7194 (getloadavg): Use NeXT code under descendant OS's.
7195 * image.c (includes and header section, x_create_bitmap_from_data)
7196 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7197 (image_background_transparent, x_clear_image_1)
7198 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7199 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7200 (x_to_xcolors, x_from_xcolors, x_disable_image)
7201 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7202 other GUIs, including XPM support using code originally written for
7203 Carbon GUI.
7204 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7205 using NS API.
7206 (image_ascent): Use font metrics macros instead of direct struct field
7207 access.
7208 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7209 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7210 Also, handle NS as GTK for menu bar purposes.
7211 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7212 toolkit where they differ.
7213 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7214 use cachelist, still needed under NS.
7215 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7216 (struct widget_value): Define it here for menu.c.
7217 * keymap.c (includes): Include modifier internals.
7218 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7219 NS.
7220 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7221 support for preferring sequences using certain modifiers, specified by
7222 the FIRSTONLY argument.
7223 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7224 under NS GNUstep implementation.
7225 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7226 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7227 * menu.c: Include nsterm.h under NS.
7228 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7229 (free_menubar_widget_tree_value, update_submenu_strings)
7230 (find_and_call_menu_selection): Treat NS as X and NT.
7231 (find_and_return_menu_selection): New function, used for popup menus.
7232 * nsgui.h:
7233 * nsterm.h:
7234 * nsfns.m:
7235 * nsimage.m:
7236 * nsmenu.m:
7237 * nsselect.m:
7238 * nsterm.m: New files.
7239 * process.c (wait_reading_process_output): Under NS, call ns_select()
7240 instead of plain select().
7241 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7242 beginning of buffer.
7243 * sysselect.h (init_process): Rename when compiling under Cocoa to
7244 avoid name conflict.
7245 * termhooks.h (display_info): Add ns_display_info to union.
7246 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7247 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7248 COCOA environment.
7249 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7250 unexec() signature. (Note, this will dump, but the resulting file
7251 crashes; unexosx is used instead; keeping around for reference and
7252 possible aid in getting dump working under GNUstep.)
7253 * w32gui.h (button_type, widget_value): Remove definitions (now in
7254 keyboard.h).
7255 * window.c: Include nsterm.h when compiling under NS.
7256 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7257 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7258 other GUI windowing systems.
7259 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7260 GTK.
7261 (x_consider_frame_title): Under NS, set icon type and frame
7262 modified-state indicator; use ns_set_name_as_filename() when using
7263 formatted title.
7264 (update_window_cursor): Make public when compiling under NS.
7265 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7266 (hourglass_atimer, Vhourglass_delay
7267 * xfaces.c (header section, init_frame_faces, clear_font_table)
7268 (defined_color, unload_color, x_face_list_fonts)
7269 (prepare_face_for_display): Add NS support parallel to other GUIs.
7270 Emulate GCs like other non-X GUIs.
7271 (split_font_name): Don't lowercase font name under NS.
7272 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7273 under NS.
7274 * s/darwin.h: Add support for compilation under NS.
7275
72762008-07-15 Jason Rumney <jasonr@gnu.org>
7277
7278 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7279 (w32_show_hourglass): Rename from show_hourglass.
7280 (w32_hide_hourglass): Rename from hide_hourglass.
7281 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7282 (Vhourglass_delay): Declare extern.
7283 (hourglass_started): Remove.
7284
7285 * xdisp.c (Vhourglass_delay): Remove static.
7286 (hourglass_started, start_hourglass, cancel_hourglass):
7287 Don't include these versions on WINDOWSNT.
7288
72892008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7290
7291 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7292 variables (formerly in xfns.c).
7293 (show_hourglass, hide_hourglass): New prototypes (same).
7294 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7295 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7296 in xfns.c).
7297 (syms_of_xdisp): Declare/initialize display-hourglass,
7298 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7299 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7300 formerly in xfns.c.
7301 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7302 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7303 (start_hourglass, cancel_hourglass): Remove.
7304 (show_hourglass, hide_hourglass): Remove prototypes and static
7305 modifiers.
7306 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7307 hourglass_atimer, hourglass_shown_p declaration/initialization.
7308 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7309 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7310 (start_hourglass, cancel_hourglass): Remove.
7311 (show_hourglass, hide_hourglass): Remove prototypes and static
7312 modifiers.
7313 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7314 hourglass_atimer, hourglass_shown_p declaration/initialization.
7315 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7316 (DEFAULT_HOURGLASS_DELAY): Remove.
7317 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7318 hourglass_shown_p declaration/initialization.
7319
73202008-07-14 Jason Rumney <jasonr@gnu.org>
7321
7322 * w32fns.c (w32_get_arg): Remove wrapper function.
7323 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7324 directly.
7325 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7326
73272008-07-14 Kenichi Handa <handa@m17n.org>
7328
7329 * xfont.c (xfont_open): Add workaround for X's bug.
7330
73312008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7332
7333 * fontset.c: Include <stdio.h> unconditionally.
7334
73352008-07-13 Michael Albinus <michael.albinus@gmx.de>
7336
7337 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7338 for filtering.
7339
73402008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7341
7342 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7343
7344 * m/macppc.h:
7345 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7346
7347 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7348 (SPECIAL_EMACS_INT):
7349 * m/ia64.h (SPECIAL_EMACS_INT):
7350 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7351 * s/gnu.h (NLIST_STRUCT):
7352 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7353 * s/gnu-linux.h (LINUX):
7354 * s/msdos.h (HAVE_FACES):
7355 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7356
7357 * systty.h:
7358 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7359 anymore.
7360
73612008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7362
7363 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7364 always defined as int.
7365
7366 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7367 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7368 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7369 * s/freebsd.h (HAVE_WAIT_HEADER):
7370 * s/bsd-common.h (HAVE_UNION_WAIT):
7371 * s/aix4-2.h (HAVE_WAIT_HEADER):
7372 * m/mips.h (HAVE_UNION_WAIT):
7373 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7374 (COFF, static): Do not define, they are undefined later in the file.
7375
7376 * process.c (update_status): Don't use a union.
7377 (status_convert):
7378 (sigchld_handler): Use int instead of WAITTYPE.
7379
73802008-07-12 Chong Yidong <cyd@stupidchicken.com>
7381
7382 * indent.c (Fvertical_motion): Restore hscroll before moving to
7383 goal column.
7384
73852008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7386
7387 * lisp.h: Remove left over code.
7388
73892008-07-11 Andreas Schwab <schwab@suse.de>
7390
7391 * lisp.h: Fix logic in last change.
7392
7393 * menu.h: New file.
7394 * menu.c: Include it.
7395 * xmenu.c: Likewise.
7396 * Makefile.in: Update dependencies.
7397
73982008-07-11 Kenichi Handa <handa@m17n.org>
7399
7400 * fontset.c (fontset_from_font): Cancel the previous change.
7401
74022008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7403
7404 * lisp.h:
7405 * w32heap.c:
7406 * emacs.c:
7407 * alloc.c: Replace all references of NO_UNION_TYPE with
7408 USE_LISP_UNION_TYPE.
7409
7410 * m/xtensa.h (NO_UNION_TYPE):
7411 * m/vax.h (NO_UNION_TYPE):
7412 * m/template.h (NO_UNION_TYPE):
7413 * m/sparc.h (NO_UNION_TYPE):
7414 * m/mips.h (NO_UNION_TYPE):
7415 * m/macppc.h (NO_UNION_TYPE):
7416 * m/m68k.h (NO_UNION_TYPE):
7417 * m/iris4d.h (NO_UNION_TYPE):
7418 * m/intel386.h (NO_UNION_TYPE):
7419 * m/ibms390x.h (NO_UNION_TYPE):
7420 * m/ibms390.h (NO_UNION_TYPE):
7421 * m/ibmrs6000.h (NO_UNION_TYPE):
7422 * m/ia64.h (NO_UNION_TYPE):
7423 * m/hp800.h (NO_UNION_TYPE):
7424 * m/arm.h (NO_UNION_TYPE):
7425 * m/amdx86-64.h (NO_UNION_TYPE):
7426 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7427 defining it the same.
7428
74292008-07-10 Chong Yidong <cyd@stupidchicken.com>
7430
7431 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7432
74332008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7434
7435 * fileio.c:
7436 * sysdep.c
7437 * systty.h:
7438 * m/ibmrs6000.h:
7439 * m/iris4d.h:
7440 * s/aix4-2.h:
7441 * s/freebsd.h:
7442 * s/gnu-linux.h:
7443 * s/hpux10-20.h:
7444 * s/hpux11.h:
7445 * s/netbsd.h:
7446 * s/sol2-3.h:
7447 * s/sol2-4.h:
7448 * s/sol2.h:
7449 * s/usg5-4.h:
7450 * s/vms.h: Remove references to unused variables.
7451
74522008-07-10 Andreas Schwab <schwab@suse.de>
7453
7454 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7455 pattern before matching the generic family.
7456
74572008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7458
7459 * unexec.c:
7460 * s/vms.h:
7461 * s/usg5-4-2.h:
7462 * s/sol2-5.h:
7463 * s/freebsd.h:
7464 * s/darwin.h: Remove dead code.
7465
7466 * m/template.h:
7467 * m/sparc.h:
7468 * m/mips.h:
7469 * m/m68k.h:
7470 * m/iris4d.h:
7471 * m/intel386.h:
7472 * m/ibms390x.h:
7473 * m/ibms390.h:
7474 * m/ia64.h:
7475 * m/hp800.h:
7476 * m/arm.h:
7477 * m/amdx86-64.h: Remove dead code and references to unused
7478 and compiler defined symbols.
7479
7480 * unexmips.c:
7481 * unexelf.c: Remove references to desupported systems.
7482
7483 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7484
7485 * m/powermac.h: Remove boilerplate comments.
7486 (NO_REMAP): Remove unused definition.
7487
7488 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7489 define them.
7490
74912008-07-10 Kenichi Handa <handa@m17n.org>
7492
7493 * xfont.c (xfont_open): Log the reason of failure.
7494
74952008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7496
7497 * fontset.c (fontset_get_font_group):
7498 * font.c (font_check_otf): Specify argument types.
7499
75002008-07-09 Kenichi Handa <handa@m17n.org>
7501
7502 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7503 non-ASCII char is found.
7504
7505 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7506 (reorder_font_vector): Change the arg preferred_family to font.
7507 Prefer the spec matching with font.
7508 (fontset_get_font_group): New function.
7509 (fontset_find_font): Change the format of an element of a realized
7510 fontset. Use fontset_get_font_group.
7511 (fontset_font): Try the current fontset, the default fontset, the
7512 fallbacks of the current fontset, and the fallbacks of the default
7513 fontset in this order.
7514 (face_for_char): Delete the shortcut to use the current font.
7515 (fontset_from_font): Don't set fonts for Latin in the fontset.
7516
7517 * font.h (font_make_object, font_match_p): Adjust prototypes.
7518
7519 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7520
7521 * font.c (font_make_object): New arg entity and pixelsize.
7522 (font_check_otf_features, font_check_otf): New functions.
7523 (font_match_p): Check :lang, :script, and :otf properties.
7524
7525 * xfont.c (xfont_open): Adjust it for the change of
7526 font_make_object.
7527 (xfont_text_extents): Fix initial setting of metrics.
7528
7529 * ftfont.c (struct ftfont_info): New member index, delete member
7530 fc_charset_idx. Make the member order compatible with struct
7531 xftfont_info.
7532 (fc_charset_table): Change charset names to registry names.
7533 (ftfont_pattern_entity): Delete the args registry and
7534 fc_charset_idx. Change the value of :font-entity property
7535 to (FONTNAME . INDEX). Always set :registry property to
7536 `iso10646-1'.
7537 (struct ftfont_cache_data): New struct.
7538 (ftfont_lookup_cache): New arg for_face.
7539 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7540 (ftfont_driver): Set the member otf_capability.
7541 (ftfont_get_charset): Adjust it for the change of
7542 fc_charset_table.
7543 (OTF_TAG_SYM): New macro.
7544 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7545 for the change of fc_charset_table.
7546 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7547 ftfont_pattern_entity. Add FC_INDEX to objset.
7548 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7549 and ftfont_pattern_entity.
7550 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7551 font_make_object, struct ftfont_info.
7552 (ftfont_has_char): Use ftfont_get_fc_charset.
7553 (ftfont_otf_features, ftfont_otf_capability): New functions.
7554 (ftfont_shape): Use ftfont_get_otf.
7555 (ftfont_text_extents): Fix initial setting of metrics.
7556
7557 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7558 member order compatible with struct ftfont_info.
7559 (xftfont_open): Add FC_CHARSET to the pattern. Set
7560 xftfont_info->ft_size. Don't unlock the face. Check BDF
7561 properties if appropriate.
7562 (xftfont_close): Unlock the face.
7563 (xftfont_anchor_point, xftfont_shape): Deleted.
7564 (syms_of_xftfont): Don't set members anchor_point and shape of
7565 xftfont_driver.
7566
7567 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7568 font_make_object.
7569
7570 * w32font.c (w32font_open): Adjust it for the change of
7571 font_make_object.
7572 (w32font_open_internal): Don't set properties of font_object here.
7573
75742008-07-08 Chong Yidong <cyd@stupidchicken.com>
7575
7576 * macfns.c (x_create_tip_frame):
7577 * w32fns.c (x_create_tip_frame):
7578 * xfns.c (x_create_tip_frame): Pass parameter argument to
7579 face-set-after-frame-default.
7580
7581 * xfaces.c (Finternal_merge_in_global_face): Save merged
7582 attributes for the default face back into the face vector.
7583
75842008-07-08 Andreas Schwab <schwab@suse.de>
7585
7586 * fontset.h: Declare fontset_from_font. Don't declare
7587 new_fontset_from_font and fontset_from_font_name.
7588 * xterm.c: Include "fontset.h".
7589 * Makefile.in (xterm.o): Update dependencies.
7590
75912008-07-08 Glenn Morris <rgm@gnu.org>
7592
7593 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7594 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7595
75962008-07-07 Chong Yidong <cyd@stupidchicken.com>
7597
7598 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7599 (x_set_frame_parameters): Don't bind it.
7600
76012008-07-07 Juanma Barranquero <lekktu@gmail.com>
7602
7603 * w32fns.c (map_w32_filename): Declare extern.
7604
76052008-07-07 Jason Rumney <jasonr@gnu.org>
7606
7607 * w32term.c (WS_EX_LAYERED): Define if not already.
7608
76092008-07-06 Chong Yidong <cyd@stupidchicken.com>
7610
7611 * xfaces.c (set_font_frame_param): Don't try to set the font
7612 parameter if it is still unspecified in the lface.
7613
76142008-07-05 Chong Yidong <cyd@stupidchicken.com>
7615
7616 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7617 face if it didn't already exist.
7618
7619 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7620
76212008-07-05 Andreas Schwab <schwab@suse.de>
7622
7623 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7624
76252008-07-05 Chong Yidong <cyd@stupidchicken.com>
7626
7627 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7628 word-wrapping.
7629 (IT_DISPLAYING_WHITESPACE): New macro.
7630 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7631 when word-wrapping. Simplify word-wrapping logic. Use correct
7632 pixel positions when saving copies of the iterator.
7633 (display_line): Use proper wrap point if the last character on a
7634 line was preceded by whitespace.
7635
76362008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7637
7638 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7639
76402008-07-04 Kenichi Handa <handa@m17n.org>
7641
7642 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7643
7644 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7645
76462008-07-02 Jason Rumney <jasonr@gnu.org>
7647
7648 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7649 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7650
7651 * xdisp.c (next_element_from_display_vector): Move assignment out
7652 of if statement.
7653
76542008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7655
7656 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7657
7658 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7659 (syms_of_fileio): Initialize and export them.
7660 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7661
7662 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7663 (Fsystem_move_file_to_trash): New function.
7664 (syms_of_w32fns): Export it to lisp.
7665
76662008-07-01 Jason Rumney <jasonr@gnu.org>
7667
7668 * w32font.c (w32font_text_extents): Don't count overhang as part
7669 of width.
7670
76712008-06-30 Miles Bader <miles@gnu.org>
7672
7673 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7674 Add `avoid_cursor_p' field.
7675
7676 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7677 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7678 (append_glyph, append_composite_glyph, produce_image_glyph)
7679 (append_stretch_glyph): Initialize avoid_cursor_p.
7680 (get_it_property): Rename from `get_line_height_property'.
7681 (x_produce_glyphs): Use get_it_property.
7682 (handle_line_prefix, push_display_prop): New functions.
7683 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7684 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7685 New variables.
7686 (syms_of_xdisp): Initialize them.
7687
76882008-06-30 Kenichi Handa <handa@m17n.org>
7689
7690 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7691 XftDefaultSubstitute (they are called in XftFontMatch).
7692 (xftfont_open): Fix args to ftfont_font_format.
7693
7694 * ftfont.c (fc_charset_table): New member lang.
7695 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7696 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7697 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7698 (ftfont_open): Fix args to ftfont_font_format.
7699 (ftfont_font_format): New arg filename.
7700
77012008-06-30 Chong Yidong <cyd@stupidchicken.com>
7702
7703 * xfaces.c (Finternal_merge_in_global_face): If default face was
7704 modified, realize it again. Update the font face attribute.
7705
77062008-06-29 Jason Rumney <jasonr@gnu.org>
7707
7708 * w32term.c (x_set_frame_alpha): Fix logic.
7709
77102008-06-29 Kenichi Handa <handa@m17n.org>
7711
7712 * fontset.c (Finternal_char_font): Return font-object instead of
7713 font-name.
7714
7715 * composite.c (get_composition_id): Fix the width calculation for TAB.
7716
77172008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7718
7719 * indent.c (Fvertical_motion): Properly handle float column arg.
7720
77212008-06-28 Jason Rumney <jasonr@gnu.org>
7722
7723 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7724 (pfnSetLayeredWindowAttributes): New function pointer.
7725 (w32_initialize): Initialize it when supported.
7726 (x_set_frame_alpha): New function.
7727
7728 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7729 (w32_frame_parm_handlers): Set alpha handler.
7730
7731 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7732
77332008-06-27 Jason Rumney <jasonr@gnu.org>
7734
7735 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7736 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7737 (w32_to_x_charset, x_to_w32_charset)
7738 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7739 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7740 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7741 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7742 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7743 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7744 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7745 (Qw32_charset_unicode): Remove.
7746 (syms_of_w32fns): Update for above changes.
7747
7748 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7749 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7750 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7751 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7752 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7753 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7754 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7755 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7756 (syms_of_w32font): Update for above changes.
7757
77582008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7759
7760 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7761 removed #if.
7762 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7763
77642008-06-26 Juanma Barranquero <lekktu@gmail.com>
7765 Eli Zaretskii <eliz@gnu.org>
7766
7767 * makefile.w32-in (LOCAL_FLAGS):
7768 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7769
7770 * sysdep.c (_spawnlp, _getpid):
7771 Declare with explicit _cdecl instead of _CRTAPI1.
7772
7773 * editfns.c (Fget_internal_run_time):
7774 Check for WINDOWSNT with #ifdef, not #if.
7775
77762008-06-26 Jason Rumney <jasonr@gnu.org>
7777
7778 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7779
7780 * w32term.c (x_draw_glyph_string_foreground)
7781 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7782 Use FONT_HANDLE macro.
7783 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7784
7785 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7786 (uniscribe_encode_char): Use FONT_HANDLE macro.
7787
7788 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7789 (w32font_text_extents): Use precast w32_font.
7790 (w32font_close): Free cached metrics.
7791 (w32font_open_internal): Allocate space for name on stack.
7792
77932008-06-26 Chong Yidong <cyd@stupidchicken.com>
7794
7795 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7796
77972008-06-26 Jason Rumney <jasonr@gnu.org>
7798
7799 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7800 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7801
78022008-06-26 Juanma Barranquero <lekktu@gmail.com>
7803
7804 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7805
78062008-06-26 Jason Rumney <jasonr@gnu.org>
7807
7808 * w32bdf.c, w32bdf.h: Remove obsolete files.
7809
7810 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7811
7812 * w32gui.h: Don't include w32bdf.h.
7813 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7814 Remove obsolete font support.
7815
7816 * w32font.h (struct w32font_info): Remove compat_w32_font.
7817 Add hfont member.
7818 (FONT_COMPAT): Remove obsolete macro.
7819
7820 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7821 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7822 (w32font_open_internal): Remove compat code. Set new hfont member.
7823 (Fx_select_font): Use new hfont member.
7824
7825 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7826 (uniscribe_encode_char): Use new hfont member.
7827
7828 * w32term.c (x_draw_glyph_string_foreground)
7829 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7830 (x_draw_glyph_string): Use metrics in w32font_info.
7831
78322008-06-26 Kenichi Handa <handa@m17n.org>
7833
7834 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7835
78362008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7837
7838 * unexnext.c:
7839 * m/ews4800.h:
7840 * m/hp9000s300.h:
7841 * m/ibm370aix.h:
7842 * m/mips-siemens.h:
7843 * m/ncr386.h:
7844 * m/next.h:
7845 * m/pmax.h:
7846 * m/powerpcle.h:
7847 * m/tandem-s2.h:
7848 * s/386bsd.h:
7849 * s/bsd386.h:
7850 * s/bsd4-1.h:
7851 * s/bsd4-2.h:
7852 * s/bsdos2-1.h:
7853 * s/bsdos2.h:
7854 * s/bsdos3.h:
7855 * s/bsdos4.h:
7856 * s/nextstep.h:
7857 * s/ultrix4-3.h:
7858 * s/usg5-0.h:
7859 * s/usg5-2-2.h:
7860 * s/usg5-2.h:
7861 * s/usg5-4-3.h:
7862 * s/ux4800.h:
7863 * s/uxpds.h:
7864 * s/uxpv.h: Remove support for obsolete systems.
7865 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 7866 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
7867 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7868 Remove, insert contents in s/aix4-2.h.
7869 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7870 * s/bsd4-3.h: Rename to ...
7871 * s/bsd-common.h: ... this.
7872 * data.c:
7873 * doc.c:
7874 * ecrt0.c:
7875 * emacs.c:
7876 * fileio.c:
7877 * floatfns.c:
7878 * keyboard.c:
7879 * mem-limits.h:
7880 * print.c:
7881 * process.c:
7882 * sysdep.c:
7883 * syssignal.h:
7884 * systty.h:
7885 * syswait.h:
7886 * term.c:
7887 * unexec.c:
7888 * unexelf.c:
7889 * unexhp9k800.c:
7890 * m/hp800.h:
7891 * m/ibmrs6000.h:
7892 * m/mips.h:
7893 * m/vax.h:
7894 * s/darwin.h:
7895 * s/freebsd.h:
7896 * s/gnu.h:
7897 * s/ms-w32.h:
7898 * s/msdos.h:
7899 * s/netbsd.h:
7900 * s/template.h: Remove references to obsolete variables.
7901
7902 * Makefile.in: Add dependencies for all unexec files.
7903 (admindir): Remove unused variable.
7904 (UNEXEC_SRC): Remove references.
7905
79062008-06-25 Chong Yidong <cyd@stupidchicken.com>
7907
7908 * xfns.c (x_default_font_parameter): If Xft is available, first
7909 try Monospace-12 for the default font.
7910
79112008-06-25 Jason Rumney <jasonr@gnu.org>
7912
7913 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7914
79152008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7916
7917 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7918
7919 * buffer.c (syms_of_buffer): Remove default-word-wrap.
7920
79212008-06-25 Juanma Barranquero <lekktu@gmail.com>
7922
7923 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7924 <scroll-conservatively>: Fix typo in docstring.
7925
7926 * xselect.c (Fx_send_client_event): Doc fix.
7927
79282008-06-25 Kenichi Handa <handa@m17n.org>
7929
7930 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7931
7932 * font.c (font_parse_fcname): Remove unused variables.
7933 (font_sort_entites): Delete the arg SPEC. Caller changed.
7934 Fix for the case of ! best_only.
7935 (font_delete_unmatched): Check DPI and AVGWIDTH too.
7936
7937 * lisp.h (Fstring_to_unibyte): EXFUN it.
7938
7939 * character.h (str_to_unibyte): Extern it.
7940
7941 * character.c (str_to_unibyte): New function.
7942
7943 * fns.c (Fstring_to_unibyte): New function.
7944 (syms_of_fns): Defsubr it.
7945
79462008-06-24 Kenichi Handa <handa@m17n.org>
7947
7948 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
7949 DPI too.
7950 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
7951
79522008-06-24 Andreas Schwab <schwab@suse.de>
7953
7954 * Makefile.in (${lispsource}loaddefs.el): Rename from
7955 ../lisp/loaddefs.el.
7956 (bootstrap-clean): Do what distclean does but don't remove
7957 Makefile.
7958 (distclean): Depend on bootstrap-clean and remove Makefile.
7959
79602008-06-24 Chong Yidong <cyd@stupidchicken.com>
7961
7962 * buffer.h (struct buffer): New member word_wrap.
7963
7964 * buffer.c (syms_of_buffer): New variables default-word-wrap and
7965 word-wrap.
7966 (init_buffer_once): Initialize them.
7967
7968 * dispextern.h (struct it): Replace bool truncate_lines_p with a
7969 line_wrap enum possessing three possible values.
7970
7971 * termopts.h: Replace truncate_partial_width_windows with
7972 Vtruncate_partial_width_windows.
7973
7974 * dispnew.c (direct_output_for_insert): Avoid direct output when
7975 inserting a space with word wrap on.
7976
7977 * indent.c (compute_motion): Obey integer values of
7978 truncate-partial-width-windows.
7979
7980 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
7981 replacing truncate_partial_width_windows.
7982 (init_iterator): If Vtruncate_partial_width_windows is an integer,
7983 truncate only if the window width is below that integer.
7984 (start_display, resize_mini_window, produce_stretch_glyph)
7985 (display_string, move_it_in_display_line_to): Use line_wrap.
7986 (back_to_previous_visible_line_start, reseat_1): Reset
7987 string_from_display_prop_p.
7988 (display_line): Extend default face to end of line when wrapping.
7989
79902008-06-24 Kim F. Storm <storm@cua.dk>
7991
7992 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
7993 to wrap continued lines at word boundaries.
7994
79952008-06-24 Jason Rumney <jasonr@gnu.org>
7996
7997 * font.c (Ffont_face_attributes): Multiply pixel size before point
7998 conversion to avoid multiplying rounding error.
7999
80002008-06-23 Jason Rumney <jasonr@gnu.org>
8001
8002 * w32term.c (x_draw_glyph_string_background)
8003 (x_draw_glyph_string): Remove old bdf font code.
8004
8005 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8006
80072008-06-22 Kenichi Handa <handa@m17n.org>
8008
8009 * font.c (font_find_for_lface): Try the adstyle specified in
8010 the property of LFACE_FONT of LFACE (if any).
8011
80122008-06-21 Seiji Zenitani <zenitani@mac.com>
8013 Ryo Yoshitake <ryo@shiftmode.net>
8014
8015 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8016
80172008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8018
8019 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8020 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8021 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8022 (witness-emacs): Remove.
8023 (lisp, shortlisp): Move loaddefs.el earlier.
8024 (mostlyclean): Forget about witness-emacs.
8025
80262008-06-22 Glenn Morris <rgm@gnu.org>
8027
8028 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8029 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8030
80312008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8032
8033 * Makefile.in (PRECOMP): Remove.
8034 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8035 (witness-emacs): Run `compile-first'.
8036 (.el.elc): Use the new compile-onefile target.
8037
80382008-06-21 Kenichi Handa <handa@m17n.org>
8039
8040 * xftfont.c (xftfont_open): Handle QCembolden only when
8041 FC_EMBOLDEN is defined.
8042
80432008-06-21 Andreas Schwab <schwab@suse.de>
8044
8045 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8046 (.el.elc): Likewise.
8047
80482008-06-21 Miles Bader <miles@gnu.org>
8049
8050 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8051 build dir, not the lisp source dir.
8052
80532008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8054
8055 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8056 (bootstrapclean): Remove.
8057 (.el.elc): New rule.
8058 (PRECOMP): New var.
8059 (../lisp/subdirs.el): Remove.
8060 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8061 (witness-emacs): New target.
8062 (mostlyclean): Remove witness-emacs as well.
8063 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8064 Add witness-emacs dependency.
8065
80662008-06-20 Chong Yidong <cyd@stupidchicken.com>
8067
8068 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8069 defined by the font.
8070
80712008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8072
8073 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8074 (bootstrap-clean): New target that keeps TAGS around.
8075 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8076 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8077
80782008-06-20 Jason Rumney <jasonr@gnu.org>
8079
8080 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8081 Remove obsolete font code.
8082
8083 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8084 to determine language support.
8085
80862008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8087
8088 * sysdep.c (cfsetspeed): New fun extracted from the code.
8089 (cfmakeraw): Move before first use.
8090
80912008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8092
8093 * sysdep.c (cfmakeraw): Provide fallback implementation.
8094 (serial_configure): Provide fallback implementation of cfsetspeed.
8095
80962008-06-20 Kenichi Handa <handa@m17n.org>
8097
8098 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8099 the pattern.
8100
8101 * fontset.c (fontset_from_font): Copy font_spec before changing
8102 the elements.
8103
8104 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8105
81062008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8107
8108 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8109 for explicit `font' parameters.
8110
8111 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8112
81132008-06-19 Kenichi Handa <handa@m17n.org>
8114
8115 * frame.c: Include <ctype.h>.
8116 (x_set_font_backend): Allow spacing characters in the X resource
8117 for FontBackend.
8118
81192008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8120
8121 * w32fns.c, xfns.c (Qfont_param): New var.
8122 (syms_of_w32fns): Initialize it.
8123 (x_default_font_parameter): Record explicit `font' into
8124 `font-parameter'.
8125
81262008-06-18 Kenichi Handa <handa@m17n.org>
8127
8128 * font.c (font_parse_xlfd): Fix previous change.
8129 (font_parse_fcname): Don't use :fc-unknown-spec.
8130 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8131 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8132 (font_add_log): Prepend the driver name to the resulting fonts.
8133
8134 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8135 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8136 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8137
8138 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8139 (QCembolden): New variables.
8140 (syms_of_xftfont): DEFSYM them.
8141 (xftfont_open): Call XftFontMatch. Don't trust the result of
8142 XftTextExtents8 if the pixel_size is less than 5.
8143
81442008-06-18 Andreas Schwab <schwab@suse.de>
8145
8146 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8147 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8148
81492008-06-18 Jason Rumney <jasonr@gnu.org>
8150
8151 * w32font.c (w32font_list, w32font_match): Add logging.
8152
8153 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8154
81552008-06-17 Chong Yidong <cyd@stupidchicken.com>
8156
8157 * font.c (font_parse_fcname): Store divider characters for
8158 unknown-spec list. For known key symbols, intern using correct
8159 symbol name.
8160
81612008-06-17 Kenichi Handa <handa@m17n.org>
8162
8163 * xfaces.c (realize_default_face): If the frame is not on window
8164 system, set the fontset of face to nil.
8165
81662008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8167
8168 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8169
81702008-06-16 Juanma Barranquero <lekktu@gmail.com>
8171
8172 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8173 (build_font_name_from_vector): Delete externs.
8174
8175 * xfaces.c (struct font_name): Don't declare.
8176
81772008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8178
8179 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8180
81812008-06-16 Chong Yidong <cyd@stupidchicken.com>
8182
8183 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8184
81852008-06-16 Juanma Barranquero <lekktu@gmail.com>
8186
8187 * font.c (Ffont_spec): Fix usage in docstring.
8188 (Ffont_face_attributes): Doc fix.
8189
81902008-06-16 Andreas Schwab <schwab@suse.de>
8191
8192 * font.c (Ffont_face_attributes): Fix definition.
8193
81942008-06-16 Jason Rumney <jasonr@gnu.org>
8195
8196 * font.h (font_style_symbolic_from_value): Remove.
8197
8198 * font.c (font_style_symbolic_from_value): Remove.
8199 (font_style_symbolic): Revert to pre 2008-06-13 version.
8200
8201 * w32font.c (w32_to_fc_weight): New function.
8202 (w32font_full_name, logfont_to_fcname): Use it.
8203
82042008-06-16 Kenichi Handa <handa@m17n.org>
8205
8206 * font.c (font_check_object): Delete it.
8207 (font_clear_cache): Check if a font-object is alive.
8208 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8209 font-object to nil.
8210 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8211 (font_at): Don't call font_check_object.
8212 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8213
82142008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8215
8216 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8217
82182008-06-16 Chong Yidong <cyd@stupidchicken.com>
8219
8220 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8221
82222008-06-15 Chong Yidong <cyd@stupidchicken.com>
8223
8224 * font.c (font_parse_fcname): Only one decimal point.
8225 (font_unparse_fcname): Handle data in family and foundry indices
8226 as symbols, not strings.
8227 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8228
8229 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8230
8231 * font.h (font_unparse_gtkname): Add prototype.
8232
82332008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8234
8235 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8236
82372008-06-15 Andreas Schwab <schwab@suse.de>
8238
8239 * font.c (font_update_drivers): Fix crash when no drivers match.
8240
82412008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8242
8243 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8244 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8245
82462008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8247
8248 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8249
82502008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8251
8252 * process.c (Fserial_process_configure, Fprocess_send_eof):
8253 Use EQ to compare Lisp_Objects.
8254
82552008-06-13 Jason Rumney <jasonr@gnu.org>
8256
8257 * w32fns.c (Fw32_select_font): Remove old font API function.
8258
8259 * w32font.c (logfont_to_fcname): New function.
8260 (Fx_select_font): New font dialog function compatible with
8261 GTK/fontconfig version.
8262
8263 * font.c (font_style_symbolic_from_value): New function.
8264 (font_style_symbolic): Use it.
8265
8266 * font.h (font_style_symbolic_from_value): Declare new function.
8267
82682008-06-13 Juanma Barranquero <lekktu@gmail.com>
8269
8270 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8271 <font-width-table>: Fix typos in docstrings.
8272
82732008-06-13 Daniel Engeler <engeler@gmail.com>
8274
8275 These changes add serial port access.
8276 * process.c: Add HAVE_SERIAL.
8277 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8278 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8279 (list_processes_1, select_wrapper, Fstop_process)
8280 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8281 (status_notify): Modify to handle serial processes.
8282 [HAVE_SERIAL] (Fserial_process_configure)
8283 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8284 New functions.
8285 * process.h (struct Lisp_Process): Add `type'.
8286 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8287 New functions.
8288 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8289 serial ports.
b71ac3dd 8290 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8291 * w32.h: Add FILE_SERIAL.
8292 (struct _child_process): Add ovl_read, ovl_write.
8293
82942008-06-13 Kenichi Handa <handa@m17n.org>
8295
8296 * dispextern.h (enum lface_attribute_index): New member
8297 LFACE_FOUNDRY_INDEX.
8298
8299 * font.c (font_score): Delete arg alternate_families. Check only
8300 weight, slant, width, and size. Ignore the difference of alias
8301 style symbols.
8302 (font_sort_entites): Adjust for the above change. Reflect the
8303 order of font-driver to scores.
8304 (font_list_entities): Don't check alternate_familes here.
8305 (font_clear_prop): Handle foundry.
8306 (font_update_lface): Don't parse "foundry-family" form here.
8307 Handle FONT_FOUNDRY_INDEX.
8308 (font_find_for_lface): Likewise. Handle alternate families here.
8309 If registry is nil, try iso8859-1 and ascii-0.
8310 (font_open_for_lface): Pay attention to size in ENTITY.
8311 (font_open_by_name): Simplify by calling font_load_for_lface.
8312 (free_font_driver_list): Delete it.
8313 (font_update_drivers): Preserve the order of backends.
8314 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8315 of font_score and font_sort_entites.
8316 (font_update_sort_order): Likewise.
8317
8318 * xfaces.c (LFACE_FOUNDRY): New macro.
8319 (check_lface_attrs): Check foundry.
8320 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8321 (merge_face_vectors): Check foundry.
8322 (merge_face_ref): Likewise.
8323 (Finternal_set_lisp_face_attribute): Likewise.
8324 (x_update_menu_appearance): Likewise.
8325 (Finternal_get_lisp_face_attribute): Likewise.
8326 (lface_hash): Likewise.
8327 (lface_same_font_attributes_p): Likewise.
8328 (x_supports_face_attributes_p): Likewise.
8329 (tty_supports_face_attributes_p): Likewise.
8330 (Finternal_set_alternative_font_family_alist): Intern strings.
8331 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8332 (realize_default_face): Set LFACE_FOUNDRY (lface).
8333
8334 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8335 font-driver at first.
8336
8337 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8338
83392008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8340
8341 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8342
83432008-06-12 Jim Meyering <meyering@redhat.com>
8344
8345 Make unexec_free handle NULL the same way free does.
8346 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8347
83482008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8349
8350 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8351 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8352 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8353 (WEAK_ALIAS): Simplify.
8354 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8355 when searching a unibyte buffer.
8356
83572008-06-12 Chong Yidong <cyd@stupidchicken.com>
8358
8359 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8360
83612008-06-12 Juanma Barranquero <lekktu@gmail.com>
8362
8363 * w32font.c: Include ctype.h.
8364
83652008-06-11 Jason Rumney <jasonr@gnu.org>
8366
8367 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8368 misreported as space.
8369 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8370 as aliases for registry iso10646-1.
8371
83722008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8373
8374 * buffer.c (clone_per_buffer_values): Skip `name'.
8375
83762008-06-11 Chong Yidong <cyd@stupidchicken.com>
8377
8378 * font.c (font_parse_fcname): Fix last change; accept decimal
8379 points in font size.
8380
83812008-06-10 Jason Rumney <jasonr@gnu.org>
8382
8383 * w32uniscribe.c (add_opentype_font_name_to_list):
8384 Skip non unicode fonts.
8385
83862008-06-10 Chong Yidong <cyd@stupidchicken.com>
8387
8388 * xfns.c (Fx_font_dialog): New function.
8389
8390 * gtkutil.c (xg_dialog_response_cb): Rename from
8391 xg_file_response_callback.
8392 (pop_down_dialog): Rename from pop_down_file_dialog.
8393 (xg_get_file_name): Callers changed.
8394 (xg_get_font_name): New function.
8395
8396 * gtkutil.h (xg_get_font_name): Insert prototype.
8397
83982008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8399
8400 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8401 x_underline_minimum_display_offset.
8402 (syms_of_xdisp): Declare it here rather than in xterm.c.
8403 * dispextern.h (underline_minimum_offset): Declare it.
8404 * w32term.c (x_draw_glyph_string): Use it.
8405 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8406 (syms_of_xterm): Don't declare it any more.
8407 (x_draw_glyph_string): Adjust to the new name.
8408
84092008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8410
8411 * xterm.c (x_underline_minimum_display_offset): New var.
8412 (x_draw_glyph_string): Use it.
8413 (syms_of_xterm): Declare it.
8414
84152008-06-10 Chong Yidong <cyd@stupidchicken.com>
8416
8417 * font.c (font_parse_fcname): Accept GTK-style font names too.
8418
84192008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8420
8421 * dired.c (file_name_completion): Don't return t if the match is exact
8422 but with different capitalization.
8423 * minibuf.c (Ftry_completion): Simplify.
8424
8425 * window.c (Vwindow_point_insertion_type): New var.
8426 (set_window_buffer): Use it.
8427 (syms_of_window): Init and export it to Lisp.
8428
84292008-06-10 Kenichi Handa <handa@m17n.org>
8430
8431 * font.h (font_intern_prop): Prototype adjusted.
8432
8433 * font.c (font_intern_prop): New arg force_symbol.
8434 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8435 Adjust for the change of font_intern_prop.
8436
8437 * ftfont.c (ftfont_pattern_entity):
8438 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8439 (w32_registry):
8440 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8441 the change of font_intern_prop.
8442
84432008-06-09 Juanma Barranquero <lekktu@gmail.com>
8444
8445 * w32menu.c (digest_single_submenu): Declare extern.
8446
84472008-06-09 Jason Rumney <jasonr@gnu.org>
8448
8449 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8450
8451 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8452 (parse_single_submenu): Remove.
8453 (digest_single_submenu): Remove.
8454 (syms_of_w32menu): Don't initialise variables that have moved
8455 to menu.c.
8456 (set_frame_menubar): Sync with version in xmenu.c.
8457 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8458
8459 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8460 Make static again.
8461
84622008-06-09 Jason Rumney <jasonr@gnu.org>
8463
8464 Changes to w32 files related to the move of common menu code
8465 to menu.c on 2008-06-08 by Chong Yidong.
8466
8467 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8468 defs to w32gui.h.
8469 (single_keymap_panes, push_menu_item, push_menu_pane):
8470 Make globally visible.
8471
8472 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8473 (local_free, malloc_widget_value, free_widget_value)
8474 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8475 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8476 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8477 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8478 (menu_items, menu_items_allocated, menu_items_used)
8479 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8480 (init_menu_items, finish_menu_items, discard_menu_items)
8481 (grow_menu_items, push_submenu_start, push_submenu_end)
8482 (push_left_right_boundary, push_menu_pane, push_menu_item)
8483 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8484 (free_menubar_widget_tree_value, parse_single_submenu)
8485 (update_submenu_strings): Remove functions.
8486 (xmalloc_widget_value): Remove and declare extern.
8487
8488 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8489 (OBJ1): Build it.
8490
8491 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8492 (local_heap, local_alloc, local_free, malloc_widget_value)
8493 (free_widget_value): Define here.
8494
84952008-06-09 Kenichi Handa <handa@m17n.org>
8496
8497 * font.h (Qascii_0): Extern it.
8498
8499 * font.c (Qascii_0): New variable.
8500 (syms_of_font): DEFSYM it.
8501 (font_open_by_name): If the registry "iso8859-1" fails, try also
8502 "ascii-0".
8503
8504 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8505
85062008-06-08 Kenichi Handa <handa@m17n.org>
8507
8508 * .gdbinit (xfont): New command.
8509
85102008-06-08 Andreas Schwab <schwab@suse.de>
8511
8512 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8513 * Makefile.in (menu.o): Update dependencies.
8514
8515 * Makefile.in (obj): Always add menu.o.
8516 * emacs.c (main): Always call syms_of_menu.
8517 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8518
85192008-06-08 Chong Yidong <cyd@stupidchicken.com>
8520
8521 * Makefile.in: Compile menu.c.
8522
8523 * lisp.h: Declare syms_of_menu.
8524
8525 * emacs.c (main): Call syms_of_menu.
8526
8527 * keyboard.h: Relocate platform-independent menu definitions from
8528 xmenu.c.
8529
8530 * menu.c: New file. Relocate platform-independent menu
8531 definitions from xmenu.c. Suggested by Adrian Robert.
8532
8533 * xmenu.c: Remove platform-independent menu definitions.
8534 (menu_items menu_items_inuse, menu_items_allocated)
8535 (menu_items_used, menu_items_n_panes)
8536 (menu_items_submenu_depth): Move to keyboard.h.
8537 (init_menu_items, finish_menu_items, unuse_menu_items)
8538 (discard_menu_items, restore_menu_items, save_menu_items)
8539 (grow_menu_items, push_submenu_start, push_submenu_end)
8540 (push_left_right_boundary, push_menu_pane, push_menu_item)
8541 (keymap_panes, single_keymap_panes, single_menu_item)
8542 (list_of_panes, list_of_items, find_and_call_menu_selection)
8543 (xmalloc_widget_value, free_menubar_widget_value_tree)
8544 (parse_single_submenu, digest_single_submenu)
8545 (update_submenu_strings): Move to menu.c.
8546
85472008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8548
8549 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8550
85512008-06-06 Miles Bader <miles@gnu.org>
8552
8553 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8554 face, not frame default.
8555
85562008-06-05 Martin Rudalics <rudalics@gmx.at>
8557
8558 * window.c (pop_up_windows, pop_up_frames)
8559 (display_buffer_reuse_frames, Vpop_up_frame_function)
8560 (Vdisplay_buffer_function, Veven_window_heights)
8561 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8562 (Vspecial_display_function, Vsame_window_buffer_names)
8563 (Vsame_window_regexps, split_height_threshold)
8564 (Vsplit_window_preferred_function): Move those vars to window.el.
8565 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8566 (Fdisplay_buffer): Move those functions to window.el.
8567 (syms_of_window): Remove corresponding declarations.
8568 (display_buffer): New function.
8569 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8570 * dispnew.c (Flast_nonminibuf_frame): New function.
8571 * buffer.c (Fpop_to_buffer): Move to window.el.
8572
85732008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8574
8575 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8576
85772008-06-05 Kenichi Handa <handa@m17n.org>
8578
8579 * coding.c (detect_coding): Fix previous change.
8580 (detect_coding_system): Likewise.
8581
85822008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8583
8584 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8585
8586 * keymap.c (Vminibuffer_local_filename_must_match_map):
8587 Rename from Vminibuffer_local_must_match_filename_map.
8588 (syms_of_keymap):
8589 * minibuf.c (Fcompleting_read): Adjust accordingly.
8590 * commands.h: Rename declaration as well.
8591
85922008-06-05 Kenichi Handa <handa@m17n.org>
8593
8594 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8595 family name.
8596 (Ffont_put): Likewise.
8597
8598 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8599 current font-spec.
8600
8601 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8602 is unspecified.
8603
8604 * xfaces.c (realize_x_face): If the font-related face attributes
8605 are the same as those of default face, realize a new fontset from
8606 default->fontset.
8607 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8608
86092008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8610
8611 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8612 (move_it_in_display_line): New wrapper.
8613
8614 * window.c (window_scroll_pixel_based_preserve_x)
8615 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8616 (window_scroll_pixel_based, window_scroll_line_based):
8617 Use them to preserve column positions.
8618 (syms_of_window): Initialize them.
8619
8620 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8621 (HPOS . VPOS) pair.
8622
8623 * dispextern.h (move_it_in_display_line): Declare.
8624
86252008-06-05 Juanma Barranquero <lekktu@gmail.com>
8626
8627 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8628 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8629 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8630
86312008-06-04 Juanma Barranquero <lekktu@gmail.com>
8632
8633 * window.c (Fset_window_parameter): Doc fix.
8634 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8635
86362008-06-04 Joakim Verona <joakim@verona.se>
8637
8638 * window.h (struct window): Add new member window_parameters.
8639
8640 * window.c (Fwindow_parameters, Fwindow_parameter)
8641 (Fset_window_parameter): New defuns.
8642 (syms_of_window): Defsubr the new defuns.
8643 (make_window): Initialize window_parameters to nil.
8644
86452008-06-04 John Paul Wallington <jpw@pobox.com>
8646
8647 * eval.c (Fdefmacro): Doc fix.
8648
86492008-06-04 Kenichi Handa <handa@m17n.org>
8650
8651 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8652 Be sure to call setup_coding_system when we find a proper coding system.
8653 (detect_coding_system): Fix handling of coding->head_ascii.
8654
86552008-06-03 Andreas Schwab <schwab@suse.de>
8656
8657 * font.c (font_prop_validate_spacing): Fix last change.
8658
86592008-06-03 Kenichi Handa <handa@m17n.org>
8660
8661 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8662 (font_parse_fcname): Fix handling of unknown key.
8663
8664 * xfont.c (xfont_list): Try an alias.
8665
8666 * charset.c (char_charset): Return NULL if the arg charset_list is
8667 specified and C doesn't belong to any of them.
8668
86692008-06-02 Chip Coldwell <coldwell@redhat.com>
8670
8671 * font.c (font_pixel_size): Don't take cdr of an integer.
8672
86732008-06-02 Jim Meyering <meyering@redhat.com>
8674
8675 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8676 * alloc.c (xfree): Return right away for a NULL arg.
8677 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8678 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8679 * mac.c (create_apple_event_from_event_ref): Likewise.
8680 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8681 Likewise.
8682 * doprnt.c (doprnt1): Likewise.
8683 * frame.c (frame): Likewise.
8684 * keyboard.c (wipe_kboard): Likewise.
8685 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8686 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8687 * term.c (tty_default_color_capabilities, maybe_fatal)
8688 (delete_tty): Likewise.
8689 * w16select.c (string): Likewise.
8690 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8691 * w32bdf.c (w32_free_bdf_font): Likewise.
8692 * w32fns.c (w32_unload_font): Likewise.
8693 * w32font.c (w32font_close): Likewise.
8694 * window.c (size_window): Likewise.
8695 * xselect.c (receive_incremental_selection): Likewise.
8696 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8697 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8698 * w32.c (stat): Likewise.
8699
8700 Remove useless if-before-free tests.
8701 * editfns.c (Fset_time_zone_rule): Likewise.
8702 * lread.c (nosuffix): Likewise.
8703 * ralloc.c (get_bloc): Likewise.
8704 * regex.c (reg_free): Likewise.
8705 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8706 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8707 * xsmfns.c (smc_save_yourself_CB): Likewise.
8708
87092008-06-02 Kenichi Handa <handa@m17n.org>
8710
8711 * font.c (font_find_for_lface): Handle float font size.
8712 (font_open_for_lface): Likewise.
8713
8714 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8715 comparing the properties.
8716
87172008-06-01 Jason Rumney <jasonr@gnu.org>
8718
8719 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8720 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8721 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8722 Don't add empty script list.
8723 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8724
87252008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8726
8727 * Makefile.in (dot, dotdot): Remove, update users.
8728 ".." has been used elsewhere in the file for a long time.
8729 (LIBXT_STATIC): Remove conditional based on unused variable.
8730
87312008-06-01 Miles Bader <miles@gnu.org>
8732
8733 * xfaces.c (Vface_remapping_alist): New variable.
8734 (syms_of_xfaces): Initialize it.
8735 (enum named_merge_point_kind): New type.
8736 (struct named_merge_point): Add `named_merge_point_kind' field.
8737 (push_named_merge_point): Make cycle detection respect different
8738 named-merge-point kinds.
8739 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8740 Remove face-name alias resolution.
8741 (lface_from_face_name): New definition using
8742 `lface_from_face_name_no_resolve'.
8743 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8744 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8745 (get_lface_attributes): New definition that layers face-remapping on
8746 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8747 (lookup_basic_face): New function.
8748 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8749 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8750 `get_lface_attributes'.
8751 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8752 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8753 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8754
8755 * xdisp.c (init_iterator): Pass base_face_id through
8756 `lookup_basic_face' when we actually use it as a face-id.
8757 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8758 DEFAULT_FACE_ID.
8759
8760 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8761 lookup the initial face-id.
8762
8763 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8764
87652008-06-01 Juanma Barranquero <lekktu@gmail.com>
8766
8767 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8768 (Fremove_text_properties): Fix typos in docstrings.
8769
87702008-05-31 Kenichi Handa <handa@m17n.org>
8771
8772 * font.c (font_list_entities): Fix the car part of data to be
8773 stored in the cache.
8774
8775 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8776
87772008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8778
8779 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8780 Add a `test' argument so another predicate than `equal' can be used.
8781 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8782 (map_char_table): Remove unused vars `c' and `i'.
8783 * lisp.h (Foptimize_char_table): Adjust declaration.
8784 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8785
87862008-05-30 Kenichi Handa <handa@m17n.org>
8787
8788 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8789 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8790 defined.
8791
87922008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8793
8794 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8795 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8796 frame-local settings for the same variable.
8797
87982008-05-30 Kenichi Handa <handa@m17n.org>
8799
8800 * fontset.c (Ffont_info): Move to font.c.
8801 (syms_of_fontset): Delete defsubr of Sfont_info.
8802
8803 * font.c (font_style_to_value, font_score): Delete casting of the
8804 args to xstcasecmp.
8805 (register_font_driver): Increment num_font_drivers only when
8806 registering the driver globally.
8807 (Ffont_info): Move from fontset.c. Handle a font object too.
8808 (syms_of_font): Defsubr Sfont_info.
8809
88102008-05-29 Kenichi Handa <handa@m17n.org>
8811
8812 * coding.h (enum define_coding_utf8_arg_index): New enum.
8813 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8814 coding_attr_utf_bom.
8815 (enum utf_bom_type): Rename from utf_16_bom_type.
8816 (struct utf_16_spec): Adjust for the above change.
8817 (struct coding_system): Add utf_8_bom in `spec' union.
8818
8819 * coding.c (CODING_UTF_8_BOM): New macro.
8820 (enum coding_category): Delete coding_category_utf_8, add
8821 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8822 coding_category_utf_8_sig.
8823 (CATEGORY_MASK_UTF_8): Delete it.
8824 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8825 (CATEGORY_MASK_UTF_8_SIG): New macros.
8826 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8827 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8828 CATEGORY_MASK_UTF_8_SIG.
8829 (CATEGORY_MASK_UTF_8): New macro.
8830 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8831 (detect_coding_utf_8): Check BOM.
8832 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8833 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8834 (encode_coding_utf_16): Likewise.
8835 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8836 (detect_coding, detect_coding_system): Handle utf-8-auto.
8837 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8838 (syms_of_coding): Fix setting up of Vcoding_category_table.
8839
88402008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8841
8842 * process.c (Faccept_process_output): If `millisec' is non-nil,
8843 `seconds' default to 0.
8844 (wait_reading_process_output): Also return non-nil if we read output
8845 from a non-running process.
8846
88472008-05-29 Jason Rumney <jasonr@gnu.org>
8848
8849 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8850 `raster' specified.
8851 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8852 in the uniscribe backend, but disallow any font that has no
8853 unicode subrange support.
8854
88552008-05-29 Juanma Barranquero <lekktu@gmail.com>
8856
8857 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8858 Fix typos in docstrings.
8859
88602008-05-29 Kenichi Handa <handa@m17n.org>
8861
8862 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8863 (Fx_family_fonts): Set frame correctly.
8864
88652008-05-28 Jason Rumney <jasonr@gnu.org>
8866
8867 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8868
88692008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8870
8871 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8872 calling build_annotations.
8873
88742008-05-28 Juanma Barranquero <lekktu@gmail.com>
8875
8876 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8877 (Fencode_coding_string):
8878 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8879 <latin-extra-code-table>: Fix typos in docstrings.
8880 (syms_of_coding) <coding-system-alist>: Doc fix.
8881 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8882
88832008-05-28 Kenichi Handa <handa@m17n.org>
8884
8885 * fontset.c (Ffont_info): Don't call font_close_object.
8886
8887 * font.c (font_parse_family_registry): Use Ffont_put to validate
8888 foundry and family.
8889 (font_delete_unmatched): Don't check spacing.
8890 (font_list_entities): Add spacing to the spec to list fonts.
8891
8892 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8893 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8894
8895 * coding.c (encode_coding_raw_text): Fix previous change.
8896 (encode_coding_object): When the dst_object is a buffer and is
8897 different from src_object, move gap to PT.
8898
88992008-05-27 Chong Yidong <cyd@stupidchicken.com>
8900
8901 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8902
89032008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8904
8905 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8906 all branches. Compute it differently.
8907
8908 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8909
89102008-05-27 Juanma Barranquero <lekktu@gmail.com>
8911
8912 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8913 into "else if () ... else ...".
8914
89152008-05-27 Jason Rumney <jasonr@gnu.org>
8916
8917 * w32font.c (w32font_open_internal): Determine if glyph indices
8918 are likely to work here.
8919
89202008-05-27 Chong Yidong <cyd@stupidchicken.com>
8921
8922 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8923 draw overlap glyphs with appropriate highlighting.
8924
89252008-05-27 Kenichi Handa <handa@m17n.org>
8926
8927 * xfont.c (xfont_open): Fix calculation of font->average_width.
8928
89292008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8930
8931 * casefiddle.c (casify_object): Try to guess better whether the
8932 argument is a byte or a char.
8933
89342008-05-26 Andreas Schwab <schwab@suse.de>
8935
8936 * xselect.c (x_reply_selection_request): Properly handle format == 32.
8937 Always send multiples of format size.
8938
8939 * xterm.c (x_set_frame_alpha): Fix type mismatch.
8940
89412008-05-26 Jason Rumney <jasonr@gnu.org>
8942
8943 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8944 (compute_metrics): Don't set failure if we just cleared the cache.
8945 (w32_weight_table): Remove unused variable.
8946 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
8947 backwards compatibility.
8948
89492008-05-25 Kenichi Handa <handa@m17n.org>
8950
8951 * w32term.c (x_draw_glyph_string):
8952 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
8953
8954 * xfaces.c: Delete unused function prototypes.
8955 (xstrlwr, font_frame): Delete them.
8956 (clear_face_cache): Delete unused variable.
8957
8958 * xftfont.c (xftfont_open): Delete unused variable.
8959 If underline_thickness is not 1, adjust underline_position.
8960
8961 * ftxfont.c (ftxfont_open): Delete unused variable.
8962
8963 * fontset.c (face_for_char): Optimize for the case of no charset
8964 property.
8965
8966 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
8967 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
8968 (otf_open, font_otf_capability, generate_otf_features)
8969 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8970 Comment out by surrounding "#if 0" and "#endif" for the moment.
8971 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
8972 (syms_of_font): Codes for accessing above commented out.
8973
89742008-05-24 Eli Zaretskii <eliz@gnu.org>
8975
8976 * w32proc.c: Include dispextern.h.
8977
8978 * w32.c: Include dispextern.h.
8979
89802008-05-23 Juanma Barranquero <lekktu@gmail.com>
8981
8982 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
8983 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
8984 Fix typos in docstrings.
8985
89862008-05-23 Jason Rumney <jasonr@gnu.org>
8987
8988 * xsmfns.c: Remove includes that are already included by config.h.
8989
89902008-05-23 Kenichi Handa <handa@m17n.org>
8991
8992 * charset.c (Qemacs, charset_emacs): New variables.
8993 (char_charset): Fix for non-Unicode characters.
8994 (syms_of_charset): Define charset_emacs.
8995
8996 * w32term.c (x_draw_glyph_string): Be sure to update
8997 s->underline_thickness and s->underline_position. Be sure to draw
8998 underline within the current line area.
8999
9000 * xterm.c (x_draw_glyph_string): Be sure to update
9001 s->underline_thickness and s->underline_position. Be sure to draw
9002 underline within the current line area.
9003
9004 * fontset.c: Delete unused variables and add casting for char *
9005 throughout the file.
9006 (fontset_font): Try the fallback fonts of the current fontset
9007 before consulting the default fontset.
9008
9009 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9010
9011 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9012
90132008-05-22 Jason Rumney <jasonr@gnu.org>
9014
9015 * font.c: Don't include strings.h.
9016
9017 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9018
9019 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9020 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9021 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9022 to call xstrcasecmp.
9023
9024 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9025
9026 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9027
9028 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9029
9030 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9031
90322008-05-22 Kenichi Handa <handa@m17n.org>
9033
9034 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9035
9036 * font.c (font_prop_validate_style): Adjust for the format
9037 change of font_style_table.
9038
9039 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9040 two args.
9041
9042 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9043 two args.
9044
90452008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9046
9047 * minibuf.c (keys_of_minibuf): Delete.
9048 * lisp.h (keys_of_minibuf): Delete.
9049 * emacs.c (main): Don't call keys_of_minibuf.
9050
90512008-05-22 Kenichi Handa <handa@m17n.org>
9052
9053 * ftfont.c (ftfont_resolve_generic_family): Rename from
9054 ftfont_list_generic_family. Return a single family for each
9055 generic family.
9056 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9057 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9058 Call font_add_log.
9059 (ftfont_match): Call font_add_log.
9060
9061 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9062 (FONT_DEBUG): Define it.
9063 (font_add_log): Extern it.
9064 (font_assert): Rename from xassert.
9065
9066 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9067 (xfont_list_family): Call font_add_log.
9068 (xfont_match): Likewise.
9069 (memq_no_quit): Delete.
9070
9071 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9072 call of Ffont_xlfd_name.
9073
9074 * xfaces.c (struct table_entry, slant_table, weight_table)
9075 (swidth_table): Move to font.c.
9076
9077 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9078 xassert are changed to font_assert. Delete many unused variables.
9079 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9080 New variables.
9081 (struct table_entry): Move from xfaces.c and modified.
9082 (weight_table, slant_table, width_table): Move from xfaces.c and
9083 contents adjusted for the change of struct table_entry.
9084 (font_style_to_value, font_style_symbolic): Adjust for the
9085 format change of font_style_table.
9086 (font_parse_family_registry): Don't overwrite existing foundry and
9087 family of font_spec.
9088 (font_score): Fix calculation of diff for sizes.
9089 (font_sort_entites): Call font_add_log.
9090 (font_delete_unmatched): Return a newly created list.
9091 (font_list_entities): Fix previous change. Call font_add_log.
9092 (font_matching_entity, font_open_entity, font_close_entity):
9093 Call font_add_log.
9094 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9095 (Finternal_set_font_style_table): Delete.
9096 (BUILD_STYLE_TABLE): New macro.
9097 (build_style_table): New function.
9098 (Vfont_log, font_log_env_checked): New variables.
9099 (font_add_log): New function.
9100 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9101 Declare Lisp variables "font-weight-table", "font-slant-table",
9102 "font-width-table", and "font-log". Initialize font_style_table.
9103
91042008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9105
9106 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9107
91082008-05-21 Seiji Zenitani <zenitani@mac.com>
9109 Ryo Yoshitake <ryo@shiftmode.net>
9110
9111 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9112 (Vframe_alpha_lower_limit): New variable.
9113 (x_set_alpha): New function.
9114
9115 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9116
9117 * xfns.c (x-create-frame, Qalpha):
9118 Initialize the frame parameter `alpha'.
9119 * xterm.c (OPAQUE, OPACITY): New.
9120 (x_set_frame_alpha): New function.
9121 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9122
9123 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9124 * w32fns.c (w32_frame_parm_handlers): Likewise.
9125
91262008-05-20 Jason Rumney <jasonr@gnu.org>
9127
9128 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9129 truetype fonts to opentype list.
9130
91312008-05-20 Juanma Barranquero <lekktu@gmail.com>
9132
9133 * fontset.c (Ffontset_info): Doc fix.
9134 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9135 <ignore-relative-composition>: Fix typos in docstrings.
9136
9137 * font.c (syms-of-font) <font-encoding-alist>:
9138 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9139 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9140 (Ffont_otf_alternates): Doc fixes.
9141
91422008-05-20 Kenichi Handa <handa@m17n.org>
9143
9144 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9145 font.h through out the file.
9146 (FONT_DRIVERS): Rename from FONTOBJ.
9147 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9148 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9149
9150 * emacs.c (main): Call syms_of_font unconditionally.
9151
9152 * font.h (find_font_encoding): Extern it.
9153
9154 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9155 fontset.c.
9156 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9157 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9158 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9159 only when HAVE_WINDOW_SYSTEM is defined.
9160 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9161 when HAVE_WINDOW_SYSTEM is defined.
9162
9163 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9164 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9165
9166 * xfaces.c: Include font.h unconditionally.
9167 (merge_face_ref, merge_face_vectors)
9168 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9169
91702008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9171
9172 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9173 indirect_variable.
9174 * eval.c (lisp_indirect_variable): New fun.
9175 (Fuser_variable_p): Use it.
9176
91772008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9178
9179 * lisp.h (indirect_variable):
9180 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9181 Use Lisp_Symbol pointers rather than Lisp_Object.
9182 Adjust callers.
9183 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9184 To this end, change calling-convention.
9185
9186 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9187 if some non-hidden buffers are selected by string&pred.
9188
91892008-05-19 Chong Yidong <cyd@stupidchicken.com>
9190
9191 * process.c (wait_reading_process_output): Always check status
9192 when in batch mode.
9193
91942008-05-19 Kenichi Handa <handa@m17n.org>
9195
9196 * font.c (font_list_entities): Fix handling of cache.
9197 (font_matching_entity): Likewise.
9198
9199 * ftfont.c (cs_iso8859_1): Delete.
9200 (ft_face_cache): New variable.
9201 (struct ftfont_info): New member fc_charset_idx.
9202 (ftfont_build_basic_charsets): Delete.
9203 (fc_charset_table): New variable.
9204 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9205 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9206 Callers changed.
9207 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9208 (ftfont_spec_pattern): New argument fc_charset_idx.
9209 Check registry more rigidly. Change callers.
9210 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9211 change of :font-entity property of the font.
9212
9213 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9214 property of the font.
9215
92162008-05-18 Juanma Barranquero <lekktu@gmail.com>
9217
9218 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9219 (Funencodable_char_position, Fcheck_coding_systems_region)
9220 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9221 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9222 (Ffind_operation_coding_system, Fset_coding_system_priority)
9223 (Fcoding_system_eol_type): Doc fixes.
9224
92252008-05-17 Glenn Morris <rgm@gnu.org>
9226
9227 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9228
92292008-05-16 Eli Zaretskii <eliz@gnu.org>
9230
9231 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9232 and st_gid.
9233
9234 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9235 HAVE_WINDOW_SYSTEM is not defined.
9236
9237 * xfaces.c (merge_face_ref, merge_face_vectors)
9238 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9239 HAVE_WINDOW_SYSTEM is defined.
9240 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9241
92422008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9243
9244 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9245
92462008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9247
9248 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9249
92502008-05-15 Kenichi Handa <handa@m17n.org>
9251
9252 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9253 preference.
9254
92552008-05-15 Glenn Morris <rgm@gnu.org>
9256
9257 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9258
92592008-05-15 Chong Yidong <cyd@stupidchicken.com>
9260
9261 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9262 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9263
9264 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9265
92662008-05-15 Kenichi Handa <handa@m17n.org>
9267
9268 * ftfont.c (ftfont_list): Downcase family name to check generic
9269 families.
9270
9271 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9272 font-spec for QCfont value.
9273
9274 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9275 buffer. Check the return value of it.
9276
92772008-05-14 Jason Rumney <jasonr@gnu.org>
9278
9279 * w32term.c (w32_get_glyph_overhangs): Remove.
9280 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9281
92822008-05-14 Kenichi Handa <handa@m17n.org>
9283
9284 * font.c (font_prop_validate): Make nil a valid value.
9285 (font_clear_cache): Check if the cached vector of entities is nil
9286 or not.
9287
92882008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9289
9290 * emacs.c (main_thread): Conditionalize on
9291 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9292 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9293
9294 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9295 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9296 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9297
92982008-05-14 Kenichi Handa <handa@m17n.org>
9299
9300 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9301 has no corresponding coding system.
9302
93032008-05-14 Jason Rumney <jasonr@gnu.org>
9304
9305 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9306
9307 * w32font.h (w32font_open_internal): Update declaration.
9308
9309 * w32font.c (w32font_open_internal): Change last argument from
9310 w32font_info struct to font object. Fill in font object from
9311 font_entity. Get Outline metrics if possible. Use them to
9312 calculate underline position and thickness. Use xlfd name as name
9313 property. Don't set codepage.
9314 (w32font_open): Pass font_object to w32font_open_internal. Don't
9315 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9316 (w32font_draw): Use s->font.
9317 (clear_cached_metrics): Don't clear non-existent blocks.
9318
9319 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9320 font was not found.
9321 (x_draw_glyph_string): Use underline position and thickness from font.
9322
9323 * w32uniscribe.c (uniscribe_open): Pass font_object to
9324 w32font_open_internal.
9325
93262008-05-14 Kenichi Handa <handa@m17n.org>
9327
9328 These changes are to delete all legacy font-handling codes, and
9329 make Emacs use only font-backends.
9330
9331 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9332 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9333
9334 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9335
9336 * charset.h (Vcharset_non_preferred_head)
9337 (Vcurrent_iso639_language): Extern them.
9338
9339 * charset.c (Vcharset_non_preferred_head): New variable.
9340 (Vcurrent_iso639_language): New variable.
9341 (syms_of_charset): Declare it as a Lisp variable.
9342 (char_charset): Don't check non preferred charsets. As a last
9343 resort, return charset_unicode.
9344 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9345
9346 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9347 conditionals. Don't check enable_font_backend. Delete all codes
9348 used only when USE_FONT_BACKEND is not defined.
9349
9350 * dispextern.h (struct glyph_string): Change type of `font' to
9351 `struct font *'.
9352 (struct glyph_string): New member underline_position and
9353 underline_thickness.
9354 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9355 (struct face): Change type of `font' to `struct font *'. Remove
9356 members `font_name', `font_info_id'.
9357 (per_char_metric, encode_char): Delete externs.
9358 (calc_pixel_width_or_height): Adjust the prototype.
9359
9360 * emacs.c (enable_font_backend): Delete extern.
9361 (main): Don't set enable_font_backend. Don't check the command
9362 line argument "-disable-font-backend".
9363
9364 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9365 (enum font_property_index): New members FONT_DPI_INDEX,
9366 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9367 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9368 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9369 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9370 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9371 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9372 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9373 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9374 (struct font_spec, struct font_entity): New structs.
9375 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9376 (struct font): Many members from old "struct font_info" moved to
9377 here. Members font and entity deleted.
9378 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9379 the new font-related objects.
9380 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9381 (CHECK_FONT_GET_OBJECT): Likewise.
9382 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9383 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9384 (struct font_driver): New members case_sensitive anc check. Type
9385 of the member list and open changed.
9386 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9387 (font_symbolic_width, font_find_object, font_get_spec)
9388 (font_set_lface_from_name): Delete extern.
9389 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9390
9391 * font.c: Include <strings.h>.
9392 (enable_font_backend): Delete it.
9393 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9394 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9395 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9396 (null_string): Delete it.
9397 (null_vector): Make it static.
9398 (font_family_alist): Delete it.
9399 (Qnormal): Extern it.
9400 (QCextra, QClanguage): Delete it.
9401 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9402 (font_make_spec, font_make_entity, font_make_object)
9403 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9404 the string. Callers changed.
9405 (font_pixel_size): Adjusted for the format change of font-related
9406 objects.
9407 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9408 (font_style_to_value, font_style_symbolic): New function.
9409 (build_font_family_alist): Delete it.
9410 (font_registry_charsets): Use Fassoc_string instead of
9411 assq_no_quit.
9412 (font_prop_validate_symbol): Don't return null_string.
9413 (font_prop_validate_style): Adjusted for the change of
9414 style-related values in a font vector.
9415 (font_property_table): Delete entries for QClanguage and
9416 QCantialias, add entries for QCavgwidth.
9417 (get_font_prop_index): Delete the 2nd argument FROM.
9418 (font_prop_validate): Arguments changed.
9419 (font_put_extra): Adjusted for the change of font-related objects.
9420 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9421 (font_parse_fcname, font_unparse_fcname)
9422 (font_prepare_composition): Likewise.
9423 (font_parse_family_registry): Renamed from font_merge_old_spec.
9424 (otf_open): Delete the 1st arg entity.
9425 (font_otf_capability): Adjusted for the above change.
9426 (font_score): New arg alternate_families. Adjusted for the change
9427 of font-related objects.
9428 (font_sort_entites): New arg best_only.
9429 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9430 Delete them.
9431 (font_match_p): Check alternate families.
9432 (font_find_object): Delete it.
9433 (font_check_object): New function.
9434 (font_clear_cache): Adjusted for the change of font-related objects.
9435 (font_delete_unmatched): New arg.
9436 (font_list_entities): Call font_driver->list with a spec that
9437 doesn't specify style-related properties.
9438 (font_matching_entity): Arguments changed. Caller changed.
9439 (font_open_entity): Adjusted for the change of font-related objects.
9440 (font_close_object, font_has_char, font_encode_char)
9441 (font_get_name, font_get_spec): Likewise.
9442 (font_spec_from_name, font_clear_prop, font_update_lface):
9443 New functions.
9444 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9445 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9446 (font_at): Adjusted for the change of font-related objects.
9447 (font_range): New function.
9448 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9449 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9450 (Fcopy_font_spec, Fmerge_font_spec): New function.
9451 (Ffont_family_list): Renamed from list-families.
9452 (Finternal_set_font_style_table): Arguments changed.
9453 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9454 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9455 change of font-related objects.
9456 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9457
9458 * fontset.h (struct font_info): Delete it. Most members go to
9459 struct font.
9460 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9461 (enum FONT_SPEC_INDEX): Delete it.
9462 (font_info, list_fonts_func, load_font_func, query_font_func)
9463 (set_frame_fontset_func, find_ccl_program_func)
9464 (get_font_repertory_func, new_fontset_from_font_name): Delete
9465 externs.
9466 (fontset_from_font_name): Extern it.
9467 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9468 (FONT_INFO_FROM_FACE): Deleted.
9469 (face_for_font): Adjust prototype.
9470
9471 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9472 conditionals. Don't check enable_font_backend. Delete all codes
9473 used only when USE_FONT_BACKEND is not defined.
9474 (get_font_info_func, list_font_func, load_font_func)
9475 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9476 (get_font_repertory_func): Delete them.
9477 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9478 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9479 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9480 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9481 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9482 (fontset_compare_rfontdef): New function.
9483 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9484 rfont-defs by qsort. Adjusted for the change of font-group vector.
9485 (load_font_get_repertory): Deleted.
9486 (fontset_find_font): Use new macros to ref/set elements of
9487 font-def and rfont-def.
9488 (fontset_font): Fix the timing of remembering that no font for C.
9489 (free_face_fontset): Do nothing if the face has no fontset.
9490 (face_suitable_for_char_p): Use new macros to ref/set elements of
9491 rfont-def.
9492 (face_for_char): Likewise. Call face_for_char with font_object.
9493 (fs_load_font): Delete. Delete #pragma surrounding it.
9494 (fs_query_fontset): Use strcasecmp instead of strcmp.
9495 (generate_ascii_font_name): Adjusted for the format change of
9496 font-spec.
9497 (Fset_fontset_font): Likewise. Use new macros to set elements of
9498 font-def.
9499 (Fnew_fontset): Use font_unparse_xlfd to generate
9500 FONTSET_ASCII (fontset).
9501 (new_fontset_from_font_name): Deleted.
9502 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9503 a fontset is already created for the font. FIx updating of
9504 Vfontset_alias_alist.
9505 (fontset_ascii_font): Deleted.
9506 (Ffont_info): Adjusted for the format change of font-spec.
9507 (Finternal_char_font): Likewise.
9508 (Ffontset_info): Likewise.
9509 (syms_of_fontset): Don't check load_font_func.
9510
9511 * fns.c (internal_equal): Handle PREV_FONT.
9512
9513 * frame.h: Delete USE_FONT_BACKEND conditional.
9514
9515 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9516 conditionals. Don't check enable_font_backend. Delete all codes
9517 used only when USE_FONT_BACKEND is not defined.
9518 (x_set_font): Call x_new_font, not x_new_fontset2.
9519 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9520 already set for the frame.
9521
9522 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9523 a font-entity by font_make_entity. Use font_intern_prop instead
9524 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9525 font property. If a font is scalable, set avgwidth property to 0.
9526 Set font-entity property by font_put_extra.
9527 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9528 (ffont_driver): Adjusted for the change of struct font_driver.
9529 (ftfont_spec_pattern): New function.
9530 (ftfont_list): Return a list, not vector.
9531 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9532 (ftfont_list_family): Don't downcase names.
9533 (ftfont_free_entity): Deleted.
9534 (ftfont_open): Return a font-object. Adjusted for the change of
9535 struct font. Get underline_thickness and underline_position from
9536 font property. Don't update dpyinfo->smallest_font_height and
9537 dpyinfo->smallest_char_width.
9538 (ftfont_close): Don't free `struct font'.
9539 (ftfont_has_char): Adjusted for the format change of font-entity.
9540 (ftfont_encode_char, ftfont_text_extents): Likewise.
9541
9542 * ftxfont.c (ftxfont_list): Return a list, not vector.
9543 (ftxfont_open): Return a font-object. Adjusted for the change of
9544 struct font. Get underline_thickness and underline_position from
9545 font property. Don't update dpyinfo->smallest_font_height and
9546 dpyinfo->smallest_char_width.
9547 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9548 (ftxfont_draw): Adjusted for the change of struct font.
9549
9550 * image.c (image_ascent): Don't include "charset.h". Include
9551 "character.h" and "font.h".
9552
9553 * lisp.h (enum pvec_type): New member PREV_FONT.
9554 (Fassoc_string): EXFUN it.
9555
9556 * print.c: Include font.h.
9557 (print_object): Handle font-related objects.
9558
9559 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9560 conditionals. Don't check enable_font_backend. Delete all codes
9561 used only when USE_FONT_BACKEND is not defined.
9562 (handle_auto_composed_prop): Do nothing if it->f is not on a
9563 window system. Check how many following characters can be
9564 displayed by the same font.
9565 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9566 'struct font *'.
9567 (get_char_face_and_encoding): Assign the whole encoding task to
9568 the `encode-char' method of a font driver.
9569 (fill_composite_glyph_string): Adjusted for the change of `struct
9570 face' and `struct glyph_string'.
9571 (fill_glyph_string): Likewise.
9572 (get_per_char_metric): Arguments changed.
9573 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9574 and `struct glyph_string'.
9575 (produce_stretch_glyph, calc_line_height_property)
9576 (x_produce_glyphs): Likewise.
9577
9578 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9579 conditionals. Don't check enable_font_backend. Delete all codes
9580 used only when USE_FONT_BACKEND is not defined. Use
9581 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9582 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9583 (Qp): Extern them.
9584 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9585 Deleted.
9586 (struct font_name): Deleted.
9587 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9588 (compare_fonts_by_sort_order): New function.
9589 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9590 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9591 Deleted.
9592 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9593 compare_fonts_by_sort_order.
9594 (Fx_font_family_list): Call Ffont_family_list.
9595 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9596 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9597 (face_symbolic_slant, face_symbolic_swidth)
9598 (split_font_name_into_vector, build_font_name_from_vector)
9599 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9600 (font_rescale_ratio, split_font_name, build_font_name)
9601 (free_font_names, sort_fonts, x_face_list_fonts)
9602 (face_font_available_p, sorted_font_list, cmp_font_names)
9603 (font_list_1, concat_font_list, font_list, remove_duplicates):
9604 Deleted.
9605 (Fx_list_fonts): Use Ffont_list.
9606 (LFACE_AVGWIDTH): Deleted.
9607 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9608 by FONTP.
9609 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9610 (set_lface_from_font_name): Delete it.
9611 (set_lface_from_font): Renamed from
9612 set_lface_from_font_and_fontset. Caller changed. Don't set
9613 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9614 for face.
9615 (merge_face_vectors): Copy font-spec if necessary.
9616 Clear properties of the font-spec if necessary.
9617 (merge_face_ref): Clear properties of the font-spec if necessary.
9618 (Finternal_set_lisp_face_attribute): Likewise.
9619 (set_font_frame_param): Use font_load_for_lface to load a
9620 font-object, and call Fmodify_frame_parameters with it.
9621 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9622 font name by Ffont_xlfd_name.
9623 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9624 QCslant, and QCwidth.
9625 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9626 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9627 Compare fonts by EQ.
9628 (lookup_non_ascii_face): Deleted.
9629 (face_for_font): The 2nd argument changed.
9630 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9631 Check atomic font properties by case insensitive.
9632 (realize_non_ascii_face): Set face->overstrike correctly.
9633 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9634 (dump_realized_face): Get font name from
9635 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9636
9637 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9638 conditionals. Don't check enable_font_backend. Delete all codes
9639 used only when USE_FONT_BACKEND is not defined.
9640 (xic_create_xfontset): Original code deleted and renamed from
9641 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9642 (x_make_gc): Don't set GCFont in GCs.
9643 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9644 opened by "fixed".
9645 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9646 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9647 get_font_repertory_func.
9648
9649 * xfont.c: Include <stdlib.h> and "ccl.h".
9650 (struct xfont_info): New structure.
9651 (xfont_query_font): Deleted.
9652 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9653 moved from xterm.c.
9654 (xfont_driver): Adjusted for the change of struct font_driver.
9655 (compare_font_names): New function.
9656 (xfont_list_pattern): Sort font names case insensitively. Make
9657 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9658 (xfont_list): Return a list, not vector.
9659 (xfont_match): If the font doesn't have QCname property, generate
9660 a name from the other font properties.
9661 (xfont_open): Return a font-object. Adjusted for the change of
9662 struct font. Get underline_thickness and underline_position from
9663 font property. Don't update dpyinfo->smallest_font_height and
9664 dpyinfo->smallest_char_width.
9665 (xfont_close): Don't free struct font.
9666 (xfont_prepare_face): Adjusted for the change of struct font.
9667 (xfont_done_face): Deleted.
9668 (xfont_has_char): Adjusted for the change of struct font.
9669 (xfont_encode_char, xfont_draw): Likewise.
9670 (xfont_check): New function.
9671
9672 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9673 callback function.
9674 (xftfont_match): Adjusted for the format change of font-entity.
9675 (xftfont_open): Adjusted for the format change of font-entity and
9676 font-object. Adjusted for the change of struct font. Return a
9677 font-object. Don't update dpyinfo->smallest_font_height and
9678 dpyinfo->smallest_char_width.
9679 (xftfont_close): Block input while calling XftFontClose.
9680 (xftfont_prepare_face): Don't block input while calling
9681 xftfont_get_colors. Adjusted for the change of struct font.
9682 (xftfont_shape): Return value of error case fixed.
9683
9684 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9685
9686 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9687 conditionals.
9688 (FONT_WIDTH): Return (f)->max_width.
9689 (struct x_display_info): Delete member `font'.
9690 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9691 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9692 (struct x_output): Change type of `font' to `struct font *'.
9693
9694 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9695 conditionals. Don't check enable_font_backend. Delete all codes
9696 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9697 (x_per_char_metric, x_encode_char): Deleted.
9698 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9699 (x_compute_glyph_string_overhangs): Adjusted for the change of
9700 `struct face'.
9701 (x_draw_glyph_string_foreground)
9702 (x_draw_composite_glyph_string_foreground): Likewise.
9703 (x_draw_glyph_string): Likewise. Use font->underline_position and
9704 font->underline_thickness.
9705 (x_new_font): Renamed from x_new_fontset2.
9706 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9707 (x_check_font): Call `check' method of a font driver.
9708 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9709 (x_query_font, x_get_font_repertory): Deleted.
9710 (x_find_ccl_program): Renamed and moved to xfont.c.
9711 (x_redisplay_interface): Adjusted for the change of `struct
9712 redisplay_interface'.
9713
9714 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9715 conditionals. Don't check enable_font_backend. Delete all codes
9716 used only when USE_FONT_BACKEND is not defined. Surround non-used
9717 code by "#ifdef OLD_FONT" and "endif".
9718 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9719
9720 * w32font.h (struct w32font_info): New member.
9721 (FONT_COMPAT): New macro.
9722 (w32font_open_internal): Prototype adjusted.
9723
9724 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9725 OLD_FONT" and "endif".
9726
9727 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9728 conditionals. Don't check enable_font_backend. Delete all codes
9729 used only when USE_FONT_BACKEND is not defined.
9730 (w32font_open): Return a font-object. Make a font-object by
9731 font_make_object. Adjusted for the change of struct w32font_info.
9732 (w32font_close): Don't free struct font. Adjusted for the change
9733 of struct w32font_info.
9734 (w32font_encode_char, w32font_text_extents, w32font_draw):
9735 Adjusted for the change of struct w32font_info.
9736 (w32font_draw): Likewise.
9737 (w32font_list_internal): Return a list, not vector.
9738 (w32font_open_internal): Change the 4th arg to font-object.
9739 Adjusted for the change of struct w32font_info and font-object format.
9740 (add_font_name_to_list): Don't downcase names.
9741 (w32_enumfont_pattern_entity): Make a font-entity by
9742 font_make_entity. Adjusted for the format change of font-entity.
9743 Use FONT_SET_STYLE to set a style-related font property. If a
9744 font is scalable, set avgwidth property to 0. Set font-entity
9745 property by font_put_extra.
9746 (font_matches_spec): Adjusted for the format change of font-entity.
9747 (w32_weight_table, w32_decode_weight): New variables.
9748 (w32_encode_weight): New function.
9749 (fill_in_logfont): Adjusted for the format change of font-spec.
9750 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9751 weight value.
9752 (w32font_driver): Adjusted for the change of struct font_driver.
9753
9754 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9755 conditionals. Don't check enable_font_backend. Surround non-used
9756 code by "#ifdef OLD_FONT" and "endif".
9757 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9758 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9759
9760 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9761 conditionals. Don't check enable_font_backend. Delete all codes
9762 used only when USE_FONT_BACKEND is not defined. Surround non-used
9763 code by "#ifdef OLD_FONT" and "endif".
9764
9765 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9766 (uniscribe_open): Return value changed to font-object.
9767 Adjusted for the format change of font-object.
9768 (uniscribe_otf_capability): Adjusted for the change of struct font.
9769 (add_opentype_font_name_to_list): Don't downcase names.
9770 (uniscribe_font_driver): Adjusted for the change of struct
9771 font_driver.
9772
97732008-05-13 Chong Yidong <cyd@stupidchicken.com>
9774
9775 * dispnew.c (update_frame_1): Check if tty output is still valid
9776 before flushing it.
9777
97782008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9779
9780 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9781 to Gtk+ menus.
9782
97832008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9784
9785 * dired.c (file_name_completion): Tweak the code so as to always do it
9786 in a single pass. Tighten the scope of some variables.
9787
9788 * dired.c (Qdefault_directory): New var.
9789 (file_name_completion): Use it instead of Fexpand_file_name.
9790 (syms_of_dired): Initialize it.
9791
97922008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9793
9794 * fileio.c (double_dollars): Remove dead code.
9795
97962008-05-10 Eli Zaretskii <eliz@gnu.org>
9797
9798 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9799 Mention w32-get-true-file-attributes in doc string.
9800
9801 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9802
98032008-05-09 Glenn Morris <rgm@gnu.org>
9804
9805 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9806 2008-04-23.
9807
98082008-05-09 Eli Zaretskii <eliz@gnu.org>
9809
9810 Support for reporting owner and group of each file on MS-Windows:
9811 * dired.c (stat_uname, stat_gname): New functions, with special
9812 implementation for w32.
9813 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9814
9815 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9816 (dflt_group_name): New static variable.
9817 (dflt_group): Rename from the_group.
9818 (init_user_info): Init dflt_group fields. Get user's group name
9819 from LookupAccountSid.
9820 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9821 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9822 New initialization states.
9823 (globals_of_w32): Initialize them to zero. Initialize the default
9824 group name to "None".
9825 (GetFileSecurity_Name): New global var, the name of the function
9826 to call for GetFileSecurity.
9827 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9828 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9829 (get_file_security, get_security_descriptor_owner)
9830 (get_security_descriptor_group, is_valid_sid)
9831 (get_file_security_desc, get_rid, get_name_and_id)
9832 (get_file_owner_and_group): New functions.
9833 (stat): Use get_file_security_desc and get_file_owner_and_group to
9834 report the owner and primary group of each file. Don't ignore the
9835 high 32 bits of file's size, now that st_size is 64-bit wide.
9836 Fix test when to get true file attributes.
9837 (init_user_info): Use get_rid instead of equivalent inline code.
9838 (fstat): Don't ignore the high 32 bits of file's size.
9839
98402008-05-09 Chong Yidong <cyd@stupidchicken.com>
9841
9842 * image.c (png_load): Use correct bit-depth for setting background
9843 color.
9844
98452008-05-08 Eli Zaretskii <eliz@gnu.org>
9846
9847 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9848 epa-hook.elc.
9849
98502008-05-08 Juanma Barranquero <lekktu@gmail.com>
9851
9852 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9853
98542008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9855
9856 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9857 because the original parameters are in pure storage now.
9858 (mac_window): Remove unused params. Update callers.
9859
98602008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9861
9862 * lread.c (substitute_object_recurse): Use lower-level primitives.
9863 Don't signal errors when traversing sub-char-tables.
9864 Don't loop over all the possible characters when traversing char-tables.
9865
9866 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9867 just like we do in print.c.
9868
98692008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9870
9871 * minibuf.c (Ftry_completion): Remove code left over from when we used
9872 scmp instead of Fcompare_strings.
9873
98742008-05-04 Juanma Barranquero <lekktu@gmail.com>
9875
9876 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9877
98782008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9879
9880 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9881 Create bitmap context in native byte order.
9882
9883 * macterm.c (XDrawLine)
9884 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9885 context in native byte order.
9886
98872008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9888
9889 * config.in: Regenerate.
9890
9891 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9892 New definitions for Image I/O support.
9893 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9894 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9895 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9896 (mac_data_provider_release_data, image_load_image_io)
9897 [USE_MAC_IMAGE_IO]: New functions.
9898 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9899 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9900 (init_image_func_pointer) [MAC_OSX]: Remove function.
9901 (image_load_quartz2d) [MAC_OSX]: Check availability of
9902 CGImageCreateWithPNGDataProvider at compile time.
9903 Use lowercase `false' for boolean constant.
9904 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9905 Use image_load_image_io.
9906 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9907 Don't check MyCGImageCreateWithPNGDataProvider.
9908 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9909 Don't call init_image_func_pointer.
9910
9911 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9912
9913 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9914 Make variable non-static.
9915 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9916 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9917
9918 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9919 (RED_FROM_ULONG): Mask off higher bits.
9920 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9921
9922 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9923 Include AvailabilityMacros.h.
9924 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9925 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9926
99272008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
9928
9929 * chartab.c (Fset_char_table_range): If range is t, really set all
9930 chars to that value.
9931
99322008-05-03 Eli Zaretskii <eliz@gnu.org>
9933
9934 * dired.c (Ffile_attributes): Don't allow the device number become
9935 negative.
9936
99372008-05-02 Daiki Ueno <ueno@unixuser.org>
9938
9939 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9940
99412008-05-02 Juri Linkov <juri@jurta.org>
9942
9943 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9944 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
9945 DEFAULT argument as a list of default values in docstrings.
9946
99472008-05-01 Chong Yidong <cyd@stupidchicken.com>
9948
9949 * puresize.h (BASE_PURESIZE): Increase to 1210000.
9950
99512008-05-01 Martin Rudalics <rudalics@gmx.at>
9952
9953 * dispnew.c (change_frame_size_1): Preserve small windows when
9954 shrinking frames by calling set_window_height|width with third
9955 arg 2.
9956
9957 * window.h (struct window): Replace field too_small_ok by field
9958 resize_proportionally.
9959
9960 * window.c (make_window): Initialize resize_proportionally.
9961 (enlarge_window): Temporarily set resize_proportionally to make
9962 sure that shrink_windows does scale the window proportionally.
9963 (shrink_windows): When window has resize_proportionally set try
9964 to shrink it proportionally by stealing from other windows.
9965 (struct saved_window, Fset_window_configuration)
9966 (compare_window_configurations): Handle resize_proportionally.
9967 (WINDOW_TOTAL_SIZE): New macro.
9968 (window_min_size, shrink_windows, size_window): Use it.
9969 (check_min_window_sizes): Remove. Invalid values of
9970 window-min-height|width are handled by window_min_size_2 now.
9971 (size_window, Fsplit_window, enlarge_window)
9972 (adjust_window_trailing_edge, grow_mini_window): Don't call
9973 check_min_window_sizes.
9974 (window_min_size_2, window_min_size_1, window_min_size):
9975 New argument safe_p for retrieving "safe" minimum sizes.
9976 (Fdisplay_buffer, Fsplit_window, enlarge_window)
9977 (adjust_window_trailing_edge, grow_mini_window):
9978 Adjust arguments of window_min_size... functions.
9979 (shrink_windows): Argument min_size removed. New argument
9980 safe_p allows shrinking windows to their safe minimum sizes.
9981 Calculate minimum size and decide whether a window shall be
9982 deleted for each window individually.
9983 (size_window): When nodelete_p equals 2, tell shrink_windows to
9984 delete windows only if their new minimum size is no more safe.
9985 (shrink_window_lowest_first): Call window_min_size_1 to make
9986 sure to preserve modeline of bottom-most window when resizing
9987 the minibuffer.
9988 (Fset_window_configuration, Fcurrent_window_configuration)
9989 (compare_window_configurations): Do not handle
9990 window-min-height|width any more.
9991 (syms_of_window): Clarify window-min-height|width doc-strings.
9992
99932008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
9994
9995 * dired.c (file_name_completion): Fix up the encoding/decoding issue
9996 some more. Copy some of the code from Ftry_completions.
9997 Remove special case code that dates back to initial revision when the
9998 slash was only added when necessary and that can't trigger nowadays.
9999
100002008-04-27 Kenichi Handa <handa@m17n.org>
10001
10002 * font.c (font_prop_validate): Signal `error' instead of `font'.
10003
100042008-04-29 Jason Rumney <jasonr@gnu.org>
10005
10006 * w32fns.c (Fw32_battery_status): New defun.
10007 (syms_of_w32fns): Defsubr it.
10008
100092008-04-28 Andreas Schwab <schwab@suse.de>
10010
10011 * dired.c (file_name_completion): Fix another mixing of encoded
10012 and decoded names.
10013
100142008-04-28 Juanma Barranquero <lekktu@gmail.com>
10015
10016 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10017
100182008-04-27 Juanma Barranquero <lekktu@gmail.com>
10019
10020 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10021
100222008-04-27 Andreas Schwab <schwab@suse.de>
10023
10024 * dired.c (file_name_completion): Fix inappropriate mixing of
10025 encoded and decoded names.
10026
10027 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10028
10029 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10030
100312008-04-26 Eli Zaretskii <eliz@gnu.org>
10032
10033 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10034 2008-03-31, it's not needed anymore with `struct stat' definition
10035 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10036 for the same reasons.
10037
100382008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10039
10040 * m/sparc.h: Additional redefinitions for GNU/Linux.
10041
100422008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10043
10044 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10045 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10046 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10047 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10048 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10049 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10050 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10051 Likewise.
10052
10053 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10054 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10055 (mac_ax_number_of_characters): Add externs.
10056 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10057 [USE_MAC_TSM]: Likewise.
10058 (mac_handle_text_input_event) [MAC_OSX]:
10059 Handle kEventTextInputOffsetToPos for no active input area case.
10060 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10061 (mac_handle_document_access_event)
10062 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10063 (install_application_handler) [MAC_OSX]: Register handlers for
10064 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10065 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10066 Register mac_handle_document_access_event.
10067
10068 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10069 Make functions non-static.
10070
100712008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10072
10073 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10074 (read_file_name_completion_ignore_case, insert_default_directory)
10075 (Qdefault_directory): Move to minibuffer.el.
10076 (Fread_file_name): Call the new `read-file-name' instead.
10077
100782008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10079
10080 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10081 Make function non-static.
10082 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10083 Remove function.
10084 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10085 Move to mactoolbox.c.
10086 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10087
10088 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10089 (mac_rect_make): New macro.
10090
10091 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10092 instead of float.
10093 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10094 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10095 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10096 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10097 CGRectMake.
10098 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10099 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10100 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10101 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10102 instead of WindowRef in argument type.
10103 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10104 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10105 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10106 instead of DISPLAY. All uses changed.
10107 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10108 (x_calc_absolute_position): Simplify so as not to use
10109 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10110
10111 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10112 instead of WindowRef in argument type.
10113 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10114 [TARGET_API_MAC_CARBON]: Remove externs.
10115 (create_apple_event, mac_event_parameters_to_lisp)
10116 [TARGET_API_MAC_CARBON]: Add externs.
10117
10118 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10119 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10120 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10121 is clicked.
10122 (x_activate_menubar): Remove extern for saved_menu_event_location.
10123 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10124 Move from mac.c.
10125
101262008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10127
10128 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10129 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10130
101312008-04-23 Jason Rumney <jasonr@gnu.org>
10132
10133 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10134 attributes only for local files.
10135
10136 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10137 default to Qlocal.
10138
101392008-04-22 Juri Linkov <juri@jurta.org>
10140
10141 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10142 read-buffer-to-switch instead of using the letter "B".
10143
101442008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10145
10146 * fileio.c (Qdefault_directory): New variable.
10147 (Fread_file_name): Use it to pass `dir' to the completion functions.
10148
101492008-04-20 Chong Yidong <cyd@stupidchicken.com>
10150
10151 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10152
101532008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10154
10155 * keyboard.c (Vpre_help_message): Remove.
10156 (show_help_echo): Remove default C code.
10157
10158 * dired.c (directory_files_internal, file_name_completion):
10159 Only call ENCODE_FILE if the string is indeed decoded.
10160
101612008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10162
10163 * Makefile.in (TOOLKIT_DEFINES): Remove.
10164 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10165
101662008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10167
10168 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10169 (mactoolbox.o): New target.
10170
10171 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10172 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10173
10174 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10175 Use mac_set_frame_window_background instead of XSetWindowBackground.
10176 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10177 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10178 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10179 instead of SetWindowTitleWithCFString.
10180 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10181 Move function to mactoolbox.c.
10182 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10183 Use mac_set_window_modified instead of SetWindowModified.
10184 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10185 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10186 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10187 FrontNonFloatingWindow. Use mac_activate_window instead of
10188 ActivateWindow. Use mac_active_non_floating_window instead of
10189 ActiveNonFloatingWindow.
10190 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10191 Use mac_show_hourglass and mac_hide_hourglass.
10192 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10193 instead of GetGlobalMouse.
10194 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10195 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10196 Use mac_bring_window_to_front instead of BringToFront.
10197 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10198 mactoolbox.c.
10199 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10200 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10201 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10202 mactoolbox.c.
10203
10204 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10205 (XtPointer): Move typedef from macmenu.c.
10206 (enum button_type): Move enum from macmenu.c.
10207 (widget_value): Move typedef from macmenu.c.
10208 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10209 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10210 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10211 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10212 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10213 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10214 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10215 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10216 (Selection): Move typedef from macselect.c.
10217 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10218 macterm.c.
10219 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10220 (mac_is_window_collapsed, mac_bring_window_to_front)
10221 (mac_send_window_behind, mac_hide_window, mac_show_window)
10222 (mac_collapse_window, mac_front_non_floating_window)
10223 (mac_active_non_floating_window, mac_activate_window)
10224 (mac_move_window_structure, mac_move_window, mac_size_window)
10225 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10226
10227 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10228 (enum mac_menu_kind): Move enum to mactoolbox.c.
10229 (min_menu_id): Move variable to mactoolbox.c.
10230 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10231 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10232 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10233 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10234 [TARGET_API_MAC_CARBON]: Likewise.
10235 (XtPointer): Move typedef to macgui.h.
10236 (enum button_type): Move enum to macgui.h.
10237 (widget_value): Move typedef to macgui.h.
10238 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10239 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10240 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10241 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10242 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10243 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10244 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10245 (popup_activated_flag): Make variable non-static.
10246 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10247 (add_menu_item, fill_menu, dispose_menus):
10248 Move functions to mactoolbox.c.
10249 (restore_show_help_function, menu_target_item_handler)
10250 (install_menu_target_item_handler, mac_handle_dialog_event)
10251 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10252 [TARGET_API_MAC_CARBON]: Likewise.
10253 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10254 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10255 (find_and_call_menu_selection, name_is_separator): Make function
10256 non-static.
10257 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10258 to mactoolbox.c.
10259 (set_frame_menubar): Don't call install_menu_quit_handler.
10260 (menu_item_selection): New variable.
10261 (mac_menu_show): Use create_and_show_popup_menu.
10262 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10263 selection but set variable menu_item_selection. All uses changed.
10264 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10265 Call install_menu_quit_handler. Move to mactoolbox.c.
10266
10267 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10268 (Selection): Move typedef to macgui.h.
10269 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10270 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10271 Make variables non-static.
10272 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10273 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10274 Make functions non-static.
10275 (Vmac_service_selection) [MAC_OSX]: Likewise.
10276 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10277 (mac_valid_selection_target_p, mac_clear_selection)
10278 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10279 (mac_put_selection_value, mac_selection_has_target_p)
10280 (mac_get_selection_value, mac_get_selection_target_list)
10281 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10282 Move functions to mactoolbox.c.
10283 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10284 Likewise.
10285 (copy_scrap_flavor_data, mac_handle_service_event)
10286 (install_service_handler) [MAC_OSX]: Likewise.
10287 (syms_of_macselect) <Vmac_dnd_known_types>:
10288 Use mac_dnd_default_known_types.
10289
10290 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10291 Move to mactoolbox.c.
10292 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10293 (Fx_selection_owner_p): Add EXFUN.
10294 (install_window_handler, remove_window_handler, XSetWindowBackground):
10295 Remove externs.
10296 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10297 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10298 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10299 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10300 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10301 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10302 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10303 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10304 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10305 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10306 (mac_valid_selection_target_p, mac_clear_selection)
10307 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10308 (mac_put_selection_value, mac_selection_has_target_p)
10309 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10310 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10311 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10312 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10313 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10314 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10315 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10316 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10317 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10318
10319 * mactoolbox.c: New file.
10320
103212008-04-18 Jason Rumney <jasonr@gnu.org>
10322
10323 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10324
103252008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10326
10327 * character.c (Fmultibyte_char_to_unibyte):
10328 Return latin1 chars unchanged.
10329
10330 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10331 relocated if it points to `name'.
10332
103332008-04-17 Kenichi Handa <handa@m17n.org>
10334
10335 * data.c (Faset): Allow setting a multibyte character in an
10336 ASCII-only unibyte string.
10337
10338 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10339
103402008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10341
10342 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10343 done in config.h.
10344
103452008-04-16 Juanma Barranquero <lekktu@gmail.com>
10346
10347 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10348 (Fchar_direction): Add usage in the docstring.
10349
103502008-04-15 Chong Yidong <cyd@stupidchicken.com>
10351
10352 * keyboard.c (read_key_sequence): Remove always-true checks.
10353
103542008-04-14 Jason Rumney <jasonr@gnu.org>
10355
10356 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10357 compatibility struct, for better underline positioning.
10358
103592008-04-13 David Hansen <david.hansen@gmx.net>
10360
10361 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10362 string.
10363
103642008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10365
10366 * m/hp800.h (XUINT, XSET): Remove.
10367
103682008-04-12 Juanma Barranquero <lekktu@gmail.com>
10369
10370 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10371 previous change.
10372
103732008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10374
10375 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10376 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10377
103782008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10379
10380 * keymap.h (map_keymap_canonical): Declare.
10381 * xmenu.c (single_keymap_panes): Use it.
10382
103832008-04-11 Glenn Morris <rgm@gnu.org>
10384
10385 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10386 set the target's value to that of the alias.
10387
103882008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10389
10390 * term.c (set_tty_color_mode): Left over typo.
10391
103922008-04-10 Michael Albinus <michael.albinus@gmx.de>
10393
10394 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10395 only after check for file name handler functions. Signal, when
10396 native functionality is not supported.
10397 (syms_of_fileio): Declare it unconditionally.
10398
103992008-04-10 Jason Rumney <jasonr@gnu.org>
10400
10401 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10402 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10403
10404 * w32.c (logon_network_drive): Also logon to remote drives that
10405 are mapped to drive letters.
10406
104072008-04-10 Glenn Morris <rgm@gnu.org>
10408
10409 * xdisp.c (truncate-partial-width-windows): Doc fix.
10410
104112008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10412
10413 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10414 Move functions to minibuffer.el.
10415 (syms_of_fileio): Don't declare them.
10416
104172008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10418
10419 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10420 (syms_of_minibuf): Remove its initialization.
10421
10422 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10423
104242008-04-09 Juanma Barranquero <lekktu@gmail.com>
10425
10426 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10427
104282008-04-09 Jason Rumney <jasonr@gnu.org>
10429
10430 * makefile.w32-in (distclean): Delete makefile too.
10431 (maintainer-clean): New target.
10432
10433 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10434
10435 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10436 for new font backend and composite cases.
10437
104382008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10439
10440 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10441 Most of the code moved to run_timers.
10442 (do_pending_atimers): Call run_timers.
10443 (run_timers): New function.
10444
10445 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10446 run atimers.
10447
10448 * process.c (wait_reading_process_output): The same as above.
10449
104502008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10451
10452 * minibuf.c (last_exact_completion): Remove variable.
10453 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10454 (complete_and_exit_1, complete_and_exit_2)
10455 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10456 (Fdisplay_completion_list, display_completion_list_1)
10457 (Fminibuffer_completion_help, Fself_insert_and_exit)
10458 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10459 minibuffer.el.
10460 (syms_of_minibuf): Remove corresponding initializations.
10461
10462 * keyboard.c (Qdeactivate_mark): New var.
10463 (command_loop_1): Use it to call `deactivate-mark'.
10464 (syms_of_keyboard): Initialize it.
10465
10466 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10467 to another frame.
10468 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10469 Don't call set_tty_color_mode.
10470 (store_frame_param): Reset previous_frame rather than call
10471 set_tty_color_mode.
10472 * term.c (set_tty_color_mode): Rewrite.
10473 * dispextern.h (set_tty_color_mode): New type.
10474 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10475
104762008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10477
10478 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10479 for generic chars, which do not exist any more in emacs-unicode.
10480
104812008-04-08 Michael Albinus <michael.albinus@gmx.de>
10482
10483 * coding.c (detect_coding_emacs_mule)
10484 (Ffind_operation_coding_system): Fix typo.
10485
104862008-04-08 Jason Rumney <jasonr@gnu.org>
10487
10488 * w32uniscribe.c (SNAME): Extract only symbol name.
10489
10490 * w32font.h (struct w32_metric_cache): New struct.
10491 (w32font_info): Use it.
10492 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10493 (CACHE_BLOCKSIZE): New constants.
10494
10495 * w32font.c (Qja, Qko, Qzh): New symbols.
10496 (syms_of_w32font): Initialise them.
10497 (font_matches_spec): Use them to filter by language.
10498 (recompute_cached_metrics): Remove function.
10499 (compute_metrics, clear_cached_metrics): New functions.
10500 (w32font_encode_char): Use them to manage metric cache.
10501 (w32font_text_extents): Cache metrics for all glyphs on demand.
10502 Delay converting glyph indices to WORD until needed.
10503 (w32font_open_internal): Initialize metric cache to empty.
10504 (registry_to_w32_charset): Charset should always be a symbol.
10505 (fill_in_logfont, list_all_matching_fonts): Family should
10506 always be a symbol.
10507
105082008-04-06 Jason Rumney <jasonr@gnu.org>
10509
10510 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10511 Give up if glyph indices not supported. Use uniscribe obtained
10512 ABC widths for individual metrics. Map glyph clusters back to
10513 characters using fClusterStart flag. Return number of glyphs
10514 produced, not chars processed.
10515 (uniscribe_shape): Map char at FROM to current glyph.
10516
105172008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10518
10519 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10520 Use SetMenuItemHierarchicalMenu.
10521
105222008-04-05 Jason Rumney <jasonr@gnu.org>
10523
10524 * image.c (pbm_load): Allow color values up to 65535.
10525 Throw an error if max_color_idx is outside the supported range.
10526 Report an error when image size is invalid.
10527 Read two bytes at a time when raw images have max_color_idx above 255.
10528
105292008-04-05 Eli Zaretskii <eliz@gnu.org>
10530
10531 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10532 cFileName a file name that includes `?' characters, use the 8+3
10533 alias in cAlternateFileName instead.
10534
105352008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10536
10537 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10538 append "CCL: Quitted" when the CCL program is quitted.
10539 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10540
10541 * ccl.h (struct ccl_program): New member quit_silently.
10542
105432008-04-05 Chong Yidong <cyd@stupidchicken.com>
10544
10545 * search.c (compile_pattern_1): Treat non-nil and non-string of
10546 search-spaces-regexp as nil.
10547
10548 * minibuf.c (Fassoc_string): Tweak docstring.
10549
105502008-04-05 Eli Zaretskii <eliz@gnu.org>
10551
10552 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10553 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10554 2008-03-14 to force inode be positive.
10555
10556 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10557 _S_* ones, since we now use our own sys/stat.h.
10558 (stat, fstat): Don't mangle the inode number.
10559 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10560
105612008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10562
10563 * frame.h (struct frame): Give one more bit to `visible' since we use
10564 values larger than 1 to indicate obscured frames on ttys.
10565
10566 * keymap.c (Qkeymap_canonicalize): New var.
10567 (Fmap_keymap_internal): New fun.
10568 (describe_map): Use keymap-canonicalize.
10569
10570 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10571 (Fundo_boundary): Set them.
10572 (syms_of_undo): Initialize them.
10573 (record_point): Use them instead of last_point_position*.
10574 (last_undo_buffer): Change type.
10575
105762008-04-04 Jason Rumney <jasonr@gnu.org>
10577
10578 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10579 (recompute_cached_metrics): Don't set ascent and descent per char.
10580
10581 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10582 (uniscribe_check_otf): Add GC protection before consing.
10583 Rearrange loop for counting features.
10584
105852008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10586
10587 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10588 buffer with byte-size of source buffer.
10589
105902008-04-03 Chong Yidong <cyd@stupidchicken.com>
10591
10592 * callint.c (Fcall_interactively): Handle temporary region even
10593 when shift-select-mode is off.
10594
105952008-04-03 Jason Rumney <jasonr@gnu.org>
10596
10597 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10598
105992008-04-03 Kenichi Handa <handa@m17n.org>
10600
10601 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10602 (CATEGORY_MASK_UTF_16): Likewise.
10603 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10604 binary file.
10605 (detect_coding): Add null-byte detection for a binary file.
10606 (detect_coding_system): Likewise.
10607
106082008-04-03 Jason Rumney <jasonr@gnu.org>
10609
10610 * w32uniscribe.c: New file.
10611
10612 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10613
10614 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10615
10616 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10617 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10618 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10619 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10620 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10621 (Qphonetic): New symbols.
10622 (syms_of_w32font): Initialize them.
10623 (font_supported_scripts): Use them.
10624 (w32font_list_family): List all charsets.
10625 (w32font_text_extents, recompute_cached_metrics): Fix metric
10626 calculations.
10627 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10628 Give opentype fonts their own format.
10629 (font_matches_spec): New arguments backend and logfont.
10630 Handle :otf spec for uniscribe backend.
10631 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10632 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10633
10634 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10635 font backend.
10636 (globals_of_w32fns): Initialize uniscribe font backend.
10637
10638 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10639 dependencies.
10640 (w32uniscribe.$(O)): New file to build.
10641 (FONT_OBJ): Include w32uniscribe.$(O).
10642 (LIBS): Add uniscribe libraries.
10643
10644 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10645
106462008-04-02 Chong Yidong <cyd@stupidchicken.com>
10647
10648 * callint.c (Vshift_select_mode): New var.
10649 (Finteractive): Document new ^ spec.
10650 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10651 is present.
10652
10653 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10654 (command_loop_1): Avoid running the direct display versions of
10655 forward-char and backward-char if shift-selection may occur.
10656 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10657 shift-translation takes place.
10658
10659 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10660 avoid clobbering by define-minor-mode.
10661
10662 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10663 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10664
10665 * syntax.c (Fforward_word): Add ^ interactive spec.
10666
10667 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10668 (Fscroll_right): Add ^ interactive spec.
10669
106702008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10671
10672 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10673
10674 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10675
10676 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10677
106782008-03-31 Juri Linkov <juri@jurta.org>
10679
10680 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10681
106822008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10683
10684 * gtkutil.c (xg_set_geometry): Fix indentation.
10685 (xg_resize_outer_widget): Remove.
10686 (x_wm_size_hint_off): Fix indentation.
10687 (xg_frame_set_char_size): Call flush_and_sync after
10688 gtk_window_resize.
10689 (x_wm_set_size_hint): Pass NULL as geometry window to
10690 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10691 Add menu bar and tool bar height to base height.
10692 (xg_update_frame_menubar, free_frame_menubar)
10693 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10694 (update_frame_tool_bar, free_frame_tool_bar):
10695 Change xg_resize_outer_widget to xg_frame_set_char_size.
10696
106972008-03-30 Michael Albinus <michael.albinus@gmx.de>
10698
10699 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10700 (Fdbus_call_method): New parameter TIMEOUT.
10701 (dbus-send-signal): Optimize UNGCPRO call.
10702
107032008-03-29 Juri Linkov <juri@jurta.org>
10704
10705 * window.c (Fdisplay_buffer): Move call to
10706 Vsplit_window_preferred_function out of conditions that check
10707 if window is eligible for vertical splitting.
10708 When Vsplit_window_preferred_function is non-nil, call it and use
10709 its non-nil return value as window. Otherwise, continue doing
10710 vertical splitting using Fsplit_window with arg horflag=nil.
10711 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10712 default value from `split-window' to nil.
10713
107142008-03-29 Juri Linkov <juri@jurta.org>
10715
10716 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10717 for interactive code letters 'b' and 'B'.
10718
107192008-03-29 Eli Zaretskii <eliz@gnu.org>
10720
10721 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10722 multibyte string.
10723
107242008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10725
10726 * keyboard.c (pending_funcalls): New var.
10727 (timer_check): Run it.
10728 (syms_of_keyboard): Initialize it.
10729 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10730 (Vdelete_terminal_functions): New vars.
10731 (syms_of_terminal): Initialize them.
10732 (Fdelete_terminal): Run delete-terminal-functions.
10733 * xdisp.c (safe_eval): Rewrite.
10734 (safe_call2): New fun.
10735 * frame.c (Qdelete_frame_functions): New var.
10736 (syms_of_frame): Initialize it.
10737 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10738 * lisp.h (safe_call2, pending_funcalls): Declare.
10739
107402008-03-28 Andreas Schwab <schwab@suse.de>
10741
10742 * indent.c (Fmove_to_column): Move declaration before statements.
10743
107442008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10745
10746 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10747 (struct frame): Use bit fields for boolean vars.
10748
10749 * process.c (server_accept_connection): Simplify naming.
10750 (emacs_get_tty_pgrp): Use SDATA.
10751
10752 * coding.c (decode_coding_object): Fix last change.
10753
107542008-03-27 Jason Rumney <jasonr@gnu.org>
10755
10756 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10757
107582008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10759
10760 * charset.c (Fdefine_charset_internal): Change the way of
10761 registering charsets in Vcharset_order_list.
10762 (syms_of_charset): Make the charset `eight-bit' supplementary.
10763
107642008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10765
10766 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10767 operations, to avoid having the difference between pointers
10768 overflow.
10769
107702008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10771
10772 * indent.c (check_display_width): New fun.
10773 (scan_for_column): Use it.
10774
10775 * data.c (syms_of_data): Mark most-positive-fixnum and
10776 most-negative-fixnum as constants.
10777
10778 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10779
10780 * indent.c (scan_for_column): Extract from current_column_1.
10781 Merge with the same code from Fmove_to_column.
10782 (current_column_1, Fmove_to_column): Use it.
10783
107842008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10785
10786 * keymap.c (map_keymap_internal): New fun.
10787 (map_keymap): Use it.
10788 (Fmap_keymap_internal): New fun.
10789 (Fmap_keymap): Remove left-out test from before make_save_value.
10790
10791 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10792
10793 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10794 Use XCAR/XCDR.
10795
10796 * process.h (struct Lisp_Process): Remove filter_multibyte.
10797 * process.c (QCfilter_multibyte): Remove.
10798 (setup_process_coding_systems): Don't use filter_multibyte.
10799 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10800 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10801 (Fset_process_filter_multibyte): Change the coding-system to
10802 approximate the previous behavior.
10803 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10804 coding-system.
10805
10806 * coding.c (decode_coding_object): When not decoding into a buffer,
10807 obey the coding system's preference of (uni|multi)byte.
10808
108092008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10810
10811 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10812 every char is changed and has a different byte-length.
10813 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10814 Fix int -> EMACS_INT.
10815
108162008-03-23 David Hansen <david.hansen@gmx.net>
10817
10818 * dbusbind.c (xd_read_message): Remove extra copying of message
10819 strings. Check for NULL `interface' or `member'.
10820
108212008-03-22 Eli Zaretskii <eliz@gnu.org>
10822
10823 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10824 cFileName a file name that includes `?' characters, use the 8+3
10825 alias in cAlternateFileName instead.
10826
108272008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10828
10829 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10830
108312008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10832
10833 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10834 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10835 work on current_buffer only instead (that was already the case
10836 for some of the code anyway).
10837 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10838 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10839 (SET_PT, SET_PT_BOTH): Adjust.
10840 * intervals.h (set_point, temp_set_point, set_point_both)
10841 (temp_set_point_both): Remove redundant declarations.
10842
108432008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10844
10845 * fileio.c (Finsert_file_contents):
10846 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10847 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10848 when buffer != current_buffer anyway.
10849
108502008-03-20 Andreas Schwab <schwab@suse.de>
10851
10852 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10853 as default.
10854
108552008-03-19 Jason Rumney <jasonr@gnu.org>
10856
10857 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10858 (syms_of_w32fns): Initialize them.
10859 (HOURGLASS_ID): New constant.
10860 (x_window_to_frame): Don't check hourglass_window.
10861 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10862 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10863 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10864 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10865 Only change the cursor if hourglass is not active.
10866 (Fx_create_frame): Initialize frame's current_cursor.
10867 (hourglass_atimer): Remove.
10868 (hourglass_started): New function.
10869 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10870 (show_hourglass): Adapt to w32, changing argument to frame.
10871
10872 * w32term.h (struct w32_output): Remove hourglass_window.
10873 Add current_cursor.
10874
10875 * eval.c (call_debugger, Fsignal):
10876 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10877 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10878 (Fexecute_extended_command, cancel_hourglass_unwind):
10879 * minibuf.c (read_minibuf):
10880 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10881
108822008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10883
10884 * window.c (run_funs): New fun.
10885 (run_window_configuration_change_hook): Use it to run the buffer-local
10886 and the global part of the hook.
10887
10888 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10889 (unwind_format_mode_line): Restore selected window.
10890 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10891
108922008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10893
10894 * editfns.c (Fchar_equal): Check they are valid characters.
10895
10896 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10897
108982008-03-17 Andreas Schwab <schwab@suse.de>
10899
10900 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10901 against a charset.
10902
10903 * lisp.h (Fbuffer_list): Declare.
10904
109052008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 10906
aac0c6e3
MR
10907 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10908 handlebox_widget is != 0.
10909
109102008-03-16 Juri Linkov <juri@jurta.org>
10911
10912 * callint.c (Fcall_interactively): For interactive code letters
10913 'b' and 'B' put the buffer list into the list of default "future"
10914 values of the minibuffer.
10915
109162008-03-16 Andreas Schwab <schwab@suse.de>
10917
10918 * keyboard.c (read_key_sequence): Fix downcasing of letters with
10919 modifiers.
10920
10921 * regex.c (re_match_2_internal): Correct matching of a charset
10922 against latin-1 characters.
10923
109242008-03-16 Kenichi Handa <handa@m17n.org>
10925
10926 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10927 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10928 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10929 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10930 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10931 CHAR_STRING_ADVANCE.
10932 (produce_chars): Fix for the case that the source and the
10933 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
10934 instead of CHAR_STRING_ADVANCE.
10935 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10936 STRING_CHAR_ADVANCE.
10937
109382008-03-15 Andreas Schwab <schwab@suse.de>
10939
10940 * regex.c (re_match_2_internal): Correct matching of eight bit
10941 characters in unibyte strings.
10942
109432008-03-15 Martin Rudalics <rudalics@gmx.at>
10944
10945 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
10946 at end of range when it coincides with the end of the buffer.
10947
109482008-03-14 Eli Zaretskii <eliz@gnu.org>
10949
10950 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
10951
10952 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
10953
109542008-03-14 Jason Rumney <jasonr@gnu.org>
10955
10956 * editfns.c (initial_tz): New variable.
10957 (syms_of_editfns): Initialize it.
10958 (Fset_time_zone_rule): Set it when first called.
10959 Use it when TZSTRING is nil.
10960
10961 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
10962 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
10963 (monitor_from_point_fn, get_monitor_info_fn): New globals.
10964 (globals_of_w32fns): Initialize them.
10965 (compute_tip_xy): Use them to position tooltips.
10966
109672008-03-14 Glenn Morris <rgm@gnu.org>
10968
10969 * emacs.c (main): Revert previous change.
10970 (standard_args): Revert -internal-script back to -scriptload,
10971 and remove the long-option form.
10972
109732008-03-13 Glenn Morris <rgm@gnu.org>
10974
10975 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
10976 Remove option -enable-font-backend.
10977
109782008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
10979
10980 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
10981
109822008-03-11 Jan Djärv <jan.h.d@swipnet.se>
10983
10984 * xterm.c (x_connection_closed): For GTK: If this is the last
10985 terminal just exit without closing the display.
10986
109872008-03-11 Jason Rumney <jasonr@gnu.org>
10988
10989 * w32font.c (w32font_full_name): Use floor to round.
10990
f0131492 109912008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
10992
10993 * sound.c (alsa_configure): Declare vol at beginning of block.
10994
10995 * fontset.c (Ffontset_info): Remove extra semicolon.
10996
109972008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10998
10999 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11000 size of resulting string.
11001
110022008-03-10 Jason Rumney <jasonr@gnu.org>
11003
11004 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11005
110062008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11007
11008 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11009 Don't pretend as if characters with display property haven't been
11010 consumed for string-replacing-string case.
11011
110122008-03-08 Kim F. Storm <storm@cua.dk>
11013
11014 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11015 (get_next_display_element, next_element_from_string)
11016 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11017
110182008-03-08 Andreas Schwab <schwab@suse.de>
11019
11020 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11021
110222008-03-06 Jason Rumney <jasonr@gnu.org>
11023
11024 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11025 when charset not specified. Only translate ANSI to unicode when
11026 font_type is truetype.
11027 (w32font_coverage_ok): New function.
11028 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11029
110302008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11031
11032 * lread.c (Fread_char): Resolve modifiers.
11033 (Fread_char_exclusive): Likewise.
11034
11035 * character.c (char_resolve_modifier_mask): New function.
11036 (char_string): Use char_resolve_modifier_mask.
11037 (Fchar_resolve_modifiers): New function.
11038 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11039 function.
11040
110412008-03-04 Jason Rumney <jasonr@gnu.org>
11042
11043 * makefile.w32-in: Always include w32font.c in the build.
11044 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11045
110462008-03-04 Andreas Schwab <schwab@suse.de>
11047
11048 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11049 (versionclean): Likewise.
11050
110512008-03-04 Juanma Barranquero <lekktu@gmail.com>
11052
11053 * .cvsignore: Add oo.
11054
110552008-03-03 Andreas Schwab <schwab@suse.de>
11056
11057 * coding.c (decode_coding_object): Inhibit gap shrinking while
11058 decoding in place.
11059
110602008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11061
11062 * w32term.c: Remove unused include "gnu.h".
11063 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11064
11065 * gnu.h: Rename to ...
11066 * emacs-icon.h: ... this.
11067 * xterm.c: Use emacs-icon.h instead of gnu.h.
11068 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11069
110702008-03-03 Juanma Barranquero <lekktu@gmail.com>
11071
11072 * w32font.c: Include math.h.
11073
110742008-03-03 Jason Rumney <jasonr@gnu.org>
11075
11076 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11077 Compute options separately.
11078 (w32font_open_internal): Set glyph_idx before caching metrics.
11079
11080 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11081 Define if system headers don't.
11082 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11083 (w32font_encode_char): Don't declare here.
11084
11085 * w32font.c (Quniscribe, QCformat): New symbols.
11086 (syms_of_w32font): Define them.
11087 (w32font_has_char): Indicate uncertainty.
11088 (w32font_encode_char): Encode as glyph point. Make static.
11089 (recompute_cached_metrics): New function.
11090 (w32font_open_internal): Use it. Set font to use glyph points
11091 initially. Set format based on type of font.
11092 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11093 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11094 on it. Set format based on information available here.
11095 (add_font_entity_to_list): Identify backend based on opentype_only.
11096
110972008-03-02 Andreas Schwab <schwab@suse.de>
11098
11099 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11100
11101 * coding.c (decode_coding_big5, produce_chars):
11102 Fix typos in last change.
11103
111042008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11105
11106 * gnu.h: New icon.
11107
111082008-03-02 Kenichi Handa <handa@m17n.org>
11109
11110 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11111 `dos', don't decode '\r' if that is the last in the source.
11112 (decode_coding_utf_16, decode_coding_emacs_mule)
11113 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11114 (decode_coding_raw_text, decode_coding_charset): Likewise.
11115 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11116
111172008-03-01 Jason Rumney <jasonr@gnu.org>
11118
11119 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11120
111212008-03-01 Kim F. Storm <storm@cua.dk>
11122
11123 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11124
111252008-03-01 Jason Rumney <jasonr@gnu.org>
11126
11127 * w32font.c (w32font_full_name): New function.
11128 (w32font_open_internal): Use it.
11129
111302008-03-01 Kim F. Storm <storm@cua.dk>
11131
11132 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11133
111342008-03-01 Jason Rumney <jasonr@gnu.org>
11135
11136 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11137
111382008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11139
11140 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11141 xg_frame_resized when the event is for the edit widget.
11142
11143 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11144
11145 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11146 set_char_size.
11147 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11148 operations on widgets here. Just set frame size if needed.
11149 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11150 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11151 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11152 the whole frame.
11153 (xg_create_tool_bar): Move attachment of the tool bar to
11154 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11155 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11156
111572008-03-01 Jason Rumney <jasonr@gnu.org>
11158
11159 * w32fns.c (w32_msg_pump): Disable debug code.
11160
111612008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11162
11163 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11164
111652008-02-29 Chong Yidong <cyd@stupidchicken.com>
11166
11167 * xdisp.c (next_overlay_string): Don't set
11168 overlay_strings_at_end_processed_p if we're currently reading from
11169 a display string.
11170
111712008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11172
11173 * xdisp.c (get_overlay_strings_1): Fix typo.
11174
111752008-02-29 Chong Yidong <cyd@stupidchicken.com>
11176
11177 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11178
111792008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11180
11181 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11182
11183 * xdisp.c (display_mode_element): Cancel the previous change.
11184 (decode_mode_spec): Likewise.
11185 (handle_auto_composed_prop): Don't make composition if it->string
11186 is a string.
11187
111882008-02-27 Kim F. Storm <storm@cua.dk>
11189
11190 * lisp.h (GLYPH): Change type from int to struct with separate char
11191 and face_id members.
11192 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11193 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11194 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11195 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11196 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11197 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11198 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11199 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11200 handle new Lisp glyph code encoding, either an integer or a cons.
11201
11202 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11203 (GLYPH_ALIAS): Delete.
11204 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11205 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11206 (GLYPH_FROM_CHAR): Replace macro by ...
11207 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11208
11209 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11210 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11211 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11212 (GLYPH_INVALID_P): New macro.
11213 (spec_glyph_lookup_face): Update prototype.
11214
11215 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11216 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11217 new glyph code encoding.
11218 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11219 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11220
11221 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11222 Adapt to new glyph type and new glyph code encoding.
11223
11224 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11225
11226 * indent.c (current_column, current_column_1, Fmove_to_column)
11227 (compute_motion): Adapt to new glyph code encoding.
11228
11229 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11230
112312008-02-27 Chong Yidong <cyd@stupidchicken.com>
11232
11233 * process.c (wait_reading_process_output): Check for window
11234 changes caused by timers.
11235 Suggested by Johan Bockgård.
11236
112372008-02-27 Glenn Morris <rgm@gnu.org>
11238
11239 * emacs.c (USAGE1): Add `--disable-font-backend'.
11240
112412008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11242
11243 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11244 is made to the buffer.
11245
112462008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11247
11248 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11249 (face_at_string_position):
11250 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11251 (face_at_string_position):
11252 * xdisp.c (display_string, next_overlay_change):
11253 * buffer.h (overlays_at):
11254 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11255 Update callers.
11256
112572008-02-26 Chong Yidong <cyd@stupidchicken.com>
11258
11259 * editfns.c (Fformat): Doc fix.
11260
112612008-02-26 Juanma Barranquero <lekktu@gmail.com>
11262
11263 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11264 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11265 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11266
112672008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11268
11269 * buffer.c (Fbuffer_swap_text): New function.
11270 (syms_of_buffer): Defsubr it.
11271
112722008-02-25 Chong Yidong <cyd@stupidchicken.com>
11273
11274 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11275
112762008-02-25 Jason Rumney <jasonr@gnu.org>
11277
11278 * w32font.c (w32font_draw): Draw one character at a time when padding.
11279
112802008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11281
11282 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11283 Handle a nil arg. Use run_window_configuration_change_hook.
11284 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11285 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11286 Use run_window_configuration_change_hook.
11287
112882008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11289
11290 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11291 1-pixel width.
11292
112932008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11294
11295 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11296 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11297 if the glyph in the font is zero pixel with.
11298
11299 * dispextern.h (struct glyph_string): New member padding_p.
11300
11301 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11302
11303 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11304
11305 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11306
11307 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11308
11309 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11310
113112008-02-25 Jason Rumney <jasonr@gnu.org>
11312
11313 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11314
113152008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11316
11317 Allow fine-grained image-cache flushing.
11318 * dispextern.h (struct image): Add `dependencies' field.
11319 (clear_image_caches): Change arg to Lisp_Object.
11320 * image.c (make_image): Initialize `dependencies' field.
11321 (clear_image_cache): Change arg to allow fine-grained flushing.
11322 Perform the flush even if image-cache-eviction-delay is nil.
11323 (clear_image_caches): Change arg to Lisp_Object.
11324 (Fclear_image_cache): Expand meaning of the argument.
11325 (mark_image): Mark `dependencies' field.
11326 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11327 (lface_hash): Use XHASH rather than XFASTINT.
11328 (face_at_buffer_position): Fix int -> EMACS_INT position.
11329 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11330 (select_frame_for_redisplay): Remove code duplication.
11331 (redisplay_internal): Adapt arg to call to clear_image_caches.
11332
113332008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11334
11335 * s/vms4-0.h:
11336 * s/vms4-2.h:
11337 * s/vms4-4.h:
11338 * s/vms5-5.h: Remove, unused.
11339
11340 * s/irix5-2.h:
11341 * s/irix6-0.h:
11342 * s/riscos5.h:
11343 * s/mach-bsd4-3.h:
11344 * m/mips4.h: Remove files for obsolete systems.
11345
11346 * Makefile.in:
11347 * filelock.c:
11348 * unexmips.c:
11349 * m/hp9000s300.h:
11350 * m/iris4d.h:
11351 * s/aix3-1.h:
11352 * s/hpux.h:
11353 * s/msdos.h:
11354 * s/usg5-0.h:
11355 * s/usg5-2-2.h:
11356 * s/usg5-2.h:
11357 * s/usg5-3.h: Remove references to obsolete variables.
11358
11359 * s/irix5-0.h: Remove, move all the contents ...
11360 * s/irix6-5.h: ... here. Simplify.
11361 * config.in: Regenerate.
11362
113632008-02-24 Jason Rumney <jasonr@gnu.org>
11364
11365 * w32term.c (x_draw_glyph_string_background): Clear the background
11366 manually when cleartype is in use.
11367 (x_draw_glyph_string_foreground): Draw text transparently when
11368 cleartype is in use.
11369
11370 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11371 a font into it unless we have to.
11372
113732008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11374
11375 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11376 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11377
aac0c6e3
MR
113782008-02-18 Jason Rumney <jasonr@gnu.org>
11379
11380 * w32fns.c (Fw32_shell_execute): Encode parameters.
11381
113822008-02-09 Eli Zaretskii <eliz@gnu.org>
11383
11384 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11385
113862008-02-05 Juanma Barranquero <lekktu@gmail.com>
11387
11388 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11389
113902008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11391
11392 * xterm.c (x_set_offset): Don't change the gravity if
11393 CHANGE_GRAVITY is -1.
11394
113952008-02-23 Chong Yidong <cyd@stupidchicken.com>
11396
11397 * fileio.c (auto_save_error_occurred): New var.
11398 (auto_save_error): Set it.
11399 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11400 error occurred.
11401
114022008-02-23 Eli Zaretskii <eliz@gnu.org>
11403
11404 * w32.c (globals_of_w32): Add initializations for
11405 g_b_init_get_sid_sub_authority and
11406 g_b_init_get_sid_sub_authority_count.
11407
114082008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11409
11410 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11411 (font_parse_xlfd): Use them for sanity check.
11412 (Finternal_set_font_style_table): Make sure the table is bijective.
11413
11414 Consolidate the image_cache to the terminal struct.
11415 * termhooks.h (P_): Remove redundant def.
11416 (struct terminal): New field `image_cache'.
11417 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11418 of FRAME_X_IMAGE_CACHE.
11419 * xterm.h (struct x_display_info): Remove image_cache field.
11420 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11421 * w32term.h (struct w32_display_info): Remove image_cache field.
11422 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11423 * macterm.h (struct mac_display_info): Remove image_cache field.
11424 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11425 * xterm.c (x_term_init):
11426 * w32term.c (w32_term_init):
11427 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11428 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11429 Remove declarations.
11430 (clear_image_caches, mark_image_cache): New declarations.
11431 * xfaces.c (clear_face_cache):
11432 * xdisp.c (redisplay_internal): Use clear_image_caches.
11433 * image.c (clear_image_cache): Don't check that a frame is on
11434 a window-system before checking if it shares the same cache.
11435 (clear_image_caches): New function.
11436 (Fclear_image_cache): Use it.
11437 (mark_image): Move from allo.c.
11438 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11439 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11440 (mark_object): Don't call mark_image_cache for frames.
11441 (mark_terminals): Call mark_image_cache.
11442
11443 * lisp.h (Fdelete_terminal): Declare.
11444
11445 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11446 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11447 wrong_type_argument.
11448
114492008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11450
11451 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11452 malayalam.el, and tamil.el. Add sinhala.el.
11453
114542008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11455
11456 * xterm.c (x_connection_closed): Consolidate identical tests.
11457 (x_delete_terminal): Don't crash if called via x_connection_closed.
11458
114592008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11460
11461 * xdisp.c (decode_mode_spec): New arg string.
11462 (display_mode_element): Adjust for the above change.
11463
114642008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11465
11466 * callint.c (Fcall_interactively): Use AREF.
11467
114682008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11469
11470 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11471
114722008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11473
11474 * xfns.c (Fx_show_tip): Set string to " " if empty.
11475
114762008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11477
11478 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11479 with Qt.
11480
114812008-02-17 Kenichi Handa <handa@m17n.org>
11482
11483 * ftfont.c (ftfont_shape): Return Lispy number.
11484
11485 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11486 for GCs.
11487 (Finternal_set_font_selection_order): Call font_update_sort_order
11488 only when enable_font_backend is set.
11489 (realize_x_face): Set face->font_info to that of default face only
11490 when enable_font_backend is set.
11491
11492 * xdisp.c (handle_composition_prop): Set it->c to the fist
11493 character of the composed region.
11494 (fill_composite_glyph_string): Set base_face->font_info to
11495 s->font_info. Get a face for ascii from base_face->ascii_face.
11496 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11497 with a face already decided.
11498 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11499 non-negative.
11500 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11501 call font_prepare_composition unconditionally.
11502
11503 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11504
11505 * xterm.h (struct x_display_info): New member font.
11506
11507 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11508 (x_set_mouse_face_gc, x_new_font): Likewise.
11509 (x_term_init): Setup display_info->font.
11510 (x_delete_terminal): Free display_info->font.
11511
11512 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11513
11514 * ftxfont.c (ftxfont_default_fid): Delete it.
11515 (ftxfont_open): Set xfont->fid to 0.
11516 (ftxfont_end_for_frame): Clear data specific to the frame and the
11517 font-driver.
11518
11519 * xftfont.c (xftfont_default_fid): Delete it.
11520 (xftfont_open): Set xfont->fid to 0.
11521
11522 * fontset.c (FONTSET_OBJLIST): New macro.
11523 (fontset_find_font): Update font-object list of the fontset.
11524 (free_realized_fontset): New function.
11525 (free_face_fontset): Call free_realized_fontset.
11526 (Ffont_info): Call font_close_object only when enable_font_backend
11527 is set.
11528
11529 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11530 [HAVE_NTGUI]: Include w32term.h.
11531 [MAC_OS]: Include macterm.ch.
11532 (font_otf_ValueRecord): Use make_number.
11533 (font_finish_cache): Fix handling of reference count.
11534 (font_clear_cache): Update num_fonts.
11535 (font_open_entity): Update smallest_char_width and
11536 smallest_font_height of the frame.
11537 (font_close_object): Update num_fonts.
11538 (Fclear_font_cache): Fix finding the target cache data.
11539
115402008-02-16 Glenn Morris <rgm@gnu.org>
11541
11542 * fontset.c (Finternal_char_font): Fix compilation warning.
11543
115442008-02-16 Eli Zaretskii <eliz@gnu.org>
11545
11546 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11547 instead of char arrays. Enlarge the size of array passed to
11548 get_token_information.
11549
11550 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11551 warnings.
11552
115532008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11554
11555 * .gdbinit: Don't set `args', it breaks gdb --args.
11556
115572008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11558
11559 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11560 within a narrowed buffer.
11561
115622008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11563
11564 * coding.c (decode_coding_object, encode_coding_object):
11565 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11566
115672008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11568
11569 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11570 hardcoding 1.
11571 (detect_coding_system):
11572 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11573 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11574 * insdel.c (insert_from_gap):
11575 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11576 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11577 (string_to_multibyte):
11578 * character.c (chars_in_text, multibyte_chars_in_text):
11579 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11580
11581 * character.h (FETCH_STRING_CHAR_ADVANCE)
11582 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11583 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11584 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11585
11586 * casefiddle.c (casify_region): Only call after-change and composition
11587 functions on the part of the region that was changed.
11588
11589 * keyboard.c (read_avail_input):
11590 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11591
115922008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11593
11594 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11595 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11596
115972008-02-11 Juanma Barranquero <lekktu@gmail.com>
11598
11599 * w32menu.c (push_submenu_start, push_submenu_end)
11600 (push_left_right_boundary, push_menu_pane, push_menu_item):
11601 * keyboard.c (read_key_sequence): Don't pass args with side effects
11602 to AREF, it fails when compiling with -DENABLE_CHECKING.
11603
116042008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11605
11606 * Makefile.in (${lispsource}international/charprop.el):
11607 Delete this target.
11608
11609 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11610 emacs-unicode-2.
11611
116122008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11613
11614 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11615
116162008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11617
11618 * frame.c (Qnoelisp): New symbol.
11619 (syms_of_frame): Initialize it.
11620 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11621 harmless Elisp code, from a strong `force' from x_connection_closed.
11622 * frame.h (Qnoelisp): Declare.
11623 * xterm.c (x_connection_closed): Pass `noelisp'.
11624
11625 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11626 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11627 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11628 rather than `int' for the type of `type'.
11629
116302008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11631
11632 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11633
11634 * Makefile.in (GNUC): Remove support for gcc-1.x.
11635
116362008-02-10 Richard Stallman <rms@gnu.org>
11637
11638 * lisp.h (ASET): Use AREF, not ASLOT.
11639
116402008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11641
11642 * lisp.h (ASET): Check bounds.
11643
116442008-02-10 Glenn Morris <rgm@gnu.org>
11645
11646 * buffer.c (mode-name): Doc fix.
11647
116482008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11649
11650 * Makefile.in:
11651 * emacs.c:
11652 * gmalloc.c:
11653 * keyboard.c:
11654 * lisp.h:
11655 * m/ibm370aix.h:
11656 * process.c:
11657 * regex.c:
11658 * s/hpux.h:
11659 * sysdep.c:
11660 * sysselect.h:
11661 * systty.h:
11662 * unexec.c:
11663 * w32term.c:
11664 * xsmfns.c:
11665 * xterm.c: Remove code that deals with obsolete variables.
11666
11667 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11668
11669 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11670 nothing else needs it anymore.
11671
116722008-02-09 Eli Zaretskii <eliz@gnu.org>
11673
11674 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11675 instead of unibyte_char_to_multibyte.
11676
116772008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11678
11679 * s/gnu-linux.h: Remove commented out code.
11680
11681 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11682
11683 * Makefile.in: Update what RMS says about using autoconf.
11684 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11685 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11686 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11687 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11688
116892008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11690
11691 * keymap.c (Fkey_description): Move side effect outside of macro call.
11692
11693 * xfaces.c (Finternal_make_lisp_face):
11694 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11695
11696 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11697 (syms_of_fontset): Use ASET.
11698
11699 * fns.c (concat): Move side effect outside of macro call.
11700 (hash_clear): Use ASET.
11701
117022008-02-08 Richard Stallman <rms@gnu.org>
11703
11704 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11705 If FORCE, and frame has a surrogate minibuffer for another frame,
11706 delete the other frame first.
11707
117082008-02-07 Timo Savola <timo.savola@iki.fi>
11709
11710 * xterm.c (x_detect_focus_change): Handle embed client message.
11711 (handle_one_xevent): Ditto.
11712 (handle_one_xevent): If embedded and we get a button press/release,
11713 request focus.
11714 (xembed_set_info, xembed_send_message): New functions.
11715 (x_make_frame_visible): Call xembed_set_info if embedded.
11716 (x_make_frame_invisible): Call xembed_set_info if embedded.
11717 (x_term_init): Initialize Xatom_XEMBED.
11718 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11719 (x_iconify_frame): Ditto.
11720
11721 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11722 (enum xembed_info, enum xembed_message, enum xembed_focus)
11723 (enum xembed_modifier, enum xembed_accelerator): New.
11724 (xembed_set_info, xembed_send_message): Declare.
11725 (FRAME_X_EMBEDDED_P): New.
11726
11727 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11728 gtk_plug_new.
11729
11730 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11731 window ID of a frame.
11732 (x_window): Reparent frame if embedded.
11733 (Fx_create_frame): Don't set border width if embedded.
11734
11735 * emacs.c (USAGE3): Add --parent-id.
11736 (standard_args): Ditto.
11737
117382008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11739
11740 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11741
117422008-02-07 Jim Meyering <meyering@redhat.com>
11743
11744 Use "do...while (0)", not "if (1)...else" in macro definitions.
11745 The latter provokes a warning from gcc about the empty else, when
11746 followed by ";". Also, without that trailing semicolon, it would
11747 silently swallow up any following statement.
11748 * syntax.h (SETUP_SYNTAX_TABLE)
11749 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11750 * buffer.h (DECODE_POSITION): Likewise.
11751 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11752 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11753 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11754 (FETCH_CHAR_ADVANCE): Likewise.
11755 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11756
117572008-02-07 Jim Meyering <meyering@redhat.com>
11758
11759 * lread.c [lint]: Don't include <sys/inode.h>.
11760
117612008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11762
11763 * xselect.c (x_handle_dnd_message):
11764 * xmenu.c (digest_single_submenu, xmenu_show):
11765 * xdisp.c (with_echo_area_buffer_unwind_data)
11766 (format_mode_line_unwind_data, unwind_format_mode_line)
11767 (display_menu_bar):
11768 * eval.c (Ffetch_bytecode):
11769 * doc.c (store_function_docstring):
11770 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11771 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11772 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11773
117742008-02-07 Kenichi Handa <handa@m17n.org>
11775
11776 * ftxfont.c (ftxfont_open): Don't set
11777 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11778
11779 * ftfont.c (ftfont_open): Fix previous change.
11780
117812008-02-06 Jason Rumney <jasonr@gnu.org>
11782
11783 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11784 Use cached metrics for ASCII characters.
11785 (w32font_open_internal): Don't set font's owning_frame.
11786 Cache metrics for ASCII characters.
11787
11788 * w32font.h (struct w32font_info): Add ascii_metrics.
11789 Remove owning_frame.
11790
117912008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11792
11793 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11794 to negative value.
11795
11796 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11797
11798 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11799
11800 * charset.c (syms_of_charset): Set QCtest and Qeq.
11801
118022008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11803
11804 * process.c (Fstart_process):
11805 * callproc.c (Fcall_process): Handle the case where
11806 Funhandled_file_name_directory returns nil.
11807
11808 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11809 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11810 * font.c (check_gstring): Use them and AREF to access the vector before
11811 we know it's really a gstring.
11812 (Ffont_shape_text): Fix typo.
46e722a9 11813 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
11814
11815 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11816 Declare.
11817
11818 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11819
118202008-02-05 Jason Rumney <jasonr@gnu.org>
11821
11822 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11823 Set smallest_font_height and smallest_char_width in display info.
11824
118252008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11826
11827 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11828
118292008-02-05 Miles Bader <miles@gnu.org>
11830
11831 * xfaces.c (get_lface_attributes, merge_named_face)
11832 (lookup_named_face, lookup_derived_face, realize_named_face):
11833 Revert 2008-02-01 change by cyd@stupidchicken.com.
11834
118352008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11836
11837 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11838 fallback fonts.
11839 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11840
118412008-02-04 Jason Rumney <jasonr@gnu.org>
11842
11843 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11844 set full_name.
11845 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11846
118472008-02-03 Jason Rumney <jasonr@gnu.org>
11848
11849 * makefile.w32-in (OBJ1): Include font.o here.
11850 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11851
118522008-02-02 Jason Rumney <jasonr@gnu.org>
11853
11854 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11855
118562008-02-01 Jason Rumney <jasonr@gnu.org>
11857
11858 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11859
11860 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11861
118622008-02-01 Andreas Schwab <schwab@suse.de>
11863
11864 * Makefile.in (shortlisp, lisp): Update for rename of
11865 ../lisp/language/myanmar.el.
11866
118672008-02-01 Chong Yidong <cyd@stupidchicken.com>
11868
11869 * xfaces.c (get_lface_attributes): Delete function.
11870 (merge_named_face, lookup_named_face, lookup_derived_face)
11871 (realize_named_face): Call lface_from_face_name directly, and use
11872 the fact that merge_face_vectors does not alter its FROM argument.
11873
118742008-02-01 Jason Rumney <jasonr@gnu.org>
11875
11876 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11877 input in the default locale. Handle non-Unicode multibyte input.
11878
118792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11880
11881 * fontset.c (reorder_font_vector): Exclude nil elements from the
11882 font group. Don't try multiple fonts.
11883 (fontset_font): Adjust for the above change.
11884 (Finternal_char_font): Return nil if the found font doesn't
11885 contain the character ch.
11886
11887 * Makefile.in (lisp, shortlisp): Add cham.el.
11888
118892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11890
11891 * font.h (FONTP): Make it return 1 also for a font-object.
11892
11893 * .gdbinit (xfontset): New function.
11894
11895 * font.c (font_find_for_lface): Check if the character C is
11896 supported or not only for the first font.
11897
11898 * fontset.c (reorder_font_vector): Fix typo.
11899 (fontset_find_font): Don't add a font-spec specifying a script.
11900 Use 0 (not Qt) for the indication of empty font-group. Change the
11901 format of RFONT-DEF. Return Qt if no font in the font-group
11902 support the character.
11903 (fontset_font): Adjust for the above change. If no font was
11904 found the character, remember that.
11905 (face_for_char): Adjust for the change of RFONT-DEF.
11906 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11907 no font for the target.
11908 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11909
119102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11911
11912 * font.c (font_load_for_face): Handle the case that the font in
11913 face->lface is a string.
11914
119152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11916
11917 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11918
119192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11920
11921 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11922 Fix previous change. If the frame is not on a window system,
11923 signal an error.
11924
119252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11926
11927 * coding.c (decode_coding_object, encode_coding_object): Adjust
11928 marker positions after conversion.
11929
11930 * lisp.h (struct Lisp_Marker): New member need_adjustment.
11931
119322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11933
11934 * font.c (font_find_for_lface): Fix the handling of the return
11935 value of font_has_char.
11936 (Ffont_shape_text): Fix previous change.
11937
11938 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11939 (fontset_ref_and_range): Delete it.
11940 (fontset_find_font): Call char_table_ref_and_range instead of
11941 FONTSET_REF_AND_RANGE.
11942 (make_fontset): Don't setup font groups of Latin here.
11943 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11944 (new_fontset_from_font): Make the specified font the default for
11945 all Latin characters.
11946
119472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11948
11949 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
11950 is on a window system before accessing the fontset of the frame.
11951
119522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11953
11954 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
11955
11956 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
11957 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
11958
11959 * font.c (Ffont_shape_text): If the font driver doesn't have a
11960 shaper function, make zero-width glyphs to have at least one-pixel
11961 width. Fix setting of `to' field of glyphs.
11962
119632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11964
11965 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
11966 glyphs.
11967
11968 * font.h (struct font_driver): Improve docstring of member `shape'.
11969
119702008-02-01 Kenichi Handa <handa@m17n.org>
11971
11972 * composite.c (syms_of_composite): Fix docstring of
11973 auto-composition-function.
11974
11975 * font.h (LGLYPH_SIZE): New macro.
11976
11977 * font.c (Ffont_fill_gstring): Stop filling when a character not
11978 supported by the font is found.
11979 (Ffont_shape_text): When a shape callback function returns nil,
11980 try at most two more times with larger gstring.
11981 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
11982
11983 * xdisp.c (handle_auto_composed_prop): Change the argument to
11984 auto-composition-function.
11985
11986 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
11987 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
11988 Lispy glyph and store it in the lgstring.
11989
11990 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
11991
11992 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
11993
119942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11995
11996 * font.c (Ffont_shape_text): Avoid unnecessary composition.
11997
11998 * fontset.c (Vfont_encoding_charset_alist): New variable.
11999 (syms_of_fontset): DEFVAR it.
12000 (reorder_font_vector, fontset_find_font): Optimize for the case of
12001 no need of reordering.
12002 (face_for_char): Map the charset property by
12003 Vfont_encoding_charset_alist.
12004
120052008-02-01 Jason Rumney <jasonr@gnu.org>
12006
12007 * w32font.c (logfonts_match): Don't check adstyle here.
12008 (font_matches_spec): Check here against physical font instead.
12009 (add_font_entity_to_list): Avoid some substitutions.
12010
12011 * font.c (font_parse_fcname): Default weight and slant to normal.
12012 (font_score): Prefer normal fonts if weight or slant unspecified.
12013 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12014 match freetype scores.
12015
120162008-02-01 Jason Rumney <jasonr@gnu.org>
12017
12018 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12019 font, as it may have been deleted.
12020 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12021 most common hyphenless variation.
12022 (logfonts_match): Check generic family.
12023 (font_matches_spec): Don't check generic family here.
12024 (fill_in_logfont): Set generic family based on adstyle.
12025
12026 * w32font.h (w32font_get_cache): Update declaration.
12027
120282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12029
12030 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12031
12032 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12033 If none of the new drivers are available, call font_update_drivers
12034 with the old drivers.
12035
12036 * w32font.c (w32font_get_cache): Adjust the argument type.
12037
12038 * xfont.c (xfont_get_cache): Adjust the argument type.
12039
12040 * font.h (struct font_driver): Change argument type of get_cache.
12041
12042 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12043
12044 * font.c (Ffont_get): Fix arguments to Fassoc.
12045 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12046 (font_clear_cache): New function.
12047 (font_list_entities, font_matching_entity): Use font_get_cache.
12048 (font_update_drivers): Call font_clear_cache when finishing a driver.
12049
12050 * fontset.c (fontset_find_font): Fix previous change.
12051
120522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12053
12054 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12055 dpyinfo->font_table.
12056 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12057 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12058
12059 * font.c (font_at): Handle the case that the arg C is negative.
12060 Handle the unibyte case.
12061 (Ffont_at): Call font_at with the arg C -1.
12062
12063 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12064 the position here, and call font_at with the arg C -1.
12065 Don't check the range of the existing composition at the point.
12066
120672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12068
12069 * fontset.c (fontset_add): New args charset_id and family.
12070 Change caller.
12071 (load_font_get_repertory, fontset_find_font): Assume that
12072 font_spec is always a font-spec object.
12073 (Fset_fontset_font): Always store a font-spec object in a fontset.
12074
12075 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12076 instead of get_property_and_range.
12077
120782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12079
12080 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12081 (xftfont_open): Don't keep locking face.
12082 (xftfont_close): Don't unlock face.
12083 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12084
12085 * fontset.c (fontset_find_font): Don't prefer a font of
12086 supplementary charset.
12087
120882008-02-01 Kenichi Handa <handa@m17n.org>
12089
12090 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12091 script, langsys_tag to langsys, new member script.
12092 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12093 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12094 listing to the script specified in that property. Fix arg to
12095 OTF_check_features.
12096
120972008-02-01 Jason Rumney <jasonr@gnu.org>
12098
12099 * w32font.h: New file.
12100
12101 * w32font.c: Include it.
12102 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12103 (w32font_open): Set owning_frame.
12104 (w32font_text_extents): Use owning_frame.
12105 (struct font_callback_data): Add opentype_only field.
12106 (add_font_entity_to_list): Use it to filter fonts.
12107 Don't check against full name.
12108 (w32font_list_internal): New function.
12109 (w32font_list): Use it.
12110 (w32font_match_internal): New function.
12111 (w32font_match): Use it.
12112 (w32font_open_internal): New function.
12113 (w32font_open): Use it.
12114 (w32font_get_cache, w32font_close, w32font_has_char)
12115 (w32font_encode_char, w32font_text_extents, w32font_draw):
12116 Make non-static.
12117
12118 * makefile.w32-in (w32font.o): Depend on w32font.h.
12119
121202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12121
12122 * charset.c (Fdefine_charset_internal): Record a supplementary
12123 charset at the tail of Vcharset_order_list.
12124
12125 * font.c (Ffont_shape_text): Fix the return value.
12126
12127 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12128
12129 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12130
121312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12132
12133 * ftfont.c (struct OpenTypeSpec): New struct.
12134 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12135 (ftfont_get_open_type_spec): New function.
12136 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12137
12138 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12139
121402008-02-01 Jason Rumney <jasonr@gnu.org>
12141
12142 * w32font.c (add_font_entity_to_list): Compare only the beginning
12143 of full name.
12144
121452008-02-01 Kenichi Handa <handa@m17n.org>
12146
12147 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12148 Never return HANDLED_RECOMPUTE_PROPS.
12149
121502008-02-01 Kenichi Handa <handa@m17n.org>
12151
12152 * font.c (font_gstring_produce): Delete it.
12153
12154 * composite.h (COMPOSITION_METHOD):
12155 Handle COMPOSITION_WITH_GLYPH_STRING.
12156
121572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12158
12159 * xfont.c (Qx): Delete.
12160 (syms_of_xfont): Don't initialize Qx.
12161
12162 * composite.h (enum composition_method):
12163 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12164
121652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12166
12167 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12168 (choose_face_font): Accept new form of font-spec.
12169
12170 * frame.h (font_driver_list): Declare it unconditionally.
12171 (struct frame): Define members font_driver_list and font_data_list
12172 unconditionally.
12173
12174 * fontset.c: Include "font.h" unconditionally.
12175 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12176 (Fset_fontset_font): Accept a font-spec object.
12177
12178 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12179 PIXEL_SIZE part a wild card.
12180
12181 * dispextern.h (struct glyph_string): Define members clip and
12182 num_clips unconditionally.
12183 (struct face): Define members font_info and extra unconditionally.
12184
12185 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12186 ftfont_info only when HAVE_LIBOTF is defined.
12187
121882008-02-01 Andreas Schwab <schwab@suse.de>
12189
12190 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12191 and end.
12192
121932008-02-01 Jason Rumney <jasonr@gnu.org>
12194
12195 * w32font.c (w32font_driver): Add new fields.
12196
121972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12198
12199 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12200 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12201 (LIBES): Add @M17N_FLT_CFLAGS@.
12202
12203 * composite.c (compose_text): Don't treat the new style
12204 composition specially.
12205
12206 * emacs.c (main): Call syms_of_font unconditionally.
12207
12208 * font.h (FONT_ENTITY_NOT_LOADABLE)
12209 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12210 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12211 (struct font_driver): New member shape.
12212 (font_registry_charsets): Extern it.
12213 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12214 (font_otf_capability, font_drive_otf): Delete their externs.
12215
12216 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12217 (font_charset_alist, font_registry_charsets): Move from xfont.c
12218 and rename.
12219 (font_prop_validate_otf): New function.
12220 (font_property_table): Register it for QCotf.
12221 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12222 (font_drive_otf): Delete.
12223 (font_prepare_composition): New arg F. Adjust for the change of
12224 lispy gstring.
12225 (font_find_for_lface): New arg C.
12226 (font_load_for_face): Adjust for the change of font_find_for_lface.
12227 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12228 lispy gstring.
12229 (Ffont_shape_text): New function.
12230 (Fopen_font): If the font size is not given, use 12-pixel.
12231 (Ffont_at): New arg STRING.
12232 (syms_of_font): Initalize font_charset_alist.
12233 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12234 conditionally.
12235
12236 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12237 fonts of the same font-spec. Change the format of RFONT-DEF.
12238 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12239 Adjust for the change of RFONT-DEF.
12240 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12241
12242 * ftfont.h: New file.
12243
12244 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12245 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12246 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12247 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12248 font_otf_capability and font_drive_otf, set ftfont_shape.
12249 (ftfont_list): Adjust for the change of :otf property value.
12250 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12251 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12252 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12253 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12254 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12255 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12256
12257 * w32term.c (x_draw_composite_glyph_string_foreground):
12258 Adjust for the change of lispy gstring.
12259
12260 * xdisp.c (handle_composition_prop): Adjust for the change of
12261 lispy gstring. Call a function for auto-composition with the
12262 third arg it->window.
12263 (fill_composite_glyph_string): Adjust for the change of lispy string.
12264 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12265
12266 * xfaces.c (set_font_frame_param): Adjust for the change of
12267 font_find_for_lface.
12268
12269 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12270 (xfont_registry_charsets): Likewise. Change caller.
12271 (syms_of_xfont): Don't handle x_font_charset_alist.
12272
12273 * xftfont.c: Include "ftfont.h".
12274 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12275 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12276 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12277 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12278 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12279 Set xftfont_driver.shape to xftfont_shape.
12280
12281 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12282 the change of lispy gstring.
12283
122842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12285
12286 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12287
122882008-02-01 Jason Rumney <jasonr@gnu.org>
12289
12290 * w32font.c (w32font_draw): Fill background manually.
12291
122922008-02-01 Jason Rumney <jasonr@gnu.org>
12293
12294 * font.c (Qfontp): Remove unused symbol.
12295 (QCantialias): New symbol.
12296 (syms_of_font): Define it.
12297 (font_property_table): Set a validator for QCantialias.
12298
12299 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12300 Define if not already.
12301 (QCfamily): Share with xfaces.c.
12302 (Qstandard, Qsubpixel, Qnatural): New symbols.
12303 (syms_of_w32font): Define them. Don't define QCfamily here.
12304 (w32_antialias_type, lispy_antialias_type): New functions.
12305 (w32_enumfont_pattern_entity): New arg requested_font.
12306 Set antialias parameter if non-default was requested.
12307 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12308
123092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12310
12311 * lread.c (read1): Undo the previous change.
12312
123132008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12314
12315 * frame.c (Fdelete_frame): Call font_update_drivers only when
12316 USE_FONT_BACKEND is defined.
12317
123182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12319
12320 * font.h (struct font_bitmap): New member bits_per_pixel.
12321 (struct font_driver): New members start_for_frame and end_for_frame.
12322 (struct font_data_list): New struct.
12323 (font_put_frame_data, font_get_frame_data): Extern them.
12324
12325 * frame.h (struct frame): New member font_data_list.
12326
12327 * font.c (font_update_drivers): Call driver->start_for_frame and
12328 driver->end_for_frame at proper timings.
12329 (font_put_frame_data, font_get_frame_data): New functions.
12330 (Ffont_spec): Add usage in the docstring.
12331
12332 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12333 (Fdelete_frame): Call font_update_drivers.
12334
12335 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12336 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12337 (xftfont_get_xft_draw): New function.
12338 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12339 (xftfont_end_for_frame): New function.
12340 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12341
12342 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12343 Change argument. Cache GCs in the per-frame data.
12344 (struct ftxfont_frame_data): New struct.
12345 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12346 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12347 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12348 (ftxfont_end_for_frame): New function.
12349 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12350
12351 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12352
123532008-02-01 Kenichi Handa <handa@m17n.org>
12354
12355 * xselect.c (Vselection_coding_system)
12356 (Vnext_selection_coding_system): Delete them.
12357 (syms_of_xselect): Don't declare selection-coding-system and
12358 next-selection-coding-system. They are declared in select.el.
12359
123602008-02-01 Jason Rumney <jasonr@gnu.org>
12361
12362 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12363
12364 * w32fns.c: Include imm.h.
12365 (get_composition_string_fn, get_ime_context_fn): New optional
12366 system functions.
12367 (globals_of_w32fns): Load them from imm32.dll.
12368 (ignore_ime_char): New flag.
12369 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12370 WM_IME_ENDCOMPOSITION messages.
12371
12372 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12373 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12374
123752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12376
12377 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12378 (READCHAR_REPORT_MULTIBYTE): New macro.
12379 (readchar): New 2nd arg MULTIBYTE.
12380 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12381 Make symbol's name multibyte according to the multibyteness of the
12382 source.
12383
123842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12385
12386 * xfaces.c (face_for_overlay_string): Call lookup_face with
12387 correct arguments (fix of synching with the trunk).
12388
123892008-02-01 Kenichi Handa <handa@m17n.org>
12390
12391 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12392 (font_prop_validate_non_neg, font_prop_validate_spacing):
12393 Delete argument prop_index.
12394 (font_property_table): Change arguments to validater. Change Callers.
12395 (font_lispy_object): Delete.
12396 (font_at): Use font_find_object instead fo font_lispy_object.
12397
123982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12399
12400 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12401 and file names.
12402
124032008-02-01 Jason Rumney <jasonr@gnu.org>
12404
12405 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12406 (font_matches_spec): Remove debug output.
12407 (add_font_entity_to_list): Avoid using substituted fonts.
12408
124092008-02-01 Jason Rumney <jasonr@gnu.org>
12410
12411 * doc.c (Fsnarf_documentation):
12412 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12413
124142008-02-01 Miles Bader <miles@gnu.org>
12415
12416 * dispextern.h (struct glyph_row): Only define "clip" field if
12417 HAVE_WINDOW_SYSTEM is defined.
12418
124192008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12420
12421 Fix up multi-tty merge.
12422
12423 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12424 and indentation.
12425
12426 * xfaces.c (free_realized_face, clear_face_gcs):
12427 Include font_done_for_face in the input_blocked section, just in case.
12428
12429 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12430 (get_char_face_and_encoding): Undo last change and remove the *other*
12431 duplicate definition (i.e. keep the one that's better scoped and that
12432 includes code for the font-backend).
12433
12434 * terminal.c (create_terminal): Default keyboard_coding to
12435 `no-conversion' and terminal_coding to `undecided'.
12436
12437 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12438
12439 * fontset.c (free_realized_fontsets): Check that the table entry does
12440 contain a fontset before trying to compare it to `base'.
12441
12442 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12443 syms_of_charset, and syms_of_coding earlier because init_window_once
12444 now needs Vcoding_system_hash_table to be setup.
12445
12446 * coding.h (default_buffer_file_coding): Remove.
12447
12448 * coding.c (default_buffer_file_coding): Remove.
12449 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12450 than ->symbol, and use the terminal-local coding system.
12451 (syms_of_coding): Don't setup the coding-systems that are not
12452 terminal-local.
12453 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12454
12455 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12456 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12457
12458 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12459 in chartab.c and were re-added here by mistake.
12460 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12461
12462 * doc.c (Fsnarf_documentation):
12463 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12464 src to etc.
12465
12466 * ChangeLog.10: Add mistakenly removed entry.
12467
124682008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12469
12470 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12471
124722008-02-01 Miles Bader <miles@gnu.org>
12473
12474 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12475 Add extra args to FACE_FOR_CHAR.
12476
124772008-02-01 Kenichi Handa <handa@m17n.org>
12478
12479 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12480 in sequence.
12481
12482 * chartab.c (map_sub_char_table, map_char_table): If the range
12483 contains just one character, call the function with that character
12484 even if the depth is not 3.
12485
124862008-02-01 Jason Rumney <jasonr@gnu.org>
12487
12488 * w32font.c (w32font_text_extents): Calculate metrics for the
12489 whole string.
12490
124912008-02-01 Jason Rumney <jasonr@gnu.org>
12492
12493 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12494
124952008-02-01 Jason Rumney <jasonr@gnu.org>
12496
12497 * w32term.c (x_set_glyph_string_clipping): Use
12498 get_glyph_string_clip_rects.
12499 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12500 Adjust for the change of struct glyph_string.
12501
12502 * w32font.c (w32font_draw): Do clipping here.
12503
125042008-02-01 Kenichi Handa <handa@m17n.org>
12505
12506 * xftfont.c (xftfont_draw): Adjust for the change of struct
12507 glyph_string.
12508
12509 * xterm.c (x_set_glyph_string_clipping): Use
12510 get_glyph_string_clip_rects.
12511 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12512 Adjust for the change of struct glyph_string.
12513
12514 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12515 the resulting clip(s}.
12516 (expose_overlaps): Add arg r. Change callers. Set it to
12517 row->clip temporarily.
12518 (expose_window): Redraw rows overlapping the exposed area.
12519
12520 * dispextern.h (struct glyph_row): New member clip.
12521 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12522 clip_height, new member clip, and num_clips.
12523
125242008-02-01 Kenichi Handa <handa@m17n.org>
12525
12526 * data.c (Fchar_or_string_p): Fix docstring.
12527
125282008-02-01 Kenichi Handa <handa@m17n.org>
12529
12530 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12531 create a temporary XftDraw object.
12532
125332008-02-01 Kenichi Handa <handa@m17n.org>
12534
12535 * font.c (Ffontp): Fix docstring.
12536
12537 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12538 strong evidence of ISO-2022.
12539
125402008-02-01 Kenichi Handa <handa@m17n.org>
12541
12542 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12543 SYNTAX_ENTRY_FOLLOW_PARENT.
12544
125452008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12546
12547 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12548 its type.
12549 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12550 Update to the new type of weak_hash_tables and next_weak.
12551
12552 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12553 a plain C pointer to Lisp_Hash_Table.
12554
12555 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12556 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12557 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12558 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12559 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12560 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12561 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12562 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12563 (GC_EQ): Remove since they've been identical to their non-GC_
12564 alter-egos ever since the markbit was eradicated.
12565
12566 * alloc.c:
12567 * buffer.c:
12568 * buffer.h:
12569 * data.c:
12570 * fileio.c:
12571 * filelock.c:
12572 * fns.c:
12573 * frame.h:
12574 * lisp.h:
12575 * macterm.c:
12576 * print.c:
12577 * process.c:
12578 * w32fns.c:
12579 * w32menu.c:
12580 * w32term.c:
12581 * xfns.c:
12582 * xmenu.c:
12583 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12584
125852008-02-01 Kenichi Handa <handa@m17n.org>
12586
12587 * chartab.c (map_sub_char_table): Make it work for the top-level
12588 char-table. Fix handling of parent char-table.
12589 (map_char_table): Adjust for the above change.
12590
125912008-02-01 Jason Rumney <jasonr@gnu.org>
12592
12593 * w32font.c (Qgdi): Rename from Qw32.
12594
125952008-02-01 Jason Rumney <jasonr@gnu.org>
12596
12597 * w32bdf.c (get_quoted_string): Make function static.
12598
125992008-02-01 Kenichi Handa <handa@m17n.org>
12600
12601 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12602 bigger ascent and descent than those of the font, use them as
12603 font's ascent and descent.
12604
126052008-02-01 Kenichi Handa <handa@m17n.org>
12606
12607 * Makefile.in (${lispsource}international/charprop.el): Move this
12608 target within "#ifdef HAVE_UNIDATA" and "#endif".
12609
126102008-02-01 Kenichi Handa <handa@m17n.org>
12611
12612 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12613 (shortlisp): Add ../lisp/language/tai-viet.el.
12614
126152008-02-01 Ulrich Mueller <ulm@gentoo.org>
12616
12617 * Makefile.in (${lispsource}international/charprop.el): Depend on
12618 temacs${EXEEXT}.
12619
126202008-02-01 Jason Rumney <jasonr@gnu.org>
12621
12622 * w32font.c (w32font_close): Delete the GDI font object.
12623
12624 * w32menu.c: Include character.h.
12625
12626 * w32proc.c: Likewise.
12627
12628 * w32select.c: Likewise.
12629
12630 * makefile.w32-in (w32proc.o): Depend on character.h.
12631
126322008-02-01 Jason Rumney <jasonr@gnu.org>
12633
12634 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12635
12636 * w32menu.c (syms_of_w32menu): Likewise.
12637
12638 * w32proc.c (syms_of_ntproc): Likewise.
12639
12640 * w32select.c (syms_of_w32select): Likewise.
12641
12642 * w32term.c (syms_of_w32term): Likewise.
12643
126442008-02-01 Jason Rumney <jasonr@gnu.org>
12645
12646 * w32font.c (w32font_draw): Delete brush after using it.
12647
126482008-02-01 Jason Rumney <jasonr@gnu.org>
12649
12650 * w32font.c (w32font_open): Don't set font_idx.
12651 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12652 to font settings.
12653 (w32font_draw): Fill background explicitly.
12654
126552008-02-01 Jason Rumney <jasonr@gnu.org>
12656
12657 * w32term.c (w32_initialize): Don't call w32font_initialize.
12658
12659 * w32font.c (w32font_info): Remove subranges.
12660 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12661 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12662 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12663 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12664 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12665 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12666 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12667 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12668 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12669 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12670 New symbols.
12671 (font_callback_data): New struct.
12672 (w32font_list, w32font_match): Use it.
12673 (w32font_open): Don't populate subranges.
12674 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12675 (w32font_encode_char): Always return unicode code-point as-is.
12676 (w32font_text_extents): Supply a transformation matrix to
12677 GetGlyphOutline. Never look up by glyph index. Avoid looping
12678 twice. Use unicode version of GetTexExtentPoint32 instead of
12679 glyph index version.
12680 (set_fonts_frame): Remove.
12681 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12682 set frame parameter. Use backward compatible fake foundries.
12683 Save generic family in extra slot under QCfamily. Make width slot
12684 constant. Save QCspacing value. Save list of scripts instead of
12685 binary subranges.
12686 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12687 (add_font_entity_to_list): Use font_callback_data struct. Filter
12688 unwanted fonts.
12689 (add_one_font_entity_to_list): Use font_callback_data struct.
12690 (w32_registry): Default to iso10646_1.
12691 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12692 string font registries. Don't fill in font name if it is a generic
12693 family name, fill family instead. Use spacing, family and script
12694 extra info to fill pitch, family and charset fields.
12695 (list_all_matching_fonts): Use font_callback_data struct.
12696 (unicode_range_for_char): Remove.
12697 (font_supported_scripts): New function.
12698 (w32font_initialize): Remove.
12699 (syms_of_w32font): Update which symbols are defined.
12700
127012008-02-01 Jason Rumney <jasonr@gnu.org>
12702
12703 * font.c (font_pixel_size): Reverse assq_no_quit args.
12704
12705 * w32term.h (FONT_WIDTH): Report max width, not average.
12706 (FONT_MAX_WIDTH): Remove.
12707 (FONT_AVG_WIDTH): New macro.
12708
12709 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12710 redefinition of FONT_WIDTH.
12711
12712 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12713 (w32_cache_char_metrics): Use FONT_WIDTH.
12714
12715 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12716
127172008-02-01 Jason Rumney <jasonr@gnu.org>
12718
12719 * w32font.c (w32font_open): Make lfHeight negative.
12720
12721 * w32fns.c (x_default_font_parameter): Use new style font name.
12722 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12723
127242008-02-01 Jason Rumney <jasonr@gnu.org>
12725
12726 * w32font.c (QCsubranges): New symbol.
12727 (w32font_open, w32font_has_char): Get subranges from subproperty
12728 of extra.
12729 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12730 (syms_of_w32font): Define :subranges symbol.
12731
12732 * font.c (font_put_extra): Expose externally.
12733
12734 * font.h (font_put_extra): Move declaration from font.c.
12735
12736 * font.c (Ffont_get): Use font driver to determine otf capability.
12737 (adjust_anchor): Check if driver defines anchor_point before using.
12738
12739 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12740 (w32font_draw): Use options.
12741 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12742 Fix detection of truetype fonts.
12743 (registry_to_w32_charset): Handle charsets other than iso8859-1
12744 expressed as lisp symbols.
12745 (w32_registry): Express charset as lisp symbol.
12746 (fill_in_logfont): Reverse pixel and point height logic.
12747 Don't set width here. Set quality to default.
12748
12749 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12750 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12751
12752 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12753 Remove redundant loop and allocation.
12754
12755 * makefile.w32-in (font.o, w32font.o): New objects.
12756 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12757 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12758
12759 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12760 STORE_XCHARB a valid l-value.
12761
12762 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12763 calculations for non-Truetype fonts.
12764 (x_draw_glyph_string): Sync with xterm.c.
12765 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12766 Remove redundant code.
12767 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12768
12769 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12770 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12771
12772 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12773 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12774
12775 * w32font.c: New file for w32 font backend.
12776
127772008-02-01 Kenichi Handa <handa@m17n.org>
12778
12779 * term.c: Don't include "buffer.h" twice.
12780
127812008-02-01 Kenichi Handa <handa@m17n.org>
12782
12783 * character.c (Funibyte_string): New function.
12784 (syms_of_character): Defsubr it.
12785
127862008-02-01 Jason Rumney <jasonr@gnu.org>
12787
12788 * w32term.c [USE_FONT_BACKEND]:
12789 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12790 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12791 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12792 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12793 (x_free_frame_resources): Sync with xterm.c.
12794
127952008-02-01 Andreas Schwab <schwab@suse.de>
12796
12797 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12798 char-table size.
12799
128002008-02-01 Kenichi Handa <handa@m17n.org>
12801
12802 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12803
128042008-02-01 Kenichi Handa <handa@m17n.org>
12805
12806 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12807 font_otf_gpos, add font_drive_otf.
12808
12809 * fontset.c (fontset_find_font): Pay attention to font size
12810 specified for a font.
12811 (reorder_font_vector): Check contents of font_def.
12812
12813 * font.c (struct otf_list): Delete it.
12814 (otf_list): Make it a lisp variable.
12815 (otf_open): Use lispy otf_list.
12816 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12817 (check_otf_features): New function.
12818 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12819 New functions.
12820 (font_drive_otf): New function merging font_otf_gsub and
12821 font_otf_gpos.
12822 (font_open_for_lface): New arg spec. Change argument order.
12823 (font_load_for_face): Adjust for the change of font_open_for_lface.
12824 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12825 Ffont_otf_gpos.
12826 (syms_of_font): Staticpro otf_list. Delete defsubr of
12827 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12828
12829 * xfaces.c (set_font_frame_param): Adjust for the change of
12830 font_open_for_lface.
12831
12832 * font.h (font_open_for_lface): Adjust prototype.
12833 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12834 member otf_drive.
12835 (font_otf_gsub, font_otf_gpos): Delete externs.
12836 (font_drive_otf): Extern it.
12837
128382008-02-01 Kenichi Handa <handa@m17n.org>
12839
12840 * font.c (font_at): If the window W is not on a window system,
12841 return Qnil.
12842
12843 * coding.c (produce_chars, encode_coding): Don't call
12844 insert_from_gap if no characters to produce.
12845
128462008-02-01 Kenichi Handa <handa@m17n.org>
12847
12848 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12849 Fclear_face_cache.
12850
12851 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12852
128532008-02-01 Miles Bader <miles@gnu.org>
12854
12855 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12856 Parse "--disable-font-backend" option.
12857 (standard_args): Add "--disable-font-backend" option.
12858
128592008-02-01 Kenichi Handa <handa@m17n.org>
12860
12861 * fontset.c (fontset_find_font): New function.
12862 (fontset_font): Use fontset_find_font.
12863 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12864 Register the specified font for all Latin characters.
12865 (new_fontset_from_font): Register the specified font for all Latin
12866 characters.
12867 (dump_fontset): For a realized fontset, include the base fontset
12868 name in the returned vector.
12869
128702008-02-01 Kenichi Handa <handa@m17n.org>
12871
12872 * character.h (CHAR_STRING): Cast C to unsigned on calling
12873 char_string.
12874
12875 * character.c (char_string): Type of arg C changed to unsigned.
12876 Signal an error if C is an invalid character code.
12877
12878 * editfns.c (general_insert_function, Fchar_to_string):
12879 Use CHARACTERP, not INTEGERP.
12880
128812008-02-01 Kenichi Handa <handa@m17n.org>
12882
12883 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12884 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12885
12886 * regex.c (analyse_first): Fix for multibyte characters in "case
12887 charset:" and "case categoryspec:".
12888
128892008-02-01 Andreas Schwab <schwab@suse.de>
12890
12891 * Makefile.in (LIBES): Move standard libraries to the end.
12892
128932008-02-01 Kenichi Handa <handa@m17n.org>
12894
12895 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12896 nonzero, don't shrink the buffer nextb.
12897
12898 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12899
12900 * coding.c (coding_alloc_by_making_gap): New arg offset.
12901 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12902 offset.
12903 (decode_coding_iso_2022): Update coding->safe_charsets.
12904 (decode_coding_gap): Temporarily set
12905 current_buffer->text->inhibit_shrinking to 1.
12906
129072008-02-01 Kenichi Handa <handa@m17n.org>
12908
12909 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12910 indexing into elements of s->cmp and s->char2b.
12911
129122008-02-01 Juanma Barranquero <lekktu@gmail.com>
12913
12914 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12915
129162008-02-01 Kenichi Handa <handa@m17n.org>
12917
12918 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12919 target_multibyte instead of multibyte.
12920 (re_match_2_internal): Call bcmp_translate with target_multibyte.
12921 (bcmp_translate): Change the argument name from multibyte to
12922 target_multibyte.
12923
129242008-02-01 Kenichi Handa <handa@m17n.org>
12925
12926 These changes are to compile a regexp into a pattern that can be
12927 used both for multibyte and unibyte targets.
12928
12929 * Makefile.in (search.o): Depend on charset.h.
12930
12931 * character.c (multibyte_char_to_unibyte_safe): New function.
12932
12933 * search.c: Include "charset.h".
12934 (compile_pattern_1): Delete argument multibyte. Don't set
12935 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
12936 (compile_pattern): Don't compare cp->buf.target_multibyte.
12937 Compare cp->buf.charset_unibyte.
12938 (compile_pattern): Set cp->buf.target_multibyte.
12939
12940 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12941
12942 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12943
12944 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
12945 multibyte. Change callers.
12946 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
12947 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
12948 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
12949 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
12950 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
12951 (regex_compile): Make the compiled pattern usable both for
12952 multibyte and unibyte targets.
12953 (analyse_first): Make the fastmap usable both for multibyte and
12954 unibyte targets.
12955 (TRANSLATE_VIA_MULTIBYTE): Delete.
12956 (re_match_2_internal): Pay attention to the case that the
12957 multibyteness of bufp and target may be different.
12958
129592008-02-01 Kenichi Handa <handa@m17n.org>
12960
12961 * xdisp.c (x_produce_glyphs): When a font is not found, make the
12962 empty box occupy at least one column width.
12963
129642008-02-01 Miles Bader <miles@gnu.org>
12965
12966 * Makefile.in: Remove redundant HAVE_XFT clause.
12967
129682008-02-01 Kenichi Handa <handa@m17n.org>
12969
12970 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
12971
129722008-02-01 Kenichi Handa <handa@m17n.org>
12973
12974 * fontset.c (Finternal_char_font): Fix for the case of POSITION
12975 being nil.
12976
129772008-02-01 Kenichi Handa <handa@m17n.org>
12978
12979 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
12980
129812008-02-01 Kenichi Handa <handa@m17n.org>
12982
12983 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
12984
129852008-02-01 Kenichi Handa <handa@m17n.org>
12986
12987 * search.c (simple_search): Fix previous change.
12988
129892008-02-01 Kenichi Handa <handa@m17n.org>
12990
12991 * xftfont.c (ftfont_font_format): Extern declaration.
12992
12993 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
12994
12995 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
12996 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
12997
12998 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
12999 (ftfont_font_format): Fix previous change.
13000
13001 * font.h (Ffont_xlfd_name): EXFUN it.
13002
13003 * font.c (font_parse_xlfd): Fix the array size of `f'.
13004 (register_font_driver): Use EQ to compare driver->type.
13005
13006 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13007 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13008 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13009
130102008-02-01 Kenichi Handa <handa@m17n.org>
13011
13012 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13013 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13014
130152008-02-01 Kenichi Handa <handa@m17n.org>
13016
13017 * xfont.c (xfont_open): Set font->format.
13018
13019 * xftfont.c (xftfont_open): Set font->format.
13020
13021 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13022 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13023 (ftfont_open): Set font->format.
13024 (ftfont_font_format): New function.
13025
13026 * font.h (struct font): New member format.
13027
13028 * font.c (Qopentype): New variable.
13029 (syms_of_font): Defsym it.
13030 (Fquery_font): Change the format of the last element of the return
13031 value.
13032
130332008-02-01 Kenichi Handa <handa@m17n.org>
13034
13035 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13036 last resort.
13037
130382008-02-01 Kenichi Handa <handa@m17n.org>
13039
13040 * coding.c (detect_coding_charset): Fix detection of multi-byte
13041 charset.
13042
130432008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13044
13045 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13046
130472008-02-01 Kenichi Handa <handa@m17n.org>
13048
13049 * xdisp.c (get_next_display_element): Set it->face_id for the
13050 first component of a composition.
13051 (x_produce_glyphs): Check if the font is changed or not for composition.
13052
130532008-02-01 Kenichi Handa <handa@m17n.org>
13054
13055 * fontset.c (Qlatin): New variable.
13056 (syms_of_fontset): Define it as a lisp symbol.
13057 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13058
130592008-02-01 Kenichi Handa <handa@m17n.org>
13060
13061 * font.c (font_unparse_fcname): Pay attention to the case that
13062 some of font property is a null string.
13063
130642008-02-01 Kenichi Handa <handa@m17n.org>
13065
13066 * term.c: Include "composite.h".
13067 (encode_terminal_code): Output all components of composition.
13068 Check the size of encode_terminal_src.
13069 (produce_glyphs): For composition, call produce_composite_glyph.
13070 (append_composite_glyph, produce_composite_glyph): New functions.
13071
13072 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13073 is not found, get font_info from the current ascii face.
13074
130752008-02-01 Kenichi Handa <handa@m17n.org>
13076
13077 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13078 buffer-file-name to Qnil before calling insert_from_buffer.
13079
13080 * font.c (font_unparse_fcname): Pay attention to the case that
13081 foundry is a null string.
13082
130832008-02-01 Kenichi Handa <handa@m17n.org>
13084
13085 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13086
13087 * font.c (Qunicode_sip): New variable.
13088 (syms_of_font): Declare it as a Lisp symbol.
13089
13090 * font.h (Qunicode_sip): Extern it.
13091
130922008-02-01 Kenichi Handa <handa@m17n.org>
13093
13094 * composite.c (get_composition_id): Pay attention to TAB component.
13095
13096 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13097 TAB. Adjust for the change of s->char2b which always points to
13098 the first element of allocated memory.
13099
13100 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13101
13102 * xdisp.c (handle_composition_prop): Set it->c to the first
13103 non-TAB component.
13104 (fill_composite_glyph_string): Change argument.
13105 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13106 (x_produce_glyphs): Fix handling of left/right padding.
13107
131082008-02-01 Kenichi Handa <handa@m17n.org>
13109
13110 * coding.c (detect_coding_system): Fix for handling off
13111 inhibit_iso_escape_detection. Fix for the case that no coding
13112 system is defined for a specific coding category.
13113
131142008-02-01 Kenichi Handa <handa@m17n.org>
13115
13116 * font.c (font_matching_entity): Delete unused local var.
13117
13118 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13119 opening a font.
13120
13121 * fileio.c (Finsert_file_contents): On recovering a file, assume
13122 Unix-like eol.
13123 (choose_write_coding_system): On auto-saving a file, force
13124 Unix-like eol.
13125
13126 * coding.c (setup_coding_system): Fix setting of
13127 coding->common_flags based on eol_type.
13128 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13129 inherit from it.
13130
131312008-02-01 Kenichi Handa <handa@m17n.org>
13132
13133 * alloc.c (NSTATICS): Increas to 0x600.
13134
131352008-02-01 Kenichi Handa <handa@m17n.org>
13136
13137 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13138 (ftfont_list): Don't check :name property.
13139 (ftfont_match): New function.
13140 (ftfont_pattern_entity): If the pattern doesn't contain
13141 FC_SPACING, don't assume FC_MONO.
13142
13143 * font.h (struct font_driver): New member `match'.
13144 (font_update_drivers): Adjust prototype.
13145
13146 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13147 property of FONT.
13148 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13149 them unconditionally.
13150 (font_matching_entity): New function.
13151 (font_open_by_name): Try font_matching_entity if exact match is
13152 not found.
13153 (font_update_drivers): Delete the arg FONT. Return a list of
13154 actually used backends. Don't free faces, font caches here.
13155 Don't store data in frame parameters. Don't call x_set_font.
13156 (Ffont_spec): Store :name property as is.
13157 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13158 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13159 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13160 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13161 Call font->driver->otf_gsub instead of font_otf_gsub.
13162
13163 * frame.c (x_set_font_backend): Do more works that were done in
13164 font_update_drivers before.
13165
13166 * xfont.c (xfont_match): New function.
13167 (xfont_driver): Set xfont_driver.match to xfont_match.
13168 (xfont_draw): Set font in GC if necessary.
13169
13170 * ftxfont.c (ftxfont_match): New function.
13171 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13172
13173 * xftfont.c (xftfont_match): New function.
13174 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13175
131762008-02-01 Kenichi Handa <handa@m17n.org>
13177
13178 * font.h (struct font): New member scalable.
13179 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13180 (font_otf_gsub): Adjust prototype.
13181
13182 * font.c (font_otf_capability): Fix handling of the default langsys.
13183 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13184 Check the contents of SPEC.
13185 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13186 (check_gstring): New function.
13187 (REPLACEMENT_CHARACTER): New macro.
13188 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13189 glyph codes of GSTRING.
13190 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13191 (font_prepare_composition): Set cmp->glyph_len.
13192 (font_open_entity): Set font->scalable.
13193 (Ffont_get): Handle :otf property.
13194 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13195 functions.
13196 (Fquery_font): Use font->font.full_name.
13197 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13198 Sfont_otf_alternates.
13199
13200 * ftfont.c (ftfont_open): Set font->font.full_name and
13201 font->font.name properly. Fix calculation of font->font.height
13202 and font->min_width.
13203
13204 * ftxfont.c (ftxfont_create_gcs): New function.
13205 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13206 (ftxfont_draw_backgrond): Fix filling region.
13207 (ftxfont_default_fid): New function.
13208 (ftxfont_open): Set xfont->fid to the return value of
13209 ftxfont_default_fid.
13210 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13211 (ftxfont_done_face): Free only GCs that are created by
13212 ftxfont_create_gcs.
13213 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13214
13215 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13216 Clip to src->width, etc (not src->clip_XXX).
13217
13218 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13219 FontBackend frame parameter.
13220
132212008-02-01 Kenichi Handa <handa@m17n.org>
13222
13223 * font.h (struct font_driver_list): New member `on'.
13224 (Fclear_font_cache): EXFUN it.
13225 (font_update_drivers): Extern it.
13226
13227 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13228 (font_list_entities): Check driver_list->on.
13229 (register_font_driver): Initalize `on' member to 0.
13230 (font_update_drivers): New function.
13231 (Fclear_font_cache): Check driver_list->on.
13232
13233 * frame.h (Qfont_backend): Extern it.
13234 (x_set_font_backend): Extern it.
13235
13236 * frame.c (Qfont_backend): New variable.
13237 (frame_parms): New element for font-backend.
13238 (x_set_font_backend): New function.
13239
13240 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13241 FontBackend frame parameter.
13242 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13243 x_set_font_backend.
13244
13245 * xfont.c (xfont_list): Don't try listing by :name property if the
13246 name is not for XLFD.
13247
132482008-02-01 Kenichi Handa <handa@m17n.org>
13249
13250 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13251 (LGLYPH_SET_TO): New macros.
13252 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13253 element of G is vector or not.
13254 (font_at): Extern it.
13255
13256 * font.c: Include window.h.
13257 (font_lispy_object): New function.
13258 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13259 end of valid glyph.
13260 (font_close_object): Fix getting (struct font *).
13261 (font_at): New function.
13262 (Ffont_get): If FONT is a font-object, get entity from it.
13263 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13264 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13265 range check.
13266 (Ffont_at): New function.
13267 (syms_of_font): Defsubr Sfont_at.
13268
13269 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13270 before the entry for Qcomposition.
13271 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13272 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13273 the font in gstring.
13274 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13275 LGLYPH_FORM (g) to detect the end of valid glyph.
13276 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13277 we are composing with gstring.
13278
13279 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13280 Check if adjustment is vector or not.
13281
13282 * Makefile.in (font.o): Make it depends on window.h.
13283
132842008-02-01 Kenichi Handa <handa@m17n.org>
13285
13286 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13287 adjustment is vector or not.
13288
132892008-02-01 Miles Bader <miles@gnu.org>
13290
13291 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13292
132932008-02-01 Kenichi Handa <handa@m17n.org>
13294
13295 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13296 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13297 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13298
13299 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13300 (DEVICE_DELTA): Fix typo.
13301 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13302 LGLYPH format.
13303
13304 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13305 the change of LGLYPH format.
13306
133072008-02-01 Kenichi Handa <handa@m17n.org>
13308
13309 * ftfont.c (ftfont_list): Fix typo.
13310 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13311
133122008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13313
13314 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13315
13316 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13317 xftface_info is non-NULL.
13318
133192008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13320
13321 * ftfont.c (ftfont_list): Move misplaced #endif.
13322
133232008-02-01 Kenichi Handa <handa@m17n.org>
13324
13325 * ftfont.c (ftfont_list): Pay attention to the case that
13326 FC_CAPABILITY is not defined.
13327
133282008-02-01 Kenichi Handa <handa@m17n.org>
13329
13330 * xftfont.c (xftfont_open): Set charset related members to -1.
13331
13332 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13333 QCname.
13334 (ftfont_open): Set charset related members to -1.
13335
13336 * fontset.c (Votf_script_alist): New variable.
13337 (syms_of_fontset): Initialize it.
13338 (fontset_font): Delete unused variable.
13339
13340 * fontset.h (Votf_script_alist): Extern it.
13341
13342 * font.c (font_find_for_lface): Optimize code.
13343
13344 * font.h (font_close_object, font_merge_old_spec): Extern them.
13345
133462008-02-01 Kenichi Handa <handa@m17n.org>
13347
13348 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13349 (syms_of_font): Initialize them.
13350 (font_pixel_size): Allow float value in dpi.
13351 (font_prop_validate_type): Delete.
13352 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13353 Change caller.
13354 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13355 (font_prop_validate_extra): Delete.
13356 (font_prop_validate_spacing): New function.
13357 (font_property_table): Add elements for all known properties.
13358 (get_font_prop_index): Rename from check_font_prop_name. New
13359 argument FROM. Change caller.
13360 (font_prop_validate): Validate all known properties.
13361 (font_put_extra): Delete argument force. Change caller.
13362 (font_expand_wildcards): Make it static. Fix the way of shrinking
13363 the possible range.
13364 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13365 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13366 Change caller.
13367 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13368 (font_parse_fcname): Delete argument merge. Fix parsing of point
13369 size. Don't validate properties values here. Change caller.
13370 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13371 (font_open_by_name): Delete unused variable.
13372 (Ffont_spec): Likewise. Validate property values.
13373 (Ffont_match_p): New function.
13374
13375 * font.h (QCscalable): Extern it.
13376 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13377
13378 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13379
13380 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13381 (xfont_list_pattern): New function.
13382 (xfont_list): Use xfont_list_pattern.
13383
133842008-02-01 Kenichi Handa <handa@m17n.org>
13385
13386 * font.h (Flist_fonts): EXFUN it.
13387
133882008-02-01 Jason Rumney <jasonr@gnu.org>
13389
13390 * w32term.c (w32_initialize): Add back smoothing_type and
13391 smoothing_enabled definitions.
13392
133932008-02-01 Kenichi Handa <handa@m17n.org>
13394
13395 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13396 s->face->font on determining underline position.
13397
133982008-02-01 Kenichi Handa <handa@m17n.org>
13399
13400 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13401 (font_has_char): Accept font-object too.
13402 (font_find_for_lface): Try at first with a size specified in face.
13403
134042008-02-01 Kenichi Handa <handa@m17n.org>
13405
13406 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13407 font_open_by_name.
13408
134092008-02-01 Kenichi Handa <handa@m17n.org>
13410
13411 * font.h (QCspacing, QCdpi): Extern them.
13412 (enum font_spacing): New enum.
13413 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13414
13415 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13416 (QCspacing, QCdpi): New variables.
13417 (syms_of_font): Initialize them.
13418 (font_pixel_size): New function.
13419 (font_put_extra): New function.
13420 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13421 in FONT_EXTRA.
13422 (font_parse_fcname): Handle enumerated values (e.g. bold).
13423 Fix handling font size. Add QCname property that contains only
13424 unknown properties.
13425 (font_score): Change argument. Change caller. Pay attention to
13426 FONT_PIXEL_SIZE_QUANTUM.
13427 (font_sort_entites, font_list_entities, font_find_for_lface)
13428 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13429 (Ffont_spec): Add QCname property that contains only unknown properties.
13430
13431 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13432 include weight in listing pattern, instead check weight of each
13433 listed font. Don't include scalable in pattern. Pay attention to
13434 FONT_PIXEL_SIZE_QUANTUM.
13435
134362008-02-01 Kenichi Handa <handa@m17n.org>
13437
13438 * font.c (font_parse_fcname): Fix parsing of point-size.
13439 (font_unparse_fcname): Produce symbolic names for style properties.
13440 (font_list_entities): Handle float size correctly.
13441 (font_open_by_name): Prefer `normal' property values if the name
13442 doesn't specify them.
13443
13444 * fontset.c (Finternal_char_font): Use font_get_name, not
13445 Ffont_xlfd_name.
13446
13447 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13448 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13449 pattern. Don't force scalable.
13450
13451 * xftfont.c (xftfont_open): For generating a name, start from
13452 96-byte buffer.
13453
134542008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13455
13456 * frame.h (x_new_fontset2): Fix prototype.
13457
134582008-02-01 Kenichi Handa <handa@m17n.org>
13459
13460 * font.h (struct font_driver): Delete member parse_name.
13461 (font_match_p, font_get_spec, font_parse_fcname)
13462 (font_unparse_fcname): Extern them.
13463 (font_get_name): Adjust prototype.
13464
13465 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13466 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13467 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13468 unnecessary checks for weight, slant, and swidth.
13469 (font_parse_fcname): New function.
13470 (font_unparse_fcname): New function.
13471 (font_parse_name): New function.
13472 (font_match_p): New function.
13473 (font_get_name): Change return value to Lisp string.
13474 (font_get_spec): New function.
13475 (Qunspecified, Qignore_defface): Don't extern them.
13476 (font_find_for_lface): Assume that LFACE is fully specified.
13477 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13478 object, use it for FACE.
13479 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13480 driver->parse_name.
13481 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13482
13483 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13484 prototype.
13485
13486 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13487 argument F. Don't call Fnew_fontset. Instead, directly call
13488 make_fontset.
13489
13490 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13491
13492 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13493 of x_new_fontset2.
13494
13495 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13496 (Qsans__serif): New variables.
13497 (ftfont_generic_family_list): New variable.
13498 (syms_of_ftfont): Initialize the above variables.
13499 (ftfont_pattern_entity): Delete argument NAME.
13500 (ftfont_list_generic_family): New function.
13501 (ftfont_parse_name): Delete this function.
13502 (ftfont_list): Try generic family only when FcFontList found no font.
13503 (ftfont_list_family): Fix args to FcObjectSetBuild.
13504
13505 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13506 object in attrs[LFACE_FONT_INDEX].
13507 (set_lface_from_font_name): Cancel all changes for font-backend.
13508 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13509 function.
13510 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13511 font object in QCfont attribute.
13512 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13513 (realize_default_face) [USE_FONT_BACKEND]: Call
13514 set_lface_from_font_and_fontset.
13515
13516 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13517 "fixed", and signal error here if no suitable font was found.
13518
13519 * xfont.c (xfont_parse_name): Delete this function.
13520
13521 * xftfont.c (xftfont_open): Change coding style of error
13522 handling. Generate fontconfig's fontname pattern.
13523
13524 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13525 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13526
13527 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13528 Both args FONTSET and FONT_OBJECT must be existing ones.
13529
135302008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13531
13532 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13533
135342008-02-01 Kenichi Handa <handa@m17n.org>
13535
13536 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13537
13538 * font.h (struct font): Fix typo.
13539
13540 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13541 XLFD_XXX_INDEX.
13542 (enum xlfd_field_mask): New enum.
13543 (intern_font_field): Changed argument. Change caller. If digits
13544 are followed by non-digits, return a symbol.
13545 (font_expand_wildcards): New function.
13546 (font_parse_xlfd): Fix wildcard handling.
13547 (Ffont_spec): If :name is specified, reflect the info in the other
13548 properties.
13549
13550 * ftfont.c (ftfont_pattern_entity): Fix typo.
13551 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13552 locale.
13553
135542008-02-01 Kenichi Handa <handa@m17n.org>
13555
13556 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13557
13558 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13559 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13560 registry doesn't specify encoding part.
13561 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13562 (font_open_by_name): At first try parsing the name.
13563 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13564 as Lisp symbols.
13565
13566 * fontset.c (reorder_font_vector): Pay attention to the case that
13567 the 3rd element of font_def is nil.
13568 (fontset_font): For the default fontset, append one more fontset
13569 elements for a script-based font specification. Don't add script
13570 attribute on finding a font.
13571 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13572 font name.
13573 (fontset_ascii_font): If a font can't be opened, return nil.
13574
13575 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13576 (ftfont_pattern_entity): New function.
13577 (ftfont_get_cache): Assume that freetype_font_cache is already
13578 initialized.
13579 (ftfont_list): Handle the case that a file is specified in font
13580 name. Use ftfont_pattern_entity to generate entities.
13581 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13582 (syms_of_ftfont): Initialize freetype_font_cache.
13583
13584 * xftfont.c (xftfont_open): Make the font name fontconfig's
13585 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13586 (xftfont_close): Free font->font.name if not NULL.
13587
13588 * xfont.c (xfont_list): If script is specified for a font, return
13589 null_vector.
13590 (xfont_list_family): Declare argument type.
13591
13592 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13593 name, set LFACE_FONT (lface) to nil.
13594
13595 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13596 return Qnil.
13597
135982008-02-01 Kenichi Handa <handa@m17n.org>
13599
13600 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13601 (standard_args): Add "-enable-font-backend".
13602
136032008-02-01 Kenichi Handa <handa@m17n.org>
13604
13605 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13606 (struct xftdraw_list, xftdraw_list): Delete them.
13607 (register_xftdraw, check_xftdraw): Delete them.
13608 (xftfont_prepare_face): Don't call register_xftdraw.
13609 (xftfont_done_face): Don't call check_xftdraw.
13610 (xftfont_draw): Get background color only when with_background is
13611 nonzero.
13612
13613 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13614
136152008-02-01 Kenichi Handa <handa@m17n.org>
13616
13617 These changes are for the new font handling codes.
13618
13619 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13620 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13621 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13622 (FONTSRC, FONTOBJ): New variables.
13623 (obj): Add $(FONTOBJ).
13624 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13625 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13626 @LIBOTF_LIBS@.
13627 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13628 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13629
13630 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13631
13632 * character.h (Vscript_representative_chars): Extern it.
13633
13634 * character.c (Vscript_representative_chars): New variable.
13635 (syms_of_character): Declare it as a Lisp variable.
13636
13637 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13638 enable_font_backend is nonzero, accept the composition method
13639 COMPOSITION_WITH_GLYPH_STRING.
13640
13641 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13642 enumeration COMPOSITION_WITH_GLYPH_STRING.
13643
13644 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13645 members clip_x, clip_y, clip_width, and clip_height.
13646 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13647
13648 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13649 --enable-font-backend. Call syms_of_font.
13650
13651 * fns.c (assoc_no_quit): New function.
13652
13653 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13654 (face_for_font, new_fontset_from_font)
13655 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13656
13657 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13658 (fontset_font, fontset_ascii, face_for_char)
13659 (make_fontset_for_ascii_face, Ffont_info)
13660 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13661 is nonzero, use font-backend mechanism.
13662 (find_font_encoding): Make it non-static.
13663 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13664 New functions.
13665
13666 * frame.h (struct frame): New members resx and resy.
13667 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13668 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13669
13670 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13671 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13672
13673 * lisp.h (assoc_no_quit): Extern it.
13674
13675 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13676 Through out the file, use FONT_INFO_FROM_FACE instead of
13677 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13678 rif->per_char_metric.
13679 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13680 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13681 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13682 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13683 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13684 nonzero, use font-backend mechanism.
13685 (get_per_char_metric): New function.
13686
13687 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13688 (set_lface_from_font_name)
13689 (set_font_frame_param, free_realized_face)
13690 (prepare_face_for_display, clear_face_gcs)
13691 (Finternal_set_font_selection_order, realize_x_face)
13692 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13693 font-backend mechanism.
13694 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13695 (load_face_font) [USE_FONT_BACKEND]: Abort.
13696 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13697 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13698
13699 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13700 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13701 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13702 nonzero, register all available font drivers. Call
13703 x_default_font_parameter for deciding a font.
13704 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13705
13706 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13707 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13708 (x_set_glyph_string_clipping_exactly)
13709 (x_compute_glyph_string_overhangs)
13710 (x_draw_glyph_string_foreground)
13711 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13712 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13713 enable_font_backend is nonzero, use font-backend mechanism.
13714 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13715
137162008-02-01 Kenichi Handa <handa@m17n.org>
13717
13718 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13719 system_eol_type.
13720 (syms_of_coding): Initialize system_eol_type.
13721
13722 * process.c (Fset_process_coding_system): Inherit system's eol
13723 format if necessary.
13724
137252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13726
13727 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13728
137292008-02-01 Kenichi Handa <handa@m17n.org>
13730
13731 * coding.c (decode_eol): Pay attention to buffer relocation in
13732 del_range_2.
13733 (decode_coding): Call decode_eol before restoring undo_list.
13734
137352008-02-01 Kenichi Handa <handa@m17n.org>
13736
13737 * charset.c (Fdefine_charset_internal): Fix setting of
13738 emacs_mule_bytes.
13739
137402008-02-01 Kenichi Handa <handa@m17n.org>
13741
13742 * keyboard.c (read_char): Check if C is a character or not before
13743 looking up Vkeyboard_translate_table.
13744
137452008-02-01 Kenichi Handa <handa@m17n.org>
13746
13747 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13748 condition to terminate the loop.
13749
137502008-02-01 Kenichi Handa <handa@m17n.org>
13751
13752 * coding.c (produce_composition): Compare charbuf[i] instead of
13753 args[i] against 0.
13754 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13755
137562008-02-01 Kenichi Handa <handa@m17n.org>
13757
13758 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13759 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13760 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13761 detect_coding.
13762 (emacs_mule_char): Handle old style (Emacs 20) component character
13763 of a composition.
13764 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13765 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13766 composition rule.
13767 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13768
137692008-02-01 Kenichi Handa <handa@m17n.org>
13770
13771 * coding.c (encode_coding_ccl): Allocate destination dynamically
13772 when necessary.
13773
137742008-02-01 Kenichi Handa <handa@m17n.org>
13775
13776 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13777 the loop. When quitted, show a proper error message.
13778
137792008-02-01 Kenichi Handa <handa@m17n.org>
13780
13781 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13782 src->clip_head and src->clip_tail temporarily instead of src->hl.
13783
13784 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13785 character sequence.
13786 (Fccl_execute_on_string): Use ASET, not XSET.
13787
137882008-02-01 Kenichi Handa <handa@m17n.org>
13789
13790 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13791
137922008-02-01 Kenichi Handa <handa@m17n.org>
13793
13794 * coding.c (decode_coding): Fix the condition of terminating the
13795 decoding loop.
13796
137972008-02-01 Kenichi Handa <handa@m17n.org>
13798
13799 * data.c (Faset): On setting a character bigger than 255 in a
13800 unibyte string, signal an error instead of make the string multibyte.
13801
138022008-02-01 Kenichi Handa <handa@m17n.org>
13803
13804 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13805 made by a mapping table.
13806
138072008-02-01 Kenichi Handa <handa@m17n.org>
13808
13809 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13810 not.
13811 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13812 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13813
13814 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13815 s->face is NULL or not.
13816
138172008-02-01 Kenichi Handa <handa@m17n.org>
13818
13819 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13820 (x_draw_glyph_string): Fix drawing of right_overhang and
13821 left_overhang around/on cursor.
13822
13823 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13824
138252008-02-01 Kenichi Handa <handa@m17n.org>
13826
13827 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13828
138292008-02-01 Kenichi Handa <handa@m17n.org>
13830
13831 * coding.c (Fdefine_coding_system_internal)
13832 (Fdefine_coding_system_alias): Avoid a duplicated element in
13833 Vcoding_system_alist.
13834
138352008-02-01 Kenichi Handa <handa@m17n.org>
13836
13837 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13838
13839 * coding.c (Qcoding_system_define_form): New variable.
13840 (syms_of_coding): Intern and staticpro it.
13841 (Fcoding_system_p): Check Qcoding_system_define_form.
13842 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13843
13844 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13845 Fcoding_system_p.
13846 (CHECK_CODING_SYSTEM): If ID is not available, call
13847 Fcheck_coding_system.
13848 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13849 Try also Fcheck_coding_system.
13850
138512008-02-01 Kenichi Handa <handa@m17n.org>
13852
13853 * coding.c (code_conversion_restore): GCPRO arg.
13854
138552008-02-01 Kenichi Handa <handa@m17n.org>
13856
13857 * character.c (lisp_string_width): Check multibyteness of STRING.
13858
138592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13860
13861 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13862 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13863 (decode_mac_font_name): Use decode_coding_c_string instead of
13864 decode_coding.
13865 (x_load_font): Initialize fontp->fontset to -1. Set
13866 fontp->encoding_type.
13867
138682008-02-01 Kenichi Handa <handa@m17n.org>
13869
13870 * search.c (search_buffer): Give up BM search on case-fold-search
13871 if one of a target character has a case-equivalence of different
13872 byte length even if that target charcter is an ASCII.
13873 (simple_search): Fix calculation of byte length of matched text.
13874 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13875
138762008-02-01 Kenichi Handa <handa@m17n.org>
13877
13878 * coding.c (decode_coding): Fix handling of invalid bytes.
13879
138802008-02-01 Kenichi Handa <handa@m17n.org>
13881
13882 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13883 Unicode characters.
13884
138852008-02-01 Kenichi Handa <handa@m17n.org>
13886
13887 * coding.c (encode_coding_object): If a pre-write-conversion
13888 function makes a new buffer, kill it.
13889
138902008-02-01 Kenichi Handa <handa@m17n.org>
13891
13892 * coding.c (QCascii_compatible_p): New variable.
13893 (syms_of_coding): Initialize it.
13894 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13895 calling string_char.
13896 (record_conversion_result): Add `default:' case.
13897 (coding_charset_list): Delete unused variable `coding_type'.
13898 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13899 property in the plist of the coding system.
13900 (Fcoding_system_put): Check QCascii_compatible_p.
13901
139022008-02-01 Miles Bader <miles@gnu.org>
13903
13904 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13905 removed calculation of frame `f', as it's now used.
13906
139072008-02-01 Kenichi Handa <handa@m17n.org>
13908
13909 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13910 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13911 (UNIDATA): New variable.
13912 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13913 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13914 $(RUN_TEMACS) unconditionally.
13915
139162008-02-01 Kenichi Handa <handa@m17n.org>
13917
13918 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13919 (admindir): New variable.
13920 ($(lispsource)international/charprop.el): New target.
13921
139222008-02-01 Miles Bader <miles@gnu.org>
13923
13924 * character.c (chars-in-region): Remove obsolete function.
13925 (syms_of_character): Remove its initialization.
13926
139272008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
13928
13929 * w32select.c (validate_coding_system)
13930 (setup_windows_coding_system): New functions.
13931 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13932 setup_windows_coding_system.
13933 (setup_config, Fw32_get_clipboard_data): Use
13934 validate_coding_system.
13935 (Fx_selection_exists): Move call to setup_config to a place
13936 where signals are allowed.
13937
13938 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13939 (Fcheck_coding_system): Add declarations.
13940
139412008-02-01 Kenichi Handa <handa@m17n.org>
13942
13943 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13944
139452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13946
13947 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
13948 string as the second argument for x_new_fontset.
13949
139502008-02-01 Kenichi Handa <handa@m17n.org>
13951
13952 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
13953 (encode_coding_object): Use safe_call instead of call2.
13954
139552008-02-01 Kenichi Handa <handa@m17n.org>
13956
13957 * fontset.c (Fset_fontset_font): Check family element of a given vector.
13958
13959 * Makefile.in (lisp): Include charprop.el.
13960
139612008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13962
13963 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
13964 Not sure if it's unnecessary.
13965
139662008-02-01 Steven Tamm <steventamm@mac.com>
13967
13968 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
13969 some possibly unnecessary fontset checking code that crashed
13970 when creating a new frame.
13971
139722008-02-01 Kenichi Handa <handa@m17n.org>
13973
13974 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
13975 lookup_face.
13976
13977 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
13978
13979 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
13980
139812008-02-01 Kenichi Handa <handa@m17n.org>
13982
13983 * coding.c: Cancel the change done in HEAD on 2008-02-01.
13984 (coding_charset_list): New function.
13985
13986 * coding.h (coding_charset_list): Extern it.
13987
139882008-02-01 Kenichi Handa <handa@m17n.org>
13989
13990 * fontset.c (Fset_fontset_font): Call find_font_encoding with
13991 concatenation of family and registry.
13992
139932008-02-01 Kenichi Handa <handa@m17n.org>
13994
13995 * character.h (BYTE8_STRING): Fix typo.
13996
13997 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
13998 string to multibyte (sync to HEAD).
13999
14000 * casefiddle.c (casify_region): Handle changes in byte-length
14001 using replace_range_2 (sync to HEAD).
14002
140032008-02-01 Andreas Schwab <schwab@suse.de>
14004
14005 * chartab.c (map_char_table): GCPRO table and arg.
14006
140072008-02-01 Kenichi Handa <handa@m17n.org>
14008
14009 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14010 already at limit.
14011
140122008-02-01 Kenichi Handa <handa@m17n.org>
14013
14014 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14015 instead of fast_c_string_match_ignore_case.
14016 (find_font_encoding): Change argument to Lisp_Object. Use
14017 fast_string_match_ignore_case instead of
14018 fast_c_string_match_ignore_case. Change caller.
14019
140202008-02-01 Kenichi Handa <handa@m17n.org>
14021
14022 * xdisp.c (get_next_display_element): In unibyte case, decide to
14023 display in octal form by checking a character by
14024 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14025
14026 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14027
14028 * character.c (unibyte_has_multibyte_table): New variable.
14029
14030 * character.h (unibyte_has_multibyte_table): Extern it.
14031 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14032
140332008-02-01 Kenichi Handa <handa@m17n.org>
14034
14035 * coding.c (encode_coding_iso_2022): Fix handling of charset
14036 annotation.
14037
140382008-02-01 Kenichi Handa <handa@m17n.org>
14039
14040 * coding.c (setup_coding_system): If coding_system is nil, use
14041 Qundecided.
14042 (Fterminal_coding_system): Return nil if terminal coding system is
14043 `undecided'.
14044 (syms_of_coding): Define coding-system `undecided' here. Setup
14045 terminal_coding as `undecided'.
14046
140472008-02-01 Kenichi Handa <handa@m17n.org>
14048
14049 * xdisp.c (message_dolog, set_message_1): Call
14050 unibyte_char_to_multibyte with arg type int.
14051
14052 * lread.c (read1): Fix reading of a char-table.
14053
14054 * print.c (print_object): Include sub char-table in circularities
14055 detection.
14056
140572008-02-01 Kenichi Handa <handa@m17n.org>
14058
14059 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14060 Append the found sequences in car of ARGS instead of prepending.
14061
140622008-02-01 Kenichi Handa <handa@m17n.org>
14063
14064 * fileio.c (report_file_error): Make a unibyte string from
14065 strerror (errorno).
14066 (Fsubstitute_in_file_name): Fix the arg to
14067 unibyte_char_to_multibyte. It is evaluated twice.
14068
140692008-02-01 Kenichi Handa <handa@m17n.org>
14070
14071 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14072
140732008-02-01 Kenichi Handa <handa@m17n.org>
14074
14075 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14076 BOM is not found.
14077 (detect_coding, detect_coding_system): Optimization for ISO-2022
14078 when no 8-bit data is found.
14079
140802008-02-01 Jason Rumney <jasonr@gnu.org>
14081
14082 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14083
140842008-02-01 Kenichi Handa <handa@m17n.org>
14085
14086 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14087 CHARS.
14088
140892008-02-01 Steven Tamm <steventamm@mac.com>
14090
14091 * macterm.c (mac_encode_char): Add charset argument and update
14092 to use encoding_type.
14093 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14094 switch to pure fontset.
14095 (decode_mac_font_name): Temporarily remove decoding.
14096 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14097 (x_load_font): Temporarily remove encoding.
14098
140992008-02-01 Kenichi Handa <handa@m17n.org>
14100
14101 * xfaces.c (Fface_font): If frame is not on a window system,
14102 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14103 refer to face->font.
14104 (split_font_name_into_vector, build_font_name_from_vector)
14105 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14106 when HAVE_WINDOW_SYSTEM is defined.
14107
141082008-02-01 Kenichi Handa <handa@m17n.org>
14109
14110 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14111 (x_produce_glyphs): Fix setting of members of cmp in case
14112 cmp->glyph_len is zero.
14113
14114 * fontset.c (Fset_fontset_font): Fix docstring.
14115 (Ffontset_info): Make it backward compatible. New arg ALL.
14116
141172008-02-01 Kim F. Storm <storm@cua.dk>
14118
14119 * process.c (read_process_output): Grow decoding_buf when needed;
14120 this could cause a crash in allocate_string and compact_small_strings.
14121
141222008-02-01 Kenichi Handa <handa@m17n.org>
14123
14124 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14125
141262008-02-01 Kenichi Handa <handa@m17n.org>
14127
14128 * coding.c (setup_coding_system): Set coding->common_flags
14129 correctly for raw-text.
14130 (consume_chars): On encoding unibyte text by raw-text, don't check
14131 multibyte form.
14132 (encode_coding): On encoding by raw-text, never use translation tables.
14133
14134 * fileio.c (e_write): Short cut for the case of no encoding.
14135
141362008-02-01 Kenichi Handa <handa@m17n.org>
14137
14138 * coding.c (detect_coding, detect_coding_system): Delete unused
14139 variables.
14140
141412008-02-01 Kenichi Handa <handa@m17n.org>
14142
14143 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14144 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14145
141462008-02-01 Kenichi Handa <handa@m17n.org>
14147
14148 * coding.c (Ffind_coding_systems_region_internal): Include
14149 raw-text and no-conversion in the result.
14150
141512008-02-01 Kenichi Handa <handa@m17n.org>
14152
14153 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14154 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14155 FONT_DEF.
14156 (font_def_arg, add_arg, from_arg, to_arg): New args.
14157 (set_fontset_font): Change argument.
14158 (Fset_fontset_font): Fix for the case that TARGET is a script
14159 name and charset name.
14160 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14161
141622008-02-01 Kenichi Handa <handa@m17n.org>
14163
14164 * fontset.c (fontset_font): Rename from fontset_face. Change return
14165 value.
14166 (face_suitable_for_char_p, face_for_char): Adjust for the change
14167 of fontset_font.
14168 (make_fontset_for_ascii_face): Fix setting of the fontset element
14169 for ASCII.
14170 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14171 to get a font name.
14172 (Ffontset_info): Adjust for the change of fontset_font.
14173
14174 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14175
14176 * character.h (LEADING_CODE_LATIN_1_MIN)
14177 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14178
141792008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * editfns.c (check_translation): New function.
14182 (Ftranslate_region_internal): Handle M:N mapping.
14183
141842008-02-01 Kenichi Handa <handa@m17n.org>
14185
14186 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14187
141882008-02-01 Kenichi Handa <handa@m17n.org>
14189
14190 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14191 goto invalid_code.
14192 (decode_coding_iso_2022): Fix handling of invalid designation.
14193
14194 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14195 after calling code_conversion_save.
14196
141972008-02-01 Kenichi Handa <handa@m17n.org>
14198
14199 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14200
14201 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14202
14203 * fontset.c: Include "intervals.h".
14204 (fontset_face): Fix comparing of Lisp_Objects.
14205 (free_face_fontset, new_fontset_from_font_name): Fix
14206 Lisp_Object/int mixup.
14207
14208 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14209
14210 * coding.c: Add many prototypes for static functions.
14211 (get_translation_table): Allow max_lookup to be NULL.
14212 (decode_coding, Ffind_coding_systems_region_internal)
14213 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14214 get_translation_table with max_lookup NULL.
14215
142162008-02-01 Kenichi Handa <handa@m17n.org>
14217
14218 * coding.c (get_translation_table): Declare it as Lisp_Object.
14219 (LOOKUP_TRANSLATION_TABLE): New macro.
14220 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14221 instead of CHAR_TABLE_REF.
14222
142232008-02-01 Kenichi Handa <handa@m17n.org>
14224
14225 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14226 annotation data format.
14227 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14228 Change arguments FROM and TO to single argument NCHARS. Change caller.
14229 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14230 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14231 (decode_coding_ccl, decode_coding_charset): Pay attention to
14232 coding->charbuf_used.
14233 (get_translation): New function.
14234 (produce_chars): New arguments translation_table and last_block.
14235 Translate characters here. Return number of carryover chars.
14236 Change caller.
14237 (produce_composition): New argument pos. Change caller.
14238 Adjust for the change of annotation data format.
14239 (produce_charset, produce_annotation): Likewise.
14240 (decode_coding, encode_coding): Don't call translate_chars.
14241 (consume_chars): New arg translation_table. Change caller.
14242 (translate_chars): Delete.
14243 (syms_of_coding): Make translation-table's number of extra slots 2.
14244
142452008-02-01 Kenichi Handa <handa@m17n.org>
14246
14247 * search.c (simple_search): Fix setting this_pos_byte in backward
14248 search.
14249
14250 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14251 byte sequence.
14252 (detect_coding_ccl): Fix setting of the variable valids.
14253
142542008-02-01 Kenichi Handa <handa@m17n.org>
14255
14256 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14257
14258 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14259
14260 * editfns.c (Ftranslate_region_internal): Rename from
14261 Ftranslate_region. Accept a char-table in TABLE.
14262 (syms_of_editfns): Defsubr Stranslate_region_internal.
14263
14264 * xfaces.c (set_lface_from_font_name): If a font is specified for
14265 a frame, generate a fontset from the font.
14266 (build_scalable_font_name): If the scalable font is requested for
14267 a specific size, don't change that size.
14268 (try_font_list): Try a scalable font also in the case that a
14269 pattern string is specified.
14270
142712008-02-01 Kenichi Handa <handa@m17n.org>
14272
14273 * xfaces.c (Fface_font): New optional arg CHARACTER.
14274
142752008-02-01 Kenichi Handa <handa@m17n.org>
14276
14277 * charset.h (CHARSET_OFFSET): New macro.
14278
142792008-02-01 Kenichi Handa <handa@m17n.org>
14280
14281 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14282
14283 * fontset.c (fontset_face): Handle the case that repertory is a
14284 char-table.
14285 (find_font_encoding): Return nil for unknown encoding.
14286 (Fset_fontset_font): Ignore a font of unknown encoding.
14287
142882008-02-01 Kenichi Handa <handa@m17n.org>
14289
14290 * keymap.c (describe_vector): Handle default value of a char table.
14291
14292 * fontset.c (fontset_face): Handle fallback fonts correctly.
14293 (Ffontset_info): Return infomation about fallback fonts.
14294
142952008-02-01 Kenichi Handa <handa@m17n.org>
14296
14297 * fontset.c (FONTSET_DEFAULT): New macro.
14298 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14299 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14300 the case that it is nil.
14301 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14302 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14303
14304 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14305 subset or superset.
14306
143072008-02-01 Kenichi Handa <handa@m17n.org>
14308
14309 * emacs.c (main): Call init_charset after syms_of_XXX.
14310
14311 * charset.c (Vcharset_map_directory): Delete.
14312 (Vcharset_map_path): New variable.
14313 (load_charset_map_from_file): Use Vcharset_map_path instead.
14314 (init_charset): Initialize Vcharset_map_path.
14315 (syms_of_charset): Delete declaration of "charset-map-directory",
14316 add declaration of "charset-map-path".
14317
143182008-02-01 Kenichi Handa <handa@m17n.org>
14319
14320 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14321 ASCII only string.
14322
14323 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14324
14325 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14326 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14327
143282008-02-01 Kenichi Handa <handa@m17n.org>
14329
14330 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14331
14332 * coding.c (QCmnemonic, QCdefalut_char)
14333 (QCdecode_translation_table, QCencode_translation_table)
14334 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14335 (get_translation_table): Return a list of translation tables if
14336 necessary.
14337 (decode_coding): Call get_translation_table with ENCODEP 0.
14338 (char_encodable_p): If translation_table is non-nil, always call
14339 translate_char.
14340 (Fdefine_coding_system_internal): Accept list of translation
14341 tables as :encode-translation-table and :decode-translation-table.
14342 (Fcoding_system_put): New function.
14343 (syms_of_coding): Declare new symbols. Defsubr
14344 Scoding_system_put.
14345 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14346 typically JISX0212.
14347
14348 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14349 when the charset is superset type.
14350
14351 * character.c (translate_char): Accept list of translation tables.
14352
143532008-02-01 Kenichi Handa <handa@m17n.org>
14354
14355 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14356 (CODING_ATTR_TRANS_TBL): New macro.
14357
14358 * coding.c (get_translation_table): New function.
14359 (translate_chars): Fix the bug of skipping annotation data.
14360 (decode_coding, encode_coding): Utilize get_translation_table.
14361 (char_encodable_p, Funencodable_char_position): Translate char if
14362 necessary.
14363 (Ffind_coding_systems_region_internal)
14364 (Fcheck_coding_systems_region): Setup translation table for encode
14365 in a coding system attribute vector in advance.
14366 (Fdefine_coding_system_internal): Allow a symbol as translation
14367 table. For shift-jis type coding system, allow 4th charset.
14368
143692008-02-01 Kenichi Handa <handa@m17n.org>
14370
14371 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14372
14373 * xdisp.c (get_next_display_element): Pass -1 as POS to
14374 FACE_FOR_CHAR if displaying a C-string.
14375
143762008-02-01 Kenichi Handa <handa@m17n.org>
14377
14378 * composite.c (get_composition_id): Handle xoff and yoff in a
14379 composition rule.
14380
14381 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14382 (struct composition): New member lbearing and rbearing.
14383
14384 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14385 (x_get_glyph_overhangs): Handle a composition glyph.
14386 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14387
14388 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14389 composition glyph.
14390
143912008-02-01 Kenichi Handa <handa@m17n.org>
14392
14393 * print.c: Include charset.h.
14394 (Vprint_charset_text_property): New variable.
14395 (Qdefault): Extern it.
14396 (PRINT_STRING_NON_CHARSET_FOUND)
14397 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14398 (print_check_string_result): New variable.
14399 (print_check_string_charset_prop): New function.
14400 (print_prune_charset_plist): New variable.
14401 (print_prune_string_charset): New function.
14402 (print_object): Call print_prune_string_charset if
14403 Vprint_charset_text_property is not t.
14404 (print_interval): Print nothing if interval->plist is nil.
14405 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14406 variable. Init and staticpro print_prune_charset_plist.
14407
144082008-02-01 Kenichi Handa <handa@m17n.org>
14409
14410 * fontset.c (new_fontset_from_font_name): Use the specified font
14411 for all characters in the new fontset.
14412
14413 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14414 OBJECT args.
14415
14416 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14417 OBJECT args for composition too.
14418
14419 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14420 OBJECT args.
14421
144222008-02-01 Kenichi Handa <handa@m17n.org>
14423
14424 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14425
14426 * fontset.c (reorder_font_vector): Adjust for the change of
14427 FONT_DEF format.
14428 (fontset_face): New arg id. Change caller.
14429 (face_for_char): New args pos and object.
14430 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14431 (fs_query_fontset): Check NAME by Fassoc too.
14432 (Fset_fontset_font): Allow non-XLFD font name.
14433 (Ffontset_info): Adjust for the change of FONT_DEF format.
14434
14435 * fontset.h (face_for_char): Adjust prototype.
14436
14437 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14438 (append_space, extend_face_to_end_of_line)
14439 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14440 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14441
14442 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14443 POS and OBJECT args.
14444
14445 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14446 POS and OBJECT args.
14447
144482008-02-01 Jason Rumney <jasonr@gnu.org>
14449
14450 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14451 of GlobalAlloc'ed memory.
14452
144532008-02-01 Kenichi Handa <handa@m17n.org>
14454
14455 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14456
14457 * charset.h (charset_table_used): Delete extern.
14458
14459 * charset.c (charset_table_used): Make it static.
14460 (map_charset_chars): Fix args to c_function with.
14461
14462 * chartab.c (map_sub_char_table_for_charset): Fix args to
14463 c_function with.
14464
14465 * coding.h (enum coding_result_code): Delete
14466 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14467
14468 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14469 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14470 (Vlast_code_conversion_error): New variables.
14471 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14472 (ONE_MORE_BYTE): Record error if any instead of signaling an
14473 error. If non-ASCII multibyte char is found, return the negative
14474 value of the code. All callers changed to check it.
14475 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14476 (record_conversion_result): New function. Change all codes setting
14477 coding->result to call this function.
14478 (detect_coding_utf_8, decode_coding_utf_8)
14479 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14480 Don't use the local variable incomplete.
14481 (emacs_mule_char): Change the second arg to `const'.
14482 (decode_coding): Fix of flushing out unprocessed data.
14483 (make_conversion_work_buffer): Fix making of a work buffer.
14484 (decode_coding_object): Return coding->dst_object.
14485
14486 * fontset.c (set_fontset_font): Fix args.
14487
14488 * lisp.h (CHARACTERBITS): Define as 22.
14489
14490 * process.c (send_process): Be sure to set coding->src_multibyte.
14491
14492 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14493
144942008-02-01 Kenichi Handa <handa@m17n.org>
14495
14496 * xdisp.c (handle_auto_composed_prop): Give limit to
14497 Fnext_single_char_property_change.
14498
144992008-02-01 Kenichi Handa <handa@m17n.org>
14500
14501 * composite.c (syms_of_composite): Don't make the composition hash
14502 table weak.
14503
14504 * fontset.c (Fset_fontset_font): Fix docstring.
14505
14506 * lisp.h (detect_coding_system): Adjust prototype.
14507
14508 * fileio.c (kill_workbuf_unwind): Delete this function.
14509 (Finsert_file_contents): Adjust the call of detect_coding_system.
14510 Get conversion_buffer by code_conversion_save. Use the macro
14511 CODING_MAY_REQUIRE_DECODING. After decoding, update
14512 coding_system.
14513
14514 * coding.h (make_conversion_work_buffer): Delete extern.
14515 (code_conversion_save): Extern it.
14516
14517 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14518 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14519 (decode_coding_utf_8): Don't do eol converion.
14520 (detect_coding_utf_16): Check coding->src_chars, not
14521 coding->src_bytes. Add heuristics for those that have no signature.
14522 (decode_coding_emacs_mule, decode_coding_iso_2022)
14523 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14524 Don't do eol converion.
14525 (adjust_coding_eol_type): Return a new coding system.
14526 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14527 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14528 each change.
14529 (decode_coding): Pay attention to undo_list. Do eol conversion for
14530 all types of coding-systems (if necessary).
14531 (Vcode_conversion_work_buf_list): Delete it.
14532 (Vcode_conversion_reused_workbuf): Rename from
14533 Vcode_conversion_reused_work_buf.
14534 (Vcode_conversion_workbuf_name): New variable.
14535 (reused_workbuf_in_use): New variable.
14536 (make_conversion_work_buffer): Delete the arg DEPTH.
14537 (code_conversion_restore): Change argument to cons.
14538 (code_conversion_save): Delete the argument BUFFER. Change callers.
14539 (detect_coding_system): New argument src_chars. Change callers.
14540 Fix for utf-16 detection.
14541 (init_coding_once): Don't use ISO_carriage_return.
14542 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14543 reused_workbuf_in_use.
14544
145452008-02-01 Kenichi Handa <handa@m17n.org>
14546
14547 * keymap.c (store_in_keymap): Pay attention to the case that idx
14548 is a cons specifying a character range.
14549
145502008-02-01 Kenichi Handa <handa@m17n.org>
14551
14552 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14553 HANDLED_RECOMPUTE_PROPS.
14554
14555 * coding.c (Fdefine_coding_system_internal): Fix checking of
14556 ascii compatibility.
14557
145582008-02-01 Kenichi Handa <handa@m17n.org>
14559
14560 * charset.c (find_charsets_in_text): Delete unused locale variable.
14561 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14562
14563 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14564 Resync charset_list to Vemacs_mule_charset_list.
14565
14566 * keymap.c (store_in_keymap): Pay attention to the case that idx
14567 is a cons specifying a character range.
14568
145692008-02-01 Kenichi Handa <handa@m17n.org>
14570
14571 * composite.c (update_compositions): Bind inhibit-read-only, etc
14572 to t before calling remove-list-of-text-properties.
14573
14574 * print.c (print_object): Always print ASCII chars as is.
14575
145762008-02-01 Kenichi Handa <handa@m17n.org>
14577
14578 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14579
14580 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14581 is a char table.
14582
145832008-02-01 Kenichi Handa <handa@m17n.org>
14584
14585 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14586
145872008-02-01 Kenichi Handa <handa@m17n.org>
14588
14589 * xfaces.c (set_lface_from_font_name): Fix for the case that
14590 FONTNAME is not fontset name.
14591
145922008-02-01 Kenichi Handa <handa@m17n.org>
14593
14594 * fns.c (base64_encode_1): Fix previous change.
14595
145962008-02-01 Kenichi Handa <handa@m17n.org>
14597
14598 * fontset.c (set_fontset_font): New function.
14599 (Fset_fontset_font): If a font is specified for a charset, use
14600 map_charset_chars to store the font spec in a fontset.
14601
146022008-02-01 Kenichi Handa <handa@m17n.org>
14603
14604 * fontset.c (fontset_face): Create a fallback fontset on demand.
14605 (make_fontset): Don't create a fallback fontset here.
14606 (free_face_fontset): Free a fallback fontset (if any) too.
14607 (n_auto_fontsets): Delete this variable.
14608 (auto_fontset_alist): New variable.
14609 (new_fontset_from_font_name): Check auto_fontset_alist.
14610 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14611 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14612 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14613 Defsubr Sfontset_list_all.
14614
146152008-02-01 Kenichi Handa <handa@m17n.org>
14616
14617 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14618
146192008-02-01 Kenichi Handa <handa@m17n.org>
14620
14621 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14622
146232008-02-01 Kenichi Handa <handa@m17n.org>
14624
14625 * editfns.c (Fgoto_char): Fix docstring.
14626
146272008-02-01 Kenichi Handa <handa@m17n.org>
14628
14629 * insdel.c (insert_from_gap): Adjust intervals correctly.
14630
146312008-02-01 Jason Rumney <jasonr@gnu.org>
14632
14633 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14634 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14635 (w32_initialize): Try to load it.
14636 (x_get_font_repertory): Use it if available.
14637 (w32_encode_char): Add shortcut for unicode output.
14638
14639 * w32fns.c (w32_load_system_font): Default charset to -1.
14640 (x_to_w32_charset): Match all fonts for unicode.
14641 (w32_to_x_charset): New parameter matching. Don't return partial
14642 or wildcard charsets.
14643 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14644 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14645 (w32_to_x_font): Match charset to real charset.
14646 (enum_font_cb2): Always list unicode versions.
14647
14648 * makefile.w32-in (temacs): Increase EMHEAP.
14649
146502008-02-01 Jason Rumney <jasonr@gnu.org>
14651
14652 * w32term.c (w32_encode_char): New charset parameter.
14653 font_info.encoding becomes encoding_type.
14654 (x_get_font_repertory): New function. Warning: stub only!
14655 (x_new_font): Return quickly if font already set.
14656 (x_new_fontset): fontsetname parameter is Lisp_Object.
14657 Use new fs_query_fontset. Try new_fontset_from_font_name.
14658 Use fontset_name for return value.
14659
14660 * w32term.h: Declare x_get_font_repertory.
14661
14662 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14663 place of find_charset_in_text. Use encode_coding_object in place
14664 of encode_coding.
14665 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14666 decode_coding.
14667
14668 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14669 of x_new_fontset.
14670 (w32_load_system_font): Initialize charset as unicode.
14671 font_info.encoding becomes encoding_type.
14672 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14673 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14674 (syms_of_w32fns): Set get_font_repertory_func.
14675
14676 * w32console.c: Include character.h. Use terminal_encode_buffer
14677 from term.c.
14678 (write_glyphs): Use new version of encode_terminal_code. Use
14679 encode_coding_object in place of encode_coding.
14680
14681 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14682 encoding becomes encoding_type.
14683
14684 * term.c (terminal_encode_buffer): Make externally visible.
14685
14686 * makefile.w32-in: Add character.h dependancies.
14687 (character.o, chartab.o): New targets.
14688
146892008-02-01 Kenichi Handa <handa@m17n.org>
14690
14691 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14692 CODING_ID_EOL_TYPE.
14693
146942008-02-01 Andreas Schwab <schwab@suse.de>
14695
14696 * coding.c (produce_chars): Revert last change.
14697
146982008-02-01 Kenichi Handa <handa@m17n.org>
14699
14700 * charset.h (charset_unicode): Extern it.
14701
14702 * charset.c (string_xstring_p): Check by (C >= 0x100).
14703 (find_charsets_in_text): Change format of the arc CHARSETS. New
14704 arg MULTIBYTE.
14705 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14706 change of find_charsets_in_text.
14707 (Fsplit_char): Fix doc. Never return unknown.
14708
14709 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14710
14711 * coding.c (Fdefine_coding_system_alias): Update
14712 Vcoding_system_list.
14713
14714 * fontset.c (load_font_get_repertory): Pay attention to the case
14715 that ENCODING of a font is specified by a char-table.
14716
14717 * xterm.c (x_get_font_repertory): Handle the case that the
14718 encoding of font is other than Unicode.
14719
147202008-02-01 Kenichi Handa <handa@m17n.org>
14721
14722 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14723 if a character is encodable by the terminal coding system. If
14724 not, produces proper number of `?'s. Update
14725 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14726 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14727
147282008-02-01 Kenichi Handa <handa@m17n.org>
14729
14730 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14731 variables.
14732 (encode_terminal_code): Change argument. Encode multiple
14733 characters at once. Store the result of encoding in
14734 terminal_encode_buffer.
14735 (write_glyphs, insert_glyphs): Adjust for the change of
14736 encode_terminal_code.
14737 (term_init): Initialize terminal_encode_buffer and
14738 terminal_encode_buf_size.
14739
14740 * coding.c (consume_chars): If coding->src_object is nil, don't
14741 check annotation.
14742
147432008-02-01 Kenichi Handa <handa@m17n.org>
14744
14745 * character.c (char_string): Use ASCII_CHAR_P instead of
14746 SINGLE_BYTE_CHAR_P.
14747
147482008-02-01 Kenichi Handa <handa@m17n.org>
14749
14750 * xdisp.c (handle_auto_composed_prop): Check if the last
14751 characters of auto-composed region is newly composed with the
14752 following characters.
14753 (handle_composition_prop): Fix checking of point being inside
14754 composition.
14755
147562008-02-01 Kenichi Handa <handa@m17n.org>
14757
14758 * fns.c (concat): Don't change multibyteness of the result by
14759 concatenating an 8-bit character.
14760
14761 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14762 multibyteness of the result when newelt is an 8-bit character.
14763
147642008-02-01 Dave Love <fx@gnu.org>
14765
14766 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14767 EMACS_INT.
14768
14769 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14770
14771 * xfaces.c (face_numeric_value): Declare dim size_t.
14772 (Finternal_lisp_face_equal_p): Remove unused f.
14773
14774 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14775 (MATRIX_ROW): Remove unused vars.
14776 (draw_glyphs, x_insert_glyphs, fast_find_position)
14777 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14778 byte/char counts.
14779
14780 * regex.c (regex_compile): Remove unused var.
14781
14782 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14783
14784 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14785 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14786
14787 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14788
14789 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14790
14791 * fileio.c (Fwrite_region): Remove unused var.
14792
14793 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14794 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14795
14796 * composite.c (Fremove_list_of_text_properties): Declare.
14797
14798 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14799 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14800 (coding_inherit_eol_type): Remove unused attrs.
14801 (detect_coding): Cast arg of detect_eol.
14802
14803 * charset.c (syms_of_charset): Remove unused var p.
14804 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14805 byte/char counts.
14806
14807 * casetab.c (set_case_table): Remove unused var.
14808
14809 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14810 unused vars.
14811
148122008-02-01 Dave Love <fx@gnu.org>
14813
14814 * xterm.c (x_bitmap_mask): Declare.
14815
148162008-02-01 Dave Love <fx@gnu.org>
14817
14818 * xterm.c (x_term_init): Fix type error.
14819
14820 * lisp.h: Add Funibyte_char_to_multibyte.
14821
14822 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14823 (Fset_coding_system_priority): Doc fix.
14824
14825 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14826
14827 * indent.c (check_composition): Make start and end EMACS_INT.
14828
14829 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14830
14831 * xdisp.c (handle_composition_prop, check_point_in_composition):
14832 Make buffer positions EMACS_INT.
14833
14834 * composite.c (find_composition, run_composition_function)
14835 (update_compositions, Ffind_composition_internal): Make buffer
14836 positions EMACS_INT.
14837
14838 * composite.h (find_composition, update_compositions): Make
14839 position args EMACS_INT.
14840
14841 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14842
14843 * intervals.c (get_property_and_range):
14844 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14845
14846 * unexalpha.c: Don't include varargs.h.
14847
148482008-02-01 Dave Love <fx@gnu.org>
14849
14850 * coding.h (ENCODE_UTF_8): New.
14851
14852 * Makefile.in (gtkutil.o): Depend on coding.h.
14853
14854 * coding.c (Fset_coding_system_priority): Doc fix.
14855
148562008-02-01 Kenichi Handa <handa@m17n.org>
14857
14858 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14859 the case of auto saving.
14860
148612008-02-01 Andreas Schwab <schwab@suse.de>
14862
14863 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14864 `range' from GC.
14865
148662008-02-01 Kenichi Handa <handa@m17n.org>
14867
14868 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14869
148702008-02-01 Kenichi Handa <handa@m17n.org>
14871
14872 * fileio.c (choose_write_coding_system): Return a decided coding system.
14873 (Fwrite_region): Set Vlast_coding_system_used to the return value
14874 of choose_write_coding_system.
14875
148762008-02-01 Kenichi Handa <handa@m17n.org>
14877
14878 * charset.c (Fset_charset_priority): Pay attention to duplicated
14879 arguments.
14880
14881 * coding.c (QCcategory): New variable.
14882 (syms_of_coding): Defsym it. Set all elements of
14883 Vcoding_category_table and their symbol values.
14884 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14885 coding-category-XXX, and coding-category-list.
14886 (Fdefine_coding_system_internal): Add category in the plist.
14887
148882008-02-01 Kenichi Handa <handa@m17n.org>
14889
14890 * callproc.c (Fcall_process): Handle carryover correctly.
14891
14892 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14893 (raw_text_coding_system): Check NILP (coding_system).
14894 (coding_inherit_eol_type): Check NILP (coding_system) and
14895 NILP (parent).
14896 (consume_chars): Fix for the case of raw-text.
14897
14898 * process.c (read_process_output): Handle carryover correctly.
14899
149002008-02-01 Dave Love <fx@gnu.org>
14901
14902 * regex.c (re_search_2): Fix last change.
14903
149042008-02-01 Kenichi Handa <handa@m17n.org>
14905
14906 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14907 target_multibyte. Even in a unibyte case, return a converted
14908 multibyte char.
14909 (GET_CHAR_AFTER): New macro.
14910 (PATFETCH): Translate via multibyte char.
14911 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14912 (SETUP_MULTIBYTE_RANGE): New macro.
14913 (regex_compile): Setup compiled code so that its multibyteness
14914 matches that of a target. Fix the handling of "[X-YZ]" using
14915 SETUP_MULTIBYTE_RANGE.
14916 (analyse_first) <charset>: For filling fastmap for all multibyte
14917 characters, don't check by BASE_LEADING_CODE_P.
14918 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
14919 the same as RE_MULTIBYTE_P (bufp) now.
14920 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14921 (TARGET_CHAR_AND_LENGTH): Delete this macro.
14922 (TRANSLATE_VIA_MULTIBYTE): New macro.
14923 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14924 It is the same as RE_MULTIBYTE_P (bufp) now.
14925 <exactn>: Translate via multibyte.
14926 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
14927 translate it.
14928 <charset, charset_not>: Fetch a character by
14929 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
14930 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14931 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14932 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14933 by GET_CHAR_AFTER.
14934 (bcmp_translate): Likewise.
14935
14936 * search.c (compile_pattern): Check the member target_multibyte,
14937 not the member multibyte of buf.
14938
14939 * lread.c (read1): While reading a string, set force_singlebyte
14940 and force_multibyte correctly.
14941
14942 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14943 up of unibyte_to_multibyte_table.
14944
149452008-02-01 Kenichi Handa <handa@m17n.org>
14946
14947 * coding.c (setup_coding_system): If coding has
14948 post-read-conversion or pre-write-conversion, set
14949 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
14950 respectively.
14951 (decode_coding_gap): Run post-read-conversion if any.
14952
14953 * fileio.c (Finsert_file_contents): Even if we read into a
14954 unibyte buffer, check if we must decode the result or not.
14955
149562008-02-01 Kenichi Handa <handa@m17n.org>
14957
14958 * coding.c (make_conversion_work_buffer): Change the work buffer
14959 name to the same one as that of Emacs 21.
14960
149612008-02-01 Kenichi Handa <handa@m17n.org>
14962
14963 * coding.h (make_conversion_work_buffer): Adjust prototype.
14964 (code_conversion_restore): Don't extern it.
14965
14966 * coding.c (detected_mask): Delete unused variable.
14967 (decode_coding_iso_2022): Pay attention to the byte sequence of
14968 CTEXT extended segment, and retain those bytes as is.
14969 (decode_coding_ccl): Delete unused variable `valids'.
14970 (setup_coding_system): Delete unused variable `category'.
14971 (consume_chars): Delete unused variable `category'. Make it work
14972 for non-multibyte case.
14973 (make_conversion_work_buffer): Change argument.
14974 (saved_coding): Delete unused variable.
14975 (code_conversion_restore): Don't check saved_coding->destination.
14976 (code_conversion_save): New function.
14977 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
14978 instead of record_unwind_protect.
14979 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
14980 (detect_coding_system): Delete unused variable `mask'.
14981 (Fdefine_coding_system_internal): Delete unused variable id.
14982
14983 * fileio.c (kill_workbuf_unwind): New function.
14984 (Finsert_file_contents): On replacing, call
14985 make_conversion_work_buffer with correct args, and call
14986 record_unwind_protect with the first arg kill_workbuf_unwind.
14987
14988 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
14989
149902008-02-01 Kenichi Handa <handa@m17n.org>
14991
14992 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
14993 (fontset_add): Fix for the case that TO is less than TO1.
14994 (Ffontset_info): Don't use fallback fontset on checking the
14995 default fontset.
14996 (dump_fontset): New function for debugging.
14997
14998 * coding.c (Fdefine_coding_system_internal): Fix for the case that
14999 coding_type is Qcharset.
15000
150012008-02-01 Kenichi Handa <handa@m17n.org>
15002
15003 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15004 (map_char_table): Don't inherit the value from the parent on
15005 initializing VAL. Adjust for the above change.
15006
150072008-02-01 Kenichi Handa <handa@m17n.org>
15008
15009 * coding.c (Qsignature, Qendian): Delete these variables.
15010 (syms_of_coding): Don't initialize them.
15011 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15012 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15013 detect_info->found.
15014 (decode_coding_utf_16): Don't detect BOM here.
15015 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15016 is NOT utf_16_without_bom.
15017 (setup_coding_system): For a coding system of type utf-16, check
15018 if the attribute :endian is Qbig or not (not nil or not), and set
15019 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15020 (detect_coding): If coding type is utf-16 and BOM detection is
15021 required, detect it.
15022 (Fdefine_coding_system_internal): For a coding system of type
15023 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15024
150252008-02-01 Kenichi Handa <handa@m17n.org>
15026
15027 * coding.c (coding_set_source): Fix for the case that the current
15028 buffer is different from coding->src_object.
15029 (decode_coding_object): Don't use the conversion work buffer if
15030 DST_OBJECT is a buffer.
15031
150322008-02-01 Dave Love <fx@gnu.org>
15033
15034 * lread.c (read_emacs_mule_char) [len==2]: Index
15035 emacs_mule_charset correctly.
15036
150372008-02-01 Dave Love <fx@gnu.org>
15038
15039 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15040 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15041 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15042 treated specially.)
15043 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15044 (detected_mask): Remove Big5 bits.
15045
150462008-02-01 Kenichi Handa <handa@m17n.org>
15047
15048 The following changes are to make the font rescaling facility
15049 compatible with Emacs 21.
15050
15051 * xfaces.c (Vface_font_rescale_alist): Rename from
15052 Vface_resizing_fonts.
15053 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15054 (font_rescale_ratio): Rename from font_resizing_ratio.
15055 (split_font_name): Set font->rescale_ratio.
15056 (better_font_p): Pay attention to font->rescale_ratio.
15057 (build_scalable_font_name): Likewise. Change RESX, and RESY
15058 fields.
15059 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15060
150612008-02-01 Kenichi Handa <handa@m17n.org>
15062
15063 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15064 (Qutf_16_le): Remove these variables.
15065 (syms_of_coding): Don't DEFSYM them.
15066 (decode_coding_utf_16): Fix handling of BOM.
15067 (encode_coding_utf_16): Fix handling of BOM.
15068
150692008-02-01 Kenichi Handa <handa@m17n.org>
15070
15071 * fileio.c (Finsert_file_contents): On replacing, before decoding
15072 the file into the work buffer, set point of the work buffer to the end.
15073
150742008-02-01 Dave Love <fx@gnu.org>
15075
15076 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15077
150782008-02-01 Dave Love <fx@gnu.org>
15079
15080 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15081 and fix C types.
15082
150832008-02-01 Kenichi Handa <handa@m17n.org>
15084
15085 * xdisp.c (SKIP_GLYPHS): New macro.
15086 (set_cursor_from_row): Pay attention to string display properties.
15087
15088 * category.c (copy_category_entry): Fix for the case that RANGE
15089 is an integer.
15090
15091 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15092
15093 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15094
150952008-02-01 Kenichi Handa <handa@m17n.org>
15096
15097 * charset.c (Fcharset_id_internal): New function.
15098 (syms_of_charset): Defsubr it.
15099
15100 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15101 with the last arg charset_list acquired from coding.
15102 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15103 the attribute coding_attr_ccl_valids.
15104
15105 * coding.h (enum define_coding_ccl_arg_index): Set the first
15106 member coding_arg_ccl_decoder to coding_arg_max.
15107
15108 * ccl.h (ccl_driver): Adjust prototype.
15109
15110 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15111 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15112 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15113 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15114 last arg Qnil.
15115
151162008-02-01 Kenichi Handa <handa@m17n.org>
15117
15118 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15119 call encode_char.
15120
15121 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15122
151232008-02-01 Dave Love <fx@gnu.org>
15124
15125 * composite.c (syms_of_composite): Make composition_hash_table weak.
15126
151272008-02-01 Kenichi Handa <handa@m17n.org>
15128
15129 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15130 (font_name_registry): Don't extern them.
15131 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15132
15133 * fontset.h (Qfontset): Don't extern it.
15134 (new_fontset_from_font_name): Extern it.
15135
15136 * fontset.c: Give 8 extra slots to fontset objects.
15137 (Qfontset_info): New variable.
15138 (syms_of_fontset): Defsym it.
15139 (FONTSET_FALLBACK): New macro.
15140 (fontset_face): Try also the default fontset.
15141 (make_fontset): Realize a fallback fontset from the default fontset.
15142 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15143 using split_font_name_into_vector and build_font_name_from_vector.
15144 (Fset_fontset_font): Access the elements of font_spec by enum
15145 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15146 name by using split_font_name_into_vector.
15147 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15148 generate a proper font name from the fontset name. Update
15149 Vfontset_alias_alist.
15150 (n_auto_fontsets): New variable.
15151 (new_fontset_from_font_name): New function.
15152 (Ffont_info): Store the information about fonts generated from the
15153 default fontset in the first extra slot of the returned char-table.
15154
15155 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15156 (font_name_registry): Delete function.
15157 (split_font_name_into_vector): New function.
15158 (build_font_name_from_vector): New function.
15159 (font_list): The argument REGISTRY is now a list of registry names.
15160 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15161 specifies an explicit font name, return the name as is. Make a
15162 list of registy names.
15163
15164 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15165 of x_new_fontset.
15166 (Fx_create_frame): Don't call x_new_fontset here. Just use
15167 x_list_fonts to check the existence of fonts.
15168
15169 * xterm.h (x_new_fontset): Adjust prototype.
15170
15171 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15172 string. Use new_fontset_from_font_name to create a fontset from a
15173 font name.
15174
151752008-02-01 Kenichi Handa <handa@m17n.org>
15176
15177 * syntax.c (Vfind_word_boundary_function_table): New name for
15178 Vnext_word_boundary_function_table.
15179 (find-word-boundary-function-table): New name for
15180 next-word-boundary-function-table.
15181
151822008-02-01 Dave Love <fx@gnu.org>
15183
15184 * Makefile.in: Fix some dependencies.
15185
15186 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15187 set it to nil before returning.
15188
15189 * composite.c (update_compositions): Fix type error.
15190
15191 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15192
151932008-02-01 Kenichi Handa <handa@m17n.org>
15194
15195 * xterm.c (x_new_font): Optimize for the case that the font is
15196 already set for the frame.
15197
151982008-02-01 Kenichi Handa <handa@m17n.org>
15199
15200 * chartab.c (char_table_ascii): Check if the char table contents
15201 is sub-char-table or not.
15202 (char_table_set, char_table_set_range): Fix argument to
15203 char_table_ascii.
15204
15205 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15206 (detect_coding_utf_8, detect_coding_utf_16)
15207 (detect_coding_emacs_mule, detect_coding_iso_2022)
15208 (detect_coding_sjis, detect_coding_big5)
15209 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15210 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15211 sequence is valid in this coding system. Change callers.
15212 (MAX_ANNOTATION_LENGTH): New macro.
15213 (ADD_ANNOTATION_DATA): New macro.
15214 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15215 ADD_ANNOTATION_DATA. Change the format of annotation data.
15216 (ADD_CHARSET_DATA): New macro.
15217 (emacs_mule_char): New argument ID. Change callers.
15218 (decode_coding_emacs_mule, decode_coding_iso_2022)
15219 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15220 Produce charset annotation data in coding->charbuf.
15221 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15222 to charset annotation data in coding->charbuf.
15223 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15224 coding->common_flags if the coding system is iso-2022 based and
15225 uses designation.
15226 (produce_composition): Adjust for the new annotation data format.
15227 (produce_charset): New function.
15228 (produce_annotation): Handle charset annotation.
15229 (handle_composition_annotation, handle_charset_annotation): New
15230 functions.
15231 (consume_chars): Handle charset annotation. Utilize the above two
15232 functions.
15233 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15234 buffer, get the deleted text as a string and set
15235 coding->src_object to that string.
15236 (detect_coding, detect_coding_system): Use the new struct
15237 coding_detection_info.
15238
15239 * coding.h (struct coding_detection_info): New structure.
15240 (struct coding_system): Adjust prototype of the member `detector'.
15241 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15242
152432008-02-01 Kenichi Handa <handa@m17n.org>
15244
15245 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15246
152472008-02-01 Dave Love <fx@gnu.org>
15248
15249 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15250 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15251 to new local and nullify apropos_accumulate before returning.
15252 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15253
152542008-02-01 Kenichi Handa <handa@m17n.org>
15255
15256 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15257 correctly.
e3eea1fc 15258
aac0c6e3
MR
152592008-02-01 Dave Love <fx@gnu.org>
15260
15261 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15262
152632008-02-01 Kenichi Handa <handa@m17n.org>
15264
15265 The following changes are to make character composition happen
15266 automatically on displaying.
15267
15268 * Makefile.in (lisp, shortlisp): Add composite.elc.
15269
15270 * composite.h (Qauto_composed, Vauto_composition_function)
15271 (Qauto_composition_function): Extern them.
15272
15273 * composite.c (Vcomposition_function_table)
15274 (Qcomposition_function_table): Delete variables.
15275 (Qauto_composed, Vauto_composition_function)
15276 (Qauto_composition_function): New variables.
15277 (run_composition_function): Don't call
15278 compose-chars-after-function.
15279 (update_compositions): Clear `auto-composed' text property.
15280 (compose_chars_in_text): Delete this function.
15281 (syms_of_composite): Staticpro Qauto_composed and
15282 Qauto_composition_function. Declare Vauto_composition_function as
15283 a Lisp variable.
15284
15285 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15286
15287 * xdisp.c (it_props): Add an entry for Qauto_composed.
15288 (handle_auto_composed_prop): New function.
15289
15290 * xselect.c (selection_data_to_lisp_data): Don't call
15291 compose_chars_in_text.
15292
152932008-02-01 Dave Love <fx@gnu.org>
15294
15295 * keyboard.c (read_char): Modify checking around use of
15296 Vkeyboard_translate_table.
15297
15298 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15299 and fix C types.
15300
153012008-02-01 Kenichi Handa <handa@m17n.org>
15302
15303 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15304 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15305 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15306 the case that the last byte is '\r' correctly.
15307 (decode_coding): Flush out the unprocessed data correctly.
15308 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15309
153102008-02-01 Dave Love <fx@gnu.org>
15311
15312 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15313 Add XK_ISO... case.
15314 (xaw_scroll_callback): Revert last change.
15315
153162008-02-01 Kenichi Handa <handa@m17n.org>
15317
15318 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15319
153202008-02-01 Kenichi Handa <handa@m17n.org>
15321
15322 * xfaces.c (Vface_resizing_fonts): New variable.
15323 (struct font_name): New member `resizing_ratio'.
15324 (font_resizing_ratio): New function.
15325 (split_font_name): Set font->resizing_ratio.
15326 (better_font_p): Pay attention to font->resizing_ratio.
15327 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15328 RESX, and RESY fields.
15329 (try_alternative_families): Try scalable fonts if
15330 Vscalable_fonts_allowed is not Qt.
15331 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15332
153332008-02-01 Dave Love <fx@gnu.org>
15334
15335 * xterm.c (xaw_scroll_callback): Cast correctly.
15336
153372008-02-01 Dave Love <fx@gnu.org>
15338
15339 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15340 (lispy_kana_keys): Comment out.
15341 (make_lispy_event) [XK_kana_A]: Comment out.
15342
15343 * xterm.c (xaw_scroll_callback): Cast call_data.
15344 (XTread_socket): Deal with ASCII keysyms.
15345 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15346
153472008-02-01 Dave Love <fx@gnu.org>
15348
15349 * xterm.c (Vx_keysym_table): New.
15350 (syms_of_xterm): Initialize it.
15351 (XTread_socket): Use it.
15352 From head: Eliminate incorrect optimization that tried to avoid
15353 decoding the output of X*LookupString.
15354 (x_get_font_repertory): Delete charset declaration.
15355
153562008-02-01 Kenichi Handa <handa@m17n.org>
15357
15358 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15359 return 0.
15360 (Fdefine_coding_system_internal): Setup
15361 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15362
153632008-02-01 Dave Love <fx@gnu.org>
15364
15365 * coding.c (Fcheck_coding_system): Doc fix.
15366
15367 * editfns.c (Finsert_byte): Return a proper value.
15368
153692008-02-01 Kenichi Handa <handa@m17n.org>
15370
15371 * coding.c (decode_coding): Fix args to translate_chars. Pay
15372 attention to Vstandard_translation_table_for_decode.
15373 (encode_coding): Fix args to translate_chars. Pay attention to
15374 Vstandard_translation_table_for_encode.
15375
15376 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15377 SINGLE_BYTE_CHAR_P.
15378
15379 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15380 not by SINGLE_BYTE_CHAR_P.
15381
15382 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15383 SINGLE_BYTE_CHAR_P.
15384
15385 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15386 SINGLE_BYTE_CHAR_P.
15387
15388 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15389 by SINGLE_BYTE_CHAR_P.
15390
15391 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15392 SINGLE_BYTE_CHAR_P.
15393
153942008-02-01 Dave Love <fx@gnu.org>
15395
15396 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15397
153982008-02-01 Dave Love <fx@gnu.org>
15399
15400 * fns.c (Flanginfo): Fix typo.
15401
15402 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15403
154042008-02-01 Kenichi Handa <handa@m17n.org>
15405
15406 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15407 (detect_coding_emacs_mule, detect_coding_iso_2022)
15408 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15409 incomplete byte sequence. Don't update *mask when correctly detected.
15410 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15411 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15412 (detect_coding, detect_coding_system): Adjust for the changes above.
15413
154142008-02-01 Kenichi Handa <handa@m17n.org>
15415
15416 * character.c (char_string): Rename from
15417 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15418 (string_char): Rename from string_char.
15419
15420 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15421 if C is greater than MAX_3_BYTE_CHAR.
15422 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15423 string_char instead of string_char_with_unification.
15424
154252008-02-01 Dave Love <fx@gnu.org>
15426
15427 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15428
154292008-02-01 Kenichi Handa <handa@m17n.org>
15430
15431 * keymap.c (push_key_description): Pay attention to force_multibyte.
15432
15433 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15434
154352008-02-01 Dave Love <fx@gnu.org>
15436
15437 * charset.c (define_charset_internal): Rename `supprementary'.
15438
15439 * Makefile.in (lisp, shortlisp): Remove latin-N.
15440
154412008-02-01 Dave Love <fx@gnu.org>
15442
15443 * xfns.c (x_window, x_window): Use use_xim.
15444
15445 * xterm.c (use_xim): Initialize.
15446 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15447 (x_term_init): Maybe set use_xim.
15448
15449 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15450
154512008-02-01 Kenichi Handa <handa@m17n.org>
15452
15453 * search.c (search_buffer): Fix case-fold-search of multibyte
15454 characters.
15455 (boyer_moore): Rename the last argument to char_high_bits.
15456
154572008-02-01 Kenichi Handa <handa@m17n.org>
15458
15459 * xdisp.c (display_string): Fix for the case of zero width glyph.
15460
15461 * xfns.c (x_set_font): Change the error message of the case that
15462 x_new_fontset returns Qt.
15463
15464 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15465 (Finternal_set_lisp_face_attribute): Use signal_error for the
15466 error of invalid fontset.
15467
15468 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15469 fontset, return Qt.
15470
154712008-02-01 Dave Love <fx@gnu.org>
15472
15473 * unexelf.c (unexec): Make .got handling not SGI-specific.
15474
15475 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15476
15477 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15478
15479 * keyboard.c (read_key_sequence): Fix type error.
15480
15481 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15482 type error.
15483
15484 * fontset.c (fontset_add): Return Lisp_Object.
15485
154862008-02-01 Dave Love <fx@gnu.org>
15487
15488 * charset.h (charset_ordered_list_tick): Declare extern.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 The following changes (and some of 2008-02-01 changes of mine) are
15493 for handling syntax, category, and case conversion for unibyte
15494 characters by converting them to multibyte on the fly. With these
15495 changes, we don't have to setup syntax and case tables for unibyte
15496 characters in each language environment.
15497
15498 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15499 multibyte if necessary.
15500
15501 * bytecode.c (Fbyte_code): Likewise.
15502
15503 * character.h (LEADING_CODE_LATIN_1_MIN)
15504 (LEADING_CODE_LATIN_1_MAX): New macros.
15505 (unibyte_to_multibyte_table): Extern it.
15506 (unibyte_char_to_multibyte): New macro.
15507 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15508 (CHAR_LEADING_CODE): New macro.
15509 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15510
15511 * character.c (unibyte_to_multibyte_table): New variable.
15512 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15513 (multibyte_char_to_unibyte): If C is an eight-bit character,
15514 convert it to the corresponding byte value.
15515
15516 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15517 not 1, signals an error. Update the elements of
15518 unibyte_to_multibyte_table.
15519 (init_charset_once): Initialize unibyte_to_multibyte_table.
15520 (syms_of_charset): Define the charset `iso-8859-1'.
15521
15522 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15523 as is without converting it to unibyte. In a unibyte buffer,
15524 convert C to multibyte before checking the syntax.
15525
15526 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15527
15528 * minibuf.c (Fminibuffer_complete_word): Use the macro
15529 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15530
15531 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15532
15533 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15534 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15535 that is zero, convert an eight-bit char to multibyte.
15536 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15537 non-emacs case.
15538 (PATFETCH): Convert an eight-bit char to multibyte.
15539 (HANDLE_UNIBYTE_RANGE): New macro.
15540 (regex_compile): Setup the compiled pattern for multibyte chars
15541 even if the given regex string is unibyte. Use PATFETCH_RAW
15542 instead of PATFETCH in many places. To handle `charset'
15543 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15544 only for ASCII chars.
15545 (analyse_first) <exactn>: Simplify because the compiled pattern
15546 is multibyte.
15547 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15548 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15549 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15550 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15551 multibyte always 1.
15552 (re_search_2): In emacs, set the locale variable multibyte to 1,
15553 otherwise to 0. New local variable target_multibyte. Check it
15554 to decide the multibyteness of STR1 and STR2. If
15555 target_multibyte is zero, convert unibyte chars to multibyte
15556 before translating and checking fastmap.
15557 (TARGET_CHAR_AND_LENGTH): New macro.
15558 (re_match_2_internal): In emacs, set the locale variable multibyte
15559 to 1, otherwise to 0. New local variable target_multibyte. Check
15560 it to decide the multibyteness of STR1 and STR2. Use
15561 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15562 <charset, charset_not>: If multibyte is nonzero, check fastmap
15563 only for ASCII chars. Call bcmp_translate with
15564 target_multibyte, not with multibyte.
15565 <begline>: Declare the local variable C as `unsigned'.
15566 (bcmp_translate): Change the last arg name to target_multibyte.
15567
15568 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15569 the regexp pattern and the matching target. Set cp->buf.multibyte
15570 to the multibyteness of the regexp pattern. Set
15571 cp->but.target_multibyte to the multibyteness of the matching target.
15572 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15573 FETCH_STRING_CHAR_ADVANCE.
15574 (Freplace_match): Convert unibyte chars to multibyte.
15575
15576 * syntax.c (char_quoted, back_comment, scan_words)
15577 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15578 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15579 unibyte chars to multibyte.
15580 (skip_chars): Delete the arg syntaxp, and move the code for
15581 handling syntaxes to skip_syntaxes. Change callers.
15582 Fix the case that the multibyteness of STRING and the current
15583 buffer doesn't match.
15584 (skip_syntaxes): New function.
15585 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15586 SINGLE_BYTE_CHAR_P.
15587
155882008-02-01 Kenichi Handa <handa@m17n.org>
15589
15590 * xfaces.c (QCfontset): New variable.
15591 (LFACE_FONTSET): New macro.
15592 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15593 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15594 (Finternal_set_lisp_face_attribute)
15595 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15596 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15597 check also LFACE_FONTSET_INDEX.
15598 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15599 attrs[LFACE_FONT_INDEX].
15600 (syms_of_xfaces): Intern and staticpro QCfontset.
15601
15602 * dispextern.h (enum lface_attribute_index): New member
15603 LFACE_FONTSET_INDEX.
15604
15605 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15606
156072008-02-01 Kenichi Handa <handa@m17n.org>
15608
15609 * coding.c (coding_set_destination): Fix coding->destination for
15610 the case converting a region.
15611 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15612 (encode_coding_object): Fix coding->dst_pos and
15613 coding->dst_pos_byte for the case converting a region.
15614
15615 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15616
15617 * character.h (BYTE8_STRING): New macro.
15618
15619 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15620
156212008-02-01 Kenichi Handa <handa@m17n.org>
15622
15623 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15624 characters by octal form.
15625
15626 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15627
15628 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15629 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15630 _fetch_multibyte_char_len.
15631 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15632
15633 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15634
15635 * casefiddle.c (casify_object): Simplify. Handle the case that
15636 the case conversion change the byte length.
15637 (casify_region): Likewise.
15638
15639 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15640
15641 * character.c (_fetch_multibyte_char_len): Delete this variable.
15642 (syms_of_character): Setup Vprintable_chars.
15643
15644 * editfns.c (Fchar_equal): Fix for the unibyte case.
15645 (Finsert_byte): New function.
15646 (syms_of_editfns): Defsubr it.
15647
15648 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15649 of direct code 0x3ffff.
15650
15651 * search.c (Freplace_match): Fix for the unibyte case.
15652
156532008-02-01 Kenichi Handa <handa@m17n.org>
15654
15655 * lread.c (safe_to_load_p): Fix the logic.
15656
15657 * syntax.c (scan_words): Don't treat characters belonging to
15658 different scripts as constituting a word.
15659
15660 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15661
15662 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15663
15664 * emacs.c (main): In the case of --unibyte, instead of aborting on
15665 finding non-empty buffer, make it unibyte.
15666
156672008-02-01 Kenichi Handa <handa@m17n.org>
15668
15669 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15670 to create a fontset.
15671
156722008-02-01 Dave Love <fx@gnu.org>
15673
15674 * character.c (Funibyte_char_to_multibyte): Doc fix.
15675
15676 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15677
156782008-02-01 Kenichi Handa <handa@m17n.org>
15679
15680 * fontset.c (fontset_add): Make the type `int'.
15681 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15682
15683 * character.c (unibyte_char_to_multibyte)
15684 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15685 charset_unibyte, not charset_primary.
15686
15687 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15688
15689 * charset.c (charset_unibyte): Rename from charset_primary.
15690 (Funibyte_charset): Rename from Fprimary_charset.
15691 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15692 (syms_of_charset): Adjust for the above changes.
15693
15694 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15695 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15696 it->multibyte_p is zero.
15697
15698 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15699 Delete extern.
15700
157012008-02-01 Kenichi Handa <handa@m17n.org>
15702
15703 * coding.c (Fdefine_coding_system_internal): Fix category setting
15704 for a coding system of type iso-2022.
15705
157062008-02-01 Kenichi Handa <handa@m17n.org>
15707
15708 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15709
157102008-02-01 Kenichi Handa <handa@m17n.org>
15711
15712 * syntax.c (Vnext_word_boundary_function_table): New variable.
15713 (next-word-boundary-function-table): Declare it as a Lisp variable
15714 in syms_of_syntax.
15715 (scan_words): Call functions in Vnext_word_boundary_function_table
15716 if any.
15717
15718 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15719
15720 * fontset.c (fs_load_font): If fontp->charset is not negative,
15721 return fontp without setting its members.
15722
157232008-02-01 Dave Love <fx@gnu.org>
15724
15725 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15726
15727 * m/sparc.h (HAVE_ALLOCA): Delete.
15728
15729 * s/irix6-5.h: Don't include strings.h.
15730 (bcopy, bzero, bcmp): Don't undef.
15731
15732 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15733
15734 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15735 (TIOCSIGSEND): Don't test IRIX6.
15736 (bcopy, bzero, bcmp): Define conditionally.
15737
157382008-02-01 Kenichi Handa <handa@m17n.org>
15739
15740 * buffer.c (Qas, Qmake, Qto): New variables.
15741 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15742 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15743
15744 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15745 we are inserting a process output into a multibyte buffer.
15746
15747 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15748 multibyte_char_to_unibyte.
15749
15750 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15751 by the primary charset, make it eight-bit char.
15752 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15753
15754 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15755 (charset_8_bit__control, charset_8_bit_graphic)
15756 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15757 (define_charset_internal): New function.
15758 (syms_of_charset): Call define_charset_internal for pre-defined
15759 charsets.
15760
15761 * charset.h (charset_8_bit): Extern it.
15762
15763 * coding.c (make_conversion_work_buffer): Adjust for the change
15764 of Fset_buffer_multibyte.
15765 (encode_coding_raw_text): Increment p0 in the loop.
15766
15767 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15768
15769 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15770 for the change of Fset_buffer_multibyte.
15771
15772 * fns.c (Fstring_to_multibyte): New function.
15773 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15774
157752008-02-01 Dave Love <fx@gnu.org>
15776
15777 * xfns.c (x_put_x_image): Declare args.
15778
15779 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15780 (try_font_list): Declare an arg.
15781
15782 * xdisp.c (message2_nolog, set_message): Declare an arg.
15783
15784 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15785
15786 * syntax.c (scan_sexps_forward): Declare an arg.
15787
15788 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15789 Declare an arg.
15790
15791 * lisp.h (Fnew_fontset): Declare.
15792
15793 * keymap.c (push_key_description): Call CHARACTERP correctly.
15794
15795 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15796 (face_for_char): Delete unused vars.
15797 (Fset_fontset_font): Doc fix. Delete unused vars.
15798
15799 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15800
15801 * composite.c (update_compositions): Declare arg.
15802
15803 * cm.c (calccost, cmgoto): Declare args.
15804
15805 * charset.c: Remove `emacs' conditional. Doc fixes.
15806 (map_char_table_for_charset): Declare.
15807
15808 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15809
15810 * ccl.c: Remove `emacs' conditional.
15811
158122008-02-01 Kenichi Handa <handa@m17n.org>
15813
15814 The following changes are to allow specifying multiple font
15815 patterns for a character range (specified by script or charset).
15816
15817 * Makefile.in (abbrev.o): Depend on syntax.h.
15818 (xfaces.o): Depend on charset.h.
15819
15820 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15821 SINGLE_BYTE_CHAR_P.
15822
15823 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15824
15825 * character.h (Vchar_script_table): Extern it.
15826
15827 * character.c (Vscript_alist): Delete.
15828 (Vchar_script_table, Qchar_script_table): New variable.
15829 (syms_of_character): Declare Vchar_script_table as a lisp variable
15830 and initialize it.
15831
15832 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15833 have property char-table-extra-slots, make no extra slot.
15834
15835 * dispextern.h (struct face): Delete member `charset'.
15836 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15837 SINGLE_BYTE_CHAR_P.
15838 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15839 Add prototypes.
15840 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15841 (generate_ascii_font_name): Rename from generate_ascii_font.
15842
15843 * fontset.h (get_font_repertory_func): New prototype.
15844 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15845 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15846
15847 * fontset.c (Qprepend, Qappend): New variables.
15848 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15849 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15850 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15851 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15852 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15853 (load_font_get_repertory): New functions.
15854 (fontset_set): Delete.
15855 (fontset_face): New arg FACE. Return face ID, not face.
15856 Complete re-write to handle new fontset structure. Change caller.
15857 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15858 (face_for_char): Don't call lookup_face.
15859 (make_fontset_for_ascii_face): New arg FACE.
15860 (fs_load_font): New arg CHARSET_ID. Don't check
15861 Vfont_encoding_alist here.
15862 (find_font_encoding): New function.
15863 (list_fontsets): Use STRINGP, not ! NILP.
15864 (accumulate_script_ranges): New function.
15865 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15866 re-written to handle new fontset structure.
15867 (Ffontset_font): Return a copy of element.
15868 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15869 docstring of font-encoding-alist.
15870
15871 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15872 (Fset_fotset_font): Fix arguments to 5.
15873
15874 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15875
15876 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15877 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15878 (highlight_trailing_whitespace): Adjust for the change of
15879 lookup_named_face.
15880
15881 * xfaces.c: Include charset.h.
15882 (load_face_font): Delete argument C. Change caller.
15883 (generate_ascii_font_name): Rename from generate_ascii_font.
15884 (font_name_registry): New function.
15885 (cache_face): Store ascii faces before non-ascii faces in buckets.
15886 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15887 Lookup only ascii faces.
15888 (lookup_non_ascii_face): New function.
15889 (lookup_named_face): Delete argument C. Change caller.
15890 (lookup_derived_face): Delete argument C. Change caller.
15891 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15892 a string, just call font_list with it.
15893 (choose_face_font): Delete arguments FACE and C. New arg
15894 FONT_SPEC. Change caller.
15895 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15896 Change caller.
15897 (realize_non_ascii_face): New function.
15898 (realize_x_face): Call load_face_font here.
15899 (realize_tty_face): Delete argument C. Change caller.
15900 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15901 get a face ID.
15902 (dump_realized_face): Don't print charset of FACE.
15903
15904 * xfns.c (x_set_font): Always call x_new_fontset and
15905 store_frame_parameter.
15906 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15907 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15908
15909 * xterm.h (x_get_font_repertory): Extern it.
15910
15911 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15912 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15913 it->multibyte_p is zero.
15914 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15915 (x_new_fontset): If FONTSETNAME doesn't match any existing
15916 fontsets, create a new one.
15917 (x_get_font_repertory): New function.
15918
159192008-02-01 Kenichi Handa <handa@m17n.org>
15920
15921 * coding.c (Ffind_coding_systems_region_internal): Detect an
15922 ASCII only string correctly.
15923
15924 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15925 version is 0.
15926
159272008-02-01 Kenichi Handa <handa@m17n.org>
15928
15929 * lread.c: Include "coding.h".
15930 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15931 (load_each_byte, unread_char): New variables.
15932 (readchar_backlog): Delete.
15933 (readchar): Return a character unless load_each_byte is nonzero.
15934 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15935 cons. If unread_char is not -1, simply return it.
15936 (unreadchar): Handle the case that readcharfun is
15937 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
15938 (read_multibyte): Delete.
15939 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15940 (read_emacs_mule_char): New functions.
15941 (Fload): Even if the file doesn't have the extension ".elc", if
15942 safe_to_load_p returns a positive version number, assume that the
15943 file contains bytecompiled code. If the version is less than 22,
15944 load the file while decoding multibyte sequences by emacs-mule.
15945 (readevalloop): Don't use readchar_backlog.
15946 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
15947 (Fread_from_string): Pay attention to the case that STREAM is a cons.
15948 (read_escape): Delete the arg BYTEREP.
15949 (read1): Set load_each_byte to 1 temporarily while handling
15950 #@NUMBER. Don't call read_multibyte.
15951 (read_vector): Call Fread with a cons. If readcharfun is
15952 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
15953 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
15954 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
15955 and Qload_force_doc_strings.
15956
159572008-02-01 Kenichi Handa <handa@m17n.org>
15958
15959 * xdisp.c (face_before_or_after_it_pos): Call
15960 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15961
159622008-02-01 Kenichi Handa <handa@m17n.org>
15963
15964 * character.h (TRAILING_CODE_P): New macro.
15965 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
15966 (string_char_with_unification): Fix prototype.
15967 (Vscript_alist): Extern it.
15968
15969 * character.c (Vscript_alist): New variable.
15970 (string_char_with_unification, str_as_unibyte)
15971 (string_escape_byte8): Add `const' to local variables.
15972 (syms_of_character): Declare script-alist as a Lisp variable.
15973
15974 * charset.h (Vcharset_ordered_list): Extern it.
15975 (charset_ordered_list_tick): Extern it.
15976 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
15977 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
15978 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
15979 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
15980 (Funify_charset): Adjust for the change of Funify_charset.
15981
15982 * charset.c (charset_ordered_list_tick): New variable.
15983 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
15984 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
15985 deunify intead of unify a charset.
15986 (string_xstring_p): Add `const' to local variables.
15987 (find_charsets_in_text): Add `const' to arguments and local variables.
15988 (encode_char): Adjust for the change of Funify_charset. Fix
15989 detecting of invalid code.
15990 (Fset_charset_priority): Increment charset_ordered_list_tick.
15991 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
15992 and TO_CODE.
15993
15994 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
15995 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
15996 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
15997 (decode_coding_ccl, consume_chars)
15998 (Ffind_coding_systems_region_internal)
15999 (Fcheck_coding_systems_region): Add `const' to local variables.
16000
16001 * print.c (print_object): Use octal form for printing the
16002 contents of a bool vector.
16003
160042008-02-01 Dave Love <fx@gnu.org>
16005
16006 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16007 <version == 20>: Refuse to load.
16008
160092008-02-01 Dave Love <fx@gnu.org>
16010
16011 * fns.c: Move coding.h.
16012 (Qcodeset, Qdays, Qmonths): New.
16013 (concat): Use CHARACTERP instead of INTEGERP.
16014 (Flocale_codeset): Delete.
16015 (Flanginfo): New function.
16016 (syms_of_fns): Change accordingly.
16017
16018 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16019
160202008-02-01 Dave Love <fx@gnu.org>
16021
16022 * casetab.c (init_casetab_once, init_casetab_once): Fix
16023 CHAR_TABLE_SET call.
16024
16025 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16026
16027 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16028
16029 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16030 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16031 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16032
16033 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16034
16035 * coding.c (ENCODE_DESIGNATION, decode_eol)
16036 (make_conversion_work_buffer, code_conversion_restore)
16037 (Fdefine_coding_system_internal): Convert Lisp types.
16038 (code_conversion_restore): Use EQ, not ==.
16039 (Fencode_coding_string): Fix code_convert_string call.
16040
16041 * coding.h (code_convert_region): Fix prototype.
16042
16043 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16044
16045 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16046 (Ffontset_info): Convert Lisp types.
16047
16048 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16049
16050 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16051
16052 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16053
16054 * chartab.c: Include "...h", not <...h> in some cases.
16055
16056 * callproc.c (Fcall_process): Remove unused variables.
16057
160582008-02-01 Dave Love <fx@gnu.org>
16059
16060 * coding.c (Fset_coding_system_priority): Allow null arg list.
16061
160622008-02-01 Dave Love <fx@gnu.org>
16063
16064 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16065 (Fself_insert_and_exit): Use CHARACTERP.
16066
16067 * callproc.c (Fcall_process): Remove unused vars.
16068
16069 * xterm.c (XTread_socket): Add extra dead keysyms.
16070
16071 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16072
16073 * dispextern.h: Remove prototypes for redraw_frame,
16074 redraw_garbaged_frames.
16075
16076 * cmds.c (Fself_insert_command): Use CHARACTERP.
16077
16078 * chartab.c (make_sub_char_table): Remove unused var.
16079 (Fset_char_table_default, Fmap_char_table): Doc fix.
16080
16081 * keymap.c (access_keymap): Remove generic char code.
16082 (push_key_description): Use CHARACTERP.
16083
160842008-02-01 Dave Love <fx@gnu.org>
16085
16086 * charset.c: Doc fixes.
16087 (Funify_charset): Extra checking.
16088
160892008-02-01 Dave Love <fx@gnu.org>
16090
16091 * lread.c: Remove some unused variables.
16092 (safe_to_load_p): If safe, return the magic number version byte.
16093 (Fload): Maybe use load-with-code-conversion.
16094
160952008-02-01 Kenichi Handa <handa@m17n.org>
16096
16097 * category.c (Fmodify_category_entry): Don't modify the contents
16098 of category_set for characters out of the range. Avoid
16099 unnecessary modification.
16100
16101 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16102 Vchar_unify_table. The default value of the table is now nil.
16103
16104 * character.c (syms_of_character): Setup Vchar_width_table for
16105 eight-bit-control and raw-byte chars.
16106
16107 * charset.h (enum define_charset_arg_index): Delete
16108 charset_arg_parents and add charset_arg_subset and
16109 charset_arg_superset.
16110 (enum charset_attr_index): Delete charset_parents and add
16111 charset_subset and charset_superset.
16112 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16113 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16114 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16115 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16116 (CHARSET_SUPERSET): New macros.
16117 (charset_work): Extern it.
16118 (ENCODE_CHAR): Use charset_work.
16119 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16120 (map_charset_chars): Extern it.
16121
16122 * charset.c (load_charset_map): Set the default value of encoder
16123 and deunifier char-tables to nil.
16124 (map_charset_chars): Change argument. Change callers. Use
16125 map_char_table_for_charset instead of map_char_table.
16126 (Fmap_charset_chars): New optional args from_code and to_code.
16127 (Fdefine_charset_internal): Adjust for the change of
16128 `define-charset' (:parents -> :subset or :superset).
16129 (charset_work): New variable.
16130 (encode_char, syms_of_charset): Adjust for the change of
16131 Fdefine_charset_internal.
16132 (Ffind_charset_string): Setup the vector `charsets' correctly.
16133
16134 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16135 the previous change.
16136 (char_table_ref_and_range): Adjust for the above change.
16137 (map_sub_char_table_for_charset): New function.
16138 (map_char_table_for_charset): New function.
16139
16140 * keymap.c (describe_vector): Handle a char-table directly here.
16141 (describe_char_table): Delete.
16142
16143 * lisp.h (map_charset_chars): Delete.
16144
161452008-02-01 Dave Love <fx@gnu.org>
16146
16147 * fns.c (count_combining): Comment out (unused).
16148 (Flocale_codeset): New.
16149 (syms_of_fns): Defsubr it.
16150
16151 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16152 (size_t): Remove.
16153
161542008-02-01 Dave Love <fx@gnu.org>
16155
16156 * Makefile.in (chartab.o): Depend on charset.h.
16157
161582008-02-01 Kenichi Handa <handa@m17n.org>
16159
16160 * character.c (syms_of_character): Set the default value of
16161 Vprintable_chars to Qnil.
16162
161632008-02-01 Dave Love <fx@gnu.org>
16164
16165 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16166
161672008-02-01 Kenichi Handa <handa@m17n.org>
16168
16169 * charset.c (load_charset_map): Handle the case that from < to
16170 correctly.
16171
16172 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16173 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16174 Pay attention to raw-8-bit chars.
16175
161762008-02-01 Kenichi Handa <handa@m17n.org>
16177
16178 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16179 It is not bytecompiled now.
16180
16181 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16182 (charset_jisx0208): New variables.
16183 (Fdefine_charset_internal): Setup them if appropriate.
16184 (init_charset_once): Initialize them to -1.
16185
16186 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16187 (charset_jisx0208): Extern them.
16188
16189 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16190 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16191 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16192 (setup_iso_safe_charsets): Fix arguments to Fassq.
16193 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16194 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16195 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16196 (encode_coding_iso_2022): Change the 1st arg to
16197 ENCODE_ISO_CHARACTER to a variable.
16198
161992008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * charset.h (enum define_charset_arg_index): New enums
16202 charset_arg_min_code and charset_arg_max_code.
16203 (struct charset): New member char_index_offset.
16204
16205 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16206 Take charset->char_index_offset into account.
16207 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16208 args[charset_arg_max_code]. Setup charset.char_index_offset.
16209 (syms_of_charset): Fix args to Fdefine_charset_internal.
16210
162112008-02-01 Dave Love <fx@gnu.org>
16212
16213 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16214
162152008-02-01 Dave Love <fx@gnu.org>
16216
16217 * coding.c: Doc fixes.
16218 (Fcoding_system_aliases): Fix return value.
16219 (Qmac): Remove (duplicated) definition.
16220
162212008-02-01 Dave Love <fx@gnu.org>
16222
362654a6
JB
16223 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16224 New functions.
aac0c6e3
MR
16225
16226 * character.c (Fstring): Doc fix.
16227
16228 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16229
362654a6 16230 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16231 (font-encoding-alist): Doc fix.
16232
162332008-02-01 Dave Love <fx@gnu.org>
16234
16235 * term.c (costs_set): Declare static, non-initialized for pcc.
16236 (encode_terminal_code): Remove unused var.
16237
16238 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16239 for K&R.
16240
16241 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16242
16243 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16244 (suffixes): Move out of make_subsidiaries for K&R.
16245
16246 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16247
16248 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16249
162502008-02-01 Dave Love <fx@gnu.org>
16251
16252 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16253
16254 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16255
162562008-02-01 Yong Lu <lyongu@asia-infonet.com>
16257
16258 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16259
16260 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16261
162622008-02-01 Kenichi Handa <handa@m17n.org>
16263
16264 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16265 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16266
162672008-02-01 Kenichi Handa <handa@m17n.org>
16268
16269 * coding.c (decode_coding_charset): Adjust for the change of
16270 Fdefine_coding_system_internal.
16271 (Fdefine_coding_system_internal): For a coding system of
16272 `charset' type, store a list of charset IDs in
16273 `charset_attr_charset_valids' element of coding attributes.
16274
162752008-02-01 Kenichi Handa <handa@m17n.org>
16276
16277 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16278 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16279 caller. Handle 2-byte and 3-byte charsets correctly.
16280 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16281 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16282 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16283 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16284 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16285 sequence.
16286 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16287 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16288 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16289 and alt&rule composition.
16290 (decode_coding_iso_2022): Handle composition correctly.
16291 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16292
16293 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16294 re-defining a charset. If the charset has :emacs-mule-id, setup
16295 emacs_mule_bytes.
16296 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16297
162982008-02-01 Kenichi Handa <handa@m17n.org>
16299
16300 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16301 (encode_coding_big5, encode_coding_charset): If coding requires safe
16302 encoding, produce a character specified by
16303 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16304
163052008-02-01 Dave Love <fx@gnu.org>
16306
16307 * xterm.c (XSetIMValues): Declare.
16308
16309 * process.c: Conditionally include sys/wait.h, pty.h.
16310
16311 * print.c (print_object): Fix print format for 64-bit systems.
16312
16313 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16314
16315 * buffer.c (emacs_strerror): Declare.
16316
16317 * fontset.c (Fclear_face_cache): Declare.
16318 (accumulate_font_info): Comment-out (unused).
16319 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16320 variables.
16321
16322 * character.h (string_escape_byte8): Declare.
16323
16324 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16325 unused vars.
16326 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16327 (Fmap_charset_chars): Doc fix.
16328
16329 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16330 (Fset_coding_system_priority, Fset_coding_system_priority)
16331 (Fdefine_coding_system_internal): Doc fix.
16332
163332008-02-01 Dave Love <fx@gnu.org>
16334
16335 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16336
163372008-02-01 Kenichi Handa <handa@m17n.org>
16338
16339 * character.c (string_escape_byte8): Make multibyte string with
16340 correct size.
16341
16342 * charset.c (Fmake_char): Delete unnecessary code.
16343
163442008-02-01 Kenichi Handa <handa@m17n.org>
16345
16346 * xfns.c (x_encode_text): Allocate coding.destination here, and
16347 call encode_coding_object with dst_object Qnil.
16348
16349 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16350 multibyte form correctly.
16351
16352 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16353 against Vfont_encoding_alist.
16354
16355 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16356 handling of charset list.
16357 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16358 (decode_coding_object): Move point to coding->dst_pos before
16359 calling post-read-conversion function.
16360 (encode_coding_object): Give correct arguments to
16361 pre-write-conversion. Ignore the return value of
16362 pre-write-conversion function. Pay attention to the case that
16363 pre-write-conversion changes the current buffer. If dst_object is
16364 Qt, even if coding->src_bytes is zero, allocate at least one byte
16365 to coding->destination.
16366
16367 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16368
16369 * charset.c (Fmake_char): Make it more backward compatible.
16370 (Fmap_charset_chars): Fix docstring.
16371
163722008-02-01 Dave Love <fx@gnu.org>
16373
16374 * coding.c: Doc fixes.
16375 (Fdefine_coding_system_alias): Use names, not symbols, in
16376 coding-system-alist.
16377
163782008-02-01 Kenichi Handa <handa@m17n.org>
16379
16380 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16381 of calling free_realized_face.
16382
163832008-02-01 Yong Lu <lyongu@asia-infonet.com>
16384
16385 * charset.c (read_hex): Don't treat SPC as a comment starter.
16386 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16387 (Fdecode_char): Fix typo.
16388
163892008-02-01 Kenichi Handa <handa@m17n.org>
16390
16391 * charset.h (struct charset): New member `code_space_mask'.
16392
16393 * coding.c (coding_set_source): Delete the local variable beg_byte.
16394 (encode_coding_charset, Fdefine_coding_system_internal):
16395 Delete the local variable charset.
16396 (Fdefine_coding_system_internal): Setup
16397 attrs[coding_attr_charset_valids] correctly.
16398
16399 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16400 member to check if CODE is valid or not.
16401 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16402 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16403 is within the range of charset->min_code and carset->max_code.
16404
164052008-02-01 Dave Love <fx@gnu.org>
16406
16407 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16408
16409 * dispextern.h (generate_ascii_font): Fix return type.
16410
16411 * xfaces.c (generate_ascii_font): Fix arg declaration.
16412
16413 * coding.c (coding_inherit_eol_type)
16414 (Fset_terminal_coding_system_internal)
16415 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16416
164172008-02-01 Kenichi Handa <handa@m17n.org>
16418
16419 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16420 multiple charsets correctly.
16421
164222008-02-01 Kenichi Handa <handa@m17n.org>
16423
16424 * search.c (boyer_moore): Fix handling of multibyte character
16425 translation.
16426
16427 * xdisp.c (display_mode_element): When the variable `elt' is
16428 changed, update `this' and `lisp_string'.
16429
164302008-02-01 Kenichi Handa <handa@m17n.org>
16431
16432 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16433
16434 * callproc.c (Fcall_process): Be sure to give the current buffer
16435 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16436
16437 * charset.c (struct charset_map_entries): New struct.
16438 (load_charset_map): Rename from parse_charset_map. New args
16439 entries and n_entries. Change caller.
16440 (load_charset_map_from_file): Rename from load_charset_map.
16441 Change caller. New arg control_flag. Call load_charset_map at
16442 the tail.
16443 (load_charset_map_from_vector): New function.
16444 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16445 (encode_char): If the charset is compact, change a character index
16446 to a code point.
16447
16448 * coding.c (coding_alloc_by_making_gap): Check the case that the
16449 source and destination are the same correctly.
16450 (decode_coding_raw_text): Set coding->consumed_char and
16451 coding->consumed to 0.
16452 (produce_chars): If coding->chars_at_source is nonzero, update
16453 coding->consumed_char and coding->consumed before calling
16454 alloc_destination.
16455 (Fdefine_coding_system_alias): Register ALIAS in
16456 Vcoding_system_alist.
16457 (syms_of_coding): Define `no-conversion' coding system at the tail.
16458
16459 * fileio.c (Finsert_file_contents): Set coding_system instead of
16460 val. If the current buffer is multibyte, always call
16461 decode_coding_gap.
16462
16463 * xfaces.c (try_font_list): Give higher priority to fontset's
16464 family than face's family.
16465
164662008-02-01 Kenichi Handa <handa@m17n.org>
16467
16468 * callproc.c (Fcall_process): Be sure to give the current buffer
16469 to decode_coding_c_string.
16470
16471 * xfaces.c (try_font_list): Give a family specified in a fontset
16472 higher priority than a family specified in a face.
16473
164742008-02-01 Kenichi Handa <handa@m17n.org>
16475
16476 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16477 Fix arguments to insert_from_buffer.
16478
16479 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16480
164812008-02-01 Kenichi Handa <handa@m17n.org>
16482
16483 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16484 (decode_coding_gap): Set coding->dst_multibyte correctly.
16485
164862008-02-01 Kenichi Handa <handa@m17n.org>
16487
16488 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16489 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16490 (encode_coding_utf_16): Substitute coding->default_char for
16491 non-Unicode characters.
16492 (decode_coding): Don't call record_insert here.
16493 (setup_coding_system): Initialize `surrogate' of
16494 coding->spec.utf_16 to 0.
16495 (EMIT_ONE_BYTE): Fix for multibyte case.
16496
16497 * insdel.c (insert_from_gap): Call record_insert.
16498
164992008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * casefiddle.c (casify_region): Fix multibyte case.
16502
16503 * character.c (c_string_width): Add return type `int'.
16504 (char_string_with_unification): Delete arg ADVANCED.
16505
16506 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16507 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16508 (CHAR_STRING_ADVANCE): Make it do-while statement.
16509
16510 * chartab.c (sub_char_table_set_range): Optimize for the case
16511 DEPTH == 3. Add workaround code for a GCC optimization bug.
16512
16513 * charset.c (parse_charset_map): Remove an unused variable.
16514
16515 * coding.c: Delete unused variables.
16516
16517 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16518 earlier. If inserted is zero and the coding system doesn't
16519 require flushing, don't call decode_coding_gap.
16520
16521 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16522
165232008-02-01 Kenichi Handa <handa@m17n.org>
16524
16525 The following changes are for using Unicode as an internal
16526 character model, and use UTF-8 format for buffer/string
16527 representation.
16528
16529 * .gdbinit (xchartable): Adjust for the change of char table structure.
16530 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16531
16532 * Makefile.in (obj): Add character.o and chartab.o.
16533 (lisp, shortlisp): Remove utf-8.elc.
16534 (*.o): For many files, change dependency on charset.h to
16535 character.h, and add dependency on character.h.
16536 (character.o, chartab.o): New targets.
16537
16538 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16539 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16540 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16541 of "charset.h".
16542
16543 * dired.c, filelock.c: Include "character.h".
16544
16545 * alloc.c: Include "character.h" instead of "charset.h".
16546 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16547 (syms_of_alloc): Remove defsubr for Smake_char_table.
16548
16549 * buffer.c: Include "character.h" instead of "charset.h", don't
16550 include "coding.h".
16551 (Fset_buffer_multibyte): Adjust for UTF-8.
16552
16553 * buffer.h: EXFUN Fbuffer_live_p.
16554
16555 * callproc.c: Include "character.h" instead of "charset.h".
16556 (Fcall_process): Big change for the new code-conversion APIs.
16557
16558 * casetab.c: Include "character.h" instead of "charset.h".
16559 (set_canon, set_identity, shuffle): Adjust for the new
16560 map_char_table spec.
16561 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16562 accessing the char table structure.
16563
16564 * chartab.c: New file that implements char table.
16565
16566 * category.c: Include "character.h".
16567 (copy_category_entry): New function.
16568 (copy_category_table): Call map_char_table and copy_category_entry.
16569 (Fmake_category_table): Initialize all top-level slots.
16570 (char_category_set): New function.
16571 (modify_lower_category_set): Delete.
16572 (Fmodify_category_entry): Call char_table_ref_and_range.
16573
16574 * category.h (CATEGORY_SET): Just call char_category_set.
16575
16576 * ccl.c: Include "character.h".
16577 (Qccl, Qcclp): New variables.
16578 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16579 it's less than 256.
16580 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16581 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16582 and DST type.
16583 (ccl_driver): Change types of argument, adjust code accordingly.
16584 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16585 ccl_driver.
16586 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16587
16588 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16589 New members src_multibyte, dst_multibyte, consumed, and produced.
16590 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16591 (CODING_SPEC_CCL_PROGRAM): New macro.
16592 (ccl_driver): Update prototype.
16593 (Qccl, Qcclp, Fccl_program_p): Extern them.
16594 (CHECK_CCL_PROGRAM): New macro.
16595
16596 * character.c, character.h, chartab.c: New files.
16597
16598 * charset.c: Mostly re-written. Move character and multibyte sequence
16599 handling codes to character.c.
16600
16601 * charset.h: Mostly re-written. Move character and multibyte sequence
16602 handling codes to character.h.
16603
16604 * coding.c, coding.h: Mostly re-written.
16605
16606 * composite.c: Include "character.h" instead of "charset.h".
16607 (CHAR_WIDTH): Move to character.h.
16608 (HASH_KEY, HASH_VALUE): Delete.
16609
16610 * composite.h (enum composition_method): Change order of enumeration
16611 symbols.
16612
16613 * data.c: Include "character.h" instead of "charset.h".
16614 (Faref): Call CHAR_TABLE_REF for a char table.
16615 (Faset): Call CHAR_TABLE_SET for a char table.
16616
16617 * dispextern.h (free_realized_face, check_face_attribytes)
16618 (generate_ascii_font): Extern them.
16619 (free_realized_multibyte_face): Delete extern.
16620
16621 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16622 table structure.
16623
16624 * editfns.c: Include "character.h" instead of "charset.h".
16625 (Fchar_to_string): Always call CHAR_STRING.
16626
16627 * emacs.c (main): Call init_charset_once, init_charset,
16628 syms_of_chartab, and syms_of_character.
16629
16630 * fileio.c: Include "character.h" instead of "charset.h".
16631 (Finsert_file_contents): Big change for the new code-conversion API.
16632 (choose_write_coding_system, Fwrite_region): Likewise.
16633 (build_annotations_2): Delete.
16634 (e_write): Big change for the new code-conversion API.
16635
16636 * fns.c: Include "character.h" instead of "charset.h".
16637 (copy_sub_char_table): Move to chartab.c.
16638 (Fcopy_sequence): Call copy_char_table for a char table.
16639 (concat): Delete codes calling count_multibyte.
16640 (string_char_to_byte, string_byte_to_char): Adjust for the new
16641 multibyte form.
16642 (internal_equal): Adjust for the change of char table structure.
16643 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16644 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16645 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16646 (char_table_translate, optimize_sub_char_table)
16647 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16648 chartab.c.
16649 (char_table_ref_and_index): Delete.
16650 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16651 (Fmd5): Call preferred_coding_system instead of accessing
16652 Vcoding_category_list. Adjust for the new code-conversion API.
16653 (syms_of_fns): Move defsubr for char table related functions to
16654 chartab.c.
16655
16656 * fontset.c: Mostly re-written.
16657
16658 * fontset.h (struct font_info): Change type of the member encoding_type.
16659 (enum FONT_SPEC_INDEX): New enum.
16660 (fontset_font_pattern, fs_load_font): Update prototype.
16661 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16662
16663 * indent.c: Include "character.h" instead of "charset.h".
16664 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16665
16666 * insdel.c: Include "character.h" instead of "charset.h".
16667 (copy_text): Don't refer to Vnonascii_translation_table.
16668 (insert_from_gap): New function.
16669
16670 * keyboard.c: Include "character.h" instead of "charset.h".
16671 (command_loop_1): Never call direct_output_forward_char before
16672 a non-ASCII character.
16673 (read_char): If Vkeyboard_translate_table is a char table, always
16674 translate a character.
16675
16676 * keymap.c: Include "character.h".
16677 (store_in_keymap): Handle the case that IDX is a cons.
16678 (Fdefine_key): Handle the case that KEY is a cons and the car part
16679 is also a cons (range).
16680 (push_key_description): Adjust for the new character code.
16681 (describe_vector): Call describe_char_table for a char table.
16682 (describe_char_table): New function.
16683
16684 * keymap.h (describe_char_table): Extern it.
16685
16686 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16687 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16688 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16689 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16690 Delete.
16691 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16692 structure.
16693 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16694 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16695 (CHARTAB_SIZE_BITS_3): New macros.
16696 (chartab_size): Extern it.
16697 (struct Lisp_Char_Table): Re-design.
16698 (struct Lisp_Sub_Char_Table): New structure.
16699 (HASH_KEY, HASH_VALUE): Move from fns.c.
16700 (CHARACTERBITS): Define as 22.
16701 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16702 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16703 (GC_SUB_CHAR_TABLE_P): New macro.
16704 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16705 (code_convert_string_norecord): Deleted extern.
16706 (init_character_once, syms_of_character, init_charset)
16707 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16708
16709 * lread.c: Include "character.h".
16710 (read_multibyte): New arg NBYTES.
16711 (read_escape): Change the meaning of returned *BYTEREP.
16712 (to_multibyte): Delete.
16713 (read1): Adjust the handling of char table and string.
16714
16715 * print.c: Include "character.h" instead of "charset.h".
16716 (print_string): Convert 8-bit raw bytes to octal form by
16717 string_escape_byte8.
16718 (print_object): Adjust for the new multibyte form. Print 8-bit
16719 raw bytes always in octal form. Handle sub char table correctly.
16720
16721 * process.c: Include "character.h" instead of "charset.h".
16722 (read_process_output, send_process): Adjust for the new
16723 code-conversion API.
16724
16725 * puresize.h (BASE_PURESIZE): Increase.
16726
16727 * regex.c: Include "character.h" instead of "charset.h".
16728 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16729 (regex_compile): Accept a range whose starting and ending
16730 character have different leading bytes.
16731 (analyse_first): Adjust for the above change.
16732
16733 * search.c: Include "character.h" instead of "charset.h".
16734 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16735 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16736
16737 * syntax.c: Include "character.h" instead of "charset.h".
16738 (syntax_parent_lookup): Delete.
16739 (Fmodify_syntax_entry): Accept a cons as CHAR.
16740 (skip_chars): Adjust for the new multibyte form.
16741 (init_syntax_once): Call char_table_set_range instead of directly
16742 accessing the structure of a char table.
16743
16744 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16745 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16746 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16747 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16748
16749 * term.c: Include "buffer.h" and "character.h".
16750 (encode_terminal_code, write_glyphs): Adjust for the new
16751 code-conversion API.
16752 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16753
16754 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16755
16756 * xdisp.c: Include "character.h".
16757 (get_next_display_element): Adjust for the new multibyte form.
16758 (disp_char_vector): Adjust for the new char table structure.
16759 (decode_mode_spec_coding): Adjust for the new structure of
16760 coding system.
16761 (decode_mode_spec): Adjust for the new code-conversion API.
16762
16763 * xfaces.c: Include "character.h" instead of "charset.h".
16764 (load_face_font): Adjust for the change of choose_face_font and
16765 FS_LOAD_FONT.
16766 (generate_ascii_font): New function.
16767 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16768 (set_font_frame_param): Adjust for the change of choose_face_font.
16769 (free_realized_face): Make it public.
16770 (free_realized_faces_for_fontset): Rename from
16771 free_realized_multibyte_face. Free also faces realized for ASCII.
16772 (choose_face_font): Change arguments. Adjust for the change of
16773 fontset_font_pattern and FS_LOAD_FONT.
16774
16775 * xfns.c: Include "character.h".
16776 (x_encode_text): Adjust for the new code-conversion API.
16777
16778 * xselect.c: Don't include "charset.h".
16779 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16780
16781 * xterm.c: Include "character.h".
16782 (x_encode_char): New argument CHARSET. Change caller.
16783 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16784 Call ENCODE_CHAR instead of SPLIT_CHAR.
16785 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16786 CHAR_WIDTH instead of CHARSET_WIDTH.
16787 (XTread_socket): Adjust for the new code-conversion API.
16788 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16789 (x_load_font): Adjust for the change of struct font.
16790
167912008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16792
16793 * xfaces.c (face_at_buffer_position): Remove unused vars.
16794
167952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16796
16797 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16798 Fix overflow checking.
16799
168002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16801
16802 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16803 Cancel previous change.
16804
168052008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16806
16807 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16808 ccl->eight_bit_control. Fix check for buffer overflow.
16809 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16810 (ccl_driver): Initialize extra_bytes to 0.
16811
168122008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16813
16814 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16815 return it ORed with ctrl_modifier.
16816
168172008-01-29 Miles Bader <miles@gnu.org>
16818
16819 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16820
168212008-01-28 Jason Rumney <jasonr@gnu.org>
16822
16823 * w32.c (stat): Don't double check for networked drive.
16824
168252008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16826
16827 * window.c (run_window_configuration_change_hook): New function.
16828 Code extracted from set_window_buffer. Set the selected frame.
16829 (set_window_buffer): Use it.
16830 * window.h (run_window_configuration_change_hook): Declare.
16831 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16832
16833 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16834
168352008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16836
16837 * Makefile.in: Remove references to unused macros.
16838
168392008-01-26 Eli Zaretskii <eliz@gnu.org>
16840
16841 * w32.c (g_b_init_get_sid_sub_authority)
16842 (g_b_init_get_sid_sub_authority_count): New static variables.
16843 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16844 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16845 (init_user_info): Use them to retrieve uid and gid.
16846 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16847 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16848 st_uid and st_gid of the file.
16849
168502008-01-26 Jason Rumney <jasonr@gnu.org>
16851
16852 * w32.c (logon_network_drive): New function.
16853 (stat): Use it.
16854
168552008-01-26 Chong Yidong <cyd@stupidchicken.com>
16856
16857 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16858 invisible text covered with an ellipsis.
16859
168602008-01-25 Richard Stallman <rms@gnu.org>
16861
16862 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16863 jump back to beginning. Move some other initializations after that.
16864 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16865 New variables.
16866 (syms_of_xdisp): Init them.
16867
16868 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16869
16870 * buffer.c (reset_buffer_local_variables):
16871 Implement `permanent-local-hook'.
16872 (Qpermanent_local_hook): New variable.
16873 (syms_of_buffer): Init and staticpro it.
16874
168752008-01-25 Michael Albinus <michael.albinus@gmx.de>
16876
16877 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16878
168792008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16880
16881 * fns.c (Fclrhash): Return TABLE.
16882
168832008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16884
16885 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16886 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16887 is set even without positional changes.
16888 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16889
16890 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16891
168922008-01-23 Jason Rumney <jasonr@gnu.org>
16893
16894 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16895
16896 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16897 the unicode range available in MULE by locale-coding-system.
16898 Improve dbcs lead byte detection. Set event timestamp and modifiers
16899 earlier.
16900
169012008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16902
16903 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16904 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16905 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16906 when used on child processes.
16907
169082008-01-21 Michael Albinus <michael.albinus@gmx.de>
16909
16910 * dbusbind.c (Fdbus_method_return_internal): Rename from
16911 Fdbus_method_return.
16912 (Fdbus_unregister_object): Move to dbus.el.
16913 (Fdbus_call_method, Fdbus_method_return_internal)
16914 (Fdbus_send_signal): Improve debug messages.
16915
169162008-01-20 Martin Rudalics <rudalics@gmx.at>
16917
16918 * undo.c (undo_inhibit_record_point): New variable.
16919 (syms_of_undo): Initialize it.
16920 (record_point): Don't record point when undo_inhibit_record_point
16921 is set.
16922
169232008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
16924
16925 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16926
16927 * xdisp.c (Qauto_hscroll_mode): New var.
16928 (syms_of_xdisp): Initialize it.
16929 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16930 window's buffer.
16931 (hscroll_windows): Don't check automatic_hscrolling_p here.
16932
16933 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16934 vscroll if we're setting window-buffer to the value it already has.
16935
169362008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
16937
16938 * m/intel386.h: Remove references to XENIX.
16939
169402008-01-17 Andreas Schwab <schwab@suse.de>
16941
16942 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16943 instead of HAVE_X86_64_LIB64_DIR.
16944 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
16945
169462008-01-17 Glenn Morris <rgm@gnu.org>
16947
16948 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
16949 to HAVE_X86_64_LIB64_DIR.
16950
169512008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
16952
16953 * s/irix3-3.h:
16954 * s/irix4-0.h:
16955 * s/386-ix.h:
16956 * s/domain.h:
16957 * s/hpux9-x11r4.h:
16958 * s/hpux9shxr4.h: Remove files for systems no longer supported.
16959
16960 * sysdep.c: Remove code containing references to symbols defined
16961 by unsupported systems.
16962
169632008-01-16 Glenn Morris <rgm@gnu.org>
16964
16965 * coding.c (select-safe-coding-system-function): Doc fix.
16966
169672008-01-15 Glenn Morris <rgm@gnu.org>
16968
16969 * config.in: Revert 2008-01-13 change: this is a generated file.
16970
169712008-01-13 Tom Tromey <tromey@redhat.com>
16972
16973 * lisp.h: Fix typo.
16974
169752008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16976
16977 * m/sequent-ptx.h:
16978 * m/sequent.h:
16979 * s/ptx.h:
16980 * s/ptx4-2.h:
16981 * s/ptx4.h: Remove files for systems no longer supported.
16982
16983 * callproc.c (Fcall_process): Fix previous change.
16984
169852008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16986
16987 * unexsunos4.c: Remove file, system not supported anymore.
16988
16989 * m/mips.h:
16990 * m/intel386.h:
16991 * callproc.c:
16992 * config.in:
16993 * ecrt0.c:
16994 * emacs.c:
16995 * fileio.c:
16996 * frame.c:
16997 * getpagesize.h:
16998 * keyboard.c:
16999 * lread.c:
17000 * process.c:
17001 * puresize.h:
17002 * sysdep.c:
17003 * systty.h:
17004 * syswait.h:
17005 * unexec.c:
17006 * xdisp.c:
17007 * alloc.c: Remove code containing references to symbols defined by
17008 unsupported systems.
17009
170102008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17011
17012 * coding.c (detect_coding_mask): Fix previous change.
17013
170142008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17015
17016 * coding.c (detect_coding_iso2022): New arg
17017 latin_extra_code_state. Allow Latin extra codes only
17018 when *latin_extra_code_state is nonzero.
17019 (detect_coding_mask): If there is a NULL byte, detect the encoding
17020 as UTF-16 or binary. If Latin extra codes exist, detect the
17021 encoding as ISO-2022 only when there's no other proper encoding is
17022 found.
17023
170242008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17025
17026 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17027 #ifdef MAC_OS.
17028
170292008-01-08 Richard Stallman <rms@gnu.org>
17030
17031 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17032
170332008-01-06 Nick Roberts <nickrob@snap.net.nz>
17034
17035 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17036 menu bar in parentheses.
17037
170382008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17039
17040 * m/7300.h:
17041 * m/acorn.h:
17042 * m/alliant-2800.h:
17043 * m/alliant.h:
17044 * m/alliant1.h:
17045 * m/alliant4.h:
17046 * m/altos.h:
17047 * m/amdahl.h:
17048 * m/apollo.h:
17049 * m/att3b.h:
17050 * m/aviion-intel.h:
17051 * m/aviion.h:
17052 * m/celerity.h:
17053 * m/clipper.h:
17054 * m/cnvrgnt.h:
17055 * m/convex.h:
17056 * m/cydra5.h:
17057 * m/delta88k.h:
17058 * m/dpx2.h:
17059 * m/dual.h:
17060 * m/elxsi.h:
17061 * m/f301.h:
17062 * m/gould-np1.h:
17063 * m/gould.h:
17064 * m/i860.h:
17065 * m/ibmps2-aix.h:
17066 * m/ibmrt-aix.h:
17067 * m/ibmrt.h:
17068 * m/irist.h:
17069 * m/is386.h:
17070 * m/isi-ov.h:
17071 * m/mega68.h:
17072 * m/mg1.h:
17073 * m/news-r6.h:
17074 * m/news-risc.h:
17075 * m/news.h:
17076 * m/nh3000.h:
17077 * m/nh4000.h:
17078 * m/ns16000.h:
17079 * m/ns32000.h:
17080 * m/nu.h:
17081 * m/orion.h:
17082 * m/orion105.h:
17083 * m/paragon.h:
17084 * m/pfa50.h:
17085 * m/plexus.h:
17086 * m/pyramid.h:
17087 * m/pyrmips.h:
17088 * m/sh3el.h:
17089 * m/sps7.h:
17090 * m/sr2k.h:
17091 * m/stride.h:
17092 * m/sun1.h:
17093 * m/sun2.h:
17094 * m/sun3-68881.h:
17095 * m/sun3-fpa.h:
17096 * m/sun3-soft.h:
17097 * m/sun3.h:
17098 * m/sun386.h:
17099 * m/symmetry.h:
17100 * m/tad68k.h:
17101 * m/tahoe.h:
17102 * m/targon31.h:
17103 * m/tek4300.h:
17104 * m/tekxd88.h:
17105 * m/tower32.h:
17106 * m/tower32v3.h:
17107 * m/ustation.h:
17108 * m/wicat.h:
17109 * m/xps100.h:
17110 * s/cxux.h:
17111 * s/cxux7.h:
17112 * s/dgux.h:
17113 * s/dgux4.h:
17114 * s/dgux5-4-3.h:
17115 * s/dgux5-4r2.h:
17116 * s/esix.h:
17117 * s/esix5r4.h:
17118 * s/hiuxmpp.h:
17119 * s/hiuxwe2.h:
17120 * s/iris3-5.h:
17121 * s/iris3-6.h:
17122 * s/isc2-2.h:
17123 * s/isc3-0.h:
17124 * s/isc4-0.h:
17125 * s/isc4-1.h:
17126 * s/newsos5.h:
17127 * s/newsos6.h:
17128 * s/osf1.h:
17129 * s/osf5-0.h:
17130 * s/riscix1-1.h:
17131 * s/riscix12.h:
17132 * s/sco4.h:
17133 * s/sco5.h:
17134 * s/sunos4-0.h:
17135 * s/sunos4-1.h:
17136 * s/sunos413.h:
17137 * s/sunos4shr.h:
17138 * s/umax.h:
17139 * s/unipl5-2.h:
17140 * s/xenix.h:
17141 * cxux-crt0.s:
17142 * unexapollo.c:
17143 * unexconvex.c:
17144 * unexenix.c:
17145 * unexsni.c: Remove files for systems no longer supported.
17146
17147 * m/intel386.h: Remove references to unsupported systems.
17148
17149 * w32.c (get_emacs_configuration): Remove reference to i860.
17150
17151 * sysdep.c: Remove dead code.
17152
171532008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17154
17155 * s/rtu.h:
17156 * m/masscomp.h: Remove files. Platform is obsolete.
17157
171582008-01-04 Michael Albinus <michael.albinus@gmx.de>
17159
17160 * dbusbind.c (Fdbus_method_return): New function.
17161 (xd_read_message): Add the serial number to the event.
17162 (Fdbus_register_method): Activate the function.
17163
171642008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17165
17166 * keyboard.c (read_key_sequence): Fix typo.
17167
171682008-01-03 Michael Albinus <michael.albinus@gmx.de>
17169
17170 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17171 (xd_signature, xd_append_arg): Handle element type detection for
17172 empty arrays.
17173 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17174 SDATA () calls; this must be solved more general.
17175 (Fdbus_register_signal): Use SBYTES instead of strlen.
17176
171772008-01-03 Magnus Henoch <magnus@zemdatav>
17178
17179 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17180 unsigned int for byte values (necessary for big-endian platform).
17181 (Fdbus_call_method): Handle the case of no returned arguments.
17182
171832007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17184
17185 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17186
171872007-12-31 Magnus Henoch <mange@freemail.hu>
17188
17189 * dbusbind.c (xd_signature): Signature of variant is just "v".
17190
171912007-12-30 Michael Albinus <michael.albinus@gmx.de>
17192
17193 * dbusbind.c: Fix several errors and compiler warnings.
17194 Reported by Tom Tromey <tromey@redhat.com>.
17195 (XD_ERROR, XD_DEBUG_MESSAGE)
17196 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17197 (xd_append_arg): Part for basic D-Bus types rewritten.
17198 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17199 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17200 appropriate.
17201 (xd_read_message): Return Qnil. Don't signal an error; it is not
17202 useful during event reading.
17203 (Fdbus_register_signal): Signal an error if the check for
17204 FUNCTIONP fails.
17205 (Fdbus_register_method): New function. The implementation is not
17206 complete, the call of the function signals an error therefore.
17207 (Fdbus_unregister_object): New function, renamed from
17208 Fdbus_unregister_signal. The initial check signals an error, if
17209 the object is not well formed.
17210
172112007-12-30 Richard Stallman <rms@gnu.org>
17212
17213 * textprop.c (get_char_property_and_overlay):
17214 Signal error if POSITION is out of range in a buffer.
17215
172162007-12-29 Martin Rudalics <rudalics@gmx.at>
17217
17218 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17219 because the original parameters are in pure storage now.
17220
172212007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17222
17223 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17224
172252007-12-22 Eli Zaretskii <eliz@gnu.org>
17226
17227 * callint.c (syms_of_callint) <command-history>: Add reference to
17228 history-length in the doc string.
17229
172302007-12-17 Jason Rumney <jasonr@gnu.org>
17231
17232 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17233 before passing as wParam.
17234
172352007-12-22 Michael Albinus <michael.albinus@gmx.de>
17236
17237 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17238 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17239 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17240 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17241 as number.
17242 (Fdbus_call_method): Fix docstring.
17243
172442007-12-21 Michael Albinus <michael.albinus@gmx.de>
17245
17246 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17247 New macros.
17248 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17249 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17250 Simplify.
17251 (xd_signature): New function.
17252 (xd_append_arg): Compute also signatures. Major rewrite.
17253 (xd_retrieve_arg): Make debug messages friendly.
17254 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17255 Check for signatures of arguments.
17256
172572007-12-19 Michael Albinus <michael.albinus@gmx.de>
17258
17259 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17260 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17261 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17262 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17263 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17264 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17265 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17266 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17267 (xd_retrieve_value): Remove. Functionality included in ...
17268 (xd_append_arg): New function.
17269 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17270
172712007-12-16 Michael Albinus <michael.albinus@gmx.de>
17272
17273 * dbusbind.c (top): Include <stdio.h>.
17274 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17275 dbus_message_new_method_call and dbus_message_new_signal.
17276 (Fdbus_register_signal): Rename unique_name to uname.
17277 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17278 non-existing unique name. Fix typos in matching rule. Return an
17279 object which is useful in Fdbus_unregister_signal.
17280 (Fdbus_unregister_signal): Reimplementation, in order to remove
17281 only the corresponding entry.
17282 (Vdbus_registered_functions_table): Change the order of entries.
17283 Apply these changes in xd_read_message and Fdbus_register_signal.
17284
172852007-12-16 Andreas Schwab <schwab@suse.de>
17286
17287 * fileio.c (Finsert_file_contents): Fix overflow check to not
17288 depend on undefined integer overflow.
17289
172902007-12-14 Jason Rumney <jasonr@gnu.org>
17291
17292 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17293 for characters above 127.
17294
172952007-12-13 Jason Rumney <jasonr@gnu.org>
17296
17297 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17298 before dereferencing array.
17299 (lookup_vk_code): Remove zero comparison.
17300
173012007-12-14 Michael Albinus <michael.albinus@gmx.de>
17302
17303 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17304 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17305 Use `unsigned int' instead of `uint'.
17306 (xd_read_message, Fdbus_register_signal): Split expressions into
17307 multiple lines before operators "&&" and "||", according to the
17308 GNU Coding Standards.
17309
173102007-12-14 Eli Zaretskii <eliz@gnu.org>
17311
17312 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17313
173142007-12-12 Juri Linkov <juri@jurta.org>
17315
17316 * buffer.c (Frename_buffer): In interactive spec replace
17317 `read-buffer' with `read-string' that uses `buffer-name-history'
17318 as history, and the current buffer's name as default.
17319
173202007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17321
17322 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17323 manipulating the backtrace manually.
17324 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17325 (struct backtrace, backtrace_list): Remove.
17326 (command_loop_1): Remove dead var `no_direct'.
17327
17328 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17329 preserve non-built-in buffer-local variables.
17330 (Fkill_all_local_variables): Don't re-create&re-set permanent
17331 buffer-local variables.
17332
173332007-12-09 Juri Linkov <juri@jurta.org>
17334
17335 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17336 Lisp code that uses `read-buffer' with current buffer as default.
17337
173382007-12-08 Michael Albinus <michael.albinus@gmx.de>
17339
17340 * dbusbind.c (xd_read_message): Generate an event for every
17341 registered handler. There might be several handlers registered
17342 for the same signal.
17343 (Fdbus_register_signal): Don't overwrite a registration for the
17344 same signal. Add a new registration if handlers are different.
17345 (Vdbus_registered_functions_table): Rework doc string.
17346
173472007-12-07 Michael Albinus <michael.albinus@gmx.de>
17348
17349 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17350 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17351 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17352 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17353 Unify argument lists.
17354 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17355 arguments and hash table keys. Use unique name for service.
17356 (Fdbus_unregister_signal): Remove checks.
17357 (Vdbus_registered_functions_table): Fix doc string.
17358
173592007-12-05 Magnus Henoch <mange@freemail.hu>
17360
17361 * process.c (make_process): Initialize pty_flag to 0.
17362
173632007-12-05 Jason Rumney <jasonr@gnu.org>
17364
17365 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17366 specified XBMs.
17367
173682007-12-05 Richard Stallman <rms@gnu.org>
17369
17370 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17371
173722007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17373
17374 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17375 New variable.
17376 (mac_try_close_socket) [MAC_OSX]: New function.
17377 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17378 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17379
17380 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17381 Use mac_try_close_socket.
17382
173832007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17384
17385 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17386 reloc_base.
17387 (copy_dysymtab): Compute relocation base here.
17388 (rebase_reloc_address) [__ppc64__]: New function.
17389 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17390 changed.
17391
173922007-12-05 Jason Rumney <jasonr@gnu.org>
17393
17394 * w32proc.c (sys_spawnve): Quote args with wildcards.
17395
173962007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17397
17398 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17399 __objc_* sections.
17400 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17401
174022007-12-05 Michael Albinus <michael.albinus@gmx.de>
17403
17404 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17405 Move check for Vdbus_registered_functions_table to
17406 xd_read_queued_messages.
17407 (xd_read_queued_messages): Protect xd_read_message calls by
17408 internal_condition_case_1.
17409
174102007-12-04 Michael Albinus <michael.albinus@gmx.de>
17411
17412 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17413 Qdbus_system_bus and Qdbus_session_bus, respectively.
17414 (Vdbus_intern_symbols): Remove.
17415 (Vdbus_registered_functions_table): New hash table.
17416 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17417 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17418 Rewrite in order to manage registered functions by hash table
17419 Vdbus_registered_functions_table.
17420
174212007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17422
17423 * xterm.c: Update URL to Window Manager Specification in comment.
17424
174252007-12-02 Michael Albinus <michael.albinus@gmx.de>
17426
17427 * config.in (HAVE_DBUS): Add.
17428
17429 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17430 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17431 (obj): Add $(DBUS_OBJ).
17432 (LIBES): Add $(DBUS_LIBS).
17433 (dbusbind.o): New target.
17434
17435 * dbusbind.c: New file.
17436
17437 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17438
17439 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17440 (Qdbus_event): New Lisp symbol.
17441 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17442 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17443 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17444
17445 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17446
174472007-12-01 Richard Stallman <rms@gnu.org>
17448
17449 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17450
174512007-11-30 Jason Rumney <jasonr@gnu.org>
17452
17453 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17454 (w32con_reset_terminal_modes): Clear screen buffer.
17455 (w32_face_attributes): Don't use color indexes that are out of range.
17456 Only reverse the default colors.
17457
17458 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17459 WINDOWSNT.
17460
17461 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17462
174632007-11-29 Jason Rumney <jasonr@gnu.org>
17464
17465 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17466 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17467 if the terminal colors are initialized.
17468 (unspecified_fg, unspecified_bg): Remove unused declarations.
17469
174702007-11-29 Andreas Schwab <schwab@suse.de>
17471
17472 * keyboard.c (apply_modifiers): Fix typo.
17473
174742007-11-29 Richard Stallman <rms@gnu.org>
17475
17476 * keymap.c (Fcurrent_local_map): Doc fix.
17477
174782007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17479
17480 * s/gnu-kfreebsd.h: New file.
17481
174822007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17483
17484 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17485 Don't cast redundantly.
17486
17487 * keyboard.c (KEY_TO_CHAR): New macro.
17488 (parse_modifiers, apply_modifiers): Accept integer arguments.
17489 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17490 for chars and symbol keys.
17491 After doing such remapping, apply function-key-map again.
17492
174932007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17494
17495 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17496 compiled anymore.
17497
174982007-11-26 Andreas Schwab <schwab@suse.de>
17499
17500 * process.c (list_processes_1): Fix indentation level of the
17501 command column.
17502
175032007-11-23 Andreas Schwab <schwab@suse.de>
17504
17505 * editfns.c (Fformat): Handle %c specially since it requires the
17506 argument to be of type int.
17507
175082007-11-23 Markus Triska <markus.triska@gmx.at>
17509
17510 * emacs.c (main): Call init_editfns before init_process, since
17511 init_process sets Vprocess_connection_type depending on OS release.
17512
175132007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17514
17515 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17516 (find_symbol_value): Use do_symval_forwarding.
17517
17518 * data.c (set_internal): Set the value in the `cons-cell' (for
17519 Buffer_Local_values) not only for frame-local variables.
17520
175212007-11-22 Andreas Schwab <schwab@suse.de>
17522
17523 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17524 values to sprintf.
17525 * keymap.c (Fsingle_key_description): Likewise.
17526 * print.c (print_object): Likewise.
17527
175282007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17529
17530 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17531 file for image is nil.
17532
175332007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17534
17535 * term.c: Include stdarg.h.
17536 (fatal): Implement using varargs.
17537 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17538
175392007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17540
17541 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17542 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17543 Update call to buffer_slot_type_mismatch.
17544 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17545 (buffer_slot_type_mismatch): Update.
17546 * buffer.c (buffer_local_types): Remove.
17547 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17548 (defvar_per_buffer): Set the type in the buffer_objfwd.
17549
175502007-11-21 Jason Rumney <jasonr@gnu.org>
17551
17552 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17553 CreateFileMapping returns NULL on failure.
17554
175552007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17556
17557 * search.c (Fset_match_data): Remove the `evaporate' feature.
17558 (unwind_set_match_data): Don't use the `evaporate' feature.
17559
175602007-11-21 Jason Rumney <jasonr@gnu.org>
17561
17562 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17563
17564 * w32console.c (w32con_write_glyphs): Remove unused variables.
17565
175662007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17567
17568 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17569
17570 * s/darwin.h (MULTI_KBOARD): Remove.
17571
17572 * macfns.c (x_create_tip_frame, Fx_create_frame)
17573 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17574
175752007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17576
17577 * buffer.c (Fbuffer_local_value): Remove redundant test.
17578 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17579 than in `current-buffer' to match the comment.
17580 Do the swap using swap_in_global_binding.
17581
17582 * data.c (store_symval_forwarding, set_internal):
17583 * eval.c (specbind): Remove dead code.
17584
17585 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17586 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17587 Since we do not want to see internal Lisp_*fwd objects here.
17588
175892007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17590
17591 * sysdep.c (init_system_name): Use getaddrinfo if available.
17592
17593 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17594 (x_scroll_bar_note_movement): start, end, with, height in struct
17595 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17596
175972007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17598
17599 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17600
176012007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17602
17603 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17604 This undoes Richard's change of 14-Oct-2002.
17605
17606 * alloc.c (allocate_other_vector):
17607 * lisp.h (allocate_other_vector): Remove.
17608
17609 * window.c (struct save_window_data): Move non-lisp data to the end
17610 and make it `int' rather than Lisp_Object.
17611 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17612 Done wrap/unwrap integer values.
17613 (Fset_window_configuration, compare_window_configurations):
17614 Update use of fields to their new types.
17615
17616 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17617 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17618 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17619 (SET_SCROLL_BAR_X_WINDOW): Remove.
17620 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17621 Access the new x_window field directly.
17622 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17623 Don't wrap/unwrap integers into Lisp_Objects.
17624 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17625 (x_scroll_bar_report_motion):
17626 Don't wrap/unwrap integers into Lisp_Objects.
17627 (x_term_init): Use SDATA.
17628 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17629 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17630 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17631 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17632 * xfns.c (x_set_background_color):
17633 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17634 Access the new x_window field directly.
17635
17636 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17637 (allocate_pseudovector): Make non-static.
17638
17639 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17640 (allocate_pseudovector): Declare.
17641 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17642
176432007-11-15 Andreas Schwab <schwab@suse.de>
17644
17645 * editfns.c (Fformat): Correctly format EMACS_INT values.
17646 Also take precision into account when formatting an integer.
17647
17648 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17649
176502007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17651
17652 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17653 (syms_of_keyboard): Defsubr it.
17654
17655 * data.c (swap_in_global_binding): Fix longstanding bug where
17656 store_symval_forwarding was not called with the right second argument,
17657 thus causing objfwd-ing from being dropped.
17658
176592007-11-14 Juanma Barranquero <lekktu@gmail.com>
17660
17661 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17662 (Fx_display_pixel_height, Fx_display_planes)
17663 (Fx_display_color_cells, Fx_server_max_request_size)
17664 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17665 (Fx_display_visual_class, Fx_display_save_under):
17666 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17667 (Fx_display_pixel_height, Fx_display_planes)
17668 (Fx_display_color_cells, Fx_server_max_request_size)
17669 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17670 (Fx_display_mm_height, Fx_display_mm_width)
17671 (Fx_display_backing_store, Fx_display_visual_class)
17672 (Fw32_select_font, Fx_display_save_under):
17673 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17674 (Fx_display_pixel_height, Fx_display_planes)
17675 (Fx_display_color_cells, Fx_server_max_request_size)
17676 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17677 (Fx_display_save_under): Fix typos in docstrings.
17678
176792007-11-14 Juanma Barranquero <lekktu@gmail.com>
17680
17681 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17682 corresponding to deleted entries; they are an implementation detail.
17683 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17684 Remove variables.
17685 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17686 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17687 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17688 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17689 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17690 (Fw32_define_rgb_color, Fw32_load_color_file)
17691 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17692 Fix typos in docstrings.
17693 (Fx_server_version): Reflow docstring.
17694 (Fw32_shell_execute): Doc fixes.
17695
176962007-11-13 Juanma Barranquero <lekktu@gmail.com>
17697
17698 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17699 if w32_parse_hot_key returned nil.
17700
177012007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17702
17703 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17704
177052007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17706
aac0c6e3
MR
17707 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17708
17709 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17710
17711 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17712 Remove W32_SCROLL_BAR_CLICK_EVENT.
17713
17714 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17715 Add MULTIMEDIA_KEY_EVENT.
17716
17717 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17718 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17719 (make_lispy_event) [WINDOWSNT]: Use it to translate
17720 MULTIMEDIA_KEY_EVENT.
17721
17722 * w32term.h (WM_APPCOMMAND): Define if not already.
17723 (GET_APPCOMMAND_LPARAM): Likewise.
17724
17725 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17726 WM_APPCOMMAND.
17727
17728 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17729 (syms_of_w32fns): Export and initialize it.
17730 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17731
177322007-11-09 Chong Yidong <cyd@stupidchicken.com>
17733
17734 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17735 twice.
17736
17737 * xdisp.c (handle_face_prop): Fix last change.
17738
177392007-11-09 Richard Stallman <rms@gnu.org>
17740
17741 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17742 not just for after-strings and before-strings.
17743 Call face_for_overlay_string and pass the overlay to it.
17744 (handle_display_prop): Determine whether property came from an overlay.
17745 Pass OVERLAY arg to handle_single_display_spec.
17746 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17747 (load_overlay_strings): Fill in it->string_overlays.
17748 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17749
17750 * xfaces.c (face_for_overlay_string): Function renamed from
17751 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17752
17753 * dispextern.h (struct it): New elt string_overlays.
17754 New elt from_overlay, also in stack.
17755 Rearrange a few elements.
17756 (face_for_overlay_string): Decl renamed from
17757 face_at_buffer_position_no_overlays, and add argument.
17758
177592007-11-09 Richard Stallman <rms@gnu.org>
17760
17761 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17762 to get the base face for an overlay string.
17763
17764 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17765
17766 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17767
17768 * xdisp.c (handle_stop): Move some code out of loop.
17769
177702007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17771
17772 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17773 Fix conversion from Lisp object to ATSUFontID.
17774
177752007-11-09 Jason Rumney <jasonr@gnu.org>
17776
17777 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17778
177792007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17780
17781 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17782 Don't assume regions are aligned to page boundary.
17783 (print_load_command_name): Add LC_UUID if defined.
17784
177852007-11-09 Richard Stallman <rms@gnu.org>
17786
17787 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17788
177892007-11-07 Jason Rumney <jasonr@gnu.org>
17790
17791 * s/windows95.h: Remove.
17792
177932007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17794
17795 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17796 abort with a message on unhandled store_type values.
17797
177982007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17799
17800 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17801 Remove HAVE_X11R5 and HAVE_X11R4.
17802
178032007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17804
17805 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17806
178072007-11-01 Johan Bockgård <bojohan@gnu.org>
17808
17809 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17810 Don't set s->stippled_p here, since it has already been set by
17811 x_set_glyph_string_gc from x_draw_glyph_string.
17812
178132007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17814
17815 * sunfns.c: Remove file.
17816
17817 * m/sun386.h:
17818 * m/sun2.h:
17819 * m/sparc.h: Remove Sun windows code.
17820
178212007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17822
17823 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17824 (init_keyboard): Set current_kboard's window-system to nil.
17825 (tty_read_avail_input): Typo.
17826 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17827
178282007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17829
17830 * s/usg5-4.h:
17831 * s/usg5-3.h:
17832 * s/ptx.h:
17833 * m/is386.h:
17834 * m/ibmps2-aix.h:
17835 * Makefile.in: Remove all mentions of X10.
17836
17837 * dispnew.c (syms_of_display): Don't mention version 10.
17838
178392007-10-28 Juanma Barranquero <lekktu@gmail.com>
17840
17841 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17842 ($(BLD)/abbrev.$(O)): Remove.
17843
178442007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17845
17846 Rewrite abbrev.c in Elisp.
17847 * image.c (Qcount): Don't declare as extern.
17848 (syms_of_image): Initialize and staticpro `Qcount'.
17849 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17850 * emacs.c (main): Don't call syms_of_abbrev.
17851 * Makefile.in (obj): Remove abbrev.o.
17852 (abbrev.o): Remove.
17853 * abbrev.c: Remove.
17854
178552007-10-26 Martin Rudalics <rudalics@gmx.at>
17856
17857 * window.c (window_min_size_2): Don't count header-line.
17858
178592007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17860
17861 * frame.h (struct frame): Move all bit fields after the first bit
17862 field to take advantage of the available space. Group all the
17863 chars together to reduce wasted space due to padding.
17864
178652007-10-26 Juanma Barranquero <lekktu@gmail.com>
17866
17867 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17868
17869 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17870 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17871 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17872 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17873 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17874 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17875 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17876 (last_marked, mark_object_loop_halt): Make static.
17877
17878 * frame.c (syms_of_frame) <delete-frame-functions>:
17879 Fix typo in docstring.
17880
178812007-10-25 Juanma Barranquero <lekktu@gmail.com>
17882
17883 * w32.c (init_environment): Fix tiny memory leak.
17884 (w32_get_resource): Remove unused variable `ok'.
17885
178862007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17887
17888 Make `window-system' into a keyboard-local variable (rather than
17889 frame-local as done originally by multi-tty).
17890
17891 * keyboard.h (struct kboard): Add Vwindow_system.
17892 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17893 (mark_kboards): Mark Vwindow_system.
17894
17895 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17896 (init_display): Don't set the obsolete `window-system' frame-param.
17897
17898 * xterm.c (x_term_init):
17899 * w32term.c (w32_create_terminal):
17900 * term.c (init_tty): Set Vwindow_system.
17901 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17902 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17903
17904 * xfns.c (Fx_create_frame, x_create_tip_frame):
17905 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17906 * macfns.c (Fx_create_frame):
17907 Don't set the obsolete `window-system' frame-param.
17908
17909 * frame.h (Qwindow_system): Remove.
17910 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17911 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17912
179132007-10-24 Richard Stallman <rms@gnu.org>
17914
17915 * frame.c (x_figure_window_size): For fullscreen case,
17916 set USPosition | PPosition without clobbering rest of window_prompting.
17917
17918 * keyboard.c (Fcurrent_idle_time): Doc fix.
17919
17920 * print.c (Fwith_output_to_temp_buffer): Doc fix.
17921
179222007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
17923
17924 * process.c (unwind_request_sigio): Only define if __ultrix__.
17925
17926 * callproc.c (child_setup): Remove spurious *.
17927
17928 * lisp.h (Fget_text_property): Declare.
17929 (have_menus_p): Declare it here rather than in sys-dep header files.
17930 * macterm.h (have_menus_p):
17931 * msdos.h (have_menus_p):
17932 * xterm.h (have_menus_p): Remove.
17933
17934 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17935 (Fmake_variable_frame_local): Just check the variable's const-ness
17936 rather than checking nil or t.
17937
179382007-10-22 Jason Rumney <jasonr@gnu.org>
17939
17940 * w32fns.c: Include math.h.
17941 (w32_abort): Declaration moved to nt/config.nt.
17942
17943 * s/ms-w32.h (HAVE_STDLIB_H): Define.
17944 (abort): Redefinition moved to nt/config.nt.
17945
17946 * m/windowsnt.h: Remove.
17947
179482007-10-22 Juanma Barranquero <lekktu@gmail.com>
17949
17950 * emacs.c (Fdump_emacs): Fix typo in message.
17951 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
17952 <installation-directory>: Reflow docstring.
17953
179542007-10-22 Juri Linkov <juri@jurta.org>
17955
17956 * minibuf.c: Allow minibuffer default to be a list of default values.
17957 With empty input use the first element of this list as returned default.
17958 (string_to_object)
17959 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
17960 (read_minibuf): If defalt is cons, set histstring to its car.
17961 (Fread_string): If default_value is cons, set val to its car.
17962 (Fread_buffer): If def is cons, use its car.
17963 (Fcompleting_read): If defalt is cons, set val to its car.
17964
179652007-10-21 Michael Albinus <michael.albinus@gmx.de>
17966
17967 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
17968
179692007-10-20 Juanma Barranquero <lekktu@gmail.com>
17970
17971 * doc.c (Fdocumentation): Check for advice in all cases.
17972
179732007-10-19 Chong Yidong <cyd@stupidchicken.com>
17974
17975 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
17976
179772007-10-19 Richard Stallman <rms@gnu.org>
17978
17979 * doc.c (Fdocumentation): Check for and handle an advised function.
17980
179812007-10-19 Juanma Barranquero <lekktu@gmail.com>
17982
17983 * process.c (Fset_process_filter): Doc fix.
17984
179852007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
17988 which caused key-translation-map to applied repeatedly (thus breaking
17989 double-mode).
17990
179912007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17992
17993 * xselect.c (x_own_selection, x_handle_selection_clear)
17994 (x_clear_frame_selections):
17995 * w32menu.c (list_of_panes, list_of_items):
17996 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
17997 * textprop.c (validate_plist, interval_has_all_properties)
17998 (interval_has_some_properties, interval_has_some_properties_list)
17999 (add_properties, text_property_list):
18000 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18001 * minibuf.c (Fassoc_string):
18002 * macselect.c (x_own_selection, x_clear_frame_selections)
18003 (Fx_disown_selection_internal):
18004 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18005 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18006
180072007-10-17 Chong Yidong <cyd@stupidchicken.com>
18008
18009 * process.c: Link to libs for calling res_init() if available.
18010 (Fmake_network_process): Call res_init() before getaddrinfo or
18011 gethostbyname, if possible.
18012
180132007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18014
18015 * lread.c (read1): Set pvectype for char_tables.
18016
18017 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18018 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18019 Add type checks.
18020 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18021
18022 * alloc.c (free_misc): Use XMISCTYPE.
18023 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18024
180252007-10-17 Glenn Morris <rgm@gnu.org>
18026
18027 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18028 (syms_of_minibuf): Add Qcompletion_ignore_case.
18029 * dired.c (Qcompletion_ignore_case): Change to external.
18030 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18031 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18032 (Fread_file_name): Use it rather than intern'ing.
18033
18034 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18035 (Fread_coding_system): Ignore case of user input.
18036
180372007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18038
18039 * xdisp.c (handle_display_prop): Ignore display specs after
18040 replacing one when string text is being replaced.
18041 (handle_single_display_spec): Pretend as if characters with display
18042 property haven't been consumed only when buffer text is being replaced.
18043
180442007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18045
18046 * xfns.c (Fx_create_frame, Fx_display_list):
18047 * window.c (window_fixed_size_p, enlarge_window)
18048 (shrink_window_lowest_first):
18049 * macterm.c (init_font_name_table):
18050 * macfns.c (Fx_create_frame, Fx_display_list):
18051 * lread.c (close_load_descs):
18052 * keyboard.c (read_char_x_menu_prompt):
18053 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18054 * coding.c (code_convert_region_unwind): Test the type of an object
18055 rather than just !NILP before extracting data from it.
18056
18057 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18058
18059 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18060 (XMISCANY): New macro.
18061 (XMISCTYPE): Use it.
18062 (struct Lisp_Misc_Any): New type.
18063 (union Lisp_Misc): Use it.
18064 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18065 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18066 (find_symbol_value, set_internal, default_value, Fset_default)
18067 (Fmake_variable_buffer_local, Fmake_local_variable)
18068 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18069 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18070 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18071 * alloc.c (allocate_buffer): Set the size and tag.
18072 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18073 Use XMISCANY.
18074 (die): Follow the GNU convention for error messages.
18075 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18076 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18077 tag any more.
18078 (set_buffer_internal_1):
18079 * frame.c (store_frame_param):
18080 * eval.c (specbind):
18081 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18082
18083 * doc.c (Fsnarf_documentation): Simplify.
18084
180852007-10-14 Juanma Barranquero <lekktu@gmail.com>
18086
18087 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18088 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18089
180902007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18091
18092 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18093
180942007-10-14 Juanma Barranquero <lekktu@gmail.com>
18095
18096 * eval.c (do_autoload): Don't save autoloads.
18097
18098 * data.c (Ffset): Save autoload of the function being set.
18099
181002007-10-07 John Paul Wallington <jpw@pobox.com>
18101
18102 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18103 parameter before setting up faces.
18104
181052007-10-13 Eli Zaretskii <eliz@gnu.org>
18106
18107 * ccl.c (Fregister_code_conversion_map):
18108 * keyboard.c (append_tool_bar_item): Reformat last change.
18109
18110 * lisp.h (eabs): Rename from `abs'. All callers changed.
18111
181122007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18113
18114 * buffer.c (add_overlay_mod_hooklist):
18115 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18116 * fontset.c (make_fontset):
18117 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18118 (append_tool_bar_item):
18119 * macmenu.c (grow_menu_items):
18120 * w32menu.c (grow_menu_items):
18121 * xmenu.c (grow_menu_items): Use larger_vector.
18122
181232007-10-13 Eli Zaretskii <eliz@gnu.org>
18124
18125 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18126 selected frame'' on MSDOS).
18127
181282007-10-12 Martin Rudalics <rudalics@gmx.at>
18129
18130 * frame.c (Qexplicit_name): New variable.
18131 (x_report_frame_params): Report it in parameter alist.
18132 (syms_of_frame): Intern and staticpro it.
18133
181342007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18135
18136 * macfns.c (x_create_tip_frame): Set terminal for frame.
18137
181382007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18139
18140 * frame.c (Qenvironment): Remove.
18141 (syms_of_frame) <Qenvironment>: Don't initialize.
18142 (Fdelete_frame): Don't treat the `environment' param specially.
18143 * frame.h (Qenvironment): Don't declare.
18144 * callproc.c (set_initial_environment): Don't set unused frame param.
18145
18146 * frame.c (Fframe_with_environment): Remove.
18147 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18148
18149 * lisp.h (Fframe_with_environment): Don't declare.
18150
181512007-10-10 Juanma Barranquero <lekktu@gmail.com>
18152
18153 * indent.c (indent_tabs_mode, last_known_column)
18154 (last_known_column_modified): Make static.
18155 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18156
181572007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18158
18159 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18160
181612007-10-09 Jason Rumney <jasonr@gnu.org>
18162
18163 * w32term.c (x_set_window_size): Disable code that attempts to tell
18164 Lisp code about a size change before it actually happens.
18165
181662007-10-09 Richard Stallman <rms@gnu.org>
18167
18168 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18169 return HANDLED_RETURN.
18170
181712007-10-08 Martin Rudalics <rudalics@gmx.at>
18172
18173 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18174 when there's an unread command event.
18175
18176 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18177 window autoselection act appropriately when leaving selected frame.
18178 (syms_of_frame): Initialize focus_follows_mouse.
18179 * frame.h (focus_follows_mouse): Extern it.
18180 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18181 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18182 * msdos.c (dos_rawgetc): Likewise.
18183 * w32term.c (w32_read_socket): Likewise.
18184 * xterm.c (handle_one_xevent): Likewise.
18185 * xdisp.c (syms_of_xdisp): In doc-string of
18186 mouse-autoselect-window mention focus-follows-mouse.
18187
181882007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18189
18190 * macterm.c (mac_load_query_font): Fix missing return value.
18191 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18192 Add BLOCK_INPUT.
18193
181942007-10-08 Richard Stallman <rms@gnu.org>
18195
18196 * xdisp.c (get_window_cursor_type): Implement documented behavior
18197 for cursor-in-non-selected-windows = t.
18198
181992007-10-08 Jason Rumney <jasonr@gnu.org>
18200
18201 * w32.c (w32_get_resource): Always close registry keys.
18202
182032007-10-08 Jason Rumney <jasonr@gnu.org>
18204
18205 * makefile.w32-in (LIBS): Add COMCTL32.
18206
18207 * w32fns.c (globals_of_w32fns): Init common controls.
18208
182092007-10-08 Richard Stallman <rms@gnu.org>
18210
18211 * image.c (our_memory_buffer): Rename from omfib_buffer.
18212
182132007-10-08 Richard Stallman <rms@gnu.org>
18214
18215 * buffer.c (Foverlays_at): Doc fix.
18216
182172007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18218
18219 * fns.c (Fplist_put): Preserve uneven tail data.
18220
182212007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18222
18223 * termhooks.h (enum event_kind): Remove trailing comma.
18224
18225 * frame.h (enum): Remove trailing comma.
18226
182272007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18228
18229 * w32proc.c (delete_child): Don't terminate threads of zombies.
18230
182312007-10-08 Martin Rudalics <rudalics@gmx.at>
18232
18233 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18234
18235 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18236 last-repeatable-command.
18237 (init_kboard): Initialize Vlast_repeatable_command.
18238 (command_loop_1): Set it to real_this_command unless that was
18239 bound to an input event.
18240 (mark_kboards): Mark it.
18241
182422007-10-08 Richard Stallman <rms@gnu.org>
18243
18244 * eval.c (condition-case): Doc fix.
18245
182462007-10-08 Masatake YAMATO <jet@gyve.org>
18247
18248 * xfaces.c (tty_supports_face_attributes_p): Fix code
18249 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18250 was copied and not edited.
18251
182522007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18253
18254 Add new `input-decode-map' keymap and use it for terminal
18255 escape sequences.
18256 * keyboard.h (struct kboard): Add Vinput_decode_map.
18257 Remove Vlocal_key_translation_map.
18258 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18259 (init_kboard): Init input-decode-map.
18260 Replace local-key-translation-map back with key-translation-map.
18261 (syms_of_keyboard): Declare input-decode-map.
18262 Remove local-key-translation-map. Update docstrings.
18263 (mark_kboards): Mark Vinput_decode_map.
18264 Don't mark Vlocal_key_translation_map.
18265 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18266 Replace local-key-translation-map back with key-translation-map.
18267 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18268 Bind in input-decode-map rather than function-key-map.
18269
18270 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18271 This was made redundant by the previous introduction of XSETPVECTYPE.
18272
182732007-10-09 Richard Stallman <rms@gnu.org>
18274
18275 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18276
182772007-09-29 Richard Stallman <rms@gnu.org>
18278
18279 * eval.c (internal_condition_case_2, internal_condition_case_1)
18280 (internal_condition_case): Reenable abort if x_catching_errors ()
18281 to see if that really happens and why.
18282
182832007-10-06 Andreas Schwab <schwab@suse.de>
18284
18285 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18286
182872007-10-04 Juanma Barranquero <lekktu@gmail.com>
18288
18289 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18290
182912007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18292
18293 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18294
182952007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18296
18297 * window.h (struct window):
18298 * window.c (struct save_window_data, struct saved_window):
18299 * termhooks.h (struct terminal):
18300 * process.h (struct Lisp_Process):
18301 * frame.h (struct frame):
18302 * buffer.h (struct buffer):
18303 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18304 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18305 The size field of (pseudo)vectors is now unsigned.
18306 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18307
18308 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18309 Turn `count' into an integer.
18310
18311 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18312 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18313 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18314 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18315 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18316
18317 * alloc.c (allocate_pseudovector): New fun.
18318 (ALLOCATE_PSEUDOVECTOR): New macro.
18319 (allocate_window, allocate_terminal, allocate_frame)
18320 (allocate_process): Use it.
18321 (mark_vectorlike): New function.
18322 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18323 (mark_terminals): Use it.
18324 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18325 (Fmake_byte_code): Use XSETPVECTYPE.
18326
18327 * frame.c (Fframe_parameters): Minor simplification.
18328
18329 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18330
18331 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18332
18333 * buffer.c (Fget_buffer_create, init_buffer_once):
18334 * lread.c (defsubr):
18335 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18336
18337 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18338 defined differently in the m/*.h files.
18339 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18340 (XSETPVECTYPE): New macro.
18341 (XSETPSEUDOVECTOR): Use it.
18342
18343 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18344 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18345
18346 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18347 * lread.c (defvar_per_buffer):
18348 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18349
18350 * window.c (candidate_window_p): Only consider as visible frames that
18351 are on the same terminal.
18352
18353 * m/ibms390x.h (MARKBIT): Remove unused macro.
18354
183552007-10-01 Juanma Barranquero <lekktu@gmail.com>
18356
18357 * lread.c (Fload): Fix typo in docstring.
18358
183592007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18360
18361 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18362 of a non-zero value can't yield zero.
18363
183642007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18365
18366 * term.c (term_clear_mouse_face, term_mouse_highlight)
18367 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18368
18369 * print.c (safe_debug_print): Use XHASH.
18370
18371 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18372 Lisp elements such as tags.
18373 (XHASH): New macro.
18374 (EQ): Use it.
18375 (SREF, SSET, STRING_COPYIN): Use SDATA.
18376 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18377
18378 * alloc.c (mark_terminal): Remove left-over declaration.
18379 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18380 (allocate_vectorlike): Remove type argument. Adjust callers.
18381 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18382 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18383
18384 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18385 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18386 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18387 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18388 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18389 Use them.
18390
18391 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18392 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18393 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18394
183952007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18396
18397 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18398 loaded by default.
18399
184002007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18401
18402 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18403 on this tty.
18404 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18405
18406 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18407 Update all users.
18408 (handle_one_term_event): Use Gpm_DrawPointer.
18409 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18410 Signal errors instead of returning nil. Always return nil.
18411 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18412 Make it a noop if gpm-mouse was not activated.
18413 (syms_of_term): Update names.
18414
184152007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18416
18417 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18418 (init_sys_modes): Check that gpm_tty is the current tty.
18419
18420 * alloc.c (allocate_terminal): Set the vector size to only count the
18421 lisp fields. Initialize those to nil.
18422 (mark_object): Don't treat terminals specially.
18423 (mark_terminal): Remove.
18424 (mark_terminals): Use mark_object instead.
18425
18426 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18427 the GC to the beginning.
18428
18429 * indent.h:
18430 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18431
18432 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18433
184342007-09-25 Jason Rumney <jasonr@gnu.org>
18435
18436 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18437
18438 * w32console.c (create_w32cons_output): Remove.
18439
18440 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18441
18442 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18443 (reset_sys_modes): Use reset_terminal_modes_hook.
18444
184452007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18446
18447 * eval.c (do_autoload): Don't output any message.
18448
184492007-09-24 Juri Linkov <juri@jurta.org>
18450
18451 * emacs.c (standard_args): Change priority of "--no-splash"
18452 from 40 to 3. Add "--no-desktop" with the same priority.
18453
184542007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18455
18456 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18457 and optimize the case where they are all 1.
18458
184592007-09-23 Johannes Weiner <hannes@saeurebad.de>
18460
18461 * lisp.h (abs): Define if not defined.
18462 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18463 Don't define `abs', since it's defined in lisp.h.
18464
184652007-09-22 Eli Zaretskii <eliz@gnu.org>
18466
18467 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18468 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18469 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18470 (init_tty): Use DEV_TTY instead of "/dev/tty".
18471 [WINDOWSNT]: No need to protect from NAME arg being null.
18472
184732007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18474
18475 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18476 up the tty state.
18477
184782007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18479
18480 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18481 (gpm_tty): Change its type.
18482 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18483 (gpm_tty): Change its type and initialize it.
18484 (Fterm_open_connection): Check the frame is indeed a tty.
18485 Use the new gpm_tty.
18486 (Fterm_close_connection): Use the new gpm_tty.
18487 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18488 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18489
184902007-09-21 Juanma Barranquero <lekktu@gmail.com>
18491
18492 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18493 underline_color, to draw strike-through.
18494
184952007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18496
18497 * lisp.h (allocate_terminal): Declare.
18498
18499 * window.c (candidate_window_p): Consider frames that are being placed
18500 by the user as somewhere between visible and iconified.
18501 (window_loop): Prefer windows on the current frame.
18502 (Fselect_window): Move the use of select-frame to the beginning so we
18503 can just delegate all the work (it'll call us back anyway).
18504
18505 * frame.c (Qdisplay_environment_variable):
18506 * frame.h (Qdisplay_environment_variable): Delete.
18507
18508 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18509 of the first arg, since that value may be a union.
18510
18511 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18512 parameter rather than Qdisplay_environment_variable. If all else
18513 fails, look for DISPLAY in initial-environment.
18514
185152007-09-21 Glenn Morris <rgm@gnu.org>
18516
18517 * Makefile.in (emacstool): Remove target.
18518 (lisp, shortlisp): Remove termdev.elc.
18519
185202007-09-21 Markus Triska <markus.triska@gmx.at>
18521
18522 * xterm.c (x_delete_display): Compile session management conditionally.
18523
185242007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18525
18526 * callproc.c (getenv_internal_1): New function.
18527 (getenv_internal): Use it.
18528 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18529
18530 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18531 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18532 (Fset_terminal_parameter): Work with dead terminals as well.
18533 (Fmodify_terminal_parameters): Remove.
18534
18535 * terminal.c (get_terminal): Handle terminals.
18536 Make sure the terminal returned is live.
18537 (create_terminal): Use allocate_terminal.
18538 (mark_terminals): Move to alloc.c.
18539 (delete_terminal): Use terminal->name as liveness status.
18540 NULL out fields after freeing their contents.
18541 Don't deallocate the object.
18542 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18543 rather than an int.
18544 (Fterminal_live_p): Accept non-integer arguments.
18545 (Fterminal_list): Return terminal objects rather than an ints.
18546
18547 * alloc.c (enum mem_type): New member for `terminal' objects.
18548 (allocate_terminal): New function.
18549 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18550 Handle terminals.
18551 (mark_terminal): New fun.
18552 (mark_terminals): Move from terminal.c.
18553
18554 * term.c (get_tty_terminal): Don't treat output_initial specially.
18555 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18556 (delete_tty): Use terminal->name as liveness status.
18557
18558 * termhooks.h (struct terminal): Make it into a pseudovector.
18559 Remove `deleted' replaced by checking `name's nullness.
18560
18561 * print.c (print_object): Handle terminals.
18562
18563 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18564 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18565
18566 * frame.c (make_terminal_frame):
18567 * keyboard.c (tty_read_avail_input):
18568 * w32term.c (x_delete_terminal):
18569 * xfns.c (Fx_create_frame, x_create_tip_frame):
18570 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18571
185722007-09-20 Glenn Morris <rgm@gnu.org>
18573
18574 * process.c (Fmake_network_process): Doc fix.
18575
185762007-09-19 Jason Rumney <jasonr@gnu.org>
18577
18578 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18579
185802007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18581
18582 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18583 Fix a C warning regarding variable constness.
18584
18585 * xterm.c (handle_one_xevent): Fix a C warning.
18586
185872007-09-18 Jason Rumney <jasonr@gnu.org>
18588
18589 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18590
185912007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18592
18593 * gtkutil.c (gdpy_def): New variable.
18594 (xg_initialize): Initialize gdpy_def.
18595 (xg_display_close): If no other display exists, set gdpy_def to a
18596 new connection.
18597
185982007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18599
18600 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18601 when we have no file name for the icon.
18602 (xg_tool_bar_expose_callback): Remove.
18603 (xg_create_tool_bar): Don't connect expose signal to
18604 xg_tool_bar_expose_callback.
18605 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18606
186072007-09-16 Andreas Schwab <schwab@suse.de>
18608
18609 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18610 values instead of zapping them.
18611
186122007-09-14 Glenn Morris <rgm@gnu.org>
18613
18614 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18615 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18616 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18617 scope and rename to omfib_buffer for clarity.
18618 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18619
186202007-09-14 Kenichi Handa <handa@m17n.org>
18621
18622 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18623
186242007-09-13 Jason Rumney <jasonr@gnu.org>
18625
18626 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18627
18628 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18629
18630 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18631 (mac_term_init): Call here instead, passing rif.
18632
186332007-09-13 Glenn Morris <rgm@gnu.org>
18634
18635 * s/hpux.h: No longer define `static' as nothing.
18636
186372007-09-13 Johan Bockgård <bojohan@gnu.org>
18638
18639 * callint.c (Fcall_interactively): Remove unused var `fun'.
18640
186412007-09-12 Romain Francoise <romain@orebokech.com>
18642
18643 * window.c (prefer_window_split_horizontally, display_buffer):
18644 Revert 2007-09-08 change.
18645
186462007-09-12 Glenn Morris <rgm@gnu.org>
18647
18648 * alloca.c: Remove file.
18649 * Makefile.in (alloca): Do not undef.
18650 (allocaobj, alloca.o): Remove.
18651 (otherobj): Remove allocaobj.
18652 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18653 * regex.c (C_ALLOCA): Remove all references and code that was only
18654 used when this was defined.
18655 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18656 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18657 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18658
18659 * Makefile.in (SOURCES, unlock, relock): Delete.
18660
18661 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18662 (menu_grab_callback): All uses changed.
18663
18664 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18665 (x_reply_selection_request): All uses changed.
18666
186672007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18668
18669 * lread.c (load_warn_old_style_backquotes): Change message to look
18670 better when it appears in the middle of byte-compiler messages.
18671
186722007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18673
18674 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18675
18676 * xterm.c (x_create_terminal): Add comment.
18677
18678 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18679
186802007-09-10 Richard Stallman <rms@gnu.org>
18681
18682 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18683
186842007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18685
18686 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18687 (DEFUN): Document `intspec', use it instead of `prompt'.
18688
18689 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18690
18691 * data.c (Finteractive_form): If the interactive specification starts
18692 with a `(', use it as a Lisp form.
18693
18694 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18695 name and file modes.
18696
18697 * callint.c (Fcall_interactively): Comment fixes.
18698
186992007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18700
18701 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18702 and compiled functions.
18703
187042007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18705
18706 * window.c (prefer_window_split_horizontally): New variable.
18707 (display_buffer): Consider splitting window horizontally depending
18708 on prefer_window_split_horizontally.
18709
187102007-09-08 Eli Zaretskii <eliz@gnu.org>
18711
18712 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18713
187142007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18715
18716 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18717
18718 * frame.c (x_set_frame_parameters): Check number is positive before
18719 using XFASTINT.
18720
18721 * window.c (freeze_window_start): Don't presume selected_window holds
18722 a window object.
18723 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18724
187252007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18726
18727 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18728
187292007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18730
18731 * window.c (Vsplit_window_preferred_function): New var.
18732 (Fdisplay_buffer): Use it.
18733 (syms_of_window): Export, and initialize it.
18734
187352007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18736
18737 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18738
187392007-09-06 Glenn Morris <rgm@gnu.org>
18740
18741 * gtkutil.c (menu_grab_callback) <cnt>:
18742 * xselect.c (x_reply_selection_request) <cnt>: Move static
18743 variable to file scope.
18744
187452007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18746
18747 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18748 consistent values of selected_frame and selected_window.
18749
187502007-09-04 Jason Rumney <jasonr@gnu.org>
18751
18752 * w32console.c (initialize_w32_display): Zero unused hooks.
18753
187542007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18755
18756 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18757 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18758
187592007-09-04 Jason Rumney <jasonr@gnu.org>
18760
18761 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18762 in w32console.c. Set up input. Remove XXX comments that have been
18763 confirmed as correct.
18764
18765 * s/ms-w32.h (MULTI_KBOARD): Define.
18766
18767 * w32console.c (one_and_only_w32cons): Remove.
18768 (initialize_w32_display): Take terminal argument.
18769
18770 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18771 initialize_w32_display.
18772 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18773
18774 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18775
18776 * keyboard.c (discard_mouse_events): Discard it.
18777 (make_lispy_event): Translate it to a lisp event.
18778 (lispy_wheel_names): Add wheel-left and right events.
18779 (syms_of_keyboard): Enlarge wheel_syms.
18780
18781 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18782 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18783
18784 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18785
18786 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18787 from WM_MOUSEHWHEEL.
18788 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18789
18790 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18791 terminal.
18792
18793 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18794 keyboard for the terminal.
18795
187962007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18797
18798 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18799 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18800 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18801 and resume-tty-function to resume-tty-hook.
18802 (Fsuspend_tty, Fresume_tty): Use new names.
18803
188042007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18805
18806 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18807 if it starts with "n:".
18808
188092007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18810
18811 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18812
188132007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18814
18815 * frame.h:
18816 * frame.c (Qterm_environment_variable): Remove.
18817 (syms_of_frame): Don't init and staticpro it.
18818
18819 * callproc.c (getenv_internal): Remove special case for $TERM.
18820
18821 * callproc.c (Vinitial_environment): New variable.
18822 (set_initial_environment): Initialize it.
18823 (syms_of_callproc): Declare it.
18824 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18825 TERM under which a process runs is never related to the TERM in which
18826 Emacs is running.
18827
188282007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18829
18830 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18831 * s/darwin.h: ... do it here.
18832
188332007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18834
18835 * lisp.h (set_initial_environment): Rename from set_global_environment.
18836
18837 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18838 removed by mistake on the multi-tty branch.
18839
18840 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18841 (Fmodify_frame_parameters): Return a value.
18842
18843 * image.c (png_load): Comment-out var only used in commented-out code.
18844
18845 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18846 before passing it to mark_object.
18847
18848 * xfaces.c (internal_resolve_face_name): Return a value.
18849 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18850
18851 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18852 (x_icon): Comment-out var only used in commented-out code.
18853
188542007-08-29 Romain Francoise <romain@orebokech.com>
18855
18856 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18857 QUIT hasn't been provided.
18858
188592007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18860
18861 * callproc.c (child_setup, getenv_internal): Use the
18862 display-environment-variable and term-environment-variable frame params.
18863 (set_initial_environment): Initialise Vprocess_environment.
18864
18865 * config.in: Disable multi-keyboard support on a mac.
18866
18867 * frame.c (Qterm_environment_variable)
18868 (Qdisplay_environment_variable): New variables.
18869 (syms_of_frame): Intern and staticpro them.
18870 (Fmake_terminal_frame): Disable output method test.
18871
18872 * frame.h: Declare them here.
18873
18874 * macfns.c (x_set_mouse_color): Get rif from the frame.
18875 (x_set_tool_bar_lines): Don't use updating_frame.
18876 (mac_window): Add 2 new parameters for consistency with other systems.
18877 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18878 frame parameters following what is done in X11 and w32. Don't use
18879 FRAME_MAC_DISPLAY_INFO.
18880 (Fx_open_connection, start_hourglass): Remove window-system check.
18881 (x_create_tip_frame): Get the keyboard from the terminal.
18882
18883 * macmenu.c: Reorder includes.
18884 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18885
18886 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18887 terminal parameter.
18888 (x_clear_frame): Add a frame parameter.
18889 (note_mouse_movement): Get rif from the frame.
18890 (mac_term_init): Initialize the terminal.
18891 (mac_initialize): Make static and move terminal initialization ...
18892 (mac_create_terminal): ... to this new function.
18893
18894 * macterm.h (struct mac_display_info): Add terminal.
18895 (mac_initialize): Delete declaration.
18896
18897 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18898
18899 * sysdep.c: Comment out text after #endif.
18900
18901 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18902 is defined. Better initialize ttys in windows. Use terminal
18903 specific mouse_position_hook.
18904
18905 * termhooks.h (union display_info): Add mac_display_info.
18906
18907 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18908 Set the default minibuffer frame, window_system and the rest of the
18909 frame parameters following what is done in X11.
18910
18911 * w32term.c (w32_initialize): Make static.
18912
18913 * xselect.c (x_handle_selection_clear): Only access
18914 terminal->kboard when MULTI_KBOARD is defined.
18915
18916 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18917 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18918
189192007-08-29 Jason Rumney <jasonr@gnu.org>
18920
18921 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18922 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18923
18924 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18925 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18926
18927 * keyboard.c (restore_kboard_configuration): Only define when
18928 MULTI_KBOARD defined.
18929
18930 * makefile.w32-in: Update dependancies from Makefile.in.
18931 (OBJ1): Add terminal.$(O)
18932
18933 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18934 Don't define function body.
18935 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18936
18937 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18938
18939 * w32.c (request_sigio, unrequest_sigio): Remove.
18940
18941 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18942 (w32con_clear_frame, w32con_clear_end_of_line)
18943 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18944 (w32con_delete_glyphs, w32con_set_terminal_window)
18945 (scroll_line, w32_sys_ring_bell): Add frame arg.
18946 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
18947 Add terminal arg.
18948 (PICK_FRAME): Remove.
18949 (w32con_write_glyphs): Use frame specific terminal coding.
18950 (one_and_only_w32cons): New global variable.
18951 (initialize_w32_display): Use it for storing hooks.
18952 (create_w32cons_output): New function.
18953
18954 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
18955 arg a frame.
18956
18957 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
18958 Set window_system.
18959 (x_set_tool_bar_lines): Don't use updating_frame.
18960 (Fx_create_frame): Set terminal and ref count.
18961 (Fx_open_connection): Remove window-system check.
18962
18963 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
18964
18965 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
18966 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
18967 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
18968 Add frame arg.
18969 (x_delete_terminal, w32_create_terminal): New functions.
18970 (w32_term_init): Create a terminal.
18971 (w32_initialize): Move terminal specific initialization to
18972 w32_create_terminal.
18973
18974 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
18975 (w32_clear_rect, w32_clear_area): Use background from frame.
18976 (w32_display_info): Add terminal.
18977 (w32_sys_ring_bell, x_delete_display): Declare here.
18978
18979 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
18980
18981 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
18982
189832007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
18984
18985 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
18986 Fix get_named_tty calls for the controlling tty.
18987
189882007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
18989
18990 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
18991
189922007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
18993
18994 * term.c (tty_insert_glyphs): Add missing first parameter.
18995
189962007-08-29 Károly Lőrentey <karoly@lorentey.hu>
18997
18998 * buffer.c (Fbuffer_list, Fbury_buffer):
18999 Take frame->buried_buffer_list into account.
19000
19001 * cm.c (current_tty): New variable, for cmputc().
19002 (cmputc): Use it.
19003 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19004 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19005 (cmgoto): Add tty parameter. Pass it on to calccost().
19006 Use emacs_tputs() instead of tputs().
19007
19008 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19009 tputs().
19010 (current_tty): New variable, for cmputc().
19011 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19012
19013 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19014 (internal_condition_case, internal_condition_case_1)
19015 (internal_condition_case_2): Don't abort when x_catching_errors.
19016
19017 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19018 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19019 prevent crashes caused by bogus longjmps in read_char.
19020
19021 * keymap.h (Fset_keymap_parent): Add EXFUN.
19022
19023 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19024 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19025 Remove redundant definition.
19026
19027 * macfns.c (x_set_mouse_color, x_make_gc):
19028 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19029
19030 * w32term.c (x_free_frame_resources):
19031 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19032 (w32_initialize): Use the accessor macros for terminal characteristics.
19033
19034 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19035 Use the accessor macros for terminal characteristics.
19036 * msdos.c (internal_terminal_init): Use the accessor macros for
19037 terminal characteristics.
19038 (ScreenVisualBell, internal_terminal_init):
19039 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19040
19041 * termopts.h (no_redraw_on_reenter): Declare.
19042
19043 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19044 (mark_terminals, mark_ttys): Declare.
19045 (Fgarbage_collect): Call them.
19046 (mark_object): Mark buried_buffer_list.
19047
19048 * prefix-args.c: Include stdlib.h for exit.
19049
19050 * syssignal.h: Add comment.
19051
19052 * indent.c: Include stdio.h.
19053
19054 * window.h (Vinitial_window_system): Declare.
19055 (Vwindow_system): Delete declaration.
19056
19057 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19058
19059 * image.c (lookup_image): Don't initialize `c' until the xasserts
19060 have been run.
19061
19062 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19063 FRAME_FOREGROUND_PIXEL.
19064
19065 * print.c (print_preprocess): Don't lose print_depth levels while
19066 iterating.
19067
19068 * widget.c (update_from_various_frame_slots):
19069 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19070
19071 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19072 frames.
19073 (window_internal_height): Remove bogus make_number call.
19074 (init_window_once): Call make_terminal_frame with two zero parameters.
19075
19076 * fileio.c (Fread_file_name): Update comment.
19077
19078 * callint.c (Fcall_interactively):
19079 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19080 Make sure it is correctly unwound.
19081
19082 * xsmfns.c (x_session_close): New function.
19083
19084 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19085 Delete declarations.
19086
19087 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19088 (x_output): Remove background_pixel and foreground_pixel fields.
19089 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19090 (x_delete_device, x_session_close): Declare.
19091
19092 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19093 (read_filtered_event): Call `read_char' with a local
19094 `wrong_kboard_jmpbuf'.
19095
19096 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19097 Don't call single_kboard_state. Use FRAME_RIF.
19098
19099 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19100 systems.
19101
19102 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19103 (Fframe_with_environment, Fset_input_meta_mode)
19104 (Fset_quit_char): EXFUN.
19105 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19106 (init_sys_modes, reset_sys_modes): Update prototypes.
19107 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19108
19109 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19110 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19111 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19112 Delete declarations.
19113 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19114 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19115 New declarations.
19116
19117 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19118 already does that during init_display(). Call syms_of_keymap
19119 before syms_of_keyboard. Call `syms_of_terminal'.
19120 Call set_initial_environment, not set_process_environment.
19121 (shut_down_emacs): Call reset_all_sys_modes() instead of
19122 reset_sys_modes().
19123
19124 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19125 (internal_resolve_face_name, resolve_face_name_error): New functions.
19126 (resolve_face_name): Protect against loops and errors thrown by Fget.
19127 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19128 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19129
19130 * scroll.c: Replace CURTTY() with local variables throughout the
19131 file (where applicable).
19132 (calculate_scrolling, calculate_direct_scrolling)
19133 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19134 characteristics.
19135
19136 * keymap.c (Vfunction_key_map): Remove.
19137 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19138 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19139 (Vkey_translation_map): Remove.
19140 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19141 (Fdescribe_buffer_bindings)
19142 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19143 Update for terminal-local key-translation-map.
19144
19145 * Makefile.in (callproc.o): Update dependencies.
19146 (lisp, shortlisp): Add termdev.elc.
19147 (obj): Add terminal.o.
19148 (terminal.o): Add dependencies.
19149 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19150 (data.o, fns.o): Add termhooks.h dependency.
19151 (SOME_MACHINE_LISP): Add dnd.elc.
19152 (minibuf.o): Fix typo.
19153 Update dependencies.
19154
19155 * data.c (do_symval_forwarding, store_symval_forwarding)
19156 (find_symbol_value): Use the selected frame's keyboard, not
19157 current_kboard.
19158
19159 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19160 Vwindow_system.
19161
19162 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19163 Fmenu_bar_open.
19164 (syms_of_xmenu): Update defsubr.
19165 (mouse_position_for_popup, Fx_popup_menu)
19166 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19167 (set_frame_menubar, free_frame_menubar)
b97439ce 19168 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19169 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19170 an X frame.
19171
19172 * xselect.c (x_own_selection): Abort if not an X frame.
19173 (some_frame_on_display): Check if it is an X frame.
19174 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19175
19176 * coding.c: Include frame.h and termhooks.h.
19177 (terminal_coding, keyboard_coding): Delete.
19178 (Fset_terminal_coding_system_internal)
19179 (Fset_keyboard_coding_system_internal)
19180 (Fkeyboard_coding_system)
19181 (Fterminal_coding_system): Add a terminal parameter.
19182 Get terminal_coding from the terminal.
19183 (init_coding_once): Don't call setup_coding_system here.
19184
19185 * dispextern.h (set_scroll_region, turn_off_insert)
19186 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19187 (tty_clear_end_of_line, tty_setup_colors)
19188 (delete_tty, updating_frame)
19189 (produce_special_glyphs, produce_glyphs, write_glyphs)
19190 (insert_glyphs): Remove.
19191 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19192 (tty_turn_off_highlight, get_tty_size): Add declaration.
19193 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19194
19195 * frame.h (enum output_method): Add output_initial.
19196 (struct x_output): Delete.
19197 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19198 Access foreground_pixel and background_pixel directly from the frame.
19199 (tty_display): Delete.
19200 (struct frame): Add buried_buffer_list, foreground_pixel,
19201 background_pixel and terminal. Delete kboard.
19202 (union output_data): Add tty.
19203 (FRAME_KBOARD): Get the kboard from the terminal.
19204 (FRAME_INITIAL_P): New macro.
19205 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19206 (Qterm_environment_variable, Qdisplay_environment_variable)
19207 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19208 New declarations.
19209
19210 * termchar.h (tty_output, tty_display_info): New structures.
19211 (tty_list): Declare.
19212 (FRAME_TTY, CURTTY): New macros.
19213 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19214 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19215 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19216 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19217
19218 * callproc.c: Include frame.h and termhooks.h, for terminal
19219 parameters.
19220 (add_env): New function.
19221 (child_setup): Use it.
19222 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19223 (getenv_internal): Fix get_terminal_param call.
19224 (Fgetenv_internal, egetenv): Update doc.
19225 (syms_of_callproc): Initialize Vprocess_environment to nil.
19226 Register and initialize them. Remove obsolete defvars. Update doc
19227 strings.
19228 (child_setup): Handle Vlocal_environment_variables.
19229 (getenv_internal): Add terminal parameter.
19230 Handle Vlocal_environment_variables.
19231 (Fgetenv_internal): Add terminal parameter.
19232 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19233 environment in a frame (not terminal) parameter. Update doc strings.
19234 (set_initial_environment): Rename from set_global_environment.
19235 Store Emacs environment in initial frame parameter.
19236
19237 * xdisp.c (redisplay_internal): Update references to
19238 `previous_terminal_frame'.
19239 (display_mode_line, Fformat_mode_line): Replace calls to
19240 `push_frame_kboard' with `push_kboard'.
19241 (get_glyph_string_clip_rects): Add extra parentheses and
19242 braces to prevent compiler warnings.
19243 (calc_pixel_width_or_height): Add xassert to check that the
19244 frame is alive. Don't call `lookup_image' on a termcap frame.
19245 (message2_nolog, message3_nolog, redisplay_internal)
19246 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19247 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19248 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19249 (Fx_display_pixel_width, Fx_display_pixel_height)
19250 (Fx_display_planes, Fx_display_color_cells)
19251 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19252 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19253 (Fx_display_backing_store, Fx_display_visual_class)
19254 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19255 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19256
19257 * xfns.c (x_set_foreground_color x_set_background_color)
19258 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19259 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19260 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19261 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19262 terminal that is being deleted.
19263 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19264 frame parameter, and make sure it overrides any user-supplied setting.
19265 (Fx_close_connection, Fx_synchronize): Unify argument names with
19266 the rest of the DEFUNs.
19267
19268 * dispnew.c (Fsend_string_to_terminal): Update call to
19269 `get_tty_terminal'.
19270 (Fredraw_frame, Fsend_string_to_terminal)
19271 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19272 FRAME_TERMCAP_P and FRAME_TTY.
19273 (window_change_signal): Don't believe width/height values that are
19274 impossibly small.
19275 (Vinitial_window_system): Rename from Vwindow_system.
19276 (termscript, Wcm, rif): Delete.
19277
19278 * termhooks.h (struct terminal): New struct containing the
19279 previously global text display hooks and new members NAME,
19280 DELETED and PARAM_ALIST.
19281 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19282 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19283 (FRAME_RIF): New macros.
19284 (get_terminal_param, get_device): New declarations.
19285 (termscript): Delete declaration.
19286
19287 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19288 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19289 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19290 FRAME_FOREGROUND_PIXEL.
19291 (x_fully_uncatch_errors): Disable definition.
19292 (x_scroll_bar_expose): Fix reference to foreground pixel.
19293 (XTread_socket): Disable loop on all X displays.
19294 (x_delete_terminal): Don't set terminal->deleted and let
19295 delete_terminal delete the frames on the terminal.
19296 (x_delete_display): Doc update to reflect changes in
19297 delete_terminal.
19298 (x_display_info) <terminal>: Move member earlier in the struct.
19299 (deleting_tty): Remove old variable.
19300 (Fsuspend_tty): Call clear_tty_hooks.
19301 (Fresume_tty, init_tty): Call set_tty_hooks.
19302 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19303 errors on X frames.
19304 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19305 (handle_one_xevent): Initialize `f' to NULL.
19306 (x_delete_terminal, x_create_terminal): New functions.
19307 (XTset_terminal_modes, XTreset_terminal_modes)
19308 (XTread_socket, x_connection_closed, x_term_init)
19309 (x_term_init, x_delete_display): Add terminal parameter.
19310 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19311 X connections.
19312
19313 * frame.c: Include termchar.h.
19314 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19315 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19316 (Qdisplay_environment_variable): New vars.
19317 (Fframep): Deal with output_initial.
19318 (Fframe-live-p): Doc fix.
19319 (Fwindow-system): New function.
19320 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19321 (make_terminal_frame): Don't create frames on a terminal that is
19322 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19323 (store_frame_param): Check for found_for_frame before calling XFRAME.
19324 (Fmake_terminal_frame): Handle NULL tty names correctly.
19325 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19326 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19327 frames to refer to a deleted frame in their 'environment parameter.
19328 (Fframe_with_environment): New function.
19329 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19330 (get_future_frame_param): New function.
19331 (Fmake_terminal_frame): Use it.
19332 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19333
19334 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19335 * sysdep.c (reset_sys_modes): Update for renames.
19336
19337 * keyboard.c (tty_read_avail_input): New function.
19338 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19339 (syms_of_keyboard): Defsubr them.
19340 (Fset_input_meta_mode, Fset_quit_char): New functions.
19341 (Fset_input_mode): Split to above functions.
19342 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19343 parameter. Use it in call to `read_char'.
19344 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19345 Set wrong_kboard_jmpbuf correctly in recursive calls.
19346 Use current_kboard to access Vkeyboard_translate_table.
19347 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19348 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19349 Update longjmp invocations. Remember the original current_kboard,
19350 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19351 changes it. Comment out unnecessary calls to
19352 `record_single_kboard_state' and `any_kboard_state'.
19353 Update recursive calls.
19354 (wrong_kboard_jmpbuf): Remove global variable.
19355 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19356 Handle deleted interrupted_kboards correctly; that is a legal
19357 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19358 and read_char calls. Abort if interrupted_kboard died in read_char.
19359 (any_kboard_state, single_kboard_state)
19360 (push_frame_kboard): Remove function.
19361 (pop_kboard): Switch out of single_kboard mode if the kboard has
19362 been deleted. Remove unused variable. Help debugging by not
19363 changing current_kboard unnecessarily. Set current_kboard to the
19364 kboard of the selected frame when the stored kboard object has
19365 been deleted before pop_kboard.
19366 (temporarily_switch_to_single_kboard): Change first parameter to a
19367 frame pointer. Throw an error when caller wants to change kboards
19368 while in single_kboard mode. Don't push_kboard if we weren't in
19369 single kboard state. Don't pop_kboard if we popped into any
19370 kboard state.
19371 (restore_kboard_configuration): Abort if pop_kboard changed the
19372 kboard in single_kboard mode. Call pop_kboard only after setting
19373 up single_kboard mode.
19374 (Frecursive_edit): Switch to single_kboard mode only in nested
19375 command loops.
19376 (cmd_error, command_loop, command_loop_1, timer_check):
19377 Comment out unnecessary call to `any_kboard_state' and
19378 `record_single_kboard_state'.
19379 (delete_kboard): Exit single_kboard mode if we have just deleted
19380 that kboard. Use FRAME_KBOARD.
19381 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19382 `fatal_error_signal'.
19383 (record_single_kboard_state): Don't push_kboard if we weren't in
19384 single kboard state. Don't pop_kboard if we popped into any
19385 kboard state.
19386 (push_frame_kboard): Rename to push_kboard.
19387 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19388 (read_avail_input): Read input from all terminals.
19389 (mark_kboards): Also mark Vkeyboard_translate_table.
19390 (kbd_buffer_store_event_hold): Simplify condition.
19391 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19392 (Vkeyboard_translate_table): Move to struct kboard.
19393 (init_kboard): Initialize Vkeyboard_translate_table.
19394 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19395 Vkeyboard_translate_table. Update doc strings. Update docs of
19396 local-function-key-map and function-key-map.
19397
19398 * terminal.c: New file.
19399
19400 * term.c: Include errno.h.
19401 (Vring_bell_function, device_list, initial_device)
19402 (next_device_id, ring_bell, update_begin, update_end)
19403 (set_terminal_window, cursor_to, raw_cursor_to)
19404 (clear_to_end, clear_frame, clear_end_of_line)
19405 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19406 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19407 (syms_of_term): Move their initialization to terminal.c.
19408 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19409 (Ftty_display_color_cells)
19410 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19411 (clear_tty_hooks, set_tty_hooks)
19412 (init_tty, maybe_fatal): New functions.
19413 (Ftty_type): Return nil if terminal is not on a tty instead of
19414 throwing an error. Doc update.
19415 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19416 Doc update. Initialize new subrs and variables.
19417 (delete_tty): Use terminal->deleted.
19418 (tty_set_terminal_modes): Rename from set_terminal_modes.
19419 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19420 (set_scroll_region): Rename to `tty_set_scroll_region'.
19421 (turn_on_insert): Rename to `tty_turn_on_insert'.
19422 (turn_off_insert): Rename to `tty_turn_off_insert'.
19423 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19424 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19425 (toggle_highligh): Rename to `tty_toggle_highlight'.
19426 (background_highlight): Rename to `tty_background_highlight'.
19427 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19428 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19429 (tty_set_scroll_region, tty_background_highlight)
19430 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19431 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19432 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19433 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19434 Add static modifier.
19435 (tty_reset_terminal_modes, tty_set_terminal_window)
19436 (tty_set_scroll_region, tty_background_highlight)
19437 (tty_highlight_if_desired, tty_cursor_to)
19438 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19439 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19440 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19441 renames.
19442
194432007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19444
19445 * keyboard.c: Qrtl is new.
19446 (parse_tool_bar_item): Handle :rtl keyword.
19447 (syms_of_keyboard): Intern :rtl keyword.
19448
19449 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19450
19451 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19452 so no Lisp code is executed.
19453 (file_for_image, find_rtl_image): New functions.
19454 (xg_get_image_for_pixmap): Use file_for_image.
19455 (update_frame_tool_bar): If direction is RTL, use RTL image if
19456 defined. Use Gtk stock images if defined.
19457
194582007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19459
19460 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19461 for nonexistent or zero-width glyph in composition glyph.
19462
194632007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19464
19465 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19466
19467 * xdisp.c (Finvisible_p): New function.
19468 (syms_of_xdisp): defsubr it.
19469
194702007-08-24 Juanma Barranquero <lekktu@gmail.com>
19471
19472 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19473 Doc fixes.
19474
194752007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19476
19477 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19478
194792007-08-24 Martin Rudalics <rudalics@gmx.at>
19480
19481 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19482 whether decoding has modified buffer contents.
19483
194842007-08-24 Jason Rumney <jasonr@gnu.org>
19485
19486 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19487 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19488 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19489 (init_svg_functions) [HAVE_NTGUI]: New function.
19490 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19491 (svg_load_image): Use them.
19492 (svg_load_image) [HAVE_NTGUI]: Implement background.
19493
194942007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19495
19496 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19497 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19498 (LIBX): Remove @RSVG_LIBS@.
19499 (LIBES): Add $(RSVG_LIBS).
19500
19501 * image.c (svg_load_image): Blend with specified background if exists.
19502 Use IMAGE_BACKGROUND. Add Mac OS Support.
19503
19504 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19505 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19506 Remove macros.
19507 [MAC_OSX] (socket_callback): Do nothing.
19508 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19509 ReceiveNextEvent.
19510 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19511 socket_callback.
19512 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19513
195142007-08-22 Glenn Morris <rgm@gnu.org>
19515
19516 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19517
195182007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19519
19520 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19521
19522 * image.c: Add support for SVG images. Some additional comments
19523 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19524 (svg_image_p): New function to test for SVG image.
19525 (svg_load): New function to load SVG image.
19526 (svg_load_image): New function, helper for svg_load.
19527 (Qsvg): New Lisp_object.
19528 (svg_keyword_index): New enum.
19529 (svg_format): New static `image_keyword' struct.
19530 (svg_type): New static `image_type' struct.
19531 (librsvg/rsvg.h): Include it.
19532
195332007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19534
19535 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19536
195372007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19538
19539 * lread.c (Qold_style_backquotes): New var.
19540 (syms_of_lread): Init and staticpro it.
19541 (load_warn_old_style_backquotes): New fun.
19542 (Fload): Use them to warn about old style backquotes.
19543 (end_of_file_error, Fload): Remove unused vars.
19544
19545 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19546
19547 * lread.c (Vold_style_backquotes): New var.
19548 (syms_of_lread): Init and export it to Elisp.
19549 (read1): Set it when we find an old-style (back)quote.
19550
195512007-08-22 Jason Rumney <jasonr@gnu.org>
19552
19553 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19554
195552007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19556
19557 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19558
195592007-08-19 Richard Stallman <rms@gnu.org>
19560
19561 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19562
195632007-08-19 Andreas Schwab <schwab@suse.de>
19564
19565 * alloc.c (pure): Round PURESIZE up.
19566
195672007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19568
19569 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19570 active frame.
19571
195722007-08-16 Richard Stallman <rms@gnu.org>
19573
19574 * eval.c (Fcommandp): Add parens to clarify.
19575
19576 * minibuf.c (Fall_completions): Use enum for type of table.
19577
19578 * emacs.c (USAGE2): Improve text.
19579
195802007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19581
19582 * term.c (tty_default_color_capabilities): Declare static
19583 variables in file scope, to avoid HPUX compiler problem.
19584
195852007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19586
19587 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19588 to gtk_toolbar_insert.
19589
195902007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19591
19592 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19593
19594 * insdel.c (reset_var_on_error): New fun.
19595 (signal_before_change, signal_after_change):
19596 Use it to reset (after|before)-change-functions to nil in case of error.
19597 Bind inhibit-modification-hooks to t.
19598 Don't bind (after|before)-change-functions to nil while they run.
19599
196002007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19601
19602 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19603 filling pixmap with stippled background.
19604
196052007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19606
19607 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19608 Don't use invisible frame as parent window for repositioning.
19609
196102007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19611
19612 * print.c (new_backquote_output): Rename from old_backquote_output.
19613 (print): Inverse its logic (according to its name) so as to match the
19614 behavior of new_backquote_flag in lread.c.
19615
196162007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19617
19618 * gmalloc.c (posix_memalign): New function.
19619
19620 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19621 ActivateControl/DeactivateControl here.
19622 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19623 frame-notice-user-settings is non-nil.
19624 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19625 for kEventParamFMFontStyle.
19626 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19627 mac_pass_command_to_system and mac_pass_control_to_system here.
19628 (XTread_socket): Call ActivateControl/DeactivateControl here.
19629 (XTread_socket) [TARGET_API_MAC_CARBON]:
19630 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19631 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19632 for window repositioning.
19633
196342007-08-08 Glenn Morris <rgm@gnu.org>
19635
19636 * Replace `iff' in doc-strings and comments.
19637
196382007-08-07 Chong Yidong <cyd@stupidchicken.com>
19639
19640 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19641
196422007-08-07 Martin Rudalics <rudalics@gmx.at>
19643
19644 * fileio.c (Finsert_file_contents): Run format-decode and
19645 after_insert_file_functions on entire buffer when REPLACE is
19646 non-nil and inhibit modification_hooks and point_motion_hooks.
19647 For consistency, run after_insert_file_functions iff something
19648 got inserted. Move signal_after_change and update_compositions
19649 after code running after_insert_file_functions. Make sure that
19650 undo_list doesn't record intermediate steps of the decoding process.
19651
196522007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19653
19654 * emacs.c (main)
19655 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19656 Call malloc_enable_thread on interactive startup.
19657
19658 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19659 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19660 [USE_PTHREAD]: Conditionalize with it.
19661 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19662 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19663 New functions.
19664
196652007-08-06 Chong Yidong <cyd@stupidchicken.com>
19666
19667 * xdisp.c (redisplay_window): When restoring original buffer
19668 position, make sure it is still valid.
19669
19670 * image.c (png_load): Ignore png-supplied background color.
19671
196722007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19673
19674 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19675 Use kCFAbsoluteTimeIntervalSince1970.
19676
19677 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19678 New variable.
19679 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19680 event loop should be quit.
19681 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19682 Quit dialog event loop if quit_dialog_event_loop is set.
19683
19684 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19685 (Selection): New typedef. Use instead of ScrapRef.
19686 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19687 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19688 (mac_clear_selection): Rename from clear_scrap.
19689 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19690 scrap_has_target_type. All uses changed.
19691 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19692 (mac_selection_has_target_p): New functions.
19693 (mac_put_selection_value): Rename from put_scrap_string.
19694 (mac_get_selection_value): Rename from get_scrap_string.
19695 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19696 (put_scrap_private_timestamp, scrap_has_target_type)
19697 (get_scrap_private_timestamp): Remove functions.
19698 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19699 (x_own_selection, x_get_local_selection):
19700 Use mac_valid_selection_value_p.
19701 (x_own_selection): Don't use put_scrap_private_timestamp.
19702 Record OWNERSHIP-INFO into Vselection_alist instead.
19703 (x_get_local_selection): Don't check type if request is local.
19704 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19705 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19706
197072007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19708
19709 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19710 add comment explaining why.
19711
197122007-08-03 Richard Stallman <rms@gnu.org>
19713
19714 * fileio.c (Fvisited_file_modtime): Use make_time.
19715
197162007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19717
19718 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19719 build.
19720
197212007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19722
19723 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19724
197252007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19726
19727 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19728
197292007-07-30 Richard Stallman <rms@gnu.org>
19730
19731 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19732
197332007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19734
19735 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19736
197372007-07-28 Nick Roberts <nickrob@snap.net.nz>
19738
19739 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19740 remote default-directory.
19741
19742 * buffer.c (mode-line-format): Update doc string.
19743
197442007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19745
19746 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19747 scroll bar gap.
19748 (x_scroll_bar_create): Set bar->fringe_extended_p.
19749 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19750 on frame edge. Check fringe background extension. Don't clear
19751 extended fringe background area.
19752
19753 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19754 (w32_fill_area): Enclose multiple statements with do ... while (0).
19755
19756 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19757 Extend fringe background to scroll bar gap.
19758 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19759 Set bar->fringe_extended_p.
19760 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19761 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19762 background extension. Don't clear extended fringe background area.
19763
19764 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19765 New member fringe_extended_p.
19766
197672007-07-25 Glenn Morris <rgm@gnu.org>
19768
19769 * Relicense all FSF files to GPLv3 or later.
19770
19771 * COPYING: Switch to GPLv3.
19772
197732007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19774
19775 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19776
19777 * data.c (Finteractive_form): Check for the presence of an
19778 `interactive-form' symbol property more thoroughly.
19779
19780 * data.c (Finteractive_form): Use an `interactive-form' property if
19781 present, analogous to the function-documentation property.
19782
197832007-07-24 Jason Rumney <jasonr@gnu.org>
19784
19785 * w32fns.c (x_real_positions): Get real position from OS instead of
19786 calculating it.
19787
197882007-07-23 Jason Rumney <jasonr@gnu.org>
19789
19790 * filelock.c (current_lock_owner): Allow for @ sign in username.
19791
197922007-07-22 Nick Roberts <nickrob@snap.net.nz>
19793
19794 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19795 remote default-directory.
19796
19797 * buffer.c (mode-line-format): Describe above case in doc string.
19798
197992007-07-20 Eli Zaretskii <eliz@gnu.org>
19800
19801 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19802 Define if not defined.
19803
198042007-07-18 Jason Rumney <jasonr@gnu.org>
19805
19806 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19807
198082007-07-18 Richard Stallman <rms@gnu.org>
19809
19810 * data.c (Fsetq_default): Doc fix.
19811
19812 * eval.c (Fsetq): Doc fix.
19813
198142007-07-18 Juanma Barranquero <lekktu@gmail.com>
19815
19816 * coding.c (Ffind_operation_coding_system):
19817 * eval.c (For, Fand): Doc fixes.
19818 Reported by Johan Bockgård.
19819
198202007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19821
19822 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19823
19824 * xterm.h: Declare x_ewmh_activate_frame.
19825
19826 * xterm.c (x_ewmh_activate_frame): New function.
19827 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19828
198292007-07-17 Martin Rudalics <rudalics@gmx.at>
19830
19831 * window.c (Fdisplay_buffer): If largest or LRU window is the
19832 only window, split it even if it is not eligible for splitting.
19833 This restores the original behavior broken by the 2007-07-15
19834 change.
19835
198362007-07-17 Glenn Morris <rgm@gnu.org>
19837
19838 * abbrev.c (abbrev_check_chars): New function.
19839 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19840 Call abbrev_check_chars to check abbrev characters are word
19841 constituents. Doc fix.
19842
198432007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19844
19845 * process.c (Fstart_process, Fmake_network_process)
19846 (read_process_output): Fix up last changes.
19847
198482007-07-16 Eli Zaretskii <eliz@gnu.org>
19849
19850 * makefile.w32-in (clean): Don't delete *~.
19851
198522007-07-16 Andreas Schwab <schwab@suse.de>
19853
19854 * window.c (Fdisplay_buffer): Use NILP.
19855 (Fset_window_scroll_bars): Likewise.
19856
198572007-07-15 Martin Rudalics <rudalics@gmx.at>
19858
19859 * window.c (window_min_size_2): New function.
19860 (window_min_size_1, size_window, Fdisplay_buffer)
19861 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19862 windows without mode- or header-lines when window-min-height is
19863 too small.
19864 (size_window): Reset nodelete_p after testing it, following an
19865 earlier note by Kim F. Storm.
19866 (display_buffer): Do not set split_height_threshold to twice the
19867 value of window_min_height to avoid changing the value of a
19868 customizable variable. Rather explicitly check whether the
19869 height of the window that shall be splitted is at least as large
19870 as split_height_threshold.
19871 (Fwindow_full_width_p): New defun.
19872 (syms_of_window): Defsubr it.
19873
19874 * window.h: Add EXFUN for Fwindow_full_width_p.
19875
198762007-07-14 Jason Rumney <jasonr@gnu.org>
19877
19878 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19879
198802007-07-14 Richard Stallman <rms@gnu.org>
19881
19882 * eval.c (maybe_call_debugger): New function.
19883 (find_handler_clause): Use maybe_call_debugger.
19884 Call it when the handler says `debug'.
19885 Eliminate DEBUGGER_VALUE_PTR.
19886 (Fsignal): Eliminate debugger_value.
19887 (Qdebug): New variable.
19888 (syms_of_eval): Initialize it.
19889
198902007-07-14 Juanma Barranquero <lekktu@gmail.com>
19891
19892 * eval.c (Fprogn):
19893 * keyboard.c (Ftrack_mouse):
19894 * print.c (Fwith_output_to_temp_buffer):
19895 * window.c (Fsave_window_excursion): Doc fix.
19896
198972007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19898
19899 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19900
199012007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19902
19903 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19904 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19905 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19906 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19907 Remove unused encoding_carryover.
19908 * process.c: Adjust all functions accordingly.
19909
199102007-07-12 Richard Stallman <rms@gnu.org>
19911
19912 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19913
199142007-07-11 Jason Rumney <jasonr@gnu.org>
19915
19916 * makefile.w32-in (LIBS): Include OLE32.
19917
19918 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19919 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19920
199212007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
19922
19923 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19924 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19925 from a Lisp_Object into a bare pointer.
19926 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19927 Adjust the code correspondingly.
19928
19929 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19930
19931 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19932 (term_show_mouse_face): Remove unused var `j'.
19933 (handle_one_term_event): Remove unused vars `i' and `j'.
19934 Don't cast return value of ttyname since it's not necessary.
19935
199362007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
19937
19938 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19939 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19940
19941 * fns.c (map_char_table): Use an array of int for `indices' rather than
19942 an array of Lisp_Objects (which are only ever integers anyway).
19943 (Fmap_char_table): Update caller.
19944 * lisp.h: Update prototype.
19945 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
19946 * fontset.c (Ffontset_info):
19947 * casetab.c (set_case_table): Update callers.
19948
19949 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
19950
19951 * keymap.c (struct accessible_keymaps_data)
19952 (struct where_is_internal_data): New structures.
19953 (accessible_keymaps_1, where_is_internal_1): Use them to change
19954 interface to adhere to the one used by map_keymap.
19955 (Faccessible_keymaps, where_is_internal): Use map_keymap.
19956 (accessible_keymaps_char_table, where_is_internal_2): Remove.
19957
19958 * keymap.h (map_keymap_function_t): More informative prototype.
19959
199602007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
19961
19962 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
19963 (looking_at_1): Don't change search_regs and last_thing_searched
19964 if `inhibit-changing-match-data' is non-nil.
19965 (string_match_1, search_buffer, set_search_regs): Likewise.
19966 (syms_of_search): Add Lisp level definition for
19967 `inhibit-changing-match-data' and set it to nil.
19968 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
19969 start and end of the match, instead of using values in search_regs.
19970
199712007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
19972
19973 * minibuf.c (Fcompleting_read): New value `confirm-only'
19974 for `require-match'.
19975
199762007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
19977
19978 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
19979 part of the 2007-06-27 change to syms_of_fileio.
19980
199812007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19982
19983 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
19984 Check WINDOWP before using XWINDOW. Consolidate return statements.
19985
199862007-06-27 Richard Stallman <rms@gnu.org>
19987
19988 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19989
199902007-06-27 Juanma Barranquero <lekktu@gmail.com>
19991
19992 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
19993
199942007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19995
19996 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
19997 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
19998 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
19999 (_free_internal, memalign): Use them.
20000 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20001 Initialize to PTHREAD_MUTEX_INITIALIZER.
20002 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20003 (morecore_nolock): Rename from morecore. All uses changed.
20004 Use only nolock versions of internal allocation functions.
20005 (_malloc_internal_nolock, _realloc_internal_nolock)
20006 (_free_internal_nolock): New functions created from
20007 _malloc_internal, _realloc_internal, and _free_internal.
20008 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20009 Copy hook value to automatic variable before its use.
20010 (memalign): Copy hook value to automatic variable before its use.
20011
200122007-06-26 Kenichi Handa <handa@m17n.org>
20013
20014 * coding.c (Ffind_operation_coding_system): Docstring improved.
20015 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20016
200172007-06-25 David Kastrup <dak@gnu.org>
20018
20019 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20020 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20021 cater for additional parameter.
20022
20023 * keymap.h: Adjust number of parameters to `current-active-maps'.
20024
20025 * doc.c (Fsubstitute_command_keys): Adjust call of
20026 `current-active-maps'.
20027
200282007-06-25 David Kastrup <dak@gnu.org>
20029
20030 * callint.c (Fcall_interactively): Make the parsing of interactive
20031 specs somewhat more readable.
20032
200332007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20034
20035 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20036 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20037 if extended background has already been filled.
20038
200392007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20040
20041 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20042 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20043
20044 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20045 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20046 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20047 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20048 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20049 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20050 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20051 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20052 Run timers during dialog popup.
20053 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20054
200552007-06-21 Jason Rumney <jasonr@gnu.org>
20056
20057 * image.c (convert_mono_to_color_image): Swap fore and background.
20058
200592007-06-20 Jason Rumney <jasonr@gnu.org>
20060
20061 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20062 (w32_free_bdf_font): Unmap memory not handle.
20063
200642007-06-20 Sam Steingold <sds@gnu.org>
20065
20066 * gmalloc.c (__morecore): Fix the declaration to comply with the
20067 definition.
20068
200692007-06-20 Juanma Barranquero <lekktu@gmail.com>
20070
20071 * w32term.c (w32_delete_display): Remove leftover declaration.
20072 (w32_define_cursor, w32_initialize): Make static.
20073
20074 * w32.c (_wsa_errlist): Fix typo in error message.
20075 (init_environment): Ignore any environment variable from the
20076 registry having a null value.
20077
200782007-06-20 Glenn Morris <rgm@gnu.org>
20079
20080 * Makefile.in (LIBGIF): Default to -lgif.
20081
200822007-06-17 Jason Rumney <jasonr@gnu.org>
20083
20084 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20085 unicode strings.
20086
200872007-06-16 Juanma Barranquero <lekktu@gmail.com>
20088
20089 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20090 Fix typo in docstring.
20091
200922007-06-16 Eli Zaretskii <eliz@gnu.org>
20093
20094 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20095 and their keybindings.
20096
200972007-06-15 Chong Yidong <cyd@stupidchicken.com>
20098
20099 * composite.c (update_compositions): Fix last fix.
20100
201012007-06-14 Jason Rumney <jasonr@gnu.org>
20102
20103 * w32.c (get_process_times_fn): New function pointer.
20104 (globals_of_w32): Intialize it if present in kernel32.dll.
20105 (w32_get_internal_run_time): New function.
20106
20107 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20108
201092007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20110
20111 * composite.c (update_compositions): Check the validness of
20112 compositions.
20113
201142007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20115
20116 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20117 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20118
20119 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20120 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20121
20122 * macgui.h (USE_MAC_TOOLBAR): New define.
20123
20124 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20125 Return immediately unless popup is activated.
20126
20127 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20128 background to scroll bar gap.
20129 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20130 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20131 scroll bars on frame edge. Check fringe background extension.
20132 Don't clear extended fringe background area.
20133 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20134 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20135 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20136 [USE_MAC_TOOLBAR]: New macros.
20137 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20138 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20139 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20140 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20141 [USE_MAC_TOOLBAR]: New functions.
20142 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20143 manually if previous repositioning has failed.
20144 (mac_handle_keyboard_event): Use precomputed event kind.
20145 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20146 as tool bar item click. Handle mouse movement over tool bar items.
20147
20148 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20149 toolbar_win_gravity.
20150 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20151 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20152 Add externs.
20153
20154 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20155 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20156
201572007-06-14 Chong Yidong <cyd@stupidchicken.com>
20158
20159 * image.c (search_image_cache): Remove unused variable.
20160
201612007-06-13 Chong Yidong <cyd@stupidchicken.com>
20162
20163 * xfns.c, xmenu.c: Link to xaw3d if available.
20164
201652007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20166
20167 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20168 frame_foreground and frame_background.
20169
20170 * image.c (lookup_image): Save frame foreground and background colors.
20171 (search_image_cache): Check if saved and current frame colors match.
20172
201732007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20174
20175 * regex.c (regex_compile): Remove the `regnum' counter.
20176 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20177
201782007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20179
20180 * term.c: Include intervals.h to declare Fget_text_property.
20181
201822007-06-10 Jason Rumney <jasonr@gnu.org>
20183
20184 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20185
201862007-06-08 Juanma Barranquero <lekktu@gmail.com>
20187
20188 * callint.c (Fcall_interactively):
20189 * editfns.c (Fdelete_and_extract_region):
20190 * fileio.c (Fread_file_name):
20191 * fns.c (Fmapconcat):
20192 * keyboard.c (cmd_error_internal):
20193 * keymap.c (Fkey_description):
20194 * lread.c (openp):
20195 * minibuf.c (read_minibuf):
20196 * search.c (wordify):
20197 * sunfns.c (sel_read):
20198 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20199 * xfns.c (x_default_scroll_bar_color_parameter):
20200 * xmenu.c (menu_help_callback):
20201 * xselect.c (Fx_get_atom_name):
20202 * xterm.c (x_term_init): Use empty_unibyte_string.
20203
202042007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20205
20206 * alloc.c (init_strings): Initialize canonical empty strings.
20207 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20208 canonical empty string when the requested size is 0.
20209
20210 * emacs.c (empty_unibyte_string): Rename from empty_string.
20211 (empty_multibyte_string): New canonical empty string.
20212 (syms_of_emacs): Don't initialize empty_string.
20213
20214 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20215 string, if appropriate.
20216 (empty_unibyte_string, empty_multibyte_string): New externs.
20217 (empty_string): Remove extern.
20218
20219 * lread.c (syms_of_lread): Use empty_unibyte_string.
20220
202212007-06-07 Jason Rumney <jasonr@gnu.org>
20222
20223 * s/ms-w32.h: Don't define HAVE_TZNAME.
20224
20225 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20226
202272007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20228
20229 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20230
20231 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20232 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20233
20234 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20235 Don't call next handler.
20236 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20237 Remove argument. Install handler to application.
20238 (set_frame_menubar): Don't change deep_p.
20239 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20240 FRAME_OUTER_TO_INNER_DIFF_Y.
20241 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20242 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20243 [HAVE_DIALOGS]: New macros.
20244 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20245 Use them.
20246 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20247
20248 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20249 init_service_handler. All callers changed. Return OSStatus value.
20250
20251 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20252 All callers changed so as not to call SetPortWindowPort.
20253 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20254 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20255 mac_draw_string_common.
20256 (mac_draw_image_string_qd): Likewise.
20257 (mac_draw_string_common): Use them. Add INLINE.
20258 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20259 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20260 GetGlobalMouse.
20261 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20262 and FRAME_OUTER_TO_INNER_DIFF_Y.
20263 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20264 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20265 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20266 repositioning window to mac_handle_window_event.
20267 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20268 saving window location to mac_handle_window_event
20269 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20270 (install_menu_target_item_handler): Remove argument in extern.
20271 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20272 Also accept command events.
20273 (do_keystroke): New function created from XTread_socket.
20274 (init_command_handler): Remove functions.
20275 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20276 and save window location by kEventWindowShowing and kEventWindowHiding
20277 handlers here. Don't call next handler for window state change and
20278 focus events.
20279 (mac_handle_application_event, mac_handle_keyboard_event)
20280 [TARGET_API_MAC_CARBON]: New functions.
20281 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20282 kEventWindowShowing and kEventWindowHiding events. Move installation
20283 of mouse, font, text input and menu target item handlers to
20284 install_application_handler.
20285 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20286 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20287 New function.
20288 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20289 Register it.
20290 (XTread_socket) [TARGET_API_MAC_CARBON]:
20291 Consolidate SendEventToEventTarget calls.
20292 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20293 Move application activation handler to mac_handle_application_event.
20294 Move keyboard handler to mac_handle_keyboard_event.
20295 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20296 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20297 init_command_handler. Call install_application_handler.
20298
20299 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20300 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20301
203022007-06-07 Glenn Morris <rgm@gnu.org>
20303
20304 * emacs.c (main): Use `emacs-copyright' in --version output.
20305
203062007-06-06 Chong Yidong <cyd@stupidchicken.com>
20307
20308 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20309
203102007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20311
20312 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20313
20314 * macgui.h: Replace WindowPtr with WindowRef.
20315
20316 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20317 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20318 Replace ControlHandle with ControlRef.
20319 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20320
20321 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20322 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20323 Replace ControlHandle with ControlRef.
20324 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20325 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20326
20327 * macterm.h (struct scroll_bar): Rename member control_handle_low
20328 and control_handle_high to control_ref_low and control_ref_high.
20329 All uses changed.
20330 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20331 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20332 respectively. All uses changed.
20333 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20334 (install_window_handler, remove_window_handler): Replace WindowPtr
20335 with WindowRef in externs.
20336
203372007-06-05 Juanma Barranquero <lekktu@gmail.com>
20338
20339 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20340
203412007-06-03 Nick Roberts <nickrob@snap.net.nz>
20342
20343 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20344
20345 * frame.c (Fmouse_position, Fmouse_pixel_position):
20346 Condition on HAVE_GPM too.
20347
20348 * term.c (term_mouse_highlight): Remove unused variables.
20349 (Fterm_open_connection): Set gpm_zerobased to 1.
20350 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20351 Use zero based co-ordinates.
20352 (handle_one_term_event): Report a drag as mouse movement too.
20353
20354 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20355
203562007-06-03 Chong Yidong <cyd@stupidchicken.com>
20357
20358 * image.c (search_image_cache): New function. Require background
20359 color match if background color is unspecified in the image spec.
20360 (uncache_image, lookup_image): Use it.
20361
203622007-06-01 Juanma Barranquero <lekktu@gmail.com>
20363
20364 * window.c (Fshrink_window): Reflow docstring.
20365
203662007-06-02 Chong Yidong <cyd@stupidchicken.com>
20367
20368 * Version 22.1 released.
20369
203702007-06-01 Richard Stallman <rms@gnu.org>
20371
20372 * xfns.c (x_encode_text): Add GCPRO.
20373
203742007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20375
20376 * xfns.c (x_set_name_internal): Save encoded name before
20377 x_encode_text in case string data is relocated.
20378
203792007-05-31 Richard Stallman <rms@gnu.org>
20380
20381 * buffer.c (syms_of_buffer): Doc fix.
20382
203832007-05-30 Nick Roberts <nickrob@snap.net.nz>
20384
20385 * sysdep.c (init_sys_modes): Add rather than replace with
20386 O_NONBLOCK.
20387
20388 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20389 term_mouse_moveto.
20390
20391 * termhooks.h (term_mouse_moveto): New extern.
20392
20393 * term.c (mouse_face_window): Rename...
20394 (Qmouse_face_window): ...to this.
20395 (term_show_mouse_face, term_clear_mouse_face)
20396 (term_mouse_highlight): Use Qmouse_face_window.
20397 (term_mouse_moveto): New function.
20398 (term_mouse_position): Make it work.
20399 (syms_of_term): Uncomment assignment to mouse_position_hook.
20400 Staticpro Qmouse_face_window.
20401
204022007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20403
20404 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20405 around current_column call.
20406
204072007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20408
20409 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20410 * xdisp.c (next_element_from_buffer):
20411 * window.c (delete_window):
20412 * term.c (term_mouse_highlight):
20413 * msdos.c (getdefdir):
20414 * macterm.c (mac_create_bitmap_from_bitmap_data)
20415 (init_font_name_table):
20416 * fns.c (Fsxhash):
20417 * data.c (Fmake_local_variable):
20418 * ccl.c (ccl_driver): Likewise.
20419
204202007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20421
20422 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20423 Call mac_wakeup_from_rne on window size change.
20424
204252007-05-25 Chong Yidong <cyd@stupidchicken.com>
20426
20427 * image.c (uncache_image): Fix typo.
20428
204292007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20430
20431 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20432
204332007-05-22 Richard Stallman <rms@gnu.org>
20434
20435 * xterm.c (x_connection_closed): Remove NO_RETURN.
20436
204372007-05-22 Martin Rudalics <rudalics@gmx.at>
20438
20439 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20440
204412007-05-21 Chong Yidong <cyd@stupidchicken.com>
20442
20443 * image.c (uncache_image): New function.
20444 (Fimage_refresh): New function.
20445
204462007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20447
20448 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20449
204502007-05-20 Nick Roberts <nickrob@snap.net.nz>
20451
20452 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20453 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20454
204552007-05-20 Nick Roberts <nickrob@snap.net.nz>
20456
20457 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20458 conditional on [HAVE_GPM_H].
20459
204602007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20461
20462 * syntax.c (skip_chars): Update syntax-table only after we checked that
20463 the new location is valid.
20464
204652007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20466
20467 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20468 mac_get_window_bounds.
20469
204702007-05-20 Nick Roberts <nickrob@snap.net.nz>
20471
20472 * Makefile.in (LIBGPM): Allow it to be set from configure.
20473 If set then link Emacs with it.
20474
20475 * config.in: Regenerate.
20476
20477 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20478 New externs.
20479
20480 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20481 Include gpm.h.
20482 (handle_one_term_event, term_gpm): New externs.
20483
20484 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20485 and allow it to be interrupted by SIGIO.
20486
20487 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20488 (wait_reading_process_output): Wait on gpm_fd too.
20489 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20490 (add_gpm_wait_descriptor_called_flag): New variable.
20491 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20492
20493 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20494 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20495 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20496 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20497 (make_lispy_event): Add case GPM_CLICK_EVENT.
20498 (read_avail_input): Handle mouse input.
20499
20500 * term.c (write_glyphs_with_face): New function.
20501 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20502 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20503 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20504 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20505 (last_mouse_x, last_mouse_y): New variables.
20506 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20507 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20508 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20509 (Fterm_close_connection): New functions.
20510 (term_init): Initialise mouse_face_window.
20511
205122007-05-19 Chong Yidong <cyd@stupidchicken.com>
20513
20514 * xdisp.c (redisplay_window): If first window line is a
20515 continuation line, recompute the new window start instead of
20516 recentering.
20517
205182007-05-18 Glenn Morris <rgm@gnu.org>
20519
20520 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20521 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20522
205232007-05-17 Glenn Morris <rgm@gnu.org>
20524
20525 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20526
205272007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20528
20529 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20530 dead key repeat and up events.
20531
205322007-05-14 Chong Yidong <cyd@stupidchicken.com>
20533
20534 * image.c (pbm_load): Check image size for monochrome pbm.
20535
205362007-05-13 Chong Yidong <cyd@stupidchicken.com>
20537
20538 * xterm.c (XTread_socket): Revert last change.
20539
205402007-05-12 Chong Yidong <cyd@stupidchicken.com>
20541
20542 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20543
20544 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20545
205462007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20547
20548 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20549 mixup (YAILOM).
20550
205512007-05-07 Andreas Schwab <schwab@suse.de>
20552
20553 * keymap.c (Flookup_key): Fix typo in last change.
20554
205552007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20556
20557 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20558 mapping for unibyte strings.
20559
205602007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20561
20562 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20563 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20564
205652007-04-29 Richard Stallman <rms@gnu.org>
20566
20567 * insdel.c (replace_range): For undo, record insertion first.
20568
205692007-04-29 Andreas Schwab <schwab@suse.de>
20570
20571 * lisp.h (VECSIZE): Use OFFSETOF.
20572
205732007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20574
20575 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20576 disabled lines.
20577
205782007-04-28 Richard Stallman <rms@gnu.org>
20579
20580 * lread.c (read_escape): In a string, \s is always space.
20581
205822007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20583
20584 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20585
20586 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20587 submenu for menu bar items.
20588
20589See ChangeLog.10 for earlier changes.
20590
20591;; Local Variables:
20592;; coding: utf-8
20593;; add-log-time-zone-rule: t
aac0c6e3
MR
20594;; End:
20595
76b6f707 20596 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20597
20598 This file is part of GNU Emacs.
20599
20600 GNU Emacs is free software: you can redistribute it and/or modify
20601 it under the terms of the GNU General Public License as published by
20602 the Free Software Foundation, either version 3 of the License, or
20603 (at your option) any later version.
20604
20605 GNU Emacs is distributed in the hope that it will be useful,
20606 but WITHOUT ANY WARRANTY; without even the implied warranty of
20607 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20608 GNU General Public License for more details.
20609
20610 You should have received a copy of the GNU General Public License
20611 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20612
20613;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40