* net/dbus.el (dbus-registered-objects-table): Renamed from
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8f11f7ec
SM
12009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * alloc.c (mark_object): Don't reprocess marked strings.
4 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6
8a605fe8
KH
72009-11-13 Kenichi Handa <handa@m17n.org>
8
8f11f7ec 9 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
10 semantics of Vword_combining_categories.
11 (Vword_combining_categories): Describe the slight change of the
12 semantics.
13
241c4680
EZ
142009-11-13 Eli Zaretskii <eliz@gnu.org>
15
16 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
17
18 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
19
5d58e44c
SM
202009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
21
22 * xdisp.c (syms_of_xdisp): Fix typo in last change.
23
5e13f9d3
JB
242009-11-12 Juanma Barranquero <lekktu@gmail.com>
25
26 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
27
cf54c754
DR
282009-11-11 David Reitter <david.reitter@gmail.com>
29
30 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
31 variables to fix 2009-11-09 change.
32
a4ada374
DN
332009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
34
91433552
DN
35 * process.c (ifflag_def): Make flag_sym constant.
36 (Fnetwork_interface_info): Use a constant pointer.
37 (ifflag_table):
38 * xfns.c (cursor_bits):
39 * xdisp.c (power_letter):
40 * termcap.c (speeds, esctab):
41 * sysdep.c (baud_convert):
42 * keyboard.c (lispy_accent_codes, modifier_names):
43 * image.c (xbm_format, xpm_format, pbm_format, png_format)
44 (jpeg_format, tiff_format, gif_format, svg_format)
45 (interlace_start, interlace_increment, gs_format):
46 * gtkutil.c (separator_names):
47 * fringe.c (swap_nibble):
48 * fns.c (base64_value_to_char, base64_char_to_value):
49 * fileio.c (make_temp_name_tbl):
50 * coding.c (suffixes): Make constant.
51
f4265f6c
DN
52 * frame.c (make_initial_frame):
53 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
54 build_string.
55 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
56
04420943
DN
57 * s/freebsd.h:
58 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
59
0a5d24ae
DN
60 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
61 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
62
a4ada374
DN
63 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
64 * xterm.c (syms_of_xterm):
65 * xfaces.c (syms_of_xfaces):
66 * xdisp.c (syms_of_xdisp):
67 * lread.c (syms_of_lread):
68 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
69 build_string.
91433552 70
a4ada374
DN
71 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
72
af98fc7f
SM
732009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
74
75 * fns.c (Fplist_get): Merge the active and the uncommented code.
76
e90292a9
JD
772009-11-10 Jan Djärv <jan.h.d@swipnet.se>
78
79 * keyboard.h: Declare timer_check.
80
81 * keyboard.c (timer_check_2): New function that does what the old
82 timer_check did.
83 (timer_check): Call timer_check_2 until -1 or a non-zero time is
84 returned, i.e. don't return -1 with timers pending.
85
86 * process.c: Remove extern declaration of timer_check.
87
88 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
89 even if timer_check returned -1.
90
af98fc7f
SM
91 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
92 xg_dialog_data.
e90292a9
JD
93 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
94 the event loop.
95 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
96 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
97 Destroy the dialog after xg_dialog_run.
98
045b83c0
SM
992009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
100
101 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
102
1fb99a3a
JD
1032009-11-10 Jan Djärv <jan.h.d@swipnet.se>
104
105 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
106
04e452cb
JB
1072009-11-09 Juanma Barranquero <lekktu@gmail.com>
108
109 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
110
ef7417fd
SM
1112009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
112
113 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
114 w32menu.c, and nsmenu.m.
115 Simplify the obsolete case where position is nil.
116 (cleanup_popup_menu): New function, moved from nsmenu.m.
117 (struct skp): Remove slot `notreal'.
118 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
119 adjust callers.
120 (single_menu_item): Adjust call to parse_menu_item.
121 (syms_of_menu): Defsubr x-popup-menu.
122 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
123 (keymap_panes): Don't export any more.
124 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
125 (xmenu_show): Declare.
126 * keyboard.c (parse_menu_item): Remove arg `notreal'.
127 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
128 * keyboard.h (parse_menu_item): Update declaration.
129 * xmenu.c (Fx_popup_menu): Remove.
130 (syms_of_xmenu): Don't defsubr x-popup-menu.
131 * w32menu.c (Fx_popup_menu): Remove.
132 (syms_of_w32menu): Don't defsubr x-popup-menu.
133 * nsmenu.m (cleanup_popup_menu): Remove.
134 (ns_menu_show): Rename from ns_popup_menu and remove all the code
135 moved to menu.c's Fx_popup_menu.
136 (Fx_popup_menu): Remove.
137 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
138 menu_items (it's done in menu.c already).
139
424d6179
SM
1402009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
141
142 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
143 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
144
c0df13a6 1452009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
146
147 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 148 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
149 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
150 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
151
2de9f71c
SM
1522009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
153
154 Let integers use up 2 tags to give them one extra bit and thus double
155 their range.
156 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
157 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
158 New macros.
159 (enum Lisp_Type): Use them. Give explicit values.
160 (Lisp_Type_Limit): Remove.
161 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
162 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
163 Pay attention to USE_2_TAGS_FOR_INTS.
164 (INTEGERP): Use LISP_INT_TAG_P.
165 * fns.c (internal_equal): Simplify the default case.
166 (sxhash): Use case_Lisp_Int.
167 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
168 any more.
169 (Ftype_of): Use case_Lisp_Int.
170 (store_symval_forwarding): Take into account the fact that Ints can
171 now have more than one tag.
172 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
173 buffer_slot_type_mismatch):
174 * xfaces.c (face_attr_equal_p):
175 * print.c (print_object):
176 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
177 Use case_Lisp_Int.
178
323637a2
EZ
1792009-11-06 Eli Zaretskii <eliz@gnu.org>
180
7ac65b38
EZ
181 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
182
323637a2
EZ
183 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
184 warning.
185
e511451f
JD
1862009-11-06 Jan Djärv <jan.h.d@swipnet.se>
187
188 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
189
190 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
191
192 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
193 ButtonPressRelease and MotionNotify (bug#4870).
194
5e2327cf
DN
1952009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
196
5adc433e
DN
197 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
198
d67b4f80
DN
199 * xterm.c (syms_of_xterm):
200 * xselect.c (syms_of_xselect):
201 * xmenu.c (syms_of_xmenu):
202 * xfns.c (syms_of_xfns):
203 * xfaces.c (syms_of_xfaces):
204 * xdisp.c (syms_of_xdisp):
205 * window.c (syms_of_window):
206 * w32fns.c (syms_of_w32fns):
207 * undo.c (syms_of_undo):
208 * textprop.c (syms_of_textprop):
209 * terminal.c (syms_of_terminal):
210 * syntax.c (syms_of_syntax):
211 * sound.c (syms_of_sound):
212 * search.c (syms_of_search):
213 * print.c (syms_of_print):
214 * minibuf.c (syms_of_minibuf):
215 * macros.c (syms_of_macros):
216 * keymap.c (syms_of_keymap, initial_define_key)
217 (initial_define_lispy_key):
218 * keyboard.c (syms_of_keyboard):
219 * insdel.c (syms_of_insdel):
220 * image.c (syms_of_image):
221 * fringe.c (syms_of_fringe):
222 * frame.c (syms_of_frame):
223 * fontset.c (syms_of_fontset):
224 * fns.c (syms_of_fns):
225 * fns.c (syms_of_fns):
226 * fileio.c (syms_of_fileio):
227 * fileio.c (syms_of_fileio):
228 * eval.c (syms_of_eval):
229 * doc.c (syms_of_doc):
230 * dispnew.c (syms_of_display):
231 * dired.c (syms_of_dired):
232 * dbusbind.c (syms_of_dbusbind):
233 * data.c (syms_of_data):
234 * composite.c (syms_of_composite):
235 * coding.c (syms_of_coding):
236 * cmds.c (syms_of_cmds):
237 * charset.c (define_charset_internal, syms_of_character):
238 * ccl.c (syms_of_ccl):
239 * category.c (syms_of_category, init_category_once):
240 * casetab.c (syms_of_casetab):
241 * casefiddle.c (syms_of_casefiddle):
242 * callint.c (syms_of_callint):
243 * bytecode.c (syms_of_bytecode):
244 * buffer.c (keys_of_buffer, syms_of_buffer):
245 * alloc.c (syms_of_alloc):
246 * process.c (syms_of_process, init_process):
247 * lread.c (syms_of_lread, init_obarray):
248 * font.c (build_style_table):
249 * emacs.c (syms_of_emacs, main): Replace calls to intern with
250 intern_c_string, calls to make_pure_string with
251 make_pure_c_string. Use pure_cons instead of Fcons.
252
5e2327cf
DN
253 * process.c (socket_options): Make it const.
254 (set_socket_option, init_process): Use a const pointer.
255
256 * lread.c (intern_c_string): New function.
257 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
258 (defvar_int): Uset it. Make the name const char*.
259
260 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
261 (defvar_int): Update prototypes.
262 (DEFUN, EXFUN): Support for prototypes is now required.
263 (intern_c_string): New prototype.
264 (struct Lisp_Subr): Make symbol_name constant.
265
266 * font.c (struct table_entry): Remove unused member. Make NAMES
267 constant.
268 (weight_table, slant_table, width_table): Make constant.
269
270 * emacs.c (struct standard_args): Make name and longname constant.
271
272 * character.h (DEFSYM): Use intern_c_string.
273
a56eaaef
DN
2742009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
275
276 * alloc.c (make_pure_c_string): New function.
277
278 * eval.c (Fautoload): Purecopy all arguments.
279
f6a07420
KH
2802009-11-05 Kenichi Handa <handa@m17n.org>
281
282 * fileio.c (Finsert_file_contents): Be sure set coding-system of
283 the buffer in case of replace.
284
5d28d4b1
DN
2852009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
286
287 * puresize.h (BASE_PURESIZE): Increase to 1620000.
288
b349d111
SM
2892009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
290
d528b1ce
SM
291 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
292 when applicable (bug#4851).
293
b349d111
SM
294 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
295 (P_): Support for prototypes is now required.
296
c38eb027
CY
2972009-10-31 Chong Yidong <cyd@stupidchicken.com>
298
299 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
300 (Bug#4827).
301
0405f8d9
EZ
3022009-10-30 Eli Zaretskii <eliz@gnu.org>
303
d528b1ce 304 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 305
ca0a881a
DN
3062009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
307
308 * puresize.h (BASE_PURESIZE): Increase to 1470000.
309
d528b1ce
SM
310 * lread.c (Fload): Purecopy the file name when building
311 Vpreloaded_file_list.
ca0a881a 312
47e0e0e4
JR
3132009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
314
315 * w32fns.c (syms_of_w32fns): Change default value of
316 w32-scroll-lock-modifier to nil. (Bug#2827)
317
057bce6f
JB
3182009-10-26 Juanma Barranquero <lekktu@gmail.com>
319
782a943e 320 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 321
242bc74c
AS
3222009-10-26 Andreas Schwab <schwab@redhat.com>
323
324 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
325
522d013a
JB
3262009-10-26 Juanma Barranquero <lekktu@gmail.com>
327
328 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
329 For delta < 0, skip check that only makes sense when the mini-window
330 is going to be enlarged. (Bug#4534)
331
18060980
CY
3322009-10-25 Chong Yidong <cyd@stupidchicken.com>
333
334 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
335 string in menu maps (Bug#4471).
336
fec8f0fe
CY
3372009-10-24 Chong Yidong <cyd@stupidchicken.com>
338
339 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
340 FRAME_NS_VIEW on terminal frames (Bug#4765).
341
10d66ec0
AS
3422009-10-24 Andreas Schwab <schwab@linux-m68k.org>
343
1cae01f7
AS
344 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
345 DBUS_TYPE_UINTnn separately to get proper sign extension.
346
58a12889
AS
347 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
348 can properly handle unsigned types.
d528b1ce 349 (make_uid, make_gid): Remove.
58a12889 350
987c9327
AS
351 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
352 types again.
353
522d013a 354 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
355 (system_process_attributes): Likewise.
356
905a9ed3
DN
3572009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
358
359 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
360
361 * eval.c (Fautoload): Purecopy the filename. Simplify.
362
363 * category.c (Fdefine_category): Purecopy docstring.
364
a599b3e8
AS
3652009-10-23 Andreas Schwab <schwab@linux-m68k.org>
366
7b792fc9
AS
367 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
368
a599b3e8
AS
369 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
370
b35ac83e
CY
3712009-10-23 Chong Yidong <cyd@stupidchicken.com>
372
373 * window.c (Fwindow_edges, Fwindow_pixel_edges)
374 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
375 (Bug#4775).
376
e8903e00
SM
3772009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
378
379 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
380 (init_fileio_once):
381 * lisp.h (init_fileio_once): Remove.
382 * emacs.c (main): Don't call init_fileio_once.
383
8f43cbf3
DN
3842009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
385
386 * puresize.h (BASE_PURESIZE): Increase to 1430000.
387
26898943
AS
3882009-10-21 Andreas Schwab <schwab@linux-m68k.org>
389
390 * doprnt.c (doprnt): Fix overflow check.
391
5c646d5a
JD
3922009-10-21 Jan Djärv <jan.h.d@swipnet.se>
393
3132a7ea
JD
394 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
395
5c646d5a
JD
396 * xterm.h (x_wait_for_event): Declare it.
397
398 * xterm.c (pending_event_wait): New variable.
399 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
400 see pending_event_wait.eventtype.
401 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
402 (x_new_font): Call change_frame_size with new rows/columns before we
403 try to resize the frame.
5c646d5a 404 (x_wait_for_event): New function.
d528b1ce
SM
405 (x_set_window_size_1): Don't change gravity unless change_gravity
406 is set.
5c646d5a
JD
407 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
408 don't change frame size, instead wait for the ConfigureNotify.
409 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
410 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
411 (x_initialize): Initialize pending_event_wait.
412
413 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
414 size.
415
416 * widget.c (EmacsFrameSetValues): Add comment.
417 (EmacsFrameSetCharSize): Just call x_set_window_size.
418
419 * gtkutil.c (xg_frame_set_char_size): Flush events and call
420 x_wait_for_event.
d528b1ce 421 (flush_and_sync): Remove again.
5c646d5a
JD
422 (xg_get_font_name): Suggest monospace if no previous font is known.
423
e9c1637d
SM
4242009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
425
426 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 427 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 428
5a72cccb
YM
4292009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
430
431 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
432 processing pending events when event is filtered for input method.
ab04798f 433 (Bug#3681)
5a72cccb 434
2629aa37
JB
4352009-10-20 Juanma Barranquero <lekktu@gmail.com>
436
437 * fns.c: Add #endif accidentally removed in previous change.
438
c3417a74
DN
4392009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
440
441 * fns.c: Remove code for unsupported system: MAC_OS.
442 * image.c: Likewise. Include setjmp.h.
443
9685cef2
JD
4442009-10-19 Jan Djärv <jan.h.d@swipnet.se>
445
446 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
447 pixel -1 (bug #4742).
448
d7306fe6
DN
4492009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
450
019d2c4c
DN
451 * process.c (create_pty): Remove conditionals for no longer
452 supported systems: UNIPLUS and RTU.
453
ee6bacd4
DN
454 * xterm.c:
455 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
456
d7306fe6
DN
457 * alloc.c: Do not define struct catchtag.
458 * eval.c: Move struct catchtag definition ...
459 * lisp.h: ... here.
460
461 * image.c: Move png.h #include earlier to avoid warnings.
462
463 * xterm.c:
464 * xsmfns.c:
465 * xselect.c:
466 * xrdb.c:
467 * xmenu.c:
468 * xftfont.c:
469 * xfont.c:
470 * xfns.c:
471 * xfaces.c:
472 * xdisp.c:
473 * window.c:
474 * widget.c:
475 * w32xfns.c:
476 * w32uniscribe.c:
477 * w32term.c:
478 * w32select.c:
479 * w32reg.c:
480 * w32proc.c:
481 * w32menu.c:
482 * w32inevt.c:
483 * w32heap.c:
484 * w32font.c:
485 * w32fns.c:
486 * w32console.c:
487 * w32.c:
488 * w16select.c:
489 * vm-limit.c:
490 * unexsol.c:
491 * unexec.c:
492 * unexcw.c:
493 * unexaix.c:
494 * undo.c:
495 * tparam.c:
496 * textprop.c:
497 * terminfo.c:
498 * terminal.c:
499 * termcap.c:
500 * term.c:
501 * syntax.c:
502 * sound.c:
503 * sheap.c:
504 * search.c:
505 * scroll.c:
506 * region-cache.c:
507 * regex.c:
508 * ralloc.c:
509 * process.c:
510 * print.c:
b024548b
DN
511 * nsterm.m:
512 * nsselect.m:
513 * nsmenu.m:
514 * nsimage.m:
515 * nsfont.m:
516 * nsfns.m:
d7306fe6
DN
517 * msdos.c:
518 * minibuf.c:
519 * menu.c:
520 * marker.c:
521 * macros.c:
522 * keymap.c:
523 * keyboard.c:
524 * intervals.c:
525 * insdel.c:
526 * indent.c:
527 * gtkutil.c:
528 * ftxfont.c:
529 * ftfont.c:
530 * fringe.c:
531 * frame.c:
532 * fontset.c:
533 * font.c:
534 * fns.c:
535 * floatfns.c:
536 * filelock.c:
537 * fileio.c:
538 * emacs.c:
539 * editfns.c:
540 * dosfns.c:
541 * doprnt.c:
542 * doc.c:
543 * dispnew.c:
544 * dired.c:
545 * dbusbind.c:
546 * data.c:
547 * composite.c:
548 * coding.c:
549 * cmds.c:
550 * cm.c:
551 * chartab.c:
552 * charset.c:
553 * character.c:
554 * ccl.c:
555 * category.c:
556 * casetab.c:
557 * casefiddle.c:
558 * callproc.c:
559 * callint.c:
560 * bytecode.c:
561 * buffer.c:
562 * atimer.c: Include setjmp.h. (Bug#4643)
563
fd5f21e6
SM
5642009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
565
4c0354d7
SM
566 Remove leftover table unibyte_to_multibyte_table.
567 * character.c (unibyte_to_multibyte_table): Remove.
568 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
569 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
570 * character.h (UNIBYTE_TO_CHAR): New macro.
571 (MAKE_CHAR_MULTIBYTE): Use it.
572 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
573 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
574 (message_dolog, set_message_1):
575 * search.c (Freplace_match):
576 * editfns.c (Fcompare_buffer_substrings):
577 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
578 (concat):
579 * insdel.c (copy_text, count_size_as_multibyte):
580 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
581 * term.c (produce_glyphs):
582 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
583 * regex.c (RE_CHAR_TO_MULTIBYTE):
584 * cmds.c (internal_self_insert):
585 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
586
fd5f21e6
SM
587 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
588
4418646e
DN
5892009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
590
591 * puresize.h (BASE_PURESIZE): Increase to 1310000.
592
35f5c1d2
JB
5932009-10-16 Juanma Barranquero <lekktu@gmail.com>
594
595 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
596
a0cd8f6b
AR
5972009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
598
599 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
600 still needed under Tiger.
601
602 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
603
604 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
605 __Apple__.
606
607 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
608
01a8d3fa
KH
6092009-10-15 Kenichi Handa <handa@m17n.org>
610
611 * print.c (print_object): Escape a symbol like "2E10" too.
612
bf6c75c9 6132009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
614
615 Cleanups and changes for 64-bit compile under Snow Leopard.
616 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
617
618 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
619
c5959062 620 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
621 (ns_findfonts, nsfont_list_family): Use long format in printf, and
622 cast argument.
623 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 624 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
625
626 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
627
628 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
629 where appropriate.
630
631 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
632 where appropriate.
6e4780c5
JB
633 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
634 Use stringWithUTF8String.
bf6c75c9
AR
635 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
636
6e4780c5
JB
637 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
638 Add formal protocol mention to inheritance.
bf6c75c9
AR
639 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
640
6e4780c5
JB
641 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
642 Fix printf format.
bf6c75c9
AR
643 (ns_query_color): Use CGFloat where appropriate.
644 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
645 (EmacsScroller-mouseDown:) Use long format in printf, and cast
646 argument.
647
3d87f118
AR
648 * config.in (NS_HAVE_NSINTEGER): Drop.
649
a95c8102
AR
650 * dbusbind.c (dbus-method-return-internal)
651 (dbus-method-error-internal): Use long format in printf, and cast
652 argument.
653
654 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
655 in printf, and cast argument.
656
6873acca 657 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
658 cast argument.
659
9ec6f100
GM
6602009-10-11 Glenn Morris <rgm@gnu.org>
661
662 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
663
5be883cd
JD
6642009-10-08 Jan Djärv <jan.h.d@swipnet.se>
665
666 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
667 menu bar with a small width so it doesn't enlarge the frame.
668
d7a39b51
JB
6692009-10-08 Juanma Barranquero <lekktu@gmail.com>
670
671 * fontset.c (Fset_fontset_font): Fix typos in error messages.
672
0c2b6f8e
GM
6732009-10-06 Glenn Morris <rgm@gnu.org>
674
675 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
676 SOME_MACHINE_LISP (this enters indirectly via DOC).
677
e02131a2
EZ
6782009-10-05 Eli Zaretskii <eliz@gnu.org>
679
680 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
681
b4744254
EZ
6822009-10-04 Eli Zaretskii <eliz@gnu.org>
683
684 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
685 Doc fix.
686
dbf64827
JB
6872009-10-03 Martin Rudalics <rudalics@gmx.at>
688
689 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
690
e9a0aef8
MA
6912009-10-02 Michael Albinus <michael.albinus@gmx.de>
692
d528b1ce 693 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
694 used anymore outside fileio.c.
695
696 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
697
64eb2b56
JB
6982009-10-01 Juanma Barranquero <lekktu@gmail.com>
699
700 * lisp.h (Qdelete_directory_internal):
701 Declare, instead of Qdelete_directory.
702
703 * w32fns.c (Fsystem_move_file_to_trash): Use it.
704
9d28c33e
SM
7052009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
706
707 * eval.c (Fcalled_interactively_p): Add `kind' argument.
708
9d8f3bd9
MA
7092009-10-01 Michael Albinus <michael.albinus@gmx.de>
710
9d28c33e 711 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
712 Fdelete_directory. It is not a command anymore. It has no file
713 name handler.
714
9694740b
SM
7152009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
716
717 * xdisp.c (get_next_display_element): Use an enum in last change.
718
748e162f
KH
7192009-09-28 Kenichi Handa <handa@m17n.org>
720
9694740b 721 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
722 unibyte_display_via_language_environment in handling
723 Vnobreak_char_display.
724
17efd58d
AR
7252009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
726
727 * nsterm.h (ns_app_name): New extern variable.
728
729 * nsterm.m (ns_app_name): New variable.
730 (ns_term_init): Set and use it.
731 (ns_term_shutdown): Use it.
732
733 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
734 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
735
736 * nsfns.m (ns_set_name_iconic, ns_set_name)
737 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
738 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
739
9694740b
SM
740 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
741 Remove double-casting in client_data comparison.
31c2d412 742
3208cb35
YM
7432009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
744
745 * keyboard.c (make_lispy_event): Remember last wheel direction.
746 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
747
b7d552d6
GM
7482009-09-26 Glenn Morris <rgm@gnu.org>
749
750 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
751 internal.elc. Add term/pc-win.elc.
752 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
753 term/x-win.elc.
754 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
755 term/w32-win.elc.
756 (NS_SUPPORT): New.
757 (lisp): Add NS_SUPPORT.
758 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
759
4ff670a8
DR
7602009-09-25 David Reitter <david.reitter@gmail.com>
761
762 * nsmenu.m (EmacsMenu-clear): Recognize application menu
763 on Mac OS X 10.6+ (bug#4513).
764
feabfb6c
JB
7652009-09-24 Juanma Barranquero <lekktu@gmail.com>
766
767 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
768 some parts of Emacs code (like font selection) don't grok them.
769 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 770
de59072a
AS
7712009-09-24 Andreas Schwab <schwab@redhat.com>
772
773 * coding.c (decode_coding_iso_2022): Fix operator precedence.
774
a489517b
JB
7752009-09-24 Juanma Barranquero <lekktu@gmail.com>
776
777 * dired.c (Fdirectory_files): Fix typo in docstring.
778
0592970c
AR
7792009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
780
781 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
782 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
783 (EmacsScroller-setPosition:portion:whole:): Remove -display call
784 under GNUstep.
785 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
786
787 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
788 glyph advancement.
789
48e8a88b
AR
7902009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
791
792 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 793 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
794
795 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
796 deleted (bug #4492).
797
e14f0a78
AR
798 * nsfont.m (Vns_reg_to_script): New lisp variable.
799 (syms_of_nsfont): Declare it.
800 (ns_registry_to_script): New function.
801 (ns_get_req_script): Call it.
802 (ns_findfonts): Don't give up on non-unicode registry.
803
804 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
805
5b650faa
SM
8062009-09-20 Tom Tromey <tromey@redhat.com>
807
808 * eval.c (find_handler_clause): Make stack-trace-on-error work in
809 batch mode (bug#4228).
810
a489517b 8112009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
812
813 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 814 carefully. (Bug #4339)
0bae4e09 815
fcfe06f3
CY
8162009-09-18 Chong Yidong <cyd@stupidchicken.com>
817
d798ba87 818 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 819
31642728
AR
8202009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
821
822 * emacs.c (inhibit_x_resources): Update doc string for NS.
823 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 824 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
825
826 * nsterm.h (ns_no_defaults): Remove.
827
828 * nsterm.m (ns_no_defaults): Remove.
829 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
830 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
831 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
832 don't update the NSWindow itself.
833 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 834 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
835
836 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
837 ns_use_qd_smoothing.
838
839 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
840 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 841 (x-close-connection): Drop PSFlush() under OS X.
a489517b 842 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 843
8686ac71
JB
8442009-09-17 Juanma Barranquero <lekktu@gmail.com>
845
846 * emacs.c (inhibit_x_resources): New variable.
847 (main) [HAVE_NS]: Don't process --quick command line option.
848 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
849
850 * lisp.h (inhibit_x_resources): Declare it extern.
851
852 * w32reg.c (x_get_string_resource):
853 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
854
e227ba05
EZ
8552009-09-17 Eli Zaretskii <eliz@gnu.org>
856
362654a6
JB
857 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
858 Add lisp/term/internal.elc.
e227ba05 859
742d40e8
SM
8602009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
861
862 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
863 (bug#4461).
864
005bd5a2
DN
8652009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
866
867 * puresize.h (BASE_PURESIZE): Increase to 1290000.
868
869 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
870 (OBJECTS_MACHINE): Remove, unused.
871
f9af9719
SM
8722009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
873
874 * frame.c (x_get_resource_string): Remove unused.
875
0307c7d2
JD
8762009-09-15 Jan Djärv <jan.h.d@swipnet.se>
877
878 * xterm.c (x_new_font): Call change_frame_size before calling
879 x_set_window_size, in case frame size won't change.
880
881 * frame.c (x_set_font): Remove dead code.
882
428b13d6
SM
8832009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
884
885 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
886
5766c380
SM
8872009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
888
889 * lread.c (Fload): Don't output a message after loading an obsolete
890 package any more (done in Lisp now).
891
2fd0161b
CY
8922009-09-12 Chong Yidong <cyd@stupidchicken.com>
893
894 * fns.c (syms_of_fns): Doc fix (Bug#4227).
895
bc5e75b6
SM
8962009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
897
898 * keymap.c (Fwhere_is_internal): Use nconc2.
899
c31c985e
AM
9002009-09-11 Alan Mackenzie <acm@muc.de>
901
902 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
903 batch mode.
904
78012bd2
AS
9052009-09-11 Andreas Schwab <schwab@linux-m68k.org>
906
907 * xdisp.c (display_mode_element): Detect cycles.
908
9d889332
SM
9092009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
910
911 * keymap.c (where_is_internal): Don't erroneously return nil right after
912 filling the cache.
913 (where_is_internal_1): Fix up typo.
914
7ab5d780
GM
9152009-09-11 Glenn Morris <rgm@gnu.org>
916
917 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
918 share a common doc-string.
919
5238a749
SM
9202009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
921
66d77eda
SM
922 * keymap.c (get_keymap): Return the actual keymap symbol rather than
923 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
924
5238a749
SM
925 * keymap.c (QCadvertised_binding): New constant.
926 (syms_of_keymap): Initialize it.
927 (Fwhere_is_internal): Try and use bindings from :advertised-binding
928 if applicable.
929
19f48442
SM
9302009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
931
50d4ba39
SM
932 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
933 (parse_menu_item): Streamline since bindings are recomputed all the
934 time anyway. Don't bother checking Vdefine_key_rebound_commands any
935 more and don't support lmenu's menu-alias any more either.
936
a88a5372
SM
937 * keymap.c (where_is_internal_data): Make noindirect a boolean.
938 (where_is_internal): Strip it down to only traverse the keymaps.
939 Move the cache handling from Fwhere_is_internal to here.
940 (Fwhere_is_internal): Move the handling of remapping and the choice of
941 the best binding from where_is_internal to here.
942 Unify the cached/noncached paths, so remapping is also handled
943 correctly when the cache is used, and so the cache can be used to
944 speed up remap-handling when applicable.
945 Give preference to non-remapped bindings.
946 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
947 non-remapped bindings.
948 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
949 command remapping.
950
19f48442
SM
951 * xdisp.c (display_mode_element): Move list length limit from 50 to
952 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
953
599498c3 9542009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
955
956 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
957
f9b7b5ac
SM
9582009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
959
a53af587
JB
960 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
961 (Bug#4334)
962
f9b7b5ac
SM
963 * keymap.c (where_is_internal): Filter out shadowed remappings.
964 Assume that where_is_internal returns unshadowed bindings to simplify
965 the code and get rid of the gotos. Use ASIZE.
966
04f4b72d
JD
9672009-09-04 Jan Djärv <jan.h.d@swipnet.se>
968
4da146f2
JD
969 * xterm.c (x_focus_changed): If we get a focusout and pointer
970 is invisible, make it visible.
971
04f4b72d
JD
972 * xterm.h: Remove condition for declaration of
973 x_*_window_to_frame.
974
7cef7ce3
SM
9752009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
976
977 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
978 initial terminal as well.
979
a54fa5b7
JD
9802009-09-02 Jan Djärv <jan.h.d@swipnet.se>
981
982 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 983 x_menubar_window_to_frame.
a54fa5b7
JD
984
985 * xterm.c: Remove declarations also in xterm.h
986 (XTmouse_position): Do not return valid positions
987 for clicks in the menubar and the toolbar for Gtk+.
988
989 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
990 if the widget for the event has the same top level as a frame,
991 return the frame.
992 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
993 internal windows, bug #4122.
994 (x_non_menubar_window_to_frame): Remove.
995
5a021dd0
GM
9962009-09-02 Glenn Morris <rgm@gnu.org>
997
998 * buffer.c (default-major-mode): Move most of the doc from here...
999 (major-mode): ... to here.
1000
548fe2f3
NR
10012009-08-30 Nick Roberts <nickrob@snap.net.nz>
1002
1003 * process.c (wait_reading_process_output): Keep the descriptor
1004 when pty is used by a non-child process, e.g., in I/O buffer of
1005 GDB this allows inferior to be restarted.
1006
e0840eef
EZ
10072009-08-29 Eli Zaretskii <eliz@gnu.org>
1008
1009 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1010 both branches into one.
1011
82e98df4
SM
10122009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1013
1014 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1015 (main): Use enable-multibyte-characters rather than
1016 default-enable-multibyte-characters. Output a warning message when
1017 running a unibyte session.
1018
890617cb
YM
10192009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1020
1021 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1022 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1023 (copy_data_segment): Also copy __program_vars section.
1024 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1025 (dump_it) [LC_DYLD_INFO]: Use it.
1026
1027 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1028
e7adeadc
EZ
10292009-08-28 Eli Zaretskii <eliz@gnu.org>
1030
1031 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1032 $(SRC)/buildobj.h.
1033 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1034 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1035 $(SRC)/buildobj.h.
1036 (clean): Add buildobj.h.
1037
3ed8bbdc
TZ
10382009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1039
1040 * print.c (print_object): Set escapeflag to 1 when printing
1041 hashtable keys and values.
1042
155a6764
SM
10432009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1044
1045 * lread.c (read_integer): Use doubles (and potentially return a float
1046 number) as we do in string-to-number.
1047 (read1): Use strtol to read integers, signal errors on strtol's
1048 overflow and use floats if strtol's output is too large for
1049 Elisp integers.
1050
877610de
EZ
10512009-08-27 Eli Zaretskii <eliz@gnu.org>
1052
1053 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1054 (make-buildobj-SH): Fix last change.
1055 (SRC): Move to before where it's first used.
1056
ef73e7be
KH
10572009-08-27 Kenichi Handa <handa@m17n.org>
1058
550c8289
KH
1059 * process.c (send_process): Use encode_coding_object instead of
1060 encode_coding_string to perform eol-conversion even if the string
1061 is unibyte.
1062
60afa08d
KH
1063 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1064 character.
1065
ef73e7be 1066 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1067 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1068
7b3a82d7
DN
10692009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1070
5654bf63
DN
1071 * callproc.c (Fcall_process): Remove always true #if.
1072
7b3a82d7
DN
1073 * lisp.h: Replace #if 0 code for checking with text pointing to
1074 the --enable-checking configure flag.
1075
1076 * emacs.c (main): Mention the --enable-profiling configure flag
1077 instead of using CFLAGS.
1078
878bde49
KR
10792009-08-26 Ken Raeburn <raeburn@raeburn.org>
1080
1081 * Makefile.in (buildobj.h): New target.
1082 (doc.o): Depend on it.
1083 (temacs${EXEEXT}): Don't generate buildobj.lst.
1084 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1085 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1086 ($(BLD)/doc.$(O)): Depend on it.
1087 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1088 provided by Eli Zaretskii.)
1089 ($(TEMACS)): Don't generate buildobj.lst.
1090 * doc.c: Include buildobj.h.
1091 (buildobj): New static variable.
1092 (Fsnarf_documentation): Use it, instead of opening and reading
1093 buildobj.lst.
1094
1574224c
MA
10952009-08-25 Michael Albinus <michael.albinus@gmx.de>
1096
1097 * dbusbind.c (Fdbus_call_method)
1098 (Fdbus_call_method_asynchronously): Use English numeric format for
1099 timeout values in doc string.
1100
d9da2f45
KH
11012009-08-25 Kenichi Handa <handa@m17n.org>
1102
ef73e7be
KH
1103 * alloc.c (mark_char_table): New function.
1104 (mark_object): Use mark_char_table for a char-table.
1105
d9da2f45
KH
1106 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1107 (CHAR_TABLE_REF): Use it.
1108
c8edcc01
KR
11092009-08-23 Ken Raeburn <raeburn@raeburn.org>
1110
1111 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1112 before invoking the newly build emacs to check for load-path
1113 shadowing.
1114
7763401b
GM
11152009-08-22 Glenn Morris <rgm@gnu.org>
1116
1117 * Makefile.in (bootstrap_exe): New variable.
1118 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1119 Use ${bootstrap_exe}.
1120
729eadda
EZ
11212009-08-22 Eli Zaretskii <eliz@gnu.org>
1122
1123 * coding.h (encode_coding_string): Don't encode unibyte strings.
1124 (Bug#4047)
1125
eb4c6ace
MA
11262009-08-22 Michael Albinus <michael.albinus@gmx.de>
1127
1128 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1129
1130 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1131 intended as hotfix only.
1132 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1133
36e34d1b
AR
11342009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1135
1136 * nsterm.m (ns_get_color): Update documentation properly for last
1137 change, and clean up loose ends in the code left by it. Fix
1138 longstanding bug with 16-bit hex parsing, and add support for
1139 yet another X11 format (rgb:r/g/b) for compatibility.
1140 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1141 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1142
f983eb8a
SM
11432009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1144
1145 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1146
3f56d3c6
MA
11472009-08-20 Michael Albinus <michael.albinus@gmx.de>
1148
1149 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1150 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1151 (xd_initialize, xd_pending_messages): Check, whether
1152 $DBUS_SESSION_BUS_ADDRESS is set.
1153
fb641d68
YM
11542009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1155
1156 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1157
1158 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1159
cf59a374
GM
11602009-08-20 Glenn Morris <rgm@gnu.org>
1161
1162 * emacs.c (system-type): Doc fix.
1163
1373f3be
SM
11642009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1165
1166 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1167 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1168
058ed861
MA
11692009-08-18 Michael Albinus <michael.albinus@gmx.de>
1170
1373f3be
SM
1171 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1172 New functions.
058ed861
MA
1173 (xd_initialize): Revert change from 2009-08-16.
1174
563a866e 11752009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1176
1177 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1178 font-group vector, return nil.
5fc05db0 1179
e42bdf01
CY
11802009-08-17 Chong Yidong <cyd@stupidchicken.com>
1181
1182 * process.c (status_notify): Don't perform redisplay.
1183 (Fdelete_process, list_processes_1, process_send_signal):
1184 Expliticly perform redisplay.
1185 (wait_reading_process_output): Always check process status, but
1186 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1187
4230ab74
KR
11882009-08-17 Ken Raeburn <raeburn@raeburn.org>
1189
1373f3be 1190 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1191 (XFLOAT_INIT): New macro for storing a float value.
1192 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1193 * fns.c (sxhash): Copy out the value of a float in order to
1194 examine its bytes.
1195 * dbusbind.c (xd_append_arg): Likewise.
1196
4230ab74
KR
1197 * emacs.c (main): Don't call syms_of_data twice.
1198
a0645cdd
MA
11992009-08-16 Michael Albinus <michael.albinus@gmx.de>
1200
1201 * dbusbind.c (xd_initialize): Add connection file descriptor to
1202 input_wait_mask, in order to let select() detect, whether a new
1203 message has been arrived.
ca4f31ea 1204 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1205
485db0ba
MA
12062009-08-15 Michael Albinus <michael.albinus@gmx.de>
1207
1373f3be
SM
1208 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1209 New functions.
485db0ba
MA
1210
1211 * lisp.h (xd_pending_messages): Declare.
1212
1213 * keyboard.c (readable_events): Call xd_pending_messages.
1214
b5b98ff4
CY
12152009-08-15 Chong Yidong <cyd@stupidchicken.com>
1216
1373f3be 1217 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1218
f8354c6e
CY
1219 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1220
b5b98ff4
CY
1221 * buffer.c (set_buffer_internal_1)
1222 (swap_out_buffer_local_variables): Check for unbound local
1223 variables (Bug#4138).
1224
8b9fc636
EZ
12252009-08-14 Eli Zaretskii <eliz@gnu.org>
1226
1227 * process.c (create_pty): Fix last change.
1228
ce959360
CY
12292009-08-13 Chong Yidong <cyd@stupidchicken.com>
1230
1231 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1232 (xbm_load_image): Caller changed.
64b807c9 1233 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1234
c7baf7e9
NR
12352009-08-13 Nick Roberts <nickrob@snap.net.nz>
1236
1237 * process.c (create_pty): New function.
1238 (Fstart_process): Use it to allow Emacs to just associate a pty
1239 with the buffer. See associated change in gdb-mi.el.
1240 (list_processes_1): Deal with no program name.
1241 (start_process_unwind): Use pid == -2 to mean no process.
1242
1ac9108a
SM
12432009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1244
1245 * cmds.c (nonundocount): New global variable.
1246 (keys_of_cmds): Initialize it.
1247 (Fself_insert_command): Use it to combine upto 20 sequential chars
1248 into a single undo entry, just like the Qself_insert_command code in
1249 keyboard.c does.
1250 Call frame_make_pointer_invisible, also like the Qself_insert_command
1251 code in keyboard.c does.
1252 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1253 than its own local replacement for it.
1254
e267324c
KR
12552009-08-10 Ken Raeburn <raeburn@raeburn.org>
1256
1ac9108a 1257 * fns.c (concat): Don't re-set string length to its current value.
77437343 1258
1ac9108a
SM
1259 * coding.h (decode_coding_string, encode_coding_string):
1260 Use SBYTES macro.
f0bed503 1261
1ac9108a 1262 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1263 (doprnt): Merge with doprnt1, discarding lispstrings code.
1264 * lisp.h (doprnt_lisp): Don't declare.
1265
416e006d
JL
12662009-08-07 Juri Linkov <juri@jurta.org>
1267
1268 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1269
6f7d5780
DN
12702009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1271
1272 * print.c (syms_of_print): Undo previous change.
1273
f19a0f5b
TZ
12742009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1275
1276 * lread.c (read1, syms_of_lread): Read hashtables back from the
1277 readable format.
1278
1279 * print.c (print_preprocess, print_object): Print hashtables fully
1280 and readably.
1281 (syms_of_print): Provide 'hashtable-print-readable.
1282
b9173dc2
AR
12832009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1284
1285 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1286 no family set.
1287 (nsfont_open): Handle case when entity has no family.
1288
1586503c
AR
12892009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1290
1291 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1292 element, not a list, for match case.
1293
087048cd
KH
12942009-07-28 Kenichi Handa <handa@m17n.org>
1295
1296 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1297 rigidly.
1298
1299 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1300 font_parse_xlfd. Check font properties more rigidly.
1301
780c2506
DN
13022009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1303
31fd7c5c
JB
1304 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1305 bsd-common.h.
780c2506 1306
a8c0cc18
KH
13072009-07-27 Kenichi Handa <handa@m17n.org>
1308
1309 * xfaces.c (face_with_height): Call font_clear_prop.
1310
4fbe2306
CY
13112009-07-26 Chong Yidong <cyd@stupidchicken.com>
1312
111d9af3
CY
1313 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1314
1315 * xterm.c (x_term_init): Use Qx.
1316
4fbe2306
CY
1317 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1318
1ac9108a 1319 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1320 (ns_get_color): Revert 2009-07-16 change.
1321
beb0b7f9
EZ
13222009-07-25 Eli Zaretskii <eliz@gnu.org>
1323
1324 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1325 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1326
2baf5e76
KR
13272009-07-25 Ken Raeburn <raeburn@raeburn.org>
1328
1ac9108a
SM
1329 * coding.h (decode_coding_string, encode_coding_string):
1330 Use SCHARS macro.
8890e5f5 1331
2baf5e76 1332 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1333 (load_depth): Delete.
2baf5e76
KR
1334 (Qload_in_progress): New variable.
1335 (load_unwind): Don't reference load_depth or load_in_progress.
1336 (Fload): Likewise; specbind Qload_in_progress instead.
1337 (init_lread): Don't initialize load_depth.
1338 (syms_of_lread): Initialize and protect Qload_in_progress.
1339
1395c6f5
AR
13402009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1341
1342 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1343
4e2f36cf
AR
13442009-07-23 Yavor Doganov <yavor@gnu.org>
1345
1346 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1347
5dd9a6f7
AR
13482009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1349
1350 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1351 Bugs 3792, 3720, 2402.
1352 (ns_lookup_indexed_color): Check for bad index.
1353 (ns_index_color): Init unused slot to 0.
1354 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1355 Bug 3714, possibly 3082.
5dd9a6f7 1356
c902b920
JR
13572009-07-22 Jason Rumney <jasonr@gnu.org>
1358
1ac9108a
SM
1359 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1360 Position IME window at cursor (Bug#2570).
c902b920
JR
1361 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1362 (globals_of_w32fns): Dynamically load functions required above.
1363
1364 * w32term.c (w32_draw_window_cursor): Send message to reposition
1365 any IME window.
1366
090101cf
CY
13672009-07-21 Chong Yidong <cyd@stupidchicken.com>
1368
1369 * fileio.c: Revert 2009-07-16 changes.
1370 (Vauto_save_include_big_deletions): New variable.
1371 (Fdo_auto_save): Disable auto-save only if
1372 auto-save-include-big-deletions is nil.
1373
e6583e3d
CY
13742009-07-21 Chong Yidong <cyd@stupidchicken.com>
1375
1376 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1377 the overflowed pixels into account (Bug#3879).
1378
ece435a5
KR
13792009-07-21 Ken Raeburn <raeburn@raeburn.org>
1380
1381 * lread.c (load_depth): New variable.
1382 (Fload, load_unwind, init_lread): Set it to the load recursion
1383 depth; set load_in_progress as a simple boolean based on the
1384 current load_depth. (Bug#3892)
1385
40b2d973
AR
13862009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1387
1388 * nsfont.m (ns_has_attribute): Remove.
1389 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1390
10be7e0d
JL
13912009-07-18 Juri Linkov <juri@jurta.org>
1392
1393 * process.c (Fset_process_query_on_exit_flag): Mention killing
1394 a buffer in docstring.
1395
fa055055
KH
13962009-07-17 Kenichi Handa <handa@m17n.org>
1397
1398 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1399
042f7b69
YM
14002009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1401
1402 * nsfns.m (Fns_set_alpha): Remove function.
1403 (syms_of_nsfns): Don't defsubr it.
1404
1405 * nsterm.m (ns_get_color): Remove incompatible color formats.
1406 (ns_color_to_lisp): Generate #rrggbb color format string.
1407
4be941e3
RS
14082009-07-16 Richard Stallman <rms@gnu.org>
1409
1410 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1411 (Fset_buffer_auto_saved): Handle save_length = -2.
1412
4e6b227d
CY
14132009-07-16 Chong Yidong <cyd@stupidchicken.com>
1414
1415 * xterm.c (Qx_gtk_map_stock): New var.
1416
1417 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1418 of calling intern each time.
1419
a1856973
YM
14202009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1421
1422 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1423 does tiling.
1424
1425 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1426
497e54d8
KH
14272009-07-14 Kenichi Handa <handa@m17n.org>
1428
72d36834
KH
1429 * font.c (font_vconcat_entity_vectors): New function.
1430 (struct font_sort_data): New member font_driver_preference.
1431 (font_compare): Check font_driver_preference.
1432 (font_sort_entities): The format of the first argument changed.
1433 (font_delete_unmatched): Likewise.
1434 (font_list_entities): The return type changed.
1435 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1436 (font_find_for_lface): Adjuste for the above changes.
1437 Don't suppress the checking of C even if the repertory supports it.
1438 (Flist_fonts): Adjust for the above changes.
72d36834 1439
1ac9108a
SM
1440 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1441 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1442 Reject a font who has adstyle property that is different from a
1443 langname derived from registry property.
1ac9108a 1444 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1445
b6046155
EZ
14462009-07-13 Eli Zaretskii <eliz@gnu.org>
1447
1448 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1449 local copy of dirfilename.
1450
fb6b6049
KH
14512009-07-13 Kenichi Handa <handa@m17n.org>
1452
e2402a5e
KH
1453 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1454 against max_char.
1455
fb6b6049
KH
1456 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1457 calling XSYMBOL (sym).
1458
65156807
EZ
14592009-07-11 Eli Zaretskii <eliz@gnu.org>
1460
1ac9108a
SM
1461 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1462 New function.
1463 (directory_files_internal) [WINDOWSNT]:
1464 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1465 the filesystem of the directory is fast or slow.
1466
1467 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1468 file name.
1469 (is_slow_fs): New function.
1470 (stat): Use it to determine whether to issue more system calls to
1471 get accurate file attributes, when w32-get-true-file-attributes is
1472 `local'.
1473
e0ab5fcf
JD
14742009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1475
1476 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1477 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1478 parameter font-parameter as default to the font dialog.
1479
784ceded
KH
14802009-07-10 Kenichi Handa <handa@m17n.org>
1481
1482 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1483
fb8edc0b
EZ
14842009-07-09 Eli Zaretskii <eliz@gnu.org>
1485
1ac9108a 1486 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1487
fb8edc0b
EZ
1488 * w32.c (stat): Treat UNC file names as residing on remote
1489 drives. (Bug#3542)
1490
635c75b1
KH
14912009-07-09 Kenichi Handa <handa@m17n.org>
1492
1493 * fontset.c (fontset_find_font): Fix previous change.
1494
c1d5ce94
MA
14952009-07-08 Michael Albinus <michael.albinus@gmx.de>
1496
1497 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1498 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1499 error flag.
1500
edb61b39
KH
15012009-07-08 Kenichi Handa <handa@m17n.org>
1502
374bf7e4
KH
1503 * fontset.c (fontset_find_font): Fix the logic of handling
1504 charset_matched.
1505 (font_for_char): Delete unused var.
1506 (generate_ascii_font_name): Delete it.
1507
edb61b39
KH
1508 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1509
1510 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1511 (encode_coding_sjis): Fix the code range check.
1512
0f3f018c
CY
15132009-07-07 Chong Yidong <cyd@stupidchicken.com>
1514
1515 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1516 (Fexpand_file_name): Copy string data properly (Bug#3772).
1517
fcaf6f3a
JD
15182009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1519
1520 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1521 first MapNotify.
1522
6809ca75
KH
15232009-07-07 Kenichi Handa <handa@m17n.org>
1524
1525 * character.h (unibyte_has_multibyte_table): Delete extern.
1526 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1527
1528 * charset.c (Fset_charset_priority): Update charset_unibyte.
1529 (syms_of_charset): Initialize charset_unibyte.
1530
1531 * character.c (unibyte_has_multibyte_table): Delete it.
1532 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1533 charset_unibyte.
1534 (multibyte_char_to_unibyte_safe): Likewise.
1535 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1536
1ac9108a 1537 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1538 (x_produce_glyphs): Likewise.
1539
1540 * .gdbinit (xcharset): Fix the treating $arg0.
1541
ad9e2d54
EZ
15422009-07-04 Eli Zaretskii <eliz@gnu.org>
1543
1544 Emulation of `getloadavg' on MS-Windows.
1545 * w32.c: Include float.h
1546 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1547 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1548 (get_native_system_info, get_system_times): New functions.
1549 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1550 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1551 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1552 g_b_init_get_system_times, and num_of_processors.
1553
0a3472c7
JR
15542009-07-03 Jason Rumney <jasonr@gnu.org>
1555
1556 * w32term.c (w32_initialize): Use standard types.
1557
80904120
EZ
15582009-07-03 Eli Zaretskii <eliz@gnu.org>
1559
1560 * dired.c (Ffile_attributes): Decode user and group names by the
1561 locale's encoding. (Bug#3443)
1562
6978862d
DN
15632009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1564
f8d23104
DN
1565 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1566 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1567
1568 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1569
1570 * term.c (init_tty): Remove spurious #ifdef.
1571
6978862d
DN
1572 * m/mips.h: Mention this file is also used for netbsd.
1573 * m/pmax.h: Remove file.
1574
e044e4fc
JD
15752009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1576
1577 * xterm.h (struct x_display_info): Add invisible_cursor.
1578 (struct x_output): Add current_cursor.
1579
1580 * xterm.c (XTtoggle_invisible_pointer): New function.
1581 (x_define_frame_cursor): Don't define cursor if invisible or the
1582 same as before. Set current_cursor.
1583 (x_create_terminal): Set toggle_invisible_pointer_hook.
1584
1585 * xfns.c (make_invisible_cursor): New function.
1586 (x_set_mouse_color): Call make_invisible_cursor.
1587 Set current_cursor.
1588 (x_window): Set current_cursor.
1589
1590 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1591
1592 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1593 inserting a character.
1594 (read_avail_input): Call frame_make_pointer_visible.
1595
1596 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1597 (frame_make_pointer_invisible, frame_make_pointer_visible):
1598 New functions.
e044e4fc
JD
1599 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1600
1601 * frame.h: Declare frame_make_pointer_invisible and
1602 frame_make_pointer_visible.
1603 (struct frame): Add pointer_invisible.
1604
574c8efa
JD
16052009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1606
7b507248
JD
1607 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1608 frame isn't visible.
1609 (xg_frame_resized): If width/height is -1, get size of window
1610 from X server.
1611
1612 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1613 for MapNotify.
1614
835bdaa7 1615 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1616 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1617 (flush_and_sync): Reintroduce.
574c8efa 1618
3f1c6666 16192009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1620
31fd7c5c 1621 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1622
1623 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1624 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1625
1626 * frame.h: Declare Qsticky.
1627
cad9ef74
JD
1628 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1629
1630 * nsfns.m (ns_frame_parm_handlers): Ditto.
1631
1632 * frame.c: Declare Qsticky.
1633 (frame_parms): Add sticky.
1634
1635 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1636
1637 * xterm.h: Declare x_set_sticky.
1638
1639 * xterm.c (x_set_sticky): New function.
1640
69b16610
JD
1641 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1642 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1643 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1644
1645 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1646
1647 * frame.c: Qmaximized is new.
1648 (x_set_frame_parameters): Do not handle fullscreen specially.
1649 Only set width and height if explicitly set.
1650 (x_set_fullscreen): Handle Qmaximized.
1651 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1652 (syms_of_frame): Initialize Qmaximized.
1653
1ac9108a
SM
1654 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1655 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1656
1657 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1658 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1659 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1660 set gravity to NorthWestGravity when USE_GTK.
1661 (set_wm_state): New function.
31fd7c5c 1662 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1663 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1664 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1665 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1666 to x_real_positions and x_fullscreen_adjust.
1667
1668 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1669 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1670 flush_and_sync.
1671 (xg_height_changed): New function.
1672 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1673 and gtk_window_set_policy. Set frame gravity after parsing the
1674 geometry string.
3f1c6666
JD
1675 (xg_update_frame_menubar, free_frame_menubar)
1676 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1677 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1678 Remove calls to xg_frame_set_char_size.
1679
fd503d99
KH
16802009-07-01 Kenichi Handa <handa@m17n.org>
1681
1682 * keyboard.c (decode_keyboard_code): New function.
1683 (tty_read_avail_input): Decode the input bytes if necessary.
1684
1ac9108a
SM
1685 * coding.c (setup_coding_system):
1686 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1687 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1688 use Qno_conversion.
1689
24ed93fb
YM
16902009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1691
1692 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1693
99061dfc
CY
16942009-06-30 Chong Yidong <cyd@stupidchicken.com>
1695
1ac9108a 1696 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1697
ff90fbde
JR
16982009-06-30 Jason Rumney <jasonr@gnu.org>
1699
1700 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1701 is already loaded.
1702 Set user model ID if supported (bug#1849).
1703
5f445726
JM
17042009-06-29 Jim Meyering <meyering@redhat.com>
1705
1706 Remove useless if-before-xfree test.
1707 * nsfont.m (nsfont_close): Remove useless test.
1708 * term.c (delete_tty): Likewise.
1709 * w32.c (system_process_attributes): Likewise.
1710 * w32font.c (w32font_close): Likewise.
1711 * xfaces.c (x_free_gc): Likewise.
1712 * xselect.c (buffer): Likewise.
1713
b9607587
AS
17142009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1715
1716 * process.c (send_process): Keep decoded string in a local
1717 variable and protect it from GC. (Bug#3521)
1718
89ba96f4
EZ
17192009-06-28 Eli Zaretskii <eliz@gnu.org>
1720
1721 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1722 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1723
098a1589
CY
17242009-06-28 Chong Yidong <cyd@stupidchicken.com>
1725
485422be
CY
1726 * xdisp.c (start_display, handle_face_prop)
1727 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1728 (redisplay_window, try_window_id, produce_image_glyph):
1729 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1730
098a1589
CY
1731 * xterm.c (x_update_window_begin, x_new_focus_frame)
1732 (x_scroll_bar_handle_click, handle_one_xevent)
1733 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1734 (x_make_frame_visible, x_make_frame_invisible)
1735 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1736 code chunks that are now obsolete.
1737
78c38319
MA
17382009-06-28 Michael Albinus <michael.albinus@gmx.de>
1739
1740 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1741 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1742 for hours, when optimzation is enabled.
1743 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1744 (xd_read_message): Make them static.
1745
4189ed40
CY
17462009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1747
1748 * term.c (turn_on_face): Allow simultaneously bold and dim
1749 terminal faces (Bug#3530).
1750
cd9b5e16
CY
17512009-06-27 Chong Yidong <cyd@stupidchicken.com>
1752
4e23bedb
CY
1753 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1754
cd9b5e16
CY
1755 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1756 truncation glyphs (Bug#3686).
1757
07cc3c35
GM
17582009-06-27 Glenn Morris <rgm@gnu.org>
1759
1760 * m/pmax.h: Restore file, with only netbsd portions.
1761
31fd7c5c 17622009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1763
cd9b5e16 1764 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1765
42d4a64f
KH
17662009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1767
1768 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1769 the arg FORCE_SYMBOL.
1770
930fe55b 17712009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1772
1773 * fontset.c (fontset_find_font): When a usable rfont_def is found
1774 in a fallback font-group, make it the first element of the group.
1775
57ebc3fd
CY
17762009-06-24 Chong Yidong <cyd@stupidchicken.com>
1777
1778 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1779
f084f942
KH
17802009-06-24 Kenichi Handa <handa@m17n.org>
1781
1782 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1783 set for C.
1784 (fontset_font): Record the availability of a font for C both in
1785 the realized fontsets of the current one and the default one.
1786
2f686c87
DN
17872009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1788
1789 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1790 conditional, it is always defined on AIX.
1791
666e158e
MB
17922009-06-23 Miles Bader <miles@gnu.org>
1793
1794 * window.c (Vrecenter_redisplay): New variable.
1795 (syms_of_window): Initialize it.
1796 (Qtty): New extern declaration.
1797 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1798
c6da7cd2
JM
17992009-06-23 Jim Meyering <meyering@redhat.com>
1800
1ac9108a
SM
1801 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1802 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 1803 pointer dereferences are guaranteed to be valid.
c6da7cd2 1804
678dca3d
KH
18052009-06-23 Kenichi Handa <handa@m17n.org>
1806
74d75424
KH
1807 * emacs.c (main): Call init_font ().
1808
1809 * font.h (Vfont_log): Extern it.
1810 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1811
1812 * font.c (font_sort_entities, font_list_entities)
1813 (font_matching_entity, font_open_entity)
1814 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1815 (Vfont_log): Delete static.
1816 (font_log_env_checked): Delete this variable.
1817 (font_add_log): Don't check font_log_env_checked.
1818 (font_deferred_log): Check Vfont_log.
1819 (init_font): New function.
1820
678dca3d
KH
1821 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1822
1823 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1824
1825 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1826
1827 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1828
1829 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1830 (face_for_char): Don't call font_deferred_log here.
1831 (font_for_char): Likewise.
1832
8a668709
CY
18332009-06-22 Chong Yidong <cyd@stupidchicken.com>
1834
9a01ee33
CY
1835 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1836 rather than its background_width for drawing the overline and
1837 underline (Bug#489).
1838
1839 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1840 rather than its background_width for drawing the overline and
1841 underline (Bug#489).
ec7c9926
CY
1842 (xg_default_icon_file): New variable.
1843 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1844 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1845
8a668709
CY
1846 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1847 (load_overlay_strings): Remove externs.
1848 (fast_find_position): Function deleted.
1849 (mouse_face_from_buffer_pos): New function, based on
1850 fast_find_position. Correctly handle before-strings,
1851 display-strings, and after-strings (Bug#1220).
1852 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1853
4d4c02d8
CY
18542009-06-21 Chong Yidong <cyd@stupidchicken.com>
1855
1ac9108a 1856 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
1857 (move_it_in_display_line_to, move_it_in_display_line_to)
1858 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1859
70243478
CY
18602009-06-21 Chong Yidong <cyd@stupidchicken.com>
1861
1862 * Branch for 23.1.
1863
13087e59
JR
18642009-06-21 Jason Rumney <jasonr@gnu.org>
1865
1866 * w32term.c (keyboard_codepage): New static variable.
1867 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1868 (w32_read_socket) [WM_CHAR]: Use it to decode character
1869 input (bug#3237).
1870 (w32_initialize): Initialize it.
1871 (codepage_for_locale): New function.
1872
4735b74e
KR
18732009-06-20 Ken Raeburn <raeburn@raeburn.org>
1874
1875 * process.c (status_message): Pass Faset index argument as a lisp
1876 object, so as to work with USE_LISP_UNION_TYPE.
1877
0e727afa
YM
18782009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1879
1880 * coding.c (Ffind_coding_systems_region_internal):
1881 Cache checked characters.
1882
cf299835
KH
18832009-06-18 Kenichi Handa <handa@m17n.org>
1884
1ac9108a 1885 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 1886
90f20d94
AS
18872009-06-18 Andreas Schwab <aschwab@redhat.com>
1888
1889 * xdisp.c (redisplay_internal): Check that the frame is still
1890 live after redisplay of its windows.
1891 (redisplay_windows): Check that the window is still live.
1892
7f1faf1c
KH
18932009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1894
1895 * coding.c (detect_coding_utf_16): Fix previous change.
1896
cc13543e
KH
18972009-06-16 Kenichi Handa <handa@m17n.org>
1898
1899 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1900 UTF-16 by checking the dispersion of Eth and Oth bytes.
1901
977b85f4
AS
19022009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1903
1904 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1905
66bd43d1
KH
19062009-06-15 Kenichi Handa <handa@m17n.org>
1907
1908 * process.c (status_message): Fix previous change. Be sure to
1909 decode a localized string.
1910
cb5ca9c5
YM
19112009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1912
1913 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1914 add comment explaining why.
1915
ec7709ba 19162009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 1917
ec7709ba 1918 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 1919
4b7f335c
AR
19202009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1921
1922 * nsfont.m (ns_attribute_value): Remove.
1923 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1924 (ns_has_attribute): Shrink the normal range.
1925 (ns_findfonts): Don't worry about requested spec in determining
1926 need for synthItal.
e41820ee 1927 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 1928
73b26103
SZ
19292009-06-14 Seiji Zenitani <zenitani@mac.com>
1930
1931 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1932
5753e4da
KH
19332009-06-11 Kenichi Handa <handa@m17n.org>
1934
1935 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1936 overhang for the static composition case.
1937
3561b671
KH
19382009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1939
5753e4da
KH
1940 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1941 overhang for the automatic composition case.
1942
3561b671
KH
1943 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1944 composition case.
1945
852bbd41
CY
19462009-06-10 Chong Yidong <cyd@stupidchicken.com>
1947
1948 * xdisp.c (get_next_display_element): When handling wrap-prefix
1949 and line-prefix, treat \n as a control character (bug#3502).
1950
9903d1e6
KH
19512009-06-10 Kenichi Handa <handa@m17n.org>
1952
1953 * font.c (font_parse_family_registry): Fix for one-char foundry.
1954 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1955
0bcbaaaa
CY
19562009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1957
1958 * process.c (status_message): Fix handling of multibyte signal
1959 string (Bug#3499).
1960
40aa3f13
JM
19612009-06-09 Jim Meyering <meyering@redhat.com>
1962
1f80c7e2
CY
1963 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1964 color name is missing.
40aa3f13 1965
72d51285
KH
19662009-06-09 Kenichi Handa <handa@m17n.org>
1967
1968 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1969 FROM-CODE and TO-CODE are codepoints of CHARSET.
1970
c1d04d84
AR
19712009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1972
1973 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1974
19752009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1976
1977 Changes to support :script/:lang/:otf in NS font driver.
1978 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1979 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1980 indicate not part of font driver interface, and change callers.
1981 (ns_get_family): Remove pointless null check.
1982 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1983 ns_spec_to_descriptor, ns_descriptor_to_entity.
1984 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1985 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1986 (ns_spec_to_descriptor, ns_descriptor_to_entity)
1987 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1988 (ns_get_req_script, ns_accumulate_script_ranges)
1989 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1990 New functions.
1991 (nsfont_list, nsfont_match): Use ns_findfonts.
1992 (nsfont_open): Use font descriptor instead of traits.
1993 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1994 (dump_glyphstring): Rename to ns_dump_glyphstring.
1995
c7eb9816
AR
1996 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1997
c1d04d84
AR
1998 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1999
2000 * fontset.c (fontset_from_font): Remove NS-specific code.
2001
ec7709ba 20022009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2003
2004 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2005 nonactive windows.
2006
31fd7c5c 20072009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2008
1ac9108a 2009 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2010
68852c13 20112009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2012
2013 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2014
6756cd1d
CY
20152009-06-07 Chong Yidong <cyd@stupidchicken.com>
2016
2017 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2018 account for the overflowing of newlines into the last glyph on the
2019 display line (Bug#3482).
2020
28bf482a
DR
20212009-06-05 David Reitter <david.reitter@gmail.com>
2022
ec7709ba
JB
2023 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2024 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2025 Fns_selection_exists_p, Fns_selection_owner_p.
2026
fdb55376
JR
20272009-06-03 Jason Rumney <jasonr@gnu.org>
2028
2029 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2030 available. (Bug#3379)
2031
05129fbe
KH
20322009-05-29 Kenichi Handa <handa@m17n.org>
2033
1ac9108a
SM
2034 * coding.c (get_translation_table):
2035 Check Venable_character_translation.
05129fbe 2036
ec7709ba 20372009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2038
ec7709ba
JB
2039 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2040 (x_make_frame_visible): Move frame to front rather than calling
15891144 2041 ns_raise_frame().
ec7709ba 2042 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2043 isn't key window.
ec7709ba 2044 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2045 drawRect may be called by NSView even if the frame is hidden.
2046
ec7709ba
JB
2047 * nsfns.m (Fx_create_frame): Follow other ports in
2048 determining visibility; default to t. Ensure async_visible is set.
15891144 2049
21f73755
EZ
20502009-05-23 Eli Zaretskii <eliz@gnu.org>
2051
2052 * dired.c (Ffile_attributes): Doc fix.
2053
34001e41
CY
20542009-05-22 Chong Yidong <cyd@stupidchicken.com>
2055
2056 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2057
46306a17
SM
20582009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2059
2060 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2061 and xfont_scratch_props.
2062 (syms_of_xfont): Do it here instead.
2063 (xfont_find_ccl_program): Delete, unused.
2064 (xfont_open): Delete unused var `i'.
2065
ef6e0694
KH
20662009-05-21 Kenichi Handa <handa@m17n.org>
2067
2068 * fontset.c (Qlatin): Don't make it static.
2069
46306a17
SM
2070 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2071 New functions.
ef6e0694
KH
2072 (xfont_scripts_cache, xfont_scratch_props): New variables.
2073 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2074 (xfont_list_pattern): Argument changed. Callers changed.
2075 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2076 (xfont_list): Don't reject a font spec with :script property.
2077 (xfont_has_char): Fix setting of encoding.
2078 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2079 xfont_scratch_props.
2080
20812009-05-19 Kenichi Handa <handa@m17n.org>
2082
46306a17 2083 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2084 Callers changed.
2085
20862009-05-18 Kenichi Handa <handa@m17n.org>
2087
2088 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2089
ac71ced7
SM
20902009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2091
2092 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2093 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2094
1c6d1051
YM
20952009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2096
2097 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2098 (x_delete_terminal): Dissociate resource database from display and
2099 then call XrmDestroyDatabase before closing display.
2100
9b9b779c
AR
21012009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2102
2103 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2104 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2105 whether selected frame is viable before raising it (based on patch
2106 by David Reitter), and improve commentary.
2107 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2108
cccd42d5
KH
21092009-05-15 Kenichi Handa <handa@m17n.org>
2110
2111 * font.c (Ffont_spec): Check arguments.
2112
337fbd17
CY
21132009-05-14 Chong Yidong <cyd@stupidchicken.com>
2114
2115 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2116 weight when testing attributes (Bug#3282).
2117
47a6002f
JD
21182009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2119
2120 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2121 what we expect to get in the next ConfigureNotify event.
2122
9cb363db
YM
2123 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2124 before Xft one (Bug#1696).
2125
b9126609
CY
21262009-05-07 David Reitter <david.reitter@gmail.com>
2127
2128 * nsfns.m (Fx_display_planes): Compute bitplanes using
2129 NSBitsPerPixelFromDepth (Bug#3207).
2130
27a69fd9
CY
21312009-05-10 Chong Yidong <cyd@stupidchicken.com>
2132
2133 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2134
00f37552
TTN
21352009-05-10 Ulrich Mueller <ulm@gentoo.org>
2136
2137 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2138
2d82a920
DR
21392009-05-07 David Reitter <david.reitter@gmail.com>
2140
ec7709ba
JB
2141 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2142 Respect mouse face background.
2d82a920 2143
46b0d52d
DR
21442009-05-07 David Reitter <david.reitter@gmail.com>
2145
ec7709ba
JB
2146 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2147 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2148 in ns_update_begin and ns_update_end.
2149
ce1b23bb
SM
21502009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2151
5996e1b7
SM
2152 * nsfns.m (ns_get_screen): Rewrite.
2153 Don't presume selected-frame is of type `ns'.
2154
ba98e3a0
SM
2155 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2156 all drivers.
2157
ce1b23bb
SM
2158 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2159
bcda200f
YM
21602009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2161
2162 * keyboard.h (add_user_signal): Fix typo in extern.
2163
2164 * lisp.h (add_user_signal): Remove extern.
2165
2166 * unexelf.c (unexec): Consider a section to precede the .bss section
2167 if its addresses overlap that of .bss.
2168 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2169 instead of dumping process.
2170
864660a2
SM
21712009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2172
2173 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2174
50da4e56
SM
21752009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2176
2177 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2178
51520a1a
DN
21792009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2180
2181 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2182 any statements.
2183
409ea3a1
AS
21842009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2185
59c4c60f
AS
2186 * process.c (read_process_output): Make sure the current buffer is
2187 always restored.
2188
409ea3a1
AS
2189 * coding.c (record_conversion_result): Don't modify
2190 Vlast_code_conversion_error for successful result.
2191 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2192
56f00ed2
KH
21932009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2194
2195 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2196 (load_charset_map): Remove unnecessary code.
56f00ed2 2197
4491c9d2
DR
21982009-04-30 David Reitter <david.reitter@gmail.com>
2199
35f5b128 2200 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2201 through f24.
2202
6970f632
CY
22032009-04-30 Chong Yidong <cyd@stupidchicken.com>
2204
2205 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2206
2207 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2208 face_at_buffer_position.
2209 (face_before_or_after_it_pos, get_next_display_element)
2210 (note_mouse_highlight): Update face_at_buffer_position call.
2211
2212 * term.c (term_mouse_highlight):
2213 * msdos.c (IT_note_mouse_highlight):
2214 * fontset.c (Finternal_char_font):
35f5b128 2215 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2216
2217 * dispextern.h (face_at_buffer_position): Update prototype.
2218
0c616f63
KH
22192009-04-30 Kenichi Handa <handa@m17n.org>
2220
35f5b128 2221 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2222
ad3aaf33
AS
22232009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2224
2225 * callproc.c (Fcall_process): Fix GC protection. Make sure
2226 current buffer is always restored.
2227
c3c963a0
YM
22282009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2229
2230 * atimer.c (init_atimer): Also clear stopped_atimers.
2231
2232 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2233
7e3386cb
YM
2234 * process.c (create_process): Clean up merger residues of
2235 2008-07-17 change.
2236
91f68422
CY
22372009-04-29 Ulrich Mueller <ulm@gentoo.org>
2238
2239 * lread.c (Vread_circle): New variable.
2240 (read1): Disable recursive read if Vread_circle is nil.
2241
24b34550
KH
22422009-04-29 Kenichi Handa <handa@m17n.org>
2243
2244 * fontset.h (set_default_ascii_font): Delete extern.
2245
2246 * fontset.c (set_default_ascii_font): Delete this unused function.
2247
2248 * frame.c (x_set_font): When ARG is a font-object, check if the
2249 font-object matches with the ASCII font-spec of the frame's
9c358bda 2250 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2251
77bf07e1
AS
22522009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2253
2254 * fns.c (Flocale_info): Protect vector from GC during decoding.
2255
2256 * process.c (Fstart_process): Protect argv strings from GC during
2257 encoding.
2258
2c55aacf
AS
22592009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2260
2261 * sysdep.c: Include <ctype.h>.
2262
b892d3c9
DR
22632009-04-27 David Reitter <david.reitter@gmail.com>
2264
35f5b128 2265 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2266 Remove commented-out code.
2267
9d0644c4
JB
22682009-04-26 Johan Bockgård <bojohan@gnu.org>
2269
2270 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2271
b7053016
JR
22722009-04-25 Jason Rumney <jasonr@gnu.org>
2273
2274 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2275
4e8231f3
YM
22762009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2277
2278 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2279 Swap bytes in short integer if fringe bitmap width > 8.
2280
493dcf2c
KH
22812009-04-23 Kenichi Handa <handa@m17n.org>
2282
2283 * xfaces.c (Fx_list_fonts): If a font size is specified in
2284 PATTERN, set it in returned scalable fonts.
2285
401e9e57
CY
22862009-04-22 Chong Yidong <cyd@stupidchicken.com>
2287
708e05dc
CY
2288 * keyboard.c (Fset_input_meta_mode): Doc fix.
2289
2290 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2291
1ac9108a 2292 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2293
2294 * coding.c (Fterminal_coding_system): Doc fix.
2295
2296 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2297 (Fx_display_pixel_height, Fx_display_planes)
2298 (Fx_display_color_cells, Fx_server_max_request_size)
2299 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2300 (Fx_display_mm_height, Fx_display_mm_width)
2301 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2302 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2303 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2304 (check_x_display_info): Handle terminal objects instead of
2305 terminal ids.
2306
401e9e57
CY
2307 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2308 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2309 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2310 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2311
df80c7f0
KH
23122009-04-21 Kenichi Handa <handa@m17n.org>
2313
5a8f12af 2314 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2315 (font_score): Check AVGWIDTH too.
908567ef 2316
df80c7f0
KH
2317 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2318 worst case.
1ac9108a
SM
2319 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2320 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2321
705af33f
JR
23222009-04-19 Jason Rumney <jasonr@gnu.org>
2323
2324 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2325 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2326
2327 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2328 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2329 get_phys_cursor_geometry.
2330
b71ac3dd 2331 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2332 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2333 using get_phys_cursor_geometry.
2334
2335 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2336 correctly calculated.
2337
dc2933eb
JD
23382009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2339
1ac9108a
SM
2340 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2341 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2342 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2343 is deprecated.
2344
973e7849
AS
23452009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2346
2347 * font.c (font_put_frame_data): Use xfree instead of free.
2348
314d66f4
JB
23492009-04-17 Juanma Barranquero <lekktu@gmail.com>
2350
2351 * w32font.c (Qja, Qko): Remove declarations.
2352 (syms_of_w32font): Don't DEFSYM them.
2353
cf702558
CY
23542009-04-17 Chong Yidong <cyd@stupidchicken.com>
2355
2356 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2357
2358 * font.h (Qja, Qko): Extern them.
2359
2360 * ftfont.c (Qja, Qko): Remove declarations.
2361
2362 * xfont.c (Qja, Qko): Remove declarations.
2363
b50504f5
KH
23642009-04-17 Kenichi Handa <handa@m17n.org>
2365
bde25748
KH
2366 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2367 string from a vector to handle Latin-1 characters correctly.
2368
b50504f5
KH
2369 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2370 entity even if the cache hits.
2371
f4646fff
AS
23722009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2373
2374 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2375 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2376
e7deaab0
AS
2377 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2378 * lisp.h: Adjust prototypes.
2379
0a0e7d49
CY
23802009-04-16 Chong Yidong <cyd@stupidchicken.com>
2381
2382 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2383 change (Bug#3003).
2384
3c908a57
KH
23852009-04-16 Kenichi Handa <handa@m17n.org>
2386
1ac9108a 2387 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2388
2389 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2390 adstyle.
2391
2392 * ftfont.c (Qja, Qko): Don't make them static.
2393 (enum ftfont_cache_for): New enum.
2394 (fc_charset_table): Undo the previous change.
2395 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2396 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2397 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2398 non-scarable font, try to get AVERAGE_WIDTH.
2399 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2400 Change ft_face_cache from a list of a hash-table. Don't check
2401 `ja' and `ko' adstyle here.
2402 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2403 FTFONT_CACHE_FOR_CHARET.
2404 (ftfont_get_charset): Undo the previous change.
1ac9108a 2405 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2406 (ftfont_close): Likewise.
2407 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2408
2409 * font.c (font_sort_entites): Change the meaning of the arg
2410 BEST-ONLY. Don't optimize for VEC of lenght 1.
2411 (font_select_entity): Just return the value of font_sort_entites.
2412
2413 * xfaces.c (merge_face_vectors): Reflect font properties in
2414 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2415 font_clear_prop if a face attribute doesn't change.
2416
3c908a57
KH
2417 * charset.h (charset_ksc5601): Extern it.
2418
2419 * charset.c (charset_ksc5601): New variable.
2420 (Fdefine_charset_internal): Set charset_ksc5601.
2421 (init_charset_once): Initialize charset_ksc5601 to -1.
2422
d65859c3
DN
24232009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2424
2425 * fileio.c (history_delete_duplicates): Remove unused declaration.
2426
2427 * callint.c (history_delete_duplicates): New declaration.
2428 (Fcall_interactively): Remove command history duplicates when
2429 history_delete_duplicates is true.
2430
3ba010e5
EZ
24312009-04-14 Eli Zaretskii <eliz@gnu.org>
2432
2433 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2434
06f19b91
KH
24352009-04-14 Kenichi Handa <handa@m17n.org>
2436
2437 * font.c (Ffont_info): Fix docstring. Fix the second element of
2438 the returned value (bug#2949).
2439
2cce8bfc
CY
24402009-04-14 Chong Yidong <cyd@stupidchicken.com>
2441
2442 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2443
d156542d
KH
24442009-04-14 Kenichi Handa <handa@m17n.org>
2445
2446 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2447 encoding charset is ascii_compatible.
2448
2449 * charset.c (Fdefine_charset_internal): Make charset
2450 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2451 code_offset is 0, and covers all ASCII characters.
2452
86fa089e
SM
24532009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2454
2455 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2456 (ns_string_to_pasteboard_internal):
2457 * nsmenu.m (process_dialog):
2458 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2459 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2460 * lisp.h (Fx_load_color_file): Declare.
2461
a8a3728b
KH
24622009-04-13 Kenichi Handa <handa@m17n.org>
2463
1ac9108a 2464 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2465 (font_select_entity): Suppress the code to optimize for the same
2466 kind of fonts.
2467 (font_load_for_lface): Get a font that supports at least ASCII
2468 characters.
2469
2470 * ftfont.c (Qja, Qko): New variables.
2471 (fc_charset_table): Delete uniquifier data for iso8859-1.
2472 (ftfont_get_latin1_charset): New function.
2473 (get_adstyle_property): New function.
2474 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2475 bitmap fonts.
2476 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2477 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2478 `ko' or `ja'.
2479 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2480 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2481 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2482 property.
2483 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2484 (syms_of_ftfont): DEFSYM Qja and Qko.
2485
483670b5
KH
24862009-04-09 Kenichi Handa <handa@m17n.org>
2487
12b55765
KH
2488 * charset.c (map_charset_chars): For a charset of `superset'
2489 method, fix calculation of code range.
2490
483670b5
KH
2491 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2492 from the list of extra properties.
2493 (font_clear_prop): Be sure to delete `:name' font property.
2494
57d3b93b
KH
24952009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2496
b4b2c2ca
YM
2497 * dispnew.c (redraw_overlapping_rows): Fix detection of
2498 overlapping for topmost and bottommost rows.
2499
1ac9108a 2500 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2501
472c3609
JR
25022009-04-06 Jason Rumney <jasonr@gnu.org>
2503
2504 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2505
ab193662
KH
25062009-04-06 Kenichi Handa <handa@m17n.org>
2507
2508 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2509
2510 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2511
0c26f026
KH
25122009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2513
2514 * ftfont.c (ftfont_open): Fix checking of the return value of
2515 FT_Load_Char. Fix setting font->underline_thickness.
2516
e173bbce
CY
25172009-04-04 Chong Yidong <cyd@stupidchicken.com>
2518
2519 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2520 (Fterminal_parameters, Fterminal_parameter)
2521 (Fset_terminal_parameter): In doc string, refer to terminal
2522 objects rather than terminal ids.
2523
693a2698
EZ
25242009-04-04 Eli Zaretskii <eliz@gnu.org>
2525
2526 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2527 ret_lim_data. (Bug#2867)
2528
d5221487
CY
25292009-04-03 Chong Yidong <cyd@stupidchicken.com>
2530
2531 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2532 so they don't get wider than the window, matching 2006-01-23
2533 change to the partner function in xdisp.c (Bug#2800).
2534
223509a3
KH
25352009-04-03 Kenichi Handa <handa@m17n.org>
2536
2537 * print.c (print_object): Make each lowest sub_char_table start a
2538 new line (Bug#2866).
2539
74fcd0b1
KH
25402009-04-02 Kenichi Handa <handa@m17n.org>
2541
2542 * fontset.c (fontset_font): Record no-font when a fontset
2543 explicitly tells not to try another font-specs.
2544
c542407d
SM
25452009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2546
2547 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2548
e3869731
KH
25492009-03-30 Kenichi Handa <handa@m17n.org>
2550
d8d2f142
KH
2551 * fontset.c (fontset_from_font): Specify only registry in a
2552 font-spec for all characters supported by that registry.
2553
e3869731
KH
2554 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2555 even if HAVE_M17N_FLT is not defined.
2556
5da5f805
CY
25572009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2558
2559 * ftfont.c: Conditionalize prototyping and use of
2560 ftfont_variation_glyphs.
2561
ab226c50
SM
25622009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2563
9628fed7
SM
2564 * frame.c (delete_frame): Work around compiler bug.
2565
2566 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2567 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2568 Some more EMACS_INT.
2569 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2570
2571 * xdisp.c (dump_glyph): Fix typo.
2572
ae19ba7c
SM
2573 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2574 (adjust_markers_gap_motion, adjust_markers_for_delete)
2575 (adjust_markers_for_insert, adjust_point)
2576 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2577 (make_gap, copy_text, count_size_as_multibyte, insert)
2578 (insert_and_inherit, insert_before_markers)
2579 (insert_before_markers_and_inherit, insert_1)
2580 (count_combining_before, count_combining_after, insert_1_both)
2581 (insert_from_string, insert_from_string_before_markers)
2582 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2583 (insert_from_buffer_1, adjust_after_replace)
2584 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2585 (replace_range_2, del_range, del_range_1, del_range_byte)
2586 (del_range_both, del_range_2, modify_region)
2587 (prepare_to_modify_buffer, signal_before_change)
2588 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2589 for buffer positions and sizes.
2590 * lisp.h: Adjust prototypes accordingly.
2591
2592 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2593 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2594 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2595
ab226c50
SM
2596 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2597
46dfb8fb
JD
25982009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2599
2600 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2601 lines and columns so we keep the same pixel height and width.
2602
2603 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2604 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2605 (x_handle_net_wm_state): New function to update frame parameter
2606 fullscreen.
2607 (x_term_init): Initialize atoms for _NET_WM_STATE.
2608
2609 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2610
d347e494
SM
26112009-03-27 Kevin Ryde <user42@zip.com.au>
2612
2613 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2614 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2615 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2616 (Fgpm_mouse_stop): Pass that new parameter.
2617 * termhooks.h (close_gpm): Adjust prototype.
2618
84db11d6
SM
26192009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2620
c95a5008
SM
2621 * lisp.h (Fx_focus_frame): Declare.
2622
84db11d6
SM
2623 * callint.c (Fcall_interactively): For '^' just delegate the work to
2624 handle-shift-selection.
2625 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2626
0a1958d6
CY
26272009-03-24 Chong Yidong <cyd@stupidchicken.com>
2628
0bfdff23
CY
2629 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2630
0a1958d6
CY
2631 * data.c (Qinteractive_form): New variable.
2632 (Finteractive_form): Use it.
2633
2634 * eval.c (Fcommandp): Use Qinteractive_form.
2635
58aec0d6
JR
26362009-03-24 Jason Rumney <jasonr@gnu.org>
2637
2638 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2639 Calculate total size precisely. Decode environment variables
2640 before substituting. (Bug#38)
2641
553dd618
KH
26422009-03-24 Kenichi Handa <handa@m17n.org>
2643
2644 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2645 encoding (Bug#2722).
553dd618 2646
c39ea606
JD
26472009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2648
2649 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2650 that gdpy is set.
2651
bc9b2b5e
AM
26522009-03-22 Alan Mackenzie <acm@muc.de>
2653
2654 * callint.c (Finteractive): Clarify the doc string - even
2655 promptless elements need \n separators.
2656
9f995a76
JR
26572009-03-22 Jason Rumney <jasonr@gnu.org>
2658
2659 * w32term.c (syms_of_w32term): Doc fix for
2660 x-use-underline-position-properties.
2661
22749e9a
EZ
26622009-03-21 Eli Zaretskii <eliz@gnu.org>
2663
2664 * w32.c (getpwuid): Change argument type to unsigned.
2665 (struct w32_id): Change type of `rid' member to unsigned.
2666 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2667 argument ID to unsigned. All callers changed.
2668 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2669
e00553bf
EZ
26702009-03-20 Eli Zaretskii <eliz@gnu.org>
2671
2672 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2673 negative, produce a float value.
2674
2675 * dired.c (make_uid, make_gid): New functions.
2676 (Ffile_attributes): Use them to avoid negative UID and GID.
2677
f761d6b6
JB
26782009-03-20 Juanma Barranquero <lekktu@gmail.com>
2679
2680 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2681 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2682 Fix typos in docstrings.
2683
d507f8d7
KH
26842009-03-19 Kenichi Handa <handa@m17n.org>
2685
2686 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2687 changed, use font_load_for_lface to get a new font object.
2688 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2689
2690 * frame.c (x_set_font): Handle the case that ARG is a cons.
2691
c68845e0
GM
26922009-03-19 Glenn Morris <rgm@gnu.org>
2693
2694 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2695
bfa49dd1
CY
26962009-03-19 Chong Yidong <cyd@stupidchicken.com>
2697
2698 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2699
8458d4c1
KH
27002009-03-19 Kenichi Handa <handa@m17n.org>
2701
2702 * charset.c (load_charset_map_from_file): When a mapfile can't be
2703 loaded, signal an error.
2704
78e7d1fe
EZ
27052009-03-18 Eli Zaretskii <eliz@gnu.org>
2706
2707 * dired.c (Ffile_attributes): Make sure UID and GID are always
2708 positive, even if the value is too large for a positive EMACS_INT.
2709 Doc fix.
2710
2711 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2712
5da9fdfa
YM
27132009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2714
2715 * xmenu.c (xdialog_show): Move Fredisplay call ...
2716 (Fx_popup_dialog): ... here.
2717
7519c40d
SM
27182009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2719
2720 * dired.c (file_name_completion): Disable the first optimization just
2721 installed, since it is not implemented correctly.
2722
2cd298e2
SM
27232009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2724
2725 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2726 only if the entry can affect bestmatch.
2cd298e2
SM
2727 Stop the search early, as Ftry_completion already does.
2728
48d37adf
CY
27292009-03-17 Chong Yidong <cyd@stupidchicken.com>
2730
e10c9c93 2731 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2732
9286b16a
CY
27332009-03-15 Chong Yidong <cyd@stupidchicken.com>
2734
2735 * keyboard.c (parse_menu_item): Don't display remappings as menu
2736 equivalent bindings (Bug#788).
2737
f7b146dc
JR
27382009-03-15 Jason Rumney <jasonr@gnu.org>
2739
2740 * w32term.h (WM_EMACS_PAINT): New message.
2741 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2742 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2743 before passing to lisp thread. (Bug#950)
2744
f761d6b6 27452009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2746
d93f9575
CY
2747 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2748 variable as it was never reset.
2749 (ns_term_init): Remove initialization of Lisp-settable defaults
2750 and ns_expand_space.
2751 (-setPanelFromDefaultValues): Remove ns_expand_space.
2752 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2753 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2754 i.e. no additional spacing, similar to Carbon port.
2755
d93f9575
CY
2756 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2757 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2758
305018ec
JD
27592009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2760
2761 * sound.c (alsa_configure): Remove call to deprecated
2762 snd_pcm_sw_params_set_xfer_align.
2763
f761d6b6 27642009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2765
2766 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2767 after clicking in a detached tool bar.
2768 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2769
46e722a9
SM
27702009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2771
348db3dd
SM
2772 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2773 int/Lisp_Object mixup).
46e722a9 2774
a3d16f39
KH
27752009-03-13 Kenichi Handa <handa@m17n.org>
2776
2777 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2778 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2779 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2780 (set_fontset_font): Change ARG to a vector. Handle range_list in
2781 ARG correctly.
2782 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2783 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2784 the above change.
2785 (fontset_from_font): Fix previous change.
fe24f56a 2786 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2787 entry. If FONTSET is the default fontset, don't set the extra
2788 slot of the returning char-table.
2789
b066e6b6
JB
27902009-03-12 Juanma Barranquero <lekktu@gmail.com>
2791
2792 * nsfns.m (Fx_close_connection): Doc fix.
2793 (Fns_do_applescript): Reflow docstring.
2794 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2795 (Fx_display_pixel_width, Fx_display_pixel_height)
2796 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2797 Fix typos in docstrings.
2798 (Fns_set_alpha): Fix typos in error messages.
2799
d472514e 28002009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 2801
d472514e 2802 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
2803 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2804 were used for such events.
2805
d472514e
JB
2806 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2807 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 2808
d472514e 2809 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
2810 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2811
fb930676
KH
28122009-03-11 Kenichi Handa <handa@m17n.org>
2813
ff85581a
KH
2814 * font.h (font_open_by_spec): Extern it.
2815
c50b7e98
KH
2816 * font.c (font_open_by_spec): New function.
2817 (font_open_by_name): Use font_open_by_spec.
2818
fb930676
KH
2819 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2820 fontset of the frame.
2821
2822 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2823 modify the default font of frames that use this fontset.
2824 (num_auto_fontsets): New variable.
2825 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2826 name. Be sure to set FONTSET_ASCII to the correct font name.
2827 (update_auto_fontset_alist): New function.
2828
df4e8455
JB
28292009-03-11 Juanma Barranquero <lekktu@gmail.com>
2830
2831 * makefile.w32-in: Update dependencies.
2832
0a375797
AR
28332009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2834
2835 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2836
61313fa3
SM
28372009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2838
2839 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2840
b55103fb
CY
28412009-03-10 Chong Yidong <cyd@stupidchicken.com>
2842
2843 * lread.c (Feval_buffer): Doc fix.
2844
dde2559c
KH
28452009-03-09 Kenichi Handa <handa@m17n.org>
2846
2847 * charset.c (Qfile_name_handler_alist): Extern it.
2848 (load_charset_map_from_file): Temporarily bind
2849 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2850
df4e8455 28512009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2852
47f588bb
GM
2853 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2854 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2855
4ddf94bd
AR
28562009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2857
4c9bdfc2
AR
2858 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2859 (x_set_window_size): Change back to calculated method of setting
2860 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
2861 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2862 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2863
fe41ae9e
AR
2864 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2865
4c9bdfc2
AR
2866 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2867 accelerator in parens under GNUstep.
2868
825d0875
KH
28692009-03-06 Kenichi Handa <handa@m17n.org>
2870
2871 These changes are to detect incorrect composition sequence without
f3b3be74 2872 looking ahead the source. (Bug#2370)
825d0875
KH
2873
2874 * coding.h: Include "composite.h".
2875 (enum compisition_state): New enum.
2876 (struct compisition_status): New struct.
2877 (struct iso_2022_spec): New member cmp_status.
2878 (struct emacs_mule_spec): New struct.
2879 (struct coding_system): New members ctext_extended_segment_len and
2880 embedded_utf_8. Change the union member
2881 spec.emacs_mule_full_support to spec.emacs_mule.
2882
2883 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2884 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 2885 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
2886 (ADD_COMPOSITION_DATA): New arg nbytes.
2887 (emacs_mule_char): New arg cmp_status.
2888 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2889 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2890 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2891 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2892 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2893 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2894 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2895 (EMACS_MULE_COMPOSITION_END): New macro.
2896 (emacs_mule_finish_composition): New function.
2897 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2898 (decode_coding_emacs_mule): Avoid long looking ahead while
2899 handling composition.
2900 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2901 (ENCODE_COMPOSITION_RULE): New macro.
2902 (finish_composition): New function.
2903 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2904 (DECODE_COMPOSITION_START): New implementation.
2905 (DECODE_COMPOSITION_END): Likewise.
2906 (STORE_COMPOSITION_RULE): New macro.
2907 (decode_coding_iso_2022): Avoid long looking ahead while handling
2908 composition, CTEXT extended segment, and embedded UTF-8.
2909 (setup_coding_system): For a coding of type iso-2022, reset
2910 CODING_ISO_EXTSEGMENT_LEN (coding) and
2911 CODING_ISO_EMBEDDED_UTF_8 (coding).
2912 (get_translation): Delete arguments last_block, from_nchars,
2913 to_nchars. Callers changed.
2914 (produce_chars): Don't modify charbuf. Adjusted for the change of
2915 get_translation.
98a326f7 2916 (produce_composition): Adjust for the new annotation sequence.
825d0875 2917 (handle_composition_annotation): Likewise.
98a326f7 2918 (consume_chars): Adjust for the change of get_translation.
825d0875 2919
ccbc4452
AR
29202009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2921
4ddf94bd 2922 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 2923
988a7ddb
KH
29242009-03-05 Kenichi Handa <handa@m17n.org>
2925
2926 * font.c (font_select_entity): New function.
2927 (font_find_for_lface): Use font_select_entity to select a font.
2928
2929 * fontset.c (fontset_find_font): If a font found without
a8a3728b 2930 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
2931 font with C restriction.
2932
98a326f7 29332009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 2934
be1bce46 2935 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 2936
10ea2b82
JR
29372009-03-04 Jason Rumney <jasonr@gnu.org>
2938
2c93b248 2939 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 2940 characters that have already been read. (Bug#2569)
2c93b248 2941
10ea2b82
JR
2942 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2943 Log an error message if check_image_size failed.
2944 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 2945 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 2946
71a0c011
EZ
29472009-03-02 Eli Zaretskii <eliz@gnu.org>
2948
2949 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2950 when decoding process output.
2951
2f63bba8
RS
29522009-03-01 Richard M Stallman <rms@gnu.org>
2953
2954 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2955
2956 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2957
0a9564cb
EZ
29582009-02-28 Eli Zaretskii <eliz@gnu.org>
2959
2960 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2961 (decode_coding_emacs_mule, decode_coding_iso_2022)
2962 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2963 (decode_coding_raw_text, decode_coding_charset)
2964 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2965 Honor inhibit-eol-conversion. (Bug #2186)
2966
449148b3
JR
29672009-02-28 Jason Rumney <jasonr@gnu.org>
2968
2969 * coding.c (detect_coding_charset): If not checking latin extra,
2970 fail on characters between 0x80 and 0xA0. (Bug#2354)
2971
a4aee864
EZ
29722009-02-28 Eli Zaretskii <eliz@gnu.org>
2973
2974 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 2975 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 2976
d88bee5a
GM
29772009-02-27 Glenn Morris <rgm@gnu.org>
2978
2979 * callint.c (Finteractive): Doc fix.
2980
a808f22d
KH
29812009-02-27 Kenichi Handa <handa@m17n.org>
2982
2983 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2984
caf8d60c
CY
29852009-02-27 Chong Yidong <cyd@stupidchicken.com>
2986
2987 * font.c (font_style_to_value): Set value for unknown symbols to
2988 100 instead of 255.
b61137ea
CY
2989 (weight_table, slant_table, width_table): Treat "unspecified" as
2990 the default value.
caf8d60c 2991
1a0de25c
JB
29922009-02-26 Juanma Barranquero <lekktu@gmail.com>
2993
2994 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2995
8fc45744
JB
29962009-02-25 Juanma Barranquero <lekktu@gmail.com>
2997
107bd7d1
JB
2998 * lread.c (Fload): Stop checking Vloads_in_progress and signal
2999 error as soon as a recursive load is detected.
8fc45744 3000
f097e223
AR
30012009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3002
3003 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3004 before caching.
3005
8810a12f
KH
30062009-02-24 Kenichi Handa <handa@m17n.org>
3007
3008 * fontset.c (fontset_find_font): Fix the condition for checking
3009 unavailable font.
3010
2c7d1565
GM
30112009-02-24 Glenn Morris <rgm@gnu.org>
3012
3013 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3014 whitespace that confuses documentation.
3015
a20878b6
MB
30162009-02-23 Miles Bader <miles@gnu.org>
3017
3018 * process.c (Flist_system_processes, Fprocess_attributes)
3019 (syms_of_process): Rename `system-process-attributes' to
3020 `process-attributes'.
3021
b3b58c01
AS
30222009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3023
1b3b981b
AS
3024 * coding.h (struct coding_system): Make safe_charsets a pointer to
3025 unsigned char.
3026 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3027 being 255.
3028 (SAFE_CHARSET_P): Likewise.
3029 (setup_iso_safe_charsets): Properly setup safe_charsets.
3030 (Fdefine_coding_system_internal): Likewise.
3031 (setup_coding_system): Likewise. Remove unneeded casts.
3032 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3033 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3034 unneeded casts.
3035
b3b58c01
AS
3036 * insdel.c (del_range_2): Don't modify gap contents when called
3037 from decode_coding_object. (Bug#1809)
3038
0b6f228c
CY
30392009-02-21 Chong Yidong <cyd@stupidchicken.com>
3040
3041 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3042 Qfont_object.
3043 (Ftype_of): Recognize font objects.
3044
3045 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3046
3047 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3048 moved to data.c.
3049
52f8870b
AR
30502009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3051
3052 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3053 async_iconified. Based on a patch by Christian Lynbech
3054 <christian.lynbech@tieto.com>.
3055 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3056
7087d5e9
GM
30572009-02-20 Glenn Morris <rgm@gnu.org>
3058
3059 * syntax.c (Fskip_chars_forward): Fix doc typo.
3060
41d2ceef
CY
30612009-02-20 Chong Yidong <cyd@stupidchicken.com>
3062
3063 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3064
1a3b7ca6
CY
30652009-02-19 Chong Yidong <cyd@stupidchicken.com>
3066
3067 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3068
73cce38d
KH
30692009-02-19 Kenichi Handa <handa@m17n.org>
3070
3071 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3072 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3073
a51092ee
DN
30742009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3075
3076 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3077
c423ecca
KH
30782009-02-18 Kenichi Handa <handa@m17n.org>
3079
3080 * font.c (font_check_otf_features): Fix handling of `nil' element.
3081 (Ffont_spec): Describe :lang and :otf in the docstring.
3082
4c1958f4
AS
30832009-02-16 Andreas Schwab <schwab@suse.de>
3084
3085 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3086 string.
3087
5704f39a
KH
30882009-02-16 Kenichi Handa <handa@m17n.org>
3089
3090 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3091 (Bug#1723)
5704f39a 3092
8f0085aa
CY
30932009-02-14 Chong Yidong <cyd@stupidchicken.com>
3094
a057d86a 3095 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3096
3097 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3098 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3099
aff01dd9
EZ
31002009-02-14 Eli Zaretskii <eliz@gnu.org>
3101
3102 * msdos.c (MAX_SCREEN_BUF): New macro.
3103 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3104 Encode the entire run of glyphs sharing the same face, instead of
3105 doing that one glyph at a time (fixes a bug with displaying
3106 double-size characters).
3107
ba301db3
AR
31082009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3109
3110 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3111
3112 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3113 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3114 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3115
3116 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3117 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3118
51d861de
SM
31192009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3120
3121 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3122 invisible areas.
3123
7fed8996
JR
31242009-02-12 Jason Rumney <jasonr@gnu.org>
3125
631ea4fb
JR
3126 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3127 (add_font_entity_to_list): Call check_face_name even when family
3128 is unspecified.
3129
cb4a3e42
JR
3130 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3131 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3132 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3133
7fed8996 3134 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3135 raster fonts. (Bug#2219)
7fed8996 3136
895416e3
KH
31372009-02-12 Kenichi Handa <handa@m17n.org>
3138
3139 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3140 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3141 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3142 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3143 (find_automatic_composition): While looking forward and backward,
3144 check static composition. Fix where to stop looking forward.
3145 (composition_adjust_point): Fix checking of static composition.
3146 (Fcomposition_get_gstring): Pay attention to
1dacf998 3147 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3148
3149 * lisp.h (fast_looking_at): Extern it.
3150
3151 * search.c (fast_looking_at): New function.
3152
51d861de 3153 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3154 <struct glyph>.u.cmp.to.
3155 (append_composite_glyph): Likewise.
3156
51d861de 3157 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3158 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3159 composition.
51d861de 3160 (append_composite_glyph): Adjust for the change of
895416e3
KH
3161 <strcut glyph>.u.cmp.to.
3162
8510724d
JB
31632009-02-11 Juanma Barranquero <lekktu@gmail.com>
3164
3165 * casetab.c (init_casetab_once):
3166 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3167 * font.c (font_update_lface):
3168 * fontset.c (Fnew_fontset):
3169 * ftfont.c (ftfont_drive_otf):
3170 * xfont.c (xfont_open):
3171 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3172
294fa707
SM
31732009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3174
3175 * fileio.c (Fwrite_region): !NILP -> CONSP.
3176
b5bfebec
AS
31772009-02-10 Andreas Schwab <schwab@suse.de>
3178
3179 * process.c (send_process): Properly relocate pointer into data
adab88bd 3180 when using encoded data. (Bug#2272)
b5bfebec 3181
cb84a2be
KH
31822009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3183
3184 * coding.c (detect_coding_charset): Fix previous change.
3185
89e09428
JR
31862009-02-08 Jason Rumney <jasonr@gnu.org>
3187
3188 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3189 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3190
4470a277
AS
31912009-02-07 Andreas Schwab <schwab@suse.de>
3192
3193 * unexelf.c (unexec): Fix error message.
3194
3175b12a
AR
31952009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3196
3197 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3198 when modal window is active. (Bug #2152)
3175b12a
AR
3199 (applicationShouldTerminate:): Remove now-unneeded while loop
3200 around NSRunAlertPanel.
3201
3202 * nsmenu.m (popupSession): New file-global variable.
3203 (pop_down_menu): End the popupSession before closing dialog.
3204 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3205 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3206 don't query NSApp for events (just sleep instead).
3207
8434d0b8
EZ
32082009-02-07 Eli Zaretskii <eliz@gnu.org>
3209
51d861de
SM
3210 * coding.c (syms_of_coding) <translation-table-for-input>:
3211 Modify doc string to discourage use for character code unification.
8434d0b8 3212
aa82edfd
CY
32132009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3214
3215 * atimer.c (run_timers): Update pending_atimers.
3216
2d283c7c
CY
32172009-02-06 Chong Yidong <cyd@stupidchicken.com>
3218
eb306cab
CY
3219 * image.c (svg_load_image): Fix last change.
3220
2d283c7c
CY
3221 * xfns.c (Fx_create_frame): Signal an error if no font is
3222 found (Bug#2147).
3223
4d8e170e
JB
32242009-02-05 Juanma Barranquero <lekktu@gmail.com>
3225
3226 * character.c (syms_of_character) <script-representative-chars>:
3227 Fix typo in docstring.
3228
c96169a0
AR
32292009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3230
3231 * nsmenu.m (pop_down_menu): New function.
3232 (ns_popup_dialog): Call it on unwind.
3233 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3234 call timer_check() (Bug#2154).
3235 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3236 handling_signal is set.
3237 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3238
31fd7c5c 3239 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3240
3241 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3242
3243 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3244
51d861de
SM
3245 * keyboard.c (poll_for_input_1, handle_async_input):
3246 Set handling_signal under HAVE_NS.
c96169a0 3247
aacd8ba1
GM
32482009-02-04 Glenn Morris <rgm@gnu.org>
3249
3250 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3251
4cb75c4b
KH
32522009-02-04 Kenichi Handa <handa@m17n.org>
3253
3254 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3255
3256 * charset.c (Fchar_charset): New optional arg restriction.
3257
3258 * coding.h (coding_system_charset_list): Extern it.
3259
3260 * coding.c (coding_system_charset_list): New function.
3261
3262 * composite.c: Include coding.h and termhooks.h.
3263 (composition_gstring_p): Fix for the terminal case.
3264 (composition_gstring_width): Likewise.
3265 (fill_gstring_body): Likewise.
3266 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3267 the frame.
3268 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3269 is within a composition.
867d4bb3 3270 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3271
3272 * term.c (encode_terminal_code): Fix handling of composition.
3273 (produce_composite_glyph): For static composition, get pixel_width
3274 from struct composition.
3275
826ba17e
AS
32762009-02-02 Andreas Schwab <schwab@suse.de>
3277
3278 * unexelf.c (unexec): Handle unaligned bss offset.
3279
8ad093db
AR
32802009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3281
3282 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3283 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3284
8ad093db
AR
3285 * keyboard.c (handle_interrupt): Don't call
3286 quit_throw_to_read_char() under NS.
d0a76a6e 3287
8ad093db
AR
3288 * blockinput.h: Remove NS-specific code.
3289
4d18a7a2
DN
32902009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3291
db878925
DN
3292 * dispnew.c (window_change_signal): Don't try to get the size of a
3293 suspended tty frame.
3294 * term.c (Fresume_tty): Resize if the size has changed while the
3295 tty was suspended.
3296
4d18a7a2
DN
3297 * alloc.c (mark_stack): Properly conditionalize previous change.
3298
8984df7c
JB
32992009-01-30 Juanma Barranquero <lekktu@gmail.com>
3300
3301 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3302 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3303 Remove; this code is not used on Windows.
3304
75f4f1ac
EZ
33052009-01-30 Eli Zaretskii <eliz@gnu.org>
3306
3307 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3308 EOLs that also has stray ^M characters.
3309
07a1e794
JB
33102009-01-30 Juanma Barranquero <lekktu@gmail.com>
3311
3312 * atimer.c (run_timers, alarm_signal_handler):
3313 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3314 * w32inevt.c (w32_console_read_socket):
3315 * w32term.c (w32_read_socket):
3316 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3317
a8b11cc9
CY
33182009-01-30 Chong Yidong <cyd@stupidchicken.com>
3319
3320 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3321 Initialize it as a relative filename pattern.
3322 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3323 (Fcall_process_region): Simplify temp file creation using
3324 temporary-file-directory.
3325
c279587b
EZ
33262009-01-29 Eli Zaretskii <eliz@gnu.org>
3327
3328 * msdos.c: Rename pending_signals to msdos_pending_signals.
3329 (sig_suspender, sigprocmask): Adjust.
3330
a8fe3242
CY
33312009-01-29 Chong Yidong <cyd@stupidchicken.com>
3332
3333 * keyboard.c (pending_signals): New var.
3334 (poll_for_input, input_available_signal, init_keyboard): Set it.
3335 (process_pending_signals): New function.
3336
3337 * lisp.h (QUIT): Check pending_signals instead of
3338 interrupt_input_pending. Use process_pending_signals.
3339
51d861de 3340 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3341
51d861de 3342 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3343
3344 * sysdep.c (emacs_write): Use process_pending_signals.
3345
3346 * xterm.c (XTread_socket): Update pending_signals.
3347
3348 * w32term.c (w32_read_socket): Update pending_signals.
3349
3350 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3351
6570a1c4
KH
33522009-01-29 Kenichi Handa <handa@m17n.org>
3353
3354 * xftfont.c (xftfont_has_char): New function.
3355 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3356
d72a4afa
AR
33572009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3358
3359 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3360 under GNUstep.
3361 (ns_query_color): New declaration.
3362
3363 * nsterm.m (ns_confirm_quit): New variable.
3364 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3365 (EmacsApp-applicationShouldTerminate:): Use it.
3366 (EmacsPrefsController): Let user set it.
3367 (ns_query_color): New function.
3368 (ns_defined_color): Use it.
3369 (ns_initialize): Drop.
3370 (ns_term_init): Add two lines from ns_initialize(), and set
3371 input_interrupt_mode to nil.
3372
3373 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3374 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3375
9fe78804
KH
33762009-01-28 Kenichi Handa <handa@m17n.org>
3377
3378 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3379 (fontset_get_font_group): Remember that no font-group is specified
3380 for C.
9fe78804 3381
fa57de36
CY
33822009-01-27 Chong Yidong <cyd@stupidchicken.com>
3383
930600e9
CY
3384 * fns.c (concat): Check for string overflow (bug#1787).
3385
fa57de36
CY
3386 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3387 Quadruple undo limits (bug#1501).
3388
7179ce7b
KH
33892009-01-27 Kenichi Handa <handa@m17n.org>
3390
3391 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3392 directly use GT_Get_Char_index.
3393
3394 * xftfont.c (struct xftfont_info): New member `index'.
3395
3396 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3397 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3398
5be8fcc0
CY
33992009-01-26 Kenichi Handa <handa@m17n.org>
3400
3401 * fontset.c (fontset_find_font): Fix handling of non-cons return
3402 value of fontset_get_font_group.
3403 (fontset_font): Revert last change.
3404
19ae3e61
JR
34052009-01-26 Jason Rumney <jasonr@gnu.org>
3406
3407 * w32font.c (w32font_list_internal): Return quickly if registry is
3408 unknown. Simplify final return.
3409 (add_font_entity_to_list): Break complex logic down into more
3410 manageable chunks. Move unknown registry check to
3411 w32font_list_internal.
3412
8612b71a
AR
34132009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3414
3415 Changes to remove Feval calls from GUI under NS.
3416
d8038940
JB
3417 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3418 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3419 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3420
3421 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3422 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3423 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3424 instead of NON_ASCII_KEYSTROKE_EVENT.
3425 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3426 (EmacsApp-applicationShouldTerminate:): Query user.
3427 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3428 instead of Feval.
3429
3430 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3431
3432 * keyboard.c (kbd_buffer_get_event): Check for it.
3433 (keys_of_keyboard): Define lispy keys for
3434 ns-put/unput-working-text.
3435
3436 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3437 versions.
3438 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3439
6288ae55
CY
34402009-01-25 Chong Yidong <cyd@stupidchicken.com>
3441
3442 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3443 setting current_buffer directly. (Bug#2044)
6288ae55 3444
289e7f8f
CY
34452009-01-24 Chong Yidong <cyd@stupidchicken.com>
3446
5ce87308 3447 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3448 any work. (Bug#1952, bug#1990).
5ce87308 3449
64cc3cf6 3450 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3451
b3243e6f
AR
34522009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3453
3454 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3455 (ns_no_defaults): New declaration.
3456 (main): Use it.
e0d2e69a 3457
d900b2af 3458 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3459
d900b2af 3460 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3461
d900b2af
AR
3462 * nsterm.m (ns_no_defaults): New variable.
3463 (ns_initialize): Don't read defaults when ns_no_defaults.
3464 (EmacsView-readSelectionFromPasteboard:)
3465 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3466 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3467 (ns_dumpglyphs_stretch): New function.
3468 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3469 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3470
e0d2e69a
AR
3471 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3472
3ac71f5d
CY
34732009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3474
3475 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3476 call for Sparc64.
3477
3fe53a83
AR
34782009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3479
3480 * nsfns.m:
3481 * nsgui.h:
3482 * nsmenu.m:
3483 * nsselect.m:
3484 * nsterm.h:
3485 * nsterm.m: Remove '23' comments that indicated code added during
3486 update from emacs-20 -> emacs-23.
3487
10f87c6f 34882009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3489
3490 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3491 ns_alternate_modifier. (Bug#1217)
a3b53a85 3492
c7cef62d
AR
3493 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3494 Display all shortcuts, including those w/o super modifier.
3495
575fb8bd
AR
3496 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3497
918b848b
CY
34982009-01-22 Chong Yidong <cyd@stupidchicken.com>
3499
3500 * fileio.c (Vwrite_region_post_annotation_function)
3501 (Vwrite_region_annotation_buffers): New vars.
3502 (build_annotations_unwind): Just reset
3503 Vwrite_region_annotation_buffers.
3504 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3505 Call write-region-post-annotation-function.
3506 (build_annotations): Add to Vwrite_region_annotation_buffers if
3507 buffer changes.
3508
a39e2539
AR
35092009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3510
3511 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3512 Tiger.
51d861de
SM
3513 * nsfns.m (ns_do_applescript):
3514 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3515
35ed44db
AR
35162009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3517
3518 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3519
cbe0b5bf
AR
35202009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3521
3522 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3523
6049d3a0
AR
3524 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3525
3526 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3527 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3528 handle Ctrl-tab. (Bug#1841)
3529 (ns_get_color): Use unsigned long long for scanned hex string value.
3530 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3531 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3532 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3533 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3534 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3535 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3536 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3537
d3810c21 3538 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3539 DPI. (Bug#1316)
d3810c21
AR
3540 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3541 values in onTiger section.
4c7077c3 3542
e301e634
CY
35432009-01-19 Chong Yidong <cyd@stupidchicken.com>
3544
7f82490b
CY
3545 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3546 Check return value of font_spec_from_name.
64cc3cf6 3547 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3548
3549 * font.c (font_spec_from_name): Return Qnil if font name could not
3550 be parsed.
3551 (font_parse_name): Treat a `?' character as part of an XLFD.
3552
e301e634
CY
3553 * fns.c (Fsubstring): Doc fix.
3554
1c0db158
KH
35552009-01-19 Kenichi Handa <handa@m17n.org>
3556
51d861de 3557 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3558 (ftfont_list): Likewise.
3559
acf20901
JB
35602009-01-18 Juanma Barranquero <lekktu@gmail.com>
3561
fff4e459
JB
3562 * dbusbind.c (Fdbus_register_signal):
3563 * process.c (conv_sockaddr_to_lisp):
3564 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3565
acf20901
JB
3566 * callproc.c (Fgetenv_internal): Doc fix.
3567
e7abcdfb
CY
35682009-01-16 Chong Yidong <cyd@stupidchicken.com>
3569
3570 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3571 it is not even used.
3572
b60861e6
GM
35732009-01-16 Glenn Morris <rgm@gnu.org>
3574
3575 * font.c (Ffont_variation_glyphs): Silence compiler.
3576
8db52afe
JB
35772009-01-15 Juanma Barranquero <lekktu@gmail.com>
3578
3579 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3580 Reported by David Robinow <drobinow@gmail.com>.
3581
4cddb209
KH
35822009-01-15 Kenichi Handa <handa@m17n.org>
3583
51d861de 3584 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3585
f247f67b
JR
35862009-01-14 Jason Rumney <jasonr@gnu.org>
3587
3588 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3589 never a fontset. (Bug#1562)
f247f67b 3590
f56a4450
KH
35912009-01-14 Kenichi Handa <handa@m17n.org>
3592
3593 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3594 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3595
4e99855e
CY
35962009-01-13 Chong Yidong <cyd@stupidchicken.com>
3597
3598 * font.c (font_clear_prop): If clearing the family, clear the font
3599 width index too.
3600
fff4e459 3601 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3602
24f01470
JB
36032009-01-12 Juanma Barranquero <lekktu@gmail.com>
3604
3605 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3606 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3607 functions, use sizeof.
3608
a41240a3
MR
36092009-01-12 Martin Rudalics <rudalics@gmx.at>
3610
3611 * keyboard.c (read_char): Fix case where last_nonmenu_event
3612 returned a bad value with submenus. (Bug#447)
3613
944636b8
CY
36142009-01-12 Chong Yidong <cyd@stupidchicken.com>
3615
3616 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3617 family, clear the font width index too.
3618
0dad7c6f
JR
36192009-01-11 Jason Rumney <jasonr@gnu.org>
3620
3621 * keyboard.c (cmd_error_internal): Exit when errors occur before
3622 frame creation and not in daemon mode. (Bug#1836)
3623
7c2363af
CY
36242009-01-10 Chong Yidong <cyd@stupidchicken.com>
3625
3626 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3627 of a display vector, backtrack.
3628 (try_window_reusing_current_matrix): Check glyph type before
3629 referencing charpos member.
3630
97b1b294
EZ
36312009-01-10 Eli Zaretskii <eliz@gnu.org>
3632
3633 Fix Bug #876:
3634
3635 * coding.c (inhibit_null_byte_detection): New variable.
3636 (detect_coding, detect_coding_system): Don't pay attention to null
3637 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3638 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3639 <inhibit-iso-escape-detection>: Doc fix.
3640
4624b6e3
JR
36412009-01-09 Jason Rumney <jasonr@gnu.org>
3642
3643 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3644 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3645 Only report Unicode Plane 2 fonts as unicode-sip.
3646
323b840c
CY
36472009-01-09 Chong Yidong <cyd@stupidchicken.com>
3648
51d861de
SM
3649 * xfaces.c (Fx_font_family_list): Delete function.
3650 Move compatibility version to faces.el.
323b840c 3651
51d861de 3652 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3653
eba7400d
MR
36542009-01-09 Martin Rudalics <rudalics@gmx.at>
3655
3656 * frame.c (x_set_frame_parameters): Remember requested value for
3657 fullscreen before it's reset by the parameter handler.
3658
4b09796d
GM
36592009-01-09 Glenn Morris <rgm@gnu.org>
3660
3661 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3662 (last_command_event): ... and update all users.
4b09796d
GM
3663 (last_input_char): For clarity, rename to...
3664 (last_input_event): ... and update all users.
3665 (last-command-char, last-input-char): Move to subr.el as aliases.
3666 * cmds.c, commands.h: Update for last_command_char rename.
3667
14ccea62
CY
36682009-01-08 Chong Yidong <cyd@stupidchicken.com>
3669
51d861de 3670 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3671
5f004711
JR
36722009-01-08 Jason Rumney <jasonr@gnu.org>
3673
3674 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3675 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3676 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3677 Don't declare.
fff4e459 3678 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3679 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3680
b71f6f73
KH
36812009-01-07 Kenichi Handa <handa@m17n.org>
3682
50b06221 3683 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3684 remember the coding system used for decoding in
50b06221
KH
3685 coding_system (Bug#1039).
3686
b71f6f73 3687 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3688 breaking the loop. (Bug#870)
b71f6f73
KH
3689 (decode_coding_utf_16, decode_coding_emacs_mule)
3690 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3691 (decode_coding_charset): Likewise.
3692
56f668f7
MR
36932009-01-05 Martin Rudalics <rudalics@gmx.at>
3694
3695 * frame.c (x_set_frame_parameters): Make sure height (width) get
3696 applied when fullwidth (fullheight) is set. (Bug#1522)
3697
5da9424d
JB
36982009-01-04 Juanma Barranquero <lekktu@gmail.com>
3699
3700 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3701 (utc_base): Declare as ULONGLONG, not long double.
3702 (convert_time_raw): Delete.
3703 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3704 (initialize_utc_base): New function.
3705 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3706 (convert_from_time_t): Use initialize_utc_base; compute result with
3707 64-bit arithmetic.
3708 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3709
c4605e09
EZ
37102009-01-03 Eli Zaretskii <eliz@gnu.org>
3711
9acef61c 3712 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3713 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3714 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3715 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3716 [!subprocesses]: Define.
3717 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3718 (Flist_system_processes, Fsystem_process_attributes)
3719 [!subprocesses]: Call list_system_processes and
3720 system_process_attributes instead of returning Qnil.
3721
9acef61c
JB
3722 * dosfns.c (system_process_attributes, list_system_processes):
3723 New functions.
c4605e09
EZ
3724
3725 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3726
3727 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3728 Don't use the default (no-op) implementation.
3729
8b7d0a16
JR
37302009-01-03 Jason Rumney <jasonr@gnu.org>
3731
a6d46bc1
JR
3732 * keyboard.c (parse_modifiers_uncached): Wheel events are
3733 clicks (bug#687).
3734
8b7d0a16
JR
3735 * w32term.c (x_query_colors, x_query_color): New functions.
3736
3737 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3738 (svg_load_image): Cast returned pointers from dynamically loaded
3739 functions. Eliminate W32 specific code.
3740
bfe11752
DN
37412009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3742
89e2438a
DN
3743 * nsfns.m (x_set_foreground_color, x_set_background_color)
3744 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3745 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3746 x_ prefix instead of ns_. Update references.
3747 (syms_of_nsfns): Add a FIXME comment.
3748
3749 * nsterm.m (x_set_cursor_type): New prototype.
3750 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3751
bfe11752
DN
3752 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3753 for Solaris instead of incorrectly providing Qutime and Qcutime.
3754
031da700
EZ
37552009-01-02 Eli Zaretskii <eliz@gnu.org>
3756
3757 * w32.c (process_times): Compute sum of utime and stime.
3758 (system_process_attributes): Add Qtime to the alist.
3759
3760 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3761 and add them to the alist.
3762
3763 * process.c (top level) <Qtime, Qctime>: New variables.
3764 (syms_of_process): staticpro them.
3765 (Fsystem_process_attributes): Add their documentation to the doc
3766 string.
3767
3768 * process.h: Declare Qtime and Qctime.
3769
df23bf08
JR
37702009-01-02 Jason Rumney <jasonr@gnu.org>
3771
9acef61c 3772 * image.c (Qgobject): New symbol.
df23bf08
JR
3773 (syms_of_image): Initialize it.
3774 (init_svg_functions): Load some functions from gobject library.
3775
5bbdf7aa
DN
37762009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3777
3778 * frame.c (make_terminal_frame): Remove redundant code and useless
3779 block.
3780
63136da6
AS
37812009-01-01 Andreas Schwab <schwab@suse.de>
3782
3783 * process.c (conv_sockaddr_to_lisp): Add workaround for
3784 getsockname bug on BSD.
3785
9ef69046
CY
37862009-01-01 Chong Yidong <cyd@stupidchicken.com>
3787
d6fafbe0
CY
3788 * xfns.c (x_create_tip_frame): Set border width of the X window.
3789
51d861de 3790 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3791
f9c34147
JR
37922009-01-01 Jason Rumney <jasonr@gnu.org>
3793
9acef61c 3794 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
3795 Don't block input, as per earlier xterm.c changes.
3796
f5497e45
AR
37972008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3798
3799 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3800 (ns_appkit_version_int): New function.
3801 (x-server-version): Use ns_appkit_version_int and follow 21+
3802 convention of returning 3 integers.
3803
c19cab20
KH
38042008-12-30 Kenichi Handa <handa@m17n.org>
3805
3806 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3807 (CHAR_SURROGATE_PAIR_P): New macro.
3808
3809 * font.h (struct font_driver): New member get_variation_glyphs.
3810
9acef61c 3811 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
3812 (Ffont_variation_glyphs): New function.
3813 (syms_of_font): Defsubr it.
3814
3815 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3816 ftfont_variation_glyphs.
3817 (setup_otf_gstring): New function.
3818 (ftfont_drive_otf): Use it.
3819 (ftfont_shape_by_flt): Handle variation selector.
3820 (ftfont_variation_glyphs): New function.
3821
28cd591f
MR
38222008-12-30 Martin Rudalics <rudalics@gmx.at>
3823
3824 * frame.c (Vemacs_iconified): Remove.
3825
7f714baf
JR
38262008-12-30 Jason Rumney <jasonr@gnu.org>
3827
3828 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3829 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3830
9d2d22ab
CY
38312008-12-30 Chong Yidong <cyd@stupidchicken.com>
3832
3833 * indent.c (Fvertical_motion): Don't advance iterator if we have
3834 reseated to the desired position.
3835
3836 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3837 checking for pos match.
3838
545312c2
KH
38392008-12-30 Kenichi Handa <handa@m17n.org>
3840
1ede3eb6
KH
3841 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3842 just get the low 8-bit of the code.
3843
545312c2
KH
3844 * font.c (font_intern_prop): Validate str as multibyte.
3845
bd7bbf29
DN
38462008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3847
31e0750e
DN
3848 * dispextern.h (struct face): Move lface and hash from the middle
3849 of bitfields.
3850
bd7bbf29
DN
3851 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3852
b5672e7c
DN
38532008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3854
3855 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3856 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3857 instead of intervals.h.
3858
d704470f
AS
38592008-12-26 Andreas Schwab <schwab@suse.de>
3860
3861 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3862 cons.
3863
54b33868
MR
38642008-12-26 Martin Rudalics <rudalics@gmx.at>
3865
3866 * textprop.c (Qminibuffer_prompt): New variable.
3867 (syms_of_textprop): Initialize it.
3868 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3869 in minibuffer-prompt face. (Bug#1662)
3870
40b615d6
JR
38712008-12-25 Jason Rumney <jasonr@gnu.org>
3872
3873 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3874
baae5c2d
JR
38752008-12-24 Jason Rumney <jasonr@gnu.org>
3876
3877 * ralloc.c (r_alloc_reset_variable): New function.
3878
3879 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 3880 record of what points where. (Bug#716)
baae5c2d 3881
a9051c88
DN
38822008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3883
3884 * minibuf.c (read_minibuf): Follow the non-interactive case when
3885 running as a daemon, before detaching.
3886
8b146312
AS
38872008-12-22 Andreas Schwab <schwab@suse.de>
3888
3889 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3890 * gtkutil.c (free_widget_value): Use xfree instead of free.
3891
56f2de10
MR
38922008-12-22 Martin Rudalics <rudalics@gmx.at>
3893
3894 * frame.c (delete_frame): New function derived from
3895 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3896 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3897 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3898 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3899 * frame.h: Extern delete_frame.
3900 * window.c (window_loop):
3901 * terminal.c (delete_terminal):
3902 * xterm.c (x_connection_closed):
3903 * xfns.c (Fx_hide_tip):
9acef61c 3904 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 3905
1fc200d6
JR
39062008-12-21 Jason Rumney <jasonr@gnu.org>
3907
3908 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3909 when character maps to .notdef character.
3910
5e252df2
SM
39112008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3912
3913 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3914
99b72cc4
JR
39152008-12-20 Jason Rumney <jasonr@gnu.org>
3916
3917 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 3918 a graphical frame on Windows. (Bug#1325)
99b72cc4 3919
acc49a52
JD
39202008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3921
3922 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3923
6ea15123
CY
39242008-12-20 Chong Yidong <cyd@stupidchicken.com>
3925
3926 * minibuf.c (Fread_buffer): Doc fix.
3927
b2dab6c8
JR
39282008-12-20 Jason Rumney <jasonr@gnu.org>
3929
54ea0c87 3930 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 3931 server name in UNC paths. (Bug#719)
54ea0c87 3932
b2dab6c8 3933 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 3934 charbuf. (Bug#1035)
b2dab6c8 3935
6d1921be
DN
39362008-12-19 Daniel Engeler <engeler@gmail.com>
3937
3938 * sysdep.c (serial_configure): Fix typo.
3939
53934c98
DN
39402008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3941
3942 * sysdep.c: Include alloca.h.
f4f634e8
DN
3943 (system_process_attributes): Add implementation for Solaris.
3944
3945 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 3946
06e111a6
DN
39472008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3948
3949 Reorganize implementation of Flist_system_processes and
3950 Fsystem_process_attributes. No functional changes.
3951 * process.c: Don't #include pwd.h, grp.h and limits.h.
3952 (Flist_system_processes): Just call list_system_processes.
3953 (Fsystem_process_attributes): Just call system_process_attributes.
3954 (procfs_list_system_processes, time_from_jiffies)
3955 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3956 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3957
3958 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3959 (list_system_processes): Rename from
3960 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3961 Provide a do nothing implementation.
3962 (system_process_attributes): Rename from
3963 procfs_list_system_processes.
3964 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 3965 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
3966
3967 * w32.c (list_system_processes): Rename from
3968 w32_list_system_processes.
3969 (system_process_attributes): Rename from
3970 w32_system_process_attributes.
3971
3972 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3973
3974 * process.h (w32_list_system_processes)
3975 (w32_system_process_attributes): Remove.
362654a6
JB
3976 (list_system_processes, system_process_attributes):
3977 New prototypes.
06e111a6 3978
6a705b23
KH
39792008-12-19 Kenichi Handa <handa@m17n.org>
3980
3981 * xfont.c (xfont_decode_coding_xlfd): New function.
3982 (xfont_encode_coding_xlfd): New function.
3983 (xfont_list_pattern): Decode XLFD by iso-8859-1.
3984 (xfont_list): Decode and encode XLFD by iso-8859-1.
3985 (xfont_match): Likewise.
3986 (xfont_list_family): Likewise.
3987 (xfont_open): Likewise.
3988
d66c0241 3989 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
3990 names are utf-8.
3991
d66c0241 3992 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
3993 names are utf-8.
3994
5a130941
JD
39952008-12-18 Jan Djärv <jan.h.d@swipnet.se>
3996
3997 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3998 changed.
bfd20325
JD
3999 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4000 clicked on a detached tool bar button.
5a130941 4001
fd95644b
DN
40022008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4003
4004 * emacs.c (main): Print and error and exit when no data is read
4005 from the pipe.
4006
e6eee6ae
JR
40072008-12-17 Jason Rumney <jasonr@gnu.org>
4008
4009 * w32font.c (w32font_has_char): Always return -1.
4010
a35dd56b
KH
40112008-12-16 Kenichi Handa <handa@m17n.org>
4012
4013 * font.c (font_open_entity): Fix previous change.
4014
0e3635c2
DN
40152008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4016
4017 * process.c: Include <limits.h>.
4018
d4835507 40192008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4020
4021 * font.c (font_update_drivers): Fix mistake in reconstructing the
4022 driver list.
4023
40242008-12-16 Chong Yidong <cyd@stupidchicken.com>
4025
4026 * font.c (font_clear_cache): Fix format of font cache data.
4027
e2cbc401
CY
40282008-12-15 Chong Yidong <cyd@stupidchicken.com>
4029
4030 * xftfont.c (xftfont_open): Free Xft font pattern if
4031 XftFontOpenPattern fails.
4032
4033 * xterm.c (x_free_frame_resources): Remove extraneous call to
4034 free_frame_faces.
4035
b131d535
CY
40362008-12-13 Chong Yidong <cyd@stupidchicken.com>
4037
4038 * xterm.c (x_delete_display): Move xim_close_dpy call to
4039 x_delete_terminal.
4040 (x_delete_terminal): Call xim_close_dpy.
4041
e6df5336
JR
40422008-12-13 Jason Rumney <jasonr@gnu.org>
4043
4044 * w32font.c (intern_font_name): New function.
4045 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4046 (w32font_open_internal, Fx_select_font): Decode font name.
4047 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4048
4049 * w32font.h (intern_font_name): Declare new function.
4050
4051 * w32uniscribe.c (add_opentype_font_name_to_list):
4052 Use intern_font_name.
4053
20d68145
CY
40542008-12-13 Chong Yidong <cyd@stupidchicken.com>
4055
9f2554de
CY
4056 * frame.c (Fdelete_frame): Call free_font_driver_list.
4057
3d9bec9a
CY
4058 * font.c (free_font_driver_list): Implement missing function.
4059
20d68145
CY
4060 * w32term.c (w32_term_init): Don't initialize the image cache
4061 here; it will be done in init_frame_faces.
4062
4063 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4064 (struct x_display_info): Remove unused member null_pixel. New
4065 member xim_callback_data.
4066
4067 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4068 (xim_initialize): Save pointer to callback function data.
4069 (xim_close_dpy): Free callback function data. Call XCloseIM,
4070 reverting 2008-11-04 change by David Smith.
4071 (x_term_init): Don't initialize the image cache here; it will be
4072 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4073 (x_delete_display): Free x_dnd_atoms member.
4074
96f9306b
KH
40752008-12-13 Kenichi Handa <handa@m17n.org>
4076
6dec9044
JB
4077 * font.c (font_rescale_ratio): Moved from xfaces.c.
4078 Argument type changed. Handle a font-spec too.
96f9306b 4079 (font_score): Check Vface_font_rescale_alist.
6dec9044 4080 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4081
4082 * xfaces.c (font_rescale_ratio): Moved to font.c.
4083
8d5b4964
CY
40842008-12-13 Chong Yidong <cyd@stupidchicken.com>
4085
4086 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4087
e6df5336
JR
40882008-12-12 Jason Rumney <jasonr@gnu.org>
4089
4090 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4091 Vwindow_system_version to the real w32 major version.
4092
97c6058a
DN
40932008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4094
4095 * term.c (init_tty): Move setting the terminal name before the
4096 potential user: maybe_fatal.
4097
ec4e88d7
CY
40982008-12-11 Chong Yidong <cyd@stupidchicken.com>
4099
d4835507
JB
4100 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4101 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4102
b4233ec9
JR
41032008-12-11 Jason Rumney <jasonr@gnu.org>
4104
8ec71e23 4105 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4106 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4107
b4233ec9 4108 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4109 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4110
011a0143
JB
41112008-12-11 Juanma Barranquero <lekktu@gmail.com>
4112
4113 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4114
3c309f34
JB
41152008-12-11 Juanma Barranquero <lekktu@gmail.com>
4116
4117 * process.c (Fsystem_process_attributes, syms_of_process):
4118 Fix typo in name of Ssystem_process_attributes.
4119 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4120
fedc6ab5
JB
41212008-12-11 Juanma Barranquero <lekktu@gmail.com>
4122
4123 * syntax.c (Fmodify_syntax_entry): Doc fix.
4124
ba3de0e8
JB
41252008-12-10 Juanma Barranquero <lekktu@gmail.com>
4126
4127 * font.c (Ffont_spec): Move usage to end of docstring.
4128
174f1c74
JR
41292008-12-10 Jason Rumney <jasonr@gnu.org>
4130
4131 * w32font.c (Qcham): New symbol.
4132 (font_supported_scripts): Add cham, and comments for other new
4133 scripts in bitfield from OpenType spec.
9d32f818
JR
4134 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4135 contain characters beyond the bmp.
174f1c74 4136
7b649478
KH
41372008-12-10 Kenichi Handa <handa@m17n.org>
4138
4139 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4140 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4141 Qunicode_sip.
4142
2133e2d1
JB
41432008-12-10 Juanma Barranquero <lekktu@gmail.com>
4144
4145 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4146 (Fcoding_system_put): Use QCdefault_char.
4147 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4148
9af886ee
CY
41492008-12-09 Chong Yidong <cyd@stupidchicken.com>
4150
74d819eb
CY
4151 * xftfont.c (syms_of_xftfont): Fix typo.
4152
4ccfa1c0 4153 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4154
7c19d3ae
DN
41552008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4156
4157 * emacs.c (main): Close daemon_pipe on exec.
4158
567826bb
CY
41592008-12-08 Chong Yidong <cyd@stupidchicken.com>
4160
4161 * termchar.h (struct tty): New members termcap_term_buffer and
4162 termcap_strings_buffer.
4163
4164 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4165 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4166 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4167 All callers changed.
4168 (init_tty): Store termcap data and string buffers in new struct
4169 tty members termcap_term_buffer and termcap_strings_buffer.
4170 (delete_tty): Free them.
4ccfa1c0 4171 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4172
aa96c42b
SZ
41732008-12-07 Seiji Zenitani <zenitani@mac.com>
4174
4175 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4176 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4177
b7e1d896
CY
41782008-12-06 Chong Yidong <cyd@stupidchicken.com>
4179
4180 * coding.c (make_conversion_work_buffer): Disable buffer
4181 modification hooks in the work buffer.
4182
b5ec91a5
EZ
41832008-12-05 Eli Zaretskii <eliz@gnu.org>
4184
4185 * process.c (procfs_system_process_attributes): If `nread' has a
4186 negative value, assign zero to it.
4187
a5d2a52b
CY
41882008-12-05 Chong Yidong <cyd@stupidchicken.com>
4189
68c5540b 4190 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4191
7bf1bb21
KH
41922008-12-05 Kenichi Handa <handa@m17n.org>
4193
4194 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4195 second character is a combining character.
4196
2fdc7d00
EZ
41972008-12-05 Eli Zaretskii <eliz@gnu.org>
4198
4199 * process.c (procfs_system_process_attributes): Don't use cmd,
4200 cmdsize, and q without initializing them first.
4201
bf6bfba8
JR
42022008-12-04 Jason Rumney <jasonr@gnu.org>
4203
4204 * w32font.c (w32font_draw): Initialize orig_clip before getting
4205 it, and delete it when finished.
4206
a3b1a468
DN
42072008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4208
4209 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4210 case when running as a daemon before detaching.
4211
8b8be8eb
JB
42122008-12-03 Juanma Barranquero <lekktu@gmail.com>
4213
805f2638 4214 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4215
b1bde622
KH
42162008-12-03 Kenichi Handa <handa@m17n.org>
4217
e500c47d
KH
4218 * font.c (font_at): Set `multibyte' at first.
4219
ca516334
KH
4220 * coding.c (decode_coding_charset): Check type of an element of
4221 vector VALIDS.
7bf1bb21 4222 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4223
4ccfa1c0 4224 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4225 (font_for_char): Likewise.
4226
1e5ecd37
CY
42272008-12-03 Chong Yidong <cyd@stupidchicken.com>
4228
d5b01609 4229 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4230 (font_update_lface): Handle fonts with corrupted size specs,
4231 i.e. non-int and non-float.
d5b01609 4232
11e3a6e4 4233 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4234 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4235 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4236
ab06788b
CY
4237 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4238
1e5ecd37 4239 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4240 underline_minimum_offset for underline position.
1e5ecd37 4241
63c125ab
DN
42422008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4243
4244 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4245
4246 * character.c (c_string_width): Specify the type for LEN.
4247
3a8406e1
KH
42482008-12-03 Kenichi Handa <handa@m17n.org>
4249
4ccfa1c0 4250 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4251 (decode_coding_utf_8): Likewise.
4ccfa1c0 4252 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4253 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4254
651df7d9
CY
42552008-12-02 Chong Yidong <cyd@stupidchicken.com>
4256
4257 * keyboard.c (make_lispy_position): Only use PT if the selected
4258 window is current.
4259
1f625c6c
AS
42602008-12-02 Andreas Schwab <schwab@suse.de>
4261
f7741ce9
AS
4262 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4263
1f625c6c
AS
4264 * doprnt.c (doprnt1): Fix size of charbuf.
4265
92bc2678
CY
42662008-12-02 Chong Yidong <cyd@stupidchicken.com>
4267
4268 * keyboard.c (timer_check): Revert last change.
4269
93b9e8cc
JB
42702008-12-02 Juanma Barranquero <lekktu@gmail.com>
4271
4272 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4273
fd7a37d5
JB
42742008-12-01 Juanma Barranquero <lekktu@gmail.com>
4275
4276 * makefile.w32-in: Update dependencies.
4277 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4278
c115043b
AS
42792008-12-01 Andreas Schwab <schwab@suse.de>
4280
4281 * font.c (register_font_driver): Use xmalloc.
4282 (font_put_frame_data): Likewise.
4283
f5668d2a
CY
42842008-12-01 Chong Yidong <cyd@stupidchicken.com>
4285
860d96be
CY
4286 * xfaces.c (realize_x_face): Make abort condition clearer.
4287
f5668d2a
CY
4288 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4289
379c17e7
CY
42902008-11-30 Chong Yidong <cyd@stupidchicken.com>
4291
4292 * keyboard.c (timer_check): After a timer runs, ensure that the
4293 selected window's buffer is current.
4294
35f36d65
JB
42952008-11-30 Juanma Barranquero <lekktu@gmail.com>
4296
f952c61c
JB
4297 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4298 It was accidentally restored by the Unicode merge.
4299
35f36d65
JB
4300 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4301
b23077df
JB
43022008-11-29 Juanma Barranquero <lekktu@gmail.com>
4303
4304 * w32proc.c: Include "coding.h".
4305 (Fw32_short_file_name): Encode filename passed to Windows API.
4306 (Fw32_long_file_name): Encode filename passed to Windows API and
4307 decode back the result. (Bug#1433)
4308
b8ebe9dd
KH
43092008-11-29 Kenichi Handa <handa@m17n.org>
4310
8cc53f96
KH
4311 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4312 not before accessing it.
4313
b8ebe9dd
KH
4314 * charset.c (Fdefine_charset_internal): After calculating
4315 min_char, max_char, and fastmap, copy the charset structure again.
4316 (encode_char): Fix the previous change.
4317
59bc82c0
SZ
43182008-11-28 Seiji Zenitani <zenitani@mac.com>
4319
4320 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4321
4322 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4323
4324 * nsterm.m (x_set_frame_alpha): New function.
4325
32247e3d
EZ
43262008-11-27 Eli Zaretskii <eliz@gnu.org>
4327
4328 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4329
b003e5ff
JB
43302008-11-27 Juanma Barranquero <lekktu@gmail.com>
4331
4332 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4333 pointer to check_face_name.
4334
708550f5
KH
43352008-11-27 Kenichi Handa <handa@m17n.org>
4336
4337 * category.h (SET_CATEGORY_SET): Call set_category_set.
4338 (set_category_set): Extern it.
4339
4340 * category.c (hash_get_category_set): New function.
4341 (Fmodify_category_entry): Adjusted for the change of
4342 char_table_ref_and_range. Call hash_get_category_set to get a
4343 category set to store in the table.
4344
4345 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4346 Funify_charset.
4347
2ae37cf0 4348 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4349 (DECODE_CHAR): Check if the decoder vector is ready.
4350 (ENCODE_CHAR): Check if the encoder char-table is ready.
4351 (maybe_unify_char): Extern it.
4352
4353 * charset.c (Vchar_unified_charset_table): Delete it.
4354 (inhibit_load_charset_map): New variable.
4355 (temp_charset_work): New variable.
4356 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4357 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4358 New macros.
4359 (load_charset_map): Meaning of control_flag changed. If
4360 inhibit_load_charset_map is nonzero, setup a table in
4361 temp_charset_work.
4362 (load_charset): New argument control_flag.
4363 (map_charset_for_dump): New function.
4364 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4365 map_charset_for_dump.
4366 (Fdefine_charset_internal): If the charset method is MAP, load
4367 mapping tables by calling load_charset.
4368 (Funify_charset): Don't load a mapping table but directly set
4369 Vchar_unify_table.
4370 (maybe_unify_char): New function.
4371 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4372 Handle the case of inhibit_load_charset_map being nonzero.
4373 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4374 Handle the case of inhibit_load_charset_map being nonzero.
4375 (Fclear_charset_maps): Just free temp_charset_work.
4376 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4377 variable.
4378
4379 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4380 change of char_table_ref_and_range.
4381 (char_table_ref_and_range): Change the meaning of argument FROM
4382 and TO. Now the caller must provide initial values for *FROM
4383 and *TO.
4384
4385 * fontset.c (fontset_add): Adjusted for the change of
4386 char_table_ref_and_range.
4387 (fontset_get_font_group): Likewise.
4388 (Ffontset_info): Likewise.
4389
4390 * keymap.c (describe_vector): Adjusted for the change of
4391 char_table_ref_and_range. For char-table, put boundary between
4392 non-ASCII and 8-bit characters.
4393
4394 * print.c (print_object): For bool-vector, delete unnecessary
4395 check of ASCII_BYTE_P.
4396
9196133b
JR
43972008-11-26 Jason Rumney <jasonr@gnu.org>
4398
4399 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4400 leading in font height. (Bug#879)
9196133b 4401
9f688acf
GM
44022008-11-26 Glenn Morris <rgm@gnu.org>
4403
4404 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4405 redefinition with ifdef. (Bug#1383)
4406
90d19aff
AR
44072008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4408
4409 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4410
4ccfa1c0 44112008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4412
4413 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4414 New EmacsView methods.
4415 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4416 Fixes bug #1048,1357,1414.
4417
44182008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4419
4420 Fix bug #1362.
4421 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4422 is not an indexed color.
4423 * nsterm.m (free_indexed_color): Add argument checking.
4424 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4425
e7d5ecb3
CY
44262008-11-24 Chong Yidong <cyd@stupidchicken.com>
4427
4428 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4429 Document confirm-after-completion value for
4430 minibuffer-completion-confirm.
4431
c285743c
JR
44322008-11-24 Jason Rumney <jasonr@gnu.org>
4433
4434 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4435 warning.
4436
b0857706
JR
44372008-11-23 Jason Rumney <jasonr@gnu.org>
4438
4439 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4440 restored before returning.
4441
4442 * w32font.c (check_face_name): New function.
4443 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4444 fonts. (Bug#642)
b0857706 4445
ee50ff07
MR
44462008-11-22 Martin Rudalics <rudalics@gmx.at>
4447
4448 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4449 confirm-nonexistent-file-or-buffer in doc-string.
4450
b8ff72fa
SM
44512008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4452
4453 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4454 Fix copy/paste typo. Add checks.
4455
cee53ed4
KH
44562008-11-21 Kenichi Handa <handa@m17n.org>
4457
4458 * coding.c (detect_coding_iso_2022): Reject invalid composition
4459 sequence.
4460 (DECODE_COMPOSITION_START): If the current source is the last
4461 block, and the current composition doesn't end, regard this
4462 sequence as invalid.
4463 (decode_coding_iso_2022): Handle invalid composition sequence.
4464
f6ef1e65
MR
44652008-11-20 Martin Rudalics <rudalics@gmx.at>
4466
4467 * window.c (coordinates_in_window): Don't return
4468 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4469 line when the window is not the rightmost one. (Bug#1372)
4470
e08b1705
MR
44712008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4472
4473 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4474
ad98e89f
EZ
44752008-11-15 Eli Zaretskii <eliz@gnu.org>
4476
4477 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4478 and bright_bg if noninteractive is non-zero.
4479
fb098a4b
CY
44802008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4481
4482 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4483 x_draw_glyph_string_background.
4484
4485 * w32term.c (x_draw_glyph_string): Likewise.
4486
ce952b6e
CY
44872008-11-15 Chong Yidong <cyd@stupidchicken.com>
4488
4489 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4490 the next glyph string once past the overhang width.
4491
4492 * nsterm.m (ns_draw_glyph_string): Likewise.
4493
4494 * w32term.c (x_draw_glyph_string): Likewise.
4495
26ea7079
CY
44962008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4497
4498 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4499 double file close.
4500
1c33c906
MR
45012008-11-14 Martin Rudalics <rudalics@gmx.at>
4502
4503 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4504 dedicated status of window before attempting to display another
4505 buffer in it.
4506
8fc29035
JB
45072008-11-14 Juanma Barranquero <lekktu@gmail.com>
4508
4509 * msdos.c (Fmsdos_long_file_names):
4510 (syms_of_msdos) <dos-unsupported-char-glyph>:
4511 * dosfns.c (Fint86): Fix typos in docstrings.
4512
55fb4286
EZ
45132008-11-14 Eli Zaretskii <eliz@gnu.org>
4514
4515 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4516
3fda0315
KY
45172008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4518
4519 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4520
7e849c17
CY
45212008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4522
4523 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4524
4525 * frame.h: Negative alpha means "don't touch".
4526
4527 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4528
4529 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4530
b9fd67bd
DN
45312008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4532
4533 * hftctl.c:
4534 * chpdef.h:
4535 * acldef.h: Remove files used only for systems no longer supported.
4536
4537 * Makefile.in: Fix .o alphabetical ordering.
4538 (hftctl.o): Remove dependency, file removed.
4539 (keymap.o, print.o): Depend on charset.h.
4540
d5998e03
KH
45412008-11-10 Kenichi Handa <handa@m17n.org>
4542
2ae37cf0 4543 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4544
be70e183
CY
45452008-11-08 Chong Yidong <cyd@stupidchicken.com>
4546
4547 * dired.c (file_name_completion): If completion_ignore_case is
4548 enabled, ignore case when checking completion-regexp-list.
4549
7cf94eac
EZ
45502008-11-08 Eli Zaretskii <eliz@gnu.org>
4551
4552 * vm-limit.c (get_lim_data): Fix last change.
4553
ee107a89
KH
45542008-11-08 Kenichi Handa <handa@m17n.org>
4555
4556 * character.c (Fget_byte): New function.
4557 (syms_of_character): Defsubr Fget_byte.
4558
5fd15622
CY
45592008-11-07 Chong Yidong <cyd@stupidchicken.com>
4560
4561 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4562 cursor position is valid after scrolling.
4563
13d62fad
JB
45642008-11-06 Juanma Barranquero <lekktu@gmail.com>
4565
4566 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4567
a1dd2936
GM
45682008-11-06 Glenn Morris <rgm@gnu.org>
4569
4570 * xterm.c (handle_one_xevent): Don't let popup menus cause
4571 mouse-autoselect-window related window switching. (Bug#1261)
4572
860cd236
CY
45732008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4574
4575 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4576
653a3150
AS
45772008-11-04 Andreas Schwab <schwab@suse.de>
4578
4579 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4580
870f5cac
CY
45812008-11-03 Chong Yidong <cyd@stupidchicken.com>
4582
4583 * xfns.c (Fx_wm_set_size_hint): New function.
4584
1e02f3cb
MR
45852008-11-03 Martin Rudalics <rudalics@gmx.at>
4586
4587 * textprop.c (Fprevious_single_char_property_change): Return 0
4588 when there's no change in a string. (Bug#1301)
4589
e630dfc6
MR
45902008-11-02 Martin Rudalics <rudalics@gmx.at>
4591
4592 * frame.c (do_switch_frame): New argument NORECORD passed to
4593 Fselect_window.
4594 (Fselect_frame): New argument NORECORD passed to
4595 do_switch_frame.
4596 (Fset_frame_selected_window): New argument NORECORD passed to
4597 Fselect_frame.
4598 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4599 in call of do_switch_frame.
4600 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4601 Handle NORECORD argument in call of Fselect_frame.
4602 * lisp.h (do_switch_frame, Fselect_frame)
4603 (Fset_frame_selected_window): Adjust declarations.
4604 * window.c (select_frame_norecord): New function.
4605 (run_window_configuration_change_hook): Use it and call
4606 Fselect_frame with NORECORD set.
4607 (Fselect_window): Pass NORECORD to Fselect_frame.
4608 (Fset_window_configuration): Handle NORECORD argument in call of
4609 do_switch_frame.
4610 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4611 Fset_frame_selected_window.
4612 * keyboard.c (command_loop_1): Handle NORECORD in call of
4613 Fselect_frame (currently ifdefd).
4614
9020b223
GM
46152008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4616
4617 * emacs.c (USAGE2): Untabify.
4618
793ffee8
SM
46192008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4620
4621 * composite.c (fill_gstring_header): Fix copy/paste typo.
4622
ab6d1131
MR
46232008-10-31 Martin Rudalics <rudalics@gmx.at>
4624
4625 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4626 (Fother_window): Rename argument and rewrite doc-string.
4627 (select_window_norecord): Fix return value. (Bug#1276)
4628
601a9cf1
JB
46292008-10-30 Juanma Barranquero <lekktu@gmail.com>
4630
4631 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4632 new frames overriding foreground for tooltips. Based on similar patch
4633 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4634
813b0652
CY
46352008-10-29 Chong Yidong <cyd@stupidchicken.com>
4636
4637 * emacs.c (Fdaemon_initialized): Initialize nfd.
4638
4414f58f
MR
46392008-10-29 Martin Rudalics <rudalics@gmx.at>
4640
4641 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4642 (Fwindow_text_height): Clarify doc-strings.
4643 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4644 doc-string of window-scroll-functions.
4645
ecdcaa09
RS
46462008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4647
4648 * category.c (syms_of_category): Fix typo in docstring.
4649
23fe745a
JB
46502008-10-28 Juanma Barranquero <lekktu@gmail.com>
4651
4652 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4653 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4654 Fix typos in docstrings.
4655
ff808935
DN
46562008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4657
4658 * emacs.c (daemon_pipe): Make non-static.
4659 (IS_DAEMON): Move definition ...
4660 * lisp.h (IS_DAEMON): ... here.
4661 (daemon_pipe): Declare.
4662 (is_daemon): Remove.
4663 * dispnew.c (init_display): Use IS_DAEMON.
4664
fc012771
SM
46652008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4666
4667 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4668 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4669
4670 * emacs.c (is_daemon): Remove.
4671 (main): Don't set is_daemon.
4672 (IS_DAEMON): New macro.
4673 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4674 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4675 parent exits.
4676 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4677
d8bdbe6f
CY
46782008-10-27 Chong Yidong <cyd@stupidchicken.com>
4679
d1a072bf
CY
4680 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4681 over-sized glyph, draw it with the default glyph width.
4682
e2e325aa
CY
4683 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4684 glyph, draw it with the default glyph width.
4685
4686 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4687 glyph, draw it with the default glyph width.
4688
d8bdbe6f
CY
4689 * xdisp.c (try_scrolling): When computing the distance from the
4690 scroll margin to PT, try moving some distance past the window
4691 bottom before giving up.
4692
7bfac547
MR
46932008-10-27 Martin Rudalics <rudalics@gmx.at>
4694
4695 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4696 (Fset_window_buffer): Explain in doc-string that a window can be
4697 "strongly" dedicated to its buffer.
4698
4ff029f6
DN
46992008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4700
4701 * emacs.c (daemon_name): New variable.
4702 (main): Deal with --daemon=SERVER_NAME.
4703 (Fdaemonp): Return a name if one was passed to --daemon.
4704
5790ef40
DN
47052008-10-26 Romain Francoise <romain@orebokech.com>
4706
f9bd0df9 4707 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4708 (main): Create a pipe before forking, make the parent exit only after
4709 the child has closed its end of the pipe. Move closing the
4710 descriptors ...
4711 (Fdaemon_initialized): ... here. New function.
4712
f5385255
SM
47132008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4714
4d632321
SM
4715 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4716 the previous unoptimized table.
4717
f5385255
SM
4718 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4719 the distinction between non-nil and non-t value of `dedicated'.
4720
6c56a0f3
CY
47212008-10-25 Chong Yidong <cyd@stupidchicken.com>
4722
4723 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4724 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4725
fec89261
MR
47262008-10-25 Martin Rudalics <rudalics@gmx.at>
4727
4728 * window.c (Fget_buffer_window, Fdelete_windows_on)
4729 (Freplace_buffer_in_windows): Make buffer argument optional and
4730 rename to buffer_or_name.
4731
34fcddd0
CY
47322008-10-24 Chong Yidong <cyd@stupidchicken.com>
4733
f5385255
SM
4734 * xdisp.c (handle_single_display_spec, handle_display_prop):
4735 Undo 2005-05-16 change.
34fcddd0
CY
4736 (handle_stop): Pop iterator if it's loaded with an empty string.
4737 (get_overlay_strings_1): Don't save iterator if it's loaded with
4738 an empty string (bug#1201).
4739
064766f2
KH
47402008-10-24 Kenichi Handa <handa@m17n.org>
4741
4742 * ftfont.c (ftfont_otf_features): Fix previous change.
4743 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4744 calling ftfont_otf_features.
4745
f9bd0df9 47462008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4747
4748 * font.c (font_match_p): Fix for the case that a vector of
4749 characters is in script-representative-chars.
4750
1dae9197
MA
47512008-10-24 Michael Albinus <michael.albinus@gmx.de>
4752
4753 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4754 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4755 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4756 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4757 macro. (Bug#1186).
4758
f9bd0df9 47592008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4760
4761 * s/sol2-10.h: New file.
4762
878a4584
JB
47632008-10-23 Juanma Barranquero <lekktu@gmail.com>
4764
4765 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4766 poor beast has survived 9+ years and the jump from xterm.c!).
4767
cd265ca6
MR
47682008-10-23 Martin Rudalics <rudalics@gmx.at>
4769
4770 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4771 Reword doc-string.
f5385255 4772 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4773
472a4dc9
JB
47742008-10-23 Juanma Barranquero <lekktu@gmail.com>
4775
4776 * character.c (syms_of_character) <script-representative-chars>:
4777 <unicode-category-table>: Doc fixes.
4778
159bd5a2
NF
47792008-10-23 Noah Friedman <friedman@splode.com>
4780
4781 * coding.c (make_conversion_work_buffer): Check that
4782 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4783 Fget_buffer_create.
4784
49f9c344
KH
47852008-10-23 Kenichi Handa <handa@m17n.org>
4786
4787 * font.c (font_add_log): Check the values of extra properties.
4788
12bb3111
MR
47892008-10-22 Martin Rudalics <rudalics@gmx.at>
4790
4791 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4792 Reword doc-string.
4793 (Fset_window_parameter): Use NILP.
4794 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 4795 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 4796
bbeb4e99
JB
47972008-10-22 Juanma Barranquero <lekktu@gmail.com>
4798
4799 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4800
48012008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
4802
4803 * nsfns.m (ns_appkit_version): New function.
4804 (x-server-version): Use it.
4805 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4806 (x-server-vendor): Don't check_ns().
4807
4808 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4809
a9b555d3
JB
48102008-10-22 Juanma Barranquero <lekktu@gmail.com>
4811
4812 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4813 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4814
4626499f
KH
48152008-10-22 Kenichi Handa <handa@m17n.org>
4816
e3681952
KH
4817 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4818 scripts.
4819
4626499f
KH
4820 * category.c (word_boundary_p): Check scripts instead of charset.
4821 Handle nil value in word-separating-categories and
4822 word-combining-categories.
4823 (syms_of_category): Fix docstrings of word-separating-categories
4824 and word-combining-categories.
4825
1560f91a
EZ
48262008-10-21 Eli Zaretskii <eliz@gnu.org>
4827
4828 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4829 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4830
f4668441
MR
48312008-10-21 Martin Rudalics <rudalics@gmx.at>
4832
4833 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4834 Rename arg "buffer" to "buffer_or_name".
4835 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4836 it optional.
4837 (no_switch_window): Remove since the return value is not used.
a9b555d3 4838 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4839 Consider window as dedicated when Fwindow_dedicated_p returns a
4840 non-nil value.
4841 * lisp.h: Remove prototype for no_switch_window.
4842
fd75ddb2
JD
48432008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4844
4845 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4846 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4847
07295713
KH
48482008-10-21 Kenichi Handa <handa@m17n.org>
4849
4850 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4851 check Vlatin_extra_code_table.
4852
712adc82
EZ
48532008-10-20 Eli Zaretskii <eliz@gnu.org>
4854
4855 * fileio.c (Fset_file_modes): Doc fix.
4856
f549eb0b
MA
48572008-10-19 Michael Albinus <michael.albinus@gmx.de>
4858
4859 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4860 in arrays.
4861
aac0c6e3
MR
48622008-10-19 Martin Rudalics <rudalics@gmx.at>
4863
4864 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4865 Mention kill-buffer in doc-string.
4866 (Fset_window_buffer): Reinsert tem check removed in last commit.
4867 (Fenlarge_window, Fshrink_window): Have argument names and
4868 doc-string follow Elisp manual more closely.
4869
48702008-10-18 Eli Zaretskii <eliz@gnu.org>
4871
4872 * fileio.c (Fset_file_modes): Doc fix.
4873
48742008-10-18 Martin Rudalics <rudalics@gmx.at>
4875
4876 * window.c (Fwindow_width, Fset_window_start)
4877 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
4878 (Fdelete_windows_on, Freplace_buffer_in_windows):
4879 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
4880 (Fwindow_dedicated_p): Make window argument optional.
4881 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4882 (Fset_window_buffer): Respect any non-nil dedicated value for
4883 window. Rename "buffer" argument to "buffer_or_name".
4884
48852008-10-18 Ulrich Mueller <ulm@gentoo.org>
4886
4887 * m/sh3.h: New file, machine description for SuperH.
4888
48892008-10-17 Martin Rudalics <rudalics@gmx.at>
4890
4891 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4892
48932008-10-17 Kenichi Handa <handa@m17n.org>
4894
4895 * ftfont.c (ftfont_otf_features): Fix indexing
4896 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4897
48982008-10-16 Magnus Henoch <mange@freemail.hu>
4899
4900 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4901 (Fdbus_call_method_asynchronously): Ditto.
4902 This change makes C-h f display the argument list.
4903
49042008-10-16 Chong Yidong <cyd@stupidchicken.com>
4905
4906 * fileio.c (Fexpand_file_name): Doc fix.
4907
4908 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4909 of :foreground and :background equivalent to unspecified (20.x
4910 compatibility).
4911
49122008-10-15 Eli Zaretskii <eliz@gnu.org>
4913
4914 * buffer.c (syms_of_buffer): Doc fix.
4915
49162008-10-14 Kenichi Handa <handa@m17n.org>
4917
4918 * font.c (font_clear_prop): When clearing font width, clear the
4919 average width field too.
4920
49212008-10-12 Andreas Schwab <schwab@suse.de>
4922
4923 * ftfont.c (ftfont_shape_by_flt): Make static.
4924 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4925
4926 * font.c: Don't include <m17n-flt.h>.
4927
49282008-10-10 Eli Zaretskii <eliz@gnu.org>
4929
4930 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4931
49322008-10-09 Eli Zaretskii <eliz@gnu.org>
4933
4934 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4935 away code.
4936
49372008-10-09 Chong Yidong <cyd@stupidchicken.com>
4938
4939 * dispnew.c (update_text_area): Avoid looping due to large glyph
4940 overhangs (bug#1070).
4941
49422008-10-09 Kenichi Handa <handa@m17n.org>
4943
4944 * fontset.c (face_for_char): If face->fontset is negative, just
4945 return ascii_face.
4946
f5385255
SM
4947 * font.c (font_delete_unmatched): Fix previous change.
4948 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
4949
49502008-10-09 Martin Rudalics <rudalics@gmx.at>
4951
4952 * frame.c (Fraise_frame): On text-only terminals select frame in
4953 order to make it visible. (Bug#1061)
4954
49552008-10-08 Chong Yidong <cyd@stupidchicken.com>
4956
4957 * fontset.c (fontset_find_font): Check frame validity.
4958
49592008-10-07 Chong Yidong <cyd@stupidchicken.com>
4960
a9b555d3 4961 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
4962 (xg_display_close): Allow Emacs to close all displays (bug#985).
4963
49642008-10-06 Andreas Schwab <schwab@suse.de>
4965
f5385255 4966 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
4967
49682008-10-06 Chong Yidong <cyd@stupidchicken.com>
4969
f5385255 4970 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 4971
a9b555d3 4972 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
4973
4974 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4975 during initialization.
4976
49772008-10-04 Eli Zaretskii <eliz@gnu.org>
4978
4979 * xdisp.c (redisplay_internal): If frame switched, redisplay the
4980 whole thing on MSDOS frames as well as on a TTY.
4981
4982 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4983 well as for TTY.
4984 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4985 well as on a TTY.
4986
4987 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4988 as well as for TTY.
4989
4990 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4991
4992 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4993 MSDOS frames as well.
4994
49952008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4996
4997 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4998 correct arguments.
b71ac3dd 4999 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5000
50012008-10-03 Glenn Morris <rgm@gnu.org>
5002
5003 * emacs.c (USAGE1): Add --daemon.
5004
50052008-10-02 Eli Zaretskii <eliz@gnu.org>
5006
5007 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5008 100, so it's in percents as advertised.
5009
50102008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5011
5012 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5013 (ns_output.current_cursor, ns_output.desired_cursor)
5014 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5015 (FRAME_NEW_CURSOR_COLOR): Remove.
5016
5017 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5018 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5019 enumeration (HOLLOW_BOX_CURSOR, etc.).
5020
5021 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5022 (draw_window_cursor): Simplify code.
f5385255
SM
5023 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5024 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5025 updates manually.
a9b555d3
JB
5026 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5027 Use core Emacs cursor types.
aac0c6e3 5028
b8ff72fa 5029 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5030
50312008-10-02 Martin Rudalics <rudalics@gmx.at>
5032
5033 * process.c (Faccept_process_output): Fix doc-string.
5034
50352008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5036
5037 * gmalloc.c (__sbrk): Also define for uClibc.
5038
5039 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5040 for uClibc.
5041
50422008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5043
5044 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5045 styles.
5046 (nsfont_open): Reenable the cache.
5047
50482008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5049
5050 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5051 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5052
50532008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5054
5055 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5056 a suspended terminal.
5057
50582008-09-30 Michael Albinus <michael.albinus@gmx.de>
5059
5060 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5061
50622008-09-30 Eli Zaretskii <eliz@gnu.org>
5063
5064 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5065
50662008-09-30 Chong Yidong <cyd@stupidchicken.com>
5067
5068 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5069 in a continued line coincides with a line beginning.
5070
50712008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5072
5073 * nsfont.m (nsfont_trait_distance): Fix bug.
5074 (nsfont_list): Return a list rather than a vector (syncs with Handa
5075 changes of 2008-05-14).
5076 (nsfont_open): Improve logging.
5077
50782008-09-29 Andreas Schwab <schwab@suse.de>
5079
5080 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5081
50822008-09-28 Martin Rudalics <rudalics@gmx.at>
5083
5084 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5085 name as char-resolve-modifiers.
5086 Reported by: Markus Triska <markus.triska@gmx.at>
5087
50882008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5089
5090 * dispnew.c (init_display): Return earlier when running as a daemon.
5091
50922008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5093
5094 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5095
50962008-09-27 Eli Zaretskii <eliz@gnu.org>
5097
5098 * composite.c (Fcomposition_get_gstring)
5099 (Fcompose_region_internal, Fcompose_string_internal)
5100 (Ffind_composition_internal): Doc fix.
5101 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5102 (syms_of_composite) <auto-composition-function>: Doc fix.
5103 (syms_of_composite) <composition-function-table>: Doc fix.
5104
51052008-09-25 Chong Yidong <cyd@stupidchicken.com>
5106
5107 * search.c (wordify): New argument for lax word-ends.
5108 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5109
51102008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5111
5112 * lisp.h (is_daemon): Declare.
5113 * dispnew.c (init_display): Do not try to initialize the terminal
5114 when running as a daemon.
5115
51162008-09-22 Chong Yidong <cyd@stupidchicken.com>
5117
5118 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5119 x_display_pixel_height.
5120
51212008-09-22 Martin Rudalics <rudalics@gmx.at>
5122
5123 * undo.c (record_point): Don't call Fundo_boundary for first
5124 change. (Bug#731)
5125
51262008-09-22 Juanma Barranquero <lekktu@gmail.com>
5127
5128 * emacs.c (Fdaemonp): Doc fix.
5129
51302008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5131
5132 * emacs.c (main): Place #ifdef in the proper place.
5133
51342008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5135
5136 * emacs.c (standard_args): Add --daemon.
5137 (main): Disconnect from the terminal when --daemon is passed.
5138 (is_daemon): New variable.
5139 (Fdaemonp): New function.
5140 (syms_of_emacs): Defsubr it.
5141
51422008-09-20 Chong Yidong <cyd@stupidchicken.com>
5143
5144 * xdisp.c (get_next_display_element): Handle string display
5145 correctly when checking for the end of a box run.
5146
51472008-09-20 Glenn Morris <rgm@gnu.org>
5148
5149 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5150 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5151 (Frename_file): Avoid copying to trash if a rename involves
5152 a delete. (Bug#964).
5153
51542008-09-20 Eli Zaretskii <eliz@gnu.org>
5155
5156 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5157 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5158 frames as well as termcap frames.
5159 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5160 get_named_tty.
5161
51622008-09-19 Eli Zaretskii <eliz@gnu.org>
5163
5164 * process.c (procfs_system_process_attributes): Fix cmdline in
5165 case /proc/PID/cmdline is empty.
5166
5167 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5168 x_display_pixel_height.
5169
51702008-09-19 Juanma Barranquero <lekktu@gmail.com>
5171
5172 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5173
5174 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5175 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5176
51772008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5178
5179 * dispextern.h (struct it): Move line_wrap away from the middle of
5180 bitfields. Move voffset in struct iterator_stack_entry after the
5181 bitfields. Move tab_width near after another short.
5182
51832008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5184
5185 * frame.h (struct frame): Move alpha from the middle of bitfields.
5186
5187 * window.h (struct window): Move frozen_window_start_p after the
5188 rest of the bitfields to reduce padding.
5189
51902008-09-18 Chong Yidong <cyd@stupidchicken.com>
5191
5192 * xterm.h (x_display_info): Remove `height' and `width' members.
5193
5194 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5195
5196 * w32term.h (w32_display_info): Remove `height', `width',
5197 `height_in', and `width_in' members.
5198
b8ff72fa
SM
5199 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5200 New functions.
aac0c6e3
MR
5201 (x_calc_absolute_position): Use them.
5202 (x_term_init): Omit removed `height' and `width' members.
5203
b8ff72fa
SM
5204 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5205 New functions.
aac0c6e3
MR
5206 (w32_read_socket, x_calc_absolute_position): Use them.
5207 (w32_initialize_display_info, w32_term_init): Omit removed members
5208 of w32_display_info.
5209
b8ff72fa
SM
5210 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5211 New functions.
5212 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5213
b8ff72fa
SM
5214 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5215 New functions.
aac0c6e3
MR
5216 (x_calc_absolute_position): Use them.
5217 (x_term_init): Omit removed `height' and `width' members.
5218
5219 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5220 (compute_tip_xy):
5221 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5222 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5223 x_display_pixel_width.
5224
52252008-09-18 Kenichi Handa <handa@m17n.org>
5226
5227 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5228 (composition_compute_stop_pos): Fix handling of static composition.
5229 (Fcomposition_get_gstring): Check FROM and TO at first.
5230
52312008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5232
46e722a9 5233 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5234 mixup (YAILOM).
5235
52362008-09-17 Chong Yidong <cyd@stupidchicken.com>
5237
5238 * indent.c (Fvertical_motion): Use position reported by iterator
5239 instead of PT for determining screen motion (bug#943).
5240
52412008-09-17 Romain Francoise <romain@orebokech.com>
5242
5243 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5244
52452008-09-17 Kenichi Handa <handa@m17n.org>
5246
5247 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5248
5249 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5250 if necessary.
5251
52522008-09-16 Kenichi Handa <handa@m17n.org>
5253
5254 * coding.c (make_conversion_work_buffer): Avoid calling
5255 Fget_buffer_create if it is not necessary.
5256
52572008-09-15 Martin Rudalics <rudalics@gmx.at>
5258
5259 * window.c (Fselect_window): Don't update window_select_count and
5260 use_time when norecord is not nil.
5261
52622008-09-14 Kenichi Handa <handa@m17n.org>
5263
5264 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5265 specpdl_ptr.
5266
52672008-09-12 Kenichi Handa <handa@m17n.org>
5268
5269 * indent.c (scan_for_column): Don't handle automatic composition
5270 if the current buffer is not associated with a window.
5271
5272 * composite.c (composition_reseat_it): If the current buffer is
5273 not associated with a window, ignore the automatic composition.
5274 (find_automatic_composition): Likewise.
5275
52762008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5277
5278 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5279 (Fgpm_mouse_stop): Use it.
5280 * termhooks.h (close_gpm): Declare.
5281 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5282 connection if Gpm_GetEvent fails.
5283
5284 * window.c (set_window_buffer): Always preserve current-buffer.
5285
52862008-09-12 Glenn Morris <rgm@gnu.org>
5287
5288 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5289
52902008-09-11 Glenn Morris <rgm@gnu.org>
5291
5292 * charset.c (charset-map-path): Doc fix.
5293
52942008-09-10 Kenichi Handa <handa@m17n.org>
5295
5296 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5297
5298 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5299 compose a grapheme cluster with the preceding base glyph.
5300
5301 * composite.c (composition_compute_stop_pos): Fix previous change.
5302 Reset cmp_it->id to -1 at first.
5303
53042008-09-10 Glenn Morris <rgm@gnu.org>
5305
5306 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5307
53082008-09-09 Chong Yidong <cyd@stupidchicken.com>
5309
5310 * keyboard.c (read_key_sequence): Reapply translation maps when
5311 switching keyboards.
5312
53132008-09-09 Kenichi Handa <handa@m17n.org>
5314
5315 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5316 characters.
5317
5318 * composite.c (FORWARD_CHAR): Fix calculation
5319 of (POSITION).pos_byte.
5320 (composition_compute_stop_pos): Limit the search of composition to
5321 at most 500 characters ahead. If we reach the limit or find a
5322 newline, set cmp_it->ch to -2 and return 0.
5323 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5324
53252008-09-08 Kenichi Handa <handa@m17n.org>
5326
5327 * indent.c (Fvertical_motion): Be sure to set
5328 it_overshoot_expected if it.cmp_it.id is non-negative.
5329
53302008-09-07 Andreas Schwab <schwab@suse.de>
5331
5332 * callproc.c (Fcall_process): Don't hold references to string data
5333 across garbage collection. Move initialisation of new_argv down
5334 to avoid compiler bug.
5335
53362008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5337
5338 * process.c (Fsystem_process_attributes): Doc fix.
5339
53402008-09-07 Chong Yidong <cyd@stupidchicken.com>
5341
5342 * callproc.c (Fcall_process): Canonicalize current directory name.
5343
5344 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5345 iterator advances to the next line if the current line ends in a
5346 continued tab.
5347
53482008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5349
5350 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5351 member to point to cmp_from.
5352
5353 * xdisp.c: Doc fix for references to gidx data member.
5354
53552008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5356
5357 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5358
53592008-09-07 Kenichi Handa <handa@m17n.org>
5360
5361 * composite.c (FORWARD_CHAR): Check STOP after
5362 incrementing (POSITION).pos.
5363
53642008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5365
5366 * process.c (Fsystem_process_attributes): Doc fix.
5367
53682008-09-06 Chong Yidong <cyd@stupidchicken.com>
5369
5370 * keyboard.c (Ftop_level): Doc fix.
5371
53722008-09-06 Eli Zaretskii <eliz@gnu.org>
5373
5374 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5375 minibuffer, don't let lower part of menu invade the echo area.
5376
5377 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5378 "char *q" to access menu text and advance through it. Revert the
5379 change that displayed ">" instead of ASCII character 0x10.
5380
53812008-09-05 Eli Zaretskii <eliz@gnu.org>
5382
5383 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5384 toggle boxes and radio buttons on MS-DOS as well.
5385
53862008-09-05 Kenichi Handa <handa@m17n.org>
5387
5388 * composite.c (autocmp_chars): Check lookback count.
5389 (composition_compute_stop_pos): Set cmp_it->lookback.
5390 (composition_reseat_it): Check lookback count.
5391 (struct position_record): New struct.
5392 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5393 (find_automatic_composition): New function.
5394 (composition_adjust_point): Use find_automatic_composition.
5395
5396 * dispextern.h (struct composition_it): New member lookback.
5397
53982008-09-02 Chong Yidong <cyd@stupidchicken.com>
5399
5400 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5401 if moving by a single line.
5402
54032008-09-02 Andreas Schwab <schwab@suse.de>
5404
5405 * xterm.c (x_delete_display): Fix merge error.
5406
5407 * fileio.c (Fexpand_file_name): Remove unused variables.
5408
54092008-09-02 Eli Zaretskii <eliz@gnu.org>
5410
5411 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5412 storage on all platforms, not just on DOS_NT.
5413
54142008-09-02 Jason Rumney <jasonr@gnu.org>
5415
b8ff72fa
SM
5416 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5417 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5418
54192008-09-01 Chong Yidong <cyd@stupidchicken.com>
5420
5421 * xfaces.c (Finternal_set_alternative_font_family_alist)
5422 (Finternal_set_alternative_font_registry_alist): Properly copy
5423 entire alist structure.
5424
54252008-09-01 Kenichi Handa <handa@m17n.org>
5426
d66c0241 5427 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5428 representative chars of the script is a vector.
d66c0241
JB
5429 (ftfont_list): Handle the case where the representative chars of
5430 the script is a vector.
aac0c6e3
MR
5431
5432 * character.c (syms_of_character): Docstring of
5433 script-representative-chars fixed.
5434
54352008-08-31 Eli Zaretskii <eliz@gnu.org>
5436
5437 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5438 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5439 the menu. Allocate larger buffer for `text', to account for
5440 possible ^C characters.
5441
54422008-08-31 Martin Rudalics <rudalics@gmx.at>
5443
5444 * xdisp.c (prepare_menu_bars): Don't call
5445 Vwindow_size_change_functions with arg Qt.
5446
54472008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5448
5449 * font.h (font_range):
5450 * fileio.c (report_file_error):
46e722a9
SM
5451 * composite.c (composition_update_it): Yet another int/Lisp_Object
5452 mixup (YAILOM).
aac0c6e3
MR
5453
54542008-08-30 Glenn Morris <rgm@gnu.org>
5455
5456 * data.c (Fmake_variable_frame_local): Doc fix.
5457
5458 * frame.c (Fmodify_frame_parameters): Doc fix.
5459
54602008-08-30 Eli Zaretskii <eliz@gnu.org>
5461
5462 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5463 needed by GetTokenInformation.
5464 (w32_system_process_attributes): Check return values of all system
5465 APIs.
5466
5467 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5468 only when the state changes.
5469 (IT_update_begin, IT_update_end): Add termscript trace.
5470
5471 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5472 clipboard is unavailable. Set dst to NULL if it doesn't point to
5473 malloc'ed data.
5474 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5475 passing random values to xfree.
5476
5477 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5478 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5479
54802008-08-29 Jason Rumney <jasonr@gnu.org>
5481
5482 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5483
54842008-08-29 Eli Zaretskii <eliz@gnu.org>
5485
5486 * composite.c (fill_gstring_body): Avoid compiler warnings.
5487
5488 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5489 LGLYPH_SET_CODE to avoid compiler warnings.
5490
2ae37cf0 5491 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5492
5493 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5494
5495 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5496 LGLYPH_SET_CODE.
5497
54982008-08-29 Kenichi Handa <handa@m17n.org>
5499
5500 * fileio.c (report_file_error): Don't downcase the first character
5501 of errstring if it is still unibyte.
5502
55032008-08-29 Kenichi Handa <handa@m17n.org>
5504
5505 These changes are to re-implement the automatic composition so
5506 that it doesn't use text properties.
5507
5508 * Makefile.in (ftfont.o): Depend on composite.h.
5509 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5510
5511 * character.h (Vunicode_category_table): Extern it.
5512
5513 * character.c (Vunicode_category_table): New variable.
5514 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5515
5516 * chartab.c (optimize_sub_char_table): Perform more greedy
5517 optimization.
5518
b8ff72fa
SM
5519 * composite.h (enum composition_method):
5520 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5521 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5522 (Vcomposition_function_table): Extern it.
5523 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5524 (composition_gstring_put_cache, composition_gstring_from_id)
5525 (composition_gstring_p, composition_gstring_width)
5526 (composition_compute_stop_pos, composition_reseat_it)
5527 (composition_update_it, composition_adjust_point): Extern them.
5528 (Fcomposition_get_gstring): EXFUN it.
5529
d66c0241 5530 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5531 (Vcomposition_function_table)
5532 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5533 (gstring_hash_table, gstring_work, gstring_work_headers):
5534 New variables.
aac0c6e3
MR
5535 (gstring_lookup_cache, composition_gstring_put_cache)
5536 (composition_gstring_from_id, composition_gstring_p)
5537 (composition_gstring_width, fill_gstring_header)
5538 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5539 (composition_reseat_it, composition_update_it)
b8ff72fa 5540 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5541 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5542 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5543 Defsubr compostion_get_gstring.
5544
5545 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5546 cmp_id.
5547 (struct glyph_string): Delete the member gidx. New members
5548 cmp_id, cmp_from, and cmp_to.
5549 (enum it_method): Delete GET_FROM_COMPOSITION.
5550 (struct composition_it): New struct.
5551 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5552 Delete c, len, cmp_id, cmp_len in u.comp.
5553
5554 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5555 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5556 (enum lglyph_indices): Likewise.
b8ff72fa 5557 (font_range): Adjust extern.
aac0c6e3
MR
5558 (font_fill_lglyph_metrics): Extern it.
5559
5560 * font.c (QCf): New variable.
5561 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5562 (font_prepare_composition): Delete this function.
5563 (font_range): Type and arguments changed.
5564 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5565 (font_fill_lglyph_metrics): New function.
b8ff72fa 5566 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5567 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5568 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5569 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5570
5571 * fontset.h (font_for_char): Extern it.
5572
5573 * fontset.c (font_for_char): New function.
5574
5575 * ftfont.c: Include composite.h.
5576 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5577 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5578
5579 * indent.c: Include composite.h and dispextern.h.
5580 (check_composition): Delete this function.
5581 (scan_for_column): Handle composition by
5582 composition_compute_stop_pos, composition_reseat_it, and
5583 composition_update_it.
5584 (compute_motion): Likewise.
5585 (Fvertical_motion): Fix checking of composition.
5586
5587 * keyboard.c (adjust_point_for_property): Check composition by
5588 composition_adjust_point.
5589
b8ff72fa 5590 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5591 struct glyph_string.
5592
b8ff72fa
SM
5593 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5594 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5595 struct glyph.
5596 (produce_composite_glyph): Likewise.
5597
b8ff72fa
SM
5598 * w32term.c (x_draw_composite_glyph_string_foreground):
5599 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5600 (x_draw_glyph_string): Likewise.
5601
5602 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5603 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5604
5605 * xdisp.c: Include font.h.
5606 (it_props): Delete the entry for Qauto_composed.
5607 (init_iterator): Initialize it->cmp_it.id to -1.
5608 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5609 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5610 (handle_auto_composed_prop): Delete it.
5611 (handle_composition_prop): Handle only static composition.
5612 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5613 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5614 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5615 (pop_it): Likewise.
5616 (get_next_element): Delete next_element_from_composition.
5617 (CHAR_COMPOSED_P): New macro.
5618 (get_next_display_element): For automatic composition, get a face
5619 from the font in the glyph-string.
5620 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5621 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5622 (next_element_from_string): Check if the character at the current
5623 position is composed by CHAR_COMPOSED_P.
5624 (next_element_from_buffer): Likewise.
d66c0241
JB
5625 (next_element_from_composition): Adjust for the change of struct it.
5626 Update it->cmp_it.
b8ff72fa
SM
5627 (dump_glyph): Adjust for the change of struct glyph.
5628 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5629 it and struct glyph. Don't handle automatic composition here.
5630 (fill_gstring_glyph_string): New function.
5631 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5632 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5633 (BUILD_GSTRING_GLYPH_STRING): New macro.
5634 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5635 automatic composition.
b8ff72fa 5636 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5637 struct glyph.
b8ff72fa 5638 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5639
b8ff72fa 5640 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5641 the change of struct glyph_string.
5642 (x_draw_glyph_string): Likewise.
5643
56442008-08-29 Glenn Morris <rgm@gnu.org>
5645
5646 * buffer.c (word-wrap): Doc fix.
5647 * xdisp.c (truncate-partial-width-windows): Doc fix.
5648 Increase default to 50.
5649
56502008-08-29 Chong Yidong <cyd@stupidchicken.com>
5651
5652 * xdisp.c (update_tool_bar_unwind): New function.
5653 (update_tool_bar): Temporarily set selected frame before building
5654 tool-bar items.
5655
56562008-08-28 Michael Albinus <michael.albinus@gmx.de>
5657
5658 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5659 snprintf, respectively.
5660 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5661
56622008-08-28 Chong Yidong <cyd@stupidchicken.com>
5663
5664 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5665 LDFLAGS to GNUstep CC invocation.
5666
56672008-08-27 Chong Yidong <cyd@stupidchicken.com>
5668
5669 * indent.c (Fvertical_motion): Revert last change. Handle the
5670 general case where we are moving forward, and PT spans multiple
5671 screen lines.
5672
5673 * eval.c (find_handler_clause): Temporarily increase
5674 max-lisp-eval-depth while printing the backtrace buffer, to
5675 guarantee that help-mode code can run.
5676
56772008-08-27 Eli Zaretskii <eliz@gnu.org>
5678
5679 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5680 colors under -rv.
5681 (IT_set_frame_parameters): Don't swap foreground and background
5682 colors if `(reverse . t)' is present in the frame properties.
5683 (internal_terminal_init): Call init_frame_faces only for the
5684 initial frame.
5685
56862008-08-27 Andreas Schwab <schwab@suse.de>
5687
5688 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5689
56902008-08-27 Andreas Schwab <schwab@suse.de>
5691
5692 * search.c (search_buffer): Set char_base to zero only at the end.
5693
56942008-08-27 Kenichi Handa <handa@m17n.org>
5695
b8ff72fa 5696 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5697
56982008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5699
5700 * xterm.c (x_term_init): Temporarily hide the partially
5701 initialized terminal while calling vendor-specific-keysyms.
5702
57032008-08-26 Eli Zaretskii <eliz@gnu.org>
5704
5705 * msdos.c (internal_terminal_init): Most initializations done only
5706 once, especially initial_screen_colors[] and termscript open.
5707
57082008-08-26 Chong Yidong <cyd@stupidchicken.com>
5709
5710 * eval.c (Fcondition_case): Doc fix.
5711
5712 * widgetprv.h (EmacsFramePart): Change font member to the new font
5713 struct.
5714
5715 * widget.c: Include character.h and font.h for XSETFONT.
5716 (setup_frame_gcs): Compute X font id from font struct, just once.
5717
57182008-08-26 Eli Zaretskii <eliz@gnu.org>
5719
5720 * term.c (get_named_tty): Fix last change.
5721
57222008-08-26 Chong Yidong <cyd@stupidchicken.com>
5723
5724 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5725 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5726
57272008-08-25 Eli Zaretskii <eliz@gnu.org>
5728
5729 * frame.c (do_switch_frame): Mark previously displayed frame as
5730 obscured for FRAME_MSDOS_P frames as well.
5731
57322008-08-24 Eli Zaretskii <eliz@gnu.org>
5733
5734 * frame.c (make_terminal_frame): Initialize f->terminal,
5735 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5736 Set the top frame to newly created frame.
5737 (Fmake_terminal_frame): Reuse the_only_display_info.
5738
5739 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5740 estimating available memory.
5741
b97439ce 57422008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5743
5744 * nsterm.m (ns_draw_window_cursor): Don't call
5745 NSDisableScreenUpdates and NSEnableScreenUpdates on
5746 non-NS_IMPL_COCOA systems.
5747
57482008-08-23 Andreas Schwab <schwab@suse.de>
5749
5750 * process.c (procfs_system_process_attributes): Fix use of
5751 uninitialized variables.
5752
57532008-08-23 Eli Zaretskii <eliz@gnu.org>
5754
5755 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5756
5757 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5758 calling tty-set-up-initial-frame-faces.
5759
b8ff72fa
SM
5760 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5761 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5762
5763 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5764 addition to output_termcap.
5765
5766 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5767
5768 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5769 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5770 highlight.
5771
5772 * process.c [!subprocesses]: Define QCname.
5773 (syms_of_process): Intern and staticpro it.
5774
5775 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5776 Adjust for changes in encoding/decoding routines.
5777 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5778 encode_coding and decode_coding.
5779
b8ff72fa 5780 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5781
5782 * dosfns.c: Include frame.h before termhooks.h.
5783 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5784 variable termscript.
5785
5786 * s/msdos.h (USER_FULL_NAME): Define.
5787 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5788
5789 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5790 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5791 pw->pw_gecos.
5792
5793 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5794 SELECTED_FRAME as additional (1st) argument.
5795 (tty_read_avail_input): Handle output_msdos_raw in
5796 addition to output_termcap.
5797
5798 * msdos.c: Include frame.h before termhooks.h.
5799 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5800 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5801 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5802 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5803 (IT_set_terminal_modes, IT_reset_terminal_modes)
5804 (IT_set_frame_parameters): Use tty->termscript instead of a global
5805 variable termscript.
5806 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5807 global variable terminal_coding. Don't refer to
5808 Vnonascii_translation_table.
5809 (internal_terminal_init): Set Vwindow_system in current_kboard.
5810 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5811 Announce date and time of session start, if termscript is open.
5812 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5813 term.c:init_tty). Open termscript only of not already open.
5814 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5815 here instead of dos_ttraw. Don't initialize display if this is an
5816 initial tty. Don't set FRAME_FONT.
5817 (Vwindow_system_version): Bump to 23.
5818 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5819 is available, set up mouse_position_hook.
5820 (dos_ttraw, IT_set_terminal_modes): If called with initial
5821 terminal, do nothing.
5822 (IT_set_frame_parameters): Handle the Qtty_type frame
5823 parameter by calling internal_terminal_init.
5824 (dos_set_window_size, show_mouse_face)
5825 (clear_mouse_face, IT_note_mode_line_highlight)
5826 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5827 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5828 (initialize_msdos_display): New function.
5829 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5830 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5831 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5832 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5833 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5834 (request_sigio, unrequest_sigio): Don't define, now defined on
5835 sysdep.c.
5836 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5837
5838 * term.c [MSDOS]: Include msdos.h.
5839 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5840 conditional to DOS_NT. Allow only one call to this function in a
5841 session. Don't allocate a new struct tty_display_info; instead,
5842 reuse the_only_display_info. Call get_tty_size to get screen
5843 dimensions. Call init_baud_rate to set bad_rate.
5844 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5845 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5846 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5847 (get_tty_terminal, get_named_tty, Ftty_type)
5848 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5849 output_termcap.
b8ff72fa
SM
5850 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5851 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5852 only when subprocesses are supported.
aac0c6e3
MR
5853
5854 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5855 f->output_data.x.
5856 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5857 terminal devices.
5858
5582fbc7 5859 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
5860 x_output.
5861 (FRAME_FONT): Use output_data.tty.
5862 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
5863 (struct x_display_info): Rename from display_info. Update all users in
5864 msdos.c.
aac0c6e3 5865 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 5866 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
5867 (dos_ttraw): Update prototype.
5868
5869 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5870 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5871
58722008-08-23 Jason Rumney <jasonr@gnu.org>
5873
5874 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5875 (fn_TIFFSetDirectory): New library function used.
5876 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5877 (tiff_load): Use :index to select among multiple images. Set count
5878 property when multiple images exist.
5879 (gif_format): Use :index, not :image.
5880
58812008-08-23 Chong Yidong <cyd@stupidchicken.com>
5882
5883 * xdisp.c (try_scrolling): Check INT_MAX instead of
5884 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5885 to obtain INT_MAX.
5886
58872008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5888
5889 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5890
58912008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5892
5893 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5894 GNUstep library location.
5895
58962008-08-21 Chong Yidong <cyd@stupidchicken.com>
5897
5898 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5899 before using it.
5900
5901 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5902
59032008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5904
5905 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5906 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5907 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5908 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5909 (EmacsApp-cursor_blink_handler): Remove declaration.
5910 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5911 match 01 Feb 2008 changes in xterm.c.
5912 (ns_read_socket): Add cast to avoid warning.
5913 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5914 GNUstep.
5915
59162008-08-20 Chong Yidong <cyd@stupidchicken.com>
5917
5918 * xselect.c (x_get_foreign_selection): Return nil if desired
5919 selection could not be obtained, instead of signalling an error.
5920
59212008-08-20 David Reitter <david.reitter@gmail.com>
5922
5923 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5924 * nsterm.m: Remove ns-specific code for cursor blinking.
5925 (ns_draw_window_cursor): Clear cursor properly rather than
5926 redrawing the area. Respect width of bar cursors.
5927 These changes enable the use of generic blink-cursor-mode and
5928 generic cursor types in NS and support smooth cursor movements (do
5929 not blink off after command).
5930 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5931 Nextstep, too.
5932
59332008-08-19 Kenichi Handa <handa@m17n.org>
5934
5935 * font.c (Vfont_log_deferred): New variable.
5936 (font_add_log): Check Vfont_log_deferred.
5937 (font_deferred_log): New function.
5938
5939 * font.h (font_deferred_log): Extern it.
5940
5941 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5942 for sorting.
5943 (face_for_char): Use deferred log.
5944
59452008-08-18 Kenichi Handa <handa@m17n.org>
5946
5947 * fontset.c (face_for_char): Add font log.
5948
5949 * font.c (font_add_log): Add the font properties :script, :lang,
5950 and :otf in the log.
5951
59522008-08-17 Chong Yidong <cyd@stupidchicken.com>
5953
5954 * xdisp.c: Remove dead code.
5955 (handle_invisible_prop, next_overlay_string): Defer call to
5956 setup_for_ellipsis.
5957 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5958
59592008-08-15 Chong Yidong <cyd@stupidchicken.com>
5960
5961 * xfaces.c (lookup_derived_face): Properly handle possible zero
5962 return value of get_lface_attributes.
5963 (merge_faces): Don't tell lookup_derived_face to signal an error
5964 if face is not found.
5965
5966 * dired.c (Fdirectory_files): Doc fix.
5967
5968 * process.c (make_process): Initialize kill_without_query struct
5969 member.
5970
59712008-08-15 Eli Zaretskii <eliz@gnu.org>
5972
5973 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5974 Alternative calculation of totphys for Visual Studio 6.
5975
5976 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5977
5978 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5979 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5980 All users changed.
5981 (stat): Only root directory passed to GetDriveType. Allow RAM
5982 disk as well as local fixed disk when w32-get-true-file-attributes
5983 is set to `local'.
5984 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5985 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5986 (w32_cached_id, w32_add_to_cache): New functions.
5987 (get_name_and_id): Look account names in the cache before calling
5988 lookup_account_sid.
5989 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5990 New initialization flags.
5991 (globals_of_w32): Initialize them to zero.
5992 (w32_system_process_attributes): Use w32_cached_id and
5993 w32_add_to_cache.
5994
59952008-08-14 Lawrence Mitchell <wence@gmx.li>
5996
5997 * lread.c (Fread_char, Fread_char_exclusive): If no character
5998 event is read before timeout is reached, return nil, rather than
5999 converting to a number.
6000
60012008-08-14 Chong Yidong <cyd@stupidchicken.com>
6002
6003 * fns.c (use_dialog_box): Doc fix.
6004
6005 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6006 on OS X.
6007
60082008-08-13 Chong Yidong <cyd@stupidchicken.com>
6009
6010 * frame.c (Qns_parse_geometry): New var.
6011 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6012
60132008-08-11 Chong Yidong <cyd@stupidchicken.com>
6014
6015 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6016 space character in calculating tabs.
6017
60182008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6019
6020 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6021
60222008-08-10 Glenn Morris <rgm@gnu.org>
6023
6024 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6025 silence gcc "limited range of data type" warnings in some
6026 make_fixnum_or_float calls.
6027
60282008-08-09 Eli Zaretskii <eliz@gnu.org>
6029
6030 * w32.c (w32_system_process_attributes): If the process does not
6031 exist, return nil.
6032
6033 * w32.c: Include thelp32.h, psapi.h and coding.h.
6034 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6035 declarations.
6036 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6037 (Process32Next_Proc): New typedefs.
6038 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6039 (g_b_init_process32_next, g_b_init_open_thread_token)
6040 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6041 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6042 (g_b_init_get_process_working_set_size)
6043 (g_b_init_global_memory_status_ex): New static variables.
6044 (globals_of_w32): Initialize them.
6045 (create_toolhelp32_snapshot, process32_first, process32_next)
6046 (open_thread_token, impersonate_self, revert_to_self)
6047 (get_process_memory_info, get_process_working_set_size)
6048 (global_memory_status, global_memory_status_ex): New wrapper
6049 functions.
6050 (w32_list_system_processes, w32_system_process_attributes)
6051 (enable_privilege, restore_privilege, ltime, process_times):
6052 New functions.
6053 (convert_time_raw): New function.
6054 (convert_time): Remove conversion of FILETIME into time in 100
6055 nsec units, call convert_time_raw instead.
6056
6057 * process.h (w32_list_system_processes, w32_system_process_attributes):
6058 Add prototypes.
6059 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6060 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6061 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6062 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6063
6064 * process.c (Fsystem_process_attributes): Doc fix.
6065
60662008-08-08 Chong Yidong <cyd@stupidchicken.com>
6067
6068 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6069 a continued multi-char glyph; if so, advance to the actual glyph.
6070
60712008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6072
6073 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6074
6075 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6076 (.m.o): Use it.
6077 * config.in: Regenerate.
6078
60792008-08-07 Chong Yidong <cyd@stupidchicken.com>
6080
6081 * xdisp.c (redisplay_window): Revert last change.
6082 (try_window): Check bottom scroll margin too.
6083
60842008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6085
6086 * config.in: Regenerate.
6087
6088 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6089 -list-load-path-shadows'.
6090 (nsgui.h): Reduce number of things depending on it.
6091
60922008-08-06 Chong Yidong <cyd@stupidchicken.com>
6093
6094 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6095 instead of window-end which does the wrong thing at eob.
6096 (try_cursor_movement): Minor optimization.
6097 (redisplay_window): If scroll margin is defined, don't assume
6098 window doesn't need scrolling.
6099
61002008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6101
6102 * config.in: Regenerate.
6103
6104 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6105 (mostlyclean): Don't delete *.d under NS.
6106
6107 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6108
61092008-08-06 Kenichi Handa <handa@m17n.org>
6110
6111 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6112
61132008-08-06 Andreas Schwab <schwab@suse.de>
6114
6115 * config.in: Regenerate.
6116
61172008-08-05 Chong Yidong <cyd@stupidchicken.com>
6118
6119 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6120 forcing a window start.
6121
6122 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6123 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6124
61252008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6126
6127 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6128 argument.
6129
61302008-08-05 Juanma Barranquero <lekktu@gmail.com>
6131
6132 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6133 <scroll-down-aggressively, before-change-functions>:
6134 <after-change-functions>: Reflow docstrings.
6135
61362008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6137 Ken Raeburn <raeburn@gnu.org>
6138
6139 Dock menu customization, based on a patch by Ken Raeburn, plus some
6140 other fixes.
6141 * nsmenu.m (dockMenu): New variable.
6142 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6143
6144 * nsterm.h (dockMenu): Declare.
6145
6146 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6147 (ns_term_init): Initialize dockMenu.
6148 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6149 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6150 left.
6151
6152 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6153
61542008-08-04 Chong Yidong <cyd@stupidchicken.com>
6155
6156 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6157
6158 * config.in: Regenerate.
6159
61602008-08-04 Seiji Zenitani <zenitani@mac.com>
6161
6162 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6163
61642008-08-04 Chong Yidong <cyd@stupidchicken.com>
6165
6166 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6167
61682008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6169
6170 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6171
6172 * keyboard.h: Comment an #endif.
6173
6174 * lisp.h (have_menus_p): Adjust comment.
6175
6176 * menu.c (find_and_return_menu_selection): Fix comparison with
6177 client_data.
6178
6179 * nsmenu.m (popup_activated_flag): New variable.
6180 (popup_activated): New function.
6181 (menu-or-popup-active-p): New exported lisp definition.
6182 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6183 when popup done.
6184 (ns_popup_dialog): Set popup_activated_flag.
6185
6186 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6187 version for GNUstep (handled by conditional typedef in nsterm.m).
6188 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6189 in rgb.txt).
6190
6191 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6192
6193 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6194
6195 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6196
6197 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6198 shortcircuit if popup_activated like GTK and X toolkit.
6199
6200 * m/inter386.h: Change DARWIN to DARWIN_OS.
6201
6202 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6203 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6204 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6205 comment on NO_SOCK_SIGIO.
6206
62072008-08-03 Chong Yidong <cyd@stupidchicken.com>
6208
6209 * nsterm.m (windowDidResize): Remove stopModal call.
6210
62112008-08-03 Andreas Schwab <schwab@suse.de>
6212
6213 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6214 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6215
62162008-08-02 Chong Yidong <cyd@stupidchicken.com>
6217
6218 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6219 Don't use uninitialized pointer variable when using getrlimit.
6220
62212008-08-02 Jason Rumney <jasonr@gnu.org>
6222
6223 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6224
62252008-08-02 Eli Zaretskii <eliz@gnu.org>
6226
6227 * alloc.c (NSTATICS): Bump to 0x640.
6228
6229 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6230
6231 * lisp.h: Add prototype for directory_files_internal.
6232
6233 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6234 New functions.
6235 (syms_of_process): Defsubr them. Add initializations for various
6236 Q* symbols used in procfs_system_process_attributes.
6237 (procfs_list_system_processes, procfs_system_process_attributes)
6238 [HAVE_PROCFS]: New functions.
6239 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6240 (procfs_get_total_memory): New functions.
6241
62422008-08-01 Juanma Barranquero <lekktu@gmail.com>
6243
6244 * xfaces.c (Fx_load_color_file): Fix previous change;
6245 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6246
62472008-08-01 Michael Albinus <michael.albinus@gmx.de>
6248
6249 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6250
62512008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6252
6253 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6254
62552008-08-01 Chong Yidong <cyd@stupidchicken.com>
6256
6257 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6258
6259 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6260 define NSApplicationDelegateReplySuccess.
6261 (EmacsView -converstationIdentifier): Use long instead of
6262 NSInteger for GNUstep, since it doesn't have NSInteger.
6263
6264 * xmenu.c: Revert last change.
6265
6266 * keyboard.h: Fix last change.
6267
62682008-08-01 Juanma Barranquero <lekktu@gmail.com>
6269
6270 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6271 on Windows.
6272
62732008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6274
6275 Warning clearing and clean-up in NS port.
6276 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6277 Add prototypes.
6278 * nsgui.h (FACE_DEFAULT): Remove, unused.
6279 (XGCValues): Change colors to unsigned long.
6280 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6281 nsterm.m.
6282 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6283 (ns_list_fonts): Remove, unused.
6284 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6285 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6286 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6287 (nsfont_draw): Compare face colors to 0, not nil.
6288 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6289 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6290 (-addSubmenuWithTitle:): Use NSMenuItem class.
6291 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6292 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6293 (ns_clip_to_row): Make gc arg a BOOL.
6294 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6295 ns_clip_to_row() call.
6296 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6297 used). Cast FRAME_FONT assignments.
6298 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6299 (ns_string_to_lispmod): Change arg to const char.
6300 (ns_term_init): Use NSMenuItem class.
6301 (EmacsApp -openFile:): Move to different section of file.
6302 (EmacsApp -application:openFiles:): Don't return a value, call
6303 -replyToOpenOrPrint:.
6304 (EmacsView -keyDown:): Fix up cast.
6305 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6306 (EmacsView -menuDown:): Cast tag in call to
6307 find_and_call_menu_selection().
6308 (ns_list_fonts): Remove, unused.
6309 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6310 (ns_fontname_to_xlfd): Make static.
6311 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6312 Remove prototypes (now in keyboard.h).
6313 (next_menubar_widget_id): Remove, unused.
6314 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6315 Remove prototypes (now in keyboard.h).
6316 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6317
63182008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6319
6320 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6321 (floatfns.o): Depend on syssignal.h.
6322 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6323
6324 * systty.h: Fix previous change that removed BSD_TERMIOS.
6325 Add comments to #ifdefs.
6326
63272008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6328
6329 * w32fns.c (w32-load-color-file): Remove.
6330 (x-open-connection): Use renamed Fx_load_color_file.
6331 * xfaces.c (x-load-color-file): Add.
6332 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6333 Emacs.clr.
6334 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6335
63362008-07-31 Michael Albinus <michael.albinus@gmx.de>
6337
6338 * dbusbind.c (Fdbus_call_method_asynchronously)
6339 (Fdbus_method_error_internal): New defuns.
6340 (xd_read_message): Handle also reply messages.
6341 (Vdbus_registered_functions_table): Extend docstring.
6342
63432008-07-31 Juanma Barranquero <lekktu@gmail.com>
6344
6345 * keyboard.c (gobble_input): Fix previous change.
6346
63472008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6348
6349 * bitmaps/README:
6350 * xfns.c:
6351 * termcap.c:
6352 * term.c:
6353 * syswait.h:
6354 * systty.h:
6355 * systime.h:
6356 * syssignal.h:
6357 * sysdep.c:
6358 * process.h:
6359 * process.c:
6360 * print.c:
6361 * ndir.h:
6362 * lread.c:
6363 * keyboard.c:
6364 * getpagesize.h:
6365 * floatfns.c:
6366 * fileio.c:
6367 * emacs.c:
6368 * doc.c:
6369 * dispnew.c:
6370 * dired.c:
6371 * data.c:
6372 * callproc.c:
6373 * buffer.c:
6374 * README:
6375 * Makefile.in:
6376 * s/template.h:
6377 * s/msdos.h:
6378 * m/vax.h: Remove VMS support.
6379 * s/vms.h:
6380 * vlimit.h:
6381 * uaf.h:
6382 * temacs.opt:
6383 * param.h:
6384 * ioctl.h: Remove file.
6385
63862008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6387
6388 * s/ms-w32.h (MULTI_KBOARD): Remove.
6389 * xterm.c:
6390 * xselect.c:
6391 * xfns.c:
6392 * window.c:
6393 * w32term.c:
6394 * w32fns.c:
6395 * terminal.c:
6396 * termhooks.h:
6397 * term.c:
6398 * sysdep.c:
6399 * keyboard.h:
6400 * keyboard.c:
6401 * frame.h:
6402 * frame.c:
6403 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6404 * config.in: Regenerate.
6405
64062008-07-30 Jason Rumney <jasonr@gnu.org>
6407
6408 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6409
6410 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6411 (w32font_open_internal): Get unicode version of textmetrics.
6412 Don't enable or disable glyph indices here.
6413 (w32font_open): Disable use of glyph indices.
6414
6415 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6416
64172008-07-30 Chong Yidong <cyd@stupidchicken.com>
6418
6419 * minibuf.c (Vread_buffer_function): Doc fix.
6420
64212008-07-30 John Paul Wallington <jpw@pobox.com>
6422
6423 * minibuf.c (read_buffer_completion_ignore_case): New var.
6424 (Fread_buffer): Use it.
6425
64262008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6427
6428 * systty.h (sensemode): Remove empty #if. Remove reference to
6429 BSD_TERMIOS, unused.
6430
6431 * sysdep.c: Remove reference to DGUX.
6432 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6433
6434 * config.in: Regenerate.
6435
64362008-07-30 Jason Rumney <jasonr@gnu.org>
6437
6438 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6439
64402008-07-29 Jason Rumney <jasonr@gnu.org>
6441
6442 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6443 is populated.
6444 (uniscribe_encode_char): Always use uniscribe.
6445 Avoid using context if cache is populated.
6446
64472008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6448
6449 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6450 open menu.
6451
6452 * gtkutil.c (menu_nav_ended): Remove.
6453 (create_menus): Remove signal connect for menu_nav_ended.
6454
64552008-07-28 Chong Yidong <cyd@stupidchicken.com>
6456
6457 * xdisp.c (redisplay_window): Check return value of
6458 compute_window_start_on_continuation_line before forcing a window
6459 start.
6460
64612008-07-28 Jason Rumney <jasonr@gnu.org>
6462
6463 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6464
6465 * w32term.c (w32_enable_unicode_output, cleartype_active):
6466 Remove obsolete display options.
6467 (x_draw_glyph_string_background): Don't use old cleartype_active
6468 workaround.
6469 (w32_initialize): Remove cleartype_active initialization.
6470 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6471
64722008-07-28 Andreas Schwab <schwab@suse.de>
6473
6474 * lisp.h (init_weak_hash_tables, syms_of_font)
6475 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6476 (remove_hash_entry): Don't declare.
6477 * eval.c (maybe_call_debugger): Make static and move before use.
6478 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6479 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6480 * xterm.h (x_set_frame_alpha): Declare.
6481
64822008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6483
6484 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6485 (create_menus): Connect selection-done to menu_nav_ended.
6486
64872008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6488
6489 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6490 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6491 parameter with read of 'alpha' one.
6492 (Qns_frame_parameter): Remove.
5582fbc7 6493 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6494 (next-selection-coding-system, Vselection_coding_system)
6495 (Vnext_selection_coding_system): Drop.
6496
64972008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6498
6499 * nsfns.m (do-applescript, do_applescript): Rename to
6500 ns-do-applescript, ns_do_applescript, and move within file.
6501
65022008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6503
6504 Remove support for Mac Carbon.
6505 * mactoolbox.c:
6506 * macterm.h:
6507 * macterm.c:
6508 * macselect.c:
6509 * macmenu.c:
6510 * macgui.h:
6511 * macfns.c:
6512 * mac.c: Remove file.
6513 * s/darwin.h:
6514 * m/intel386.h:
6515 * xfaces.c:
6516 * xdisp.c:
6517 * window.c:
6518 * tparam.c:
6519 * termhooks.h:
6520 * termcap.c:
6521 * term.c:
6522 * syssignal.h:
6523 * sysselect.h:
6524 * sysdep.c:
6525 * process.c:
6526 * lread.c:
6527 * lisp.h:
6528 * keyboard.c:
6529 * image.c:
6530 * fringe.c:
6531 * frame.h:
6532 * frame.c:
6533 * fontset.c:
6534 * font.h:
6535 * font.c:
6536 * fns.c:
6537 * fileio.c:
6538 * emacs.c:
6539 * dispnew.c:
6540 * dispextern.h:
6541 * config.in:
6542 * atimer.c:
2ae37cf0 6543 * Makefile.in: Remove code for Carbon.
aac0c6e3 6544
f0131492 65452008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6546
6547 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6548
65492008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6550
6551 * macterm.h (kCGBitmapByteOrder32Host): New define for
6552 non-universal SDKs.
6553
6554 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6555 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6556
6557 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6558 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6559
65602008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6561
6562 * w32inevt.c: Include dispextern.h.
6563
65642008-07-26 Andreas Schwab <schwab@suse.de>
6565
6566 * print.c (print_object): Fix off-by-one in last change.
6567
65682008-07-25 Juanma Barranquero <lekktu@gmail.com>
6569
6570 * term.c (syms_of_term): Don't initialize default_orig_pair,
6571 default_set_foreground and default_set_background on Windows.
6572
65732008-07-25 Jason Rumney <jasonr@gnu.org>
6574
6575 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6576 ScriptItemize. Clean up return value checking. Remove unused
6577 variables.
6578 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6579 shaping engine.
6580
6581 * w32font.c (w32font_has_char): Handle the case where we can't
6582 determine the script for a character.
6583
65842008-07-25 Chong Yidong <cyd@stupidchicken.com>
6585
6586 * term.c (syms_of_term): Initialize default_orig_pair,
6587 default_set_foreground, and default_set_background.
6588
6589 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6590 clash (bug#86).
6591 (getloadavg): Callers changed.
6592
6593 * image.c (svg_load_image): Fix last change.
6594 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6595 image size is valid. Use g_object_unref instead of deprecated
6596 rsvg_handle_free to free rsvg handle.
6597 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6598
65992008-07-25 Jason Rumney <jasonr@gnu.org>
6600
6601 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6602 surrogates before looking up glyph index.
6603 (w32font_text_extents): Encode as surrogates if falling back to
6604 functions that need UTF-16 wide chars.
6605
6606 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6607 BMP as surrogates before looking up glyph index.
6608
66092008-07-25 Chong Yidong <cyd@stupidchicken.com>
6610
6611 * image.c (svg_load_image): Check for failure in return value of
6612 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6613
66142008-07-25 Jason Rumney <jasonr@gnu.org>
6615
6616 * w32font.c (Fx_select_font): Reverse sense of second arg.
6617
66182008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6619
6620 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6621 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6622
6623 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6624 (PURESIZE): Use it.
6625
66262008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6627
6628 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6629 * m/alpha.h (TEXT_END):
6630 * m/ibmrs6000.h (TEXT_END):
6631 * m/macppc.h (TEXT_END):
6632 * s/darwin.h (TEXT_END):
6633 * s/msdos.h (TEXT_END): Remove, unused.
6634 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6635 * s/cygwin.h: Remove comment.
6636
6637 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6638 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6639 * m/intel386.h (DOT_GLOBAL_START):
6640 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6641 (USG): Remove, file not used on USG platforms.
6642
6643 * Makefile.in (HAVE_X11): Remove empty #else.
6644
66452008-07-24 Andreas Schwab <schwab@suse.de>
6646
6647 * fileio.c (Finsert_file_contents): Properly adjust undo list
6648 after format conversion.
6649
66502008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6651
6652 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6653 (menu_nav_ended): Remove.
6654 (create_menus): Remove signal connect for menu_nav_ended.
6655 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6656 create_menus.
6657 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6658
66592008-07-23 Jason Rumney <jasonr@gnu.org>
6660
6661 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6662 with opened font.
6663 (w32font_open): Set font type to gdi.
6664
6665 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6666
66672008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6668
6669 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6670 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6671 defines it.
6672 * unexec.c (ADDR_CORRECT): Define unconditionally.
6673
6674 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6675
6676 * unexec.c: Remove code depending on !COFF and USG, the file is
6677 not used for such systems.
6678
6679 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6680 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6681 (LD_SWITCH_SYSTEM_1): Remove, update users.
6682
6683 * s/darwin.h (DATA_END):
6684 * m/intel386.h (DATA_END):
6685 * m/ibmrs6000.h (DATA_END):
6686 * m/alpha.h (DATA_END): Remove, unused.
6687
6688 * config.in: Regenerate.
6689 * s/ms-w32.h (subprocesses): Define unconditionally.
6690 * s/template.h (subprocesses): Update comment.
6691 * s/vms.h (subprocesses):
6692 * s/usg5-4.h (subprocesses):
6693 * s/hpux10-20.h (subprocesses):
6694 * s/gnu-linux.h (subprocesses):
6695 * s/cygwin.h (subprocesses):
6696 * s/bsd-common.h (subprocesses):
6697 * s/aix4-2.h (subprocesses):
6698 * s/darwin.h (subprocesses): Do not define, defined by default now.
6699
6700 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6701 Remove all references.
6702 (temacs): Add GNUstep specific ld flags.
6703
6704 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6705 similarly to what X does.
6706
67072008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6708
6709 * nsfns.m (x-list-fonts): Remove.
6710 (syms_of_nsfns): Drop the x-list-fonts declaration.
6711 * nsterm.m: Get rid of remaining "//" comments.
6712
67132008-07-22 Chong Yidong <cyd@stupidchicken.com>
6714
6715 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6716
6717 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6718 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6719 (Fns_own_selection_internal, Fx_disown_selection_internal)
6720 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6721
6722 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6723 ... */' style of docstrings. Doc fixes.
6724
67252008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6726
6727 * terminfo.c (UP, BC, PC): Undo previous change.
6728
6729 * nsfns.m: Rename ns prefixed functions/variables to the
6730 corresponding x versions. Update references.
6731
67322008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6733
6734 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6735
67362008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6737
6738 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6739 Remove forwarding functions.
6740 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6741 non-static.
6742 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6743 non-static.
6744 (ns_frame_parm_handlers): Use the new names.
6745 (syms_of_nsfns): Move to the end of file.
6746
6747 * nsterm.m (syms_of_nsterm): Move to the end of file.
6748
6749 * dispnew.c (init_display): Remove code for X10.
6750
67512008-07-22 Jason Rumney <jasonr@gnu.org>
6752
6753 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6754 bare drive.
6755
67562008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6757
6758 * nsterm.m (syms_of_nsterm): Remove debugging println.
6759
67602008-07-22 David Reitter <david.reitter@gmail.com>
6761
6762 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6763 Carbon implementation of the same functionality: execute arbitrary
6764 AppleScript code.
6765
67662008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6767
6768 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6769 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6770 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6771 (Fx_display_mm_height, Fx_display_mm_width)
6772 (Fx_display_backing_store, Fx_display_visual_class)
6773 (Fx_display_save_under, Fx_open_connection)
6774 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6775 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6776 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6777 (Fx_display_pixel_width, Fx_display_pixel_height)
6778 (Fx_display_usable_bounds, Fx_display_planes)
6779 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6780 ... */' style of docstrings.
6781
67822008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6783
6784 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6785 on this platform.
6786 (mips):
6787 * m/iris4d.h (mips): Do not define.
6788 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6789
6790 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6791
6792 * image.c:
6793 * nsfns.m:
6794 * nsselect.m:
6795 * nsterm.h:
6796 * nsterm.m: Rename ns prefixed functions/variables to the
6797 corresponding x versions. Update references.
6798
6799 * m/ibms390x.h (NO_REMAP): Do not undefine.
6800
6801 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6802
68032008-07-21 Chong Yidong <cyd@stupidchicken.com>
6804
6805 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6806 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6807 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6808 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6809 (Fns_display_mm_height, Fns_display_mm_width)
6810 (Fns_display_backing_store, Fns_display_visual_class)
6811 (Fns_display_save_under, Fns_open_connection)
6812 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6813 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6814 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6815 (Fns_display_pixel_width, Fns_display_pixel_height)
6816 (Fns_display_usable_bounds, Fx_display_planes)
6817 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6818
68192008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6820
6821 * print.c (print_object): Check print_depth before searching for
6822 circularities.
6823
68242008-07-21 Michael Albinus <michael.albinus@gmx.de>
6825
6826 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6827 only sprintf.
6828
68292008-07-21 Kenichi Handa <handa@m17n.org>
6830
6831 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6832
68332008-07-20 Andreas Schwab <schwab@suse.de>
6834
6835 * syntax.c (find_start_pos, find_start_value)
6836 (find_start_value_byte, find_start_begv, find_defun_start)
6837 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6838
68392008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6840
6841 * s/sol2-3.h: Insert contents of s/sol2.h.
6842 (LD_SWITCH_SYSTEM): Remove redundant definition.
6843 * s/sol2.h: Remove, unused.
6844
68452008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6846
6847 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6848
68492008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6850
6851 * Makefile.in (ns_appdir): Fix typo in find command.
6852
68532008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6854
6855 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6856
6857 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6858 added not supported anymore.
6859
6860 * s/usg5-4-2.h (LIBS_SYSTEM):
6861 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6862
6863 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6864 * s/lynxos.h (GETPGRP_NO_ARG):
6865 * s/hpux10-20.h (NO_SIOCTL_H):
6866 * s/gnu.h (GETPGRP_NO_ARG):
6867 * s/gnu-linux.h (NO_SIOCTL_H):
6868 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6869 * s/cygwin.h (GETPGRP_NO_ARG):
6870 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6871 (C_DEBUG_SWITCH): Remove duplicate definition.
6872
6873 * m/ibms390.h: Remove boilerplate comments.
6874
6875 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6876
6877 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6878 (wait_reading_process_output): Remove code for SunOS, platform not
6879 supported anymore. Use SOLARIS2 instead of sun.
6880
68812008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6882
6883 * font.c (font_open_by_name): Under NS, default lface height to zero.
6884 (font_open_for_lface): Under NS, set size based on frame fontsize.
6885 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6886 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6887
68882008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6889
6890 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6891 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6892 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6893 YES/NO.
6894 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6895 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6896 * Makefile.in (clean): Clear out build destination dir.
6897
68982008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6899
6900 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6901 xterm, xselect.
6902 * lisp.h: Remove declaration of hash_remove.
6903 * nsgui.h: Remove redefinitions of hash_remove.
6904 * fns.c (hash_remove): Rename to hash_remove_from_table.
6905
69062008-07-19 Seiji Zenitani <zenitani@mac.com>
6907
6908 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6909 strdup() the family UTF8String before modifying it.
6910
69112008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6912
6913 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6914 NS_FACE_BACKGROUND with 0 instead of nil.
6915 * nsfont.m (nsfont_draw): Same.
6916
69172008-07-19 Chong Yidong <cyd@stupidchicken.com>
6918
6919 * nsfns.m (ns_set_background_color): Fix crash.
6920
69212008-07-18 Chong Yidong <cyd@stupidchicken.com>
6922
6923 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6924
69252008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6926
6927 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6928
69292008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6930
6931 * gtkutil.c: Include <config.h> instead of "config.h".
6932
6933 * lisp.h (Foverlay_buffer): Add EXFUN.
6934
6935 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6936 child process to complete child_setup. Undo 2005-09-21 change.
6937
6938 * s/darwin.h: Mention setsid after vfork.
6939
69402008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6941
6942 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6943 Depend on macgui.h.
6944
6945 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6946 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6947
6948 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6949 and f19.
6950 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6951
6952 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6953 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6954 Remove enumerators.
6955
6956 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6957 Check if FACE_FROM_ID returns NULL.
6958
69592008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6960
6961 * w32inevt.c (change_frame_size): Remove extern declaration.
6962 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6963 change_frame_size.
6964
69652008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6966
6967 * getloadavg.c: Revert last change (2008-07-15).
6968
69692008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6970
6971 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 6972 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
6973 from configure.
6974
69752008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
6976
6977 * s/sol2.h:
6978 * s/sol2-4.h: Reorganize conditionals.
6979
6980 * ecrt0.c: Remove code depending on m68000, not used anymore.
6981
6982 * fns.c (hash_remove): Make static.
6983 * lisp.h (hash_remove): Don't prototype.
6984
6985 * m/ibmrs6000.h:
6986 * m/ibms390x.h:
6987 * m/macppc.h: Remove boilerplate comments.
6988
6989 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6990 Solaris, which does not need them.
6991
6992 * m/vax.h: Remove comments about unsupported systems.
6993
6994 * s/darwin.h: Reorganize ifdefs.
6995
69962008-07-17 Andreas Schwab <schwab@suse.de>
6997
6998 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6999
70002008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7001
7002 Use SDATA. Follow coding convention of placing operators at
7003 beginning of next line rather than end of previous line, and placing
7004 spaces around infix operators.
7005
7006 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7007 in case it was defined already.
7008 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7009 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7010 ns_default.
7011 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7012 Lisp_Objects.
7013 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7014 (ns_defined_color, ns_color_to_lisp): Declare.
7015 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7016 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7017 it's accepted even with USE_LISP_UNION_TYPE.
7018 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7019 (update_frame_tool_bar): Remove apparently obsolete tests for
7020 non-integerness of f->tool_bar_lines.
7021 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7022 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7023 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7024 (nsfont_open): Don't confuse NULL for Qnil.
7025 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7026 * menu.h (find_and_call_menu_selection):
7027 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7028 (find_and_return_menu_selection): Always return something.
7029 * frame.h: Include dispextern.h for Display_Info.
7030 (display_x_get_resource): Declare.
7031
70322008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7033
7034 * syntax.c: Remove stdio.h include accidentally introduced in
7035 Emacs.app commit.
7036 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7037 NS_IMPL_COCOA.
7038 * keyboard.c (handle_async_input, input_available_signal): Remove
7039 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7040
70412008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7042
7043 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7044 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7045 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7046 Use SDATA.
7047
7048 * keymap.c: Remove all NS-specific code.
7049 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7050 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7051 where_is_preferred_modifier, return a different value depending on how
7052 preferred is the binding.
7053 (where_is_internal): Adjust accordingly.
7054 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7055 Adjust to new preferred_sequence_p.
7056 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7057 * keyboard.c (parse_solitary_modifier): Not static any more.
7058 * keyboard.h (parse_solitary_modifier): Declare.
7059
70602008-07-16 Andreas Schwab <schwab@suse.de>
7061
7062 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7063 of easymenu.
7064
70652008-07-16 Chong Yidong <cyd@stupidchicken.com>
7066
7067 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7068 that we don't move off the line.
7069
70702008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7071
7072 * keyboard.c (Qsuper): Remove.
7073 (parse_menu_item): Don't call where_is_internal specially for NS.
7074
70752008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7076
7077 * s/gnu-linux.h: Remove boilerplate comments.
7078
7079 * m/alpha.h (__ELF__): Consolidate conditions.
7080
7081 * m/m68k.h (linux): Use GNU_LINUX instead.
7082 Remove boilerplate comments.
7083
7084 * m/intel386.h: Undo refactoring from previous change.
7085 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7086 too, remove dead code.
7087 (linux): Use GNU_LINUX instead.
7088
70892008-07-16 Jason Rumney <jasonr@gnu.org>
7090
7091 * w32gui.h: Repeat 26 June changes lost by last change.
7092
70932008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7094
7095 * systty.h: Remove code for Aix on 386, unsupported platform.
7096
7097 * s/ms-w32.h: Remove boilerplate comments.
7098 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7099
7100 * s/gnu-linux.h (TERM): Remove support.
7101 (HAVE_SYSVIPC): Remove, unused.
7102 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7103 for this system.
7104
7105 * process.c: Remove support for IRIS, unused.
7106 Remove support for TERM, not relevant anymore.
7107
7108 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7109 used with the definition.
7110
7111 * s/aix4-2.h (static): Do not undef.
7112
7113 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7114 only used on Aix.
7115 (HAVE_SYSVIPC): Remove, unused.
7116
7117 * m/hp800.h (CANNOT_DUMP): Do not undef.
7118
7119 * m/alpha.h: Fix comment.
7120
7121 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7122 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7123 used by this configuration.
7124 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7125 * unexec.c: Remove code depending on HPUX and
7126 USG_SHARED_LIBRARIES, not used with this file. Remove code
7127 depending on IRIS, unused. Remove if 0-ed code.
7128
7129 * s/template.h: Remove comments about static.
7130
7131 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7132 Remove if 0-ed code.
7133 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7134 were the same as the default.
7135 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7136 Remove boilerplate comments.
7137 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7138 (HAVE_SYSVIPC): Remove, unused.
7139 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7140
7141 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7142 Remove boilerplate comments.
7143 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7144 Remove boilerplate comments.
7145 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7146 Remove boilerplate comments.
7147 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7148
7149 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7150 USG systems which do not use DATA_SEG_BITS.
7151 Refactor code. Remove boilerplate comments.
7152
7153 * m/ibms390.h:
7154 * m/m68k.h:
7155 * s/bsd-common.h:
7156 * s/cygwin.h:
7157 * s/darwin.h:
7158 * s/freebsd.h:
7159 * s/gnu.h:
7160 * s/msdos.h: Remove boilerplate comments.
7161
7162 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7163 do not use this file.
aac0c6e3
MR
7164 (IRIS_4D): Remove, unused.
7165
7166 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7167 do not use this file.
aac0c6e3
MR
7168 (SIGN_EXTEND_CHAR):
7169 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7170 * unexmips.c: Remove file, unused.
7171
7172 * editfns.c (Fuser_full_name): Replace the only use of
7173 USER_FULL_NAME with its value.
7174 * config.in: Regenerate.
7175
71762008-07-16 David Reitter <david.reitter@gmail.com>
7177
7178 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7179 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7180
71812008-07-16 Glenn Morris <rgm@gnu.org>
7182
7183 * emacs.c (system-type): Doc fix.
7184
71852008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7186
7187 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7188 If the cache doesn't work, let's fix it, rather than work around it.
7189
71902008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7191
7192 * Makefile.in: Correct additions for nsfont.o in last commit.
7193 * nsfont.m: New file (forgot last commit).
7194
71952008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7196
7197 * callproc.c (set_initial_environment): Initialize
7198 Vprocess_environment under CANNOT_DUMP (fixes crash when
7199 batch-compiling for bootstrap).
7200
72012008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7202 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7203
7204 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7205 fix crash due to different init order.
7206
72072008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7208
7209 Changes and additions for NeXTstep windowing system (Cocoa and
7210 GNUstep) support.
7211
7212 * Makefile.in:
7213 * config.in: Support defines and build commands for NS port.
7214 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7215 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7216 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7217 windowing.
7218 (struct face): Add synth_ital field.
7219 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7220 (init_display): Initialize Vinitial_window_system to "ns" when so
7221 compiled.
7222 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7223 (display_arg): Use under NS.
7224 (main): Under NS, allocate autorelease pool and handle command line
7225 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7226 (standard_args): Add NS-specific args.
7227 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7228 * font.c (DEFAULT_ENCODING): New variable.
7229 (font_find_for_lface): Use it.
7230 (syms_of_font): Load syms_of_nsfont under NS.
7231 * font.h: Declare nsfont_driver when compiled under NS.
7232 * fontset.c: When compiling under NS, include nsterm.h.
7233 (fontset_from_font): Autoconstruct fontset under NS.
7234 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7235 symbol, document and use it.
7236 (do_switch_frame): When for_deletion under Cocoa, add
7237 Fraise_frame(Qnil).
7238 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7239 (x_get_arg): Allow "yes" and "no" as boolean values.
7240 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7241 Qright under Cocoa.
7242 (focus-follows-mouse): Default to 0 under NS.
7243 * frame.h (enum output_method): Add output_ns.
7244 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7245 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7246 (FRAME_WINDOW_P): NS-specific definition.
7247 * fringe.c (max_used_fringe_bitmap): Make public.
7248 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7249 (getloadavg): Use NeXT code under descendant OS's.
7250 * image.c (includes and header section, x_create_bitmap_from_data)
7251 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7252 (image_background_transparent, x_clear_image_1)
7253 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7254 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7255 (x_to_xcolors, x_from_xcolors, x_disable_image)
7256 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7257 other GUIs, including XPM support using code originally written for
7258 Carbon GUI.
7259 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7260 using NS API.
7261 (image_ascent): Use font metrics macros instead of direct struct field
7262 access.
7263 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7264 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7265 Also, handle NS as GTK for menu bar purposes.
7266 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7267 toolkit where they differ.
7268 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7269 use cachelist, still needed under NS.
7270 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7271 (struct widget_value): Define it here for menu.c.
7272 * keymap.c (includes): Include modifier internals.
7273 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7274 NS.
7275 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7276 support for preferring sequences using certain modifiers, specified by
7277 the FIRSTONLY argument.
7278 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7279 under NS GNUstep implementation.
7280 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7281 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7282 * menu.c: Include nsterm.h under NS.
7283 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7284 (free_menubar_widget_tree_value, update_submenu_strings)
7285 (find_and_call_menu_selection): Treat NS as X and NT.
7286 (find_and_return_menu_selection): New function, used for popup menus.
7287 * nsgui.h:
7288 * nsterm.h:
7289 * nsfns.m:
7290 * nsimage.m:
7291 * nsmenu.m:
7292 * nsselect.m:
7293 * nsterm.m: New files.
7294 * process.c (wait_reading_process_output): Under NS, call ns_select()
7295 instead of plain select().
7296 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7297 beginning of buffer.
7298 * sysselect.h (init_process): Rename when compiling under Cocoa to
7299 avoid name conflict.
7300 * termhooks.h (display_info): Add ns_display_info to union.
7301 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7302 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7303 COCOA environment.
7304 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7305 unexec() signature. (Note, this will dump, but the resulting file
7306 crashes; unexosx is used instead; keeping around for reference and
7307 possible aid in getting dump working under GNUstep.)
7308 * w32gui.h (button_type, widget_value): Remove definitions (now in
7309 keyboard.h).
7310 * window.c: Include nsterm.h when compiling under NS.
7311 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7312 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7313 other GUI windowing systems.
7314 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7315 GTK.
7316 (x_consider_frame_title): Under NS, set icon type and frame
7317 modified-state indicator; use ns_set_name_as_filename() when using
7318 formatted title.
7319 (update_window_cursor): Make public when compiling under NS.
7320 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7321 (hourglass_atimer, Vhourglass_delay
7322 * xfaces.c (header section, init_frame_faces, clear_font_table)
7323 (defined_color, unload_color, x_face_list_fonts)
7324 (prepare_face_for_display): Add NS support parallel to other GUIs.
7325 Emulate GCs like other non-X GUIs.
7326 (split_font_name): Don't lowercase font name under NS.
7327 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7328 under NS.
7329 * s/darwin.h: Add support for compilation under NS.
7330
73312008-07-15 Jason Rumney <jasonr@gnu.org>
7332
7333 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7334 (w32_show_hourglass): Rename from show_hourglass.
7335 (w32_hide_hourglass): Rename from hide_hourglass.
7336 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7337 (Vhourglass_delay): Declare extern.
7338 (hourglass_started): Remove.
7339
7340 * xdisp.c (Vhourglass_delay): Remove static.
7341 (hourglass_started, start_hourglass, cancel_hourglass):
7342 Don't include these versions on WINDOWSNT.
7343
73442008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7345
7346 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7347 variables (formerly in xfns.c).
7348 (show_hourglass, hide_hourglass): New prototypes (same).
7349 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7350 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7351 in xfns.c).
7352 (syms_of_xdisp): Declare/initialize display-hourglass,
7353 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7354 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7355 formerly in xfns.c.
7356 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7357 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7358 (start_hourglass, cancel_hourglass): Remove.
7359 (show_hourglass, hide_hourglass): Remove prototypes and static
7360 modifiers.
7361 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7362 hourglass_atimer, hourglass_shown_p declaration/initialization.
7363 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7364 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7365 (start_hourglass, cancel_hourglass): Remove.
7366 (show_hourglass, hide_hourglass): Remove prototypes and static
7367 modifiers.
7368 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7369 hourglass_atimer, hourglass_shown_p declaration/initialization.
7370 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7371 (DEFAULT_HOURGLASS_DELAY): Remove.
7372 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7373 hourglass_shown_p declaration/initialization.
7374
73752008-07-14 Jason Rumney <jasonr@gnu.org>
7376
7377 * w32fns.c (w32_get_arg): Remove wrapper function.
7378 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7379 directly.
7380 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7381
73822008-07-14 Kenichi Handa <handa@m17n.org>
7383
7384 * xfont.c (xfont_open): Add workaround for X's bug.
7385
73862008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7387
7388 * fontset.c: Include <stdio.h> unconditionally.
7389
73902008-07-13 Michael Albinus <michael.albinus@gmx.de>
7391
7392 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7393 for filtering.
7394
73952008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7396
7397 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7398
7399 * m/macppc.h:
7400 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7401
7402 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7403 (SPECIAL_EMACS_INT):
7404 * m/ia64.h (SPECIAL_EMACS_INT):
7405 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7406 * s/gnu.h (NLIST_STRUCT):
7407 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7408 * s/gnu-linux.h (LINUX):
7409 * s/msdos.h (HAVE_FACES):
7410 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7411
7412 * systty.h:
7413 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7414 anymore.
7415
74162008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7417
7418 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7419 always defined as int.
7420
7421 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7422 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7423 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7424 * s/freebsd.h (HAVE_WAIT_HEADER):
7425 * s/bsd-common.h (HAVE_UNION_WAIT):
7426 * s/aix4-2.h (HAVE_WAIT_HEADER):
7427 * m/mips.h (HAVE_UNION_WAIT):
7428 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7429 (COFF, static): Do not define, they are undefined later in the file.
7430
7431 * process.c (update_status): Don't use a union.
7432 (status_convert):
7433 (sigchld_handler): Use int instead of WAITTYPE.
7434
74352008-07-12 Chong Yidong <cyd@stupidchicken.com>
7436
7437 * indent.c (Fvertical_motion): Restore hscroll before moving to
7438 goal column.
7439
74402008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7441
7442 * lisp.h: Remove left over code.
7443
74442008-07-11 Andreas Schwab <schwab@suse.de>
7445
7446 * lisp.h: Fix logic in last change.
7447
7448 * menu.h: New file.
7449 * menu.c: Include it.
7450 * xmenu.c: Likewise.
7451 * Makefile.in: Update dependencies.
7452
74532008-07-11 Kenichi Handa <handa@m17n.org>
7454
7455 * fontset.c (fontset_from_font): Cancel the previous change.
7456
74572008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7458
7459 * lisp.h:
7460 * w32heap.c:
7461 * emacs.c:
7462 * alloc.c: Replace all references of NO_UNION_TYPE with
7463 USE_LISP_UNION_TYPE.
7464
7465 * m/xtensa.h (NO_UNION_TYPE):
7466 * m/vax.h (NO_UNION_TYPE):
7467 * m/template.h (NO_UNION_TYPE):
7468 * m/sparc.h (NO_UNION_TYPE):
7469 * m/mips.h (NO_UNION_TYPE):
7470 * m/macppc.h (NO_UNION_TYPE):
7471 * m/m68k.h (NO_UNION_TYPE):
7472 * m/iris4d.h (NO_UNION_TYPE):
7473 * m/intel386.h (NO_UNION_TYPE):
7474 * m/ibms390x.h (NO_UNION_TYPE):
7475 * m/ibms390.h (NO_UNION_TYPE):
7476 * m/ibmrs6000.h (NO_UNION_TYPE):
7477 * m/ia64.h (NO_UNION_TYPE):
7478 * m/hp800.h (NO_UNION_TYPE):
7479 * m/arm.h (NO_UNION_TYPE):
7480 * m/amdx86-64.h (NO_UNION_TYPE):
7481 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7482 defining it the same.
7483
74842008-07-10 Chong Yidong <cyd@stupidchicken.com>
7485
7486 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7487
74882008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7489
7490 * fileio.c:
7491 * sysdep.c
7492 * systty.h:
7493 * m/ibmrs6000.h:
7494 * m/iris4d.h:
7495 * s/aix4-2.h:
7496 * s/freebsd.h:
7497 * s/gnu-linux.h:
7498 * s/hpux10-20.h:
7499 * s/hpux11.h:
7500 * s/netbsd.h:
7501 * s/sol2-3.h:
7502 * s/sol2-4.h:
7503 * s/sol2.h:
7504 * s/usg5-4.h:
7505 * s/vms.h: Remove references to unused variables.
7506
75072008-07-10 Andreas Schwab <schwab@suse.de>
7508
7509 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7510 pattern before matching the generic family.
7511
75122008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7513
7514 * unexec.c:
7515 * s/vms.h:
7516 * s/usg5-4-2.h:
7517 * s/sol2-5.h:
7518 * s/freebsd.h:
7519 * s/darwin.h: Remove dead code.
7520
7521 * m/template.h:
7522 * m/sparc.h:
7523 * m/mips.h:
7524 * m/m68k.h:
7525 * m/iris4d.h:
7526 * m/intel386.h:
7527 * m/ibms390x.h:
7528 * m/ibms390.h:
7529 * m/ia64.h:
7530 * m/hp800.h:
7531 * m/arm.h:
7532 * m/amdx86-64.h: Remove dead code and references to unused
7533 and compiler defined symbols.
7534
7535 * unexmips.c:
7536 * unexelf.c: Remove references to desupported systems.
7537
7538 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7539
7540 * m/powermac.h: Remove boilerplate comments.
7541 (NO_REMAP): Remove unused definition.
7542
7543 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7544 define them.
7545
75462008-07-10 Kenichi Handa <handa@m17n.org>
7547
7548 * xfont.c (xfont_open): Log the reason of failure.
7549
75502008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7551
7552 * fontset.c (fontset_get_font_group):
7553 * font.c (font_check_otf): Specify argument types.
7554
75552008-07-09 Kenichi Handa <handa@m17n.org>
7556
7557 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7558 non-ASCII char is found.
7559
7560 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7561 (reorder_font_vector): Change the arg preferred_family to font.
7562 Prefer the spec matching with font.
7563 (fontset_get_font_group): New function.
7564 (fontset_find_font): Change the format of an element of a realized
7565 fontset. Use fontset_get_font_group.
7566 (fontset_font): Try the current fontset, the default fontset, the
7567 fallbacks of the current fontset, and the fallbacks of the default
7568 fontset in this order.
7569 (face_for_char): Delete the shortcut to use the current font.
7570 (fontset_from_font): Don't set fonts for Latin in the fontset.
7571
7572 * font.h (font_make_object, font_match_p): Adjust prototypes.
7573
7574 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7575
7576 * font.c (font_make_object): New arg entity and pixelsize.
7577 (font_check_otf_features, font_check_otf): New functions.
7578 (font_match_p): Check :lang, :script, and :otf properties.
7579
7580 * xfont.c (xfont_open): Adjust it for the change of
7581 font_make_object.
7582 (xfont_text_extents): Fix initial setting of metrics.
7583
7584 * ftfont.c (struct ftfont_info): New member index, delete member
7585 fc_charset_idx. Make the member order compatible with struct
7586 xftfont_info.
7587 (fc_charset_table): Change charset names to registry names.
7588 (ftfont_pattern_entity): Delete the args registry and
7589 fc_charset_idx. Change the value of :font-entity property
7590 to (FONTNAME . INDEX). Always set :registry property to
7591 `iso10646-1'.
7592 (struct ftfont_cache_data): New struct.
7593 (ftfont_lookup_cache): New arg for_face.
7594 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7595 (ftfont_driver): Set the member otf_capability.
7596 (ftfont_get_charset): Adjust it for the change of
7597 fc_charset_table.
7598 (OTF_TAG_SYM): New macro.
7599 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7600 for the change of fc_charset_table.
7601 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7602 ftfont_pattern_entity. Add FC_INDEX to objset.
7603 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7604 and ftfont_pattern_entity.
7605 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7606 font_make_object, struct ftfont_info.
7607 (ftfont_has_char): Use ftfont_get_fc_charset.
7608 (ftfont_otf_features, ftfont_otf_capability): New functions.
7609 (ftfont_shape): Use ftfont_get_otf.
7610 (ftfont_text_extents): Fix initial setting of metrics.
7611
7612 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7613 member order compatible with struct ftfont_info.
7614 (xftfont_open): Add FC_CHARSET to the pattern. Set
7615 xftfont_info->ft_size. Don't unlock the face. Check BDF
7616 properties if appropriate.
7617 (xftfont_close): Unlock the face.
7618 (xftfont_anchor_point, xftfont_shape): Deleted.
7619 (syms_of_xftfont): Don't set members anchor_point and shape of
7620 xftfont_driver.
7621
7622 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7623 font_make_object.
7624
7625 * w32font.c (w32font_open): Adjust it for the change of
7626 font_make_object.
7627 (w32font_open_internal): Don't set properties of font_object here.
7628
76292008-07-08 Chong Yidong <cyd@stupidchicken.com>
7630
7631 * macfns.c (x_create_tip_frame):
7632 * w32fns.c (x_create_tip_frame):
7633 * xfns.c (x_create_tip_frame): Pass parameter argument to
7634 face-set-after-frame-default.
7635
7636 * xfaces.c (Finternal_merge_in_global_face): Save merged
7637 attributes for the default face back into the face vector.
7638
76392008-07-08 Andreas Schwab <schwab@suse.de>
7640
7641 * fontset.h: Declare fontset_from_font. Don't declare
7642 new_fontset_from_font and fontset_from_font_name.
7643 * xterm.c: Include "fontset.h".
7644 * Makefile.in (xterm.o): Update dependencies.
7645
76462008-07-08 Glenn Morris <rgm@gnu.org>
7647
7648 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7649 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7650
76512008-07-07 Chong Yidong <cyd@stupidchicken.com>
7652
7653 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7654 (x_set_frame_parameters): Don't bind it.
7655
76562008-07-07 Juanma Barranquero <lekktu@gmail.com>
7657
7658 * w32fns.c (map_w32_filename): Declare extern.
7659
76602008-07-07 Jason Rumney <jasonr@gnu.org>
7661
7662 * w32term.c (WS_EX_LAYERED): Define if not already.
7663
76642008-07-06 Chong Yidong <cyd@stupidchicken.com>
7665
7666 * xfaces.c (set_font_frame_param): Don't try to set the font
7667 parameter if it is still unspecified in the lface.
7668
76692008-07-05 Chong Yidong <cyd@stupidchicken.com>
7670
7671 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7672 face if it didn't already exist.
7673
7674 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7675
76762008-07-05 Andreas Schwab <schwab@suse.de>
7677
7678 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7679
76802008-07-05 Chong Yidong <cyd@stupidchicken.com>
7681
7682 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7683 word-wrapping.
7684 (IT_DISPLAYING_WHITESPACE): New macro.
7685 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7686 when word-wrapping. Simplify word-wrapping logic. Use correct
7687 pixel positions when saving copies of the iterator.
7688 (display_line): Use proper wrap point if the last character on a
7689 line was preceded by whitespace.
7690
76912008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7692
7693 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7694
76952008-07-04 Kenichi Handa <handa@m17n.org>
7696
7697 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7698
7699 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7700
77012008-07-02 Jason Rumney <jasonr@gnu.org>
7702
7703 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7704 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7705
7706 * xdisp.c (next_element_from_display_vector): Move assignment out
7707 of if statement.
7708
77092008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7710
7711 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7712
7713 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7714 (syms_of_fileio): Initialize and export them.
7715 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7716
7717 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7718 (Fsystem_move_file_to_trash): New function.
7719 (syms_of_w32fns): Export it to lisp.
7720
77212008-07-01 Jason Rumney <jasonr@gnu.org>
7722
7723 * w32font.c (w32font_text_extents): Don't count overhang as part
7724 of width.
7725
77262008-06-30 Miles Bader <miles@gnu.org>
7727
7728 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7729 Add `avoid_cursor_p' field.
7730
7731 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7732 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7733 (append_glyph, append_composite_glyph, produce_image_glyph)
7734 (append_stretch_glyph): Initialize avoid_cursor_p.
7735 (get_it_property): Rename from `get_line_height_property'.
7736 (x_produce_glyphs): Use get_it_property.
7737 (handle_line_prefix, push_display_prop): New functions.
7738 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7739 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7740 New variables.
7741 (syms_of_xdisp): Initialize them.
7742
77432008-06-30 Kenichi Handa <handa@m17n.org>
7744
7745 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7746 XftDefaultSubstitute (they are called in XftFontMatch).
7747 (xftfont_open): Fix args to ftfont_font_format.
7748
7749 * ftfont.c (fc_charset_table): New member lang.
7750 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7751 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7752 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7753 (ftfont_open): Fix args to ftfont_font_format.
7754 (ftfont_font_format): New arg filename.
7755
77562008-06-30 Chong Yidong <cyd@stupidchicken.com>
7757
7758 * xfaces.c (Finternal_merge_in_global_face): If default face was
7759 modified, realize it again. Update the font face attribute.
7760
77612008-06-29 Jason Rumney <jasonr@gnu.org>
7762
7763 * w32term.c (x_set_frame_alpha): Fix logic.
7764
77652008-06-29 Kenichi Handa <handa@m17n.org>
7766
7767 * fontset.c (Finternal_char_font): Return font-object instead of
7768 font-name.
7769
7770 * composite.c (get_composition_id): Fix the width calculation for TAB.
7771
77722008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7773
7774 * indent.c (Fvertical_motion): Properly handle float column arg.
7775
77762008-06-28 Jason Rumney <jasonr@gnu.org>
7777
7778 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7779 (pfnSetLayeredWindowAttributes): New function pointer.
7780 (w32_initialize): Initialize it when supported.
7781 (x_set_frame_alpha): New function.
7782
7783 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7784 (w32_frame_parm_handlers): Set alpha handler.
7785
7786 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7787
77882008-06-27 Jason Rumney <jasonr@gnu.org>
7789
7790 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7791 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7792 (w32_to_x_charset, x_to_w32_charset)
7793 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7794 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7795 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7796 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7797 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7798 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7799 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7800 (Qw32_charset_unicode): Remove.
7801 (syms_of_w32fns): Update for above changes.
7802
7803 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7804 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7805 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7806 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7807 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7808 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7809 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7810 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7811 (syms_of_w32font): Update for above changes.
7812
78132008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7814
7815 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7816 removed #if.
7817 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7818
78192008-06-26 Juanma Barranquero <lekktu@gmail.com>
7820 Eli Zaretskii <eliz@gnu.org>
7821
7822 * makefile.w32-in (LOCAL_FLAGS):
7823 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7824
7825 * sysdep.c (_spawnlp, _getpid):
7826 Declare with explicit _cdecl instead of _CRTAPI1.
7827
7828 * editfns.c (Fget_internal_run_time):
7829 Check for WINDOWSNT with #ifdef, not #if.
7830
78312008-06-26 Jason Rumney <jasonr@gnu.org>
7832
7833 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7834
7835 * w32term.c (x_draw_glyph_string_foreground)
7836 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7837 Use FONT_HANDLE macro.
7838 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7839
7840 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7841 (uniscribe_encode_char): Use FONT_HANDLE macro.
7842
7843 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7844 (w32font_text_extents): Use precast w32_font.
7845 (w32font_close): Free cached metrics.
7846 (w32font_open_internal): Allocate space for name on stack.
7847
78482008-06-26 Chong Yidong <cyd@stupidchicken.com>
7849
7850 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7851
78522008-06-26 Jason Rumney <jasonr@gnu.org>
7853
7854 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7855 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7856
78572008-06-26 Juanma Barranquero <lekktu@gmail.com>
7858
7859 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7860
78612008-06-26 Jason Rumney <jasonr@gnu.org>
7862
7863 * w32bdf.c, w32bdf.h: Remove obsolete files.
7864
7865 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7866
7867 * w32gui.h: Don't include w32bdf.h.
7868 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7869 Remove obsolete font support.
7870
7871 * w32font.h (struct w32font_info): Remove compat_w32_font.
7872 Add hfont member.
7873 (FONT_COMPAT): Remove obsolete macro.
7874
7875 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7876 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7877 (w32font_open_internal): Remove compat code. Set new hfont member.
7878 (Fx_select_font): Use new hfont member.
7879
7880 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7881 (uniscribe_encode_char): Use new hfont member.
7882
7883 * w32term.c (x_draw_glyph_string_foreground)
7884 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7885 (x_draw_glyph_string): Use metrics in w32font_info.
7886
78872008-06-26 Kenichi Handa <handa@m17n.org>
7888
7889 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7890
78912008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7892
7893 * unexnext.c:
7894 * m/ews4800.h:
7895 * m/hp9000s300.h:
7896 * m/ibm370aix.h:
7897 * m/mips-siemens.h:
7898 * m/ncr386.h:
7899 * m/next.h:
7900 * m/pmax.h:
7901 * m/powerpcle.h:
7902 * m/tandem-s2.h:
7903 * s/386bsd.h:
7904 * s/bsd386.h:
7905 * s/bsd4-1.h:
7906 * s/bsd4-2.h:
7907 * s/bsdos2-1.h:
7908 * s/bsdos2.h:
7909 * s/bsdos3.h:
7910 * s/bsdos4.h:
7911 * s/nextstep.h:
7912 * s/ultrix4-3.h:
7913 * s/usg5-0.h:
7914 * s/usg5-2-2.h:
7915 * s/usg5-2.h:
7916 * s/usg5-4-3.h:
7917 * s/ux4800.h:
7918 * s/uxpds.h:
7919 * s/uxpv.h: Remove support for obsolete systems.
7920 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 7921 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
7922 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7923 Remove, insert contents in s/aix4-2.h.
7924 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7925 * s/bsd4-3.h: Rename to ...
7926 * s/bsd-common.h: ... this.
7927 * data.c:
7928 * doc.c:
7929 * ecrt0.c:
7930 * emacs.c:
7931 * fileio.c:
7932 * floatfns.c:
7933 * keyboard.c:
7934 * mem-limits.h:
7935 * print.c:
7936 * process.c:
7937 * sysdep.c:
7938 * syssignal.h:
7939 * systty.h:
7940 * syswait.h:
7941 * term.c:
7942 * unexec.c:
7943 * unexelf.c:
7944 * unexhp9k800.c:
7945 * m/hp800.h:
7946 * m/ibmrs6000.h:
7947 * m/mips.h:
7948 * m/vax.h:
7949 * s/darwin.h:
7950 * s/freebsd.h:
7951 * s/gnu.h:
7952 * s/ms-w32.h:
7953 * s/msdos.h:
7954 * s/netbsd.h:
7955 * s/template.h: Remove references to obsolete variables.
7956
7957 * Makefile.in: Add dependencies for all unexec files.
7958 (admindir): Remove unused variable.
7959 (UNEXEC_SRC): Remove references.
7960
79612008-06-25 Chong Yidong <cyd@stupidchicken.com>
7962
7963 * xfns.c (x_default_font_parameter): If Xft is available, first
7964 try Monospace-12 for the default font.
7965
79662008-06-25 Jason Rumney <jasonr@gnu.org>
7967
7968 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7969
79702008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7971
7972 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7973
7974 * buffer.c (syms_of_buffer): Remove default-word-wrap.
7975
79762008-06-25 Juanma Barranquero <lekktu@gmail.com>
7977
7978 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7979 <scroll-conservatively>: Fix typo in docstring.
7980
7981 * xselect.c (Fx_send_client_event): Doc fix.
7982
79832008-06-25 Kenichi Handa <handa@m17n.org>
7984
7985 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7986
7987 * font.c (font_parse_fcname): Remove unused variables.
7988 (font_sort_entites): Delete the arg SPEC. Caller changed.
7989 Fix for the case of ! best_only.
7990 (font_delete_unmatched): Check DPI and AVGWIDTH too.
7991
7992 * lisp.h (Fstring_to_unibyte): EXFUN it.
7993
7994 * character.h (str_to_unibyte): Extern it.
7995
7996 * character.c (str_to_unibyte): New function.
7997
7998 * fns.c (Fstring_to_unibyte): New function.
7999 (syms_of_fns): Defsubr it.
8000
80012008-06-24 Kenichi Handa <handa@m17n.org>
8002
8003 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8004 DPI too.
8005 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8006
80072008-06-24 Andreas Schwab <schwab@suse.de>
8008
8009 * Makefile.in (${lispsource}loaddefs.el): Rename from
8010 ../lisp/loaddefs.el.
8011 (bootstrap-clean): Do what distclean does but don't remove
8012 Makefile.
8013 (distclean): Depend on bootstrap-clean and remove Makefile.
8014
80152008-06-24 Chong Yidong <cyd@stupidchicken.com>
8016
8017 * buffer.h (struct buffer): New member word_wrap.
8018
8019 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8020 word-wrap.
8021 (init_buffer_once): Initialize them.
8022
8023 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8024 line_wrap enum possessing three possible values.
8025
8026 * termopts.h: Replace truncate_partial_width_windows with
8027 Vtruncate_partial_width_windows.
8028
8029 * dispnew.c (direct_output_for_insert): Avoid direct output when
8030 inserting a space with word wrap on.
8031
8032 * indent.c (compute_motion): Obey integer values of
8033 truncate-partial-width-windows.
8034
8035 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8036 replacing truncate_partial_width_windows.
8037 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8038 truncate only if the window width is below that integer.
8039 (start_display, resize_mini_window, produce_stretch_glyph)
8040 (display_string, move_it_in_display_line_to): Use line_wrap.
8041 (back_to_previous_visible_line_start, reseat_1): Reset
8042 string_from_display_prop_p.
8043 (display_line): Extend default face to end of line when wrapping.
8044
80452008-06-24 Kim F. Storm <storm@cua.dk>
8046
8047 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8048 to wrap continued lines at word boundaries.
8049
80502008-06-24 Jason Rumney <jasonr@gnu.org>
8051
8052 * font.c (Ffont_face_attributes): Multiply pixel size before point
8053 conversion to avoid multiplying rounding error.
8054
80552008-06-23 Jason Rumney <jasonr@gnu.org>
8056
8057 * w32term.c (x_draw_glyph_string_background)
8058 (x_draw_glyph_string): Remove old bdf font code.
8059
8060 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8061
80622008-06-22 Kenichi Handa <handa@m17n.org>
8063
8064 * font.c (font_find_for_lface): Try the adstyle specified in
8065 the property of LFACE_FONT of LFACE (if any).
8066
80672008-06-21 Seiji Zenitani <zenitani@mac.com>
8068 Ryo Yoshitake <ryo@shiftmode.net>
8069
8070 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8071
80722008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8073
8074 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8075 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8076 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8077 (witness-emacs): Remove.
8078 (lisp, shortlisp): Move loaddefs.el earlier.
8079 (mostlyclean): Forget about witness-emacs.
8080
80812008-06-22 Glenn Morris <rgm@gnu.org>
8082
8083 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8084 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8085
80862008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8087
8088 * Makefile.in (PRECOMP): Remove.
8089 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8090 (witness-emacs): Run `compile-first'.
8091 (.el.elc): Use the new compile-onefile target.
8092
80932008-06-21 Kenichi Handa <handa@m17n.org>
8094
8095 * xftfont.c (xftfont_open): Handle QCembolden only when
8096 FC_EMBOLDEN is defined.
8097
80982008-06-21 Andreas Schwab <schwab@suse.de>
8099
8100 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8101 (.el.elc): Likewise.
8102
81032008-06-21 Miles Bader <miles@gnu.org>
8104
8105 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8106 build dir, not the lisp source dir.
8107
81082008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8109
8110 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8111 (bootstrapclean): Remove.
8112 (.el.elc): New rule.
8113 (PRECOMP): New var.
8114 (../lisp/subdirs.el): Remove.
8115 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8116 (witness-emacs): New target.
8117 (mostlyclean): Remove witness-emacs as well.
8118 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8119 Add witness-emacs dependency.
8120
81212008-06-20 Chong Yidong <cyd@stupidchicken.com>
8122
8123 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8124 defined by the font.
8125
81262008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8127
8128 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8129 (bootstrap-clean): New target that keeps TAGS around.
8130 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8131 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8132
81332008-06-20 Jason Rumney <jasonr@gnu.org>
8134
8135 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8136 Remove obsolete font code.
8137
8138 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8139 to determine language support.
8140
81412008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8142
8143 * sysdep.c (cfsetspeed): New fun extracted from the code.
8144 (cfmakeraw): Move before first use.
8145
81462008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8147
8148 * sysdep.c (cfmakeraw): Provide fallback implementation.
8149 (serial_configure): Provide fallback implementation of cfsetspeed.
8150
81512008-06-20 Kenichi Handa <handa@m17n.org>
8152
8153 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8154 the pattern.
8155
8156 * fontset.c (fontset_from_font): Copy font_spec before changing
8157 the elements.
8158
8159 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8160
81612008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8162
8163 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8164 for explicit `font' parameters.
8165
8166 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8167
81682008-06-19 Kenichi Handa <handa@m17n.org>
8169
8170 * frame.c: Include <ctype.h>.
8171 (x_set_font_backend): Allow spacing characters in the X resource
8172 for FontBackend.
8173
81742008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8175
8176 * w32fns.c, xfns.c (Qfont_param): New var.
8177 (syms_of_w32fns): Initialize it.
8178 (x_default_font_parameter): Record explicit `font' into
8179 `font-parameter'.
8180
81812008-06-18 Kenichi Handa <handa@m17n.org>
8182
8183 * font.c (font_parse_xlfd): Fix previous change.
8184 (font_parse_fcname): Don't use :fc-unknown-spec.
8185 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8186 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8187 (font_add_log): Prepend the driver name to the resulting fonts.
8188
8189 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8190 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8191 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8192
8193 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8194 (QCembolden): New variables.
8195 (syms_of_xftfont): DEFSYM them.
8196 (xftfont_open): Call XftFontMatch. Don't trust the result of
8197 XftTextExtents8 if the pixel_size is less than 5.
8198
81992008-06-18 Andreas Schwab <schwab@suse.de>
8200
8201 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8202 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8203
82042008-06-18 Jason Rumney <jasonr@gnu.org>
8205
8206 * w32font.c (w32font_list, w32font_match): Add logging.
8207
8208 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8209
82102008-06-17 Chong Yidong <cyd@stupidchicken.com>
8211
8212 * font.c (font_parse_fcname): Store divider characters for
8213 unknown-spec list. For known key symbols, intern using correct
8214 symbol name.
8215
82162008-06-17 Kenichi Handa <handa@m17n.org>
8217
8218 * xfaces.c (realize_default_face): If the frame is not on window
8219 system, set the fontset of face to nil.
8220
82212008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8222
8223 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8224
82252008-06-16 Juanma Barranquero <lekktu@gmail.com>
8226
8227 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8228 (build_font_name_from_vector): Delete externs.
8229
8230 * xfaces.c (struct font_name): Don't declare.
8231
82322008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8233
8234 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8235
82362008-06-16 Chong Yidong <cyd@stupidchicken.com>
8237
8238 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8239
82402008-06-16 Juanma Barranquero <lekktu@gmail.com>
8241
8242 * font.c (Ffont_spec): Fix usage in docstring.
8243 (Ffont_face_attributes): Doc fix.
8244
82452008-06-16 Andreas Schwab <schwab@suse.de>
8246
8247 * font.c (Ffont_face_attributes): Fix definition.
8248
82492008-06-16 Jason Rumney <jasonr@gnu.org>
8250
8251 * font.h (font_style_symbolic_from_value): Remove.
8252
8253 * font.c (font_style_symbolic_from_value): Remove.
8254 (font_style_symbolic): Revert to pre 2008-06-13 version.
8255
8256 * w32font.c (w32_to_fc_weight): New function.
8257 (w32font_full_name, logfont_to_fcname): Use it.
8258
82592008-06-16 Kenichi Handa <handa@m17n.org>
8260
8261 * font.c (font_check_object): Delete it.
8262 (font_clear_cache): Check if a font-object is alive.
8263 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8264 font-object to nil.
8265 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8266 (font_at): Don't call font_check_object.
8267 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8268
82692008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8270
8271 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8272
82732008-06-16 Chong Yidong <cyd@stupidchicken.com>
8274
8275 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8276
82772008-06-15 Chong Yidong <cyd@stupidchicken.com>
8278
8279 * font.c (font_parse_fcname): Only one decimal point.
8280 (font_unparse_fcname): Handle data in family and foundry indices
8281 as symbols, not strings.
8282 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8283
8284 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8285
8286 * font.h (font_unparse_gtkname): Add prototype.
8287
82882008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8289
8290 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8291
82922008-06-15 Andreas Schwab <schwab@suse.de>
8293
8294 * font.c (font_update_drivers): Fix crash when no drivers match.
8295
82962008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8297
8298 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8299 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8300
83012008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8302
8303 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8304
83052008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8306
8307 * process.c (Fserial_process_configure, Fprocess_send_eof):
8308 Use EQ to compare Lisp_Objects.
8309
83102008-06-13 Jason Rumney <jasonr@gnu.org>
8311
8312 * w32fns.c (Fw32_select_font): Remove old font API function.
8313
8314 * w32font.c (logfont_to_fcname): New function.
8315 (Fx_select_font): New font dialog function compatible with
8316 GTK/fontconfig version.
8317
8318 * font.c (font_style_symbolic_from_value): New function.
8319 (font_style_symbolic): Use it.
8320
8321 * font.h (font_style_symbolic_from_value): Declare new function.
8322
83232008-06-13 Juanma Barranquero <lekktu@gmail.com>
8324
8325 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8326 <font-width-table>: Fix typos in docstrings.
8327
83282008-06-13 Daniel Engeler <engeler@gmail.com>
8329
8330 These changes add serial port access.
8331 * process.c: Add HAVE_SERIAL.
8332 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8333 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8334 (list_processes_1, select_wrapper, Fstop_process)
8335 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8336 (status_notify): Modify to handle serial processes.
8337 [HAVE_SERIAL] (Fserial_process_configure)
8338 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8339 New functions.
8340 * process.h (struct Lisp_Process): Add `type'.
8341 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8342 New functions.
8343 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8344 serial ports.
b71ac3dd 8345 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8346 * w32.h: Add FILE_SERIAL.
8347 (struct _child_process): Add ovl_read, ovl_write.
8348
83492008-06-13 Kenichi Handa <handa@m17n.org>
8350
8351 * dispextern.h (enum lface_attribute_index): New member
8352 LFACE_FOUNDRY_INDEX.
8353
8354 * font.c (font_score): Delete arg alternate_families. Check only
8355 weight, slant, width, and size. Ignore the difference of alias
8356 style symbols.
8357 (font_sort_entites): Adjust for the above change. Reflect the
8358 order of font-driver to scores.
8359 (font_list_entities): Don't check alternate_familes here.
8360 (font_clear_prop): Handle foundry.
8361 (font_update_lface): Don't parse "foundry-family" form here.
8362 Handle FONT_FOUNDRY_INDEX.
8363 (font_find_for_lface): Likewise. Handle alternate families here.
8364 If registry is nil, try iso8859-1 and ascii-0.
8365 (font_open_for_lface): Pay attention to size in ENTITY.
8366 (font_open_by_name): Simplify by calling font_load_for_lface.
8367 (free_font_driver_list): Delete it.
8368 (font_update_drivers): Preserve the order of backends.
8369 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8370 of font_score and font_sort_entites.
8371 (font_update_sort_order): Likewise.
8372
8373 * xfaces.c (LFACE_FOUNDRY): New macro.
8374 (check_lface_attrs): Check foundry.
8375 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8376 (merge_face_vectors): Check foundry.
8377 (merge_face_ref): Likewise.
8378 (Finternal_set_lisp_face_attribute): Likewise.
8379 (x_update_menu_appearance): Likewise.
8380 (Finternal_get_lisp_face_attribute): Likewise.
8381 (lface_hash): Likewise.
8382 (lface_same_font_attributes_p): Likewise.
8383 (x_supports_face_attributes_p): Likewise.
8384 (tty_supports_face_attributes_p): Likewise.
8385 (Finternal_set_alternative_font_family_alist): Intern strings.
8386 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8387 (realize_default_face): Set LFACE_FOUNDRY (lface).
8388
8389 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8390 font-driver at first.
8391
8392 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8393
83942008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8395
8396 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8397
83982008-06-12 Jim Meyering <meyering@redhat.com>
8399
8400 Make unexec_free handle NULL the same way free does.
8401 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8402
84032008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8404
8405 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8406 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8407 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8408 (WEAK_ALIAS): Simplify.
8409 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8410 when searching a unibyte buffer.
8411
84122008-06-12 Chong Yidong <cyd@stupidchicken.com>
8413
8414 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8415
84162008-06-12 Juanma Barranquero <lekktu@gmail.com>
8417
8418 * w32font.c: Include ctype.h.
8419
84202008-06-11 Jason Rumney <jasonr@gnu.org>
8421
8422 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8423 misreported as space.
8424 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8425 as aliases for registry iso10646-1.
8426
84272008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8428
8429 * buffer.c (clone_per_buffer_values): Skip `name'.
8430
84312008-06-11 Chong Yidong <cyd@stupidchicken.com>
8432
8433 * font.c (font_parse_fcname): Fix last change; accept decimal
8434 points in font size.
8435
84362008-06-10 Jason Rumney <jasonr@gnu.org>
8437
8438 * w32uniscribe.c (add_opentype_font_name_to_list):
8439 Skip non unicode fonts.
8440
84412008-06-10 Chong Yidong <cyd@stupidchicken.com>
8442
8443 * xfns.c (Fx_font_dialog): New function.
8444
8445 * gtkutil.c (xg_dialog_response_cb): Rename from
8446 xg_file_response_callback.
8447 (pop_down_dialog): Rename from pop_down_file_dialog.
8448 (xg_get_file_name): Callers changed.
8449 (xg_get_font_name): New function.
8450
8451 * gtkutil.h (xg_get_font_name): Insert prototype.
8452
84532008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8454
8455 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8456 x_underline_minimum_display_offset.
8457 (syms_of_xdisp): Declare it here rather than in xterm.c.
8458 * dispextern.h (underline_minimum_offset): Declare it.
8459 * w32term.c (x_draw_glyph_string): Use it.
8460 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8461 (syms_of_xterm): Don't declare it any more.
8462 (x_draw_glyph_string): Adjust to the new name.
8463
84642008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8465
8466 * xterm.c (x_underline_minimum_display_offset): New var.
8467 (x_draw_glyph_string): Use it.
8468 (syms_of_xterm): Declare it.
8469
84702008-06-10 Chong Yidong <cyd@stupidchicken.com>
8471
8472 * font.c (font_parse_fcname): Accept GTK-style font names too.
8473
84742008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8475
8476 * dired.c (file_name_completion): Don't return t if the match is exact
8477 but with different capitalization.
8478 * minibuf.c (Ftry_completion): Simplify.
8479
8480 * window.c (Vwindow_point_insertion_type): New var.
8481 (set_window_buffer): Use it.
8482 (syms_of_window): Init and export it to Lisp.
8483
84842008-06-10 Kenichi Handa <handa@m17n.org>
8485
8486 * font.h (font_intern_prop): Prototype adjusted.
8487
8488 * font.c (font_intern_prop): New arg force_symbol.
8489 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8490 Adjust for the change of font_intern_prop.
8491
8492 * ftfont.c (ftfont_pattern_entity):
8493 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8494 (w32_registry):
8495 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8496 the change of font_intern_prop.
8497
84982008-06-09 Juanma Barranquero <lekktu@gmail.com>
8499
8500 * w32menu.c (digest_single_submenu): Declare extern.
8501
85022008-06-09 Jason Rumney <jasonr@gnu.org>
8503
8504 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8505
8506 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8507 (parse_single_submenu): Remove.
8508 (digest_single_submenu): Remove.
8509 (syms_of_w32menu): Don't initialise variables that have moved
8510 to menu.c.
8511 (set_frame_menubar): Sync with version in xmenu.c.
8512 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8513
8514 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8515 Make static again.
8516
85172008-06-09 Jason Rumney <jasonr@gnu.org>
8518
8519 Changes to w32 files related to the move of common menu code
8520 to menu.c on 2008-06-08 by Chong Yidong.
8521
8522 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8523 defs to w32gui.h.
8524 (single_keymap_panes, push_menu_item, push_menu_pane):
8525 Make globally visible.
8526
8527 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8528 (local_free, malloc_widget_value, free_widget_value)
8529 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8530 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8531 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8532 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8533 (menu_items, menu_items_allocated, menu_items_used)
8534 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8535 (init_menu_items, finish_menu_items, discard_menu_items)
8536 (grow_menu_items, push_submenu_start, push_submenu_end)
8537 (push_left_right_boundary, push_menu_pane, push_menu_item)
8538 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8539 (free_menubar_widget_tree_value, parse_single_submenu)
8540 (update_submenu_strings): Remove functions.
8541 (xmalloc_widget_value): Remove and declare extern.
8542
8543 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8544 (OBJ1): Build it.
8545
8546 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8547 (local_heap, local_alloc, local_free, malloc_widget_value)
8548 (free_widget_value): Define here.
8549
85502008-06-09 Kenichi Handa <handa@m17n.org>
8551
8552 * font.h (Qascii_0): Extern it.
8553
8554 * font.c (Qascii_0): New variable.
8555 (syms_of_font): DEFSYM it.
8556 (font_open_by_name): If the registry "iso8859-1" fails, try also
8557 "ascii-0".
8558
8559 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8560
85612008-06-08 Kenichi Handa <handa@m17n.org>
8562
8563 * .gdbinit (xfont): New command.
8564
85652008-06-08 Andreas Schwab <schwab@suse.de>
8566
8567 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8568 * Makefile.in (menu.o): Update dependencies.
8569
8570 * Makefile.in (obj): Always add menu.o.
8571 * emacs.c (main): Always call syms_of_menu.
8572 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8573
85742008-06-08 Chong Yidong <cyd@stupidchicken.com>
8575
8576 * Makefile.in: Compile menu.c.
8577
8578 * lisp.h: Declare syms_of_menu.
8579
8580 * emacs.c (main): Call syms_of_menu.
8581
8582 * keyboard.h: Relocate platform-independent menu definitions from
8583 xmenu.c.
8584
8585 * menu.c: New file. Relocate platform-independent menu
8586 definitions from xmenu.c. Suggested by Adrian Robert.
8587
8588 * xmenu.c: Remove platform-independent menu definitions.
8589 (menu_items menu_items_inuse, menu_items_allocated)
8590 (menu_items_used, menu_items_n_panes)
8591 (menu_items_submenu_depth): Move to keyboard.h.
8592 (init_menu_items, finish_menu_items, unuse_menu_items)
8593 (discard_menu_items, restore_menu_items, save_menu_items)
8594 (grow_menu_items, push_submenu_start, push_submenu_end)
8595 (push_left_right_boundary, push_menu_pane, push_menu_item)
8596 (keymap_panes, single_keymap_panes, single_menu_item)
8597 (list_of_panes, list_of_items, find_and_call_menu_selection)
8598 (xmalloc_widget_value, free_menubar_widget_value_tree)
8599 (parse_single_submenu, digest_single_submenu)
8600 (update_submenu_strings): Move to menu.c.
8601
86022008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8603
8604 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8605
86062008-06-06 Miles Bader <miles@gnu.org>
8607
8608 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8609 face, not frame default.
8610
86112008-06-05 Martin Rudalics <rudalics@gmx.at>
8612
8613 * window.c (pop_up_windows, pop_up_frames)
8614 (display_buffer_reuse_frames, Vpop_up_frame_function)
8615 (Vdisplay_buffer_function, Veven_window_heights)
8616 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8617 (Vspecial_display_function, Vsame_window_buffer_names)
8618 (Vsame_window_regexps, split_height_threshold)
8619 (Vsplit_window_preferred_function): Move those vars to window.el.
8620 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8621 (Fdisplay_buffer): Move those functions to window.el.
8622 (syms_of_window): Remove corresponding declarations.
8623 (display_buffer): New function.
8624 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8625 * dispnew.c (Flast_nonminibuf_frame): New function.
8626 * buffer.c (Fpop_to_buffer): Move to window.el.
8627
86282008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8629
8630 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8631
86322008-06-05 Kenichi Handa <handa@m17n.org>
8633
8634 * coding.c (detect_coding): Fix previous change.
8635 (detect_coding_system): Likewise.
8636
86372008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8638
8639 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8640
8641 * keymap.c (Vminibuffer_local_filename_must_match_map):
8642 Rename from Vminibuffer_local_must_match_filename_map.
8643 (syms_of_keymap):
8644 * minibuf.c (Fcompleting_read): Adjust accordingly.
8645 * commands.h: Rename declaration as well.
8646
86472008-06-05 Kenichi Handa <handa@m17n.org>
8648
8649 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8650 family name.
8651 (Ffont_put): Likewise.
8652
8653 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8654 current font-spec.
8655
8656 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8657 is unspecified.
8658
8659 * xfaces.c (realize_x_face): If the font-related face attributes
8660 are the same as those of default face, realize a new fontset from
8661 default->fontset.
8662 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8663
86642008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8665
8666 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8667 (move_it_in_display_line): New wrapper.
8668
8669 * window.c (window_scroll_pixel_based_preserve_x)
8670 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8671 (window_scroll_pixel_based, window_scroll_line_based):
8672 Use them to preserve column positions.
8673 (syms_of_window): Initialize them.
8674
8675 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8676 (HPOS . VPOS) pair.
8677
8678 * dispextern.h (move_it_in_display_line): Declare.
8679
86802008-06-05 Juanma Barranquero <lekktu@gmail.com>
8681
8682 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8683 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8684 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8685
86862008-06-04 Juanma Barranquero <lekktu@gmail.com>
8687
8688 * window.c (Fset_window_parameter): Doc fix.
8689 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8690
86912008-06-04 Joakim Verona <joakim@verona.se>
8692
8693 * window.h (struct window): Add new member window_parameters.
8694
8695 * window.c (Fwindow_parameters, Fwindow_parameter)
8696 (Fset_window_parameter): New defuns.
8697 (syms_of_window): Defsubr the new defuns.
8698 (make_window): Initialize window_parameters to nil.
8699
87002008-06-04 John Paul Wallington <jpw@pobox.com>
8701
8702 * eval.c (Fdefmacro): Doc fix.
8703
87042008-06-04 Kenichi Handa <handa@m17n.org>
8705
8706 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8707 Be sure to call setup_coding_system when we find a proper coding system.
8708 (detect_coding_system): Fix handling of coding->head_ascii.
8709
87102008-06-03 Andreas Schwab <schwab@suse.de>
8711
8712 * font.c (font_prop_validate_spacing): Fix last change.
8713
87142008-06-03 Kenichi Handa <handa@m17n.org>
8715
8716 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8717 (font_parse_fcname): Fix handling of unknown key.
8718
8719 * xfont.c (xfont_list): Try an alias.
8720
8721 * charset.c (char_charset): Return NULL if the arg charset_list is
8722 specified and C doesn't belong to any of them.
8723
87242008-06-02 Chip Coldwell <coldwell@redhat.com>
8725
8726 * font.c (font_pixel_size): Don't take cdr of an integer.
8727
87282008-06-02 Jim Meyering <meyering@redhat.com>
8729
8730 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8731 * alloc.c (xfree): Return right away for a NULL arg.
8732 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8733 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8734 * mac.c (create_apple_event_from_event_ref): Likewise.
8735 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8736 Likewise.
8737 * doprnt.c (doprnt1): Likewise.
8738 * frame.c (frame): Likewise.
8739 * keyboard.c (wipe_kboard): Likewise.
8740 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8741 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8742 * term.c (tty_default_color_capabilities, maybe_fatal)
8743 (delete_tty): Likewise.
8744 * w16select.c (string): Likewise.
8745 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8746 * w32bdf.c (w32_free_bdf_font): Likewise.
8747 * w32fns.c (w32_unload_font): Likewise.
8748 * w32font.c (w32font_close): Likewise.
8749 * window.c (size_window): Likewise.
8750 * xselect.c (receive_incremental_selection): Likewise.
8751 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8752 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8753 * w32.c (stat): Likewise.
8754
8755 Remove useless if-before-free tests.
8756 * editfns.c (Fset_time_zone_rule): Likewise.
8757 * lread.c (nosuffix): Likewise.
8758 * ralloc.c (get_bloc): Likewise.
8759 * regex.c (reg_free): Likewise.
8760 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8761 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8762 * xsmfns.c (smc_save_yourself_CB): Likewise.
8763
87642008-06-02 Kenichi Handa <handa@m17n.org>
8765
8766 * font.c (font_find_for_lface): Handle float font size.
8767 (font_open_for_lface): Likewise.
8768
8769 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8770 comparing the properties.
8771
87722008-06-01 Jason Rumney <jasonr@gnu.org>
8773
8774 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8775 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8776 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8777 Don't add empty script list.
8778 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8779
87802008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8781
8782 * Makefile.in (dot, dotdot): Remove, update users.
8783 ".." has been used elsewhere in the file for a long time.
8784 (LIBXT_STATIC): Remove conditional based on unused variable.
8785
87862008-06-01 Miles Bader <miles@gnu.org>
8787
8788 * xfaces.c (Vface_remapping_alist): New variable.
8789 (syms_of_xfaces): Initialize it.
8790 (enum named_merge_point_kind): New type.
8791 (struct named_merge_point): Add `named_merge_point_kind' field.
8792 (push_named_merge_point): Make cycle detection respect different
8793 named-merge-point kinds.
8794 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8795 Remove face-name alias resolution.
8796 (lface_from_face_name): New definition using
8797 `lface_from_face_name_no_resolve'.
8798 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8799 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8800 (get_lface_attributes): New definition that layers face-remapping on
8801 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8802 (lookup_basic_face): New function.
8803 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8804 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8805 `get_lface_attributes'.
8806 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8807 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8808 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8809
8810 * xdisp.c (init_iterator): Pass base_face_id through
8811 `lookup_basic_face' when we actually use it as a face-id.
8812 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8813 DEFAULT_FACE_ID.
8814
8815 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8816 lookup the initial face-id.
8817
8818 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8819
88202008-06-01 Juanma Barranquero <lekktu@gmail.com>
8821
8822 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8823 (Fremove_text_properties): Fix typos in docstrings.
8824
88252008-05-31 Kenichi Handa <handa@m17n.org>
8826
8827 * font.c (font_list_entities): Fix the car part of data to be
8828 stored in the cache.
8829
8830 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8831
88322008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8833
8834 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8835 Add a `test' argument so another predicate than `equal' can be used.
8836 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8837 (map_char_table): Remove unused vars `c' and `i'.
8838 * lisp.h (Foptimize_char_table): Adjust declaration.
8839 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8840
88412008-05-30 Kenichi Handa <handa@m17n.org>
8842
8843 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8844 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8845 defined.
8846
88472008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8848
8849 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8850 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8851 frame-local settings for the same variable.
8852
88532008-05-30 Kenichi Handa <handa@m17n.org>
8854
8855 * fontset.c (Ffont_info): Move to font.c.
8856 (syms_of_fontset): Delete defsubr of Sfont_info.
8857
8858 * font.c (font_style_to_value, font_score): Delete casting of the
8859 args to xstcasecmp.
8860 (register_font_driver): Increment num_font_drivers only when
8861 registering the driver globally.
8862 (Ffont_info): Move from fontset.c. Handle a font object too.
8863 (syms_of_font): Defsubr Sfont_info.
8864
88652008-05-29 Kenichi Handa <handa@m17n.org>
8866
8867 * coding.h (enum define_coding_utf8_arg_index): New enum.
8868 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8869 coding_attr_utf_bom.
8870 (enum utf_bom_type): Rename from utf_16_bom_type.
8871 (struct utf_16_spec): Adjust for the above change.
8872 (struct coding_system): Add utf_8_bom in `spec' union.
8873
8874 * coding.c (CODING_UTF_8_BOM): New macro.
8875 (enum coding_category): Delete coding_category_utf_8, add
8876 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8877 coding_category_utf_8_sig.
8878 (CATEGORY_MASK_UTF_8): Delete it.
8879 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8880 (CATEGORY_MASK_UTF_8_SIG): New macros.
8881 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8882 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8883 CATEGORY_MASK_UTF_8_SIG.
8884 (CATEGORY_MASK_UTF_8): New macro.
8885 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8886 (detect_coding_utf_8): Check BOM.
8887 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8888 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8889 (encode_coding_utf_16): Likewise.
8890 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8891 (detect_coding, detect_coding_system): Handle utf-8-auto.
8892 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8893 (syms_of_coding): Fix setting up of Vcoding_category_table.
8894
88952008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8896
8897 * process.c (Faccept_process_output): If `millisec' is non-nil,
8898 `seconds' default to 0.
8899 (wait_reading_process_output): Also return non-nil if we read output
8900 from a non-running process.
8901
89022008-05-29 Jason Rumney <jasonr@gnu.org>
8903
8904 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8905 `raster' specified.
8906 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8907 in the uniscribe backend, but disallow any font that has no
8908 unicode subrange support.
8909
89102008-05-29 Juanma Barranquero <lekktu@gmail.com>
8911
8912 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8913 Fix typos in docstrings.
8914
89152008-05-29 Kenichi Handa <handa@m17n.org>
8916
8917 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8918 (Fx_family_fonts): Set frame correctly.
8919
89202008-05-28 Jason Rumney <jasonr@gnu.org>
8921
8922 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8923
89242008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8925
8926 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8927 calling build_annotations.
8928
89292008-05-28 Juanma Barranquero <lekktu@gmail.com>
8930
8931 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8932 (Fencode_coding_string):
8933 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8934 <latin-extra-code-table>: Fix typos in docstrings.
8935 (syms_of_coding) <coding-system-alist>: Doc fix.
8936 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8937
89382008-05-28 Kenichi Handa <handa@m17n.org>
8939
8940 * fontset.c (Ffont_info): Don't call font_close_object.
8941
8942 * font.c (font_parse_family_registry): Use Ffont_put to validate
8943 foundry and family.
8944 (font_delete_unmatched): Don't check spacing.
8945 (font_list_entities): Add spacing to the spec to list fonts.
8946
8947 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8948 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8949
8950 * coding.c (encode_coding_raw_text): Fix previous change.
8951 (encode_coding_object): When the dst_object is a buffer and is
8952 different from src_object, move gap to PT.
8953
89542008-05-27 Chong Yidong <cyd@stupidchicken.com>
8955
8956 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8957
89582008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8959
8960 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8961 all branches. Compute it differently.
8962
8963 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8964
89652008-05-27 Juanma Barranquero <lekktu@gmail.com>
8966
8967 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8968 into "else if () ... else ...".
8969
89702008-05-27 Jason Rumney <jasonr@gnu.org>
8971
8972 * w32font.c (w32font_open_internal): Determine if glyph indices
8973 are likely to work here.
8974
89752008-05-27 Chong Yidong <cyd@stupidchicken.com>
8976
8977 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8978 draw overlap glyphs with appropriate highlighting.
8979
89802008-05-27 Kenichi Handa <handa@m17n.org>
8981
8982 * xfont.c (xfont_open): Fix calculation of font->average_width.
8983
89842008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8985
8986 * casefiddle.c (casify_object): Try to guess better whether the
8987 argument is a byte or a char.
8988
89892008-05-26 Andreas Schwab <schwab@suse.de>
8990
8991 * xselect.c (x_reply_selection_request): Properly handle format == 32.
8992 Always send multiples of format size.
8993
8994 * xterm.c (x_set_frame_alpha): Fix type mismatch.
8995
89962008-05-26 Jason Rumney <jasonr@gnu.org>
8997
8998 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8999 (compute_metrics): Don't set failure if we just cleared the cache.
9000 (w32_weight_table): Remove unused variable.
9001 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9002 backwards compatibility.
9003
90042008-05-25 Kenichi Handa <handa@m17n.org>
9005
9006 * w32term.c (x_draw_glyph_string):
9007 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9008
9009 * xfaces.c: Delete unused function prototypes.
9010 (xstrlwr, font_frame): Delete them.
9011 (clear_face_cache): Delete unused variable.
9012
9013 * xftfont.c (xftfont_open): Delete unused variable.
9014 If underline_thickness is not 1, adjust underline_position.
9015
9016 * ftxfont.c (ftxfont_open): Delete unused variable.
9017
9018 * fontset.c (face_for_char): Optimize for the case of no charset
9019 property.
9020
9021 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9022 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9023 (otf_open, font_otf_capability, generate_otf_features)
9024 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9025 Comment out by surrounding "#if 0" and "#endif" for the moment.
9026 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9027 (syms_of_font): Codes for accessing above commented out.
9028
90292008-05-24 Eli Zaretskii <eliz@gnu.org>
9030
9031 * w32proc.c: Include dispextern.h.
9032
9033 * w32.c: Include dispextern.h.
9034
90352008-05-23 Juanma Barranquero <lekktu@gmail.com>
9036
9037 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9038 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9039 Fix typos in docstrings.
9040
90412008-05-23 Jason Rumney <jasonr@gnu.org>
9042
9043 * xsmfns.c: Remove includes that are already included by config.h.
9044
90452008-05-23 Kenichi Handa <handa@m17n.org>
9046
9047 * charset.c (Qemacs, charset_emacs): New variables.
9048 (char_charset): Fix for non-Unicode characters.
9049 (syms_of_charset): Define charset_emacs.
9050
9051 * w32term.c (x_draw_glyph_string): Be sure to update
9052 s->underline_thickness and s->underline_position. Be sure to draw
9053 underline within the current line area.
9054
9055 * xterm.c (x_draw_glyph_string): Be sure to update
9056 s->underline_thickness and s->underline_position. Be sure to draw
9057 underline within the current line area.
9058
9059 * fontset.c: Delete unused variables and add casting for char *
9060 throughout the file.
9061 (fontset_font): Try the fallback fonts of the current fontset
9062 before consulting the default fontset.
9063
9064 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9065
9066 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9067
90682008-05-22 Jason Rumney <jasonr@gnu.org>
9069
9070 * font.c: Don't include strings.h.
9071
9072 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9073
9074 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9075 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9076 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9077 to call xstrcasecmp.
9078
9079 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9080
9081 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9082
9083 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9084
9085 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9086
90872008-05-22 Kenichi Handa <handa@m17n.org>
9088
9089 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9090
9091 * font.c (font_prop_validate_style): Adjust for the format
9092 change of font_style_table.
9093
9094 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9095 two args.
9096
9097 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9098 two args.
9099
91002008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9101
9102 * minibuf.c (keys_of_minibuf): Delete.
9103 * lisp.h (keys_of_minibuf): Delete.
9104 * emacs.c (main): Don't call keys_of_minibuf.
9105
91062008-05-22 Kenichi Handa <handa@m17n.org>
9107
9108 * ftfont.c (ftfont_resolve_generic_family): Rename from
9109 ftfont_list_generic_family. Return a single family for each
9110 generic family.
9111 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9112 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9113 Call font_add_log.
9114 (ftfont_match): Call font_add_log.
9115
9116 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9117 (FONT_DEBUG): Define it.
9118 (font_add_log): Extern it.
9119 (font_assert): Rename from xassert.
9120
9121 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9122 (xfont_list_family): Call font_add_log.
9123 (xfont_match): Likewise.
9124 (memq_no_quit): Delete.
9125
9126 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9127 call of Ffont_xlfd_name.
9128
9129 * xfaces.c (struct table_entry, slant_table, weight_table)
9130 (swidth_table): Move to font.c.
9131
9132 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9133 xassert are changed to font_assert. Delete many unused variables.
9134 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9135 New variables.
9136 (struct table_entry): Move from xfaces.c and modified.
9137 (weight_table, slant_table, width_table): Move from xfaces.c and
9138 contents adjusted for the change of struct table_entry.
9139 (font_style_to_value, font_style_symbolic): Adjust for the
9140 format change of font_style_table.
9141 (font_parse_family_registry): Don't overwrite existing foundry and
9142 family of font_spec.
9143 (font_score): Fix calculation of diff for sizes.
9144 (font_sort_entites): Call font_add_log.
9145 (font_delete_unmatched): Return a newly created list.
9146 (font_list_entities): Fix previous change. Call font_add_log.
9147 (font_matching_entity, font_open_entity, font_close_entity):
9148 Call font_add_log.
9149 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9150 (Finternal_set_font_style_table): Delete.
9151 (BUILD_STYLE_TABLE): New macro.
9152 (build_style_table): New function.
9153 (Vfont_log, font_log_env_checked): New variables.
9154 (font_add_log): New function.
9155 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9156 Declare Lisp variables "font-weight-table", "font-slant-table",
9157 "font-width-table", and "font-log". Initialize font_style_table.
9158
91592008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9160
9161 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9162
91632008-05-21 Seiji Zenitani <zenitani@mac.com>
9164 Ryo Yoshitake <ryo@shiftmode.net>
9165
9166 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9167 (Vframe_alpha_lower_limit): New variable.
9168 (x_set_alpha): New function.
9169
9170 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9171
9172 * xfns.c (x-create-frame, Qalpha):
9173 Initialize the frame parameter `alpha'.
9174 * xterm.c (OPAQUE, OPACITY): New.
9175 (x_set_frame_alpha): New function.
9176 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9177
9178 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9179 * w32fns.c (w32_frame_parm_handlers): Likewise.
9180
91812008-05-20 Jason Rumney <jasonr@gnu.org>
9182
9183 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9184 truetype fonts to opentype list.
9185
91862008-05-20 Juanma Barranquero <lekktu@gmail.com>
9187
9188 * fontset.c (Ffontset_info): Doc fix.
9189 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9190 <ignore-relative-composition>: Fix typos in docstrings.
9191
9192 * font.c (syms-of-font) <font-encoding-alist>:
9193 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9194 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9195 (Ffont_otf_alternates): Doc fixes.
9196
91972008-05-20 Kenichi Handa <handa@m17n.org>
9198
9199 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9200 font.h through out the file.
9201 (FONT_DRIVERS): Rename from FONTOBJ.
9202 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9203 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9204
9205 * emacs.c (main): Call syms_of_font unconditionally.
9206
9207 * font.h (find_font_encoding): Extern it.
9208
9209 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9210 fontset.c.
9211 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9212 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9213 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9214 only when HAVE_WINDOW_SYSTEM is defined.
9215 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9216 when HAVE_WINDOW_SYSTEM is defined.
9217
9218 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9219 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9220
9221 * xfaces.c: Include font.h unconditionally.
9222 (merge_face_ref, merge_face_vectors)
9223 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9224
92252008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9226
9227 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9228 indirect_variable.
9229 * eval.c (lisp_indirect_variable): New fun.
9230 (Fuser_variable_p): Use it.
9231
92322008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9233
9234 * lisp.h (indirect_variable):
9235 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9236 Use Lisp_Symbol pointers rather than Lisp_Object.
9237 Adjust callers.
9238 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9239 To this end, change calling-convention.
9240
9241 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9242 if some non-hidden buffers are selected by string&pred.
9243
92442008-05-19 Chong Yidong <cyd@stupidchicken.com>
9245
9246 * process.c (wait_reading_process_output): Always check status
9247 when in batch mode.
9248
92492008-05-19 Kenichi Handa <handa@m17n.org>
9250
9251 * font.c (font_list_entities): Fix handling of cache.
9252 (font_matching_entity): Likewise.
9253
9254 * ftfont.c (cs_iso8859_1): Delete.
9255 (ft_face_cache): New variable.
9256 (struct ftfont_info): New member fc_charset_idx.
9257 (ftfont_build_basic_charsets): Delete.
9258 (fc_charset_table): New variable.
9259 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9260 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9261 Callers changed.
9262 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9263 (ftfont_spec_pattern): New argument fc_charset_idx.
9264 Check registry more rigidly. Change callers.
9265 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9266 change of :font-entity property of the font.
9267
9268 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9269 property of the font.
9270
92712008-05-18 Juanma Barranquero <lekktu@gmail.com>
9272
9273 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9274 (Funencodable_char_position, Fcheck_coding_systems_region)
9275 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9276 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9277 (Ffind_operation_coding_system, Fset_coding_system_priority)
9278 (Fcoding_system_eol_type): Doc fixes.
9279
92802008-05-17 Glenn Morris <rgm@gnu.org>
9281
9282 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9283
92842008-05-16 Eli Zaretskii <eliz@gnu.org>
9285
9286 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9287 and st_gid.
9288
9289 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9290 HAVE_WINDOW_SYSTEM is not defined.
9291
9292 * xfaces.c (merge_face_ref, merge_face_vectors)
9293 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9294 HAVE_WINDOW_SYSTEM is defined.
9295 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9296
92972008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9298
9299 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9300
93012008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9302
9303 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9304
93052008-05-15 Kenichi Handa <handa@m17n.org>
9306
9307 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9308 preference.
9309
93102008-05-15 Glenn Morris <rgm@gnu.org>
9311
9312 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9313
93142008-05-15 Chong Yidong <cyd@stupidchicken.com>
9315
9316 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9317 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9318
9319 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9320
93212008-05-15 Kenichi Handa <handa@m17n.org>
9322
9323 * ftfont.c (ftfont_list): Downcase family name to check generic
9324 families.
9325
9326 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9327 font-spec for QCfont value.
9328
9329 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9330 buffer. Check the return value of it.
9331
93322008-05-14 Jason Rumney <jasonr@gnu.org>
9333
9334 * w32term.c (w32_get_glyph_overhangs): Remove.
9335 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9336
93372008-05-14 Kenichi Handa <handa@m17n.org>
9338
9339 * font.c (font_prop_validate): Make nil a valid value.
9340 (font_clear_cache): Check if the cached vector of entities is nil
9341 or not.
9342
93432008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9344
9345 * emacs.c (main_thread): Conditionalize on
9346 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9347 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9348
9349 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9350 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9351 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9352
93532008-05-14 Kenichi Handa <handa@m17n.org>
9354
9355 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9356 has no corresponding coding system.
9357
93582008-05-14 Jason Rumney <jasonr@gnu.org>
9359
9360 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9361
9362 * w32font.h (w32font_open_internal): Update declaration.
9363
9364 * w32font.c (w32font_open_internal): Change last argument from
9365 w32font_info struct to font object. Fill in font object from
9366 font_entity. Get Outline metrics if possible. Use them to
9367 calculate underline position and thickness. Use xlfd name as name
9368 property. Don't set codepage.
9369 (w32font_open): Pass font_object to w32font_open_internal. Don't
9370 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9371 (w32font_draw): Use s->font.
9372 (clear_cached_metrics): Don't clear non-existent blocks.
9373
9374 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9375 font was not found.
9376 (x_draw_glyph_string): Use underline position and thickness from font.
9377
9378 * w32uniscribe.c (uniscribe_open): Pass font_object to
9379 w32font_open_internal.
9380
93812008-05-14 Kenichi Handa <handa@m17n.org>
9382
9383 These changes are to delete all legacy font-handling codes, and
9384 make Emacs use only font-backends.
9385
9386 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9387 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9388
9389 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9390
9391 * charset.h (Vcharset_non_preferred_head)
9392 (Vcurrent_iso639_language): Extern them.
9393
9394 * charset.c (Vcharset_non_preferred_head): New variable.
9395 (Vcurrent_iso639_language): New variable.
9396 (syms_of_charset): Declare it as a Lisp variable.
9397 (char_charset): Don't check non preferred charsets. As a last
9398 resort, return charset_unicode.
9399 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9400
9401 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9402 conditionals. Don't check enable_font_backend. Delete all codes
9403 used only when USE_FONT_BACKEND is not defined.
9404
9405 * dispextern.h (struct glyph_string): Change type of `font' to
9406 `struct font *'.
9407 (struct glyph_string): New member underline_position and
9408 underline_thickness.
9409 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9410 (struct face): Change type of `font' to `struct font *'. Remove
9411 members `font_name', `font_info_id'.
9412 (per_char_metric, encode_char): Delete externs.
9413 (calc_pixel_width_or_height): Adjust the prototype.
9414
9415 * emacs.c (enable_font_backend): Delete extern.
9416 (main): Don't set enable_font_backend. Don't check the command
9417 line argument "-disable-font-backend".
9418
9419 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9420 (enum font_property_index): New members FONT_DPI_INDEX,
9421 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9422 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9423 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9424 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9425 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9426 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9427 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9428 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9429 (struct font_spec, struct font_entity): New structs.
9430 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9431 (struct font): Many members from old "struct font_info" moved to
9432 here. Members font and entity deleted.
9433 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9434 the new font-related objects.
9435 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9436 (CHECK_FONT_GET_OBJECT): Likewise.
9437 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9438 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9439 (struct font_driver): New members case_sensitive anc check. Type
9440 of the member list and open changed.
9441 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9442 (font_symbolic_width, font_find_object, font_get_spec)
9443 (font_set_lface_from_name): Delete extern.
9444 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9445
9446 * font.c: Include <strings.h>.
9447 (enable_font_backend): Delete it.
9448 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9449 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9450 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9451 (null_string): Delete it.
9452 (null_vector): Make it static.
9453 (font_family_alist): Delete it.
9454 (Qnormal): Extern it.
9455 (QCextra, QClanguage): Delete it.
9456 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9457 (font_make_spec, font_make_entity, font_make_object)
9458 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9459 the string. Callers changed.
9460 (font_pixel_size): Adjusted for the format change of font-related
9461 objects.
9462 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9463 (font_style_to_value, font_style_symbolic): New function.
9464 (build_font_family_alist): Delete it.
9465 (font_registry_charsets): Use Fassoc_string instead of
9466 assq_no_quit.
9467 (font_prop_validate_symbol): Don't return null_string.
9468 (font_prop_validate_style): Adjusted for the change of
9469 style-related values in a font vector.
9470 (font_property_table): Delete entries for QClanguage and
9471 QCantialias, add entries for QCavgwidth.
9472 (get_font_prop_index): Delete the 2nd argument FROM.
9473 (font_prop_validate): Arguments changed.
9474 (font_put_extra): Adjusted for the change of font-related objects.
9475 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9476 (font_parse_fcname, font_unparse_fcname)
9477 (font_prepare_composition): Likewise.
9478 (font_parse_family_registry): Renamed from font_merge_old_spec.
9479 (otf_open): Delete the 1st arg entity.
9480 (font_otf_capability): Adjusted for the above change.
9481 (font_score): New arg alternate_families. Adjusted for the change
9482 of font-related objects.
9483 (font_sort_entites): New arg best_only.
9484 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9485 Delete them.
9486 (font_match_p): Check alternate families.
9487 (font_find_object): Delete it.
9488 (font_check_object): New function.
9489 (font_clear_cache): Adjusted for the change of font-related objects.
9490 (font_delete_unmatched): New arg.
9491 (font_list_entities): Call font_driver->list with a spec that
9492 doesn't specify style-related properties.
9493 (font_matching_entity): Arguments changed. Caller changed.
9494 (font_open_entity): Adjusted for the change of font-related objects.
9495 (font_close_object, font_has_char, font_encode_char)
9496 (font_get_name, font_get_spec): Likewise.
9497 (font_spec_from_name, font_clear_prop, font_update_lface):
9498 New functions.
9499 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9500 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9501 (font_at): Adjusted for the change of font-related objects.
9502 (font_range): New function.
9503 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9504 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9505 (Fcopy_font_spec, Fmerge_font_spec): New function.
9506 (Ffont_family_list): Renamed from list-families.
9507 (Finternal_set_font_style_table): Arguments changed.
9508 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9509 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9510 change of font-related objects.
9511 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9512
9513 * fontset.h (struct font_info): Delete it. Most members go to
9514 struct font.
9515 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9516 (enum FONT_SPEC_INDEX): Delete it.
9517 (font_info, list_fonts_func, load_font_func, query_font_func)
9518 (set_frame_fontset_func, find_ccl_program_func)
9519 (get_font_repertory_func, new_fontset_from_font_name): Delete
9520 externs.
9521 (fontset_from_font_name): Extern it.
9522 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9523 (FONT_INFO_FROM_FACE): Deleted.
9524 (face_for_font): Adjust prototype.
9525
9526 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9527 conditionals. Don't check enable_font_backend. Delete all codes
9528 used only when USE_FONT_BACKEND is not defined.
9529 (get_font_info_func, list_font_func, load_font_func)
9530 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9531 (get_font_repertory_func): Delete them.
9532 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9533 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9534 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9535 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9536 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9537 (fontset_compare_rfontdef): New function.
9538 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9539 rfont-defs by qsort. Adjusted for the change of font-group vector.
9540 (load_font_get_repertory): Deleted.
9541 (fontset_find_font): Use new macros to ref/set elements of
9542 font-def and rfont-def.
9543 (fontset_font): Fix the timing of remembering that no font for C.
9544 (free_face_fontset): Do nothing if the face has no fontset.
9545 (face_suitable_for_char_p): Use new macros to ref/set elements of
9546 rfont-def.
9547 (face_for_char): Likewise. Call face_for_char with font_object.
9548 (fs_load_font): Delete. Delete #pragma surrounding it.
9549 (fs_query_fontset): Use strcasecmp instead of strcmp.
9550 (generate_ascii_font_name): Adjusted for the format change of
9551 font-spec.
9552 (Fset_fontset_font): Likewise. Use new macros to set elements of
9553 font-def.
9554 (Fnew_fontset): Use font_unparse_xlfd to generate
9555 FONTSET_ASCII (fontset).
9556 (new_fontset_from_font_name): Deleted.
9557 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9558 a fontset is already created for the font. FIx updating of
9559 Vfontset_alias_alist.
9560 (fontset_ascii_font): Deleted.
9561 (Ffont_info): Adjusted for the format change of font-spec.
9562 (Finternal_char_font): Likewise.
9563 (Ffontset_info): Likewise.
9564 (syms_of_fontset): Don't check load_font_func.
9565
9566 * fns.c (internal_equal): Handle PREV_FONT.
9567
9568 * frame.h: Delete USE_FONT_BACKEND conditional.
9569
9570 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9571 conditionals. Don't check enable_font_backend. Delete all codes
9572 used only when USE_FONT_BACKEND is not defined.
9573 (x_set_font): Call x_new_font, not x_new_fontset2.
9574 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9575 already set for the frame.
9576
9577 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9578 a font-entity by font_make_entity. Use font_intern_prop instead
9579 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9580 font property. If a font is scalable, set avgwidth property to 0.
9581 Set font-entity property by font_put_extra.
9582 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9583 (ffont_driver): Adjusted for the change of struct font_driver.
9584 (ftfont_spec_pattern): New function.
9585 (ftfont_list): Return a list, not vector.
9586 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9587 (ftfont_list_family): Don't downcase names.
9588 (ftfont_free_entity): Deleted.
9589 (ftfont_open): Return a font-object. Adjusted for the change of
9590 struct font. Get underline_thickness and underline_position from
9591 font property. Don't update dpyinfo->smallest_font_height and
9592 dpyinfo->smallest_char_width.
9593 (ftfont_close): Don't free `struct font'.
9594 (ftfont_has_char): Adjusted for the format change of font-entity.
9595 (ftfont_encode_char, ftfont_text_extents): Likewise.
9596
9597 * ftxfont.c (ftxfont_list): Return a list, not vector.
9598 (ftxfont_open): Return a font-object. Adjusted for the change of
9599 struct font. Get underline_thickness and underline_position from
9600 font property. Don't update dpyinfo->smallest_font_height and
9601 dpyinfo->smallest_char_width.
9602 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9603 (ftxfont_draw): Adjusted for the change of struct font.
9604
9605 * image.c (image_ascent): Don't include "charset.h". Include
9606 "character.h" and "font.h".
9607
9608 * lisp.h (enum pvec_type): New member PREV_FONT.
9609 (Fassoc_string): EXFUN it.
9610
9611 * print.c: Include font.h.
9612 (print_object): Handle font-related objects.
9613
9614 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9615 conditionals. Don't check enable_font_backend. Delete all codes
9616 used only when USE_FONT_BACKEND is not defined.
9617 (handle_auto_composed_prop): Do nothing if it->f is not on a
9618 window system. Check how many following characters can be
9619 displayed by the same font.
9620 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9621 'struct font *'.
9622 (get_char_face_and_encoding): Assign the whole encoding task to
9623 the `encode-char' method of a font driver.
9624 (fill_composite_glyph_string): Adjusted for the change of `struct
9625 face' and `struct glyph_string'.
9626 (fill_glyph_string): Likewise.
9627 (get_per_char_metric): Arguments changed.
9628 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9629 and `struct glyph_string'.
9630 (produce_stretch_glyph, calc_line_height_property)
9631 (x_produce_glyphs): Likewise.
9632
9633 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9634 conditionals. Don't check enable_font_backend. Delete all codes
9635 used only when USE_FONT_BACKEND is not defined. Use
9636 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9637 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9638 (Qp): Extern them.
9639 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9640 Deleted.
9641 (struct font_name): Deleted.
9642 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9643 (compare_fonts_by_sort_order): New function.
9644 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9645 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9646 Deleted.
9647 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9648 compare_fonts_by_sort_order.
9649 (Fx_font_family_list): Call Ffont_family_list.
9650 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9651 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9652 (face_symbolic_slant, face_symbolic_swidth)
9653 (split_font_name_into_vector, build_font_name_from_vector)
9654 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9655 (font_rescale_ratio, split_font_name, build_font_name)
9656 (free_font_names, sort_fonts, x_face_list_fonts)
9657 (face_font_available_p, sorted_font_list, cmp_font_names)
9658 (font_list_1, concat_font_list, font_list, remove_duplicates):
9659 Deleted.
9660 (Fx_list_fonts): Use Ffont_list.
9661 (LFACE_AVGWIDTH): Deleted.
9662 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9663 by FONTP.
9664 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9665 (set_lface_from_font_name): Delete it.
9666 (set_lface_from_font): Renamed from
9667 set_lface_from_font_and_fontset. Caller changed. Don't set
9668 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9669 for face.
9670 (merge_face_vectors): Copy font-spec if necessary.
9671 Clear properties of the font-spec if necessary.
9672 (merge_face_ref): Clear properties of the font-spec if necessary.
9673 (Finternal_set_lisp_face_attribute): Likewise.
9674 (set_font_frame_param): Use font_load_for_lface to load a
9675 font-object, and call Fmodify_frame_parameters with it.
9676 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9677 font name by Ffont_xlfd_name.
9678 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9679 QCslant, and QCwidth.
9680 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9681 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9682 Compare fonts by EQ.
9683 (lookup_non_ascii_face): Deleted.
9684 (face_for_font): The 2nd argument changed.
9685 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9686 Check atomic font properties by case insensitive.
9687 (realize_non_ascii_face): Set face->overstrike correctly.
9688 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9689 (dump_realized_face): Get font name from
9690 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9691
9692 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9693 conditionals. Don't check enable_font_backend. Delete all codes
9694 used only when USE_FONT_BACKEND is not defined.
9695 (xic_create_xfontset): Original code deleted and renamed from
9696 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9697 (x_make_gc): Don't set GCFont in GCs.
9698 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9699 opened by "fixed".
9700 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9701 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9702 get_font_repertory_func.
9703
9704 * xfont.c: Include <stdlib.h> and "ccl.h".
9705 (struct xfont_info): New structure.
9706 (xfont_query_font): Deleted.
9707 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9708 moved from xterm.c.
9709 (xfont_driver): Adjusted for the change of struct font_driver.
9710 (compare_font_names): New function.
9711 (xfont_list_pattern): Sort font names case insensitively. Make
9712 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9713 (xfont_list): Return a list, not vector.
9714 (xfont_match): If the font doesn't have QCname property, generate
9715 a name from the other font properties.
9716 (xfont_open): Return a font-object. Adjusted for the change of
9717 struct font. Get underline_thickness and underline_position from
9718 font property. Don't update dpyinfo->smallest_font_height and
9719 dpyinfo->smallest_char_width.
9720 (xfont_close): Don't free struct font.
9721 (xfont_prepare_face): Adjusted for the change of struct font.
9722 (xfont_done_face): Deleted.
9723 (xfont_has_char): Adjusted for the change of struct font.
9724 (xfont_encode_char, xfont_draw): Likewise.
9725 (xfont_check): New function.
9726
9727 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9728 callback function.
9729 (xftfont_match): Adjusted for the format change of font-entity.
9730 (xftfont_open): Adjusted for the format change of font-entity and
9731 font-object. Adjusted for the change of struct font. Return a
9732 font-object. Don't update dpyinfo->smallest_font_height and
9733 dpyinfo->smallest_char_width.
9734 (xftfont_close): Block input while calling XftFontClose.
9735 (xftfont_prepare_face): Don't block input while calling
9736 xftfont_get_colors. Adjusted for the change of struct font.
9737 (xftfont_shape): Return value of error case fixed.
9738
9739 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9740
9741 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9742 conditionals.
9743 (FONT_WIDTH): Return (f)->max_width.
9744 (struct x_display_info): Delete member `font'.
9745 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9746 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9747 (struct x_output): Change type of `font' to `struct font *'.
9748
9749 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9750 conditionals. Don't check enable_font_backend. Delete all codes
9751 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9752 (x_per_char_metric, x_encode_char): Deleted.
9753 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9754 (x_compute_glyph_string_overhangs): Adjusted for the change of
9755 `struct face'.
9756 (x_draw_glyph_string_foreground)
9757 (x_draw_composite_glyph_string_foreground): Likewise.
9758 (x_draw_glyph_string): Likewise. Use font->underline_position and
9759 font->underline_thickness.
9760 (x_new_font): Renamed from x_new_fontset2.
9761 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9762 (x_check_font): Call `check' method of a font driver.
9763 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9764 (x_query_font, x_get_font_repertory): Deleted.
9765 (x_find_ccl_program): Renamed and moved to xfont.c.
9766 (x_redisplay_interface): Adjusted for the change of `struct
9767 redisplay_interface'.
9768
9769 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9770 conditionals. Don't check enable_font_backend. Delete all codes
9771 used only when USE_FONT_BACKEND is not defined. Surround non-used
9772 code by "#ifdef OLD_FONT" and "endif".
9773 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9774
9775 * w32font.h (struct w32font_info): New member.
9776 (FONT_COMPAT): New macro.
9777 (w32font_open_internal): Prototype adjusted.
9778
9779 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9780 OLD_FONT" and "endif".
9781
9782 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9783 conditionals. Don't check enable_font_backend. Delete all codes
9784 used only when USE_FONT_BACKEND is not defined.
9785 (w32font_open): Return a font-object. Make a font-object by
9786 font_make_object. Adjusted for the change of struct w32font_info.
9787 (w32font_close): Don't free struct font. Adjusted for the change
9788 of struct w32font_info.
9789 (w32font_encode_char, w32font_text_extents, w32font_draw):
9790 Adjusted for the change of struct w32font_info.
9791 (w32font_draw): Likewise.
9792 (w32font_list_internal): Return a list, not vector.
9793 (w32font_open_internal): Change the 4th arg to font-object.
9794 Adjusted for the change of struct w32font_info and font-object format.
9795 (add_font_name_to_list): Don't downcase names.
9796 (w32_enumfont_pattern_entity): Make a font-entity by
9797 font_make_entity. Adjusted for the format change of font-entity.
9798 Use FONT_SET_STYLE to set a style-related font property. If a
9799 font is scalable, set avgwidth property to 0. Set font-entity
9800 property by font_put_extra.
9801 (font_matches_spec): Adjusted for the format change of font-entity.
9802 (w32_weight_table, w32_decode_weight): New variables.
9803 (w32_encode_weight): New function.
9804 (fill_in_logfont): Adjusted for the format change of font-spec.
9805 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9806 weight value.
9807 (w32font_driver): Adjusted for the change of struct font_driver.
9808
9809 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9810 conditionals. Don't check enable_font_backend. Surround non-used
9811 code by "#ifdef OLD_FONT" and "endif".
9812 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9813 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9814
9815 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9816 conditionals. Don't check enable_font_backend. Delete all codes
9817 used only when USE_FONT_BACKEND is not defined. Surround non-used
9818 code by "#ifdef OLD_FONT" and "endif".
9819
9820 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9821 (uniscribe_open): Return value changed to font-object.
9822 Adjusted for the format change of font-object.
9823 (uniscribe_otf_capability): Adjusted for the change of struct font.
9824 (add_opentype_font_name_to_list): Don't downcase names.
9825 (uniscribe_font_driver): Adjusted for the change of struct
9826 font_driver.
9827
98282008-05-13 Chong Yidong <cyd@stupidchicken.com>
9829
9830 * dispnew.c (update_frame_1): Check if tty output is still valid
9831 before flushing it.
9832
98332008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9834
9835 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9836 to Gtk+ menus.
9837
98382008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9839
9840 * dired.c (file_name_completion): Tweak the code so as to always do it
9841 in a single pass. Tighten the scope of some variables.
9842
9843 * dired.c (Qdefault_directory): New var.
9844 (file_name_completion): Use it instead of Fexpand_file_name.
9845 (syms_of_dired): Initialize it.
9846
98472008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9848
9849 * fileio.c (double_dollars): Remove dead code.
9850
98512008-05-10 Eli Zaretskii <eliz@gnu.org>
9852
9853 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9854 Mention w32-get-true-file-attributes in doc string.
9855
9856 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9857
98582008-05-09 Glenn Morris <rgm@gnu.org>
9859
9860 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9861 2008-04-23.
9862
98632008-05-09 Eli Zaretskii <eliz@gnu.org>
9864
9865 Support for reporting owner and group of each file on MS-Windows:
9866 * dired.c (stat_uname, stat_gname): New functions, with special
9867 implementation for w32.
9868 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9869
9870 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9871 (dflt_group_name): New static variable.
9872 (dflt_group): Rename from the_group.
9873 (init_user_info): Init dflt_group fields. Get user's group name
9874 from LookupAccountSid.
9875 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9876 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9877 New initialization states.
9878 (globals_of_w32): Initialize them to zero. Initialize the default
9879 group name to "None".
9880 (GetFileSecurity_Name): New global var, the name of the function
9881 to call for GetFileSecurity.
9882 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9883 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9884 (get_file_security, get_security_descriptor_owner)
9885 (get_security_descriptor_group, is_valid_sid)
9886 (get_file_security_desc, get_rid, get_name_and_id)
9887 (get_file_owner_and_group): New functions.
9888 (stat): Use get_file_security_desc and get_file_owner_and_group to
9889 report the owner and primary group of each file. Don't ignore the
9890 high 32 bits of file's size, now that st_size is 64-bit wide.
9891 Fix test when to get true file attributes.
9892 (init_user_info): Use get_rid instead of equivalent inline code.
9893 (fstat): Don't ignore the high 32 bits of file's size.
9894
98952008-05-09 Chong Yidong <cyd@stupidchicken.com>
9896
9897 * image.c (png_load): Use correct bit-depth for setting background
9898 color.
9899
99002008-05-08 Eli Zaretskii <eliz@gnu.org>
9901
9902 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9903 epa-hook.elc.
9904
99052008-05-08 Juanma Barranquero <lekktu@gmail.com>
9906
9907 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9908
99092008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9910
9911 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9912 because the original parameters are in pure storage now.
9913 (mac_window): Remove unused params. Update callers.
9914
99152008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9916
9917 * lread.c (substitute_object_recurse): Use lower-level primitives.
9918 Don't signal errors when traversing sub-char-tables.
9919 Don't loop over all the possible characters when traversing char-tables.
9920
9921 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9922 just like we do in print.c.
9923
99242008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9925
9926 * minibuf.c (Ftry_completion): Remove code left over from when we used
9927 scmp instead of Fcompare_strings.
9928
99292008-05-04 Juanma Barranquero <lekktu@gmail.com>
9930
9931 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9932
99332008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9934
9935 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9936 Create bitmap context in native byte order.
9937
9938 * macterm.c (XDrawLine)
9939 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9940 context in native byte order.
9941
99422008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9943
9944 * config.in: Regenerate.
9945
9946 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9947 New definitions for Image I/O support.
9948 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9949 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9950 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9951 (mac_data_provider_release_data, image_load_image_io)
9952 [USE_MAC_IMAGE_IO]: New functions.
9953 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9954 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9955 (init_image_func_pointer) [MAC_OSX]: Remove function.
9956 (image_load_quartz2d) [MAC_OSX]: Check availability of
9957 CGImageCreateWithPNGDataProvider at compile time.
9958 Use lowercase `false' for boolean constant.
9959 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9960 Use image_load_image_io.
9961 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9962 Don't check MyCGImageCreateWithPNGDataProvider.
9963 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9964 Don't call init_image_func_pointer.
9965
9966 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9967
9968 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9969 Make variable non-static.
9970 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9971 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9972
9973 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9974 (RED_FROM_ULONG): Mask off higher bits.
9975 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9976
9977 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9978 Include AvailabilityMacros.h.
9979 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9980 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9981
99822008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
9983
9984 * chartab.c (Fset_char_table_range): If range is t, really set all
9985 chars to that value.
9986
99872008-05-03 Eli Zaretskii <eliz@gnu.org>
9988
9989 * dired.c (Ffile_attributes): Don't allow the device number become
9990 negative.
9991
99922008-05-02 Daiki Ueno <ueno@unixuser.org>
9993
9994 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9995
99962008-05-02 Juri Linkov <juri@jurta.org>
9997
9998 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9999 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10000 DEFAULT argument as a list of default values in docstrings.
10001
100022008-05-01 Chong Yidong <cyd@stupidchicken.com>
10003
10004 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10005
100062008-05-01 Martin Rudalics <rudalics@gmx.at>
10007
10008 * dispnew.c (change_frame_size_1): Preserve small windows when
10009 shrinking frames by calling set_window_height|width with third
10010 arg 2.
10011
10012 * window.h (struct window): Replace field too_small_ok by field
10013 resize_proportionally.
10014
10015 * window.c (make_window): Initialize resize_proportionally.
10016 (enlarge_window): Temporarily set resize_proportionally to make
10017 sure that shrink_windows does scale the window proportionally.
10018 (shrink_windows): When window has resize_proportionally set try
10019 to shrink it proportionally by stealing from other windows.
10020 (struct saved_window, Fset_window_configuration)
10021 (compare_window_configurations): Handle resize_proportionally.
10022 (WINDOW_TOTAL_SIZE): New macro.
10023 (window_min_size, shrink_windows, size_window): Use it.
10024 (check_min_window_sizes): Remove. Invalid values of
10025 window-min-height|width are handled by window_min_size_2 now.
10026 (size_window, Fsplit_window, enlarge_window)
10027 (adjust_window_trailing_edge, grow_mini_window): Don't call
10028 check_min_window_sizes.
10029 (window_min_size_2, window_min_size_1, window_min_size):
10030 New argument safe_p for retrieving "safe" minimum sizes.
10031 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10032 (adjust_window_trailing_edge, grow_mini_window):
10033 Adjust arguments of window_min_size... functions.
10034 (shrink_windows): Argument min_size removed. New argument
10035 safe_p allows shrinking windows to their safe minimum sizes.
10036 Calculate minimum size and decide whether a window shall be
10037 deleted for each window individually.
10038 (size_window): When nodelete_p equals 2, tell shrink_windows to
10039 delete windows only if their new minimum size is no more safe.
10040 (shrink_window_lowest_first): Call window_min_size_1 to make
10041 sure to preserve modeline of bottom-most window when resizing
10042 the minibuffer.
10043 (Fset_window_configuration, Fcurrent_window_configuration)
10044 (compare_window_configurations): Do not handle
10045 window-min-height|width any more.
10046 (syms_of_window): Clarify window-min-height|width doc-strings.
10047
100482008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10049
10050 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10051 some more. Copy some of the code from Ftry_completions.
10052 Remove special case code that dates back to initial revision when the
10053 slash was only added when necessary and that can't trigger nowadays.
10054
100552008-04-27 Kenichi Handa <handa@m17n.org>
10056
10057 * font.c (font_prop_validate): Signal `error' instead of `font'.
10058
100592008-04-29 Jason Rumney <jasonr@gnu.org>
10060
10061 * w32fns.c (Fw32_battery_status): New defun.
10062 (syms_of_w32fns): Defsubr it.
10063
100642008-04-28 Andreas Schwab <schwab@suse.de>
10065
10066 * dired.c (file_name_completion): Fix another mixing of encoded
10067 and decoded names.
10068
100692008-04-28 Juanma Barranquero <lekktu@gmail.com>
10070
10071 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10072
100732008-04-27 Juanma Barranquero <lekktu@gmail.com>
10074
10075 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10076
100772008-04-27 Andreas Schwab <schwab@suse.de>
10078
10079 * dired.c (file_name_completion): Fix inappropriate mixing of
10080 encoded and decoded names.
10081
10082 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10083
10084 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10085
100862008-04-26 Eli Zaretskii <eliz@gnu.org>
10087
10088 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10089 2008-03-31, it's not needed anymore with `struct stat' definition
10090 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10091 for the same reasons.
10092
100932008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10094
10095 * m/sparc.h: Additional redefinitions for GNU/Linux.
10096
100972008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10098
10099 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10100 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10101 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10102 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10103 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10104 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10105 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10106 Likewise.
10107
10108 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10109 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10110 (mac_ax_number_of_characters): Add externs.
10111 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10112 [USE_MAC_TSM]: Likewise.
10113 (mac_handle_text_input_event) [MAC_OSX]:
10114 Handle kEventTextInputOffsetToPos for no active input area case.
10115 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10116 (mac_handle_document_access_event)
10117 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10118 (install_application_handler) [MAC_OSX]: Register handlers for
10119 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10120 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10121 Register mac_handle_document_access_event.
10122
10123 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10124 Make functions non-static.
10125
101262008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10127
10128 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10129 (read_file_name_completion_ignore_case, insert_default_directory)
10130 (Qdefault_directory): Move to minibuffer.el.
10131 (Fread_file_name): Call the new `read-file-name' instead.
10132
101332008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10134
10135 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10136 Make function non-static.
10137 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10138 Remove function.
10139 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10140 Move to mactoolbox.c.
10141 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10142
10143 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10144 (mac_rect_make): New macro.
10145
10146 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10147 instead of float.
10148 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10149 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10150 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10151 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10152 CGRectMake.
10153 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10154 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10155 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10156 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10157 instead of WindowRef in argument type.
10158 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10159 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10160 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10161 instead of DISPLAY. All uses changed.
10162 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10163 (x_calc_absolute_position): Simplify so as not to use
10164 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10165
10166 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10167 instead of WindowRef in argument type.
10168 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10169 [TARGET_API_MAC_CARBON]: Remove externs.
10170 (create_apple_event, mac_event_parameters_to_lisp)
10171 [TARGET_API_MAC_CARBON]: Add externs.
10172
10173 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10174 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10175 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10176 is clicked.
10177 (x_activate_menubar): Remove extern for saved_menu_event_location.
10178 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10179 Move from mac.c.
10180
101812008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10182
10183 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10184 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10185
101862008-04-23 Jason Rumney <jasonr@gnu.org>
10187
10188 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10189 attributes only for local files.
10190
10191 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10192 default to Qlocal.
10193
101942008-04-22 Juri Linkov <juri@jurta.org>
10195
10196 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10197 read-buffer-to-switch instead of using the letter "B".
10198
101992008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10200
10201 * fileio.c (Qdefault_directory): New variable.
10202 (Fread_file_name): Use it to pass `dir' to the completion functions.
10203
102042008-04-20 Chong Yidong <cyd@stupidchicken.com>
10205
10206 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10207
102082008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10209
10210 * keyboard.c (Vpre_help_message): Remove.
10211 (show_help_echo): Remove default C code.
10212
10213 * dired.c (directory_files_internal, file_name_completion):
10214 Only call ENCODE_FILE if the string is indeed decoded.
10215
102162008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10217
10218 * Makefile.in (TOOLKIT_DEFINES): Remove.
10219 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10220
102212008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10222
10223 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10224 (mactoolbox.o): New target.
10225
10226 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10227 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10228
10229 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10230 Use mac_set_frame_window_background instead of XSetWindowBackground.
10231 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10232 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10233 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10234 instead of SetWindowTitleWithCFString.
10235 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10236 Move function to mactoolbox.c.
10237 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10238 Use mac_set_window_modified instead of SetWindowModified.
10239 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10240 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10241 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10242 FrontNonFloatingWindow. Use mac_activate_window instead of
10243 ActivateWindow. Use mac_active_non_floating_window instead of
10244 ActiveNonFloatingWindow.
10245 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10246 Use mac_show_hourglass and mac_hide_hourglass.
10247 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10248 instead of GetGlobalMouse.
10249 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10250 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10251 Use mac_bring_window_to_front instead of BringToFront.
10252 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10253 mactoolbox.c.
10254 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10255 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10256 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10257 mactoolbox.c.
10258
10259 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10260 (XtPointer): Move typedef from macmenu.c.
10261 (enum button_type): Move enum from macmenu.c.
10262 (widget_value): Move typedef from macmenu.c.
10263 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10264 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10265 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10266 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10267 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10268 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10269 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10270 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10271 (Selection): Move typedef from macselect.c.
10272 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10273 macterm.c.
10274 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10275 (mac_is_window_collapsed, mac_bring_window_to_front)
10276 (mac_send_window_behind, mac_hide_window, mac_show_window)
10277 (mac_collapse_window, mac_front_non_floating_window)
10278 (mac_active_non_floating_window, mac_activate_window)
10279 (mac_move_window_structure, mac_move_window, mac_size_window)
10280 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10281
10282 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10283 (enum mac_menu_kind): Move enum to mactoolbox.c.
10284 (min_menu_id): Move variable to mactoolbox.c.
10285 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10286 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10287 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10288 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10289 [TARGET_API_MAC_CARBON]: Likewise.
10290 (XtPointer): Move typedef to macgui.h.
10291 (enum button_type): Move enum to macgui.h.
10292 (widget_value): Move typedef to macgui.h.
10293 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10294 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10295 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10296 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10297 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10298 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10299 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10300 (popup_activated_flag): Make variable non-static.
10301 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10302 (add_menu_item, fill_menu, dispose_menus):
10303 Move functions to mactoolbox.c.
10304 (restore_show_help_function, menu_target_item_handler)
10305 (install_menu_target_item_handler, mac_handle_dialog_event)
10306 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10307 [TARGET_API_MAC_CARBON]: Likewise.
10308 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10309 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10310 (find_and_call_menu_selection, name_is_separator): Make function
10311 non-static.
10312 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10313 to mactoolbox.c.
10314 (set_frame_menubar): Don't call install_menu_quit_handler.
10315 (menu_item_selection): New variable.
10316 (mac_menu_show): Use create_and_show_popup_menu.
10317 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10318 selection but set variable menu_item_selection. All uses changed.
10319 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10320 Call install_menu_quit_handler. Move to mactoolbox.c.
10321
10322 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10323 (Selection): Move typedef to macgui.h.
10324 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10325 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10326 Make variables non-static.
10327 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10328 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10329 Make functions non-static.
10330 (Vmac_service_selection) [MAC_OSX]: Likewise.
10331 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10332 (mac_valid_selection_target_p, mac_clear_selection)
10333 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10334 (mac_put_selection_value, mac_selection_has_target_p)
10335 (mac_get_selection_value, mac_get_selection_target_list)
10336 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10337 Move functions to mactoolbox.c.
10338 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10339 Likewise.
10340 (copy_scrap_flavor_data, mac_handle_service_event)
10341 (install_service_handler) [MAC_OSX]: Likewise.
10342 (syms_of_macselect) <Vmac_dnd_known_types>:
10343 Use mac_dnd_default_known_types.
10344
10345 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10346 Move to mactoolbox.c.
10347 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10348 (Fx_selection_owner_p): Add EXFUN.
10349 (install_window_handler, remove_window_handler, XSetWindowBackground):
10350 Remove externs.
10351 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10352 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10353 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10354 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10355 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10356 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10357 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10358 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10359 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10360 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10361 (mac_valid_selection_target_p, mac_clear_selection)
10362 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10363 (mac_put_selection_value, mac_selection_has_target_p)
10364 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10365 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10366 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10367 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10368 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10369 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10370 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10371 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10372 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10373
10374 * mactoolbox.c: New file.
10375
103762008-04-18 Jason Rumney <jasonr@gnu.org>
10377
10378 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10379
103802008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10381
10382 * character.c (Fmultibyte_char_to_unibyte):
10383 Return latin1 chars unchanged.
10384
10385 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10386 relocated if it points to `name'.
10387
103882008-04-17 Kenichi Handa <handa@m17n.org>
10389
10390 * data.c (Faset): Allow setting a multibyte character in an
10391 ASCII-only unibyte string.
10392
10393 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10394
103952008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10396
10397 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10398 done in config.h.
10399
104002008-04-16 Juanma Barranquero <lekktu@gmail.com>
10401
10402 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10403 (Fchar_direction): Add usage in the docstring.
10404
104052008-04-15 Chong Yidong <cyd@stupidchicken.com>
10406
10407 * keyboard.c (read_key_sequence): Remove always-true checks.
10408
104092008-04-14 Jason Rumney <jasonr@gnu.org>
10410
10411 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10412 compatibility struct, for better underline positioning.
10413
104142008-04-13 David Hansen <david.hansen@gmx.net>
10415
10416 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10417 string.
10418
104192008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10420
10421 * m/hp800.h (XUINT, XSET): Remove.
10422
104232008-04-12 Juanma Barranquero <lekktu@gmail.com>
10424
10425 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10426 previous change.
10427
104282008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10429
10430 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10431 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10432
104332008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10434
10435 * keymap.h (map_keymap_canonical): Declare.
10436 * xmenu.c (single_keymap_panes): Use it.
10437
104382008-04-11 Glenn Morris <rgm@gnu.org>
10439
10440 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10441 set the target's value to that of the alias.
10442
104432008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10444
10445 * term.c (set_tty_color_mode): Left over typo.
10446
104472008-04-10 Michael Albinus <michael.albinus@gmx.de>
10448
10449 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10450 only after check for file name handler functions. Signal, when
10451 native functionality is not supported.
10452 (syms_of_fileio): Declare it unconditionally.
10453
104542008-04-10 Jason Rumney <jasonr@gnu.org>
10455
10456 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10457 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10458
10459 * w32.c (logon_network_drive): Also logon to remote drives that
10460 are mapped to drive letters.
10461
104622008-04-10 Glenn Morris <rgm@gnu.org>
10463
10464 * xdisp.c (truncate-partial-width-windows): Doc fix.
10465
104662008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10467
10468 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10469 Move functions to minibuffer.el.
10470 (syms_of_fileio): Don't declare them.
10471
104722008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10473
10474 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10475 (syms_of_minibuf): Remove its initialization.
10476
10477 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10478
104792008-04-09 Juanma Barranquero <lekktu@gmail.com>
10480
10481 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10482
104832008-04-09 Jason Rumney <jasonr@gnu.org>
10484
10485 * makefile.w32-in (distclean): Delete makefile too.
10486 (maintainer-clean): New target.
10487
10488 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10489
10490 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10491 for new font backend and composite cases.
10492
104932008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10494
10495 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10496 Most of the code moved to run_timers.
10497 (do_pending_atimers): Call run_timers.
10498 (run_timers): New function.
10499
10500 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10501 run atimers.
10502
10503 * process.c (wait_reading_process_output): The same as above.
10504
105052008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10506
10507 * minibuf.c (last_exact_completion): Remove variable.
10508 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10509 (complete_and_exit_1, complete_and_exit_2)
10510 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10511 (Fdisplay_completion_list, display_completion_list_1)
10512 (Fminibuffer_completion_help, Fself_insert_and_exit)
10513 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10514 minibuffer.el.
10515 (syms_of_minibuf): Remove corresponding initializations.
10516
10517 * keyboard.c (Qdeactivate_mark): New var.
10518 (command_loop_1): Use it to call `deactivate-mark'.
10519 (syms_of_keyboard): Initialize it.
10520
10521 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10522 to another frame.
10523 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10524 Don't call set_tty_color_mode.
10525 (store_frame_param): Reset previous_frame rather than call
10526 set_tty_color_mode.
10527 * term.c (set_tty_color_mode): Rewrite.
10528 * dispextern.h (set_tty_color_mode): New type.
10529 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10530
105312008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10532
10533 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10534 for generic chars, which do not exist any more in emacs-unicode.
10535
105362008-04-08 Michael Albinus <michael.albinus@gmx.de>
10537
10538 * coding.c (detect_coding_emacs_mule)
10539 (Ffind_operation_coding_system): Fix typo.
10540
105412008-04-08 Jason Rumney <jasonr@gnu.org>
10542
10543 * w32uniscribe.c (SNAME): Extract only symbol name.
10544
10545 * w32font.h (struct w32_metric_cache): New struct.
10546 (w32font_info): Use it.
10547 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10548 (CACHE_BLOCKSIZE): New constants.
10549
10550 * w32font.c (Qja, Qko, Qzh): New symbols.
10551 (syms_of_w32font): Initialise them.
10552 (font_matches_spec): Use them to filter by language.
10553 (recompute_cached_metrics): Remove function.
10554 (compute_metrics, clear_cached_metrics): New functions.
10555 (w32font_encode_char): Use them to manage metric cache.
10556 (w32font_text_extents): Cache metrics for all glyphs on demand.
10557 Delay converting glyph indices to WORD until needed.
10558 (w32font_open_internal): Initialize metric cache to empty.
10559 (registry_to_w32_charset): Charset should always be a symbol.
10560 (fill_in_logfont, list_all_matching_fonts): Family should
10561 always be a symbol.
10562
105632008-04-06 Jason Rumney <jasonr@gnu.org>
10564
10565 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10566 Give up if glyph indices not supported. Use uniscribe obtained
10567 ABC widths for individual metrics. Map glyph clusters back to
10568 characters using fClusterStart flag. Return number of glyphs
10569 produced, not chars processed.
10570 (uniscribe_shape): Map char at FROM to current glyph.
10571
105722008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10573
10574 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10575 Use SetMenuItemHierarchicalMenu.
10576
105772008-04-05 Jason Rumney <jasonr@gnu.org>
10578
10579 * image.c (pbm_load): Allow color values up to 65535.
10580 Throw an error if max_color_idx is outside the supported range.
10581 Report an error when image size is invalid.
10582 Read two bytes at a time when raw images have max_color_idx above 255.
10583
105842008-04-05 Eli Zaretskii <eliz@gnu.org>
10585
10586 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10587 cFileName a file name that includes `?' characters, use the 8+3
10588 alias in cAlternateFileName instead.
10589
105902008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10591
10592 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10593 append "CCL: Quitted" when the CCL program is quitted.
10594 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10595
10596 * ccl.h (struct ccl_program): New member quit_silently.
10597
105982008-04-05 Chong Yidong <cyd@stupidchicken.com>
10599
10600 * search.c (compile_pattern_1): Treat non-nil and non-string of
10601 search-spaces-regexp as nil.
10602
10603 * minibuf.c (Fassoc_string): Tweak docstring.
10604
106052008-04-05 Eli Zaretskii <eliz@gnu.org>
10606
10607 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10608 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10609 2008-03-14 to force inode be positive.
10610
10611 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10612 _S_* ones, since we now use our own sys/stat.h.
10613 (stat, fstat): Don't mangle the inode number.
10614 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10615
106162008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10617
10618 * frame.h (struct frame): Give one more bit to `visible' since we use
10619 values larger than 1 to indicate obscured frames on ttys.
10620
10621 * keymap.c (Qkeymap_canonicalize): New var.
10622 (Fmap_keymap_internal): New fun.
10623 (describe_map): Use keymap-canonicalize.
10624
10625 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10626 (Fundo_boundary): Set them.
10627 (syms_of_undo): Initialize them.
10628 (record_point): Use them instead of last_point_position*.
10629 (last_undo_buffer): Change type.
10630
106312008-04-04 Jason Rumney <jasonr@gnu.org>
10632
10633 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10634 (recompute_cached_metrics): Don't set ascent and descent per char.
10635
10636 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10637 (uniscribe_check_otf): Add GC protection before consing.
10638 Rearrange loop for counting features.
10639
106402008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10641
10642 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10643 buffer with byte-size of source buffer.
10644
106452008-04-03 Chong Yidong <cyd@stupidchicken.com>
10646
10647 * callint.c (Fcall_interactively): Handle temporary region even
10648 when shift-select-mode is off.
10649
106502008-04-03 Jason Rumney <jasonr@gnu.org>
10651
10652 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10653
106542008-04-03 Kenichi Handa <handa@m17n.org>
10655
10656 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10657 (CATEGORY_MASK_UTF_16): Likewise.
10658 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10659 binary file.
10660 (detect_coding): Add null-byte detection for a binary file.
10661 (detect_coding_system): Likewise.
10662
106632008-04-03 Jason Rumney <jasonr@gnu.org>
10664
10665 * w32uniscribe.c: New file.
10666
10667 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10668
10669 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10670
10671 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10672 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10673 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10674 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10675 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10676 (Qphonetic): New symbols.
10677 (syms_of_w32font): Initialize them.
10678 (font_supported_scripts): Use them.
10679 (w32font_list_family): List all charsets.
10680 (w32font_text_extents, recompute_cached_metrics): Fix metric
10681 calculations.
10682 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10683 Give opentype fonts their own format.
10684 (font_matches_spec): New arguments backend and logfont.
10685 Handle :otf spec for uniscribe backend.
10686 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10687 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10688
10689 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10690 font backend.
10691 (globals_of_w32fns): Initialize uniscribe font backend.
10692
10693 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10694 dependencies.
10695 (w32uniscribe.$(O)): New file to build.
10696 (FONT_OBJ): Include w32uniscribe.$(O).
10697 (LIBS): Add uniscribe libraries.
10698
10699 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10700
107012008-04-02 Chong Yidong <cyd@stupidchicken.com>
10702
10703 * callint.c (Vshift_select_mode): New var.
10704 (Finteractive): Document new ^ spec.
10705 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10706 is present.
10707
10708 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10709 (command_loop_1): Avoid running the direct display versions of
10710 forward-char and backward-char if shift-selection may occur.
10711 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10712 shift-translation takes place.
10713
10714 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10715 avoid clobbering by define-minor-mode.
10716
10717 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10718 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10719
10720 * syntax.c (Fforward_word): Add ^ interactive spec.
10721
10722 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10723 (Fscroll_right): Add ^ interactive spec.
10724
107252008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10726
10727 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10728
10729 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10730
10731 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10732
107332008-03-31 Juri Linkov <juri@jurta.org>
10734
10735 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10736
107372008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10738
10739 * gtkutil.c (xg_set_geometry): Fix indentation.
10740 (xg_resize_outer_widget): Remove.
10741 (x_wm_size_hint_off): Fix indentation.
10742 (xg_frame_set_char_size): Call flush_and_sync after
10743 gtk_window_resize.
10744 (x_wm_set_size_hint): Pass NULL as geometry window to
10745 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10746 Add menu bar and tool bar height to base height.
10747 (xg_update_frame_menubar, free_frame_menubar)
10748 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10749 (update_frame_tool_bar, free_frame_tool_bar):
10750 Change xg_resize_outer_widget to xg_frame_set_char_size.
10751
107522008-03-30 Michael Albinus <michael.albinus@gmx.de>
10753
10754 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10755 (Fdbus_call_method): New parameter TIMEOUT.
10756 (dbus-send-signal): Optimize UNGCPRO call.
10757
107582008-03-29 Juri Linkov <juri@jurta.org>
10759
10760 * window.c (Fdisplay_buffer): Move call to
10761 Vsplit_window_preferred_function out of conditions that check
10762 if window is eligible for vertical splitting.
10763 When Vsplit_window_preferred_function is non-nil, call it and use
10764 its non-nil return value as window. Otherwise, continue doing
10765 vertical splitting using Fsplit_window with arg horflag=nil.
10766 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10767 default value from `split-window' to nil.
10768
107692008-03-29 Juri Linkov <juri@jurta.org>
10770
10771 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10772 for interactive code letters 'b' and 'B'.
10773
107742008-03-29 Eli Zaretskii <eliz@gnu.org>
10775
10776 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10777 multibyte string.
10778
107792008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10780
10781 * keyboard.c (pending_funcalls): New var.
10782 (timer_check): Run it.
10783 (syms_of_keyboard): Initialize it.
10784 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10785 (Vdelete_terminal_functions): New vars.
10786 (syms_of_terminal): Initialize them.
10787 (Fdelete_terminal): Run delete-terminal-functions.
10788 * xdisp.c (safe_eval): Rewrite.
10789 (safe_call2): New fun.
10790 * frame.c (Qdelete_frame_functions): New var.
10791 (syms_of_frame): Initialize it.
10792 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10793 * lisp.h (safe_call2, pending_funcalls): Declare.
10794
107952008-03-28 Andreas Schwab <schwab@suse.de>
10796
10797 * indent.c (Fmove_to_column): Move declaration before statements.
10798
107992008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10800
10801 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10802 (struct frame): Use bit fields for boolean vars.
10803
10804 * process.c (server_accept_connection): Simplify naming.
10805 (emacs_get_tty_pgrp): Use SDATA.
10806
10807 * coding.c (decode_coding_object): Fix last change.
10808
108092008-03-27 Jason Rumney <jasonr@gnu.org>
10810
10811 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10812
108132008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10814
10815 * charset.c (Fdefine_charset_internal): Change the way of
10816 registering charsets in Vcharset_order_list.
10817 (syms_of_charset): Make the charset `eight-bit' supplementary.
10818
108192008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10820
10821 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10822 operations, to avoid having the difference between pointers
10823 overflow.
10824
108252008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10826
10827 * indent.c (check_display_width): New fun.
10828 (scan_for_column): Use it.
10829
10830 * data.c (syms_of_data): Mark most-positive-fixnum and
10831 most-negative-fixnum as constants.
10832
10833 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10834
10835 * indent.c (scan_for_column): Extract from current_column_1.
10836 Merge with the same code from Fmove_to_column.
10837 (current_column_1, Fmove_to_column): Use it.
10838
108392008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10840
10841 * keymap.c (map_keymap_internal): New fun.
10842 (map_keymap): Use it.
10843 (Fmap_keymap_internal): New fun.
10844 (Fmap_keymap): Remove left-out test from before make_save_value.
10845
10846 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10847
10848 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10849 Use XCAR/XCDR.
10850
10851 * process.h (struct Lisp_Process): Remove filter_multibyte.
10852 * process.c (QCfilter_multibyte): Remove.
10853 (setup_process_coding_systems): Don't use filter_multibyte.
10854 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10855 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10856 (Fset_process_filter_multibyte): Change the coding-system to
10857 approximate the previous behavior.
10858 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10859 coding-system.
10860
10861 * coding.c (decode_coding_object): When not decoding into a buffer,
10862 obey the coding system's preference of (uni|multi)byte.
10863
108642008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10865
10866 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10867 every char is changed and has a different byte-length.
10868 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10869 Fix int -> EMACS_INT.
10870
108712008-03-23 David Hansen <david.hansen@gmx.net>
10872
10873 * dbusbind.c (xd_read_message): Remove extra copying of message
10874 strings. Check for NULL `interface' or `member'.
10875
108762008-03-22 Eli Zaretskii <eliz@gnu.org>
10877
10878 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10879 cFileName a file name that includes `?' characters, use the 8+3
10880 alias in cAlternateFileName instead.
10881
108822008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10883
10884 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10885
108862008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10887
10888 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10889 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10890 work on current_buffer only instead (that was already the case
10891 for some of the code anyway).
10892 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10893 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10894 (SET_PT, SET_PT_BOTH): Adjust.
10895 * intervals.h (set_point, temp_set_point, set_point_both)
10896 (temp_set_point_both): Remove redundant declarations.
10897
108982008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10899
10900 * fileio.c (Finsert_file_contents):
10901 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10902 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10903 when buffer != current_buffer anyway.
10904
109052008-03-20 Andreas Schwab <schwab@suse.de>
10906
10907 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10908 as default.
10909
109102008-03-19 Jason Rumney <jasonr@gnu.org>
10911
10912 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10913 (syms_of_w32fns): Initialize them.
10914 (HOURGLASS_ID): New constant.
10915 (x_window_to_frame): Don't check hourglass_window.
10916 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10917 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10918 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10919 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10920 Only change the cursor if hourglass is not active.
10921 (Fx_create_frame): Initialize frame's current_cursor.
10922 (hourglass_atimer): Remove.
10923 (hourglass_started): New function.
10924 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10925 (show_hourglass): Adapt to w32, changing argument to frame.
10926
10927 * w32term.h (struct w32_output): Remove hourglass_window.
10928 Add current_cursor.
10929
10930 * eval.c (call_debugger, Fsignal):
10931 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10932 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10933 (Fexecute_extended_command, cancel_hourglass_unwind):
10934 * minibuf.c (read_minibuf):
10935 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10936
109372008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10938
10939 * window.c (run_funs): New fun.
10940 (run_window_configuration_change_hook): Use it to run the buffer-local
10941 and the global part of the hook.
10942
10943 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10944 (unwind_format_mode_line): Restore selected window.
10945 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10946
109472008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10948
10949 * editfns.c (Fchar_equal): Check they are valid characters.
10950
10951 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10952
109532008-03-17 Andreas Schwab <schwab@suse.de>
10954
10955 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10956 against a charset.
10957
10958 * lisp.h (Fbuffer_list): Declare.
10959
109602008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 10961
aac0c6e3
MR
10962 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10963 handlebox_widget is != 0.
10964
109652008-03-16 Juri Linkov <juri@jurta.org>
10966
10967 * callint.c (Fcall_interactively): For interactive code letters
10968 'b' and 'B' put the buffer list into the list of default "future"
10969 values of the minibuffer.
10970
109712008-03-16 Andreas Schwab <schwab@suse.de>
10972
10973 * keyboard.c (read_key_sequence): Fix downcasing of letters with
10974 modifiers.
10975
10976 * regex.c (re_match_2_internal): Correct matching of a charset
10977 against latin-1 characters.
10978
109792008-03-16 Kenichi Handa <handa@m17n.org>
10980
10981 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10982 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10983 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10984 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10985 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10986 CHAR_STRING_ADVANCE.
10987 (produce_chars): Fix for the case that the source and the
10988 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
10989 instead of CHAR_STRING_ADVANCE.
10990 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10991 STRING_CHAR_ADVANCE.
10992
109932008-03-15 Andreas Schwab <schwab@suse.de>
10994
10995 * regex.c (re_match_2_internal): Correct matching of eight bit
10996 characters in unibyte strings.
10997
109982008-03-15 Martin Rudalics <rudalics@gmx.at>
10999
11000 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11001 at end of range when it coincides with the end of the buffer.
11002
110032008-03-14 Eli Zaretskii <eliz@gnu.org>
11004
11005 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11006
11007 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11008
110092008-03-14 Jason Rumney <jasonr@gnu.org>
11010
11011 * editfns.c (initial_tz): New variable.
11012 (syms_of_editfns): Initialize it.
11013 (Fset_time_zone_rule): Set it when first called.
11014 Use it when TZSTRING is nil.
11015
11016 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11017 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11018 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11019 (globals_of_w32fns): Initialize them.
11020 (compute_tip_xy): Use them to position tooltips.
11021
110222008-03-14 Glenn Morris <rgm@gnu.org>
11023
11024 * emacs.c (main): Revert previous change.
11025 (standard_args): Revert -internal-script back to -scriptload,
11026 and remove the long-option form.
11027
110282008-03-13 Glenn Morris <rgm@gnu.org>
11029
11030 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11031 Remove option -enable-font-backend.
11032
110332008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11034
11035 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11036
110372008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11038
11039 * xterm.c (x_connection_closed): For GTK: If this is the last
11040 terminal just exit without closing the display.
11041
110422008-03-11 Jason Rumney <jasonr@gnu.org>
11043
11044 * w32font.c (w32font_full_name): Use floor to round.
11045
f0131492 110462008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11047
11048 * sound.c (alsa_configure): Declare vol at beginning of block.
11049
11050 * fontset.c (Ffontset_info): Remove extra semicolon.
11051
110522008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11053
11054 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11055 size of resulting string.
11056
110572008-03-10 Jason Rumney <jasonr@gnu.org>
11058
11059 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11060
110612008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11062
11063 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11064 Don't pretend as if characters with display property haven't been
11065 consumed for string-replacing-string case.
11066
110672008-03-08 Kim F. Storm <storm@cua.dk>
11068
11069 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11070 (get_next_display_element, next_element_from_string)
11071 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11072
110732008-03-08 Andreas Schwab <schwab@suse.de>
11074
11075 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11076
110772008-03-06 Jason Rumney <jasonr@gnu.org>
11078
11079 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11080 when charset not specified. Only translate ANSI to unicode when
11081 font_type is truetype.
11082 (w32font_coverage_ok): New function.
11083 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11084
110852008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11086
11087 * lread.c (Fread_char): Resolve modifiers.
11088 (Fread_char_exclusive): Likewise.
11089
11090 * character.c (char_resolve_modifier_mask): New function.
11091 (char_string): Use char_resolve_modifier_mask.
11092 (Fchar_resolve_modifiers): New function.
11093 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11094 function.
11095
110962008-03-04 Jason Rumney <jasonr@gnu.org>
11097
11098 * makefile.w32-in: Always include w32font.c in the build.
11099 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11100
111012008-03-04 Andreas Schwab <schwab@suse.de>
11102
11103 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11104 (versionclean): Likewise.
11105
111062008-03-04 Juanma Barranquero <lekktu@gmail.com>
11107
11108 * .cvsignore: Add oo.
11109
111102008-03-03 Andreas Schwab <schwab@suse.de>
11111
11112 * coding.c (decode_coding_object): Inhibit gap shrinking while
11113 decoding in place.
11114
111152008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11116
11117 * w32term.c: Remove unused include "gnu.h".
11118 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11119
11120 * gnu.h: Rename to ...
11121 * emacs-icon.h: ... this.
11122 * xterm.c: Use emacs-icon.h instead of gnu.h.
11123 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11124
111252008-03-03 Juanma Barranquero <lekktu@gmail.com>
11126
11127 * w32font.c: Include math.h.
11128
111292008-03-03 Jason Rumney <jasonr@gnu.org>
11130
11131 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11132 Compute options separately.
11133 (w32font_open_internal): Set glyph_idx before caching metrics.
11134
11135 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11136 Define if system headers don't.
11137 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11138 (w32font_encode_char): Don't declare here.
11139
11140 * w32font.c (Quniscribe, QCformat): New symbols.
11141 (syms_of_w32font): Define them.
11142 (w32font_has_char): Indicate uncertainty.
11143 (w32font_encode_char): Encode as glyph point. Make static.
11144 (recompute_cached_metrics): New function.
11145 (w32font_open_internal): Use it. Set font to use glyph points
11146 initially. Set format based on type of font.
11147 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11148 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11149 on it. Set format based on information available here.
11150 (add_font_entity_to_list): Identify backend based on opentype_only.
11151
111522008-03-02 Andreas Schwab <schwab@suse.de>
11153
11154 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11155
11156 * coding.c (decode_coding_big5, produce_chars):
11157 Fix typos in last change.
11158
111592008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11160
11161 * gnu.h: New icon.
11162
111632008-03-02 Kenichi Handa <handa@m17n.org>
11164
11165 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11166 `dos', don't decode '\r' if that is the last in the source.
11167 (decode_coding_utf_16, decode_coding_emacs_mule)
11168 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11169 (decode_coding_raw_text, decode_coding_charset): Likewise.
11170 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11171
111722008-03-01 Jason Rumney <jasonr@gnu.org>
11173
11174 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11175
111762008-03-01 Kim F. Storm <storm@cua.dk>
11177
11178 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11179
111802008-03-01 Jason Rumney <jasonr@gnu.org>
11181
11182 * w32font.c (w32font_full_name): New function.
11183 (w32font_open_internal): Use it.
11184
111852008-03-01 Kim F. Storm <storm@cua.dk>
11186
11187 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11188
111892008-03-01 Jason Rumney <jasonr@gnu.org>
11190
11191 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11192
111932008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11194
11195 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11196 xg_frame_resized when the event is for the edit widget.
11197
11198 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11199
11200 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11201 set_char_size.
11202 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11203 operations on widgets here. Just set frame size if needed.
11204 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11205 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11206 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11207 the whole frame.
11208 (xg_create_tool_bar): Move attachment of the tool bar to
11209 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11210 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11211
112122008-03-01 Jason Rumney <jasonr@gnu.org>
11213
11214 * w32fns.c (w32_msg_pump): Disable debug code.
11215
112162008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11217
11218 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11219
112202008-02-29 Chong Yidong <cyd@stupidchicken.com>
11221
11222 * xdisp.c (next_overlay_string): Don't set
11223 overlay_strings_at_end_processed_p if we're currently reading from
11224 a display string.
11225
112262008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11227
11228 * xdisp.c (get_overlay_strings_1): Fix typo.
11229
112302008-02-29 Chong Yidong <cyd@stupidchicken.com>
11231
11232 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11233
112342008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11235
11236 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11237
11238 * xdisp.c (display_mode_element): Cancel the previous change.
11239 (decode_mode_spec): Likewise.
11240 (handle_auto_composed_prop): Don't make composition if it->string
11241 is a string.
11242
112432008-02-27 Kim F. Storm <storm@cua.dk>
11244
11245 * lisp.h (GLYPH): Change type from int to struct with separate char
11246 and face_id members.
11247 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11248 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11249 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11250 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11251 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11252 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11253 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11254 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11255 handle new Lisp glyph code encoding, either an integer or a cons.
11256
11257 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11258 (GLYPH_ALIAS): Delete.
11259 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11260 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11261 (GLYPH_FROM_CHAR): Replace macro by ...
11262 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11263
11264 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11265 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11266 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11267 (GLYPH_INVALID_P): New macro.
11268 (spec_glyph_lookup_face): Update prototype.
11269
11270 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11271 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11272 new glyph code encoding.
11273 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11274 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11275
11276 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11277 Adapt to new glyph type and new glyph code encoding.
11278
11279 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11280
11281 * indent.c (current_column, current_column_1, Fmove_to_column)
11282 (compute_motion): Adapt to new glyph code encoding.
11283
11284 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11285
112862008-02-27 Chong Yidong <cyd@stupidchicken.com>
11287
11288 * process.c (wait_reading_process_output): Check for window
11289 changes caused by timers.
11290 Suggested by Johan Bockgård.
11291
112922008-02-27 Glenn Morris <rgm@gnu.org>
11293
11294 * emacs.c (USAGE1): Add `--disable-font-backend'.
11295
112962008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11297
11298 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11299 is made to the buffer.
11300
113012008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11302
11303 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11304 (face_at_string_position):
11305 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11306 (face_at_string_position):
11307 * xdisp.c (display_string, next_overlay_change):
11308 * buffer.h (overlays_at):
11309 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11310 Update callers.
11311
113122008-02-26 Chong Yidong <cyd@stupidchicken.com>
11313
11314 * editfns.c (Fformat): Doc fix.
11315
113162008-02-26 Juanma Barranquero <lekktu@gmail.com>
11317
11318 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11319 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11320 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11321
113222008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11323
11324 * buffer.c (Fbuffer_swap_text): New function.
11325 (syms_of_buffer): Defsubr it.
11326
113272008-02-25 Chong Yidong <cyd@stupidchicken.com>
11328
11329 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11330
113312008-02-25 Jason Rumney <jasonr@gnu.org>
11332
11333 * w32font.c (w32font_draw): Draw one character at a time when padding.
11334
113352008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11336
11337 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11338 Handle a nil arg. Use run_window_configuration_change_hook.
11339 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11340 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11341 Use run_window_configuration_change_hook.
11342
113432008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11344
11345 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11346 1-pixel width.
11347
113482008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11349
11350 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11351 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11352 if the glyph in the font is zero pixel with.
11353
11354 * dispextern.h (struct glyph_string): New member padding_p.
11355
11356 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11357
11358 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11359
11360 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11361
11362 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11363
11364 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11365
113662008-02-25 Jason Rumney <jasonr@gnu.org>
11367
11368 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11369
113702008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11371
11372 Allow fine-grained image-cache flushing.
11373 * dispextern.h (struct image): Add `dependencies' field.
11374 (clear_image_caches): Change arg to Lisp_Object.
11375 * image.c (make_image): Initialize `dependencies' field.
11376 (clear_image_cache): Change arg to allow fine-grained flushing.
11377 Perform the flush even if image-cache-eviction-delay is nil.
11378 (clear_image_caches): Change arg to Lisp_Object.
11379 (Fclear_image_cache): Expand meaning of the argument.
11380 (mark_image): Mark `dependencies' field.
11381 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11382 (lface_hash): Use XHASH rather than XFASTINT.
11383 (face_at_buffer_position): Fix int -> EMACS_INT position.
11384 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11385 (select_frame_for_redisplay): Remove code duplication.
11386 (redisplay_internal): Adapt arg to call to clear_image_caches.
11387
113882008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11389
11390 * s/vms4-0.h:
11391 * s/vms4-2.h:
11392 * s/vms4-4.h:
11393 * s/vms5-5.h: Remove, unused.
11394
11395 * s/irix5-2.h:
11396 * s/irix6-0.h:
11397 * s/riscos5.h:
11398 * s/mach-bsd4-3.h:
11399 * m/mips4.h: Remove files for obsolete systems.
11400
11401 * Makefile.in:
11402 * filelock.c:
11403 * unexmips.c:
11404 * m/hp9000s300.h:
11405 * m/iris4d.h:
11406 * s/aix3-1.h:
11407 * s/hpux.h:
11408 * s/msdos.h:
11409 * s/usg5-0.h:
11410 * s/usg5-2-2.h:
11411 * s/usg5-2.h:
11412 * s/usg5-3.h: Remove references to obsolete variables.
11413
11414 * s/irix5-0.h: Remove, move all the contents ...
11415 * s/irix6-5.h: ... here. Simplify.
11416 * config.in: Regenerate.
11417
114182008-02-24 Jason Rumney <jasonr@gnu.org>
11419
11420 * w32term.c (x_draw_glyph_string_background): Clear the background
11421 manually when cleartype is in use.
11422 (x_draw_glyph_string_foreground): Draw text transparently when
11423 cleartype is in use.
11424
11425 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11426 a font into it unless we have to.
11427
114282008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11429
11430 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11431 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11432
aac0c6e3
MR
114332008-02-18 Jason Rumney <jasonr@gnu.org>
11434
11435 * w32fns.c (Fw32_shell_execute): Encode parameters.
11436
114372008-02-09 Eli Zaretskii <eliz@gnu.org>
11438
11439 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11440
114412008-02-05 Juanma Barranquero <lekktu@gmail.com>
11442
11443 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11444
114452008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11446
11447 * xterm.c (x_set_offset): Don't change the gravity if
11448 CHANGE_GRAVITY is -1.
11449
114502008-02-23 Chong Yidong <cyd@stupidchicken.com>
11451
11452 * fileio.c (auto_save_error_occurred): New var.
11453 (auto_save_error): Set it.
11454 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11455 error occurred.
11456
114572008-02-23 Eli Zaretskii <eliz@gnu.org>
11458
11459 * w32.c (globals_of_w32): Add initializations for
11460 g_b_init_get_sid_sub_authority and
11461 g_b_init_get_sid_sub_authority_count.
11462
114632008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11464
11465 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11466 (font_parse_xlfd): Use them for sanity check.
11467 (Finternal_set_font_style_table): Make sure the table is bijective.
11468
11469 Consolidate the image_cache to the terminal struct.
11470 * termhooks.h (P_): Remove redundant def.
11471 (struct terminal): New field `image_cache'.
11472 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11473 of FRAME_X_IMAGE_CACHE.
11474 * xterm.h (struct x_display_info): Remove image_cache field.
11475 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11476 * w32term.h (struct w32_display_info): Remove image_cache field.
11477 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11478 * macterm.h (struct mac_display_info): Remove image_cache field.
11479 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11480 * xterm.c (x_term_init):
11481 * w32term.c (w32_term_init):
11482 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11483 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11484 Remove declarations.
11485 (clear_image_caches, mark_image_cache): New declarations.
11486 * xfaces.c (clear_face_cache):
11487 * xdisp.c (redisplay_internal): Use clear_image_caches.
11488 * image.c (clear_image_cache): Don't check that a frame is on
11489 a window-system before checking if it shares the same cache.
11490 (clear_image_caches): New function.
11491 (Fclear_image_cache): Use it.
11492 (mark_image): Move from allo.c.
11493 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11494 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11495 (mark_object): Don't call mark_image_cache for frames.
11496 (mark_terminals): Call mark_image_cache.
11497
11498 * lisp.h (Fdelete_terminal): Declare.
11499
11500 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11501 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11502 wrong_type_argument.
11503
115042008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11505
11506 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11507 malayalam.el, and tamil.el. Add sinhala.el.
11508
115092008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11510
11511 * xterm.c (x_connection_closed): Consolidate identical tests.
11512 (x_delete_terminal): Don't crash if called via x_connection_closed.
11513
115142008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11515
11516 * xdisp.c (decode_mode_spec): New arg string.
11517 (display_mode_element): Adjust for the above change.
11518
115192008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11520
11521 * callint.c (Fcall_interactively): Use AREF.
11522
115232008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11524
11525 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11526
115272008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11528
11529 * xfns.c (Fx_show_tip): Set string to " " if empty.
11530
115312008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11532
11533 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11534 with Qt.
11535
115362008-02-17 Kenichi Handa <handa@m17n.org>
11537
11538 * ftfont.c (ftfont_shape): Return Lispy number.
11539
11540 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11541 for GCs.
11542 (Finternal_set_font_selection_order): Call font_update_sort_order
11543 only when enable_font_backend is set.
11544 (realize_x_face): Set face->font_info to that of default face only
11545 when enable_font_backend is set.
11546
11547 * xdisp.c (handle_composition_prop): Set it->c to the fist
11548 character of the composed region.
11549 (fill_composite_glyph_string): Set base_face->font_info to
11550 s->font_info. Get a face for ascii from base_face->ascii_face.
11551 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11552 with a face already decided.
11553 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11554 non-negative.
11555 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11556 call font_prepare_composition unconditionally.
11557
11558 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11559
11560 * xterm.h (struct x_display_info): New member font.
11561
11562 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11563 (x_set_mouse_face_gc, x_new_font): Likewise.
11564 (x_term_init): Setup display_info->font.
11565 (x_delete_terminal): Free display_info->font.
11566
11567 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11568
11569 * ftxfont.c (ftxfont_default_fid): Delete it.
11570 (ftxfont_open): Set xfont->fid to 0.
11571 (ftxfont_end_for_frame): Clear data specific to the frame and the
11572 font-driver.
11573
11574 * xftfont.c (xftfont_default_fid): Delete it.
11575 (xftfont_open): Set xfont->fid to 0.
11576
11577 * fontset.c (FONTSET_OBJLIST): New macro.
11578 (fontset_find_font): Update font-object list of the fontset.
11579 (free_realized_fontset): New function.
11580 (free_face_fontset): Call free_realized_fontset.
11581 (Ffont_info): Call font_close_object only when enable_font_backend
11582 is set.
11583
11584 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11585 [HAVE_NTGUI]: Include w32term.h.
11586 [MAC_OS]: Include macterm.ch.
11587 (font_otf_ValueRecord): Use make_number.
11588 (font_finish_cache): Fix handling of reference count.
11589 (font_clear_cache): Update num_fonts.
11590 (font_open_entity): Update smallest_char_width and
11591 smallest_font_height of the frame.
11592 (font_close_object): Update num_fonts.
11593 (Fclear_font_cache): Fix finding the target cache data.
11594
115952008-02-16 Glenn Morris <rgm@gnu.org>
11596
11597 * fontset.c (Finternal_char_font): Fix compilation warning.
11598
115992008-02-16 Eli Zaretskii <eliz@gnu.org>
11600
11601 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11602 instead of char arrays. Enlarge the size of array passed to
11603 get_token_information.
11604
11605 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11606 warnings.
11607
116082008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11609
11610 * .gdbinit: Don't set `args', it breaks gdb --args.
11611
116122008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11613
11614 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11615 within a narrowed buffer.
11616
116172008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11618
11619 * coding.c (decode_coding_object, encode_coding_object):
11620 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11621
116222008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11623
11624 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11625 hardcoding 1.
11626 (detect_coding_system):
11627 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11628 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11629 * insdel.c (insert_from_gap):
11630 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11631 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11632 (string_to_multibyte):
11633 * character.c (chars_in_text, multibyte_chars_in_text):
11634 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11635
11636 * character.h (FETCH_STRING_CHAR_ADVANCE)
11637 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11638 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11639 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11640
11641 * casefiddle.c (casify_region): Only call after-change and composition
11642 functions on the part of the region that was changed.
11643
11644 * keyboard.c (read_avail_input):
11645 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11646
116472008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11648
11649 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11650 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11651
116522008-02-11 Juanma Barranquero <lekktu@gmail.com>
11653
11654 * w32menu.c (push_submenu_start, push_submenu_end)
11655 (push_left_right_boundary, push_menu_pane, push_menu_item):
11656 * keyboard.c (read_key_sequence): Don't pass args with side effects
11657 to AREF, it fails when compiling with -DENABLE_CHECKING.
11658
116592008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11660
11661 * Makefile.in (${lispsource}international/charprop.el):
11662 Delete this target.
11663
11664 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11665 emacs-unicode-2.
11666
116672008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11668
11669 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11670
116712008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11672
11673 * frame.c (Qnoelisp): New symbol.
11674 (syms_of_frame): Initialize it.
11675 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11676 harmless Elisp code, from a strong `force' from x_connection_closed.
11677 * frame.h (Qnoelisp): Declare.
11678 * xterm.c (x_connection_closed): Pass `noelisp'.
11679
11680 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11681 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11682 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11683 rather than `int' for the type of `type'.
11684
116852008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11686
11687 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11688
11689 * Makefile.in (GNUC): Remove support for gcc-1.x.
11690
116912008-02-10 Richard Stallman <rms@gnu.org>
11692
11693 * lisp.h (ASET): Use AREF, not ASLOT.
11694
116952008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11696
11697 * lisp.h (ASET): Check bounds.
11698
116992008-02-10 Glenn Morris <rgm@gnu.org>
11700
11701 * buffer.c (mode-name): Doc fix.
11702
117032008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11704
11705 * Makefile.in:
11706 * emacs.c:
11707 * gmalloc.c:
11708 * keyboard.c:
11709 * lisp.h:
11710 * m/ibm370aix.h:
11711 * process.c:
11712 * regex.c:
11713 * s/hpux.h:
11714 * sysdep.c:
11715 * sysselect.h:
11716 * systty.h:
11717 * unexec.c:
11718 * w32term.c:
11719 * xsmfns.c:
11720 * xterm.c: Remove code that deals with obsolete variables.
11721
11722 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11723
11724 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11725 nothing else needs it anymore.
11726
117272008-02-09 Eli Zaretskii <eliz@gnu.org>
11728
11729 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11730 instead of unibyte_char_to_multibyte.
11731
117322008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11733
11734 * s/gnu-linux.h: Remove commented out code.
11735
11736 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11737
11738 * Makefile.in: Update what RMS says about using autoconf.
11739 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11740 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11741 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11742 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11743
117442008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11745
11746 * keymap.c (Fkey_description): Move side effect outside of macro call.
11747
11748 * xfaces.c (Finternal_make_lisp_face):
11749 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11750
11751 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11752 (syms_of_fontset): Use ASET.
11753
11754 * fns.c (concat): Move side effect outside of macro call.
11755 (hash_clear): Use ASET.
11756
117572008-02-08 Richard Stallman <rms@gnu.org>
11758
11759 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11760 If FORCE, and frame has a surrogate minibuffer for another frame,
11761 delete the other frame first.
11762
117632008-02-07 Timo Savola <timo.savola@iki.fi>
11764
11765 * xterm.c (x_detect_focus_change): Handle embed client message.
11766 (handle_one_xevent): Ditto.
11767 (handle_one_xevent): If embedded and we get a button press/release,
11768 request focus.
11769 (xembed_set_info, xembed_send_message): New functions.
11770 (x_make_frame_visible): Call xembed_set_info if embedded.
11771 (x_make_frame_invisible): Call xembed_set_info if embedded.
11772 (x_term_init): Initialize Xatom_XEMBED.
11773 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11774 (x_iconify_frame): Ditto.
11775
11776 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11777 (enum xembed_info, enum xembed_message, enum xembed_focus)
11778 (enum xembed_modifier, enum xembed_accelerator): New.
11779 (xembed_set_info, xembed_send_message): Declare.
11780 (FRAME_X_EMBEDDED_P): New.
11781
11782 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11783 gtk_plug_new.
11784
11785 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11786 window ID of a frame.
11787 (x_window): Reparent frame if embedded.
11788 (Fx_create_frame): Don't set border width if embedded.
11789
11790 * emacs.c (USAGE3): Add --parent-id.
11791 (standard_args): Ditto.
11792
117932008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11794
11795 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11796
117972008-02-07 Jim Meyering <meyering@redhat.com>
11798
11799 Use "do...while (0)", not "if (1)...else" in macro definitions.
11800 The latter provokes a warning from gcc about the empty else, when
11801 followed by ";". Also, without that trailing semicolon, it would
11802 silently swallow up any following statement.
11803 * syntax.h (SETUP_SYNTAX_TABLE)
11804 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11805 * buffer.h (DECODE_POSITION): Likewise.
11806 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11807 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11808 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11809 (FETCH_CHAR_ADVANCE): Likewise.
11810 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11811
118122008-02-07 Jim Meyering <meyering@redhat.com>
11813
11814 * lread.c [lint]: Don't include <sys/inode.h>.
11815
118162008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11817
11818 * xselect.c (x_handle_dnd_message):
11819 * xmenu.c (digest_single_submenu, xmenu_show):
11820 * xdisp.c (with_echo_area_buffer_unwind_data)
11821 (format_mode_line_unwind_data, unwind_format_mode_line)
11822 (display_menu_bar):
11823 * eval.c (Ffetch_bytecode):
11824 * doc.c (store_function_docstring):
11825 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11826 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11827 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11828
118292008-02-07 Kenichi Handa <handa@m17n.org>
11830
11831 * ftxfont.c (ftxfont_open): Don't set
11832 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11833
11834 * ftfont.c (ftfont_open): Fix previous change.
11835
118362008-02-06 Jason Rumney <jasonr@gnu.org>
11837
11838 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11839 Use cached metrics for ASCII characters.
11840 (w32font_open_internal): Don't set font's owning_frame.
11841 Cache metrics for ASCII characters.
11842
11843 * w32font.h (struct w32font_info): Add ascii_metrics.
11844 Remove owning_frame.
11845
118462008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11847
11848 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11849 to negative value.
11850
11851 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11852
11853 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11854
11855 * charset.c (syms_of_charset): Set QCtest and Qeq.
11856
118572008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11858
11859 * process.c (Fstart_process):
11860 * callproc.c (Fcall_process): Handle the case where
11861 Funhandled_file_name_directory returns nil.
11862
11863 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11864 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11865 * font.c (check_gstring): Use them and AREF to access the vector before
11866 we know it's really a gstring.
11867 (Ffont_shape_text): Fix typo.
46e722a9 11868 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
11869
11870 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11871 Declare.
11872
11873 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11874
118752008-02-05 Jason Rumney <jasonr@gnu.org>
11876
11877 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11878 Set smallest_font_height and smallest_char_width in display info.
11879
118802008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11881
11882 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11883
118842008-02-05 Miles Bader <miles@gnu.org>
11885
11886 * xfaces.c (get_lface_attributes, merge_named_face)
11887 (lookup_named_face, lookup_derived_face, realize_named_face):
11888 Revert 2008-02-01 change by cyd@stupidchicken.com.
11889
118902008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11891
11892 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11893 fallback fonts.
11894 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11895
118962008-02-04 Jason Rumney <jasonr@gnu.org>
11897
11898 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11899 set full_name.
11900 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11901
119022008-02-03 Jason Rumney <jasonr@gnu.org>
11903
11904 * makefile.w32-in (OBJ1): Include font.o here.
11905 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11906
119072008-02-02 Jason Rumney <jasonr@gnu.org>
11908
11909 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11910
119112008-02-01 Jason Rumney <jasonr@gnu.org>
11912
11913 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11914
11915 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11916
119172008-02-01 Andreas Schwab <schwab@suse.de>
11918
11919 * Makefile.in (shortlisp, lisp): Update for rename of
11920 ../lisp/language/myanmar.el.
11921
119222008-02-01 Chong Yidong <cyd@stupidchicken.com>
11923
11924 * xfaces.c (get_lface_attributes): Delete function.
11925 (merge_named_face, lookup_named_face, lookup_derived_face)
11926 (realize_named_face): Call lface_from_face_name directly, and use
11927 the fact that merge_face_vectors does not alter its FROM argument.
11928
119292008-02-01 Jason Rumney <jasonr@gnu.org>
11930
11931 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11932 input in the default locale. Handle non-Unicode multibyte input.
11933
119342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11935
11936 * fontset.c (reorder_font_vector): Exclude nil elements from the
11937 font group. Don't try multiple fonts.
11938 (fontset_font): Adjust for the above change.
11939 (Finternal_char_font): Return nil if the found font doesn't
11940 contain the character ch.
11941
11942 * Makefile.in (lisp, shortlisp): Add cham.el.
11943
119442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11945
11946 * font.h (FONTP): Make it return 1 also for a font-object.
11947
11948 * .gdbinit (xfontset): New function.
11949
11950 * font.c (font_find_for_lface): Check if the character C is
11951 supported or not only for the first font.
11952
11953 * fontset.c (reorder_font_vector): Fix typo.
11954 (fontset_find_font): Don't add a font-spec specifying a script.
11955 Use 0 (not Qt) for the indication of empty font-group. Change the
11956 format of RFONT-DEF. Return Qt if no font in the font-group
11957 support the character.
11958 (fontset_font): Adjust for the above change. If no font was
11959 found the character, remember that.
11960 (face_for_char): Adjust for the change of RFONT-DEF.
11961 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11962 no font for the target.
11963 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11964
119652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11966
11967 * font.c (font_load_for_face): Handle the case that the font in
11968 face->lface is a string.
11969
119702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11971
11972 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11973
119742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11975
11976 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11977 Fix previous change. If the frame is not on a window system,
11978 signal an error.
11979
119802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11981
11982 * coding.c (decode_coding_object, encode_coding_object): Adjust
11983 marker positions after conversion.
11984
11985 * lisp.h (struct Lisp_Marker): New member need_adjustment.
11986
119872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11988
11989 * font.c (font_find_for_lface): Fix the handling of the return
11990 value of font_has_char.
11991 (Ffont_shape_text): Fix previous change.
11992
11993 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11994 (fontset_ref_and_range): Delete it.
11995 (fontset_find_font): Call char_table_ref_and_range instead of
11996 FONTSET_REF_AND_RANGE.
11997 (make_fontset): Don't setup font groups of Latin here.
11998 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11999 (new_fontset_from_font): Make the specified font the default for
12000 all Latin characters.
12001
120022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12003
12004 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12005 is on a window system before accessing the fontset of the frame.
12006
120072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12008
12009 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12010
12011 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12012 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12013
12014 * font.c (Ffont_shape_text): If the font driver doesn't have a
12015 shaper function, make zero-width glyphs to have at least one-pixel
12016 width. Fix setting of `to' field of glyphs.
12017
120182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12019
12020 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12021 glyphs.
12022
12023 * font.h (struct font_driver): Improve docstring of member `shape'.
12024
120252008-02-01 Kenichi Handa <handa@m17n.org>
12026
12027 * composite.c (syms_of_composite): Fix docstring of
12028 auto-composition-function.
12029
12030 * font.h (LGLYPH_SIZE): New macro.
12031
12032 * font.c (Ffont_fill_gstring): Stop filling when a character not
12033 supported by the font is found.
12034 (Ffont_shape_text): When a shape callback function returns nil,
12035 try at most two more times with larger gstring.
12036 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12037
12038 * xdisp.c (handle_auto_composed_prop): Change the argument to
12039 auto-composition-function.
12040
12041 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12042 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12043 Lispy glyph and store it in the lgstring.
12044
12045 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12046
12047 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12048
120492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12050
12051 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12052
12053 * fontset.c (Vfont_encoding_charset_alist): New variable.
12054 (syms_of_fontset): DEFVAR it.
12055 (reorder_font_vector, fontset_find_font): Optimize for the case of
12056 no need of reordering.
12057 (face_for_char): Map the charset property by
12058 Vfont_encoding_charset_alist.
12059
120602008-02-01 Jason Rumney <jasonr@gnu.org>
12061
12062 * w32font.c (logfonts_match): Don't check adstyle here.
12063 (font_matches_spec): Check here against physical font instead.
12064 (add_font_entity_to_list): Avoid some substitutions.
12065
12066 * font.c (font_parse_fcname): Default weight and slant to normal.
12067 (font_score): Prefer normal fonts if weight or slant unspecified.
12068 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12069 match freetype scores.
12070
120712008-02-01 Jason Rumney <jasonr@gnu.org>
12072
12073 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12074 font, as it may have been deleted.
12075 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12076 most common hyphenless variation.
12077 (logfonts_match): Check generic family.
12078 (font_matches_spec): Don't check generic family here.
12079 (fill_in_logfont): Set generic family based on adstyle.
12080
12081 * w32font.h (w32font_get_cache): Update declaration.
12082
120832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12084
12085 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12086
12087 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12088 If none of the new drivers are available, call font_update_drivers
12089 with the old drivers.
12090
12091 * w32font.c (w32font_get_cache): Adjust the argument type.
12092
12093 * xfont.c (xfont_get_cache): Adjust the argument type.
12094
12095 * font.h (struct font_driver): Change argument type of get_cache.
12096
12097 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12098
12099 * font.c (Ffont_get): Fix arguments to Fassoc.
12100 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12101 (font_clear_cache): New function.
12102 (font_list_entities, font_matching_entity): Use font_get_cache.
12103 (font_update_drivers): Call font_clear_cache when finishing a driver.
12104
12105 * fontset.c (fontset_find_font): Fix previous change.
12106
121072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12108
12109 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12110 dpyinfo->font_table.
12111 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12112 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12113
12114 * font.c (font_at): Handle the case that the arg C is negative.
12115 Handle the unibyte case.
12116 (Ffont_at): Call font_at with the arg C -1.
12117
12118 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12119 the position here, and call font_at with the arg C -1.
12120 Don't check the range of the existing composition at the point.
12121
121222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12123
12124 * fontset.c (fontset_add): New args charset_id and family.
12125 Change caller.
12126 (load_font_get_repertory, fontset_find_font): Assume that
12127 font_spec is always a font-spec object.
12128 (Fset_fontset_font): Always store a font-spec object in a fontset.
12129
12130 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12131 instead of get_property_and_range.
12132
121332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12134
12135 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12136 (xftfont_open): Don't keep locking face.
12137 (xftfont_close): Don't unlock face.
12138 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12139
12140 * fontset.c (fontset_find_font): Don't prefer a font of
12141 supplementary charset.
12142
121432008-02-01 Kenichi Handa <handa@m17n.org>
12144
12145 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12146 script, langsys_tag to langsys, new member script.
12147 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12148 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12149 listing to the script specified in that property. Fix arg to
12150 OTF_check_features.
12151
121522008-02-01 Jason Rumney <jasonr@gnu.org>
12153
12154 * w32font.h: New file.
12155
12156 * w32font.c: Include it.
12157 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12158 (w32font_open): Set owning_frame.
12159 (w32font_text_extents): Use owning_frame.
12160 (struct font_callback_data): Add opentype_only field.
12161 (add_font_entity_to_list): Use it to filter fonts.
12162 Don't check against full name.
12163 (w32font_list_internal): New function.
12164 (w32font_list): Use it.
12165 (w32font_match_internal): New function.
12166 (w32font_match): Use it.
12167 (w32font_open_internal): New function.
12168 (w32font_open): Use it.
12169 (w32font_get_cache, w32font_close, w32font_has_char)
12170 (w32font_encode_char, w32font_text_extents, w32font_draw):
12171 Make non-static.
12172
12173 * makefile.w32-in (w32font.o): Depend on w32font.h.
12174
121752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12176
12177 * charset.c (Fdefine_charset_internal): Record a supplementary
12178 charset at the tail of Vcharset_order_list.
12179
12180 * font.c (Ffont_shape_text): Fix the return value.
12181
12182 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12183
12184 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12185
121862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12187
12188 * ftfont.c (struct OpenTypeSpec): New struct.
12189 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12190 (ftfont_get_open_type_spec): New function.
12191 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12192
12193 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12194
121952008-02-01 Jason Rumney <jasonr@gnu.org>
12196
12197 * w32font.c (add_font_entity_to_list): Compare only the beginning
12198 of full name.
12199
122002008-02-01 Kenichi Handa <handa@m17n.org>
12201
12202 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12203 Never return HANDLED_RECOMPUTE_PROPS.
12204
122052008-02-01 Kenichi Handa <handa@m17n.org>
12206
12207 * font.c (font_gstring_produce): Delete it.
12208
12209 * composite.h (COMPOSITION_METHOD):
12210 Handle COMPOSITION_WITH_GLYPH_STRING.
12211
122122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12213
12214 * xfont.c (Qx): Delete.
12215 (syms_of_xfont): Don't initialize Qx.
12216
12217 * composite.h (enum composition_method):
12218 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12219
122202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12221
12222 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12223 (choose_face_font): Accept new form of font-spec.
12224
12225 * frame.h (font_driver_list): Declare it unconditionally.
12226 (struct frame): Define members font_driver_list and font_data_list
12227 unconditionally.
12228
12229 * fontset.c: Include "font.h" unconditionally.
12230 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12231 (Fset_fontset_font): Accept a font-spec object.
12232
12233 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12234 PIXEL_SIZE part a wild card.
12235
12236 * dispextern.h (struct glyph_string): Define members clip and
12237 num_clips unconditionally.
12238 (struct face): Define members font_info and extra unconditionally.
12239
12240 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12241 ftfont_info only when HAVE_LIBOTF is defined.
12242
122432008-02-01 Andreas Schwab <schwab@suse.de>
12244
12245 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12246 and end.
12247
122482008-02-01 Jason Rumney <jasonr@gnu.org>
12249
12250 * w32font.c (w32font_driver): Add new fields.
12251
122522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12253
12254 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12255 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12256 (LIBES): Add @M17N_FLT_CFLAGS@.
12257
12258 * composite.c (compose_text): Don't treat the new style
12259 composition specially.
12260
12261 * emacs.c (main): Call syms_of_font unconditionally.
12262
12263 * font.h (FONT_ENTITY_NOT_LOADABLE)
12264 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12265 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12266 (struct font_driver): New member shape.
12267 (font_registry_charsets): Extern it.
12268 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12269 (font_otf_capability, font_drive_otf): Delete their externs.
12270
12271 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12272 (font_charset_alist, font_registry_charsets): Move from xfont.c
12273 and rename.
12274 (font_prop_validate_otf): New function.
12275 (font_property_table): Register it for QCotf.
12276 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12277 (font_drive_otf): Delete.
12278 (font_prepare_composition): New arg F. Adjust for the change of
12279 lispy gstring.
12280 (font_find_for_lface): New arg C.
12281 (font_load_for_face): Adjust for the change of font_find_for_lface.
12282 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12283 lispy gstring.
12284 (Ffont_shape_text): New function.
12285 (Fopen_font): If the font size is not given, use 12-pixel.
12286 (Ffont_at): New arg STRING.
12287 (syms_of_font): Initalize font_charset_alist.
12288 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12289 conditionally.
12290
12291 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12292 fonts of the same font-spec. Change the format of RFONT-DEF.
12293 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12294 Adjust for the change of RFONT-DEF.
12295 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12296
12297 * ftfont.h: New file.
12298
12299 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12300 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12301 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12302 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12303 font_otf_capability and font_drive_otf, set ftfont_shape.
12304 (ftfont_list): Adjust for the change of :otf property value.
12305 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12306 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12307 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12308 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12309 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12310 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12311
12312 * w32term.c (x_draw_composite_glyph_string_foreground):
12313 Adjust for the change of lispy gstring.
12314
12315 * xdisp.c (handle_composition_prop): Adjust for the change of
12316 lispy gstring. Call a function for auto-composition with the
12317 third arg it->window.
12318 (fill_composite_glyph_string): Adjust for the change of lispy string.
12319 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12320
12321 * xfaces.c (set_font_frame_param): Adjust for the change of
12322 font_find_for_lface.
12323
12324 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12325 (xfont_registry_charsets): Likewise. Change caller.
12326 (syms_of_xfont): Don't handle x_font_charset_alist.
12327
12328 * xftfont.c: Include "ftfont.h".
12329 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12330 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12331 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12332 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12333 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12334 Set xftfont_driver.shape to xftfont_shape.
12335
12336 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12337 the change of lispy gstring.
12338
123392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12340
12341 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12342
123432008-02-01 Jason Rumney <jasonr@gnu.org>
12344
12345 * w32font.c (w32font_draw): Fill background manually.
12346
123472008-02-01 Jason Rumney <jasonr@gnu.org>
12348
12349 * font.c (Qfontp): Remove unused symbol.
12350 (QCantialias): New symbol.
12351 (syms_of_font): Define it.
12352 (font_property_table): Set a validator for QCantialias.
12353
12354 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12355 Define if not already.
12356 (QCfamily): Share with xfaces.c.
12357 (Qstandard, Qsubpixel, Qnatural): New symbols.
12358 (syms_of_w32font): Define them. Don't define QCfamily here.
12359 (w32_antialias_type, lispy_antialias_type): New functions.
12360 (w32_enumfont_pattern_entity): New arg requested_font.
12361 Set antialias parameter if non-default was requested.
12362 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12363
123642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12365
12366 * lread.c (read1): Undo the previous change.
12367
123682008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12369
12370 * frame.c (Fdelete_frame): Call font_update_drivers only when
12371 USE_FONT_BACKEND is defined.
12372
123732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12374
12375 * font.h (struct font_bitmap): New member bits_per_pixel.
12376 (struct font_driver): New members start_for_frame and end_for_frame.
12377 (struct font_data_list): New struct.
12378 (font_put_frame_data, font_get_frame_data): Extern them.
12379
12380 * frame.h (struct frame): New member font_data_list.
12381
12382 * font.c (font_update_drivers): Call driver->start_for_frame and
12383 driver->end_for_frame at proper timings.
12384 (font_put_frame_data, font_get_frame_data): New functions.
12385 (Ffont_spec): Add usage in the docstring.
12386
12387 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12388 (Fdelete_frame): Call font_update_drivers.
12389
12390 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12391 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12392 (xftfont_get_xft_draw): New function.
12393 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12394 (xftfont_end_for_frame): New function.
12395 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12396
12397 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12398 Change argument. Cache GCs in the per-frame data.
12399 (struct ftxfont_frame_data): New struct.
12400 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12401 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12402 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12403 (ftxfont_end_for_frame): New function.
12404 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12405
12406 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12407
124082008-02-01 Kenichi Handa <handa@m17n.org>
12409
12410 * xselect.c (Vselection_coding_system)
12411 (Vnext_selection_coding_system): Delete them.
12412 (syms_of_xselect): Don't declare selection-coding-system and
12413 next-selection-coding-system. They are declared in select.el.
12414
124152008-02-01 Jason Rumney <jasonr@gnu.org>
12416
12417 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12418
12419 * w32fns.c: Include imm.h.
12420 (get_composition_string_fn, get_ime_context_fn): New optional
12421 system functions.
12422 (globals_of_w32fns): Load them from imm32.dll.
12423 (ignore_ime_char): New flag.
12424 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12425 WM_IME_ENDCOMPOSITION messages.
12426
12427 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12428 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12429
124302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12431
12432 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12433 (READCHAR_REPORT_MULTIBYTE): New macro.
12434 (readchar): New 2nd arg MULTIBYTE.
12435 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12436 Make symbol's name multibyte according to the multibyteness of the
12437 source.
12438
124392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12440
12441 * xfaces.c (face_for_overlay_string): Call lookup_face with
12442 correct arguments (fix of synching with the trunk).
12443
124442008-02-01 Kenichi Handa <handa@m17n.org>
12445
12446 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12447 (font_prop_validate_non_neg, font_prop_validate_spacing):
12448 Delete argument prop_index.
12449 (font_property_table): Change arguments to validater. Change Callers.
12450 (font_lispy_object): Delete.
12451 (font_at): Use font_find_object instead fo font_lispy_object.
12452
124532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12454
12455 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12456 and file names.
12457
124582008-02-01 Jason Rumney <jasonr@gnu.org>
12459
12460 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12461 (font_matches_spec): Remove debug output.
12462 (add_font_entity_to_list): Avoid using substituted fonts.
12463
124642008-02-01 Jason Rumney <jasonr@gnu.org>
12465
12466 * doc.c (Fsnarf_documentation):
12467 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12468
124692008-02-01 Miles Bader <miles@gnu.org>
12470
12471 * dispextern.h (struct glyph_row): Only define "clip" field if
12472 HAVE_WINDOW_SYSTEM is defined.
12473
124742008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12475
12476 Fix up multi-tty merge.
12477
12478 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12479 and indentation.
12480
12481 * xfaces.c (free_realized_face, clear_face_gcs):
12482 Include font_done_for_face in the input_blocked section, just in case.
12483
12484 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12485 (get_char_face_and_encoding): Undo last change and remove the *other*
12486 duplicate definition (i.e. keep the one that's better scoped and that
12487 includes code for the font-backend).
12488
12489 * terminal.c (create_terminal): Default keyboard_coding to
12490 `no-conversion' and terminal_coding to `undecided'.
12491
12492 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12493
12494 * fontset.c (free_realized_fontsets): Check that the table entry does
12495 contain a fontset before trying to compare it to `base'.
12496
12497 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12498 syms_of_charset, and syms_of_coding earlier because init_window_once
12499 now needs Vcoding_system_hash_table to be setup.
12500
12501 * coding.h (default_buffer_file_coding): Remove.
12502
12503 * coding.c (default_buffer_file_coding): Remove.
12504 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12505 than ->symbol, and use the terminal-local coding system.
12506 (syms_of_coding): Don't setup the coding-systems that are not
12507 terminal-local.
12508 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12509
12510 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12511 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12512
12513 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12514 in chartab.c and were re-added here by mistake.
12515 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12516
12517 * doc.c (Fsnarf_documentation):
12518 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12519 src to etc.
12520
12521 * ChangeLog.10: Add mistakenly removed entry.
12522
125232008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12524
12525 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12526
125272008-02-01 Miles Bader <miles@gnu.org>
12528
12529 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12530 Add extra args to FACE_FOR_CHAR.
12531
125322008-02-01 Kenichi Handa <handa@m17n.org>
12533
12534 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12535 in sequence.
12536
12537 * chartab.c (map_sub_char_table, map_char_table): If the range
12538 contains just one character, call the function with that character
12539 even if the depth is not 3.
12540
125412008-02-01 Jason Rumney <jasonr@gnu.org>
12542
12543 * w32font.c (w32font_text_extents): Calculate metrics for the
12544 whole string.
12545
125462008-02-01 Jason Rumney <jasonr@gnu.org>
12547
12548 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12549
125502008-02-01 Jason Rumney <jasonr@gnu.org>
12551
12552 * w32term.c (x_set_glyph_string_clipping): Use
12553 get_glyph_string_clip_rects.
12554 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12555 Adjust for the change of struct glyph_string.
12556
12557 * w32font.c (w32font_draw): Do clipping here.
12558
125592008-02-01 Kenichi Handa <handa@m17n.org>
12560
12561 * xftfont.c (xftfont_draw): Adjust for the change of struct
12562 glyph_string.
12563
12564 * xterm.c (x_set_glyph_string_clipping): Use
12565 get_glyph_string_clip_rects.
12566 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12567 Adjust for the change of struct glyph_string.
12568
12569 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12570 the resulting clip(s}.
12571 (expose_overlaps): Add arg r. Change callers. Set it to
12572 row->clip temporarily.
12573 (expose_window): Redraw rows overlapping the exposed area.
12574
12575 * dispextern.h (struct glyph_row): New member clip.
12576 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12577 clip_height, new member clip, and num_clips.
12578
125792008-02-01 Kenichi Handa <handa@m17n.org>
12580
12581 * data.c (Fchar_or_string_p): Fix docstring.
12582
125832008-02-01 Kenichi Handa <handa@m17n.org>
12584
12585 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12586 create a temporary XftDraw object.
12587
125882008-02-01 Kenichi Handa <handa@m17n.org>
12589
12590 * font.c (Ffontp): Fix docstring.
12591
12592 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12593 strong evidence of ISO-2022.
12594
125952008-02-01 Kenichi Handa <handa@m17n.org>
12596
12597 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12598 SYNTAX_ENTRY_FOLLOW_PARENT.
12599
126002008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12601
12602 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12603 its type.
12604 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12605 Update to the new type of weak_hash_tables and next_weak.
12606
12607 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12608 a plain C pointer to Lisp_Hash_Table.
12609
12610 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12611 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12612 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12613 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12614 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12615 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12616 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12617 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12618 (GC_EQ): Remove since they've been identical to their non-GC_
12619 alter-egos ever since the markbit was eradicated.
12620
12621 * alloc.c:
12622 * buffer.c:
12623 * buffer.h:
12624 * data.c:
12625 * fileio.c:
12626 * filelock.c:
12627 * fns.c:
12628 * frame.h:
12629 * lisp.h:
12630 * macterm.c:
12631 * print.c:
12632 * process.c:
12633 * w32fns.c:
12634 * w32menu.c:
12635 * w32term.c:
12636 * xfns.c:
12637 * xmenu.c:
12638 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12639
126402008-02-01 Kenichi Handa <handa@m17n.org>
12641
12642 * chartab.c (map_sub_char_table): Make it work for the top-level
12643 char-table. Fix handling of parent char-table.
12644 (map_char_table): Adjust for the above change.
12645
126462008-02-01 Jason Rumney <jasonr@gnu.org>
12647
12648 * w32font.c (Qgdi): Rename from Qw32.
12649
126502008-02-01 Jason Rumney <jasonr@gnu.org>
12651
12652 * w32bdf.c (get_quoted_string): Make function static.
12653
126542008-02-01 Kenichi Handa <handa@m17n.org>
12655
12656 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12657 bigger ascent and descent than those of the font, use them as
12658 font's ascent and descent.
12659
126602008-02-01 Kenichi Handa <handa@m17n.org>
12661
12662 * Makefile.in (${lispsource}international/charprop.el): Move this
12663 target within "#ifdef HAVE_UNIDATA" and "#endif".
12664
126652008-02-01 Kenichi Handa <handa@m17n.org>
12666
12667 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12668 (shortlisp): Add ../lisp/language/tai-viet.el.
12669
126702008-02-01 Ulrich Mueller <ulm@gentoo.org>
12671
12672 * Makefile.in (${lispsource}international/charprop.el): Depend on
12673 temacs${EXEEXT}.
12674
126752008-02-01 Jason Rumney <jasonr@gnu.org>
12676
12677 * w32font.c (w32font_close): Delete the GDI font object.
12678
12679 * w32menu.c: Include character.h.
12680
12681 * w32proc.c: Likewise.
12682
12683 * w32select.c: Likewise.
12684
12685 * makefile.w32-in (w32proc.o): Depend on character.h.
12686
126872008-02-01 Jason Rumney <jasonr@gnu.org>
12688
12689 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12690
12691 * w32menu.c (syms_of_w32menu): Likewise.
12692
12693 * w32proc.c (syms_of_ntproc): Likewise.
12694
12695 * w32select.c (syms_of_w32select): Likewise.
12696
12697 * w32term.c (syms_of_w32term): Likewise.
12698
126992008-02-01 Jason Rumney <jasonr@gnu.org>
12700
12701 * w32font.c (w32font_draw): Delete brush after using it.
12702
127032008-02-01 Jason Rumney <jasonr@gnu.org>
12704
12705 * w32font.c (w32font_open): Don't set font_idx.
12706 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12707 to font settings.
12708 (w32font_draw): Fill background explicitly.
12709
127102008-02-01 Jason Rumney <jasonr@gnu.org>
12711
12712 * w32term.c (w32_initialize): Don't call w32font_initialize.
12713
12714 * w32font.c (w32font_info): Remove subranges.
12715 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12716 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12717 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12718 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12719 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12720 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12721 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12722 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12723 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12724 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12725 New symbols.
12726 (font_callback_data): New struct.
12727 (w32font_list, w32font_match): Use it.
12728 (w32font_open): Don't populate subranges.
12729 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12730 (w32font_encode_char): Always return unicode code-point as-is.
12731 (w32font_text_extents): Supply a transformation matrix to
12732 GetGlyphOutline. Never look up by glyph index. Avoid looping
12733 twice. Use unicode version of GetTexExtentPoint32 instead of
12734 glyph index version.
12735 (set_fonts_frame): Remove.
12736 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12737 set frame parameter. Use backward compatible fake foundries.
12738 Save generic family in extra slot under QCfamily. Make width slot
12739 constant. Save QCspacing value. Save list of scripts instead of
12740 binary subranges.
12741 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12742 (add_font_entity_to_list): Use font_callback_data struct. Filter
12743 unwanted fonts.
12744 (add_one_font_entity_to_list): Use font_callback_data struct.
12745 (w32_registry): Default to iso10646_1.
12746 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12747 string font registries. Don't fill in font name if it is a generic
12748 family name, fill family instead. Use spacing, family and script
12749 extra info to fill pitch, family and charset fields.
12750 (list_all_matching_fonts): Use font_callback_data struct.
12751 (unicode_range_for_char): Remove.
12752 (font_supported_scripts): New function.
12753 (w32font_initialize): Remove.
12754 (syms_of_w32font): Update which symbols are defined.
12755
127562008-02-01 Jason Rumney <jasonr@gnu.org>
12757
12758 * font.c (font_pixel_size): Reverse assq_no_quit args.
12759
12760 * w32term.h (FONT_WIDTH): Report max width, not average.
12761 (FONT_MAX_WIDTH): Remove.
12762 (FONT_AVG_WIDTH): New macro.
12763
12764 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12765 redefinition of FONT_WIDTH.
12766
12767 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12768 (w32_cache_char_metrics): Use FONT_WIDTH.
12769
12770 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12771
127722008-02-01 Jason Rumney <jasonr@gnu.org>
12773
12774 * w32font.c (w32font_open): Make lfHeight negative.
12775
12776 * w32fns.c (x_default_font_parameter): Use new style font name.
12777 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12778
127792008-02-01 Jason Rumney <jasonr@gnu.org>
12780
12781 * w32font.c (QCsubranges): New symbol.
12782 (w32font_open, w32font_has_char): Get subranges from subproperty
12783 of extra.
12784 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12785 (syms_of_w32font): Define :subranges symbol.
12786
12787 * font.c (font_put_extra): Expose externally.
12788
12789 * font.h (font_put_extra): Move declaration from font.c.
12790
12791 * font.c (Ffont_get): Use font driver to determine otf capability.
12792 (adjust_anchor): Check if driver defines anchor_point before using.
12793
12794 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12795 (w32font_draw): Use options.
12796 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12797 Fix detection of truetype fonts.
12798 (registry_to_w32_charset): Handle charsets other than iso8859-1
12799 expressed as lisp symbols.
12800 (w32_registry): Express charset as lisp symbol.
12801 (fill_in_logfont): Reverse pixel and point height logic.
12802 Don't set width here. Set quality to default.
12803
12804 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12805 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12806
12807 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12808 Remove redundant loop and allocation.
12809
12810 * makefile.w32-in (font.o, w32font.o): New objects.
12811 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12812 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12813
12814 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12815 STORE_XCHARB a valid l-value.
12816
12817 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12818 calculations for non-Truetype fonts.
12819 (x_draw_glyph_string): Sync with xterm.c.
12820 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12821 Remove redundant code.
12822 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12823
12824 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12825 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12826
12827 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12828 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12829
12830 * w32font.c: New file for w32 font backend.
12831
128322008-02-01 Kenichi Handa <handa@m17n.org>
12833
12834 * term.c: Don't include "buffer.h" twice.
12835
128362008-02-01 Kenichi Handa <handa@m17n.org>
12837
12838 * character.c (Funibyte_string): New function.
12839 (syms_of_character): Defsubr it.
12840
128412008-02-01 Jason Rumney <jasonr@gnu.org>
12842
12843 * w32term.c [USE_FONT_BACKEND]:
12844 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12845 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12846 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12847 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12848 (x_free_frame_resources): Sync with xterm.c.
12849
128502008-02-01 Andreas Schwab <schwab@suse.de>
12851
12852 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12853 char-table size.
12854
128552008-02-01 Kenichi Handa <handa@m17n.org>
12856
12857 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12858
128592008-02-01 Kenichi Handa <handa@m17n.org>
12860
12861 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12862 font_otf_gpos, add font_drive_otf.
12863
12864 * fontset.c (fontset_find_font): Pay attention to font size
12865 specified for a font.
12866 (reorder_font_vector): Check contents of font_def.
12867
12868 * font.c (struct otf_list): Delete it.
12869 (otf_list): Make it a lisp variable.
12870 (otf_open): Use lispy otf_list.
12871 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12872 (check_otf_features): New function.
12873 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12874 New functions.
12875 (font_drive_otf): New function merging font_otf_gsub and
12876 font_otf_gpos.
12877 (font_open_for_lface): New arg spec. Change argument order.
12878 (font_load_for_face): Adjust for the change of font_open_for_lface.
12879 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12880 Ffont_otf_gpos.
12881 (syms_of_font): Staticpro otf_list. Delete defsubr of
12882 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12883
12884 * xfaces.c (set_font_frame_param): Adjust for the change of
12885 font_open_for_lface.
12886
12887 * font.h (font_open_for_lface): Adjust prototype.
12888 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12889 member otf_drive.
12890 (font_otf_gsub, font_otf_gpos): Delete externs.
12891 (font_drive_otf): Extern it.
12892
128932008-02-01 Kenichi Handa <handa@m17n.org>
12894
12895 * font.c (font_at): If the window W is not on a window system,
12896 return Qnil.
12897
12898 * coding.c (produce_chars, encode_coding): Don't call
12899 insert_from_gap if no characters to produce.
12900
129012008-02-01 Kenichi Handa <handa@m17n.org>
12902
12903 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12904 Fclear_face_cache.
12905
12906 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12907
129082008-02-01 Miles Bader <miles@gnu.org>
12909
12910 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12911 Parse "--disable-font-backend" option.
12912 (standard_args): Add "--disable-font-backend" option.
12913
129142008-02-01 Kenichi Handa <handa@m17n.org>
12915
12916 * fontset.c (fontset_find_font): New function.
12917 (fontset_font): Use fontset_find_font.
12918 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12919 Register the specified font for all Latin characters.
12920 (new_fontset_from_font): Register the specified font for all Latin
12921 characters.
12922 (dump_fontset): For a realized fontset, include the base fontset
12923 name in the returned vector.
12924
129252008-02-01 Kenichi Handa <handa@m17n.org>
12926
12927 * character.h (CHAR_STRING): Cast C to unsigned on calling
12928 char_string.
12929
12930 * character.c (char_string): Type of arg C changed to unsigned.
12931 Signal an error if C is an invalid character code.
12932
12933 * editfns.c (general_insert_function, Fchar_to_string):
12934 Use CHARACTERP, not INTEGERP.
12935
129362008-02-01 Kenichi Handa <handa@m17n.org>
12937
12938 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12939 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12940
12941 * regex.c (analyse_first): Fix for multibyte characters in "case
12942 charset:" and "case categoryspec:".
12943
129442008-02-01 Andreas Schwab <schwab@suse.de>
12945
12946 * Makefile.in (LIBES): Move standard libraries to the end.
12947
129482008-02-01 Kenichi Handa <handa@m17n.org>
12949
12950 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12951 nonzero, don't shrink the buffer nextb.
12952
12953 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12954
12955 * coding.c (coding_alloc_by_making_gap): New arg offset.
12956 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12957 offset.
12958 (decode_coding_iso_2022): Update coding->safe_charsets.
12959 (decode_coding_gap): Temporarily set
12960 current_buffer->text->inhibit_shrinking to 1.
12961
129622008-02-01 Kenichi Handa <handa@m17n.org>
12963
12964 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12965 indexing into elements of s->cmp and s->char2b.
12966
129672008-02-01 Juanma Barranquero <lekktu@gmail.com>
12968
12969 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12970
129712008-02-01 Kenichi Handa <handa@m17n.org>
12972
12973 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12974 target_multibyte instead of multibyte.
12975 (re_match_2_internal): Call bcmp_translate with target_multibyte.
12976 (bcmp_translate): Change the argument name from multibyte to
12977 target_multibyte.
12978
129792008-02-01 Kenichi Handa <handa@m17n.org>
12980
12981 These changes are to compile a regexp into a pattern that can be
12982 used both for multibyte and unibyte targets.
12983
12984 * Makefile.in (search.o): Depend on charset.h.
12985
12986 * character.c (multibyte_char_to_unibyte_safe): New function.
12987
12988 * search.c: Include "charset.h".
12989 (compile_pattern_1): Delete argument multibyte. Don't set
12990 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
12991 (compile_pattern): Don't compare cp->buf.target_multibyte.
12992 Compare cp->buf.charset_unibyte.
12993 (compile_pattern): Set cp->buf.target_multibyte.
12994
12995 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12996
12997 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12998
12999 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13000 multibyte. Change callers.
13001 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13002 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13003 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13004 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13005 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13006 (regex_compile): Make the compiled pattern usable both for
13007 multibyte and unibyte targets.
13008 (analyse_first): Make the fastmap usable both for multibyte and
13009 unibyte targets.
13010 (TRANSLATE_VIA_MULTIBYTE): Delete.
13011 (re_match_2_internal): Pay attention to the case that the
13012 multibyteness of bufp and target may be different.
13013
130142008-02-01 Kenichi Handa <handa@m17n.org>
13015
13016 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13017 empty box occupy at least one column width.
13018
130192008-02-01 Miles Bader <miles@gnu.org>
13020
13021 * Makefile.in: Remove redundant HAVE_XFT clause.
13022
130232008-02-01 Kenichi Handa <handa@m17n.org>
13024
13025 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13026
130272008-02-01 Kenichi Handa <handa@m17n.org>
13028
13029 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13030 being nil.
13031
130322008-02-01 Kenichi Handa <handa@m17n.org>
13033
13034 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13035
130362008-02-01 Kenichi Handa <handa@m17n.org>
13037
13038 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13039
130402008-02-01 Kenichi Handa <handa@m17n.org>
13041
13042 * search.c (simple_search): Fix previous change.
13043
130442008-02-01 Kenichi Handa <handa@m17n.org>
13045
13046 * xftfont.c (ftfont_font_format): Extern declaration.
13047
13048 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13049
13050 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13051 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13052
13053 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13054 (ftfont_font_format): Fix previous change.
13055
13056 * font.h (Ffont_xlfd_name): EXFUN it.
13057
13058 * font.c (font_parse_xlfd): Fix the array size of `f'.
13059 (register_font_driver): Use EQ to compare driver->type.
13060
13061 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13062 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13063 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13064
130652008-02-01 Kenichi Handa <handa@m17n.org>
13066
13067 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13068 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13069
130702008-02-01 Kenichi Handa <handa@m17n.org>
13071
13072 * xfont.c (xfont_open): Set font->format.
13073
13074 * xftfont.c (xftfont_open): Set font->format.
13075
13076 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13077 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13078 (ftfont_open): Set font->format.
13079 (ftfont_font_format): New function.
13080
13081 * font.h (struct font): New member format.
13082
13083 * font.c (Qopentype): New variable.
13084 (syms_of_font): Defsym it.
13085 (Fquery_font): Change the format of the last element of the return
13086 value.
13087
130882008-02-01 Kenichi Handa <handa@m17n.org>
13089
13090 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13091 last resort.
13092
130932008-02-01 Kenichi Handa <handa@m17n.org>
13094
13095 * coding.c (detect_coding_charset): Fix detection of multi-byte
13096 charset.
13097
130982008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13099
13100 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13101
131022008-02-01 Kenichi Handa <handa@m17n.org>
13103
13104 * xdisp.c (get_next_display_element): Set it->face_id for the
13105 first component of a composition.
13106 (x_produce_glyphs): Check if the font is changed or not for composition.
13107
131082008-02-01 Kenichi Handa <handa@m17n.org>
13109
13110 * fontset.c (Qlatin): New variable.
13111 (syms_of_fontset): Define it as a lisp symbol.
13112 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13113
131142008-02-01 Kenichi Handa <handa@m17n.org>
13115
13116 * font.c (font_unparse_fcname): Pay attention to the case that
13117 some of font property is a null string.
13118
131192008-02-01 Kenichi Handa <handa@m17n.org>
13120
13121 * term.c: Include "composite.h".
13122 (encode_terminal_code): Output all components of composition.
13123 Check the size of encode_terminal_src.
13124 (produce_glyphs): For composition, call produce_composite_glyph.
13125 (append_composite_glyph, produce_composite_glyph): New functions.
13126
13127 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13128 is not found, get font_info from the current ascii face.
13129
131302008-02-01 Kenichi Handa <handa@m17n.org>
13131
13132 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13133 buffer-file-name to Qnil before calling insert_from_buffer.
13134
13135 * font.c (font_unparse_fcname): Pay attention to the case that
13136 foundry is a null string.
13137
131382008-02-01 Kenichi Handa <handa@m17n.org>
13139
13140 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13141
13142 * font.c (Qunicode_sip): New variable.
13143 (syms_of_font): Declare it as a Lisp symbol.
13144
13145 * font.h (Qunicode_sip): Extern it.
13146
131472008-02-01 Kenichi Handa <handa@m17n.org>
13148
13149 * composite.c (get_composition_id): Pay attention to TAB component.
13150
13151 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13152 TAB. Adjust for the change of s->char2b which always points to
13153 the first element of allocated memory.
13154
13155 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13156
13157 * xdisp.c (handle_composition_prop): Set it->c to the first
13158 non-TAB component.
13159 (fill_composite_glyph_string): Change argument.
13160 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13161 (x_produce_glyphs): Fix handling of left/right padding.
13162
131632008-02-01 Kenichi Handa <handa@m17n.org>
13164
13165 * coding.c (detect_coding_system): Fix for handling off
13166 inhibit_iso_escape_detection. Fix for the case that no coding
13167 system is defined for a specific coding category.
13168
131692008-02-01 Kenichi Handa <handa@m17n.org>
13170
13171 * font.c (font_matching_entity): Delete unused local var.
13172
13173 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13174 opening a font.
13175
13176 * fileio.c (Finsert_file_contents): On recovering a file, assume
13177 Unix-like eol.
13178 (choose_write_coding_system): On auto-saving a file, force
13179 Unix-like eol.
13180
13181 * coding.c (setup_coding_system): Fix setting of
13182 coding->common_flags based on eol_type.
13183 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13184 inherit from it.
13185
131862008-02-01 Kenichi Handa <handa@m17n.org>
13187
13188 * alloc.c (NSTATICS): Increas to 0x600.
13189
131902008-02-01 Kenichi Handa <handa@m17n.org>
13191
13192 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13193 (ftfont_list): Don't check :name property.
13194 (ftfont_match): New function.
13195 (ftfont_pattern_entity): If the pattern doesn't contain
13196 FC_SPACING, don't assume FC_MONO.
13197
13198 * font.h (struct font_driver): New member `match'.
13199 (font_update_drivers): Adjust prototype.
13200
13201 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13202 property of FONT.
13203 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13204 them unconditionally.
13205 (font_matching_entity): New function.
13206 (font_open_by_name): Try font_matching_entity if exact match is
13207 not found.
13208 (font_update_drivers): Delete the arg FONT. Return a list of
13209 actually used backends. Don't free faces, font caches here.
13210 Don't store data in frame parameters. Don't call x_set_font.
13211 (Ffont_spec): Store :name property as is.
13212 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13213 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13214 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13215 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13216 Call font->driver->otf_gsub instead of font_otf_gsub.
13217
13218 * frame.c (x_set_font_backend): Do more works that were done in
13219 font_update_drivers before.
13220
13221 * xfont.c (xfont_match): New function.
13222 (xfont_driver): Set xfont_driver.match to xfont_match.
13223 (xfont_draw): Set font in GC if necessary.
13224
13225 * ftxfont.c (ftxfont_match): New function.
13226 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13227
13228 * xftfont.c (xftfont_match): New function.
13229 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13230
132312008-02-01 Kenichi Handa <handa@m17n.org>
13232
13233 * font.h (struct font): New member scalable.
13234 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13235 (font_otf_gsub): Adjust prototype.
13236
13237 * font.c (font_otf_capability): Fix handling of the default langsys.
13238 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13239 Check the contents of SPEC.
13240 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13241 (check_gstring): New function.
13242 (REPLACEMENT_CHARACTER): New macro.
13243 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13244 glyph codes of GSTRING.
13245 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13246 (font_prepare_composition): Set cmp->glyph_len.
13247 (font_open_entity): Set font->scalable.
13248 (Ffont_get): Handle :otf property.
13249 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13250 functions.
13251 (Fquery_font): Use font->font.full_name.
13252 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13253 Sfont_otf_alternates.
13254
13255 * ftfont.c (ftfont_open): Set font->font.full_name and
13256 font->font.name properly. Fix calculation of font->font.height
13257 and font->min_width.
13258
13259 * ftxfont.c (ftxfont_create_gcs): New function.
13260 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13261 (ftxfont_draw_backgrond): Fix filling region.
13262 (ftxfont_default_fid): New function.
13263 (ftxfont_open): Set xfont->fid to the return value of
13264 ftxfont_default_fid.
13265 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13266 (ftxfont_done_face): Free only GCs that are created by
13267 ftxfont_create_gcs.
13268 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13269
13270 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13271 Clip to src->width, etc (not src->clip_XXX).
13272
13273 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13274 FontBackend frame parameter.
13275
132762008-02-01 Kenichi Handa <handa@m17n.org>
13277
13278 * font.h (struct font_driver_list): New member `on'.
13279 (Fclear_font_cache): EXFUN it.
13280 (font_update_drivers): Extern it.
13281
13282 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13283 (font_list_entities): Check driver_list->on.
13284 (register_font_driver): Initalize `on' member to 0.
13285 (font_update_drivers): New function.
13286 (Fclear_font_cache): Check driver_list->on.
13287
13288 * frame.h (Qfont_backend): Extern it.
13289 (x_set_font_backend): Extern it.
13290
13291 * frame.c (Qfont_backend): New variable.
13292 (frame_parms): New element for font-backend.
13293 (x_set_font_backend): New function.
13294
13295 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13296 FontBackend frame parameter.
13297 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13298 x_set_font_backend.
13299
13300 * xfont.c (xfont_list): Don't try listing by :name property if the
13301 name is not for XLFD.
13302
133032008-02-01 Kenichi Handa <handa@m17n.org>
13304
13305 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13306 (LGLYPH_SET_TO): New macros.
13307 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13308 element of G is vector or not.
13309 (font_at): Extern it.
13310
13311 * font.c: Include window.h.
13312 (font_lispy_object): New function.
13313 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13314 end of valid glyph.
13315 (font_close_object): Fix getting (struct font *).
13316 (font_at): New function.
13317 (Ffont_get): If FONT is a font-object, get entity from it.
13318 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13319 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13320 range check.
13321 (Ffont_at): New function.
13322 (syms_of_font): Defsubr Sfont_at.
13323
13324 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13325 before the entry for Qcomposition.
13326 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13327 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13328 the font in gstring.
13329 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13330 LGLYPH_FORM (g) to detect the end of valid glyph.
13331 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13332 we are composing with gstring.
13333
13334 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13335 Check if adjustment is vector or not.
13336
13337 * Makefile.in (font.o): Make it depends on window.h.
13338
133392008-02-01 Kenichi Handa <handa@m17n.org>
13340
13341 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13342 adjustment is vector or not.
13343
133442008-02-01 Miles Bader <miles@gnu.org>
13345
13346 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13347
133482008-02-01 Kenichi Handa <handa@m17n.org>
13349
13350 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13351 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13352 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13353
13354 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13355 (DEVICE_DELTA): Fix typo.
13356 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13357 LGLYPH format.
13358
13359 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13360 the change of LGLYPH format.
13361
133622008-02-01 Kenichi Handa <handa@m17n.org>
13363
13364 * ftfont.c (ftfont_list): Fix typo.
13365 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13366
133672008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13368
13369 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13370
13371 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13372 xftface_info is non-NULL.
13373
133742008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13375
13376 * ftfont.c (ftfont_list): Move misplaced #endif.
13377
133782008-02-01 Kenichi Handa <handa@m17n.org>
13379
13380 * ftfont.c (ftfont_list): Pay attention to the case that
13381 FC_CAPABILITY is not defined.
13382
133832008-02-01 Kenichi Handa <handa@m17n.org>
13384
13385 * xftfont.c (xftfont_open): Set charset related members to -1.
13386
13387 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13388 QCname.
13389 (ftfont_open): Set charset related members to -1.
13390
13391 * fontset.c (Votf_script_alist): New variable.
13392 (syms_of_fontset): Initialize it.
13393 (fontset_font): Delete unused variable.
13394
13395 * fontset.h (Votf_script_alist): Extern it.
13396
13397 * font.c (font_find_for_lface): Optimize code.
13398
13399 * font.h (font_close_object, font_merge_old_spec): Extern them.
13400
134012008-02-01 Kenichi Handa <handa@m17n.org>
13402
13403 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13404 (syms_of_font): Initialize them.
13405 (font_pixel_size): Allow float value in dpi.
13406 (font_prop_validate_type): Delete.
13407 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13408 Change caller.
13409 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13410 (font_prop_validate_extra): Delete.
13411 (font_prop_validate_spacing): New function.
13412 (font_property_table): Add elements for all known properties.
13413 (get_font_prop_index): Rename from check_font_prop_name. New
13414 argument FROM. Change caller.
13415 (font_prop_validate): Validate all known properties.
13416 (font_put_extra): Delete argument force. Change caller.
13417 (font_expand_wildcards): Make it static. Fix the way of shrinking
13418 the possible range.
13419 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13420 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13421 Change caller.
13422 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13423 (font_parse_fcname): Delete argument merge. Fix parsing of point
13424 size. Don't validate properties values here. Change caller.
13425 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13426 (font_open_by_name): Delete unused variable.
13427 (Ffont_spec): Likewise. Validate property values.
13428 (Ffont_match_p): New function.
13429
13430 * font.h (QCscalable): Extern it.
13431 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13432
13433 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13434
13435 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13436 (xfont_list_pattern): New function.
13437 (xfont_list): Use xfont_list_pattern.
13438
134392008-02-01 Kenichi Handa <handa@m17n.org>
13440
13441 * font.h (Flist_fonts): EXFUN it.
13442
134432008-02-01 Jason Rumney <jasonr@gnu.org>
13444
13445 * w32term.c (w32_initialize): Add back smoothing_type and
13446 smoothing_enabled definitions.
13447
134482008-02-01 Kenichi Handa <handa@m17n.org>
13449
13450 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13451 s->face->font on determining underline position.
13452
134532008-02-01 Kenichi Handa <handa@m17n.org>
13454
13455 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13456 (font_has_char): Accept font-object too.
13457 (font_find_for_lface): Try at first with a size specified in face.
13458
134592008-02-01 Kenichi Handa <handa@m17n.org>
13460
13461 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13462 font_open_by_name.
13463
134642008-02-01 Kenichi Handa <handa@m17n.org>
13465
13466 * font.h (QCspacing, QCdpi): Extern them.
13467 (enum font_spacing): New enum.
13468 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13469
13470 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13471 (QCspacing, QCdpi): New variables.
13472 (syms_of_font): Initialize them.
13473 (font_pixel_size): New function.
13474 (font_put_extra): New function.
13475 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13476 in FONT_EXTRA.
13477 (font_parse_fcname): Handle enumerated values (e.g. bold).
13478 Fix handling font size. Add QCname property that contains only
13479 unknown properties.
13480 (font_score): Change argument. Change caller. Pay attention to
13481 FONT_PIXEL_SIZE_QUANTUM.
13482 (font_sort_entites, font_list_entities, font_find_for_lface)
13483 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13484 (Ffont_spec): Add QCname property that contains only unknown properties.
13485
13486 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13487 include weight in listing pattern, instead check weight of each
13488 listed font. Don't include scalable in pattern. Pay attention to
13489 FONT_PIXEL_SIZE_QUANTUM.
13490
134912008-02-01 Kenichi Handa <handa@m17n.org>
13492
13493 * font.c (font_parse_fcname): Fix parsing of point-size.
13494 (font_unparse_fcname): Produce symbolic names for style properties.
13495 (font_list_entities): Handle float size correctly.
13496 (font_open_by_name): Prefer `normal' property values if the name
13497 doesn't specify them.
13498
13499 * fontset.c (Finternal_char_font): Use font_get_name, not
13500 Ffont_xlfd_name.
13501
13502 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13503 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13504 pattern. Don't force scalable.
13505
13506 * xftfont.c (xftfont_open): For generating a name, start from
13507 96-byte buffer.
13508
135092008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13510
13511 * frame.h (x_new_fontset2): Fix prototype.
13512
135132008-02-01 Kenichi Handa <handa@m17n.org>
13514
13515 * font.h (struct font_driver): Delete member parse_name.
13516 (font_match_p, font_get_spec, font_parse_fcname)
13517 (font_unparse_fcname): Extern them.
13518 (font_get_name): Adjust prototype.
13519
13520 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13521 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13522 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13523 unnecessary checks for weight, slant, and swidth.
13524 (font_parse_fcname): New function.
13525 (font_unparse_fcname): New function.
13526 (font_parse_name): New function.
13527 (font_match_p): New function.
13528 (font_get_name): Change return value to Lisp string.
13529 (font_get_spec): New function.
13530 (Qunspecified, Qignore_defface): Don't extern them.
13531 (font_find_for_lface): Assume that LFACE is fully specified.
13532 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13533 object, use it for FACE.
13534 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13535 driver->parse_name.
13536 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13537
13538 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13539 prototype.
13540
13541 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13542 argument F. Don't call Fnew_fontset. Instead, directly call
13543 make_fontset.
13544
13545 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13546
13547 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13548 of x_new_fontset2.
13549
13550 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13551 (Qsans__serif): New variables.
13552 (ftfont_generic_family_list): New variable.
13553 (syms_of_ftfont): Initialize the above variables.
13554 (ftfont_pattern_entity): Delete argument NAME.
13555 (ftfont_list_generic_family): New function.
13556 (ftfont_parse_name): Delete this function.
13557 (ftfont_list): Try generic family only when FcFontList found no font.
13558 (ftfont_list_family): Fix args to FcObjectSetBuild.
13559
13560 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13561 object in attrs[LFACE_FONT_INDEX].
13562 (set_lface_from_font_name): Cancel all changes for font-backend.
13563 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13564 function.
13565 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13566 font object in QCfont attribute.
13567 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13568 (realize_default_face) [USE_FONT_BACKEND]: Call
13569 set_lface_from_font_and_fontset.
13570
13571 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13572 "fixed", and signal error here if no suitable font was found.
13573
13574 * xfont.c (xfont_parse_name): Delete this function.
13575
13576 * xftfont.c (xftfont_open): Change coding style of error
13577 handling. Generate fontconfig's fontname pattern.
13578
13579 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13580 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13581
13582 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13583 Both args FONTSET and FONT_OBJECT must be existing ones.
13584
135852008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13586
13587 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13588
135892008-02-01 Kenichi Handa <handa@m17n.org>
13590
13591 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13592
13593 * font.h (struct font): Fix typo.
13594
13595 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13596 XLFD_XXX_INDEX.
13597 (enum xlfd_field_mask): New enum.
13598 (intern_font_field): Changed argument. Change caller. If digits
13599 are followed by non-digits, return a symbol.
13600 (font_expand_wildcards): New function.
13601 (font_parse_xlfd): Fix wildcard handling.
13602 (Ffont_spec): If :name is specified, reflect the info in the other
13603 properties.
13604
13605 * ftfont.c (ftfont_pattern_entity): Fix typo.
13606 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13607 locale.
13608
136092008-02-01 Kenichi Handa <handa@m17n.org>
13610
13611 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13612
13613 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13614 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13615 registry doesn't specify encoding part.
13616 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13617 (font_open_by_name): At first try parsing the name.
13618 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13619 as Lisp symbols.
13620
13621 * fontset.c (reorder_font_vector): Pay attention to the case that
13622 the 3rd element of font_def is nil.
13623 (fontset_font): For the default fontset, append one more fontset
13624 elements for a script-based font specification. Don't add script
13625 attribute on finding a font.
13626 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13627 font name.
13628 (fontset_ascii_font): If a font can't be opened, return nil.
13629
13630 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13631 (ftfont_pattern_entity): New function.
13632 (ftfont_get_cache): Assume that freetype_font_cache is already
13633 initialized.
13634 (ftfont_list): Handle the case that a file is specified in font
13635 name. Use ftfont_pattern_entity to generate entities.
13636 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13637 (syms_of_ftfont): Initialize freetype_font_cache.
13638
13639 * xftfont.c (xftfont_open): Make the font name fontconfig's
13640 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13641 (xftfont_close): Free font->font.name if not NULL.
13642
13643 * xfont.c (xfont_list): If script is specified for a font, return
13644 null_vector.
13645 (xfont_list_family): Declare argument type.
13646
13647 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13648 name, set LFACE_FONT (lface) to nil.
13649
13650 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13651 return Qnil.
13652
136532008-02-01 Kenichi Handa <handa@m17n.org>
13654
13655 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13656 (standard_args): Add "-enable-font-backend".
13657
136582008-02-01 Kenichi Handa <handa@m17n.org>
13659
13660 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13661 (struct xftdraw_list, xftdraw_list): Delete them.
13662 (register_xftdraw, check_xftdraw): Delete them.
13663 (xftfont_prepare_face): Don't call register_xftdraw.
13664 (xftfont_done_face): Don't call check_xftdraw.
13665 (xftfont_draw): Get background color only when with_background is
13666 nonzero.
13667
13668 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13669
136702008-02-01 Kenichi Handa <handa@m17n.org>
13671
13672 These changes are for the new font handling codes.
13673
13674 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13675 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13676 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13677 (FONTSRC, FONTOBJ): New variables.
13678 (obj): Add $(FONTOBJ).
13679 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13680 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13681 @LIBOTF_LIBS@.
13682 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13683 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13684
13685 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13686
13687 * character.h (Vscript_representative_chars): Extern it.
13688
13689 * character.c (Vscript_representative_chars): New variable.
13690 (syms_of_character): Declare it as a Lisp variable.
13691
13692 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13693 enable_font_backend is nonzero, accept the composition method
13694 COMPOSITION_WITH_GLYPH_STRING.
13695
13696 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13697 enumeration COMPOSITION_WITH_GLYPH_STRING.
13698
13699 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13700 members clip_x, clip_y, clip_width, and clip_height.
13701 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13702
13703 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13704 --enable-font-backend. Call syms_of_font.
13705
13706 * fns.c (assoc_no_quit): New function.
13707
13708 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13709 (face_for_font, new_fontset_from_font)
13710 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13711
13712 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13713 (fontset_font, fontset_ascii, face_for_char)
13714 (make_fontset_for_ascii_face, Ffont_info)
13715 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13716 is nonzero, use font-backend mechanism.
13717 (find_font_encoding): Make it non-static.
13718 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13719 New functions.
13720
13721 * frame.h (struct frame): New members resx and resy.
13722 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13723 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13724
13725 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13726 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13727
13728 * lisp.h (assoc_no_quit): Extern it.
13729
13730 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13731 Through out the file, use FONT_INFO_FROM_FACE instead of
13732 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13733 rif->per_char_metric.
13734 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13735 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13736 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13737 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13738 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13739 nonzero, use font-backend mechanism.
13740 (get_per_char_metric): New function.
13741
13742 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13743 (set_lface_from_font_name)
13744 (set_font_frame_param, free_realized_face)
13745 (prepare_face_for_display, clear_face_gcs)
13746 (Finternal_set_font_selection_order, realize_x_face)
13747 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13748 font-backend mechanism.
13749 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13750 (load_face_font) [USE_FONT_BACKEND]: Abort.
13751 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13752 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13753
13754 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13755 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13756 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13757 nonzero, register all available font drivers. Call
13758 x_default_font_parameter for deciding a font.
13759 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13760
13761 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13762 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13763 (x_set_glyph_string_clipping_exactly)
13764 (x_compute_glyph_string_overhangs)
13765 (x_draw_glyph_string_foreground)
13766 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13767 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13768 enable_font_backend is nonzero, use font-backend mechanism.
13769 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13770
137712008-02-01 Kenichi Handa <handa@m17n.org>
13772
13773 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13774 system_eol_type.
13775 (syms_of_coding): Initialize system_eol_type.
13776
13777 * process.c (Fset_process_coding_system): Inherit system's eol
13778 format if necessary.
13779
137802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13781
13782 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13783
137842008-02-01 Kenichi Handa <handa@m17n.org>
13785
13786 * coding.c (decode_eol): Pay attention to buffer relocation in
13787 del_range_2.
13788 (decode_coding): Call decode_eol before restoring undo_list.
13789
137902008-02-01 Kenichi Handa <handa@m17n.org>
13791
13792 * charset.c (Fdefine_charset_internal): Fix setting of
13793 emacs_mule_bytes.
13794
137952008-02-01 Kenichi Handa <handa@m17n.org>
13796
13797 * keyboard.c (read_char): Check if C is a character or not before
13798 looking up Vkeyboard_translate_table.
13799
138002008-02-01 Kenichi Handa <handa@m17n.org>
13801
13802 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13803 condition to terminate the loop.
13804
138052008-02-01 Kenichi Handa <handa@m17n.org>
13806
13807 * coding.c (produce_composition): Compare charbuf[i] instead of
13808 args[i] against 0.
13809 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13810
138112008-02-01 Kenichi Handa <handa@m17n.org>
13812
13813 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13814 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13815 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13816 detect_coding.
13817 (emacs_mule_char): Handle old style (Emacs 20) component character
13818 of a composition.
13819 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13820 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13821 composition rule.
13822 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13823
138242008-02-01 Kenichi Handa <handa@m17n.org>
13825
13826 * coding.c (encode_coding_ccl): Allocate destination dynamically
13827 when necessary.
13828
138292008-02-01 Kenichi Handa <handa@m17n.org>
13830
13831 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13832 the loop. When quitted, show a proper error message.
13833
138342008-02-01 Kenichi Handa <handa@m17n.org>
13835
13836 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13837 src->clip_head and src->clip_tail temporarily instead of src->hl.
13838
13839 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13840 character sequence.
13841 (Fccl_execute_on_string): Use ASET, not XSET.
13842
138432008-02-01 Kenichi Handa <handa@m17n.org>
13844
13845 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13846
138472008-02-01 Kenichi Handa <handa@m17n.org>
13848
13849 * coding.c (decode_coding): Fix the condition of terminating the
13850 decoding loop.
13851
138522008-02-01 Kenichi Handa <handa@m17n.org>
13853
13854 * data.c (Faset): On setting a character bigger than 255 in a
13855 unibyte string, signal an error instead of make the string multibyte.
13856
138572008-02-01 Kenichi Handa <handa@m17n.org>
13858
13859 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13860 made by a mapping table.
13861
138622008-02-01 Kenichi Handa <handa@m17n.org>
13863
13864 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13865 not.
13866 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13867 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13868
13869 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13870 s->face is NULL or not.
13871
138722008-02-01 Kenichi Handa <handa@m17n.org>
13873
13874 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13875 (x_draw_glyph_string): Fix drawing of right_overhang and
13876 left_overhang around/on cursor.
13877
13878 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13879
138802008-02-01 Kenichi Handa <handa@m17n.org>
13881
13882 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13883
138842008-02-01 Kenichi Handa <handa@m17n.org>
13885
13886 * coding.c (Fdefine_coding_system_internal)
13887 (Fdefine_coding_system_alias): Avoid a duplicated element in
13888 Vcoding_system_alist.
13889
138902008-02-01 Kenichi Handa <handa@m17n.org>
13891
13892 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13893
13894 * coding.c (Qcoding_system_define_form): New variable.
13895 (syms_of_coding): Intern and staticpro it.
13896 (Fcoding_system_p): Check Qcoding_system_define_form.
13897 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13898
13899 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13900 Fcoding_system_p.
13901 (CHECK_CODING_SYSTEM): If ID is not available, call
13902 Fcheck_coding_system.
13903 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13904 Try also Fcheck_coding_system.
13905
139062008-02-01 Kenichi Handa <handa@m17n.org>
13907
13908 * coding.c (code_conversion_restore): GCPRO arg.
13909
139102008-02-01 Kenichi Handa <handa@m17n.org>
13911
13912 * character.c (lisp_string_width): Check multibyteness of STRING.
13913
139142008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13915
13916 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13917 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13918 (decode_mac_font_name): Use decode_coding_c_string instead of
13919 decode_coding.
13920 (x_load_font): Initialize fontp->fontset to -1. Set
13921 fontp->encoding_type.
13922
139232008-02-01 Kenichi Handa <handa@m17n.org>
13924
13925 * search.c (search_buffer): Give up BM search on case-fold-search
13926 if one of a target character has a case-equivalence of different
13927 byte length even if that target charcter is an ASCII.
13928 (simple_search): Fix calculation of byte length of matched text.
13929 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13930
139312008-02-01 Kenichi Handa <handa@m17n.org>
13932
13933 * coding.c (decode_coding): Fix handling of invalid bytes.
13934
139352008-02-01 Kenichi Handa <handa@m17n.org>
13936
13937 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13938 Unicode characters.
13939
139402008-02-01 Kenichi Handa <handa@m17n.org>
13941
13942 * coding.c (encode_coding_object): If a pre-write-conversion
13943 function makes a new buffer, kill it.
13944
139452008-02-01 Kenichi Handa <handa@m17n.org>
13946
13947 * coding.c (QCascii_compatible_p): New variable.
13948 (syms_of_coding): Initialize it.
13949 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13950 calling string_char.
13951 (record_conversion_result): Add `default:' case.
13952 (coding_charset_list): Delete unused variable `coding_type'.
13953 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13954 property in the plist of the coding system.
13955 (Fcoding_system_put): Check QCascii_compatible_p.
13956
139572008-02-01 Miles Bader <miles@gnu.org>
13958
13959 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13960 removed calculation of frame `f', as it's now used.
13961
139622008-02-01 Kenichi Handa <handa@m17n.org>
13963
13964 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13965 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13966 (UNIDATA): New variable.
13967 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13968 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13969 $(RUN_TEMACS) unconditionally.
13970
139712008-02-01 Kenichi Handa <handa@m17n.org>
13972
13973 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13974 (admindir): New variable.
13975 ($(lispsource)international/charprop.el): New target.
13976
139772008-02-01 Miles Bader <miles@gnu.org>
13978
13979 * character.c (chars-in-region): Remove obsolete function.
13980 (syms_of_character): Remove its initialization.
13981
139822008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
13983
13984 * w32select.c (validate_coding_system)
13985 (setup_windows_coding_system): New functions.
13986 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13987 setup_windows_coding_system.
13988 (setup_config, Fw32_get_clipboard_data): Use
13989 validate_coding_system.
13990 (Fx_selection_exists): Move call to setup_config to a place
13991 where signals are allowed.
13992
13993 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13994 (Fcheck_coding_system): Add declarations.
13995
139962008-02-01 Kenichi Handa <handa@m17n.org>
13997
13998 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13999
140002008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14001
14002 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14003 string as the second argument for x_new_fontset.
14004
140052008-02-01 Kenichi Handa <handa@m17n.org>
14006
14007 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14008 (encode_coding_object): Use safe_call instead of call2.
14009
140102008-02-01 Kenichi Handa <handa@m17n.org>
14011
14012 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14013
14014 * Makefile.in (lisp): Include charprop.el.
14015
140162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14017
14018 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14019 Not sure if it's unnecessary.
14020
140212008-02-01 Steven Tamm <steventamm@mac.com>
14022
14023 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14024 some possibly unnecessary fontset checking code that crashed
14025 when creating a new frame.
14026
140272008-02-01 Kenichi Handa <handa@m17n.org>
14028
14029 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14030 lookup_face.
14031
14032 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14033
14034 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14035
140362008-02-01 Kenichi Handa <handa@m17n.org>
14037
14038 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14039 (coding_charset_list): New function.
14040
14041 * coding.h (coding_charset_list): Extern it.
14042
140432008-02-01 Kenichi Handa <handa@m17n.org>
14044
14045 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14046 concatenation of family and registry.
14047
140482008-02-01 Kenichi Handa <handa@m17n.org>
14049
14050 * character.h (BYTE8_STRING): Fix typo.
14051
14052 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14053 string to multibyte (sync to HEAD).
14054
14055 * casefiddle.c (casify_region): Handle changes in byte-length
14056 using replace_range_2 (sync to HEAD).
14057
140582008-02-01 Andreas Schwab <schwab@suse.de>
14059
14060 * chartab.c (map_char_table): GCPRO table and arg.
14061
140622008-02-01 Kenichi Handa <handa@m17n.org>
14063
14064 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14065 already at limit.
14066
140672008-02-01 Kenichi Handa <handa@m17n.org>
14068
14069 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14070 instead of fast_c_string_match_ignore_case.
14071 (find_font_encoding): Change argument to Lisp_Object. Use
14072 fast_string_match_ignore_case instead of
14073 fast_c_string_match_ignore_case. Change caller.
14074
140752008-02-01 Kenichi Handa <handa@m17n.org>
14076
14077 * xdisp.c (get_next_display_element): In unibyte case, decide to
14078 display in octal form by checking a character by
14079 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14080
14081 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14082
14083 * character.c (unibyte_has_multibyte_table): New variable.
14084
14085 * character.h (unibyte_has_multibyte_table): Extern it.
14086 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14087
140882008-02-01 Kenichi Handa <handa@m17n.org>
14089
14090 * coding.c (encode_coding_iso_2022): Fix handling of charset
14091 annotation.
14092
140932008-02-01 Kenichi Handa <handa@m17n.org>
14094
14095 * coding.c (setup_coding_system): If coding_system is nil, use
14096 Qundecided.
14097 (Fterminal_coding_system): Return nil if terminal coding system is
14098 `undecided'.
14099 (syms_of_coding): Define coding-system `undecided' here. Setup
14100 terminal_coding as `undecided'.
14101
141022008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * xdisp.c (message_dolog, set_message_1): Call
14105 unibyte_char_to_multibyte with arg type int.
14106
14107 * lread.c (read1): Fix reading of a char-table.
14108
14109 * print.c (print_object): Include sub char-table in circularities
14110 detection.
14111
141122008-02-01 Kenichi Handa <handa@m17n.org>
14113
14114 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14115 Append the found sequences in car of ARGS instead of prepending.
14116
141172008-02-01 Kenichi Handa <handa@m17n.org>
14118
14119 * fileio.c (report_file_error): Make a unibyte string from
14120 strerror (errorno).
14121 (Fsubstitute_in_file_name): Fix the arg to
14122 unibyte_char_to_multibyte. It is evaluated twice.
14123
141242008-02-01 Kenichi Handa <handa@m17n.org>
14125
14126 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14127
141282008-02-01 Kenichi Handa <handa@m17n.org>
14129
14130 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14131 BOM is not found.
14132 (detect_coding, detect_coding_system): Optimization for ISO-2022
14133 when no 8-bit data is found.
14134
141352008-02-01 Jason Rumney <jasonr@gnu.org>
14136
14137 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14138
141392008-02-01 Kenichi Handa <handa@m17n.org>
14140
14141 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14142 CHARS.
14143
141442008-02-01 Steven Tamm <steventamm@mac.com>
14145
14146 * macterm.c (mac_encode_char): Add charset argument and update
14147 to use encoding_type.
14148 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14149 switch to pure fontset.
14150 (decode_mac_font_name): Temporarily remove decoding.
14151 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14152 (x_load_font): Temporarily remove encoding.
14153
141542008-02-01 Kenichi Handa <handa@m17n.org>
14155
14156 * xfaces.c (Fface_font): If frame is not on a window system,
14157 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14158 refer to face->font.
14159 (split_font_name_into_vector, build_font_name_from_vector)
14160 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14161 when HAVE_WINDOW_SYSTEM is defined.
14162
141632008-02-01 Kenichi Handa <handa@m17n.org>
14164
14165 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14166 (x_produce_glyphs): Fix setting of members of cmp in case
14167 cmp->glyph_len is zero.
14168
14169 * fontset.c (Fset_fontset_font): Fix docstring.
14170 (Ffontset_info): Make it backward compatible. New arg ALL.
14171
141722008-02-01 Kim F. Storm <storm@cua.dk>
14173
14174 * process.c (read_process_output): Grow decoding_buf when needed;
14175 this could cause a crash in allocate_string and compact_small_strings.
14176
141772008-02-01 Kenichi Handa <handa@m17n.org>
14178
14179 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14180
141812008-02-01 Kenichi Handa <handa@m17n.org>
14182
14183 * coding.c (setup_coding_system): Set coding->common_flags
14184 correctly for raw-text.
14185 (consume_chars): On encoding unibyte text by raw-text, don't check
14186 multibyte form.
14187 (encode_coding): On encoding by raw-text, never use translation tables.
14188
14189 * fileio.c (e_write): Short cut for the case of no encoding.
14190
141912008-02-01 Kenichi Handa <handa@m17n.org>
14192
14193 * coding.c (detect_coding, detect_coding_system): Delete unused
14194 variables.
14195
141962008-02-01 Kenichi Handa <handa@m17n.org>
14197
14198 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14199 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14200
142012008-02-01 Kenichi Handa <handa@m17n.org>
14202
14203 * coding.c (Ffind_coding_systems_region_internal): Include
14204 raw-text and no-conversion in the result.
14205
142062008-02-01 Kenichi Handa <handa@m17n.org>
14207
14208 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14209 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14210 FONT_DEF.
14211 (font_def_arg, add_arg, from_arg, to_arg): New args.
14212 (set_fontset_font): Change argument.
14213 (Fset_fontset_font): Fix for the case that TARGET is a script
14214 name and charset name.
14215 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14216
142172008-02-01 Kenichi Handa <handa@m17n.org>
14218
14219 * fontset.c (fontset_font): Rename from fontset_face. Change return
14220 value.
14221 (face_suitable_for_char_p, face_for_char): Adjust for the change
14222 of fontset_font.
14223 (make_fontset_for_ascii_face): Fix setting of the fontset element
14224 for ASCII.
14225 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14226 to get a font name.
14227 (Ffontset_info): Adjust for the change of fontset_font.
14228
14229 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14230
14231 * character.h (LEADING_CODE_LATIN_1_MIN)
14232 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14233
142342008-02-01 Kenichi Handa <handa@m17n.org>
14235
14236 * editfns.c (check_translation): New function.
14237 (Ftranslate_region_internal): Handle M:N mapping.
14238
142392008-02-01 Kenichi Handa <handa@m17n.org>
14240
14241 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14242
142432008-02-01 Kenichi Handa <handa@m17n.org>
14244
14245 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14246 goto invalid_code.
14247 (decode_coding_iso_2022): Fix handling of invalid designation.
14248
14249 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14250 after calling code_conversion_save.
14251
142522008-02-01 Kenichi Handa <handa@m17n.org>
14253
14254 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14255
14256 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14257
14258 * fontset.c: Include "intervals.h".
14259 (fontset_face): Fix comparing of Lisp_Objects.
14260 (free_face_fontset, new_fontset_from_font_name): Fix
14261 Lisp_Object/int mixup.
14262
14263 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14264
14265 * coding.c: Add many prototypes for static functions.
14266 (get_translation_table): Allow max_lookup to be NULL.
14267 (decode_coding, Ffind_coding_systems_region_internal)
14268 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14269 get_translation_table with max_lookup NULL.
14270
142712008-02-01 Kenichi Handa <handa@m17n.org>
14272
14273 * coding.c (get_translation_table): Declare it as Lisp_Object.
14274 (LOOKUP_TRANSLATION_TABLE): New macro.
14275 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14276 instead of CHAR_TABLE_REF.
14277
142782008-02-01 Kenichi Handa <handa@m17n.org>
14279
14280 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14281 annotation data format.
14282 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14283 Change arguments FROM and TO to single argument NCHARS. Change caller.
14284 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14285 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14286 (decode_coding_ccl, decode_coding_charset): Pay attention to
14287 coding->charbuf_used.
14288 (get_translation): New function.
14289 (produce_chars): New arguments translation_table and last_block.
14290 Translate characters here. Return number of carryover chars.
14291 Change caller.
14292 (produce_composition): New argument pos. Change caller.
14293 Adjust for the change of annotation data format.
14294 (produce_charset, produce_annotation): Likewise.
14295 (decode_coding, encode_coding): Don't call translate_chars.
14296 (consume_chars): New arg translation_table. Change caller.
14297 (translate_chars): Delete.
14298 (syms_of_coding): Make translation-table's number of extra slots 2.
14299
143002008-02-01 Kenichi Handa <handa@m17n.org>
14301
14302 * search.c (simple_search): Fix setting this_pos_byte in backward
14303 search.
14304
14305 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14306 byte sequence.
14307 (detect_coding_ccl): Fix setting of the variable valids.
14308
143092008-02-01 Kenichi Handa <handa@m17n.org>
14310
14311 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14312
14313 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14314
14315 * editfns.c (Ftranslate_region_internal): Rename from
14316 Ftranslate_region. Accept a char-table in TABLE.
14317 (syms_of_editfns): Defsubr Stranslate_region_internal.
14318
14319 * xfaces.c (set_lface_from_font_name): If a font is specified for
14320 a frame, generate a fontset from the font.
14321 (build_scalable_font_name): If the scalable font is requested for
14322 a specific size, don't change that size.
14323 (try_font_list): Try a scalable font also in the case that a
14324 pattern string is specified.
14325
143262008-02-01 Kenichi Handa <handa@m17n.org>
14327
14328 * xfaces.c (Fface_font): New optional arg CHARACTER.
14329
143302008-02-01 Kenichi Handa <handa@m17n.org>
14331
14332 * charset.h (CHARSET_OFFSET): New macro.
14333
143342008-02-01 Kenichi Handa <handa@m17n.org>
14335
14336 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14337
14338 * fontset.c (fontset_face): Handle the case that repertory is a
14339 char-table.
14340 (find_font_encoding): Return nil for unknown encoding.
14341 (Fset_fontset_font): Ignore a font of unknown encoding.
14342
143432008-02-01 Kenichi Handa <handa@m17n.org>
14344
14345 * keymap.c (describe_vector): Handle default value of a char table.
14346
14347 * fontset.c (fontset_face): Handle fallback fonts correctly.
14348 (Ffontset_info): Return infomation about fallback fonts.
14349
143502008-02-01 Kenichi Handa <handa@m17n.org>
14351
14352 * fontset.c (FONTSET_DEFAULT): New macro.
14353 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14354 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14355 the case that it is nil.
14356 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14357 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14358
14359 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14360 subset or superset.
14361
143622008-02-01 Kenichi Handa <handa@m17n.org>
14363
14364 * emacs.c (main): Call init_charset after syms_of_XXX.
14365
14366 * charset.c (Vcharset_map_directory): Delete.
14367 (Vcharset_map_path): New variable.
14368 (load_charset_map_from_file): Use Vcharset_map_path instead.
14369 (init_charset): Initialize Vcharset_map_path.
14370 (syms_of_charset): Delete declaration of "charset-map-directory",
14371 add declaration of "charset-map-path".
14372
143732008-02-01 Kenichi Handa <handa@m17n.org>
14374
14375 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14376 ASCII only string.
14377
14378 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14379
14380 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14381 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14382
143832008-02-01 Kenichi Handa <handa@m17n.org>
14384
14385 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14386
14387 * coding.c (QCmnemonic, QCdefalut_char)
14388 (QCdecode_translation_table, QCencode_translation_table)
14389 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14390 (get_translation_table): Return a list of translation tables if
14391 necessary.
14392 (decode_coding): Call get_translation_table with ENCODEP 0.
14393 (char_encodable_p): If translation_table is non-nil, always call
14394 translate_char.
14395 (Fdefine_coding_system_internal): Accept list of translation
14396 tables as :encode-translation-table and :decode-translation-table.
14397 (Fcoding_system_put): New function.
14398 (syms_of_coding): Declare new symbols. Defsubr
14399 Scoding_system_put.
14400 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14401 typically JISX0212.
14402
14403 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14404 when the charset is superset type.
14405
14406 * character.c (translate_char): Accept list of translation tables.
14407
144082008-02-01 Kenichi Handa <handa@m17n.org>
14409
14410 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14411 (CODING_ATTR_TRANS_TBL): New macro.
14412
14413 * coding.c (get_translation_table): New function.
14414 (translate_chars): Fix the bug of skipping annotation data.
14415 (decode_coding, encode_coding): Utilize get_translation_table.
14416 (char_encodable_p, Funencodable_char_position): Translate char if
14417 necessary.
14418 (Ffind_coding_systems_region_internal)
14419 (Fcheck_coding_systems_region): Setup translation table for encode
14420 in a coding system attribute vector in advance.
14421 (Fdefine_coding_system_internal): Allow a symbol as translation
14422 table. For shift-jis type coding system, allow 4th charset.
14423
144242008-02-01 Kenichi Handa <handa@m17n.org>
14425
14426 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14427
14428 * xdisp.c (get_next_display_element): Pass -1 as POS to
14429 FACE_FOR_CHAR if displaying a C-string.
14430
144312008-02-01 Kenichi Handa <handa@m17n.org>
14432
14433 * composite.c (get_composition_id): Handle xoff and yoff in a
14434 composition rule.
14435
14436 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14437 (struct composition): New member lbearing and rbearing.
14438
14439 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14440 (x_get_glyph_overhangs): Handle a composition glyph.
14441 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14442
14443 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14444 composition glyph.
14445
144462008-02-01 Kenichi Handa <handa@m17n.org>
14447
14448 * print.c: Include charset.h.
14449 (Vprint_charset_text_property): New variable.
14450 (Qdefault): Extern it.
14451 (PRINT_STRING_NON_CHARSET_FOUND)
14452 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14453 (print_check_string_result): New variable.
14454 (print_check_string_charset_prop): New function.
14455 (print_prune_charset_plist): New variable.
14456 (print_prune_string_charset): New function.
14457 (print_object): Call print_prune_string_charset if
14458 Vprint_charset_text_property is not t.
14459 (print_interval): Print nothing if interval->plist is nil.
14460 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14461 variable. Init and staticpro print_prune_charset_plist.
14462
144632008-02-01 Kenichi Handa <handa@m17n.org>
14464
14465 * fontset.c (new_fontset_from_font_name): Use the specified font
14466 for all characters in the new fontset.
14467
14468 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14469 OBJECT args.
14470
14471 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14472 OBJECT args for composition too.
14473
14474 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14475 OBJECT args.
14476
144772008-02-01 Kenichi Handa <handa@m17n.org>
14478
14479 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14480
14481 * fontset.c (reorder_font_vector): Adjust for the change of
14482 FONT_DEF format.
14483 (fontset_face): New arg id. Change caller.
14484 (face_for_char): New args pos and object.
14485 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14486 (fs_query_fontset): Check NAME by Fassoc too.
14487 (Fset_fontset_font): Allow non-XLFD font name.
14488 (Ffontset_info): Adjust for the change of FONT_DEF format.
14489
14490 * fontset.h (face_for_char): Adjust prototype.
14491
14492 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14493 (append_space, extend_face_to_end_of_line)
14494 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14495 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14496
14497 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14498 POS and OBJECT args.
14499
14500 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14501 POS and OBJECT args.
14502
145032008-02-01 Jason Rumney <jasonr@gnu.org>
14504
14505 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14506 of GlobalAlloc'ed memory.
14507
145082008-02-01 Kenichi Handa <handa@m17n.org>
14509
14510 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14511
14512 * charset.h (charset_table_used): Delete extern.
14513
14514 * charset.c (charset_table_used): Make it static.
14515 (map_charset_chars): Fix args to c_function with.
14516
14517 * chartab.c (map_sub_char_table_for_charset): Fix args to
14518 c_function with.
14519
14520 * coding.h (enum coding_result_code): Delete
14521 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14522
14523 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14524 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14525 (Vlast_code_conversion_error): New variables.
14526 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14527 (ONE_MORE_BYTE): Record error if any instead of signaling an
14528 error. If non-ASCII multibyte char is found, return the negative
14529 value of the code. All callers changed to check it.
14530 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14531 (record_conversion_result): New function. Change all codes setting
14532 coding->result to call this function.
14533 (detect_coding_utf_8, decode_coding_utf_8)
14534 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14535 Don't use the local variable incomplete.
14536 (emacs_mule_char): Change the second arg to `const'.
14537 (decode_coding): Fix of flushing out unprocessed data.
14538 (make_conversion_work_buffer): Fix making of a work buffer.
14539 (decode_coding_object): Return coding->dst_object.
14540
14541 * fontset.c (set_fontset_font): Fix args.
14542
14543 * lisp.h (CHARACTERBITS): Define as 22.
14544
14545 * process.c (send_process): Be sure to set coding->src_multibyte.
14546
14547 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14548
145492008-02-01 Kenichi Handa <handa@m17n.org>
14550
14551 * xdisp.c (handle_auto_composed_prop): Give limit to
14552 Fnext_single_char_property_change.
14553
145542008-02-01 Kenichi Handa <handa@m17n.org>
14555
14556 * composite.c (syms_of_composite): Don't make the composition hash
14557 table weak.
14558
14559 * fontset.c (Fset_fontset_font): Fix docstring.
14560
14561 * lisp.h (detect_coding_system): Adjust prototype.
14562
14563 * fileio.c (kill_workbuf_unwind): Delete this function.
14564 (Finsert_file_contents): Adjust the call of detect_coding_system.
14565 Get conversion_buffer by code_conversion_save. Use the macro
14566 CODING_MAY_REQUIRE_DECODING. After decoding, update
14567 coding_system.
14568
14569 * coding.h (make_conversion_work_buffer): Delete extern.
14570 (code_conversion_save): Extern it.
14571
14572 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14573 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14574 (decode_coding_utf_8): Don't do eol converion.
14575 (detect_coding_utf_16): Check coding->src_chars, not
14576 coding->src_bytes. Add heuristics for those that have no signature.
14577 (decode_coding_emacs_mule, decode_coding_iso_2022)
14578 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14579 Don't do eol converion.
14580 (adjust_coding_eol_type): Return a new coding system.
14581 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14582 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14583 each change.
14584 (decode_coding): Pay attention to undo_list. Do eol conversion for
14585 all types of coding-systems (if necessary).
14586 (Vcode_conversion_work_buf_list): Delete it.
14587 (Vcode_conversion_reused_workbuf): Rename from
14588 Vcode_conversion_reused_work_buf.
14589 (Vcode_conversion_workbuf_name): New variable.
14590 (reused_workbuf_in_use): New variable.
14591 (make_conversion_work_buffer): Delete the arg DEPTH.
14592 (code_conversion_restore): Change argument to cons.
14593 (code_conversion_save): Delete the argument BUFFER. Change callers.
14594 (detect_coding_system): New argument src_chars. Change callers.
14595 Fix for utf-16 detection.
14596 (init_coding_once): Don't use ISO_carriage_return.
14597 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14598 reused_workbuf_in_use.
14599
146002008-02-01 Kenichi Handa <handa@m17n.org>
14601
14602 * keymap.c (store_in_keymap): Pay attention to the case that idx
14603 is a cons specifying a character range.
14604
146052008-02-01 Kenichi Handa <handa@m17n.org>
14606
14607 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14608 HANDLED_RECOMPUTE_PROPS.
14609
14610 * coding.c (Fdefine_coding_system_internal): Fix checking of
14611 ascii compatibility.
14612
146132008-02-01 Kenichi Handa <handa@m17n.org>
14614
14615 * charset.c (find_charsets_in_text): Delete unused locale variable.
14616 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14617
14618 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14619 Resync charset_list to Vemacs_mule_charset_list.
14620
14621 * keymap.c (store_in_keymap): Pay attention to the case that idx
14622 is a cons specifying a character range.
14623
146242008-02-01 Kenichi Handa <handa@m17n.org>
14625
14626 * composite.c (update_compositions): Bind inhibit-read-only, etc
14627 to t before calling remove-list-of-text-properties.
14628
14629 * print.c (print_object): Always print ASCII chars as is.
14630
146312008-02-01 Kenichi Handa <handa@m17n.org>
14632
14633 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14634
14635 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14636 is a char table.
14637
146382008-02-01 Kenichi Handa <handa@m17n.org>
14639
14640 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14641
146422008-02-01 Kenichi Handa <handa@m17n.org>
14643
14644 * xfaces.c (set_lface_from_font_name): Fix for the case that
14645 FONTNAME is not fontset name.
14646
146472008-02-01 Kenichi Handa <handa@m17n.org>
14648
14649 * fns.c (base64_encode_1): Fix previous change.
14650
146512008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * fontset.c (set_fontset_font): New function.
14654 (Fset_fontset_font): If a font is specified for a charset, use
14655 map_charset_chars to store the font spec in a fontset.
14656
146572008-02-01 Kenichi Handa <handa@m17n.org>
14658
14659 * fontset.c (fontset_face): Create a fallback fontset on demand.
14660 (make_fontset): Don't create a fallback fontset here.
14661 (free_face_fontset): Free a fallback fontset (if any) too.
14662 (n_auto_fontsets): Delete this variable.
14663 (auto_fontset_alist): New variable.
14664 (new_fontset_from_font_name): Check auto_fontset_alist.
14665 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14666 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14667 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14668 Defsubr Sfontset_list_all.
14669
146702008-02-01 Kenichi Handa <handa@m17n.org>
14671
14672 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14673
146742008-02-01 Kenichi Handa <handa@m17n.org>
14675
14676 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14677
146782008-02-01 Kenichi Handa <handa@m17n.org>
14679
14680 * editfns.c (Fgoto_char): Fix docstring.
14681
146822008-02-01 Kenichi Handa <handa@m17n.org>
14683
14684 * insdel.c (insert_from_gap): Adjust intervals correctly.
14685
146862008-02-01 Jason Rumney <jasonr@gnu.org>
14687
14688 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14689 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14690 (w32_initialize): Try to load it.
14691 (x_get_font_repertory): Use it if available.
14692 (w32_encode_char): Add shortcut for unicode output.
14693
14694 * w32fns.c (w32_load_system_font): Default charset to -1.
14695 (x_to_w32_charset): Match all fonts for unicode.
14696 (w32_to_x_charset): New parameter matching. Don't return partial
14697 or wildcard charsets.
14698 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14699 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14700 (w32_to_x_font): Match charset to real charset.
14701 (enum_font_cb2): Always list unicode versions.
14702
14703 * makefile.w32-in (temacs): Increase EMHEAP.
14704
147052008-02-01 Jason Rumney <jasonr@gnu.org>
14706
14707 * w32term.c (w32_encode_char): New charset parameter.
14708 font_info.encoding becomes encoding_type.
14709 (x_get_font_repertory): New function. Warning: stub only!
14710 (x_new_font): Return quickly if font already set.
14711 (x_new_fontset): fontsetname parameter is Lisp_Object.
14712 Use new fs_query_fontset. Try new_fontset_from_font_name.
14713 Use fontset_name for return value.
14714
14715 * w32term.h: Declare x_get_font_repertory.
14716
14717 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14718 place of find_charset_in_text. Use encode_coding_object in place
14719 of encode_coding.
14720 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14721 decode_coding.
14722
14723 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14724 of x_new_fontset.
14725 (w32_load_system_font): Initialize charset as unicode.
14726 font_info.encoding becomes encoding_type.
14727 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14728 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14729 (syms_of_w32fns): Set get_font_repertory_func.
14730
14731 * w32console.c: Include character.h. Use terminal_encode_buffer
14732 from term.c.
14733 (write_glyphs): Use new version of encode_terminal_code. Use
14734 encode_coding_object in place of encode_coding.
14735
14736 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14737 encoding becomes encoding_type.
14738
14739 * term.c (terminal_encode_buffer): Make externally visible.
14740
14741 * makefile.w32-in: Add character.h dependancies.
14742 (character.o, chartab.o): New targets.
14743
147442008-02-01 Kenichi Handa <handa@m17n.org>
14745
14746 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14747 CODING_ID_EOL_TYPE.
14748
147492008-02-01 Andreas Schwab <schwab@suse.de>
14750
14751 * coding.c (produce_chars): Revert last change.
14752
147532008-02-01 Kenichi Handa <handa@m17n.org>
14754
14755 * charset.h (charset_unicode): Extern it.
14756
14757 * charset.c (string_xstring_p): Check by (C >= 0x100).
14758 (find_charsets_in_text): Change format of the arc CHARSETS. New
14759 arg MULTIBYTE.
14760 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14761 change of find_charsets_in_text.
14762 (Fsplit_char): Fix doc. Never return unknown.
14763
14764 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14765
14766 * coding.c (Fdefine_coding_system_alias): Update
14767 Vcoding_system_list.
14768
14769 * fontset.c (load_font_get_repertory): Pay attention to the case
14770 that ENCODING of a font is specified by a char-table.
14771
14772 * xterm.c (x_get_font_repertory): Handle the case that the
14773 encoding of font is other than Unicode.
14774
147752008-02-01 Kenichi Handa <handa@m17n.org>
14776
14777 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14778 if a character is encodable by the terminal coding system. If
14779 not, produces proper number of `?'s. Update
14780 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14781 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14782
147832008-02-01 Kenichi Handa <handa@m17n.org>
14784
14785 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14786 variables.
14787 (encode_terminal_code): Change argument. Encode multiple
14788 characters at once. Store the result of encoding in
14789 terminal_encode_buffer.
14790 (write_glyphs, insert_glyphs): Adjust for the change of
14791 encode_terminal_code.
14792 (term_init): Initialize terminal_encode_buffer and
14793 terminal_encode_buf_size.
14794
14795 * coding.c (consume_chars): If coding->src_object is nil, don't
14796 check annotation.
14797
147982008-02-01 Kenichi Handa <handa@m17n.org>
14799
14800 * character.c (char_string): Use ASCII_CHAR_P instead of
14801 SINGLE_BYTE_CHAR_P.
14802
148032008-02-01 Kenichi Handa <handa@m17n.org>
14804
14805 * xdisp.c (handle_auto_composed_prop): Check if the last
14806 characters of auto-composed region is newly composed with the
14807 following characters.
14808 (handle_composition_prop): Fix checking of point being inside
14809 composition.
14810
148112008-02-01 Kenichi Handa <handa@m17n.org>
14812
14813 * fns.c (concat): Don't change multibyteness of the result by
14814 concatenating an 8-bit character.
14815
14816 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14817 multibyteness of the result when newelt is an 8-bit character.
14818
148192008-02-01 Dave Love <fx@gnu.org>
14820
14821 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14822 EMACS_INT.
14823
14824 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14825
14826 * xfaces.c (face_numeric_value): Declare dim size_t.
14827 (Finternal_lisp_face_equal_p): Remove unused f.
14828
14829 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14830 (MATRIX_ROW): Remove unused vars.
14831 (draw_glyphs, x_insert_glyphs, fast_find_position)
14832 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14833 byte/char counts.
14834
14835 * regex.c (regex_compile): Remove unused var.
14836
14837 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14838
14839 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14840 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14841
14842 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14843
14844 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14845
14846 * fileio.c (Fwrite_region): Remove unused var.
14847
14848 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14849 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14850
14851 * composite.c (Fremove_list_of_text_properties): Declare.
14852
14853 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14854 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14855 (coding_inherit_eol_type): Remove unused attrs.
14856 (detect_coding): Cast arg of detect_eol.
14857
14858 * charset.c (syms_of_charset): Remove unused var p.
14859 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14860 byte/char counts.
14861
14862 * casetab.c (set_case_table): Remove unused var.
14863
14864 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14865 unused vars.
14866
148672008-02-01 Dave Love <fx@gnu.org>
14868
14869 * xterm.c (x_bitmap_mask): Declare.
14870
148712008-02-01 Dave Love <fx@gnu.org>
14872
14873 * xterm.c (x_term_init): Fix type error.
14874
14875 * lisp.h: Add Funibyte_char_to_multibyte.
14876
14877 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14878 (Fset_coding_system_priority): Doc fix.
14879
14880 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14881
14882 * indent.c (check_composition): Make start and end EMACS_INT.
14883
14884 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14885
14886 * xdisp.c (handle_composition_prop, check_point_in_composition):
14887 Make buffer positions EMACS_INT.
14888
14889 * composite.c (find_composition, run_composition_function)
14890 (update_compositions, Ffind_composition_internal): Make buffer
14891 positions EMACS_INT.
14892
14893 * composite.h (find_composition, update_compositions): Make
14894 position args EMACS_INT.
14895
14896 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14897
14898 * intervals.c (get_property_and_range):
14899 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14900
14901 * unexalpha.c: Don't include varargs.h.
14902
149032008-02-01 Dave Love <fx@gnu.org>
14904
14905 * coding.h (ENCODE_UTF_8): New.
14906
14907 * Makefile.in (gtkutil.o): Depend on coding.h.
14908
14909 * coding.c (Fset_coding_system_priority): Doc fix.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14914 the case of auto saving.
14915
149162008-02-01 Andreas Schwab <schwab@suse.de>
14917
14918 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14919 `range' from GC.
14920
149212008-02-01 Kenichi Handa <handa@m17n.org>
14922
14923 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14924
149252008-02-01 Kenichi Handa <handa@m17n.org>
14926
14927 * fileio.c (choose_write_coding_system): Return a decided coding system.
14928 (Fwrite_region): Set Vlast_coding_system_used to the return value
14929 of choose_write_coding_system.
14930
149312008-02-01 Kenichi Handa <handa@m17n.org>
14932
14933 * charset.c (Fset_charset_priority): Pay attention to duplicated
14934 arguments.
14935
14936 * coding.c (QCcategory): New variable.
14937 (syms_of_coding): Defsym it. Set all elements of
14938 Vcoding_category_table and their symbol values.
14939 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14940 coding-category-XXX, and coding-category-list.
14941 (Fdefine_coding_system_internal): Add category in the plist.
14942
149432008-02-01 Kenichi Handa <handa@m17n.org>
14944
14945 * callproc.c (Fcall_process): Handle carryover correctly.
14946
14947 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14948 (raw_text_coding_system): Check NILP (coding_system).
14949 (coding_inherit_eol_type): Check NILP (coding_system) and
14950 NILP (parent).
14951 (consume_chars): Fix for the case of raw-text.
14952
14953 * process.c (read_process_output): Handle carryover correctly.
14954
149552008-02-01 Dave Love <fx@gnu.org>
14956
14957 * regex.c (re_search_2): Fix last change.
14958
149592008-02-01 Kenichi Handa <handa@m17n.org>
14960
14961 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14962 target_multibyte. Even in a unibyte case, return a converted
14963 multibyte char.
14964 (GET_CHAR_AFTER): New macro.
14965 (PATFETCH): Translate via multibyte char.
14966 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14967 (SETUP_MULTIBYTE_RANGE): New macro.
14968 (regex_compile): Setup compiled code so that its multibyteness
14969 matches that of a target. Fix the handling of "[X-YZ]" using
14970 SETUP_MULTIBYTE_RANGE.
14971 (analyse_first) <charset>: For filling fastmap for all multibyte
14972 characters, don't check by BASE_LEADING_CODE_P.
14973 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
14974 the same as RE_MULTIBYTE_P (bufp) now.
14975 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14976 (TARGET_CHAR_AND_LENGTH): Delete this macro.
14977 (TRANSLATE_VIA_MULTIBYTE): New macro.
14978 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14979 It is the same as RE_MULTIBYTE_P (bufp) now.
14980 <exactn>: Translate via multibyte.
14981 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
14982 translate it.
14983 <charset, charset_not>: Fetch a character by
14984 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
14985 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14986 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14987 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14988 by GET_CHAR_AFTER.
14989 (bcmp_translate): Likewise.
14990
14991 * search.c (compile_pattern): Check the member target_multibyte,
14992 not the member multibyte of buf.
14993
14994 * lread.c (read1): While reading a string, set force_singlebyte
14995 and force_multibyte correctly.
14996
14997 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14998 up of unibyte_to_multibyte_table.
14999
150002008-02-01 Kenichi Handa <handa@m17n.org>
15001
15002 * coding.c (setup_coding_system): If coding has
15003 post-read-conversion or pre-write-conversion, set
15004 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15005 respectively.
15006 (decode_coding_gap): Run post-read-conversion if any.
15007
15008 * fileio.c (Finsert_file_contents): Even if we read into a
15009 unibyte buffer, check if we must decode the result or not.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * coding.c (make_conversion_work_buffer): Change the work buffer
15014 name to the same one as that of Emacs 21.
15015
150162008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * coding.h (make_conversion_work_buffer): Adjust prototype.
15019 (code_conversion_restore): Don't extern it.
15020
15021 * coding.c (detected_mask): Delete unused variable.
15022 (decode_coding_iso_2022): Pay attention to the byte sequence of
15023 CTEXT extended segment, and retain those bytes as is.
15024 (decode_coding_ccl): Delete unused variable `valids'.
15025 (setup_coding_system): Delete unused variable `category'.
15026 (consume_chars): Delete unused variable `category'. Make it work
15027 for non-multibyte case.
15028 (make_conversion_work_buffer): Change argument.
15029 (saved_coding): Delete unused variable.
15030 (code_conversion_restore): Don't check saved_coding->destination.
15031 (code_conversion_save): New function.
15032 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15033 instead of record_unwind_protect.
15034 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15035 (detect_coding_system): Delete unused variable `mask'.
15036 (Fdefine_coding_system_internal): Delete unused variable id.
15037
15038 * fileio.c (kill_workbuf_unwind): New function.
15039 (Finsert_file_contents): On replacing, call
15040 make_conversion_work_buffer with correct args, and call
15041 record_unwind_protect with the first arg kill_workbuf_unwind.
15042
15043 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15044
150452008-02-01 Kenichi Handa <handa@m17n.org>
15046
15047 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15048 (fontset_add): Fix for the case that TO is less than TO1.
15049 (Ffontset_info): Don't use fallback fontset on checking the
15050 default fontset.
15051 (dump_fontset): New function for debugging.
15052
15053 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15054 coding_type is Qcharset.
15055
150562008-02-01 Kenichi Handa <handa@m17n.org>
15057
15058 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15059 (map_char_table): Don't inherit the value from the parent on
15060 initializing VAL. Adjust for the above change.
15061
150622008-02-01 Kenichi Handa <handa@m17n.org>
15063
15064 * coding.c (Qsignature, Qendian): Delete these variables.
15065 (syms_of_coding): Don't initialize them.
15066 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15067 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15068 detect_info->found.
15069 (decode_coding_utf_16): Don't detect BOM here.
15070 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15071 is NOT utf_16_without_bom.
15072 (setup_coding_system): For a coding system of type utf-16, check
15073 if the attribute :endian is Qbig or not (not nil or not), and set
15074 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15075 (detect_coding): If coding type is utf-16 and BOM detection is
15076 required, detect it.
15077 (Fdefine_coding_system_internal): For a coding system of type
15078 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15079
150802008-02-01 Kenichi Handa <handa@m17n.org>
15081
15082 * coding.c (coding_set_source): Fix for the case that the current
15083 buffer is different from coding->src_object.
15084 (decode_coding_object): Don't use the conversion work buffer if
15085 DST_OBJECT is a buffer.
15086
150872008-02-01 Dave Love <fx@gnu.org>
15088
15089 * lread.c (read_emacs_mule_char) [len==2]: Index
15090 emacs_mule_charset correctly.
15091
150922008-02-01 Dave Love <fx@gnu.org>
15093
15094 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15095 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15096 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15097 treated specially.)
15098 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15099 (detected_mask): Remove Big5 bits.
15100
151012008-02-01 Kenichi Handa <handa@m17n.org>
15102
15103 The following changes are to make the font rescaling facility
15104 compatible with Emacs 21.
15105
15106 * xfaces.c (Vface_font_rescale_alist): Rename from
15107 Vface_resizing_fonts.
15108 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15109 (font_rescale_ratio): Rename from font_resizing_ratio.
15110 (split_font_name): Set font->rescale_ratio.
15111 (better_font_p): Pay attention to font->rescale_ratio.
15112 (build_scalable_font_name): Likewise. Change RESX, and RESY
15113 fields.
15114 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15115
151162008-02-01 Kenichi Handa <handa@m17n.org>
15117
15118 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15119 (Qutf_16_le): Remove these variables.
15120 (syms_of_coding): Don't DEFSYM them.
15121 (decode_coding_utf_16): Fix handling of BOM.
15122 (encode_coding_utf_16): Fix handling of BOM.
15123
151242008-02-01 Kenichi Handa <handa@m17n.org>
15125
15126 * fileio.c (Finsert_file_contents): On replacing, before decoding
15127 the file into the work buffer, set point of the work buffer to the end.
15128
151292008-02-01 Dave Love <fx@gnu.org>
15130
15131 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15132
151332008-02-01 Dave Love <fx@gnu.org>
15134
15135 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15136 and fix C types.
15137
151382008-02-01 Kenichi Handa <handa@m17n.org>
15139
15140 * xdisp.c (SKIP_GLYPHS): New macro.
15141 (set_cursor_from_row): Pay attention to string display properties.
15142
15143 * category.c (copy_category_entry): Fix for the case that RANGE
15144 is an integer.
15145
15146 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15147
15148 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15149
151502008-02-01 Kenichi Handa <handa@m17n.org>
15151
15152 * charset.c (Fcharset_id_internal): New function.
15153 (syms_of_charset): Defsubr it.
15154
15155 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15156 with the last arg charset_list acquired from coding.
15157 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15158 the attribute coding_attr_ccl_valids.
15159
15160 * coding.h (enum define_coding_ccl_arg_index): Set the first
15161 member coding_arg_ccl_decoder to coding_arg_max.
15162
15163 * ccl.h (ccl_driver): Adjust prototype.
15164
15165 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15166 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15167 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15168 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15169 last arg Qnil.
15170
151712008-02-01 Kenichi Handa <handa@m17n.org>
15172
15173 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15174 call encode_char.
15175
15176 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15177
151782008-02-01 Dave Love <fx@gnu.org>
15179
15180 * composite.c (syms_of_composite): Make composition_hash_table weak.
15181
151822008-02-01 Kenichi Handa <handa@m17n.org>
15183
15184 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15185 (font_name_registry): Don't extern them.
15186 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15187
15188 * fontset.h (Qfontset): Don't extern it.
15189 (new_fontset_from_font_name): Extern it.
15190
15191 * fontset.c: Give 8 extra slots to fontset objects.
15192 (Qfontset_info): New variable.
15193 (syms_of_fontset): Defsym it.
15194 (FONTSET_FALLBACK): New macro.
15195 (fontset_face): Try also the default fontset.
15196 (make_fontset): Realize a fallback fontset from the default fontset.
15197 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15198 using split_font_name_into_vector and build_font_name_from_vector.
15199 (Fset_fontset_font): Access the elements of font_spec by enum
15200 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15201 name by using split_font_name_into_vector.
15202 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15203 generate a proper font name from the fontset name. Update
15204 Vfontset_alias_alist.
15205 (n_auto_fontsets): New variable.
15206 (new_fontset_from_font_name): New function.
15207 (Ffont_info): Store the information about fonts generated from the
15208 default fontset in the first extra slot of the returned char-table.
15209
15210 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15211 (font_name_registry): Delete function.
15212 (split_font_name_into_vector): New function.
15213 (build_font_name_from_vector): New function.
15214 (font_list): The argument REGISTRY is now a list of registry names.
15215 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15216 specifies an explicit font name, return the name as is. Make a
15217 list of registy names.
15218
15219 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15220 of x_new_fontset.
15221 (Fx_create_frame): Don't call x_new_fontset here. Just use
15222 x_list_fonts to check the existence of fonts.
15223
15224 * xterm.h (x_new_fontset): Adjust prototype.
15225
15226 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15227 string. Use new_fontset_from_font_name to create a fontset from a
15228 font name.
15229
152302008-02-01 Kenichi Handa <handa@m17n.org>
15231
15232 * syntax.c (Vfind_word_boundary_function_table): New name for
15233 Vnext_word_boundary_function_table.
15234 (find-word-boundary-function-table): New name for
15235 next-word-boundary-function-table.
15236
152372008-02-01 Dave Love <fx@gnu.org>
15238
15239 * Makefile.in: Fix some dependencies.
15240
15241 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15242 set it to nil before returning.
15243
15244 * composite.c (update_compositions): Fix type error.
15245
15246 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15247
152482008-02-01 Kenichi Handa <handa@m17n.org>
15249
15250 * xterm.c (x_new_font): Optimize for the case that the font is
15251 already set for the frame.
15252
152532008-02-01 Kenichi Handa <handa@m17n.org>
15254
15255 * chartab.c (char_table_ascii): Check if the char table contents
15256 is sub-char-table or not.
15257 (char_table_set, char_table_set_range): Fix argument to
15258 char_table_ascii.
15259
15260 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15261 (detect_coding_utf_8, detect_coding_utf_16)
15262 (detect_coding_emacs_mule, detect_coding_iso_2022)
15263 (detect_coding_sjis, detect_coding_big5)
15264 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15265 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15266 sequence is valid in this coding system. Change callers.
15267 (MAX_ANNOTATION_LENGTH): New macro.
15268 (ADD_ANNOTATION_DATA): New macro.
15269 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15270 ADD_ANNOTATION_DATA. Change the format of annotation data.
15271 (ADD_CHARSET_DATA): New macro.
15272 (emacs_mule_char): New argument ID. Change callers.
15273 (decode_coding_emacs_mule, decode_coding_iso_2022)
15274 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15275 Produce charset annotation data in coding->charbuf.
15276 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15277 to charset annotation data in coding->charbuf.
15278 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15279 coding->common_flags if the coding system is iso-2022 based and
15280 uses designation.
15281 (produce_composition): Adjust for the new annotation data format.
15282 (produce_charset): New function.
15283 (produce_annotation): Handle charset annotation.
15284 (handle_composition_annotation, handle_charset_annotation): New
15285 functions.
15286 (consume_chars): Handle charset annotation. Utilize the above two
15287 functions.
15288 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15289 buffer, get the deleted text as a string and set
15290 coding->src_object to that string.
15291 (detect_coding, detect_coding_system): Use the new struct
15292 coding_detection_info.
15293
15294 * coding.h (struct coding_detection_info): New structure.
15295 (struct coding_system): Adjust prototype of the member `detector'.
15296 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15297
152982008-02-01 Kenichi Handa <handa@m17n.org>
15299
15300 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15301
153022008-02-01 Dave Love <fx@gnu.org>
15303
15304 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15305 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15306 to new local and nullify apropos_accumulate before returning.
15307 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15308
153092008-02-01 Kenichi Handa <handa@m17n.org>
15310
15311 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15312 correctly.
e3eea1fc 15313
aac0c6e3
MR
153142008-02-01 Dave Love <fx@gnu.org>
15315
15316 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15317
153182008-02-01 Kenichi Handa <handa@m17n.org>
15319
15320 The following changes are to make character composition happen
15321 automatically on displaying.
15322
15323 * Makefile.in (lisp, shortlisp): Add composite.elc.
15324
15325 * composite.h (Qauto_composed, Vauto_composition_function)
15326 (Qauto_composition_function): Extern them.
15327
15328 * composite.c (Vcomposition_function_table)
15329 (Qcomposition_function_table): Delete variables.
15330 (Qauto_composed, Vauto_composition_function)
15331 (Qauto_composition_function): New variables.
15332 (run_composition_function): Don't call
15333 compose-chars-after-function.
15334 (update_compositions): Clear `auto-composed' text property.
15335 (compose_chars_in_text): Delete this function.
15336 (syms_of_composite): Staticpro Qauto_composed and
15337 Qauto_composition_function. Declare Vauto_composition_function as
15338 a Lisp variable.
15339
15340 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15341
15342 * xdisp.c (it_props): Add an entry for Qauto_composed.
15343 (handle_auto_composed_prop): New function.
15344
15345 * xselect.c (selection_data_to_lisp_data): Don't call
15346 compose_chars_in_text.
15347
153482008-02-01 Dave Love <fx@gnu.org>
15349
15350 * keyboard.c (read_char): Modify checking around use of
15351 Vkeyboard_translate_table.
15352
15353 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15354 and fix C types.
15355
153562008-02-01 Kenichi Handa <handa@m17n.org>
15357
15358 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15359 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15360 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15361 the case that the last byte is '\r' correctly.
15362 (decode_coding): Flush out the unprocessed data correctly.
15363 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15364
153652008-02-01 Dave Love <fx@gnu.org>
15366
15367 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15368 Add XK_ISO... case.
15369 (xaw_scroll_callback): Revert last change.
15370
153712008-02-01 Kenichi Handa <handa@m17n.org>
15372
15373 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15374
153752008-02-01 Kenichi Handa <handa@m17n.org>
15376
15377 * xfaces.c (Vface_resizing_fonts): New variable.
15378 (struct font_name): New member `resizing_ratio'.
15379 (font_resizing_ratio): New function.
15380 (split_font_name): Set font->resizing_ratio.
15381 (better_font_p): Pay attention to font->resizing_ratio.
15382 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15383 RESX, and RESY fields.
15384 (try_alternative_families): Try scalable fonts if
15385 Vscalable_fonts_allowed is not Qt.
15386 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15387
153882008-02-01 Dave Love <fx@gnu.org>
15389
15390 * xterm.c (xaw_scroll_callback): Cast correctly.
15391
153922008-02-01 Dave Love <fx@gnu.org>
15393
15394 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15395 (lispy_kana_keys): Comment out.
15396 (make_lispy_event) [XK_kana_A]: Comment out.
15397
15398 * xterm.c (xaw_scroll_callback): Cast call_data.
15399 (XTread_socket): Deal with ASCII keysyms.
15400 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15401
154022008-02-01 Dave Love <fx@gnu.org>
15403
15404 * xterm.c (Vx_keysym_table): New.
15405 (syms_of_xterm): Initialize it.
15406 (XTread_socket): Use it.
15407 From head: Eliminate incorrect optimization that tried to avoid
15408 decoding the output of X*LookupString.
15409 (x_get_font_repertory): Delete charset declaration.
15410
154112008-02-01 Kenichi Handa <handa@m17n.org>
15412
15413 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15414 return 0.
15415 (Fdefine_coding_system_internal): Setup
15416 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15417
154182008-02-01 Dave Love <fx@gnu.org>
15419
15420 * coding.c (Fcheck_coding_system): Doc fix.
15421
15422 * editfns.c (Finsert_byte): Return a proper value.
15423
154242008-02-01 Kenichi Handa <handa@m17n.org>
15425
15426 * coding.c (decode_coding): Fix args to translate_chars. Pay
15427 attention to Vstandard_translation_table_for_decode.
15428 (encode_coding): Fix args to translate_chars. Pay attention to
15429 Vstandard_translation_table_for_encode.
15430
15431 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15432 SINGLE_BYTE_CHAR_P.
15433
15434 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15435 not by SINGLE_BYTE_CHAR_P.
15436
15437 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15438 SINGLE_BYTE_CHAR_P.
15439
15440 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15441 SINGLE_BYTE_CHAR_P.
15442
15443 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15444 by SINGLE_BYTE_CHAR_P.
15445
15446 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15447 SINGLE_BYTE_CHAR_P.
15448
154492008-02-01 Dave Love <fx@gnu.org>
15450
15451 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15452
154532008-02-01 Dave Love <fx@gnu.org>
15454
15455 * fns.c (Flanginfo): Fix typo.
15456
15457 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15458
154592008-02-01 Kenichi Handa <handa@m17n.org>
15460
15461 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15462 (detect_coding_emacs_mule, detect_coding_iso_2022)
15463 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15464 incomplete byte sequence. Don't update *mask when correctly detected.
15465 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15466 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15467 (detect_coding, detect_coding_system): Adjust for the changes above.
15468
154692008-02-01 Kenichi Handa <handa@m17n.org>
15470
15471 * character.c (char_string): Rename from
15472 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15473 (string_char): Rename from string_char.
15474
15475 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15476 if C is greater than MAX_3_BYTE_CHAR.
15477 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15478 string_char instead of string_char_with_unification.
15479
154802008-02-01 Dave Love <fx@gnu.org>
15481
15482 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15483
154842008-02-01 Kenichi Handa <handa@m17n.org>
15485
15486 * keymap.c (push_key_description): Pay attention to force_multibyte.
15487
15488 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15489
154902008-02-01 Dave Love <fx@gnu.org>
15491
15492 * charset.c (define_charset_internal): Rename `supprementary'.
15493
15494 * Makefile.in (lisp, shortlisp): Remove latin-N.
15495
154962008-02-01 Dave Love <fx@gnu.org>
15497
15498 * xfns.c (x_window, x_window): Use use_xim.
15499
15500 * xterm.c (use_xim): Initialize.
15501 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15502 (x_term_init): Maybe set use_xim.
15503
15504 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15505
155062008-02-01 Kenichi Handa <handa@m17n.org>
15507
15508 * search.c (search_buffer): Fix case-fold-search of multibyte
15509 characters.
15510 (boyer_moore): Rename the last argument to char_high_bits.
15511
155122008-02-01 Kenichi Handa <handa@m17n.org>
15513
15514 * xdisp.c (display_string): Fix for the case of zero width glyph.
15515
15516 * xfns.c (x_set_font): Change the error message of the case that
15517 x_new_fontset returns Qt.
15518
15519 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15520 (Finternal_set_lisp_face_attribute): Use signal_error for the
15521 error of invalid fontset.
15522
15523 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15524 fontset, return Qt.
15525
155262008-02-01 Dave Love <fx@gnu.org>
15527
15528 * unexelf.c (unexec): Make .got handling not SGI-specific.
15529
15530 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15531
15532 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15533
15534 * keyboard.c (read_key_sequence): Fix type error.
15535
15536 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15537 type error.
15538
15539 * fontset.c (fontset_add): Return Lisp_Object.
15540
155412008-02-01 Dave Love <fx@gnu.org>
15542
15543 * charset.h (charset_ordered_list_tick): Declare extern.
15544
155452008-02-01 Kenichi Handa <handa@m17n.org>
15546
15547 The following changes (and some of 2008-02-01 changes of mine) are
15548 for handling syntax, category, and case conversion for unibyte
15549 characters by converting them to multibyte on the fly. With these
15550 changes, we don't have to setup syntax and case tables for unibyte
15551 characters in each language environment.
15552
15553 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15554 multibyte if necessary.
15555
15556 * bytecode.c (Fbyte_code): Likewise.
15557
15558 * character.h (LEADING_CODE_LATIN_1_MIN)
15559 (LEADING_CODE_LATIN_1_MAX): New macros.
15560 (unibyte_to_multibyte_table): Extern it.
15561 (unibyte_char_to_multibyte): New macro.
15562 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15563 (CHAR_LEADING_CODE): New macro.
15564 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15565
15566 * character.c (unibyte_to_multibyte_table): New variable.
15567 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15568 (multibyte_char_to_unibyte): If C is an eight-bit character,
15569 convert it to the corresponding byte value.
15570
15571 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15572 not 1, signals an error. Update the elements of
15573 unibyte_to_multibyte_table.
15574 (init_charset_once): Initialize unibyte_to_multibyte_table.
15575 (syms_of_charset): Define the charset `iso-8859-1'.
15576
15577 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15578 as is without converting it to unibyte. In a unibyte buffer,
15579 convert C to multibyte before checking the syntax.
15580
15581 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15582
15583 * minibuf.c (Fminibuffer_complete_word): Use the macro
15584 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15585
15586 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15587
15588 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15589 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15590 that is zero, convert an eight-bit char to multibyte.
15591 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15592 non-emacs case.
15593 (PATFETCH): Convert an eight-bit char to multibyte.
15594 (HANDLE_UNIBYTE_RANGE): New macro.
15595 (regex_compile): Setup the compiled pattern for multibyte chars
15596 even if the given regex string is unibyte. Use PATFETCH_RAW
15597 instead of PATFETCH in many places. To handle `charset'
15598 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15599 only for ASCII chars.
15600 (analyse_first) <exactn>: Simplify because the compiled pattern
15601 is multibyte.
15602 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15603 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15604 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15605 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15606 multibyte always 1.
15607 (re_search_2): In emacs, set the locale variable multibyte to 1,
15608 otherwise to 0. New local variable target_multibyte. Check it
15609 to decide the multibyteness of STR1 and STR2. If
15610 target_multibyte is zero, convert unibyte chars to multibyte
15611 before translating and checking fastmap.
15612 (TARGET_CHAR_AND_LENGTH): New macro.
15613 (re_match_2_internal): In emacs, set the locale variable multibyte
15614 to 1, otherwise to 0. New local variable target_multibyte. Check
15615 it to decide the multibyteness of STR1 and STR2. Use
15616 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15617 <charset, charset_not>: If multibyte is nonzero, check fastmap
15618 only for ASCII chars. Call bcmp_translate with
15619 target_multibyte, not with multibyte.
15620 <begline>: Declare the local variable C as `unsigned'.
15621 (bcmp_translate): Change the last arg name to target_multibyte.
15622
15623 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15624 the regexp pattern and the matching target. Set cp->buf.multibyte
15625 to the multibyteness of the regexp pattern. Set
15626 cp->but.target_multibyte to the multibyteness of the matching target.
15627 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15628 FETCH_STRING_CHAR_ADVANCE.
15629 (Freplace_match): Convert unibyte chars to multibyte.
15630
15631 * syntax.c (char_quoted, back_comment, scan_words)
15632 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15633 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15634 unibyte chars to multibyte.
15635 (skip_chars): Delete the arg syntaxp, and move the code for
15636 handling syntaxes to skip_syntaxes. Change callers.
15637 Fix the case that the multibyteness of STRING and the current
15638 buffer doesn't match.
15639 (skip_syntaxes): New function.
15640 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15641 SINGLE_BYTE_CHAR_P.
15642
156432008-02-01 Kenichi Handa <handa@m17n.org>
15644
15645 * xfaces.c (QCfontset): New variable.
15646 (LFACE_FONTSET): New macro.
15647 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15648 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15649 (Finternal_set_lisp_face_attribute)
15650 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15651 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15652 check also LFACE_FONTSET_INDEX.
15653 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15654 attrs[LFACE_FONT_INDEX].
15655 (syms_of_xfaces): Intern and staticpro QCfontset.
15656
15657 * dispextern.h (enum lface_attribute_index): New member
15658 LFACE_FONTSET_INDEX.
15659
15660 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15661
156622008-02-01 Kenichi Handa <handa@m17n.org>
15663
15664 * coding.c (coding_set_destination): Fix coding->destination for
15665 the case converting a region.
15666 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15667 (encode_coding_object): Fix coding->dst_pos and
15668 coding->dst_pos_byte for the case converting a region.
15669
15670 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15671
15672 * character.h (BYTE8_STRING): New macro.
15673
15674 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15675
156762008-02-01 Kenichi Handa <handa@m17n.org>
15677
15678 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15679 characters by octal form.
15680
15681 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15682
15683 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15684 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15685 _fetch_multibyte_char_len.
15686 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15687
15688 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15689
15690 * casefiddle.c (casify_object): Simplify. Handle the case that
15691 the case conversion change the byte length.
15692 (casify_region): Likewise.
15693
15694 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15695
15696 * character.c (_fetch_multibyte_char_len): Delete this variable.
15697 (syms_of_character): Setup Vprintable_chars.
15698
15699 * editfns.c (Fchar_equal): Fix for the unibyte case.
15700 (Finsert_byte): New function.
15701 (syms_of_editfns): Defsubr it.
15702
15703 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15704 of direct code 0x3ffff.
15705
15706 * search.c (Freplace_match): Fix for the unibyte case.
15707
157082008-02-01 Kenichi Handa <handa@m17n.org>
15709
15710 * lread.c (safe_to_load_p): Fix the logic.
15711
15712 * syntax.c (scan_words): Don't treat characters belonging to
15713 different scripts as constituting a word.
15714
15715 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15716
15717 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15718
15719 * emacs.c (main): In the case of --unibyte, instead of aborting on
15720 finding non-empty buffer, make it unibyte.
15721
157222008-02-01 Kenichi Handa <handa@m17n.org>
15723
15724 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15725 to create a fontset.
15726
157272008-02-01 Dave Love <fx@gnu.org>
15728
15729 * character.c (Funibyte_char_to_multibyte): Doc fix.
15730
15731 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15732
157332008-02-01 Kenichi Handa <handa@m17n.org>
15734
15735 * fontset.c (fontset_add): Make the type `int'.
15736 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15737
15738 * character.c (unibyte_char_to_multibyte)
15739 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15740 charset_unibyte, not charset_primary.
15741
15742 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15743
15744 * charset.c (charset_unibyte): Rename from charset_primary.
15745 (Funibyte_charset): Rename from Fprimary_charset.
15746 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15747 (syms_of_charset): Adjust for the above changes.
15748
15749 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15750 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15751 it->multibyte_p is zero.
15752
15753 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15754 Delete extern.
15755
157562008-02-01 Kenichi Handa <handa@m17n.org>
15757
15758 * coding.c (Fdefine_coding_system_internal): Fix category setting
15759 for a coding system of type iso-2022.
15760
157612008-02-01 Kenichi Handa <handa@m17n.org>
15762
15763 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15764
157652008-02-01 Kenichi Handa <handa@m17n.org>
15766
15767 * syntax.c (Vnext_word_boundary_function_table): New variable.
15768 (next-word-boundary-function-table): Declare it as a Lisp variable
15769 in syms_of_syntax.
15770 (scan_words): Call functions in Vnext_word_boundary_function_table
15771 if any.
15772
15773 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15774
15775 * fontset.c (fs_load_font): If fontp->charset is not negative,
15776 return fontp without setting its members.
15777
157782008-02-01 Dave Love <fx@gnu.org>
15779
15780 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15781
15782 * m/sparc.h (HAVE_ALLOCA): Delete.
15783
15784 * s/irix6-5.h: Don't include strings.h.
15785 (bcopy, bzero, bcmp): Don't undef.
15786
15787 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15788
15789 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15790 (TIOCSIGSEND): Don't test IRIX6.
15791 (bcopy, bzero, bcmp): Define conditionally.
15792
157932008-02-01 Kenichi Handa <handa@m17n.org>
15794
15795 * buffer.c (Qas, Qmake, Qto): New variables.
15796 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15797 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15798
15799 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15800 we are inserting a process output into a multibyte buffer.
15801
15802 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15803 multibyte_char_to_unibyte.
15804
15805 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15806 by the primary charset, make it eight-bit char.
15807 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15808
15809 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15810 (charset_8_bit__control, charset_8_bit_graphic)
15811 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15812 (define_charset_internal): New function.
15813 (syms_of_charset): Call define_charset_internal for pre-defined
15814 charsets.
15815
15816 * charset.h (charset_8_bit): Extern it.
15817
15818 * coding.c (make_conversion_work_buffer): Adjust for the change
15819 of Fset_buffer_multibyte.
15820 (encode_coding_raw_text): Increment p0 in the loop.
15821
15822 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15823
15824 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15825 for the change of Fset_buffer_multibyte.
15826
15827 * fns.c (Fstring_to_multibyte): New function.
15828 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15829
158302008-02-01 Dave Love <fx@gnu.org>
15831
15832 * xfns.c (x_put_x_image): Declare args.
15833
15834 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15835 (try_font_list): Declare an arg.
15836
15837 * xdisp.c (message2_nolog, set_message): Declare an arg.
15838
15839 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15840
15841 * syntax.c (scan_sexps_forward): Declare an arg.
15842
15843 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15844 Declare an arg.
15845
15846 * lisp.h (Fnew_fontset): Declare.
15847
15848 * keymap.c (push_key_description): Call CHARACTERP correctly.
15849
15850 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15851 (face_for_char): Delete unused vars.
15852 (Fset_fontset_font): Doc fix. Delete unused vars.
15853
15854 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15855
15856 * composite.c (update_compositions): Declare arg.
15857
15858 * cm.c (calccost, cmgoto): Declare args.
15859
15860 * charset.c: Remove `emacs' conditional. Doc fixes.
15861 (map_char_table_for_charset): Declare.
15862
15863 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15864
15865 * ccl.c: Remove `emacs' conditional.
15866
158672008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 The following changes are to allow specifying multiple font
15870 patterns for a character range (specified by script or charset).
15871
15872 * Makefile.in (abbrev.o): Depend on syntax.h.
15873 (xfaces.o): Depend on charset.h.
15874
15875 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15876 SINGLE_BYTE_CHAR_P.
15877
15878 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15879
15880 * character.h (Vchar_script_table): Extern it.
15881
15882 * character.c (Vscript_alist): Delete.
15883 (Vchar_script_table, Qchar_script_table): New variable.
15884 (syms_of_character): Declare Vchar_script_table as a lisp variable
15885 and initialize it.
15886
15887 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15888 have property char-table-extra-slots, make no extra slot.
15889
15890 * dispextern.h (struct face): Delete member `charset'.
15891 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15892 SINGLE_BYTE_CHAR_P.
15893 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15894 Add prototypes.
15895 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15896 (generate_ascii_font_name): Rename from generate_ascii_font.
15897
15898 * fontset.h (get_font_repertory_func): New prototype.
15899 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15900 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15901
15902 * fontset.c (Qprepend, Qappend): New variables.
15903 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15904 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15905 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15906 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15907 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15908 (load_font_get_repertory): New functions.
15909 (fontset_set): Delete.
15910 (fontset_face): New arg FACE. Return face ID, not face.
15911 Complete re-write to handle new fontset structure. Change caller.
15912 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15913 (face_for_char): Don't call lookup_face.
15914 (make_fontset_for_ascii_face): New arg FACE.
15915 (fs_load_font): New arg CHARSET_ID. Don't check
15916 Vfont_encoding_alist here.
15917 (find_font_encoding): New function.
15918 (list_fontsets): Use STRINGP, not ! NILP.
15919 (accumulate_script_ranges): New function.
15920 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15921 re-written to handle new fontset structure.
15922 (Ffontset_font): Return a copy of element.
15923 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15924 docstring of font-encoding-alist.
15925
15926 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15927 (Fset_fotset_font): Fix arguments to 5.
15928
15929 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15930
15931 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15932 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15933 (highlight_trailing_whitespace): Adjust for the change of
15934 lookup_named_face.
15935
15936 * xfaces.c: Include charset.h.
15937 (load_face_font): Delete argument C. Change caller.
15938 (generate_ascii_font_name): Rename from generate_ascii_font.
15939 (font_name_registry): New function.
15940 (cache_face): Store ascii faces before non-ascii faces in buckets.
15941 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15942 Lookup only ascii faces.
15943 (lookup_non_ascii_face): New function.
15944 (lookup_named_face): Delete argument C. Change caller.
15945 (lookup_derived_face): Delete argument C. Change caller.
15946 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15947 a string, just call font_list with it.
15948 (choose_face_font): Delete arguments FACE and C. New arg
15949 FONT_SPEC. Change caller.
15950 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15951 Change caller.
15952 (realize_non_ascii_face): New function.
15953 (realize_x_face): Call load_face_font here.
15954 (realize_tty_face): Delete argument C. Change caller.
15955 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15956 get a face ID.
15957 (dump_realized_face): Don't print charset of FACE.
15958
15959 * xfns.c (x_set_font): Always call x_new_fontset and
15960 store_frame_parameter.
15961 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15962 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15963
15964 * xterm.h (x_get_font_repertory): Extern it.
15965
15966 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15967 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15968 it->multibyte_p is zero.
15969 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15970 (x_new_fontset): If FONTSETNAME doesn't match any existing
15971 fontsets, create a new one.
15972 (x_get_font_repertory): New function.
15973
159742008-02-01 Kenichi Handa <handa@m17n.org>
15975
15976 * coding.c (Ffind_coding_systems_region_internal): Detect an
15977 ASCII only string correctly.
15978
15979 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15980 version is 0.
15981
159822008-02-01 Kenichi Handa <handa@m17n.org>
15983
15984 * lread.c: Include "coding.h".
15985 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15986 (load_each_byte, unread_char): New variables.
15987 (readchar_backlog): Delete.
15988 (readchar): Return a character unless load_each_byte is nonzero.
15989 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15990 cons. If unread_char is not -1, simply return it.
15991 (unreadchar): Handle the case that readcharfun is
15992 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
15993 (read_multibyte): Delete.
15994 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15995 (read_emacs_mule_char): New functions.
15996 (Fload): Even if the file doesn't have the extension ".elc", if
15997 safe_to_load_p returns a positive version number, assume that the
15998 file contains bytecompiled code. If the version is less than 22,
15999 load the file while decoding multibyte sequences by emacs-mule.
16000 (readevalloop): Don't use readchar_backlog.
16001 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16002 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16003 (read_escape): Delete the arg BYTEREP.
16004 (read1): Set load_each_byte to 1 temporarily while handling
16005 #@NUMBER. Don't call read_multibyte.
16006 (read_vector): Call Fread with a cons. If readcharfun is
16007 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16008 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16009 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16010 and Qload_force_doc_strings.
16011
160122008-02-01 Kenichi Handa <handa@m17n.org>
16013
16014 * xdisp.c (face_before_or_after_it_pos): Call
16015 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16016
160172008-02-01 Kenichi Handa <handa@m17n.org>
16018
16019 * character.h (TRAILING_CODE_P): New macro.
16020 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16021 (string_char_with_unification): Fix prototype.
16022 (Vscript_alist): Extern it.
16023
16024 * character.c (Vscript_alist): New variable.
16025 (string_char_with_unification, str_as_unibyte)
16026 (string_escape_byte8): Add `const' to local variables.
16027 (syms_of_character): Declare script-alist as a Lisp variable.
16028
16029 * charset.h (Vcharset_ordered_list): Extern it.
16030 (charset_ordered_list_tick): Extern it.
16031 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16032 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16033 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16034 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16035 (Funify_charset): Adjust for the change of Funify_charset.
16036
16037 * charset.c (charset_ordered_list_tick): New variable.
16038 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16039 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16040 deunify intead of unify a charset.
16041 (string_xstring_p): Add `const' to local variables.
16042 (find_charsets_in_text): Add `const' to arguments and local variables.
16043 (encode_char): Adjust for the change of Funify_charset. Fix
16044 detecting of invalid code.
16045 (Fset_charset_priority): Increment charset_ordered_list_tick.
16046 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16047 and TO_CODE.
16048
16049 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16050 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16051 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16052 (decode_coding_ccl, consume_chars)
16053 (Ffind_coding_systems_region_internal)
16054 (Fcheck_coding_systems_region): Add `const' to local variables.
16055
16056 * print.c (print_object): Use octal form for printing the
16057 contents of a bool vector.
16058
160592008-02-01 Dave Love <fx@gnu.org>
16060
16061 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16062 <version == 20>: Refuse to load.
16063
160642008-02-01 Dave Love <fx@gnu.org>
16065
16066 * fns.c: Move coding.h.
16067 (Qcodeset, Qdays, Qmonths): New.
16068 (concat): Use CHARACTERP instead of INTEGERP.
16069 (Flocale_codeset): Delete.
16070 (Flanginfo): New function.
16071 (syms_of_fns): Change accordingly.
16072
16073 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16074
160752008-02-01 Dave Love <fx@gnu.org>
16076
16077 * casetab.c (init_casetab_once, init_casetab_once): Fix
16078 CHAR_TABLE_SET call.
16079
16080 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16081
16082 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16083
16084 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16085 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16086 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16087
16088 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16089
16090 * coding.c (ENCODE_DESIGNATION, decode_eol)
16091 (make_conversion_work_buffer, code_conversion_restore)
16092 (Fdefine_coding_system_internal): Convert Lisp types.
16093 (code_conversion_restore): Use EQ, not ==.
16094 (Fencode_coding_string): Fix code_convert_string call.
16095
16096 * coding.h (code_convert_region): Fix prototype.
16097
16098 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16099
16100 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16101 (Ffontset_info): Convert Lisp types.
16102
16103 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16104
16105 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16106
16107 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16108
16109 * chartab.c: Include "...h", not <...h> in some cases.
16110
16111 * callproc.c (Fcall_process): Remove unused variables.
16112
161132008-02-01 Dave Love <fx@gnu.org>
16114
16115 * coding.c (Fset_coding_system_priority): Allow null arg list.
16116
161172008-02-01 Dave Love <fx@gnu.org>
16118
16119 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16120 (Fself_insert_and_exit): Use CHARACTERP.
16121
16122 * callproc.c (Fcall_process): Remove unused vars.
16123
16124 * xterm.c (XTread_socket): Add extra dead keysyms.
16125
16126 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16127
16128 * dispextern.h: Remove prototypes for redraw_frame,
16129 redraw_garbaged_frames.
16130
16131 * cmds.c (Fself_insert_command): Use CHARACTERP.
16132
16133 * chartab.c (make_sub_char_table): Remove unused var.
16134 (Fset_char_table_default, Fmap_char_table): Doc fix.
16135
16136 * keymap.c (access_keymap): Remove generic char code.
16137 (push_key_description): Use CHARACTERP.
16138
161392008-02-01 Dave Love <fx@gnu.org>
16140
16141 * charset.c: Doc fixes.
16142 (Funify_charset): Extra checking.
16143
161442008-02-01 Dave Love <fx@gnu.org>
16145
16146 * lread.c: Remove some unused variables.
16147 (safe_to_load_p): If safe, return the magic number version byte.
16148 (Fload): Maybe use load-with-code-conversion.
16149
161502008-02-01 Kenichi Handa <handa@m17n.org>
16151
16152 * category.c (Fmodify_category_entry): Don't modify the contents
16153 of category_set for characters out of the range. Avoid
16154 unnecessary modification.
16155
16156 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16157 Vchar_unify_table. The default value of the table is now nil.
16158
16159 * character.c (syms_of_character): Setup Vchar_width_table for
16160 eight-bit-control and raw-byte chars.
16161
16162 * charset.h (enum define_charset_arg_index): Delete
16163 charset_arg_parents and add charset_arg_subset and
16164 charset_arg_superset.
16165 (enum charset_attr_index): Delete charset_parents and add
16166 charset_subset and charset_superset.
16167 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16168 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16169 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16170 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16171 (CHARSET_SUPERSET): New macros.
16172 (charset_work): Extern it.
16173 (ENCODE_CHAR): Use charset_work.
16174 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16175 (map_charset_chars): Extern it.
16176
16177 * charset.c (load_charset_map): Set the default value of encoder
16178 and deunifier char-tables to nil.
16179 (map_charset_chars): Change argument. Change callers. Use
16180 map_char_table_for_charset instead of map_char_table.
16181 (Fmap_charset_chars): New optional args from_code and to_code.
16182 (Fdefine_charset_internal): Adjust for the change of
16183 `define-charset' (:parents -> :subset or :superset).
16184 (charset_work): New variable.
16185 (encode_char, syms_of_charset): Adjust for the change of
16186 Fdefine_charset_internal.
16187 (Ffind_charset_string): Setup the vector `charsets' correctly.
16188
16189 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16190 the previous change.
16191 (char_table_ref_and_range): Adjust for the above change.
16192 (map_sub_char_table_for_charset): New function.
16193 (map_char_table_for_charset): New function.
16194
16195 * keymap.c (describe_vector): Handle a char-table directly here.
16196 (describe_char_table): Delete.
16197
16198 * lisp.h (map_charset_chars): Delete.
16199
162002008-02-01 Dave Love <fx@gnu.org>
16201
16202 * fns.c (count_combining): Comment out (unused).
16203 (Flocale_codeset): New.
16204 (syms_of_fns): Defsubr it.
16205
16206 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16207 (size_t): Remove.
16208
162092008-02-01 Dave Love <fx@gnu.org>
16210
16211 * Makefile.in (chartab.o): Depend on charset.h.
16212
162132008-02-01 Kenichi Handa <handa@m17n.org>
16214
16215 * character.c (syms_of_character): Set the default value of
16216 Vprintable_chars to Qnil.
16217
162182008-02-01 Dave Love <fx@gnu.org>
16219
16220 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16221
162222008-02-01 Kenichi Handa <handa@m17n.org>
16223
16224 * charset.c (load_charset_map): Handle the case that from < to
16225 correctly.
16226
16227 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16228 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16229 Pay attention to raw-8-bit chars.
16230
162312008-02-01 Kenichi Handa <handa@m17n.org>
16232
16233 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16234 It is not bytecompiled now.
16235
16236 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16237 (charset_jisx0208): New variables.
16238 (Fdefine_charset_internal): Setup them if appropriate.
16239 (init_charset_once): Initialize them to -1.
16240
16241 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16242 (charset_jisx0208): Extern them.
16243
16244 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16245 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16246 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16247 (setup_iso_safe_charsets): Fix arguments to Fassq.
16248 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16249 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16250 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16251 (encode_coding_iso_2022): Change the 1st arg to
16252 ENCODE_ISO_CHARACTER to a variable.
16253
162542008-02-01 Kenichi Handa <handa@m17n.org>
16255
16256 * charset.h (enum define_charset_arg_index): New enums
16257 charset_arg_min_code and charset_arg_max_code.
16258 (struct charset): New member char_index_offset.
16259
16260 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16261 Take charset->char_index_offset into account.
16262 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16263 args[charset_arg_max_code]. Setup charset.char_index_offset.
16264 (syms_of_charset): Fix args to Fdefine_charset_internal.
16265
162662008-02-01 Dave Love <fx@gnu.org>
16267
16268 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16269
162702008-02-01 Dave Love <fx@gnu.org>
16271
16272 * coding.c: Doc fixes.
16273 (Fcoding_system_aliases): Fix return value.
16274 (Qmac): Remove (duplicated) definition.
16275
162762008-02-01 Dave Love <fx@gnu.org>
16277
362654a6
JB
16278 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16279 New functions.
aac0c6e3
MR
16280
16281 * character.c (Fstring): Doc fix.
16282
16283 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16284
362654a6 16285 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16286 (font-encoding-alist): Doc fix.
16287
162882008-02-01 Dave Love <fx@gnu.org>
16289
16290 * term.c (costs_set): Declare static, non-initialized for pcc.
16291 (encode_terminal_code): Remove unused var.
16292
16293 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16294 for K&R.
16295
16296 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16297
16298 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16299 (suffixes): Move out of make_subsidiaries for K&R.
16300
16301 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16302
16303 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16304
163052008-02-01 Dave Love <fx@gnu.org>
16306
16307 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16308
16309 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16310
163112008-02-01 Yong Lu <lyongu@asia-infonet.com>
16312
16313 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16314
16315 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16316
163172008-02-01 Kenichi Handa <handa@m17n.org>
16318
16319 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16320 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16321
163222008-02-01 Kenichi Handa <handa@m17n.org>
16323
16324 * coding.c (decode_coding_charset): Adjust for the change of
16325 Fdefine_coding_system_internal.
16326 (Fdefine_coding_system_internal): For a coding system of
16327 `charset' type, store a list of charset IDs in
16328 `charset_attr_charset_valids' element of coding attributes.
16329
163302008-02-01 Kenichi Handa <handa@m17n.org>
16331
16332 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16333 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16334 caller. Handle 2-byte and 3-byte charsets correctly.
16335 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16336 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16337 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16338 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16339 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16340 sequence.
16341 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16342 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16343 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16344 and alt&rule composition.
16345 (decode_coding_iso_2022): Handle composition correctly.
16346 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16347
16348 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16349 re-defining a charset. If the charset has :emacs-mule-id, setup
16350 emacs_mule_bytes.
16351 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16352
163532008-02-01 Kenichi Handa <handa@m17n.org>
16354
16355 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16356 (encode_coding_big5, encode_coding_charset): If coding requires safe
16357 encoding, produce a character specified by
16358 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16359
163602008-02-01 Dave Love <fx@gnu.org>
16361
16362 * xterm.c (XSetIMValues): Declare.
16363
16364 * process.c: Conditionally include sys/wait.h, pty.h.
16365
16366 * print.c (print_object): Fix print format for 64-bit systems.
16367
16368 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16369
16370 * buffer.c (emacs_strerror): Declare.
16371
16372 * fontset.c (Fclear_face_cache): Declare.
16373 (accumulate_font_info): Comment-out (unused).
16374 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16375 variables.
16376
16377 * character.h (string_escape_byte8): Declare.
16378
16379 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16380 unused vars.
16381 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16382 (Fmap_charset_chars): Doc fix.
16383
16384 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16385 (Fset_coding_system_priority, Fset_coding_system_priority)
16386 (Fdefine_coding_system_internal): Doc fix.
16387
163882008-02-01 Dave Love <fx@gnu.org>
16389
16390 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16391
163922008-02-01 Kenichi Handa <handa@m17n.org>
16393
16394 * character.c (string_escape_byte8): Make multibyte string with
16395 correct size.
16396
16397 * charset.c (Fmake_char): Delete unnecessary code.
16398
163992008-02-01 Kenichi Handa <handa@m17n.org>
16400
16401 * xfns.c (x_encode_text): Allocate coding.destination here, and
16402 call encode_coding_object with dst_object Qnil.
16403
16404 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16405 multibyte form correctly.
16406
16407 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16408 against Vfont_encoding_alist.
16409
16410 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16411 handling of charset list.
16412 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16413 (decode_coding_object): Move point to coding->dst_pos before
16414 calling post-read-conversion function.
16415 (encode_coding_object): Give correct arguments to
16416 pre-write-conversion. Ignore the return value of
16417 pre-write-conversion function. Pay attention to the case that
16418 pre-write-conversion changes the current buffer. If dst_object is
16419 Qt, even if coding->src_bytes is zero, allocate at least one byte
16420 to coding->destination.
16421
16422 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16423
16424 * charset.c (Fmake_char): Make it more backward compatible.
16425 (Fmap_charset_chars): Fix docstring.
16426
164272008-02-01 Dave Love <fx@gnu.org>
16428
16429 * coding.c: Doc fixes.
16430 (Fdefine_coding_system_alias): Use names, not symbols, in
16431 coding-system-alist.
16432
164332008-02-01 Kenichi Handa <handa@m17n.org>
16434
16435 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16436 of calling free_realized_face.
16437
164382008-02-01 Yong Lu <lyongu@asia-infonet.com>
16439
16440 * charset.c (read_hex): Don't treat SPC as a comment starter.
16441 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16442 (Fdecode_char): Fix typo.
16443
164442008-02-01 Kenichi Handa <handa@m17n.org>
16445
16446 * charset.h (struct charset): New member `code_space_mask'.
16447
16448 * coding.c (coding_set_source): Delete the local variable beg_byte.
16449 (encode_coding_charset, Fdefine_coding_system_internal):
16450 Delete the local variable charset.
16451 (Fdefine_coding_system_internal): Setup
16452 attrs[coding_attr_charset_valids] correctly.
16453
16454 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16455 member to check if CODE is valid or not.
16456 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16457 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16458 is within the range of charset->min_code and carset->max_code.
16459
164602008-02-01 Dave Love <fx@gnu.org>
16461
16462 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16463
16464 * dispextern.h (generate_ascii_font): Fix return type.
16465
16466 * xfaces.c (generate_ascii_font): Fix arg declaration.
16467
16468 * coding.c (coding_inherit_eol_type)
16469 (Fset_terminal_coding_system_internal)
16470 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16471
164722008-02-01 Kenichi Handa <handa@m17n.org>
16473
16474 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16475 multiple charsets correctly.
16476
164772008-02-01 Kenichi Handa <handa@m17n.org>
16478
16479 * search.c (boyer_moore): Fix handling of multibyte character
16480 translation.
16481
16482 * xdisp.c (display_mode_element): When the variable `elt' is
16483 changed, update `this' and `lisp_string'.
16484
164852008-02-01 Kenichi Handa <handa@m17n.org>
16486
16487 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16488
16489 * callproc.c (Fcall_process): Be sure to give the current buffer
16490 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16491
16492 * charset.c (struct charset_map_entries): New struct.
16493 (load_charset_map): Rename from parse_charset_map. New args
16494 entries and n_entries. Change caller.
16495 (load_charset_map_from_file): Rename from load_charset_map.
16496 Change caller. New arg control_flag. Call load_charset_map at
16497 the tail.
16498 (load_charset_map_from_vector): New function.
16499 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16500 (encode_char): If the charset is compact, change a character index
16501 to a code point.
16502
16503 * coding.c (coding_alloc_by_making_gap): Check the case that the
16504 source and destination are the same correctly.
16505 (decode_coding_raw_text): Set coding->consumed_char and
16506 coding->consumed to 0.
16507 (produce_chars): If coding->chars_at_source is nonzero, update
16508 coding->consumed_char and coding->consumed before calling
16509 alloc_destination.
16510 (Fdefine_coding_system_alias): Register ALIAS in
16511 Vcoding_system_alist.
16512 (syms_of_coding): Define `no-conversion' coding system at the tail.
16513
16514 * fileio.c (Finsert_file_contents): Set coding_system instead of
16515 val. If the current buffer is multibyte, always call
16516 decode_coding_gap.
16517
16518 * xfaces.c (try_font_list): Give higher priority to fontset's
16519 family than face's family.
16520
165212008-02-01 Kenichi Handa <handa@m17n.org>
16522
16523 * callproc.c (Fcall_process): Be sure to give the current buffer
16524 to decode_coding_c_string.
16525
16526 * xfaces.c (try_font_list): Give a family specified in a fontset
16527 higher priority than a family specified in a face.
16528
165292008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16532 Fix arguments to insert_from_buffer.
16533
16534 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16535
165362008-02-01 Kenichi Handa <handa@m17n.org>
16537
16538 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16539 (decode_coding_gap): Set coding->dst_multibyte correctly.
16540
165412008-02-01 Kenichi Handa <handa@m17n.org>
16542
16543 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16544 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16545 (encode_coding_utf_16): Substitute coding->default_char for
16546 non-Unicode characters.
16547 (decode_coding): Don't call record_insert here.
16548 (setup_coding_system): Initialize `surrogate' of
16549 coding->spec.utf_16 to 0.
16550 (EMIT_ONE_BYTE): Fix for multibyte case.
16551
16552 * insdel.c (insert_from_gap): Call record_insert.
16553
165542008-02-01 Kenichi Handa <handa@m17n.org>
16555
16556 * casefiddle.c (casify_region): Fix multibyte case.
16557
16558 * character.c (c_string_width): Add return type `int'.
16559 (char_string_with_unification): Delete arg ADVANCED.
16560
16561 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16562 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16563 (CHAR_STRING_ADVANCE): Make it do-while statement.
16564
16565 * chartab.c (sub_char_table_set_range): Optimize for the case
16566 DEPTH == 3. Add workaround code for a GCC optimization bug.
16567
16568 * charset.c (parse_charset_map): Remove an unused variable.
16569
16570 * coding.c: Delete unused variables.
16571
16572 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16573 earlier. If inserted is zero and the coding system doesn't
16574 require flushing, don't call decode_coding_gap.
16575
16576 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16577
165782008-02-01 Kenichi Handa <handa@m17n.org>
16579
16580 The following changes are for using Unicode as an internal
16581 character model, and use UTF-8 format for buffer/string
16582 representation.
16583
16584 * .gdbinit (xchartable): Adjust for the change of char table structure.
16585 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16586
16587 * Makefile.in (obj): Add character.o and chartab.o.
16588 (lisp, shortlisp): Remove utf-8.elc.
16589 (*.o): For many files, change dependency on charset.h to
16590 character.h, and add dependency on character.h.
16591 (character.o, chartab.o): New targets.
16592
16593 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16594 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16595 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16596 of "charset.h".
16597
16598 * dired.c, filelock.c: Include "character.h".
16599
16600 * alloc.c: Include "character.h" instead of "charset.h".
16601 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16602 (syms_of_alloc): Remove defsubr for Smake_char_table.
16603
16604 * buffer.c: Include "character.h" instead of "charset.h", don't
16605 include "coding.h".
16606 (Fset_buffer_multibyte): Adjust for UTF-8.
16607
16608 * buffer.h: EXFUN Fbuffer_live_p.
16609
16610 * callproc.c: Include "character.h" instead of "charset.h".
16611 (Fcall_process): Big change for the new code-conversion APIs.
16612
16613 * casetab.c: Include "character.h" instead of "charset.h".
16614 (set_canon, set_identity, shuffle): Adjust for the new
16615 map_char_table spec.
16616 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16617 accessing the char table structure.
16618
16619 * chartab.c: New file that implements char table.
16620
16621 * category.c: Include "character.h".
16622 (copy_category_entry): New function.
16623 (copy_category_table): Call map_char_table and copy_category_entry.
16624 (Fmake_category_table): Initialize all top-level slots.
16625 (char_category_set): New function.
16626 (modify_lower_category_set): Delete.
16627 (Fmodify_category_entry): Call char_table_ref_and_range.
16628
16629 * category.h (CATEGORY_SET): Just call char_category_set.
16630
16631 * ccl.c: Include "character.h".
16632 (Qccl, Qcclp): New variables.
16633 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16634 it's less than 256.
16635 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16636 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16637 and DST type.
16638 (ccl_driver): Change types of argument, adjust code accordingly.
16639 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16640 ccl_driver.
16641 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16642
16643 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16644 New members src_multibyte, dst_multibyte, consumed, and produced.
16645 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16646 (CODING_SPEC_CCL_PROGRAM): New macro.
16647 (ccl_driver): Update prototype.
16648 (Qccl, Qcclp, Fccl_program_p): Extern them.
16649 (CHECK_CCL_PROGRAM): New macro.
16650
16651 * character.c, character.h, chartab.c: New files.
16652
16653 * charset.c: Mostly re-written. Move character and multibyte sequence
16654 handling codes to character.c.
16655
16656 * charset.h: Mostly re-written. Move character and multibyte sequence
16657 handling codes to character.h.
16658
16659 * coding.c, coding.h: Mostly re-written.
16660
16661 * composite.c: Include "character.h" instead of "charset.h".
16662 (CHAR_WIDTH): Move to character.h.
16663 (HASH_KEY, HASH_VALUE): Delete.
16664
16665 * composite.h (enum composition_method): Change order of enumeration
16666 symbols.
16667
16668 * data.c: Include "character.h" instead of "charset.h".
16669 (Faref): Call CHAR_TABLE_REF for a char table.
16670 (Faset): Call CHAR_TABLE_SET for a char table.
16671
16672 * dispextern.h (free_realized_face, check_face_attribytes)
16673 (generate_ascii_font): Extern them.
16674 (free_realized_multibyte_face): Delete extern.
16675
16676 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16677 table structure.
16678
16679 * editfns.c: Include "character.h" instead of "charset.h".
16680 (Fchar_to_string): Always call CHAR_STRING.
16681
16682 * emacs.c (main): Call init_charset_once, init_charset,
16683 syms_of_chartab, and syms_of_character.
16684
16685 * fileio.c: Include "character.h" instead of "charset.h".
16686 (Finsert_file_contents): Big change for the new code-conversion API.
16687 (choose_write_coding_system, Fwrite_region): Likewise.
16688 (build_annotations_2): Delete.
16689 (e_write): Big change for the new code-conversion API.
16690
16691 * fns.c: Include "character.h" instead of "charset.h".
16692 (copy_sub_char_table): Move to chartab.c.
16693 (Fcopy_sequence): Call copy_char_table for a char table.
16694 (concat): Delete codes calling count_multibyte.
16695 (string_char_to_byte, string_byte_to_char): Adjust for the new
16696 multibyte form.
16697 (internal_equal): Adjust for the change of char table structure.
16698 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16699 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16700 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16701 (char_table_translate, optimize_sub_char_table)
16702 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16703 chartab.c.
16704 (char_table_ref_and_index): Delete.
16705 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16706 (Fmd5): Call preferred_coding_system instead of accessing
16707 Vcoding_category_list. Adjust for the new code-conversion API.
16708 (syms_of_fns): Move defsubr for char table related functions to
16709 chartab.c.
16710
16711 * fontset.c: Mostly re-written.
16712
16713 * fontset.h (struct font_info): Change type of the member encoding_type.
16714 (enum FONT_SPEC_INDEX): New enum.
16715 (fontset_font_pattern, fs_load_font): Update prototype.
16716 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16717
16718 * indent.c: Include "character.h" instead of "charset.h".
16719 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16720
16721 * insdel.c: Include "character.h" instead of "charset.h".
16722 (copy_text): Don't refer to Vnonascii_translation_table.
16723 (insert_from_gap): New function.
16724
16725 * keyboard.c: Include "character.h" instead of "charset.h".
16726 (command_loop_1): Never call direct_output_forward_char before
16727 a non-ASCII character.
16728 (read_char): If Vkeyboard_translate_table is a char table, always
16729 translate a character.
16730
16731 * keymap.c: Include "character.h".
16732 (store_in_keymap): Handle the case that IDX is a cons.
16733 (Fdefine_key): Handle the case that KEY is a cons and the car part
16734 is also a cons (range).
16735 (push_key_description): Adjust for the new character code.
16736 (describe_vector): Call describe_char_table for a char table.
16737 (describe_char_table): New function.
16738
16739 * keymap.h (describe_char_table): Extern it.
16740
16741 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16742 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16743 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16744 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16745 Delete.
16746 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16747 structure.
16748 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16749 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16750 (CHARTAB_SIZE_BITS_3): New macros.
16751 (chartab_size): Extern it.
16752 (struct Lisp_Char_Table): Re-design.
16753 (struct Lisp_Sub_Char_Table): New structure.
16754 (HASH_KEY, HASH_VALUE): Move from fns.c.
16755 (CHARACTERBITS): Define as 22.
16756 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16757 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16758 (GC_SUB_CHAR_TABLE_P): New macro.
16759 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16760 (code_convert_string_norecord): Deleted extern.
16761 (init_character_once, syms_of_character, init_charset)
16762 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16763
16764 * lread.c: Include "character.h".
16765 (read_multibyte): New arg NBYTES.
16766 (read_escape): Change the meaning of returned *BYTEREP.
16767 (to_multibyte): Delete.
16768 (read1): Adjust the handling of char table and string.
16769
16770 * print.c: Include "character.h" instead of "charset.h".
16771 (print_string): Convert 8-bit raw bytes to octal form by
16772 string_escape_byte8.
16773 (print_object): Adjust for the new multibyte form. Print 8-bit
16774 raw bytes always in octal form. Handle sub char table correctly.
16775
16776 * process.c: Include "character.h" instead of "charset.h".
16777 (read_process_output, send_process): Adjust for the new
16778 code-conversion API.
16779
16780 * puresize.h (BASE_PURESIZE): Increase.
16781
16782 * regex.c: Include "character.h" instead of "charset.h".
16783 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16784 (regex_compile): Accept a range whose starting and ending
16785 character have different leading bytes.
16786 (analyse_first): Adjust for the above change.
16787
16788 * search.c: Include "character.h" instead of "charset.h".
16789 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16790 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16791
16792 * syntax.c: Include "character.h" instead of "charset.h".
16793 (syntax_parent_lookup): Delete.
16794 (Fmodify_syntax_entry): Accept a cons as CHAR.
16795 (skip_chars): Adjust for the new multibyte form.
16796 (init_syntax_once): Call char_table_set_range instead of directly
16797 accessing the structure of a char table.
16798
16799 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16800 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16801 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16802 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16803
16804 * term.c: Include "buffer.h" and "character.h".
16805 (encode_terminal_code, write_glyphs): Adjust for the new
16806 code-conversion API.
16807 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16808
16809 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16810
16811 * xdisp.c: Include "character.h".
16812 (get_next_display_element): Adjust for the new multibyte form.
16813 (disp_char_vector): Adjust for the new char table structure.
16814 (decode_mode_spec_coding): Adjust for the new structure of
16815 coding system.
16816 (decode_mode_spec): Adjust for the new code-conversion API.
16817
16818 * xfaces.c: Include "character.h" instead of "charset.h".
16819 (load_face_font): Adjust for the change of choose_face_font and
16820 FS_LOAD_FONT.
16821 (generate_ascii_font): New function.
16822 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16823 (set_font_frame_param): Adjust for the change of choose_face_font.
16824 (free_realized_face): Make it public.
16825 (free_realized_faces_for_fontset): Rename from
16826 free_realized_multibyte_face. Free also faces realized for ASCII.
16827 (choose_face_font): Change arguments. Adjust for the change of
16828 fontset_font_pattern and FS_LOAD_FONT.
16829
16830 * xfns.c: Include "character.h".
16831 (x_encode_text): Adjust for the new code-conversion API.
16832
16833 * xselect.c: Don't include "charset.h".
16834 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16835
16836 * xterm.c: Include "character.h".
16837 (x_encode_char): New argument CHARSET. Change caller.
16838 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16839 Call ENCODE_CHAR instead of SPLIT_CHAR.
16840 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16841 CHAR_WIDTH instead of CHARSET_WIDTH.
16842 (XTread_socket): Adjust for the new code-conversion API.
16843 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16844 (x_load_font): Adjust for the change of struct font.
16845
168462008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16847
16848 * xfaces.c (face_at_buffer_position): Remove unused vars.
16849
168502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16851
16852 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16853 Fix overflow checking.
16854
168552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16856
16857 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16858 Cancel previous change.
16859
168602008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16861
16862 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16863 ccl->eight_bit_control. Fix check for buffer overflow.
16864 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16865 (ccl_driver): Initialize extra_bytes to 0.
16866
168672008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16868
16869 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16870 return it ORed with ctrl_modifier.
16871
168722008-01-29 Miles Bader <miles@gnu.org>
16873
16874 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16875
168762008-01-28 Jason Rumney <jasonr@gnu.org>
16877
16878 * w32.c (stat): Don't double check for networked drive.
16879
168802008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16881
16882 * window.c (run_window_configuration_change_hook): New function.
16883 Code extracted from set_window_buffer. Set the selected frame.
16884 (set_window_buffer): Use it.
16885 * window.h (run_window_configuration_change_hook): Declare.
16886 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16887
16888 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16889
168902008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16891
16892 * Makefile.in: Remove references to unused macros.
16893
168942008-01-26 Eli Zaretskii <eliz@gnu.org>
16895
16896 * w32.c (g_b_init_get_sid_sub_authority)
16897 (g_b_init_get_sid_sub_authority_count): New static variables.
16898 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16899 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16900 (init_user_info): Use them to retrieve uid and gid.
16901 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16902 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16903 st_uid and st_gid of the file.
16904
169052008-01-26 Jason Rumney <jasonr@gnu.org>
16906
16907 * w32.c (logon_network_drive): New function.
16908 (stat): Use it.
16909
169102008-01-26 Chong Yidong <cyd@stupidchicken.com>
16911
16912 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16913 invisible text covered with an ellipsis.
16914
169152008-01-25 Richard Stallman <rms@gnu.org>
16916
16917 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16918 jump back to beginning. Move some other initializations after that.
16919 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16920 New variables.
16921 (syms_of_xdisp): Init them.
16922
16923 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16924
16925 * buffer.c (reset_buffer_local_variables):
16926 Implement `permanent-local-hook'.
16927 (Qpermanent_local_hook): New variable.
16928 (syms_of_buffer): Init and staticpro it.
16929
169302008-01-25 Michael Albinus <michael.albinus@gmx.de>
16931
16932 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16933
169342008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16935
16936 * fns.c (Fclrhash): Return TABLE.
16937
169382008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16939
16940 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16941 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16942 is set even without positional changes.
16943 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16944
16945 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16946
169472008-01-23 Jason Rumney <jasonr@gnu.org>
16948
16949 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16950
16951 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16952 the unicode range available in MULE by locale-coding-system.
16953 Improve dbcs lead byte detection. Set event timestamp and modifiers
16954 earlier.
16955
169562008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16957
16958 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16959 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16960 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16961 when used on child processes.
16962
169632008-01-21 Michael Albinus <michael.albinus@gmx.de>
16964
16965 * dbusbind.c (Fdbus_method_return_internal): Rename from
16966 Fdbus_method_return.
16967 (Fdbus_unregister_object): Move to dbus.el.
16968 (Fdbus_call_method, Fdbus_method_return_internal)
16969 (Fdbus_send_signal): Improve debug messages.
16970
169712008-01-20 Martin Rudalics <rudalics@gmx.at>
16972
16973 * undo.c (undo_inhibit_record_point): New variable.
16974 (syms_of_undo): Initialize it.
16975 (record_point): Don't record point when undo_inhibit_record_point
16976 is set.
16977
169782008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
16979
16980 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16981
16982 * xdisp.c (Qauto_hscroll_mode): New var.
16983 (syms_of_xdisp): Initialize it.
16984 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16985 window's buffer.
16986 (hscroll_windows): Don't check automatic_hscrolling_p here.
16987
16988 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16989 vscroll if we're setting window-buffer to the value it already has.
16990
169912008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
16992
16993 * m/intel386.h: Remove references to XENIX.
16994
169952008-01-17 Andreas Schwab <schwab@suse.de>
16996
16997 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16998 instead of HAVE_X86_64_LIB64_DIR.
16999 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17000
170012008-01-17 Glenn Morris <rgm@gnu.org>
17002
17003 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17004 to HAVE_X86_64_LIB64_DIR.
17005
170062008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17007
17008 * s/irix3-3.h:
17009 * s/irix4-0.h:
17010 * s/386-ix.h:
17011 * s/domain.h:
17012 * s/hpux9-x11r4.h:
17013 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17014
17015 * sysdep.c: Remove code containing references to symbols defined
17016 by unsupported systems.
17017
170182008-01-16 Glenn Morris <rgm@gnu.org>
17019
17020 * coding.c (select-safe-coding-system-function): Doc fix.
17021
170222008-01-15 Glenn Morris <rgm@gnu.org>
17023
17024 * config.in: Revert 2008-01-13 change: this is a generated file.
17025
170262008-01-13 Tom Tromey <tromey@redhat.com>
17027
17028 * lisp.h: Fix typo.
17029
170302008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17031
17032 * m/sequent-ptx.h:
17033 * m/sequent.h:
17034 * s/ptx.h:
17035 * s/ptx4-2.h:
17036 * s/ptx4.h: Remove files for systems no longer supported.
17037
17038 * callproc.c (Fcall_process): Fix previous change.
17039
170402008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17041
17042 * unexsunos4.c: Remove file, system not supported anymore.
17043
17044 * m/mips.h:
17045 * m/intel386.h:
17046 * callproc.c:
17047 * config.in:
17048 * ecrt0.c:
17049 * emacs.c:
17050 * fileio.c:
17051 * frame.c:
17052 * getpagesize.h:
17053 * keyboard.c:
17054 * lread.c:
17055 * process.c:
17056 * puresize.h:
17057 * sysdep.c:
17058 * systty.h:
17059 * syswait.h:
17060 * unexec.c:
17061 * xdisp.c:
17062 * alloc.c: Remove code containing references to symbols defined by
17063 unsupported systems.
17064
170652008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17066
17067 * coding.c (detect_coding_mask): Fix previous change.
17068
170692008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17070
17071 * coding.c (detect_coding_iso2022): New arg
17072 latin_extra_code_state. Allow Latin extra codes only
17073 when *latin_extra_code_state is nonzero.
17074 (detect_coding_mask): If there is a NULL byte, detect the encoding
17075 as UTF-16 or binary. If Latin extra codes exist, detect the
17076 encoding as ISO-2022 only when there's no other proper encoding is
17077 found.
17078
170792008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17080
17081 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17082 #ifdef MAC_OS.
17083
170842008-01-08 Richard Stallman <rms@gnu.org>
17085
17086 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17087
170882008-01-06 Nick Roberts <nickrob@snap.net.nz>
17089
17090 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17091 menu bar in parentheses.
17092
170932008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17094
17095 * m/7300.h:
17096 * m/acorn.h:
17097 * m/alliant-2800.h:
17098 * m/alliant.h:
17099 * m/alliant1.h:
17100 * m/alliant4.h:
17101 * m/altos.h:
17102 * m/amdahl.h:
17103 * m/apollo.h:
17104 * m/att3b.h:
17105 * m/aviion-intel.h:
17106 * m/aviion.h:
17107 * m/celerity.h:
17108 * m/clipper.h:
17109 * m/cnvrgnt.h:
17110 * m/convex.h:
17111 * m/cydra5.h:
17112 * m/delta88k.h:
17113 * m/dpx2.h:
17114 * m/dual.h:
17115 * m/elxsi.h:
17116 * m/f301.h:
17117 * m/gould-np1.h:
17118 * m/gould.h:
17119 * m/i860.h:
17120 * m/ibmps2-aix.h:
17121 * m/ibmrt-aix.h:
17122 * m/ibmrt.h:
17123 * m/irist.h:
17124 * m/is386.h:
17125 * m/isi-ov.h:
17126 * m/mega68.h:
17127 * m/mg1.h:
17128 * m/news-r6.h:
17129 * m/news-risc.h:
17130 * m/news.h:
17131 * m/nh3000.h:
17132 * m/nh4000.h:
17133 * m/ns16000.h:
17134 * m/ns32000.h:
17135 * m/nu.h:
17136 * m/orion.h:
17137 * m/orion105.h:
17138 * m/paragon.h:
17139 * m/pfa50.h:
17140 * m/plexus.h:
17141 * m/pyramid.h:
17142 * m/pyrmips.h:
17143 * m/sh3el.h:
17144 * m/sps7.h:
17145 * m/sr2k.h:
17146 * m/stride.h:
17147 * m/sun1.h:
17148 * m/sun2.h:
17149 * m/sun3-68881.h:
17150 * m/sun3-fpa.h:
17151 * m/sun3-soft.h:
17152 * m/sun3.h:
17153 * m/sun386.h:
17154 * m/symmetry.h:
17155 * m/tad68k.h:
17156 * m/tahoe.h:
17157 * m/targon31.h:
17158 * m/tek4300.h:
17159 * m/tekxd88.h:
17160 * m/tower32.h:
17161 * m/tower32v3.h:
17162 * m/ustation.h:
17163 * m/wicat.h:
17164 * m/xps100.h:
17165 * s/cxux.h:
17166 * s/cxux7.h:
17167 * s/dgux.h:
17168 * s/dgux4.h:
17169 * s/dgux5-4-3.h:
17170 * s/dgux5-4r2.h:
17171 * s/esix.h:
17172 * s/esix5r4.h:
17173 * s/hiuxmpp.h:
17174 * s/hiuxwe2.h:
17175 * s/iris3-5.h:
17176 * s/iris3-6.h:
17177 * s/isc2-2.h:
17178 * s/isc3-0.h:
17179 * s/isc4-0.h:
17180 * s/isc4-1.h:
17181 * s/newsos5.h:
17182 * s/newsos6.h:
17183 * s/osf1.h:
17184 * s/osf5-0.h:
17185 * s/riscix1-1.h:
17186 * s/riscix12.h:
17187 * s/sco4.h:
17188 * s/sco5.h:
17189 * s/sunos4-0.h:
17190 * s/sunos4-1.h:
17191 * s/sunos413.h:
17192 * s/sunos4shr.h:
17193 * s/umax.h:
17194 * s/unipl5-2.h:
17195 * s/xenix.h:
17196 * cxux-crt0.s:
17197 * unexapollo.c:
17198 * unexconvex.c:
17199 * unexenix.c:
17200 * unexsni.c: Remove files for systems no longer supported.
17201
17202 * m/intel386.h: Remove references to unsupported systems.
17203
17204 * w32.c (get_emacs_configuration): Remove reference to i860.
17205
17206 * sysdep.c: Remove dead code.
17207
172082008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17209
17210 * s/rtu.h:
17211 * m/masscomp.h: Remove files. Platform is obsolete.
17212
172132008-01-04 Michael Albinus <michael.albinus@gmx.de>
17214
17215 * dbusbind.c (Fdbus_method_return): New function.
17216 (xd_read_message): Add the serial number to the event.
17217 (Fdbus_register_method): Activate the function.
17218
172192008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17220
17221 * keyboard.c (read_key_sequence): Fix typo.
17222
172232008-01-03 Michael Albinus <michael.albinus@gmx.de>
17224
17225 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17226 (xd_signature, xd_append_arg): Handle element type detection for
17227 empty arrays.
17228 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17229 SDATA () calls; this must be solved more general.
17230 (Fdbus_register_signal): Use SBYTES instead of strlen.
17231
172322008-01-03 Magnus Henoch <magnus@zemdatav>
17233
17234 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17235 unsigned int for byte values (necessary for big-endian platform).
17236 (Fdbus_call_method): Handle the case of no returned arguments.
17237
172382007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17239
17240 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17241
172422007-12-31 Magnus Henoch <mange@freemail.hu>
17243
17244 * dbusbind.c (xd_signature): Signature of variant is just "v".
17245
172462007-12-30 Michael Albinus <michael.albinus@gmx.de>
17247
17248 * dbusbind.c: Fix several errors and compiler warnings.
17249 Reported by Tom Tromey <tromey@redhat.com>.
17250 (XD_ERROR, XD_DEBUG_MESSAGE)
17251 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17252 (xd_append_arg): Part for basic D-Bus types rewritten.
17253 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17254 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17255 appropriate.
17256 (xd_read_message): Return Qnil. Don't signal an error; it is not
17257 useful during event reading.
17258 (Fdbus_register_signal): Signal an error if the check for
17259 FUNCTIONP fails.
17260 (Fdbus_register_method): New function. The implementation is not
17261 complete, the call of the function signals an error therefore.
17262 (Fdbus_unregister_object): New function, renamed from
17263 Fdbus_unregister_signal. The initial check signals an error, if
17264 the object is not well formed.
17265
172662007-12-30 Richard Stallman <rms@gnu.org>
17267
17268 * textprop.c (get_char_property_and_overlay):
17269 Signal error if POSITION is out of range in a buffer.
17270
172712007-12-29 Martin Rudalics <rudalics@gmx.at>
17272
17273 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17274 because the original parameters are in pure storage now.
17275
172762007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17277
17278 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17279
172802007-12-22 Eli Zaretskii <eliz@gnu.org>
17281
17282 * callint.c (syms_of_callint) <command-history>: Add reference to
17283 history-length in the doc string.
17284
172852007-12-17 Jason Rumney <jasonr@gnu.org>
17286
17287 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17288 before passing as wParam.
17289
172902007-12-22 Michael Albinus <michael.albinus@gmx.de>
17291
17292 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17293 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17294 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17295 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17296 as number.
17297 (Fdbus_call_method): Fix docstring.
17298
172992007-12-21 Michael Albinus <michael.albinus@gmx.de>
17300
17301 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17302 New macros.
17303 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17304 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17305 Simplify.
17306 (xd_signature): New function.
17307 (xd_append_arg): Compute also signatures. Major rewrite.
17308 (xd_retrieve_arg): Make debug messages friendly.
17309 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17310 Check for signatures of arguments.
17311
173122007-12-19 Michael Albinus <michael.albinus@gmx.de>
17313
17314 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17315 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17316 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17317 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17318 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17319 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17320 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17321 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17322 (xd_retrieve_value): Remove. Functionality included in ...
17323 (xd_append_arg): New function.
17324 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17325
173262007-12-16 Michael Albinus <michael.albinus@gmx.de>
17327
17328 * dbusbind.c (top): Include <stdio.h>.
17329 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17330 dbus_message_new_method_call and dbus_message_new_signal.
17331 (Fdbus_register_signal): Rename unique_name to uname.
17332 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17333 non-existing unique name. Fix typos in matching rule. Return an
17334 object which is useful in Fdbus_unregister_signal.
17335 (Fdbus_unregister_signal): Reimplementation, in order to remove
17336 only the corresponding entry.
17337 (Vdbus_registered_functions_table): Change the order of entries.
17338 Apply these changes in xd_read_message and Fdbus_register_signal.
17339
173402007-12-16 Andreas Schwab <schwab@suse.de>
17341
17342 * fileio.c (Finsert_file_contents): Fix overflow check to not
17343 depend on undefined integer overflow.
17344
173452007-12-14 Jason Rumney <jasonr@gnu.org>
17346
17347 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17348 for characters above 127.
17349
173502007-12-13 Jason Rumney <jasonr@gnu.org>
17351
17352 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17353 before dereferencing array.
17354 (lookup_vk_code): Remove zero comparison.
17355
173562007-12-14 Michael Albinus <michael.albinus@gmx.de>
17357
17358 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17359 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17360 Use `unsigned int' instead of `uint'.
17361 (xd_read_message, Fdbus_register_signal): Split expressions into
17362 multiple lines before operators "&&" and "||", according to the
17363 GNU Coding Standards.
17364
173652007-12-14 Eli Zaretskii <eliz@gnu.org>
17366
17367 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17368
173692007-12-12 Juri Linkov <juri@jurta.org>
17370
17371 * buffer.c (Frename_buffer): In interactive spec replace
17372 `read-buffer' with `read-string' that uses `buffer-name-history'
17373 as history, and the current buffer's name as default.
17374
173752007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17376
17377 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17378 manipulating the backtrace manually.
17379 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17380 (struct backtrace, backtrace_list): Remove.
17381 (command_loop_1): Remove dead var `no_direct'.
17382
17383 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17384 preserve non-built-in buffer-local variables.
17385 (Fkill_all_local_variables): Don't re-create&re-set permanent
17386 buffer-local variables.
17387
173882007-12-09 Juri Linkov <juri@jurta.org>
17389
17390 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17391 Lisp code that uses `read-buffer' with current buffer as default.
17392
173932007-12-08 Michael Albinus <michael.albinus@gmx.de>
17394
17395 * dbusbind.c (xd_read_message): Generate an event for every
17396 registered handler. There might be several handlers registered
17397 for the same signal.
17398 (Fdbus_register_signal): Don't overwrite a registration for the
17399 same signal. Add a new registration if handlers are different.
17400 (Vdbus_registered_functions_table): Rework doc string.
17401
174022007-12-07 Michael Albinus <michael.albinus@gmx.de>
17403
17404 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17405 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17406 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17407 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17408 Unify argument lists.
17409 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17410 arguments and hash table keys. Use unique name for service.
17411 (Fdbus_unregister_signal): Remove checks.
17412 (Vdbus_registered_functions_table): Fix doc string.
17413
174142007-12-05 Magnus Henoch <mange@freemail.hu>
17415
17416 * process.c (make_process): Initialize pty_flag to 0.
17417
174182007-12-05 Jason Rumney <jasonr@gnu.org>
17419
17420 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17421 specified XBMs.
17422
174232007-12-05 Richard Stallman <rms@gnu.org>
17424
17425 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17426
174272007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17428
17429 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17430 New variable.
17431 (mac_try_close_socket) [MAC_OSX]: New function.
17432 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17433 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17434
17435 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17436 Use mac_try_close_socket.
17437
174382007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17439
17440 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17441 reloc_base.
17442 (copy_dysymtab): Compute relocation base here.
17443 (rebase_reloc_address) [__ppc64__]: New function.
17444 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17445 changed.
17446
174472007-12-05 Jason Rumney <jasonr@gnu.org>
17448
17449 * w32proc.c (sys_spawnve): Quote args with wildcards.
17450
174512007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17452
17453 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17454 __objc_* sections.
17455 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17456
174572007-12-05 Michael Albinus <michael.albinus@gmx.de>
17458
17459 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17460 Move check for Vdbus_registered_functions_table to
17461 xd_read_queued_messages.
17462 (xd_read_queued_messages): Protect xd_read_message calls by
17463 internal_condition_case_1.
17464
174652007-12-04 Michael Albinus <michael.albinus@gmx.de>
17466
17467 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17468 Qdbus_system_bus and Qdbus_session_bus, respectively.
17469 (Vdbus_intern_symbols): Remove.
17470 (Vdbus_registered_functions_table): New hash table.
17471 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17472 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17473 Rewrite in order to manage registered functions by hash table
17474 Vdbus_registered_functions_table.
17475
174762007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17477
17478 * xterm.c: Update URL to Window Manager Specification in comment.
17479
174802007-12-02 Michael Albinus <michael.albinus@gmx.de>
17481
17482 * config.in (HAVE_DBUS): Add.
17483
17484 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17485 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17486 (obj): Add $(DBUS_OBJ).
17487 (LIBES): Add $(DBUS_LIBS).
17488 (dbusbind.o): New target.
17489
17490 * dbusbind.c: New file.
17491
17492 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17493
17494 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17495 (Qdbus_event): New Lisp symbol.
17496 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17497 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17498 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17499
17500 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17501
175022007-12-01 Richard Stallman <rms@gnu.org>
17503
17504 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17505
175062007-11-30 Jason Rumney <jasonr@gnu.org>
17507
17508 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17509 (w32con_reset_terminal_modes): Clear screen buffer.
17510 (w32_face_attributes): Don't use color indexes that are out of range.
17511 Only reverse the default colors.
17512
17513 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17514 WINDOWSNT.
17515
17516 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17517
175182007-11-29 Jason Rumney <jasonr@gnu.org>
17519
17520 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17521 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17522 if the terminal colors are initialized.
17523 (unspecified_fg, unspecified_bg): Remove unused declarations.
17524
175252007-11-29 Andreas Schwab <schwab@suse.de>
17526
17527 * keyboard.c (apply_modifiers): Fix typo.
17528
175292007-11-29 Richard Stallman <rms@gnu.org>
17530
17531 * keymap.c (Fcurrent_local_map): Doc fix.
17532
175332007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17534
17535 * s/gnu-kfreebsd.h: New file.
17536
175372007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17538
17539 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17540 Don't cast redundantly.
17541
17542 * keyboard.c (KEY_TO_CHAR): New macro.
17543 (parse_modifiers, apply_modifiers): Accept integer arguments.
17544 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17545 for chars and symbol keys.
17546 After doing such remapping, apply function-key-map again.
17547
175482007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17549
17550 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17551 compiled anymore.
17552
175532007-11-26 Andreas Schwab <schwab@suse.de>
17554
17555 * process.c (list_processes_1): Fix indentation level of the
17556 command column.
17557
175582007-11-23 Andreas Schwab <schwab@suse.de>
17559
17560 * editfns.c (Fformat): Handle %c specially since it requires the
17561 argument to be of type int.
17562
175632007-11-23 Markus Triska <markus.triska@gmx.at>
17564
17565 * emacs.c (main): Call init_editfns before init_process, since
17566 init_process sets Vprocess_connection_type depending on OS release.
17567
175682007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17569
17570 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17571 (find_symbol_value): Use do_symval_forwarding.
17572
17573 * data.c (set_internal): Set the value in the `cons-cell' (for
17574 Buffer_Local_values) not only for frame-local variables.
17575
175762007-11-22 Andreas Schwab <schwab@suse.de>
17577
17578 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17579 values to sprintf.
17580 * keymap.c (Fsingle_key_description): Likewise.
17581 * print.c (print_object): Likewise.
17582
175832007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17584
17585 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17586 file for image is nil.
17587
175882007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17589
17590 * term.c: Include stdarg.h.
17591 (fatal): Implement using varargs.
17592 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17593
175942007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17595
17596 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17597 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17598 Update call to buffer_slot_type_mismatch.
17599 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17600 (buffer_slot_type_mismatch): Update.
17601 * buffer.c (buffer_local_types): Remove.
17602 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17603 (defvar_per_buffer): Set the type in the buffer_objfwd.
17604
176052007-11-21 Jason Rumney <jasonr@gnu.org>
17606
17607 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17608 CreateFileMapping returns NULL on failure.
17609
176102007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17611
17612 * search.c (Fset_match_data): Remove the `evaporate' feature.
17613 (unwind_set_match_data): Don't use the `evaporate' feature.
17614
176152007-11-21 Jason Rumney <jasonr@gnu.org>
17616
17617 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17618
17619 * w32console.c (w32con_write_glyphs): Remove unused variables.
17620
176212007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17622
17623 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17624
17625 * s/darwin.h (MULTI_KBOARD): Remove.
17626
17627 * macfns.c (x_create_tip_frame, Fx_create_frame)
17628 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17629
176302007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17631
17632 * buffer.c (Fbuffer_local_value): Remove redundant test.
17633 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17634 than in `current-buffer' to match the comment.
17635 Do the swap using swap_in_global_binding.
17636
17637 * data.c (store_symval_forwarding, set_internal):
17638 * eval.c (specbind): Remove dead code.
17639
17640 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17641 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17642 Since we do not want to see internal Lisp_*fwd objects here.
17643
176442007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17645
17646 * sysdep.c (init_system_name): Use getaddrinfo if available.
17647
17648 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17649 (x_scroll_bar_note_movement): start, end, with, height in struct
17650 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17651
176522007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17653
17654 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17655
176562007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17657
17658 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17659 This undoes Richard's change of 14-Oct-2002.
17660
17661 * alloc.c (allocate_other_vector):
17662 * lisp.h (allocate_other_vector): Remove.
17663
17664 * window.c (struct save_window_data): Move non-lisp data to the end
17665 and make it `int' rather than Lisp_Object.
17666 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17667 Done wrap/unwrap integer values.
17668 (Fset_window_configuration, compare_window_configurations):
17669 Update use of fields to their new types.
17670
17671 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17672 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17673 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17674 (SET_SCROLL_BAR_X_WINDOW): Remove.
17675 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17676 Access the new x_window field directly.
17677 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17678 Don't wrap/unwrap integers into Lisp_Objects.
17679 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17680 (x_scroll_bar_report_motion):
17681 Don't wrap/unwrap integers into Lisp_Objects.
17682 (x_term_init): Use SDATA.
17683 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17684 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17685 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17686 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17687 * xfns.c (x_set_background_color):
17688 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17689 Access the new x_window field directly.
17690
17691 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17692 (allocate_pseudovector): Make non-static.
17693
17694 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17695 (allocate_pseudovector): Declare.
17696 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17697
176982007-11-15 Andreas Schwab <schwab@suse.de>
17699
17700 * editfns.c (Fformat): Correctly format EMACS_INT values.
17701 Also take precision into account when formatting an integer.
17702
17703 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17704
177052007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17706
17707 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17708 (syms_of_keyboard): Defsubr it.
17709
17710 * data.c (swap_in_global_binding): Fix longstanding bug where
17711 store_symval_forwarding was not called with the right second argument,
17712 thus causing objfwd-ing from being dropped.
17713
177142007-11-14 Juanma Barranquero <lekktu@gmail.com>
17715
17716 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17717 (Fx_display_pixel_height, Fx_display_planes)
17718 (Fx_display_color_cells, Fx_server_max_request_size)
17719 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17720 (Fx_display_visual_class, Fx_display_save_under):
17721 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17722 (Fx_display_pixel_height, Fx_display_planes)
17723 (Fx_display_color_cells, Fx_server_max_request_size)
17724 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17725 (Fx_display_mm_height, Fx_display_mm_width)
17726 (Fx_display_backing_store, Fx_display_visual_class)
17727 (Fw32_select_font, Fx_display_save_under):
17728 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17729 (Fx_display_pixel_height, Fx_display_planes)
17730 (Fx_display_color_cells, Fx_server_max_request_size)
17731 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17732 (Fx_display_save_under): Fix typos in docstrings.
17733
177342007-11-14 Juanma Barranquero <lekktu@gmail.com>
17735
17736 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17737 corresponding to deleted entries; they are an implementation detail.
17738 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17739 Remove variables.
17740 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17741 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17742 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17743 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17744 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17745 (Fw32_define_rgb_color, Fw32_load_color_file)
17746 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17747 Fix typos in docstrings.
17748 (Fx_server_version): Reflow docstring.
17749 (Fw32_shell_execute): Doc fixes.
17750
177512007-11-13 Juanma Barranquero <lekktu@gmail.com>
17752
17753 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17754 if w32_parse_hot_key returned nil.
17755
177562007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17757
17758 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17759
177602007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17761
aac0c6e3
MR
17762 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17763
17764 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17765
17766 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17767 Remove W32_SCROLL_BAR_CLICK_EVENT.
17768
17769 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17770 Add MULTIMEDIA_KEY_EVENT.
17771
17772 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17773 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17774 (make_lispy_event) [WINDOWSNT]: Use it to translate
17775 MULTIMEDIA_KEY_EVENT.
17776
17777 * w32term.h (WM_APPCOMMAND): Define if not already.
17778 (GET_APPCOMMAND_LPARAM): Likewise.
17779
17780 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17781 WM_APPCOMMAND.
17782
17783 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17784 (syms_of_w32fns): Export and initialize it.
17785 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17786
177872007-11-09 Chong Yidong <cyd@stupidchicken.com>
17788
17789 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17790 twice.
17791
17792 * xdisp.c (handle_face_prop): Fix last change.
17793
177942007-11-09 Richard Stallman <rms@gnu.org>
17795
17796 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17797 not just for after-strings and before-strings.
17798 Call face_for_overlay_string and pass the overlay to it.
17799 (handle_display_prop): Determine whether property came from an overlay.
17800 Pass OVERLAY arg to handle_single_display_spec.
17801 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17802 (load_overlay_strings): Fill in it->string_overlays.
17803 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17804
17805 * xfaces.c (face_for_overlay_string): Function renamed from
17806 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17807
17808 * dispextern.h (struct it): New elt string_overlays.
17809 New elt from_overlay, also in stack.
17810 Rearrange a few elements.
17811 (face_for_overlay_string): Decl renamed from
17812 face_at_buffer_position_no_overlays, and add argument.
17813
178142007-11-09 Richard Stallman <rms@gnu.org>
17815
17816 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17817 to get the base face for an overlay string.
17818
17819 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17820
17821 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17822
17823 * xdisp.c (handle_stop): Move some code out of loop.
17824
178252007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17826
17827 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17828 Fix conversion from Lisp object to ATSUFontID.
17829
178302007-11-09 Jason Rumney <jasonr@gnu.org>
17831
17832 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17833
178342007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17835
17836 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17837 Don't assume regions are aligned to page boundary.
17838 (print_load_command_name): Add LC_UUID if defined.
17839
178402007-11-09 Richard Stallman <rms@gnu.org>
17841
17842 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17843
178442007-11-07 Jason Rumney <jasonr@gnu.org>
17845
17846 * s/windows95.h: Remove.
17847
178482007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17849
17850 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17851 abort with a message on unhandled store_type values.
17852
178532007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17854
17855 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17856 Remove HAVE_X11R5 and HAVE_X11R4.
17857
178582007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17859
17860 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17861
178622007-11-01 Johan Bockgård <bojohan@gnu.org>
17863
17864 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17865 Don't set s->stippled_p here, since it has already been set by
17866 x_set_glyph_string_gc from x_draw_glyph_string.
17867
178682007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17869
17870 * sunfns.c: Remove file.
17871
17872 * m/sun386.h:
17873 * m/sun2.h:
17874 * m/sparc.h: Remove Sun windows code.
17875
178762007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17877
17878 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17879 (init_keyboard): Set current_kboard's window-system to nil.
17880 (tty_read_avail_input): Typo.
17881 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17882
178832007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17884
17885 * s/usg5-4.h:
17886 * s/usg5-3.h:
17887 * s/ptx.h:
17888 * m/is386.h:
17889 * m/ibmps2-aix.h:
17890 * Makefile.in: Remove all mentions of X10.
17891
17892 * dispnew.c (syms_of_display): Don't mention version 10.
17893
178942007-10-28 Juanma Barranquero <lekktu@gmail.com>
17895
17896 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17897 ($(BLD)/abbrev.$(O)): Remove.
17898
178992007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17900
17901 Rewrite abbrev.c in Elisp.
17902 * image.c (Qcount): Don't declare as extern.
17903 (syms_of_image): Initialize and staticpro `Qcount'.
17904 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17905 * emacs.c (main): Don't call syms_of_abbrev.
17906 * Makefile.in (obj): Remove abbrev.o.
17907 (abbrev.o): Remove.
17908 * abbrev.c: Remove.
17909
179102007-10-26 Martin Rudalics <rudalics@gmx.at>
17911
17912 * window.c (window_min_size_2): Don't count header-line.
17913
179142007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17915
17916 * frame.h (struct frame): Move all bit fields after the first bit
17917 field to take advantage of the available space. Group all the
17918 chars together to reduce wasted space due to padding.
17919
179202007-10-26 Juanma Barranquero <lekktu@gmail.com>
17921
17922 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17923
17924 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17925 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17926 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17927 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17928 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17929 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17930 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17931 (last_marked, mark_object_loop_halt): Make static.
17932
17933 * frame.c (syms_of_frame) <delete-frame-functions>:
17934 Fix typo in docstring.
17935
179362007-10-25 Juanma Barranquero <lekktu@gmail.com>
17937
17938 * w32.c (init_environment): Fix tiny memory leak.
17939 (w32_get_resource): Remove unused variable `ok'.
17940
179412007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17942
17943 Make `window-system' into a keyboard-local variable (rather than
17944 frame-local as done originally by multi-tty).
17945
17946 * keyboard.h (struct kboard): Add Vwindow_system.
17947 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17948 (mark_kboards): Mark Vwindow_system.
17949
17950 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17951 (init_display): Don't set the obsolete `window-system' frame-param.
17952
17953 * xterm.c (x_term_init):
17954 * w32term.c (w32_create_terminal):
17955 * term.c (init_tty): Set Vwindow_system.
17956 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17957 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17958
17959 * xfns.c (Fx_create_frame, x_create_tip_frame):
17960 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17961 * macfns.c (Fx_create_frame):
17962 Don't set the obsolete `window-system' frame-param.
17963
17964 * frame.h (Qwindow_system): Remove.
17965 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17966 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17967
179682007-10-24 Richard Stallman <rms@gnu.org>
17969
17970 * frame.c (x_figure_window_size): For fullscreen case,
17971 set USPosition | PPosition without clobbering rest of window_prompting.
17972
17973 * keyboard.c (Fcurrent_idle_time): Doc fix.
17974
17975 * print.c (Fwith_output_to_temp_buffer): Doc fix.
17976
179772007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
17978
17979 * process.c (unwind_request_sigio): Only define if __ultrix__.
17980
17981 * callproc.c (child_setup): Remove spurious *.
17982
17983 * lisp.h (Fget_text_property): Declare.
17984 (have_menus_p): Declare it here rather than in sys-dep header files.
17985 * macterm.h (have_menus_p):
17986 * msdos.h (have_menus_p):
17987 * xterm.h (have_menus_p): Remove.
17988
17989 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17990 (Fmake_variable_frame_local): Just check the variable's const-ness
17991 rather than checking nil or t.
17992
179932007-10-22 Jason Rumney <jasonr@gnu.org>
17994
17995 * w32fns.c: Include math.h.
17996 (w32_abort): Declaration moved to nt/config.nt.
17997
17998 * s/ms-w32.h (HAVE_STDLIB_H): Define.
17999 (abort): Redefinition moved to nt/config.nt.
18000
18001 * m/windowsnt.h: Remove.
18002
180032007-10-22 Juanma Barranquero <lekktu@gmail.com>
18004
18005 * emacs.c (Fdump_emacs): Fix typo in message.
18006 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18007 <installation-directory>: Reflow docstring.
18008
180092007-10-22 Juri Linkov <juri@jurta.org>
18010
18011 * minibuf.c: Allow minibuffer default to be a list of default values.
18012 With empty input use the first element of this list as returned default.
18013 (string_to_object)
18014 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18015 (read_minibuf): If defalt is cons, set histstring to its car.
18016 (Fread_string): If default_value is cons, set val to its car.
18017 (Fread_buffer): If def is cons, use its car.
18018 (Fcompleting_read): If defalt is cons, set val to its car.
18019
180202007-10-21 Michael Albinus <michael.albinus@gmx.de>
18021
18022 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18023
180242007-10-20 Juanma Barranquero <lekktu@gmail.com>
18025
18026 * doc.c (Fdocumentation): Check for advice in all cases.
18027
180282007-10-19 Chong Yidong <cyd@stupidchicken.com>
18029
18030 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18031
180322007-10-19 Richard Stallman <rms@gnu.org>
18033
18034 * doc.c (Fdocumentation): Check for and handle an advised function.
18035
180362007-10-19 Juanma Barranquero <lekktu@gmail.com>
18037
18038 * process.c (Fset_process_filter): Doc fix.
18039
180402007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18041
18042 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18043 which caused key-translation-map to applied repeatedly (thus breaking
18044 double-mode).
18045
180462007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18047
18048 * xselect.c (x_own_selection, x_handle_selection_clear)
18049 (x_clear_frame_selections):
18050 * w32menu.c (list_of_panes, list_of_items):
18051 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18052 * textprop.c (validate_plist, interval_has_all_properties)
18053 (interval_has_some_properties, interval_has_some_properties_list)
18054 (add_properties, text_property_list):
18055 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18056 * minibuf.c (Fassoc_string):
18057 * macselect.c (x_own_selection, x_clear_frame_selections)
18058 (Fx_disown_selection_internal):
18059 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18060 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18061
180622007-10-17 Chong Yidong <cyd@stupidchicken.com>
18063
18064 * process.c: Link to libs for calling res_init() if available.
18065 (Fmake_network_process): Call res_init() before getaddrinfo or
18066 gethostbyname, if possible.
18067
180682007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18069
18070 * lread.c (read1): Set pvectype for char_tables.
18071
18072 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18073 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18074 Add type checks.
18075 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18076
18077 * alloc.c (free_misc): Use XMISCTYPE.
18078 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18079
180802007-10-17 Glenn Morris <rgm@gnu.org>
18081
18082 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18083 (syms_of_minibuf): Add Qcompletion_ignore_case.
18084 * dired.c (Qcompletion_ignore_case): Change to external.
18085 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18086 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18087 (Fread_file_name): Use it rather than intern'ing.
18088
18089 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18090 (Fread_coding_system): Ignore case of user input.
18091
180922007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18093
18094 * xdisp.c (handle_display_prop): Ignore display specs after
18095 replacing one when string text is being replaced.
18096 (handle_single_display_spec): Pretend as if characters with display
18097 property haven't been consumed only when buffer text is being replaced.
18098
180992007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18100
18101 * xfns.c (Fx_create_frame, Fx_display_list):
18102 * window.c (window_fixed_size_p, enlarge_window)
18103 (shrink_window_lowest_first):
18104 * macterm.c (init_font_name_table):
18105 * macfns.c (Fx_create_frame, Fx_display_list):
18106 * lread.c (close_load_descs):
18107 * keyboard.c (read_char_x_menu_prompt):
18108 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18109 * coding.c (code_convert_region_unwind): Test the type of an object
18110 rather than just !NILP before extracting data from it.
18111
18112 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18113
18114 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18115 (XMISCANY): New macro.
18116 (XMISCTYPE): Use it.
18117 (struct Lisp_Misc_Any): New type.
18118 (union Lisp_Misc): Use it.
18119 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18120 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18121 (find_symbol_value, set_internal, default_value, Fset_default)
18122 (Fmake_variable_buffer_local, Fmake_local_variable)
18123 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18124 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18125 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18126 * alloc.c (allocate_buffer): Set the size and tag.
18127 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18128 Use XMISCANY.
18129 (die): Follow the GNU convention for error messages.
18130 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18131 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18132 tag any more.
18133 (set_buffer_internal_1):
18134 * frame.c (store_frame_param):
18135 * eval.c (specbind):
18136 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18137
18138 * doc.c (Fsnarf_documentation): Simplify.
18139
181402007-10-14 Juanma Barranquero <lekktu@gmail.com>
18141
18142 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18143 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18144
181452007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18146
18147 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18148
181492007-10-14 Juanma Barranquero <lekktu@gmail.com>
18150
18151 * eval.c (do_autoload): Don't save autoloads.
18152
18153 * data.c (Ffset): Save autoload of the function being set.
18154
181552007-10-07 John Paul Wallington <jpw@pobox.com>
18156
18157 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18158 parameter before setting up faces.
18159
181602007-10-13 Eli Zaretskii <eliz@gnu.org>
18161
18162 * ccl.c (Fregister_code_conversion_map):
18163 * keyboard.c (append_tool_bar_item): Reformat last change.
18164
18165 * lisp.h (eabs): Rename from `abs'. All callers changed.
18166
181672007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18168
18169 * buffer.c (add_overlay_mod_hooklist):
18170 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18171 * fontset.c (make_fontset):
18172 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18173 (append_tool_bar_item):
18174 * macmenu.c (grow_menu_items):
18175 * w32menu.c (grow_menu_items):
18176 * xmenu.c (grow_menu_items): Use larger_vector.
18177
181782007-10-13 Eli Zaretskii <eliz@gnu.org>
18179
18180 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18181 selected frame'' on MSDOS).
18182
181832007-10-12 Martin Rudalics <rudalics@gmx.at>
18184
18185 * frame.c (Qexplicit_name): New variable.
18186 (x_report_frame_params): Report it in parameter alist.
18187 (syms_of_frame): Intern and staticpro it.
18188
181892007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18190
18191 * macfns.c (x_create_tip_frame): Set terminal for frame.
18192
181932007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18194
18195 * frame.c (Qenvironment): Remove.
18196 (syms_of_frame) <Qenvironment>: Don't initialize.
18197 (Fdelete_frame): Don't treat the `environment' param specially.
18198 * frame.h (Qenvironment): Don't declare.
18199 * callproc.c (set_initial_environment): Don't set unused frame param.
18200
18201 * frame.c (Fframe_with_environment): Remove.
18202 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18203
18204 * lisp.h (Fframe_with_environment): Don't declare.
18205
182062007-10-10 Juanma Barranquero <lekktu@gmail.com>
18207
18208 * indent.c (indent_tabs_mode, last_known_column)
18209 (last_known_column_modified): Make static.
18210 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18211
182122007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18213
18214 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18215
182162007-10-09 Jason Rumney <jasonr@gnu.org>
18217
18218 * w32term.c (x_set_window_size): Disable code that attempts to tell
18219 Lisp code about a size change before it actually happens.
18220
182212007-10-09 Richard Stallman <rms@gnu.org>
18222
18223 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18224 return HANDLED_RETURN.
18225
182262007-10-08 Martin Rudalics <rudalics@gmx.at>
18227
18228 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18229 when there's an unread command event.
18230
18231 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18232 window autoselection act appropriately when leaving selected frame.
18233 (syms_of_frame): Initialize focus_follows_mouse.
18234 * frame.h (focus_follows_mouse): Extern it.
18235 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18236 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18237 * msdos.c (dos_rawgetc): Likewise.
18238 * w32term.c (w32_read_socket): Likewise.
18239 * xterm.c (handle_one_xevent): Likewise.
18240 * xdisp.c (syms_of_xdisp): In doc-string of
18241 mouse-autoselect-window mention focus-follows-mouse.
18242
182432007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18244
18245 * macterm.c (mac_load_query_font): Fix missing return value.
18246 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18247 Add BLOCK_INPUT.
18248
182492007-10-08 Richard Stallman <rms@gnu.org>
18250
18251 * xdisp.c (get_window_cursor_type): Implement documented behavior
18252 for cursor-in-non-selected-windows = t.
18253
182542007-10-08 Jason Rumney <jasonr@gnu.org>
18255
18256 * w32.c (w32_get_resource): Always close registry keys.
18257
182582007-10-08 Jason Rumney <jasonr@gnu.org>
18259
18260 * makefile.w32-in (LIBS): Add COMCTL32.
18261
18262 * w32fns.c (globals_of_w32fns): Init common controls.
18263
182642007-10-08 Richard Stallman <rms@gnu.org>
18265
18266 * image.c (our_memory_buffer): Rename from omfib_buffer.
18267
182682007-10-08 Richard Stallman <rms@gnu.org>
18269
18270 * buffer.c (Foverlays_at): Doc fix.
18271
182722007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18273
18274 * fns.c (Fplist_put): Preserve uneven tail data.
18275
182762007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18277
18278 * termhooks.h (enum event_kind): Remove trailing comma.
18279
18280 * frame.h (enum): Remove trailing comma.
18281
182822007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18283
18284 * w32proc.c (delete_child): Don't terminate threads of zombies.
18285
182862007-10-08 Martin Rudalics <rudalics@gmx.at>
18287
18288 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18289
18290 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18291 last-repeatable-command.
18292 (init_kboard): Initialize Vlast_repeatable_command.
18293 (command_loop_1): Set it to real_this_command unless that was
18294 bound to an input event.
18295 (mark_kboards): Mark it.
18296
182972007-10-08 Richard Stallman <rms@gnu.org>
18298
18299 * eval.c (condition-case): Doc fix.
18300
183012007-10-08 Masatake YAMATO <jet@gyve.org>
18302
18303 * xfaces.c (tty_supports_face_attributes_p): Fix code
18304 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18305 was copied and not edited.
18306
183072007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18308
18309 Add new `input-decode-map' keymap and use it for terminal
18310 escape sequences.
18311 * keyboard.h (struct kboard): Add Vinput_decode_map.
18312 Remove Vlocal_key_translation_map.
18313 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18314 (init_kboard): Init input-decode-map.
18315 Replace local-key-translation-map back with key-translation-map.
18316 (syms_of_keyboard): Declare input-decode-map.
18317 Remove local-key-translation-map. Update docstrings.
18318 (mark_kboards): Mark Vinput_decode_map.
18319 Don't mark Vlocal_key_translation_map.
18320 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18321 Replace local-key-translation-map back with key-translation-map.
18322 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18323 Bind in input-decode-map rather than function-key-map.
18324
18325 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18326 This was made redundant by the previous introduction of XSETPVECTYPE.
18327
183282007-10-09 Richard Stallman <rms@gnu.org>
18329
18330 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18331
183322007-09-29 Richard Stallman <rms@gnu.org>
18333
18334 * eval.c (internal_condition_case_2, internal_condition_case_1)
18335 (internal_condition_case): Reenable abort if x_catching_errors ()
18336 to see if that really happens and why.
18337
183382007-10-06 Andreas Schwab <schwab@suse.de>
18339
18340 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18341
183422007-10-04 Juanma Barranquero <lekktu@gmail.com>
18343
18344 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18345
183462007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18347
18348 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18349
183502007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18351
18352 * window.h (struct window):
18353 * window.c (struct save_window_data, struct saved_window):
18354 * termhooks.h (struct terminal):
18355 * process.h (struct Lisp_Process):
18356 * frame.h (struct frame):
18357 * buffer.h (struct buffer):
18358 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18359 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18360 The size field of (pseudo)vectors is now unsigned.
18361 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18362
18363 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18364 Turn `count' into an integer.
18365
18366 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18367 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18368 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18369 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18370 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18371
18372 * alloc.c (allocate_pseudovector): New fun.
18373 (ALLOCATE_PSEUDOVECTOR): New macro.
18374 (allocate_window, allocate_terminal, allocate_frame)
18375 (allocate_process): Use it.
18376 (mark_vectorlike): New function.
18377 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18378 (mark_terminals): Use it.
18379 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18380 (Fmake_byte_code): Use XSETPVECTYPE.
18381
18382 * frame.c (Fframe_parameters): Minor simplification.
18383
18384 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18385
18386 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18387
18388 * buffer.c (Fget_buffer_create, init_buffer_once):
18389 * lread.c (defsubr):
18390 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18391
18392 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18393 defined differently in the m/*.h files.
18394 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18395 (XSETPVECTYPE): New macro.
18396 (XSETPSEUDOVECTOR): Use it.
18397
18398 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18399 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18400
18401 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18402 * lread.c (defvar_per_buffer):
18403 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18404
18405 * window.c (candidate_window_p): Only consider as visible frames that
18406 are on the same terminal.
18407
18408 * m/ibms390x.h (MARKBIT): Remove unused macro.
18409
184102007-10-01 Juanma Barranquero <lekktu@gmail.com>
18411
18412 * lread.c (Fload): Fix typo in docstring.
18413
184142007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18415
18416 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18417 of a non-zero value can't yield zero.
18418
184192007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18420
18421 * term.c (term_clear_mouse_face, term_mouse_highlight)
18422 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18423
18424 * print.c (safe_debug_print): Use XHASH.
18425
18426 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18427 Lisp elements such as tags.
18428 (XHASH): New macro.
18429 (EQ): Use it.
18430 (SREF, SSET, STRING_COPYIN): Use SDATA.
18431 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18432
18433 * alloc.c (mark_terminal): Remove left-over declaration.
18434 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18435 (allocate_vectorlike): Remove type argument. Adjust callers.
18436 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18437 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18438
18439 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18440 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18441 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18442 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18443 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18444 Use them.
18445
18446 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18447 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18448 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18449
184502007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18451
18452 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18453 loaded by default.
18454
184552007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18456
18457 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18458 on this tty.
18459 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18460
18461 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18462 Update all users.
18463 (handle_one_term_event): Use Gpm_DrawPointer.
18464 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18465 Signal errors instead of returning nil. Always return nil.
18466 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18467 Make it a noop if gpm-mouse was not activated.
18468 (syms_of_term): Update names.
18469
184702007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18471
18472 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18473 (init_sys_modes): Check that gpm_tty is the current tty.
18474
18475 * alloc.c (allocate_terminal): Set the vector size to only count the
18476 lisp fields. Initialize those to nil.
18477 (mark_object): Don't treat terminals specially.
18478 (mark_terminal): Remove.
18479 (mark_terminals): Use mark_object instead.
18480
18481 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18482 the GC to the beginning.
18483
18484 * indent.h:
18485 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18486
18487 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18488
184892007-09-25 Jason Rumney <jasonr@gnu.org>
18490
18491 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18492
18493 * w32console.c (create_w32cons_output): Remove.
18494
18495 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18496
18497 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18498 (reset_sys_modes): Use reset_terminal_modes_hook.
18499
185002007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18501
18502 * eval.c (do_autoload): Don't output any message.
18503
185042007-09-24 Juri Linkov <juri@jurta.org>
18505
18506 * emacs.c (standard_args): Change priority of "--no-splash"
18507 from 40 to 3. Add "--no-desktop" with the same priority.
18508
185092007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18510
18511 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18512 and optimize the case where they are all 1.
18513
185142007-09-23 Johannes Weiner <hannes@saeurebad.de>
18515
18516 * lisp.h (abs): Define if not defined.
18517 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18518 Don't define `abs', since it's defined in lisp.h.
18519
185202007-09-22 Eli Zaretskii <eliz@gnu.org>
18521
18522 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18523 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18524 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18525 (init_tty): Use DEV_TTY instead of "/dev/tty".
18526 [WINDOWSNT]: No need to protect from NAME arg being null.
18527
185282007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18529
18530 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18531 up the tty state.
18532
185332007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18534
18535 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18536 (gpm_tty): Change its type.
18537 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18538 (gpm_tty): Change its type and initialize it.
18539 (Fterm_open_connection): Check the frame is indeed a tty.
18540 Use the new gpm_tty.
18541 (Fterm_close_connection): Use the new gpm_tty.
18542 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18543 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18544
185452007-09-21 Juanma Barranquero <lekktu@gmail.com>
18546
18547 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18548 underline_color, to draw strike-through.
18549
185502007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18551
18552 * lisp.h (allocate_terminal): Declare.
18553
18554 * window.c (candidate_window_p): Consider frames that are being placed
18555 by the user as somewhere between visible and iconified.
18556 (window_loop): Prefer windows on the current frame.
18557 (Fselect_window): Move the use of select-frame to the beginning so we
18558 can just delegate all the work (it'll call us back anyway).
18559
18560 * frame.c (Qdisplay_environment_variable):
18561 * frame.h (Qdisplay_environment_variable): Delete.
18562
18563 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18564 of the first arg, since that value may be a union.
18565
18566 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18567 parameter rather than Qdisplay_environment_variable. If all else
18568 fails, look for DISPLAY in initial-environment.
18569
185702007-09-21 Glenn Morris <rgm@gnu.org>
18571
18572 * Makefile.in (emacstool): Remove target.
18573 (lisp, shortlisp): Remove termdev.elc.
18574
185752007-09-21 Markus Triska <markus.triska@gmx.at>
18576
18577 * xterm.c (x_delete_display): Compile session management conditionally.
18578
185792007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18580
18581 * callproc.c (getenv_internal_1): New function.
18582 (getenv_internal): Use it.
18583 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18584
18585 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18586 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18587 (Fset_terminal_parameter): Work with dead terminals as well.
18588 (Fmodify_terminal_parameters): Remove.
18589
18590 * terminal.c (get_terminal): Handle terminals.
18591 Make sure the terminal returned is live.
18592 (create_terminal): Use allocate_terminal.
18593 (mark_terminals): Move to alloc.c.
18594 (delete_terminal): Use terminal->name as liveness status.
18595 NULL out fields after freeing their contents.
18596 Don't deallocate the object.
18597 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18598 rather than an int.
18599 (Fterminal_live_p): Accept non-integer arguments.
18600 (Fterminal_list): Return terminal objects rather than an ints.
18601
18602 * alloc.c (enum mem_type): New member for `terminal' objects.
18603 (allocate_terminal): New function.
18604 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18605 Handle terminals.
18606 (mark_terminal): New fun.
18607 (mark_terminals): Move from terminal.c.
18608
18609 * term.c (get_tty_terminal): Don't treat output_initial specially.
18610 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18611 (delete_tty): Use terminal->name as liveness status.
18612
18613 * termhooks.h (struct terminal): Make it into a pseudovector.
18614 Remove `deleted' replaced by checking `name's nullness.
18615
18616 * print.c (print_object): Handle terminals.
18617
18618 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18619 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18620
18621 * frame.c (make_terminal_frame):
18622 * keyboard.c (tty_read_avail_input):
18623 * w32term.c (x_delete_terminal):
18624 * xfns.c (Fx_create_frame, x_create_tip_frame):
18625 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18626
186272007-09-20 Glenn Morris <rgm@gnu.org>
18628
18629 * process.c (Fmake_network_process): Doc fix.
18630
186312007-09-19 Jason Rumney <jasonr@gnu.org>
18632
18633 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18634
186352007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18636
18637 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18638 Fix a C warning regarding variable constness.
18639
18640 * xterm.c (handle_one_xevent): Fix a C warning.
18641
186422007-09-18 Jason Rumney <jasonr@gnu.org>
18643
18644 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18645
186462007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18647
18648 * gtkutil.c (gdpy_def): New variable.
18649 (xg_initialize): Initialize gdpy_def.
18650 (xg_display_close): If no other display exists, set gdpy_def to a
18651 new connection.
18652
186532007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18654
18655 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18656 when we have no file name for the icon.
18657 (xg_tool_bar_expose_callback): Remove.
18658 (xg_create_tool_bar): Don't connect expose signal to
18659 xg_tool_bar_expose_callback.
18660 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18661
186622007-09-16 Andreas Schwab <schwab@suse.de>
18663
18664 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18665 values instead of zapping them.
18666
186672007-09-14 Glenn Morris <rgm@gnu.org>
18668
18669 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18670 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18671 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18672 scope and rename to omfib_buffer for clarity.
18673 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18674
186752007-09-14 Kenichi Handa <handa@m17n.org>
18676
18677 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18678
186792007-09-13 Jason Rumney <jasonr@gnu.org>
18680
18681 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18682
18683 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18684
18685 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18686 (mac_term_init): Call here instead, passing rif.
18687
186882007-09-13 Glenn Morris <rgm@gnu.org>
18689
18690 * s/hpux.h: No longer define `static' as nothing.
18691
186922007-09-13 Johan Bockgård <bojohan@gnu.org>
18693
18694 * callint.c (Fcall_interactively): Remove unused var `fun'.
18695
186962007-09-12 Romain Francoise <romain@orebokech.com>
18697
18698 * window.c (prefer_window_split_horizontally, display_buffer):
18699 Revert 2007-09-08 change.
18700
187012007-09-12 Glenn Morris <rgm@gnu.org>
18702
18703 * alloca.c: Remove file.
18704 * Makefile.in (alloca): Do not undef.
18705 (allocaobj, alloca.o): Remove.
18706 (otherobj): Remove allocaobj.
18707 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18708 * regex.c (C_ALLOCA): Remove all references and code that was only
18709 used when this was defined.
18710 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18711 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18712 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18713
18714 * Makefile.in (SOURCES, unlock, relock): Delete.
18715
18716 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18717 (menu_grab_callback): All uses changed.
18718
18719 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18720 (x_reply_selection_request): All uses changed.
18721
187222007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18723
18724 * lread.c (load_warn_old_style_backquotes): Change message to look
18725 better when it appears in the middle of byte-compiler messages.
18726
187272007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18728
18729 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18730
18731 * xterm.c (x_create_terminal): Add comment.
18732
18733 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18734
187352007-09-10 Richard Stallman <rms@gnu.org>
18736
18737 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18738
187392007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18740
18741 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18742 (DEFUN): Document `intspec', use it instead of `prompt'.
18743
18744 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18745
18746 * data.c (Finteractive_form): If the interactive specification starts
18747 with a `(', use it as a Lisp form.
18748
18749 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18750 name and file modes.
18751
18752 * callint.c (Fcall_interactively): Comment fixes.
18753
187542007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18755
18756 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18757 and compiled functions.
18758
187592007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18760
18761 * window.c (prefer_window_split_horizontally): New variable.
18762 (display_buffer): Consider splitting window horizontally depending
18763 on prefer_window_split_horizontally.
18764
187652007-09-08 Eli Zaretskii <eliz@gnu.org>
18766
18767 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18768
187692007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18770
18771 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18772
18773 * frame.c (x_set_frame_parameters): Check number is positive before
18774 using XFASTINT.
18775
18776 * window.c (freeze_window_start): Don't presume selected_window holds
18777 a window object.
18778 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18779
187802007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18781
18782 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18783
187842007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18785
18786 * window.c (Vsplit_window_preferred_function): New var.
18787 (Fdisplay_buffer): Use it.
18788 (syms_of_window): Export, and initialize it.
18789
187902007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18791
18792 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18793
187942007-09-06 Glenn Morris <rgm@gnu.org>
18795
18796 * gtkutil.c (menu_grab_callback) <cnt>:
18797 * xselect.c (x_reply_selection_request) <cnt>: Move static
18798 variable to file scope.
18799
188002007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18801
18802 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18803 consistent values of selected_frame and selected_window.
18804
188052007-09-04 Jason Rumney <jasonr@gnu.org>
18806
18807 * w32console.c (initialize_w32_display): Zero unused hooks.
18808
188092007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18810
18811 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18812 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18813
188142007-09-04 Jason Rumney <jasonr@gnu.org>
18815
18816 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18817 in w32console.c. Set up input. Remove XXX comments that have been
18818 confirmed as correct.
18819
18820 * s/ms-w32.h (MULTI_KBOARD): Define.
18821
18822 * w32console.c (one_and_only_w32cons): Remove.
18823 (initialize_w32_display): Take terminal argument.
18824
18825 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18826 initialize_w32_display.
18827 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18828
18829 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18830
18831 * keyboard.c (discard_mouse_events): Discard it.
18832 (make_lispy_event): Translate it to a lisp event.
18833 (lispy_wheel_names): Add wheel-left and right events.
18834 (syms_of_keyboard): Enlarge wheel_syms.
18835
18836 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18837 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18838
18839 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18840
18841 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18842 from WM_MOUSEHWHEEL.
18843 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18844
18845 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18846 terminal.
18847
18848 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18849 keyboard for the terminal.
18850
188512007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18852
18853 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18854 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18855 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18856 and resume-tty-function to resume-tty-hook.
18857 (Fsuspend_tty, Fresume_tty): Use new names.
18858
188592007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18860
18861 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18862 if it starts with "n:".
18863
188642007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18865
18866 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18867
188682007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18869
18870 * frame.h:
18871 * frame.c (Qterm_environment_variable): Remove.
18872 (syms_of_frame): Don't init and staticpro it.
18873
18874 * callproc.c (getenv_internal): Remove special case for $TERM.
18875
18876 * callproc.c (Vinitial_environment): New variable.
18877 (set_initial_environment): Initialize it.
18878 (syms_of_callproc): Declare it.
18879 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18880 TERM under which a process runs is never related to the TERM in which
18881 Emacs is running.
18882
188832007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18884
18885 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18886 * s/darwin.h: ... do it here.
18887
188882007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18889
18890 * lisp.h (set_initial_environment): Rename from set_global_environment.
18891
18892 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18893 removed by mistake on the multi-tty branch.
18894
18895 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18896 (Fmodify_frame_parameters): Return a value.
18897
18898 * image.c (png_load): Comment-out var only used in commented-out code.
18899
18900 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18901 before passing it to mark_object.
18902
18903 * xfaces.c (internal_resolve_face_name): Return a value.
18904 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18905
18906 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18907 (x_icon): Comment-out var only used in commented-out code.
18908
189092007-08-29 Romain Francoise <romain@orebokech.com>
18910
18911 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18912 QUIT hasn't been provided.
18913
189142007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18915
18916 * callproc.c (child_setup, getenv_internal): Use the
18917 display-environment-variable and term-environment-variable frame params.
18918 (set_initial_environment): Initialise Vprocess_environment.
18919
18920 * config.in: Disable multi-keyboard support on a mac.
18921
18922 * frame.c (Qterm_environment_variable)
18923 (Qdisplay_environment_variable): New variables.
18924 (syms_of_frame): Intern and staticpro them.
18925 (Fmake_terminal_frame): Disable output method test.
18926
18927 * frame.h: Declare them here.
18928
18929 * macfns.c (x_set_mouse_color): Get rif from the frame.
18930 (x_set_tool_bar_lines): Don't use updating_frame.
18931 (mac_window): Add 2 new parameters for consistency with other systems.
18932 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18933 frame parameters following what is done in X11 and w32. Don't use
18934 FRAME_MAC_DISPLAY_INFO.
18935 (Fx_open_connection, start_hourglass): Remove window-system check.
18936 (x_create_tip_frame): Get the keyboard from the terminal.
18937
18938 * macmenu.c: Reorder includes.
18939 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18940
18941 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18942 terminal parameter.
18943 (x_clear_frame): Add a frame parameter.
18944 (note_mouse_movement): Get rif from the frame.
18945 (mac_term_init): Initialize the terminal.
18946 (mac_initialize): Make static and move terminal initialization ...
18947 (mac_create_terminal): ... to this new function.
18948
18949 * macterm.h (struct mac_display_info): Add terminal.
18950 (mac_initialize): Delete declaration.
18951
18952 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18953
18954 * sysdep.c: Comment out text after #endif.
18955
18956 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18957 is defined. Better initialize ttys in windows. Use terminal
18958 specific mouse_position_hook.
18959
18960 * termhooks.h (union display_info): Add mac_display_info.
18961
18962 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18963 Set the default minibuffer frame, window_system and the rest of the
18964 frame parameters following what is done in X11.
18965
18966 * w32term.c (w32_initialize): Make static.
18967
18968 * xselect.c (x_handle_selection_clear): Only access
18969 terminal->kboard when MULTI_KBOARD is defined.
18970
18971 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18972 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18973
189742007-08-29 Jason Rumney <jasonr@gnu.org>
18975
18976 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18977 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18978
18979 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18980 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18981
18982 * keyboard.c (restore_kboard_configuration): Only define when
18983 MULTI_KBOARD defined.
18984
18985 * makefile.w32-in: Update dependancies from Makefile.in.
18986 (OBJ1): Add terminal.$(O)
18987
18988 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18989 Don't define function body.
18990 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18991
18992 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18993
18994 * w32.c (request_sigio, unrequest_sigio): Remove.
18995
18996 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18997 (w32con_clear_frame, w32con_clear_end_of_line)
18998 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18999 (w32con_delete_glyphs, w32con_set_terminal_window)
19000 (scroll_line, w32_sys_ring_bell): Add frame arg.
19001 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19002 Add terminal arg.
19003 (PICK_FRAME): Remove.
19004 (w32con_write_glyphs): Use frame specific terminal coding.
19005 (one_and_only_w32cons): New global variable.
19006 (initialize_w32_display): Use it for storing hooks.
19007 (create_w32cons_output): New function.
19008
19009 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19010 arg a frame.
19011
19012 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19013 Set window_system.
19014 (x_set_tool_bar_lines): Don't use updating_frame.
19015 (Fx_create_frame): Set terminal and ref count.
19016 (Fx_open_connection): Remove window-system check.
19017
19018 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19019
19020 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19021 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19022 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19023 Add frame arg.
19024 (x_delete_terminal, w32_create_terminal): New functions.
19025 (w32_term_init): Create a terminal.
19026 (w32_initialize): Move terminal specific initialization to
19027 w32_create_terminal.
19028
19029 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19030 (w32_clear_rect, w32_clear_area): Use background from frame.
19031 (w32_display_info): Add terminal.
19032 (w32_sys_ring_bell, x_delete_display): Declare here.
19033
19034 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19035
19036 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19037
190382007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19039
19040 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19041 Fix get_named_tty calls for the controlling tty.
19042
190432007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19044
19045 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19046
190472007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19048
19049 * term.c (tty_insert_glyphs): Add missing first parameter.
19050
190512007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19052
19053 * buffer.c (Fbuffer_list, Fbury_buffer):
19054 Take frame->buried_buffer_list into account.
19055
19056 * cm.c (current_tty): New variable, for cmputc().
19057 (cmputc): Use it.
19058 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19059 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19060 (cmgoto): Add tty parameter. Pass it on to calccost().
19061 Use emacs_tputs() instead of tputs().
19062
19063 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19064 tputs().
19065 (current_tty): New variable, for cmputc().
19066 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19067
19068 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19069 (internal_condition_case, internal_condition_case_1)
19070 (internal_condition_case_2): Don't abort when x_catching_errors.
19071
19072 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19073 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19074 prevent crashes caused by bogus longjmps in read_char.
19075
19076 * keymap.h (Fset_keymap_parent): Add EXFUN.
19077
19078 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19079 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19080 Remove redundant definition.
19081
19082 * macfns.c (x_set_mouse_color, x_make_gc):
19083 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19084
19085 * w32term.c (x_free_frame_resources):
19086 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19087 (w32_initialize): Use the accessor macros for terminal characteristics.
19088
19089 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19090 Use the accessor macros for terminal characteristics.
19091 * msdos.c (internal_terminal_init): Use the accessor macros for
19092 terminal characteristics.
19093 (ScreenVisualBell, internal_terminal_init):
19094 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19095
19096 * termopts.h (no_redraw_on_reenter): Declare.
19097
19098 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19099 (mark_terminals, mark_ttys): Declare.
19100 (Fgarbage_collect): Call them.
19101 (mark_object): Mark buried_buffer_list.
19102
19103 * prefix-args.c: Include stdlib.h for exit.
19104
19105 * syssignal.h: Add comment.
19106
19107 * indent.c: Include stdio.h.
19108
19109 * window.h (Vinitial_window_system): Declare.
19110 (Vwindow_system): Delete declaration.
19111
19112 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19113
19114 * image.c (lookup_image): Don't initialize `c' until the xasserts
19115 have been run.
19116
19117 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19118 FRAME_FOREGROUND_PIXEL.
19119
19120 * print.c (print_preprocess): Don't lose print_depth levels while
19121 iterating.
19122
19123 * widget.c (update_from_various_frame_slots):
19124 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19125
19126 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19127 frames.
19128 (window_internal_height): Remove bogus make_number call.
19129 (init_window_once): Call make_terminal_frame with two zero parameters.
19130
19131 * fileio.c (Fread_file_name): Update comment.
19132
19133 * callint.c (Fcall_interactively):
19134 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19135 Make sure it is correctly unwound.
19136
19137 * xsmfns.c (x_session_close): New function.
19138
19139 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19140 Delete declarations.
19141
19142 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19143 (x_output): Remove background_pixel and foreground_pixel fields.
19144 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19145 (x_delete_device, x_session_close): Declare.
19146
19147 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19148 (read_filtered_event): Call `read_char' with a local
19149 `wrong_kboard_jmpbuf'.
19150
19151 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19152 Don't call single_kboard_state. Use FRAME_RIF.
19153
19154 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19155 systems.
19156
19157 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19158 (Fframe_with_environment, Fset_input_meta_mode)
19159 (Fset_quit_char): EXFUN.
19160 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19161 (init_sys_modes, reset_sys_modes): Update prototypes.
19162 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19163
19164 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19165 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19166 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19167 Delete declarations.
19168 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19169 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19170 New declarations.
19171
19172 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19173 already does that during init_display(). Call syms_of_keymap
19174 before syms_of_keyboard. Call `syms_of_terminal'.
19175 Call set_initial_environment, not set_process_environment.
19176 (shut_down_emacs): Call reset_all_sys_modes() instead of
19177 reset_sys_modes().
19178
19179 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19180 (internal_resolve_face_name, resolve_face_name_error): New functions.
19181 (resolve_face_name): Protect against loops and errors thrown by Fget.
19182 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19183 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19184
19185 * scroll.c: Replace CURTTY() with local variables throughout the
19186 file (where applicable).
19187 (calculate_scrolling, calculate_direct_scrolling)
19188 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19189 characteristics.
19190
19191 * keymap.c (Vfunction_key_map): Remove.
19192 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19193 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19194 (Vkey_translation_map): Remove.
19195 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19196 (Fdescribe_buffer_bindings)
19197 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19198 Update for terminal-local key-translation-map.
19199
19200 * Makefile.in (callproc.o): Update dependencies.
19201 (lisp, shortlisp): Add termdev.elc.
19202 (obj): Add terminal.o.
19203 (terminal.o): Add dependencies.
19204 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19205 (data.o, fns.o): Add termhooks.h dependency.
19206 (SOME_MACHINE_LISP): Add dnd.elc.
19207 (minibuf.o): Fix typo.
19208 Update dependencies.
19209
19210 * data.c (do_symval_forwarding, store_symval_forwarding)
19211 (find_symbol_value): Use the selected frame's keyboard, not
19212 current_kboard.
19213
19214 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19215 Vwindow_system.
19216
19217 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19218 Fmenu_bar_open.
19219 (syms_of_xmenu): Update defsubr.
19220 (mouse_position_for_popup, Fx_popup_menu)
19221 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19222 (set_frame_menubar, free_frame_menubar)
b97439ce 19223 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19224 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19225 an X frame.
19226
19227 * xselect.c (x_own_selection): Abort if not an X frame.
19228 (some_frame_on_display): Check if it is an X frame.
19229 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19230
19231 * coding.c: Include frame.h and termhooks.h.
19232 (terminal_coding, keyboard_coding): Delete.
19233 (Fset_terminal_coding_system_internal)
19234 (Fset_keyboard_coding_system_internal)
19235 (Fkeyboard_coding_system)
19236 (Fterminal_coding_system): Add a terminal parameter.
19237 Get terminal_coding from the terminal.
19238 (init_coding_once): Don't call setup_coding_system here.
19239
19240 * dispextern.h (set_scroll_region, turn_off_insert)
19241 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19242 (tty_clear_end_of_line, tty_setup_colors)
19243 (delete_tty, updating_frame)
19244 (produce_special_glyphs, produce_glyphs, write_glyphs)
19245 (insert_glyphs): Remove.
19246 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19247 (tty_turn_off_highlight, get_tty_size): Add declaration.
19248 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19249
19250 * frame.h (enum output_method): Add output_initial.
19251 (struct x_output): Delete.
19252 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19253 Access foreground_pixel and background_pixel directly from the frame.
19254 (tty_display): Delete.
19255 (struct frame): Add buried_buffer_list, foreground_pixel,
19256 background_pixel and terminal. Delete kboard.
19257 (union output_data): Add tty.
19258 (FRAME_KBOARD): Get the kboard from the terminal.
19259 (FRAME_INITIAL_P): New macro.
19260 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19261 (Qterm_environment_variable, Qdisplay_environment_variable)
19262 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19263 New declarations.
19264
19265 * termchar.h (tty_output, tty_display_info): New structures.
19266 (tty_list): Declare.
19267 (FRAME_TTY, CURTTY): New macros.
19268 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19269 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19270 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19271 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19272
19273 * callproc.c: Include frame.h and termhooks.h, for terminal
19274 parameters.
19275 (add_env): New function.
19276 (child_setup): Use it.
19277 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19278 (getenv_internal): Fix get_terminal_param call.
19279 (Fgetenv_internal, egetenv): Update doc.
19280 (syms_of_callproc): Initialize Vprocess_environment to nil.
19281 Register and initialize them. Remove obsolete defvars. Update doc
19282 strings.
19283 (child_setup): Handle Vlocal_environment_variables.
19284 (getenv_internal): Add terminal parameter.
19285 Handle Vlocal_environment_variables.
19286 (Fgetenv_internal): Add terminal parameter.
19287 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19288 environment in a frame (not terminal) parameter. Update doc strings.
19289 (set_initial_environment): Rename from set_global_environment.
19290 Store Emacs environment in initial frame parameter.
19291
19292 * xdisp.c (redisplay_internal): Update references to
19293 `previous_terminal_frame'.
19294 (display_mode_line, Fformat_mode_line): Replace calls to
19295 `push_frame_kboard' with `push_kboard'.
19296 (get_glyph_string_clip_rects): Add extra parentheses and
19297 braces to prevent compiler warnings.
19298 (calc_pixel_width_or_height): Add xassert to check that the
19299 frame is alive. Don't call `lookup_image' on a termcap frame.
19300 (message2_nolog, message3_nolog, redisplay_internal)
19301 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19302 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19303 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19304 (Fx_display_pixel_width, Fx_display_pixel_height)
19305 (Fx_display_planes, Fx_display_color_cells)
19306 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19307 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19308 (Fx_display_backing_store, Fx_display_visual_class)
19309 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19310 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19311
19312 * xfns.c (x_set_foreground_color x_set_background_color)
19313 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19314 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19315 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19316 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19317 terminal that is being deleted.
19318 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19319 frame parameter, and make sure it overrides any user-supplied setting.
19320 (Fx_close_connection, Fx_synchronize): Unify argument names with
19321 the rest of the DEFUNs.
19322
19323 * dispnew.c (Fsend_string_to_terminal): Update call to
19324 `get_tty_terminal'.
19325 (Fredraw_frame, Fsend_string_to_terminal)
19326 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19327 FRAME_TERMCAP_P and FRAME_TTY.
19328 (window_change_signal): Don't believe width/height values that are
19329 impossibly small.
19330 (Vinitial_window_system): Rename from Vwindow_system.
19331 (termscript, Wcm, rif): Delete.
19332
19333 * termhooks.h (struct terminal): New struct containing the
19334 previously global text display hooks and new members NAME,
19335 DELETED and PARAM_ALIST.
19336 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19337 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19338 (FRAME_RIF): New macros.
19339 (get_terminal_param, get_device): New declarations.
19340 (termscript): Delete declaration.
19341
19342 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19343 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19344 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19345 FRAME_FOREGROUND_PIXEL.
19346 (x_fully_uncatch_errors): Disable definition.
19347 (x_scroll_bar_expose): Fix reference to foreground pixel.
19348 (XTread_socket): Disable loop on all X displays.
19349 (x_delete_terminal): Don't set terminal->deleted and let
19350 delete_terminal delete the frames on the terminal.
19351 (x_delete_display): Doc update to reflect changes in
19352 delete_terminal.
19353 (x_display_info) <terminal>: Move member earlier in the struct.
19354 (deleting_tty): Remove old variable.
19355 (Fsuspend_tty): Call clear_tty_hooks.
19356 (Fresume_tty, init_tty): Call set_tty_hooks.
19357 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19358 errors on X frames.
19359 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19360 (handle_one_xevent): Initialize `f' to NULL.
19361 (x_delete_terminal, x_create_terminal): New functions.
19362 (XTset_terminal_modes, XTreset_terminal_modes)
19363 (XTread_socket, x_connection_closed, x_term_init)
19364 (x_term_init, x_delete_display): Add terminal parameter.
19365 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19366 X connections.
19367
19368 * frame.c: Include termchar.h.
19369 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19370 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19371 (Qdisplay_environment_variable): New vars.
19372 (Fframep): Deal with output_initial.
19373 (Fframe-live-p): Doc fix.
19374 (Fwindow-system): New function.
19375 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19376 (make_terminal_frame): Don't create frames on a terminal that is
19377 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19378 (store_frame_param): Check for found_for_frame before calling XFRAME.
19379 (Fmake_terminal_frame): Handle NULL tty names correctly.
19380 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19381 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19382 frames to refer to a deleted frame in their 'environment parameter.
19383 (Fframe_with_environment): New function.
19384 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19385 (get_future_frame_param): New function.
19386 (Fmake_terminal_frame): Use it.
19387 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19388
19389 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19390 * sysdep.c (reset_sys_modes): Update for renames.
19391
19392 * keyboard.c (tty_read_avail_input): New function.
19393 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19394 (syms_of_keyboard): Defsubr them.
19395 (Fset_input_meta_mode, Fset_quit_char): New functions.
19396 (Fset_input_mode): Split to above functions.
19397 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19398 parameter. Use it in call to `read_char'.
19399 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19400 Set wrong_kboard_jmpbuf correctly in recursive calls.
19401 Use current_kboard to access Vkeyboard_translate_table.
19402 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19403 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19404 Update longjmp invocations. Remember the original current_kboard,
19405 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19406 changes it. Comment out unnecessary calls to
19407 `record_single_kboard_state' and `any_kboard_state'.
19408 Update recursive calls.
19409 (wrong_kboard_jmpbuf): Remove global variable.
19410 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19411 Handle deleted interrupted_kboards correctly; that is a legal
19412 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19413 and read_char calls. Abort if interrupted_kboard died in read_char.
19414 (any_kboard_state, single_kboard_state)
19415 (push_frame_kboard): Remove function.
19416 (pop_kboard): Switch out of single_kboard mode if the kboard has
19417 been deleted. Remove unused variable. Help debugging by not
19418 changing current_kboard unnecessarily. Set current_kboard to the
19419 kboard of the selected frame when the stored kboard object has
19420 been deleted before pop_kboard.
19421 (temporarily_switch_to_single_kboard): Change first parameter to a
19422 frame pointer. Throw an error when caller wants to change kboards
19423 while in single_kboard mode. Don't push_kboard if we weren't in
19424 single kboard state. Don't pop_kboard if we popped into any
19425 kboard state.
19426 (restore_kboard_configuration): Abort if pop_kboard changed the
19427 kboard in single_kboard mode. Call pop_kboard only after setting
19428 up single_kboard mode.
19429 (Frecursive_edit): Switch to single_kboard mode only in nested
19430 command loops.
19431 (cmd_error, command_loop, command_loop_1, timer_check):
19432 Comment out unnecessary call to `any_kboard_state' and
19433 `record_single_kboard_state'.
19434 (delete_kboard): Exit single_kboard mode if we have just deleted
19435 that kboard. Use FRAME_KBOARD.
19436 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19437 `fatal_error_signal'.
19438 (record_single_kboard_state): Don't push_kboard if we weren't in
19439 single kboard state. Don't pop_kboard if we popped into any
19440 kboard state.
19441 (push_frame_kboard): Rename to push_kboard.
19442 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19443 (read_avail_input): Read input from all terminals.
19444 (mark_kboards): Also mark Vkeyboard_translate_table.
19445 (kbd_buffer_store_event_hold): Simplify condition.
19446 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19447 (Vkeyboard_translate_table): Move to struct kboard.
19448 (init_kboard): Initialize Vkeyboard_translate_table.
19449 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19450 Vkeyboard_translate_table. Update doc strings. Update docs of
19451 local-function-key-map and function-key-map.
19452
19453 * terminal.c: New file.
19454
19455 * term.c: Include errno.h.
19456 (Vring_bell_function, device_list, initial_device)
19457 (next_device_id, ring_bell, update_begin, update_end)
19458 (set_terminal_window, cursor_to, raw_cursor_to)
19459 (clear_to_end, clear_frame, clear_end_of_line)
19460 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19461 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19462 (syms_of_term): Move their initialization to terminal.c.
19463 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19464 (Ftty_display_color_cells)
19465 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19466 (clear_tty_hooks, set_tty_hooks)
19467 (init_tty, maybe_fatal): New functions.
19468 (Ftty_type): Return nil if terminal is not on a tty instead of
19469 throwing an error. Doc update.
19470 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19471 Doc update. Initialize new subrs and variables.
19472 (delete_tty): Use terminal->deleted.
19473 (tty_set_terminal_modes): Rename from set_terminal_modes.
19474 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19475 (set_scroll_region): Rename to `tty_set_scroll_region'.
19476 (turn_on_insert): Rename to `tty_turn_on_insert'.
19477 (turn_off_insert): Rename to `tty_turn_off_insert'.
19478 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19479 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19480 (toggle_highligh): Rename to `tty_toggle_highlight'.
19481 (background_highlight): Rename to `tty_background_highlight'.
19482 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19483 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19484 (tty_set_scroll_region, tty_background_highlight)
19485 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19486 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19487 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19488 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19489 Add static modifier.
19490 (tty_reset_terminal_modes, tty_set_terminal_window)
19491 (tty_set_scroll_region, tty_background_highlight)
19492 (tty_highlight_if_desired, tty_cursor_to)
19493 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19494 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19495 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19496 renames.
19497
194982007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19499
19500 * keyboard.c: Qrtl is new.
19501 (parse_tool_bar_item): Handle :rtl keyword.
19502 (syms_of_keyboard): Intern :rtl keyword.
19503
19504 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19505
19506 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19507 so no Lisp code is executed.
19508 (file_for_image, find_rtl_image): New functions.
19509 (xg_get_image_for_pixmap): Use file_for_image.
19510 (update_frame_tool_bar): If direction is RTL, use RTL image if
19511 defined. Use Gtk stock images if defined.
19512
195132007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19514
19515 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19516 for nonexistent or zero-width glyph in composition glyph.
19517
195182007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19519
19520 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19521
19522 * xdisp.c (Finvisible_p): New function.
19523 (syms_of_xdisp): defsubr it.
19524
195252007-08-24 Juanma Barranquero <lekktu@gmail.com>
19526
19527 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19528 Doc fixes.
19529
195302007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19531
19532 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19533
195342007-08-24 Martin Rudalics <rudalics@gmx.at>
19535
19536 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19537 whether decoding has modified buffer contents.
19538
195392007-08-24 Jason Rumney <jasonr@gnu.org>
19540
19541 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19542 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19543 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19544 (init_svg_functions) [HAVE_NTGUI]: New function.
19545 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19546 (svg_load_image): Use them.
19547 (svg_load_image) [HAVE_NTGUI]: Implement background.
19548
195492007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19550
19551 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19552 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19553 (LIBX): Remove @RSVG_LIBS@.
19554 (LIBES): Add $(RSVG_LIBS).
19555
19556 * image.c (svg_load_image): Blend with specified background if exists.
19557 Use IMAGE_BACKGROUND. Add Mac OS Support.
19558
19559 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19560 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19561 Remove macros.
19562 [MAC_OSX] (socket_callback): Do nothing.
19563 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19564 ReceiveNextEvent.
19565 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19566 socket_callback.
19567 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19568
195692007-08-22 Glenn Morris <rgm@gnu.org>
19570
19571 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19572
195732007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19574
19575 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19576
19577 * image.c: Add support for SVG images. Some additional comments
19578 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19579 (svg_image_p): New function to test for SVG image.
19580 (svg_load): New function to load SVG image.
19581 (svg_load_image): New function, helper for svg_load.
19582 (Qsvg): New Lisp_object.
19583 (svg_keyword_index): New enum.
19584 (svg_format): New static `image_keyword' struct.
19585 (svg_type): New static `image_type' struct.
19586 (librsvg/rsvg.h): Include it.
19587
195882007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19589
19590 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19591
195922007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19593
19594 * lread.c (Qold_style_backquotes): New var.
19595 (syms_of_lread): Init and staticpro it.
19596 (load_warn_old_style_backquotes): New fun.
19597 (Fload): Use them to warn about old style backquotes.
19598 (end_of_file_error, Fload): Remove unused vars.
19599
19600 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19601
19602 * lread.c (Vold_style_backquotes): New var.
19603 (syms_of_lread): Init and export it to Elisp.
19604 (read1): Set it when we find an old-style (back)quote.
19605
196062007-08-22 Jason Rumney <jasonr@gnu.org>
19607
19608 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19609
196102007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19611
19612 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19613
196142007-08-19 Richard Stallman <rms@gnu.org>
19615
19616 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19617
196182007-08-19 Andreas Schwab <schwab@suse.de>
19619
19620 * alloc.c (pure): Round PURESIZE up.
19621
196222007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19623
19624 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19625 active frame.
19626
196272007-08-16 Richard Stallman <rms@gnu.org>
19628
19629 * eval.c (Fcommandp): Add parens to clarify.
19630
19631 * minibuf.c (Fall_completions): Use enum for type of table.
19632
19633 * emacs.c (USAGE2): Improve text.
19634
196352007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19636
19637 * term.c (tty_default_color_capabilities): Declare static
19638 variables in file scope, to avoid HPUX compiler problem.
19639
196402007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19641
19642 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19643 to gtk_toolbar_insert.
19644
196452007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19646
19647 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19648
19649 * insdel.c (reset_var_on_error): New fun.
19650 (signal_before_change, signal_after_change):
19651 Use it to reset (after|before)-change-functions to nil in case of error.
19652 Bind inhibit-modification-hooks to t.
19653 Don't bind (after|before)-change-functions to nil while they run.
19654
196552007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19656
19657 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19658 filling pixmap with stippled background.
19659
196602007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19661
19662 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19663 Don't use invisible frame as parent window for repositioning.
19664
196652007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19666
19667 * print.c (new_backquote_output): Rename from old_backquote_output.
19668 (print): Inverse its logic (according to its name) so as to match the
19669 behavior of new_backquote_flag in lread.c.
19670
196712007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19672
19673 * gmalloc.c (posix_memalign): New function.
19674
19675 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19676 ActivateControl/DeactivateControl here.
19677 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19678 frame-notice-user-settings is non-nil.
19679 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19680 for kEventParamFMFontStyle.
19681 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19682 mac_pass_command_to_system and mac_pass_control_to_system here.
19683 (XTread_socket): Call ActivateControl/DeactivateControl here.
19684 (XTread_socket) [TARGET_API_MAC_CARBON]:
19685 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19686 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19687 for window repositioning.
19688
196892007-08-08 Glenn Morris <rgm@gnu.org>
19690
19691 * Replace `iff' in doc-strings and comments.
19692
196932007-08-07 Chong Yidong <cyd@stupidchicken.com>
19694
19695 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19696
196972007-08-07 Martin Rudalics <rudalics@gmx.at>
19698
19699 * fileio.c (Finsert_file_contents): Run format-decode and
19700 after_insert_file_functions on entire buffer when REPLACE is
19701 non-nil and inhibit modification_hooks and point_motion_hooks.
19702 For consistency, run after_insert_file_functions iff something
19703 got inserted. Move signal_after_change and update_compositions
19704 after code running after_insert_file_functions. Make sure that
19705 undo_list doesn't record intermediate steps of the decoding process.
19706
197072007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19708
19709 * emacs.c (main)
19710 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19711 Call malloc_enable_thread on interactive startup.
19712
19713 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19714 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19715 [USE_PTHREAD]: Conditionalize with it.
19716 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19717 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19718 New functions.
19719
197202007-08-06 Chong Yidong <cyd@stupidchicken.com>
19721
19722 * xdisp.c (redisplay_window): When restoring original buffer
19723 position, make sure it is still valid.
19724
19725 * image.c (png_load): Ignore png-supplied background color.
19726
197272007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19728
19729 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19730 Use kCFAbsoluteTimeIntervalSince1970.
19731
19732 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19733 New variable.
19734 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19735 event loop should be quit.
19736 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19737 Quit dialog event loop if quit_dialog_event_loop is set.
19738
19739 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19740 (Selection): New typedef. Use instead of ScrapRef.
19741 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19742 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19743 (mac_clear_selection): Rename from clear_scrap.
19744 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19745 scrap_has_target_type. All uses changed.
19746 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19747 (mac_selection_has_target_p): New functions.
19748 (mac_put_selection_value): Rename from put_scrap_string.
19749 (mac_get_selection_value): Rename from get_scrap_string.
19750 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19751 (put_scrap_private_timestamp, scrap_has_target_type)
19752 (get_scrap_private_timestamp): Remove functions.
19753 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19754 (x_own_selection, x_get_local_selection):
19755 Use mac_valid_selection_value_p.
19756 (x_own_selection): Don't use put_scrap_private_timestamp.
19757 Record OWNERSHIP-INFO into Vselection_alist instead.
19758 (x_get_local_selection): Don't check type if request is local.
19759 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19760 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19761
197622007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19763
19764 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19765 add comment explaining why.
19766
197672007-08-03 Richard Stallman <rms@gnu.org>
19768
19769 * fileio.c (Fvisited_file_modtime): Use make_time.
19770
197712007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19772
19773 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19774 build.
19775
197762007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19777
19778 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19779
197802007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19781
19782 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19783
197842007-07-30 Richard Stallman <rms@gnu.org>
19785
19786 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19787
197882007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19789
19790 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19791
197922007-07-28 Nick Roberts <nickrob@snap.net.nz>
19793
19794 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19795 remote default-directory.
19796
19797 * buffer.c (mode-line-format): Update doc string.
19798
197992007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19800
19801 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19802 scroll bar gap.
19803 (x_scroll_bar_create): Set bar->fringe_extended_p.
19804 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19805 on frame edge. Check fringe background extension. Don't clear
19806 extended fringe background area.
19807
19808 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19809 (w32_fill_area): Enclose multiple statements with do ... while (0).
19810
19811 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19812 Extend fringe background to scroll bar gap.
19813 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19814 Set bar->fringe_extended_p.
19815 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19816 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19817 background extension. Don't clear extended fringe background area.
19818
19819 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19820 New member fringe_extended_p.
19821
198222007-07-25 Glenn Morris <rgm@gnu.org>
19823
19824 * Relicense all FSF files to GPLv3 or later.
19825
19826 * COPYING: Switch to GPLv3.
19827
198282007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19829
19830 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19831
19832 * data.c (Finteractive_form): Check for the presence of an
19833 `interactive-form' symbol property more thoroughly.
19834
19835 * data.c (Finteractive_form): Use an `interactive-form' property if
19836 present, analogous to the function-documentation property.
19837
198382007-07-24 Jason Rumney <jasonr@gnu.org>
19839
19840 * w32fns.c (x_real_positions): Get real position from OS instead of
19841 calculating it.
19842
198432007-07-23 Jason Rumney <jasonr@gnu.org>
19844
19845 * filelock.c (current_lock_owner): Allow for @ sign in username.
19846
198472007-07-22 Nick Roberts <nickrob@snap.net.nz>
19848
19849 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19850 remote default-directory.
19851
19852 * buffer.c (mode-line-format): Describe above case in doc string.
19853
198542007-07-20 Eli Zaretskii <eliz@gnu.org>
19855
19856 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19857 Define if not defined.
19858
198592007-07-18 Jason Rumney <jasonr@gnu.org>
19860
19861 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19862
198632007-07-18 Richard Stallman <rms@gnu.org>
19864
19865 * data.c (Fsetq_default): Doc fix.
19866
19867 * eval.c (Fsetq): Doc fix.
19868
198692007-07-18 Juanma Barranquero <lekktu@gmail.com>
19870
19871 * coding.c (Ffind_operation_coding_system):
19872 * eval.c (For, Fand): Doc fixes.
19873 Reported by Johan Bockgård.
19874
198752007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19876
19877 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19878
19879 * xterm.h: Declare x_ewmh_activate_frame.
19880
19881 * xterm.c (x_ewmh_activate_frame): New function.
19882 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19883
198842007-07-17 Martin Rudalics <rudalics@gmx.at>
19885
19886 * window.c (Fdisplay_buffer): If largest or LRU window is the
19887 only window, split it even if it is not eligible for splitting.
19888 This restores the original behavior broken by the 2007-07-15
19889 change.
19890
198912007-07-17 Glenn Morris <rgm@gnu.org>
19892
19893 * abbrev.c (abbrev_check_chars): New function.
19894 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19895 Call abbrev_check_chars to check abbrev characters are word
19896 constituents. Doc fix.
19897
198982007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19899
19900 * process.c (Fstart_process, Fmake_network_process)
19901 (read_process_output): Fix up last changes.
19902
199032007-07-16 Eli Zaretskii <eliz@gnu.org>
19904
19905 * makefile.w32-in (clean): Don't delete *~.
19906
199072007-07-16 Andreas Schwab <schwab@suse.de>
19908
19909 * window.c (Fdisplay_buffer): Use NILP.
19910 (Fset_window_scroll_bars): Likewise.
19911
199122007-07-15 Martin Rudalics <rudalics@gmx.at>
19913
19914 * window.c (window_min_size_2): New function.
19915 (window_min_size_1, size_window, Fdisplay_buffer)
19916 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19917 windows without mode- or header-lines when window-min-height is
19918 too small.
19919 (size_window): Reset nodelete_p after testing it, following an
19920 earlier note by Kim F. Storm.
19921 (display_buffer): Do not set split_height_threshold to twice the
19922 value of window_min_height to avoid changing the value of a
19923 customizable variable. Rather explicitly check whether the
19924 height of the window that shall be splitted is at least as large
19925 as split_height_threshold.
19926 (Fwindow_full_width_p): New defun.
19927 (syms_of_window): Defsubr it.
19928
19929 * window.h: Add EXFUN for Fwindow_full_width_p.
19930
199312007-07-14 Jason Rumney <jasonr@gnu.org>
19932
19933 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19934
199352007-07-14 Richard Stallman <rms@gnu.org>
19936
19937 * eval.c (maybe_call_debugger): New function.
19938 (find_handler_clause): Use maybe_call_debugger.
19939 Call it when the handler says `debug'.
19940 Eliminate DEBUGGER_VALUE_PTR.
19941 (Fsignal): Eliminate debugger_value.
19942 (Qdebug): New variable.
19943 (syms_of_eval): Initialize it.
19944
199452007-07-14 Juanma Barranquero <lekktu@gmail.com>
19946
19947 * eval.c (Fprogn):
19948 * keyboard.c (Ftrack_mouse):
19949 * print.c (Fwith_output_to_temp_buffer):
19950 * window.c (Fsave_window_excursion): Doc fix.
19951
199522007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19953
19954 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19955
199562007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19957
19958 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19959 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19960 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19961 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19962 Remove unused encoding_carryover.
19963 * process.c: Adjust all functions accordingly.
19964
199652007-07-12 Richard Stallman <rms@gnu.org>
19966
19967 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19968
199692007-07-11 Jason Rumney <jasonr@gnu.org>
19970
19971 * makefile.w32-in (LIBS): Include OLE32.
19972
19973 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19974 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19975
199762007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
19977
19978 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19979 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19980 from a Lisp_Object into a bare pointer.
19981 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19982 Adjust the code correspondingly.
19983
19984 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19985
19986 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19987 (term_show_mouse_face): Remove unused var `j'.
19988 (handle_one_term_event): Remove unused vars `i' and `j'.
19989 Don't cast return value of ttyname since it's not necessary.
19990
199912007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
19992
19993 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19994 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19995
19996 * fns.c (map_char_table): Use an array of int for `indices' rather than
19997 an array of Lisp_Objects (which are only ever integers anyway).
19998 (Fmap_char_table): Update caller.
19999 * lisp.h: Update prototype.
20000 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20001 * fontset.c (Ffontset_info):
20002 * casetab.c (set_case_table): Update callers.
20003
20004 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20005
20006 * keymap.c (struct accessible_keymaps_data)
20007 (struct where_is_internal_data): New structures.
20008 (accessible_keymaps_1, where_is_internal_1): Use them to change
20009 interface to adhere to the one used by map_keymap.
20010 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20011 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20012
20013 * keymap.h (map_keymap_function_t): More informative prototype.
20014
200152007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20016
20017 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20018 (looking_at_1): Don't change search_regs and last_thing_searched
20019 if `inhibit-changing-match-data' is non-nil.
20020 (string_match_1, search_buffer, set_search_regs): Likewise.
20021 (syms_of_search): Add Lisp level definition for
20022 `inhibit-changing-match-data' and set it to nil.
20023 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20024 start and end of the match, instead of using values in search_regs.
20025
200262007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20027
20028 * minibuf.c (Fcompleting_read): New value `confirm-only'
20029 for `require-match'.
20030
200312007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20032
20033 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20034 part of the 2007-06-27 change to syms_of_fileio.
20035
200362007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20037
20038 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20039 Check WINDOWP before using XWINDOW. Consolidate return statements.
20040
200412007-06-27 Richard Stallman <rms@gnu.org>
20042
20043 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20044
200452007-06-27 Juanma Barranquero <lekktu@gmail.com>
20046
20047 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20048
200492007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20050
20051 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20052 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20053 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20054 (_free_internal, memalign): Use them.
20055 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20056 Initialize to PTHREAD_MUTEX_INITIALIZER.
20057 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20058 (morecore_nolock): Rename from morecore. All uses changed.
20059 Use only nolock versions of internal allocation functions.
20060 (_malloc_internal_nolock, _realloc_internal_nolock)
20061 (_free_internal_nolock): New functions created from
20062 _malloc_internal, _realloc_internal, and _free_internal.
20063 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20064 Copy hook value to automatic variable before its use.
20065 (memalign): Copy hook value to automatic variable before its use.
20066
200672007-06-26 Kenichi Handa <handa@m17n.org>
20068
20069 * coding.c (Ffind_operation_coding_system): Docstring improved.
20070 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20071
200722007-06-25 David Kastrup <dak@gnu.org>
20073
20074 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20075 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20076 cater for additional parameter.
20077
20078 * keymap.h: Adjust number of parameters to `current-active-maps'.
20079
20080 * doc.c (Fsubstitute_command_keys): Adjust call of
20081 `current-active-maps'.
20082
200832007-06-25 David Kastrup <dak@gnu.org>
20084
20085 * callint.c (Fcall_interactively): Make the parsing of interactive
20086 specs somewhat more readable.
20087
200882007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20089
20090 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20091 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20092 if extended background has already been filled.
20093
200942007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20095
20096 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20097 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20098
20099 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20100 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20101 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20102 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20103 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20104 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20105 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20106 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20107 Run timers during dialog popup.
20108 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20109
201102007-06-21 Jason Rumney <jasonr@gnu.org>
20111
20112 * image.c (convert_mono_to_color_image): Swap fore and background.
20113
201142007-06-20 Jason Rumney <jasonr@gnu.org>
20115
20116 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20117 (w32_free_bdf_font): Unmap memory not handle.
20118
201192007-06-20 Sam Steingold <sds@gnu.org>
20120
20121 * gmalloc.c (__morecore): Fix the declaration to comply with the
20122 definition.
20123
201242007-06-20 Juanma Barranquero <lekktu@gmail.com>
20125
20126 * w32term.c (w32_delete_display): Remove leftover declaration.
20127 (w32_define_cursor, w32_initialize): Make static.
20128
20129 * w32.c (_wsa_errlist): Fix typo in error message.
20130 (init_environment): Ignore any environment variable from the
20131 registry having a null value.
20132
201332007-06-20 Glenn Morris <rgm@gnu.org>
20134
20135 * Makefile.in (LIBGIF): Default to -lgif.
20136
201372007-06-17 Jason Rumney <jasonr@gnu.org>
20138
20139 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20140 unicode strings.
20141
201422007-06-16 Juanma Barranquero <lekktu@gmail.com>
20143
20144 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20145 Fix typo in docstring.
20146
201472007-06-16 Eli Zaretskii <eliz@gnu.org>
20148
20149 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20150 and their keybindings.
20151
201522007-06-15 Chong Yidong <cyd@stupidchicken.com>
20153
20154 * composite.c (update_compositions): Fix last fix.
20155
201562007-06-14 Jason Rumney <jasonr@gnu.org>
20157
20158 * w32.c (get_process_times_fn): New function pointer.
20159 (globals_of_w32): Intialize it if present in kernel32.dll.
20160 (w32_get_internal_run_time): New function.
20161
20162 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20163
201642007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20165
20166 * composite.c (update_compositions): Check the validness of
20167 compositions.
20168
201692007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20170
20171 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20172 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20173
20174 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20175 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20176
20177 * macgui.h (USE_MAC_TOOLBAR): New define.
20178
20179 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20180 Return immediately unless popup is activated.
20181
20182 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20183 background to scroll bar gap.
20184 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20185 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20186 scroll bars on frame edge. Check fringe background extension.
20187 Don't clear extended fringe background area.
20188 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20189 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20190 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20191 [USE_MAC_TOOLBAR]: New macros.
20192 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20193 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20194 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20195 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20196 [USE_MAC_TOOLBAR]: New functions.
20197 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20198 manually if previous repositioning has failed.
20199 (mac_handle_keyboard_event): Use precomputed event kind.
20200 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20201 as tool bar item click. Handle mouse movement over tool bar items.
20202
20203 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20204 toolbar_win_gravity.
20205 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20206 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20207 Add externs.
20208
20209 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20210 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20211
202122007-06-14 Chong Yidong <cyd@stupidchicken.com>
20213
20214 * image.c (search_image_cache): Remove unused variable.
20215
202162007-06-13 Chong Yidong <cyd@stupidchicken.com>
20217
20218 * xfns.c, xmenu.c: Link to xaw3d if available.
20219
202202007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20221
20222 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20223 frame_foreground and frame_background.
20224
20225 * image.c (lookup_image): Save frame foreground and background colors.
20226 (search_image_cache): Check if saved and current frame colors match.
20227
202282007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20229
20230 * regex.c (regex_compile): Remove the `regnum' counter.
20231 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20232
202332007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20234
20235 * term.c: Include intervals.h to declare Fget_text_property.
20236
202372007-06-10 Jason Rumney <jasonr@gnu.org>
20238
20239 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20240
202412007-06-08 Juanma Barranquero <lekktu@gmail.com>
20242
20243 * callint.c (Fcall_interactively):
20244 * editfns.c (Fdelete_and_extract_region):
20245 * fileio.c (Fread_file_name):
20246 * fns.c (Fmapconcat):
20247 * keyboard.c (cmd_error_internal):
20248 * keymap.c (Fkey_description):
20249 * lread.c (openp):
20250 * minibuf.c (read_minibuf):
20251 * search.c (wordify):
20252 * sunfns.c (sel_read):
20253 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20254 * xfns.c (x_default_scroll_bar_color_parameter):
20255 * xmenu.c (menu_help_callback):
20256 * xselect.c (Fx_get_atom_name):
20257 * xterm.c (x_term_init): Use empty_unibyte_string.
20258
202592007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20260
20261 * alloc.c (init_strings): Initialize canonical empty strings.
20262 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20263 canonical empty string when the requested size is 0.
20264
20265 * emacs.c (empty_unibyte_string): Rename from empty_string.
20266 (empty_multibyte_string): New canonical empty string.
20267 (syms_of_emacs): Don't initialize empty_string.
20268
20269 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20270 string, if appropriate.
20271 (empty_unibyte_string, empty_multibyte_string): New externs.
20272 (empty_string): Remove extern.
20273
20274 * lread.c (syms_of_lread): Use empty_unibyte_string.
20275
202762007-06-07 Jason Rumney <jasonr@gnu.org>
20277
20278 * s/ms-w32.h: Don't define HAVE_TZNAME.
20279
20280 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20281
202822007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20283
20284 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20285
20286 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20287 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20288
20289 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20290 Don't call next handler.
20291 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20292 Remove argument. Install handler to application.
20293 (set_frame_menubar): Don't change deep_p.
20294 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20295 FRAME_OUTER_TO_INNER_DIFF_Y.
20296 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20297 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20298 [HAVE_DIALOGS]: New macros.
20299 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20300 Use them.
20301 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20302
20303 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20304 init_service_handler. All callers changed. Return OSStatus value.
20305
20306 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20307 All callers changed so as not to call SetPortWindowPort.
20308 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20309 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20310 mac_draw_string_common.
20311 (mac_draw_image_string_qd): Likewise.
20312 (mac_draw_string_common): Use them. Add INLINE.
20313 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20314 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20315 GetGlobalMouse.
20316 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20317 and FRAME_OUTER_TO_INNER_DIFF_Y.
20318 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20319 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20320 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20321 repositioning window to mac_handle_window_event.
20322 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20323 saving window location to mac_handle_window_event
20324 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20325 (install_menu_target_item_handler): Remove argument in extern.
20326 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20327 Also accept command events.
20328 (do_keystroke): New function created from XTread_socket.
20329 (init_command_handler): Remove functions.
20330 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20331 and save window location by kEventWindowShowing and kEventWindowHiding
20332 handlers here. Don't call next handler for window state change and
20333 focus events.
20334 (mac_handle_application_event, mac_handle_keyboard_event)
20335 [TARGET_API_MAC_CARBON]: New functions.
20336 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20337 kEventWindowShowing and kEventWindowHiding events. Move installation
20338 of mouse, font, text input and menu target item handlers to
20339 install_application_handler.
20340 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20341 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20342 New function.
20343 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20344 Register it.
20345 (XTread_socket) [TARGET_API_MAC_CARBON]:
20346 Consolidate SendEventToEventTarget calls.
20347 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20348 Move application activation handler to mac_handle_application_event.
20349 Move keyboard handler to mac_handle_keyboard_event.
20350 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20351 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20352 init_command_handler. Call install_application_handler.
20353
20354 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20355 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20356
203572007-06-07 Glenn Morris <rgm@gnu.org>
20358
20359 * emacs.c (main): Use `emacs-copyright' in --version output.
20360
203612007-06-06 Chong Yidong <cyd@stupidchicken.com>
20362
20363 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20364
203652007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20366
20367 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20368
20369 * macgui.h: Replace WindowPtr with WindowRef.
20370
20371 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20372 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20373 Replace ControlHandle with ControlRef.
20374 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20375
20376 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20377 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20378 Replace ControlHandle with ControlRef.
20379 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20380 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20381
20382 * macterm.h (struct scroll_bar): Rename member control_handle_low
20383 and control_handle_high to control_ref_low and control_ref_high.
20384 All uses changed.
20385 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20386 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20387 respectively. All uses changed.
20388 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20389 (install_window_handler, remove_window_handler): Replace WindowPtr
20390 with WindowRef in externs.
20391
203922007-06-05 Juanma Barranquero <lekktu@gmail.com>
20393
20394 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20395
203962007-06-03 Nick Roberts <nickrob@snap.net.nz>
20397
20398 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20399
20400 * frame.c (Fmouse_position, Fmouse_pixel_position):
20401 Condition on HAVE_GPM too.
20402
20403 * term.c (term_mouse_highlight): Remove unused variables.
20404 (Fterm_open_connection): Set gpm_zerobased to 1.
20405 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20406 Use zero based co-ordinates.
20407 (handle_one_term_event): Report a drag as mouse movement too.
20408
20409 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20410
204112007-06-03 Chong Yidong <cyd@stupidchicken.com>
20412
20413 * image.c (search_image_cache): New function. Require background
20414 color match if background color is unspecified in the image spec.
20415 (uncache_image, lookup_image): Use it.
20416
204172007-06-01 Juanma Barranquero <lekktu@gmail.com>
20418
20419 * window.c (Fshrink_window): Reflow docstring.
20420
204212007-06-02 Chong Yidong <cyd@stupidchicken.com>
20422
20423 * Version 22.1 released.
20424
204252007-06-01 Richard Stallman <rms@gnu.org>
20426
20427 * xfns.c (x_encode_text): Add GCPRO.
20428
204292007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20430
20431 * xfns.c (x_set_name_internal): Save encoded name before
20432 x_encode_text in case string data is relocated.
20433
204342007-05-31 Richard Stallman <rms@gnu.org>
20435
20436 * buffer.c (syms_of_buffer): Doc fix.
20437
204382007-05-30 Nick Roberts <nickrob@snap.net.nz>
20439
20440 * sysdep.c (init_sys_modes): Add rather than replace with
20441 O_NONBLOCK.
20442
20443 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20444 term_mouse_moveto.
20445
20446 * termhooks.h (term_mouse_moveto): New extern.
20447
20448 * term.c (mouse_face_window): Rename...
20449 (Qmouse_face_window): ...to this.
20450 (term_show_mouse_face, term_clear_mouse_face)
20451 (term_mouse_highlight): Use Qmouse_face_window.
20452 (term_mouse_moveto): New function.
20453 (term_mouse_position): Make it work.
20454 (syms_of_term): Uncomment assignment to mouse_position_hook.
20455 Staticpro Qmouse_face_window.
20456
204572007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20458
20459 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20460 around current_column call.
20461
204622007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20463
20464 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20465 * xdisp.c (next_element_from_buffer):
20466 * window.c (delete_window):
20467 * term.c (term_mouse_highlight):
20468 * msdos.c (getdefdir):
20469 * macterm.c (mac_create_bitmap_from_bitmap_data)
20470 (init_font_name_table):
20471 * fns.c (Fsxhash):
20472 * data.c (Fmake_local_variable):
20473 * ccl.c (ccl_driver): Likewise.
20474
204752007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20476
20477 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20478 Call mac_wakeup_from_rne on window size change.
20479
204802007-05-25 Chong Yidong <cyd@stupidchicken.com>
20481
20482 * image.c (uncache_image): Fix typo.
20483
204842007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20485
20486 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20487
204882007-05-22 Richard Stallman <rms@gnu.org>
20489
20490 * xterm.c (x_connection_closed): Remove NO_RETURN.
20491
204922007-05-22 Martin Rudalics <rudalics@gmx.at>
20493
20494 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20495
204962007-05-21 Chong Yidong <cyd@stupidchicken.com>
20497
20498 * image.c (uncache_image): New function.
20499 (Fimage_refresh): New function.
20500
205012007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20502
20503 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20504
205052007-05-20 Nick Roberts <nickrob@snap.net.nz>
20506
20507 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20508 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20509
205102007-05-20 Nick Roberts <nickrob@snap.net.nz>
20511
20512 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20513 conditional on [HAVE_GPM_H].
20514
205152007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20516
20517 * syntax.c (skip_chars): Update syntax-table only after we checked that
20518 the new location is valid.
20519
205202007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20521
20522 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20523 mac_get_window_bounds.
20524
205252007-05-20 Nick Roberts <nickrob@snap.net.nz>
20526
20527 * Makefile.in (LIBGPM): Allow it to be set from configure.
20528 If set then link Emacs with it.
20529
20530 * config.in: Regenerate.
20531
20532 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20533 New externs.
20534
20535 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20536 Include gpm.h.
20537 (handle_one_term_event, term_gpm): New externs.
20538
20539 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20540 and allow it to be interrupted by SIGIO.
20541
20542 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20543 (wait_reading_process_output): Wait on gpm_fd too.
20544 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20545 (add_gpm_wait_descriptor_called_flag): New variable.
20546 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20547
20548 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20549 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20550 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20551 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20552 (make_lispy_event): Add case GPM_CLICK_EVENT.
20553 (read_avail_input): Handle mouse input.
20554
20555 * term.c (write_glyphs_with_face): New function.
20556 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20557 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20558 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20559 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20560 (last_mouse_x, last_mouse_y): New variables.
20561 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20562 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20563 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20564 (Fterm_close_connection): New functions.
20565 (term_init): Initialise mouse_face_window.
20566
205672007-05-19 Chong Yidong <cyd@stupidchicken.com>
20568
20569 * xdisp.c (redisplay_window): If first window line is a
20570 continuation line, recompute the new window start instead of
20571 recentering.
20572
205732007-05-18 Glenn Morris <rgm@gnu.org>
20574
20575 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20576 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20577
205782007-05-17 Glenn Morris <rgm@gnu.org>
20579
20580 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20581
205822007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20583
20584 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20585 dead key repeat and up events.
20586
205872007-05-14 Chong Yidong <cyd@stupidchicken.com>
20588
20589 * image.c (pbm_load): Check image size for monochrome pbm.
20590
205912007-05-13 Chong Yidong <cyd@stupidchicken.com>
20592
20593 * xterm.c (XTread_socket): Revert last change.
20594
205952007-05-12 Chong Yidong <cyd@stupidchicken.com>
20596
20597 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20598
20599 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20600
206012007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20602
20603 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20604 mixup (YAILOM).
20605
206062007-05-07 Andreas Schwab <schwab@suse.de>
20607
20608 * keymap.c (Flookup_key): Fix typo in last change.
20609
206102007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20611
20612 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20613 mapping for unibyte strings.
20614
206152007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20616
20617 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20618 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20619
206202007-04-29 Richard Stallman <rms@gnu.org>
20621
20622 * insdel.c (replace_range): For undo, record insertion first.
20623
206242007-04-29 Andreas Schwab <schwab@suse.de>
20625
20626 * lisp.h (VECSIZE): Use OFFSETOF.
20627
206282007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20629
20630 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20631 disabled lines.
20632
206332007-04-28 Richard Stallman <rms@gnu.org>
20634
20635 * lread.c (read_escape): In a string, \s is always space.
20636
206372007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20638
20639 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20640
20641 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20642 submenu for menu bar items.
20643
20644See ChangeLog.10 for earlier changes.
20645
20646;; Local Variables:
20647;; coding: utf-8
20648;; add-log-time-zone-rule: t
aac0c6e3
MR
20649;; End:
20650
76b6f707 20651 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20652
20653 This file is part of GNU Emacs.
20654
20655 GNU Emacs is free software: you can redistribute it and/or modify
20656 it under the terms of the GNU General Public License as published by
20657 the Free Software Foundation, either version 3 of the License, or
20658 (at your option) any later version.
20659
20660 GNU Emacs is distributed in the hope that it will be useful,
20661 but WITHOUT ANY WARRANTY; without even the implied warranty of
20662 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20663 GNU General Public License for more details.
20664
20665 You should have received a copy of the GNU General Public License
20666 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20667
20668;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40